<!-- Block search module used in Hook Top -->
@effects.openTag
{if isset($hook_mobile)}
	<div class="input_search" data-role="fieldcontain">
		<form method="get" action="{$link->getPageLink('search')}" id="searchbox">
			<input type="hidden" name="controller" value="search" />
			<input type="hidden" name="orderby" value="position" />
			<input type="hidden" name="orderway" value="desc" />
			<input class="search_query" type="search" id="search_query_top" name="search_query" placeholder="{l s='Search' mod='blocksearch'}" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|htmlentities:$ENT_QUOTES:'utf-8'|stripslashes}{/if}" />
		</form>
	</div>
{else}
	{assign var=action value=$link->getPageLink('search')}
	{assign var=input_id value='search_query_top'}
	
	{capture name=searchLabel}
	<label for="search_query_top"><!-- image on background --></label>
	{/capture}

		<!-- Block search module TOP -->
		@include("search")
		{include file="$tpl_dir./modules/blocksearch/blocksearch-instantsearch.tpl" blocksearch_type='top'}
{/if}
@effects.closeTag
<!-- /Block search module TOP -->