Example #1
0
 protected function _toHtml()
 {
     $period = 30;
     $codes = Mage::getResourceModel('amfpccrawler/log')->getStatusCodes($period);
     $this->setCodes($codes);
     return parent::_toHtml();
 }
Example #2
0
 protected function _toHtml()
 {
     if (!Mage::getStoreConfig('sales_email/order/include')) {
         return '';
     }
     return parent::_toHtml();
 }
 protected function _toHtml()
 {
     if ($this->isEditorAllowed()) {
         return parent::_toHtml();
     }
     return '<!-- Markdown Editor Disabled. See System -> Permission -> Roles -->';
 }
Example #4
0
 protected function _toHtml()
 {
     if (!$this->getIsNewGridModel() && ($gridBlock = $this->getGridBlock()) && $gridBlock->getFilterVisibility()) {
         return parent::_toHtml();
     }
     return '';
 }
Example #5
0
 /**
  * ACL validation before html generation
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (Mage::getSingleton('Mage_Admin_Model_Session')->isAllowed('system/index')) {
         return parent::_toHtml();
     }
     return '';
 }
 /**
  * ACL validation before html generation
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (Mage::getSingleton('admin/session')->isAllowed('catalog/categories')) {
         return parent::_toHtml();
     }
     return '';
 }
Example #7
0
 /**
  * ACL validation before html generation
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (Mage::getSingleton('Mage_Core_Model_Authorization')->isAllowed('Mage_Adminhtml::cache')) {
         return parent::_toHtml();
     }
     return '';
 }
Example #8
0
 /**
  * Prepare html output
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (!$this->_canShowNotification()) {
         return '';
     }
     return parent::_toHtml();
 }
 protected function _toHtml()
 {
     $html = $this->_beforeToHtmlHtml();
     $html .= parent::_toHtml();
     $html .= $this->_afterToHtmlHtml();
     return $html;
 }
Example #10
0
 protected function _toHtml()
 {
     $period = 30;
     $crawled = Mage::getResourceModel('amfpccrawler/log')->getCrawledPages($period);
     $this->setCrawled($crawled);
     return parent::_toHtml();
 }
Example #11
0
 protected function _toHtml()
 {
     $period = 30;
     $load = Mage::getResourceModel('amfpccrawler/log')->getPageLoadTime($period);
     $this->setLoad($load);
     return parent::_toHtml();
 }
 /**
  * Apply admin acl
  */
 protected function _toHtml()
 {
     if (!Mage::getSingleton('admin/session')->isAllowed('sales/enterprise_checkout/update')) {
         return '';
     }
     return parent::_toHtml();
 }
Example #13
0
 /**
  * ACL validation before html generation
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (Mage::getSingleton('admin/session')->isAllowed('system/cache')) {
         return parent::_toHtml();
     }
     return '';
 }
Example #14
0
 /**
  * ACL validation before html generation
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (Mage::getSingleton('Mage_Core_Model_Authorization')->isAllowed('Mage_Index::index')) {
         return parent::_toHtml();
     }
     return '';
 }
 protected function _toHtml()
 {
     if (!$this->_helper->isEnabled()) {
         return '';
     }
     return parent::_toHtml();
 }
 protected function _toHtml()
 {
     if (!Mage::getModel('M2ePro/Accounts')->isSingleAccountMode()) {
         return parent::_toHtml();
     }
     return '';
 }
Example #17
0
 protected function _toHtml()
 {
     if ($this->_section == 'mstcore_store') {
         return parent::_toHtml();
     } else {
         return '';
     }
 }
Example #18
0
 protected function _toHtml()
 {
     $this->setTemplate('aw_hdu3/ticket/edit/container/thread/status/full.phtml');
     if ($this->getIsShort()) {
         $this->setTemplate('aw_hdu3/ticket/edit/container/thread/status/short.phtml');
     }
     return parent::_toHtml();
 }
Example #19
0
 protected function _toHtml()
 {
     $filter = $this->getFilter();
     if (!$filter instanceof Mzax_Emarketing_Model_Object_Filter_Abstract) {
         return 'NO FILTER :(';
     }
     return parent::_toHtml();
 }
Example #20
0
 /**
  * Print init JS script into body
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->_section == 'awall' || $this->_section == 'awstore') {
         return parent::_toHtml();
     } else {
         return '';
     }
 }
Example #21
0
 /**
  * Do a few checks to see if the template should be rendered before actually rendering it.
  *
  * @return string
  *
  * @see Mage_Adminhtml_Block_Abstract::_toHtml()
  */
 protected function _toHtml()
 {
     $helper = Mage::helper('tig_myparcel');
     if (!$helper->isEnabled() || !$this->_shipment || !$helper->shippingMethodIsMyParcel($this->_shipment->getOrder()->getShippingMethod())) {
         return '';
     }
     return parent::_toHtml();
 }
 protected function _toHtml()
 {
     if ($this->getPayment()->getId()) {
         return Mage_Adminhtml_Block_Template::_toHtml();
     } else {
         return '';
     }
 }
 protected function _toHtml()
 {
     $html = parent::_toHtml();
     if ($this->getOutputAsJs()) {
         $html = $this->helper('customgrid/js')->prepareHtmlForJsOutput($html, true);
     }
     return $html;
 }
Example #24
0
 /**
  * Print init JS script into body
  * @return string
  */
 protected function _toHtml()
 {
     $section = $this->getAction()->getRequest()->getParam('section', false);
     if ($section == 'moneybookers') {
         return parent::_toHtml();
     } else {
         return '';
     }
 }
Example #25
0
 /**
  * Print init JS script into body
  * @return string
  */
 protected function _toHtml()
 {
     $section = $this->getAction()->getRequest()->getParam('section', false);
     if ($section == 'paynovapayment') {
         return parent::_toHtml();
     } else {
         return '';
     }
 }
 /**
  * @return string
  */
 protected function _toHtml()
 {
     $collection = Mage::getModel('awcountdown/trigger')->getResourceCollection()->addTimerIdFilter(Mage::registry('countdown_data')->getCountdownid())->load();
     if ($collection->getSize() != 0) {
         $this->assign('triggers', $collection);
     } else {
         $this->assign('triggers', false);
     }
     return parent::_toHtml();
 }
Example #27
0
 protected function _toHtml()
 {
     if (!Mage::registry('poll_data')) {
         $this->assign('answers', false);
         return parent::_toHtml();
     }
     $collection = Mage::getModel('poll/poll_answer')->getResourceCollection()->addPollFilter(Mage::registry('poll_data')->getId())->load();
     $this->assign('answers', $collection);
     return parent::_toHtml();
 }
 /**
  * Print init JS script into body
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->_section == 'awclickcheckout') {
         if (Mage::helper('awall/versions')->getPlatform() != AW_All_Helper_Versions::CE_PLATFORM) {
             return parent::_toHtml();
         }
     } else {
         return '';
     }
 }
Example #29
0
 protected function _toHtml()
 {
     if (!$this->getPayment()) {
         return '';
     }
     if ($this->getPayment()->getMethod() != 'purchaseorder') {
         return '';
     }
     return parent::_toHtml();
 }
Example #30
0
 public function _toHtml()
 {
     $request = Mage::app()->getRequest();
     if ($request->getParam('type') == self::SYNC_TO_MAILCHIMP) {
         $this->setTemplate("advancednewsletter/sync/tochimp.phtml");
     } else {
         if ($request->getParam('type') == self::SYNC_FROM_MAILCHIMP) {
             $this->setTemplate("advancednewsletter/sync/fromchimp.phtml");
         }
     }
     return parent::_toHtml();
 }