예제 #1
0
 protected function _toHtml()
 {
     $marketplaceFilterBlock = $this->createBlock('Marketplace\\Switcher')->setData(['component_mode' => \Ess\M2ePro\Helper\Component\Ebay::NICK, 'controller_name' => 'ebay_listing_log']);
     $marketplaceFilterBlock->setUseConfirm(false);
     $accountFilterBlock = $this->createBlock('Account\\Switcher')->setData(['component_mode' => \Ess\M2ePro\Helper\Component\Ebay::NICK, 'controller_name' => 'ebay_listing_log']);
     $accountFilterBlock->setUseConfirm(false);
     $pageActionsHtml = '';
     $marketplaceFilterHtml = $marketplaceFilterBlock->toHtml();
     $accountFilterHtml = $accountFilterBlock->toHtml();
     if (trim($marketplaceFilterHtml) || trim($accountFilterHtml)) {
         $pageActionsHtml = '<div class="page-main-actions"><div class="filter_block">' . $marketplaceFilterBlock->toHtml() . $accountFilterBlock->toHtml() . '</div></div>';
     }
     return $pageActionsHtml . parent::_toHtml() . '<div id="tabs_container"></div>';
 }
예제 #2
0
    protected function _toHtml()
    {
        $generalId = $this->getListingProduct()->getChildObject()->getGeneralId();
        $showMask = 0;
        if (!(empty($generalId) && $this->getListingProduct()->getChildObject()->isGeneralIdOwner())) {
            $showMask = 1;
        }
        $this->js->add(<<<JS
//    amazonVariationProductManageTabsJsTabs.moveTabContentInDest();
//
//    if (!{$showMask}) {
//        amazonVariationProductManageTabsJsTabs.tabs[0].hide();
//    }
JS
);
        return '<div id="variation_manage_tabs_container">' . parent::_toHtml() . '<div id="variation_product_manage_tabs_container"></div></div>';
    }