protected function _componentsToHtml() { $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_marketplace_help'); $formBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_marketplace_general_form'); count($this->tabs) == 1 && $formBlock->setChildBlockId($this->getSingleBlock()->getContainerId()); return $helpBlock->toHtml() . parent::_componentsToHtml() . $formBlock->toHtml(); }
protected function _componentsToHtml() { $javascript = <<<JAVASCRIPT <script type="text/javascript"> if (varienGlobalEvents) { varienGlobalEvents.attachEventHandler('showTab', function() { if (typeof listingJsTabs == 'undefined') { return; } // we need to remove container if it is already exist to be sure // it has the last element with class content-header in DOM (see tools.js createToolbar()) // ---------- if (\$('fake_buttons_container')) { \$('fake_buttons_container').remove(); } // ---------- // prepare fake buttons container // ---------- var fakeButtonsContainer = new Element('div', { id: 'fake_buttons_container' }); document.body.insertBefore(fakeButtonsContainer, document.body.lastChild); fakeButtonsContainer.hide(); // ---------- // update fake buttons container html and reset floating toolbar // ---------- var activeTabButtonsHtml = \$\$('#' + listingJsTabs.activeTab.id + '_content div.content-header')[0].innerHTML; \$('fake_buttons_container').update('<div class="content-header">' + activeTabButtonsHtml + '</div>'); updateTopButtonToolbarToggle(); // ---------- }); } </script> JAVASCRIPT; $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_help'); return $helpBlock->toHtml() . parent::_componentsToHtml() . $javascript; }
protected function _componentsToHtml() { $javascriptsMain = <<<JAVASCRIPT <script type="text/javascript"> Event.observe(window, 'load', function() { ListingProgressBarObj = new ProgressBar('listing_other_progress_bar'); GridWrapperObj = new AreaWrapper('listing_other_content_container'); }); </script> JAVASCRIPT; $mapToProductBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_other_mapToProduct'); return $javascriptsMain . $mapToProductBlock->toHtml() . parent::_componentsToHtml(); }
protected function _componentsToHtml() { $formBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_synchronization_form'); count($this->tabs) == 1 && $formBlock->setChildBlockId($this->getSingleBlock()->getContainerId()); return parent::_componentsToHtml() . $formBlock->toHtml(); }
protected function _componentsToHtml() { $tempGridIds = array(); Mage::helper('M2ePro/Component_Ebay')->isActive() && ($tempGridIds[] = $this->getEbayTabBlock()->getId()); Mage::helper('M2ePro/Component_Amazon')->isActive() && ($tempGridIds[] = $this->getAmazonTabBlock()->getId()); $generalBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_order_general'); $generalBlock->setGridIds($tempGridIds); return $generalBlock->toHtml() . parent::_componentsToHtml(); }