Ejemplo n.º 1
0
 protected function _toHtml()
 {
     Mage::register('current_megamenu_category_or_id', $this->getCategoryOrId());
     $html = parent::_toHtml();
     Mage::unregister('current_megamenu_category_or_id');
     return $html;
 }
Ejemplo n.º 2
0
 public function getMenuItems()
 {
     if (parent::getMenuItems() !== null) {
         return (array) parent::getMenuItems();
     }
     return (array) $this->_mmCategoryHelper()->loadCategoryChildren($this->getCategoryOrId());
 }
Ejemplo n.º 3
0
 protected function _beforeToHtml()
 {
     if ($this->_categoriesCache !== null) {
         foreach ($this->_categoriesCache as $category) {
             $this->addModelTags($category);
         }
     }
     return parent::_beforeToHtml();
 }
Ejemplo n.º 4
0
 public function __construct(array $args = array())
 {
     return parent::__construct($args + array('template' => 'creatuity/megamenu/menu.phtml'));
 }
Ejemplo n.º 5
0
 public function getCacheKeyInfo()
 {
     return array_merge(parent::getCacheKeyInfo(), $this->_getWidgetParams(), array($this->getCategoryId()));
 }