本文整理汇总了PHP中Mage_XmlConnect_Block_Adminhtml_Mobile_Widget_Form::_prepareLayout方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_XmlConnect_Block_Adminhtml_Mobile_Widget_Form::_prepareLayout方法的具体用法?PHP Mage_XmlConnect_Block_Adminhtml_Mobile_Widget_Form::_prepareLayout怎么用?PHP Mage_XmlConnect_Block_Adminhtml_Mobile_Widget_Form::_prepareLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_XmlConnect_Block_Adminhtml_Mobile_Widget_Form
的用法示例。
在下文中一共展示了Mage_XmlConnect_Block_Adminhtml_Mobile_Widget_Form::_prepareLayout方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _prepareLayout
/**
* Load Wysiwyg on demand and Prepare layout
*/
protected function _prepareLayout()
{
parent::_prepareLayout();
if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {
$this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);
}
}
示例2: _prepareLayout
protected function _prepareLayout()
{
$application = Mage::registry('current_app');
$actionUrl = $this->getUrl('*/*/submissionPost', array('key' => $application->getId()));
$this->setChild('submission_scripts', $this->getLayout()->createBlock('adminhtml/template')->setActionUrl($actionUrl)->setTemplate('xmlconnect/submission_scripts.phtml'));
if ($application->getIsResubmitAction()) {
$block = $this->getLayout()->createBlock('adminhtml/template')->setTemplate('xmlconnect/resubmit.phtml')->setActionUrl($actionUrl)->setActivationKey($application->getActivationKey())->setResubmissionName('conf[submit_text][resubmission_activation_key]');
$this->setChild('resubmit', $block);
$block = $this->getLayout()->createBlock('adminhtml/template')->setTemplate('xmlconnect/images.phtml')->setImages($application->getImages());
$this->setChild('images', $block);
}
parent::_prepareLayout();
}
示例3: _prepareLayout
/**
* Adding preview for images if application was submitted(so we have saved images)
*
* @return Mage_Core_Block_Abstract
*/
protected function _prepareLayout()
{
$block = $this->getLayout()->createBlock('adminhtml/template')->setTemplate('xmlconnect/submission/app_icons_preview.phtml')->setImages($this->getApplication()->getImages());
$this->setChild('images', $block);
parent::_prepareLayout();
}
示例4: _prepareLayout
/**
* Adding preview for images if application was submitted(so we have saved images)
*
* @return Mage_Core_Block_Abstract
*/
protected function _prepareLayout()
{
$block = $this->getLayout()->createBlock('Mage_Adminhtml_Block_Template')->setTemplate('Mage_XmlConnect::submission/app_icons_preview.phtml')->setImages(Mage::helper('Mage_XmlConnect_Helper_Data')->getApplication()->getImages());
$this->setChild('images', $block);
parent::_prepareLayout();
}