[*] MO : updated module blocknewsletter and module blockcms for mobile theme
This commit is contained in:
@@ -672,7 +672,7 @@ class BlockCms extends Module
|
|||||||
return $this->display(__FILE__, 'blockcms.tpl');
|
return $this->display(__FILE__, 'blockcms.tpl');
|
||||||
}
|
}
|
||||||
|
|
||||||
private function _prepareHook($params)
|
private function _prepareHook()
|
||||||
{
|
{
|
||||||
$block_activation = Configuration::get('FOOTER_BLOCK_ACTIVATION');
|
$block_activation = Configuration::get('FOOTER_BLOCK_ACTIVATION');
|
||||||
|
|
||||||
@@ -714,14 +714,14 @@ class BlockCms extends Module
|
|||||||
|
|
||||||
public function hookFooter()
|
public function hookFooter()
|
||||||
{
|
{
|
||||||
if (!$this->_prepareHook($params))
|
if (!$this->_prepareHook())
|
||||||
return ;
|
return ;
|
||||||
return $this->display(__FILE__, 'blockcms.tpl');
|
return $this->display(__FILE__, 'blockcms.tpl');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hookDisplayMobileFooterCms($params)
|
public function hookDisplayMobileFooterCms()
|
||||||
{
|
{
|
||||||
if (!$this->_prepareHook($params))
|
if (!$this->_prepareHook())
|
||||||
return ;
|
return ;
|
||||||
return $this->display(__FILE__, 'blockmobilecms.tpl');
|
return $this->display(__FILE__, 'blockmobilecms.tpl');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -498,7 +498,7 @@ class Blocknewsletter extends Module
|
|||||||
$this->context->controller->addCSS($this->_path.'blocknewsletter.css', 'all');
|
$this->context->controller->addCSS($this->_path.'blocknewsletter.css', 'all');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hookDisplayMobileIndex()
|
public function hookDisplayMobileIndex($params)
|
||||||
{
|
{
|
||||||
$this->_prepareHook($params);
|
$this->_prepareHook($params);
|
||||||
return $this->display(__FILE__, 'blockmobilenewsletter.tpl');
|
return $this->display(__FILE__, 'blockmobilenewsletter.tpl');
|
||||||
|
|||||||
Reference in New Issue
Block a user