[-] FO : mobile theme : fix #PSCFV-4275 : delete calls to css and js not used

This commit is contained in:
lLefevre
2012-09-24 12:47:49 +00:00
parent 5f214dabfa
commit 9ca44ba0f4
4 changed files with 33 additions and 19 deletions
@@ -315,11 +315,14 @@ class Blockreinsurance extends Module
$helper->token = Tools::getAdminTokenLite('AdminModules');
$helper->currentIndex = AdminController::$currentIndex.'&configure='.$this->name;
return $helper;
}
public function hookFooter($params)
{
// Check if not a mobile theme
if ($this->context->getMobileDevice() != false)
return false;
$this->context->controller->addCSS($this->_path.'style.css', 'all');
$infos = $this->getListContent($this->context->language->id);
$this->context->smarty->assign(array('infos' => $infos, 'nbblocks' => count($infos)));
+4
View File
@@ -648,6 +648,10 @@ class HomeSlider extends Module
if(!$this->_prepareHook())
return;
// Check if not a mobile theme
if ($this->context->getMobileDevice() != false)
return false;
$this->context->controller->addJS($this->_path.'js/jquery.bxSlider.min.js');
$this->context->controller->addCSS($this->_path.'bx_styles.css');
$this->context->controller->addJS($this->_path.'js/homeslider.js');