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