2015-08-21 17:29:32 +02:00

26 lines
500 B
PHP

<?php
class HomeSliderOverride extends HomeSlider
{
public function install() {
if (!parent::install() || !$this->registerHook('displayHomeStore'))
return false;
return true;
}
public function hookdisplayHomeStore($params) {
if (!$this->_prepareHook())
return false;
return $this->display(__FILE__, 'homeslider.tpl', $this->getCacheId());
}
public function hookdisplayHeader($params)
{
$this->context->controller->addJS($this->_path.'js/jquery.flexslider-min.js');
}
}