// Fixed #PSFV-894 : homeslider improvements

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14827 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2012-04-23 16:01:10 +00:00
parent a7f719a1c6
commit f0af3c1212
+3 -9
View File
@@ -60,7 +60,7 @@ class HomeSlider extends Module
public function install()
{
/* Adds Module */
if (parent::install() && $this->registerHook('displayHome') && $this->registerHook('displayHeader'))
if (parent::install() && $this->registerHook('displayHome'))
{
/* Sets up configuration */
$res = Configuration::updateValue('HOMESLIDER_WIDTH', '535');
@@ -109,7 +109,7 @@ class HomeSlider extends Module
public function uninstall()
{
/* Deletes Module */
if (parent::uninstall() && $this->unregisterHook('displayHome') && $this->unregisterHook('displayHeader'))
if (parent::uninstall() && $this->unregisterHook('displayHome'))
{
/* Deletes tables */
$res = $this->deleteTables();
@@ -647,17 +647,11 @@ class HomeSlider extends Module
{
if(!$this->_prepareHook())
return;
return $this->display(__FILE__, 'homeslider.tpl');
}
public function hookDisplayHeader()
{
if (!$this->getSlides(true))
return;
$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');
return $this->display(__FILE__, 'homeslider.tpl');
}
public function hookDisplayMobileIndex()