<xf:title>{{ phrase('template_search_results:') }} {$style.title}</xf:title>

<div class="block">
	<xf:if is="$templates is not empty">
		<div class="block-outer">
			<xf:macro template="filter_macros" name="quick_filter" arg-class="block-outer-opposite" />
		</div>
	</xf:if>
	<div class="block-container">
		<xf:macro template="template_list" name="search_menu" arg-style="{$style}" arg-conditions="{$conditions}" />
		<xf:if is="$templates is not empty">
			<div class="block-body">
				<xf:datalist>
					<xf:macro template="template_list" name="template_list" arg-templates="{$templates}" arg-style="{$style}" />
				</xf:datalist>
			</div>
			<div class="block-footer">
				<span class="block-footer-counter">{{ display_totals($templates) }}</span>
			</div>
		<xf:else />
			<div class="block-body block-row">{{ phrase('no_results_found') }}</div>
		</xf:if>
	</div>
</div>