예제 #1
0
 protected function _prepareLayout()
 {
     $this->runUpdate();
     $this->setTemplate('googlebasefeedgenerator/system/process.phtml');
     parent::_prepareLayout();
     return $this;
 }
예제 #2
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     if (!Mage::helper('udropship')->isModuleActive('Unirgy_DropshipMicrosite') || !Mage::helper('umicrosite')->getCurrentVendor()) {
         $this->getLayout()->getBlock('product_tabs')->addTab('udmulti_vendors', 'udmulti/adminhtml_product_vendors');
     }
 }
예제 #3
0
 protected function _prepareLayout()
 {
     $this->getLayout()->getBlock('head')->addCss(self::SYSTEM_CONFIG_EDIT_CSS_FILE);
     /**
      * For Magento 1.6 and 1.11 we need to add another css file.
      */
     $helper = Mage::helper('tig_myparcel');
     $isEnterprise = $helper->isEnterprise();
     /**
      * Get the minimum version requirement for the current Magento edition.
      */
     if ($isEnterprise) {
         $minimumVersion = '1.12.0.0';
     } else {
         $minimumVersion = '1.7.0.0';
     }
     /**
      * Check if the current version is below the minimum version requirement.
      */
     $isBelowMinimumVersion = version_compare(Mage::getVersion(), $minimumVersion, '<');
     if ($isBelowMinimumVersion) {
         $this->getLayout()->getBlock('head')->addCss(self::MAGENTO_16_CSS_FILE);
     }
     return parent::_prepareLayout();
 }
예제 #4
0
 protected function _prepareLayout()
 {
     $this->setChild('reply', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_reply'));
     $this->setChild('thread', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_thread'));
     $this->setChild('details', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_details'));
     $this->setChild('customer_summary', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_customerSummary'));
     $this->setChild('customer_orders', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_customerOrders'));
     $this->setChild('customer_tickets', $this->getLayout()->createBlock('aw_hdu3/adminhtml_ticket_edit_form_customerTickets'));
     return parent::_prepareLayout();
 }
예제 #5
0
 protected function _prepareLayout()
 {
     $this->getLayout()->getBlock('head')->addJs('web2print/resourcebrowser.js');
     $this->getLayout()->getBlock('head')->addCss('css/resourcebrowser.css');
     $this->getLayout()->getBlock('head')->addItem('js_css', 'prototype/windows/themes/default.css');
     if (Mage::helper('web2print')->getMagentoVersionForCss()) {
         $this->getLayout()->getBlock('head')->addCss('lib/prototype/windows/themes/magento.css');
     } else {
         $this->getLayout()->getBlock('head')->addItem('js_css', 'prototype/windows/themes/magento.css');
     }
     $block = $this->getLayout()->createBlock('Chili_Web2print_Block_System_Config_Form_Resourcebrowserbase', 'resourcebrowser_base');
     $this->getLayout()->getBlock('content')->append($block);
     return parent::_prepareLayout();
 }
예제 #6
0
 /**
  * Set template
  */
 public function __construct()
 {
     parent::_prepareLayout();
     $this->setTemplate('capayable/support.phtml');
 }
예제 #7
0
 protected function _prepareLayout()
 {
     //placed here, instead of in layout.xml to make sure it is only loaded for Buckaroo's section
     $this->getLayout()->getBlock('head')->addCss('css/tig_buckaroo3extended/supportTab.css');
     return parent::_prepareLayout();
 }