protected function _beforeToHtml() { $this->addTab('general', array('label' => $this->__('General'), 'content' => $this->getLayout()->createBlock('ewcore/adminhtml_system_information_edit_tab_general')->toHtml())); if ($this->mHelper('config')->isWhiteLabeled() !== true or isset($_GET['force_show'])) { $this->addTab('rewrites', array('label' => $this->__('Class Rewrites'), 'url' => $this->getUrl('*/*/rewritesGrid', array('_current' => true)), 'class' => 'ajax')); } $this->addTab('events', array('label' => $this->__('Event Observers'), 'url' => $this->getUrl('*/*/eventsGrid', array('_current' => true)), 'class' => 'ajax')); $this->addTab('php', array('label' => $this->__('PHP Information'), 'content' => $this->getLayout()->createBlock('ewcore/adminhtml_system_information_edit_tab_php')->toHtml())); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $cnt = 0; $moduleCollection = Mage::getSingleton('ewcore/module')->getSortedCollection(); foreach ($moduleCollection as $module) { $block = $this->getLayout()->createBlock('ewcore/adminhtml_userguide_edit_tab_general'); $block->setModule($module); if ($block->canShow() === false) { continue; } $params = array('label' => $module->getFriendlyName()); if (!$cnt) { $params['content'] = $block->toHtml(); } else { $params['url'] = $this->getUrl('*/*/viewGuide', array('id' => $module->getId())); $params['class'] = 'ajax'; } $this->addTab($module->getId(), $params); $cnt++; } return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $this->addTab('general', array('label' => $this->__('General'), 'content' => $this->getLayout()->createBlock('ewcore/adminhtml_system_message_edit_tab_general')->toHtml())); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $this->addTab('general', array('label' => $this->__('General'), 'content' => $this->getLayout()->createBlock('ewcrawler/adminhtml_job_edit_tab_general')->toHtml())); $this->addTab('log', array('label' => $this->__('Log'), 'content' => $this->getLayout()->createBlock('ewcrawler/adminhtml_job_edit_tab_log')->toHtml())); return parent::_beforeToHtml(); }