From 5d561f7a327a548e279c4aa2826502bbcfe1ab45 Mon Sep 17 00:00:00 2001 From: bMancone Date: Mon, 23 Apr 2012 16:01:10 +0000 Subject: [PATCH] // Fixed #PSFV-894 : homeslider improvements --- modules/homeslider/homeslider.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/modules/homeslider/homeslider.php b/modules/homeslider/homeslider.php index 1bfd1b50e..c058f2034 100644 --- a/modules/homeslider/homeslider.php +++ b/modules/homeslider/homeslider.php @@ -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()