nicolasroy4 Posted October 29, 2012 Share Posted October 29, 2012 (edited) Bonjour, J'ai modifié certains modules, notamment mon Homeslider pour le faire apparaitre dans le header. Cela fonctionnait en 1.5.0, mais depuis ma MAJ ce matin en 1.5.2, ca ne marche plus. Voila comment j'avais procédé : - Créer un dossier /themes/monTheme/modules/homeslider - Y ajouter un fichier homeslider.php avec le code suivant: <?phpclass HomeSlider_ovr extends HomeSlider{public function hookDisplayTop(){ if(isset($this->context->smarty->tpl_vars['page_name']->value) and $this->context->smarty->tpl_vars['page_name']->value != 'index')return; return $this->hookDisplayHome();}private function _prepareHook(){ $slider = array( 'width' => Configuration::get('HOMESLIDER_WIDTH'), 'height' => Configuration::get('HOMESLIDER_HEIGHT'), 'speed' => Configuration::get('HOMESLIDER_SPEED'), 'pause' => Configuration::get('HOMESLIDER_PAUSE'), 'loop' => Configuration::get('HOMESLIDER_LOOP'), ); $slides = $this->getSlides(true); if (!$slides) return false; $this->smarty->assign('homeslider_slides', $slides); $this->smarty->assign('homeslider', $slider); return true;[spam-filter] Quelqu'un a une idée? Edited October 30, 2012 by nicolasroy4 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now