示例#1
0
 public function _construct()
 {
     if (Mage::getStoreConfig('advanced/modules_disable_output/' . $this->getModuleName())) {
         Mage::app()->getStore()->setConfig('advanced/modules_disable_output/' . $this->getModuleName(), 0);
         $this->outputDisabled = true;
     }
     parent::_construct();
 }
示例#2
0
 protected function _toHtml()
 {
     if (!$this->mHelper('config')->isUserGuideButtonEnabled()) {
         return;
     }
     if (!$this->hasCoreModule()) {
         return;
     }
     if (!$this->getCoreModule()->hasSerial()) {
         return;
     }
     if (!$this->hasModule()) {
         return;
     }
     if (!$this->getModule()->isExtendware()) {
         return;
     }
     if ($this->getModule()->isForMainsite()) {
         return;
     }
     return parent::_toHtml();
 }