Пример #1
0
    public function getHeaderText()
    {
        // ---------------------------------------
        $headerText = parent::getHeaderText();
        $channelTitle = '';
        // ---------------------------------------
        $enabledComponents = Mage::helper('M2ePro/View_Common_Component')->getActiveComponents();
        if (count($enabledComponents) > 1) {
            $headerText = Mage::helper('M2ePro')->__('Logs of');
            $changeFilter = Mage::helper('M2ePro')->__('Filter by Channel');
            $channel = $this->getRequest()->getParam('channel');
            if (!empty($channel) && $channel != Ess_M2ePro_Block_Adminhtml_Common_Log_Tabs::CHANNEL_ID_ALL) {
                $channelTitle = Mage::helper('M2ePro/Component_' . ucfirst($channel))->getTitle();
            } else {
                $channelTitle = Mage::helper('M2ePro')->escapeHtml('All Channels');
            }
            $channelTitle = <<<HTML
&nbsp;<a href="javascript: void(0);"
   id="listing-profile-title"
   class="listing-profile-title"
   style="font-weight: bold;"
   title="{$changeFilter}"><span class="drop_down_header">{$channelTitle}</span></a>
HTML;
        }
        return $headerText . $channelTitle;
    }