/** * Contructor */ public function __construct($attributes = array()) { parent::__construct($attributes); /*End Cache Block*/ $template = ""; $namelayout = "scroll"; if ($this->getCarouselConfig("enable_owl_carousel")) { $namelayout = "carousel"; } if ($this->hasData("template") && $this->getData("template")) { $template = $this->getData("template"); } elseif (isset($attributes['template']) && $attributes['template']) { $template = $attributes['template']; } else { $template = "ves/brand/block/" . $namelayout . ".phtml"; } $this->setTemplate($template); /*Cache Block*/ $enable_cache = $this->getConfig("enable_cache", 1); if (!$enable_cache) { $cache_lifetime = null; } else { $cache_lifetime = $this->getConfig("cache_lifetime", 86400); $cache_lifetime = (int) $cache_lifetime > 0 ? $cache_lifetime : 86400; } $this->addData(array('cache_lifetime' => $cache_lifetime)); $this->addCacheTag(array(Mage_Core_Model_Store::CACHE_TAG, Mage_Cms_Model_Block::CACHE_TAG, Ves_Brand_Model_Brand::CACHE_BLOCK_SCROLL_TAG)); }
/** * Contructor */ public function __construct($attributes = array()) { $this->_show = $this->getGeneralConfig("show"); $enable_scroll = $this->getModuleConfig("enable_scrollmodule"); if (!$this->_show || !$enable_scroll) { return; } parent::__construct($attributes); }
/** * Contructor */ public function __construct($attributes = array()) { $this->_show = $this->getGeneralConfig("show"); if (!$this->_show) { return; } parent::__construct($attributes); $my_template = "ves/brand/groupmenu.phtml"; $this->setTemplate($my_template); }
/** * Contructor */ public function __construct($attributes = array()) { $helper = Mage::helper('ves_brand/data'); $this->_config = $helper->get($attributes); // echo $this->setTemplate("ves/brand/cmemu.phtml"); if (!$this->getGeneralConfig('show')) { return; } if (!$this->getConfig('enable_categorybrand')) { return; } //die("sssssss"); $my_template = $this->getTemplate(); if (empty($my_template)) { $my_template = 'ves/brand/cmenu.phtml'; } $brand_id = Mage::registry('brand_id'); $this->assign('config', $this->_config); //echo $my_template; $this->setTemplate($my_template); //die; /* End init meida files */ parent::__construct(); }
/** * Contructor */ public function __construct($attributes = array()) { parent::__construct($attributes); }