Example #1
0
 function _toHtml()
 {
     $show_verticalmenu = $this->getConfig('show');
     if (!$show_verticalmenu) {
         return;
     }
     //get store
     $store_id = Mage::app()->getStore()->getId();
     $this->assign('store_id', $store_id);
     $parent = '1';
     $html = $this->getTree($parent, true, $store_id);
     $this->assign('menuHtml', $html);
     $this->assign('config', $this->_config);
     return parent::_toHtml();
 }
Example #2
0
 function _toHtml()
 {
     $show_verticalmenu = $this->getConfig('show');
     if (!$show_verticalmenu) {
         return;
     }
     //get store
     $store_id = Mage::app()->getStore()->getId();
     $this->assign('store_id', $store_id);
     $parent = '1';
     $html = $this->getTree($parent, true, $store_id);
     $my_template = $this->getTemplate();
     if (empty($my_template)) {
         $this->_config['template'] = 'ves/verticalmenu/default.phtml';
     } else {
         $this->_config['template'] = $my_template;
     }
     $this->assign('menuHtml', $html);
     $this->assign('config', $this->_config);
     $this->setTemplate($this->_config['template']);
     return parent::_toHtml();
 }