/** * Add Assigned products accordion to layout * */ protected function _prepareLayout() { if (is_null(Mage::registry('current_tag')->getId())) { return $this; } $tagModel = Mage::registry('current_tag'); $this->setId('tag_assigned_grid'); $this->addItem('tag_assign', array('title' => Mage::helper('tag')->__('Products Tagged by Administrators'), 'ajax' => true, 'content_url' => $this->getUrl('*/*/assigned', array('ret' => 'all', 'tag_id' => $tagModel->getId(), 'store' => $tagModel->getStoreId())))); return parent::_prepareLayout(); }
/** * Add products and customers accordion to layout * */ protected function _prepareLayout() { if (is_null(Mage::registry('current_tag')->getId())) { return $this; } $tagModel = Mage::registry('current_tag'); $this->setId('tag_customer_and_product_accordion'); $this->addItem('tag_customer', array('title' => Mage::helper('tag')->__('Customers Submitted this Tag'), 'ajax' => true, 'content_url' => $this->getUrl('*/*/customer', array('ret' => 'all', 'tag_id' => $tagModel->getId(), 'store' => $tagModel->getStoreId())))); $this->addItem('tag_product', array('title' => Mage::helper('tag')->__('Products Tagged by Customers'), 'ajax' => true, 'content_url' => $this->getUrl('*/*/product', array('ret' => 'all', 'tag_id' => $tagModel->getId(), 'store' => $tagModel->getStoreId())))); return parent::_prepareLayout(); }
protected function _toHtml() { $country = Mage::getModel('directory/country')->load($this->getCountryId()); $countryName = ''; if ($country && $country->getId()) { $countryName = ' (' . $country->getName() . ')'; } $container = $this->getLayout()->createBlock('eltrino_region/adminhtml_system_config_fieldset_container')->setCountryId($this->getCountryId())->setDisabledRegions($this->getDisabledRegions()); $this->addItem('region_configuration', array('title' => Mage::helper('eltrino_region')->__('Region Configuration%s', $countryName), 'content' => $container->toHtml(), 'open' => true)); return parent::_toHtml(); }
/** * Add accordion items based on layout updates */ protected function _toHtml() { if (!Mage::getSingleton('admin/session')->isAllowed('sales/enterprise_checkout/update')) { return parent::_toHtml(); } foreach ($this->getChild() as $child) { $data = array('title' => $child->getHeaderText(), 'open' => false); if ($child->hasData('open')) { $data['open'] = $child->getData('open'); } if ($child->hasData('content_url')) { $data['content_url'] = $child->getData('content_url'); } else { $data['content'] = $child->toHtml(); } $this->addItem($child->getNameInLayout(), $data); } return parent::_toHtml(); }
/** * Add Assigned products accordion to layout * */ protected function _prepareLayout() { return parent::_prepareLayout(); }
/** * {@inheritdoc} */ protected function _toHtml() { $this->addItem('lastRequest', array('title' => Mage::helper('customer')->__('Request XML'), 'ajax' => false, 'content' => '<div class="entry-edit"><div style="word-wrap: break-word;" class="fieldset"><pre>' . htmlentities($this->getExport()->getRequestBody()) . '</pre></div></div>')); $this->addItem('lastResponse', array('title' => Mage::helper('customer')->__('Response XML'), 'ajax' => false, 'content' => '<div class="entry-edit"><div style="word-wrap: break-word;" class="fieldset"><pre>' . htmlentities($this->getExport()->getResponseBody()) . '</pre></div></div>')); return parent::_toHtml(); }
public function __construct() { parent::__construct(); $this->setTemplate('unirgy/udprod/vendor/product/renderer/widget/accordion.phtml'); }