本文整理汇总了PHP中Mage_Adminhtml_Block_Abstract::_prepareLayout方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Abstract::_prepareLayout方法的具体用法?PHP Mage_Adminhtml_Block_Abstract::_prepareLayout怎么用?PHP Mage_Adminhtml_Block_Abstract::_prepareLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Abstract
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Abstract::_prepareLayout方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _prepareLayout
protected function _prepareLayout()
{
$this->runUpdate();
$this->setTemplate('googlebasefeedgenerator/system/process.phtml');
parent::_prepareLayout();
return $this;
}
示例2: _prepareLayout
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: _prepareLayout
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: _prepareLayout
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: _prepareLayout
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: __construct
/**
* Set template
*/
public function __construct()
{
parent::_prepareLayout();
$this->setTemplate('capayable/support.phtml');
}
示例7: _prepareLayout
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();
}