[+] FO : mobile theme re-included in the trunk

This commit is contained in:
dMetzger
2012-08-28 15:47:12 +00:00
parent 5b37fb3329
commit f28088bd2f
97 changed files with 8534 additions and 32 deletions
+16 -1
View File
@@ -46,11 +46,26 @@ class BlockSearch extends Module
public function install()
{
if (!parent::install() || !$this->registerHook('top') || !$this->registerHook('header'))
if (!parent::install() || !$this->registerHook('top') || !$this->registerHook('header') || !$this->registerHook('displayMobileTopSiteMap'))
return false;
return true;
}
public function hookdisplayMobileTopSiteMap($params)
{
$this->smarty->assign(array('hook_mobile' => true, 'instantsearch' => false));
return $this->hookTop($params);
}
/*
public function hookDisplayMobileHeader($params)
{
if (Configuration::get('PS_SEARCH_AJAX'))
$this->context->controller->addJqueryPlugin('autocomplete');
$this->context->controller->addCSS(_THEME_CSS_DIR_.'product_list.css');
}
*/
public function hookHeader($params)
{
if (Configuration::get('PS_SEARCH_AJAX'))