[*] MO : updated module blocksearch for mobile theme
This commit is contained in:
@@ -24,6 +24,22 @@
|
|||||||
* International Registered Trademark & Property of PrestaShop SA
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
*}
|
*}
|
||||||
|
|
||||||
|
<!-- block seach mobile -->
|
||||||
|
{if isset($hook_mobile)}
|
||||||
|
<div class="input_search" data-role="fieldcontain">
|
||||||
|
<form method="get" action="{$link->getPageLink('search')}" id="searchbox">
|
||||||
|
<p>
|
||||||
|
<label for="search_query_top"><!-- image on background --></label>
|
||||||
|
<input type="hidden" name="controller" value="search" />
|
||||||
|
<input type="hidden" name="orderby" value="position" />
|
||||||
|
<input type="hidden" name="orderway" value="desc" />
|
||||||
|
<input type="search" name="password" id="search" value="rechercher"/>
|
||||||
|
<input class="search_query" type="text" id="search_query_top" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|htmlentities:$ENT_QUOTES:'utf-8'|stripslashes}{/if}" />
|
||||||
|
<input type="submit" name="submit_search" value="{l s='Search' mod='blocksearch'}" class="button" />
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
{else}
|
||||||
<!-- Block search module TOP -->
|
<!-- Block search module TOP -->
|
||||||
<div id="search_block_top">
|
<div id="search_block_top">
|
||||||
|
|
||||||
@@ -38,6 +54,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
{if $instantsearch}
|
{if $instantsearch}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
// <![CDATA[
|
// <![CDATA[
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class BlockSearch extends Module
|
|||||||
{
|
{
|
||||||
$this->name = 'blocksearch';
|
$this->name = 'blocksearch';
|
||||||
$this->tab = 'search_filter';
|
$this->tab = 'search_filter';
|
||||||
$this->version = 1.0;
|
$this->version = 1.1;
|
||||||
$this->author = 'PrestaShop';
|
$this->author = 'PrestaShop';
|
||||||
$this->need_instance = 0;
|
$this->need_instance = 0;
|
||||||
|
|
||||||
@@ -51,6 +51,12 @@ class BlockSearch extends Module
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function hookMobileTop($params)
|
||||||
|
{
|
||||||
|
$this->smarty->assign('hook_mobile', true);
|
||||||
|
$this->hookTop($params);
|
||||||
|
}
|
||||||
|
|
||||||
public function hookHeader($params)
|
public function hookHeader($params)
|
||||||
{
|
{
|
||||||
if (Configuration::get('PS_SEARCH_AJAX'))
|
if (Configuration::get('PS_SEARCH_AJAX'))
|
||||||
|
|||||||
Reference in New Issue
Block a user