本文整理汇总了PHP中Ess_M2ePro_Block_Adminhtml_Widget_Container::getHeaderText方法的典型用法代码示例。如果您正苦于以下问题:PHP Ess_M2ePro_Block_Adminhtml_Widget_Container::getHeaderText方法的具体用法?PHP Ess_M2ePro_Block_Adminhtml_Widget_Container::getHeaderText怎么用?PHP Ess_M2ePro_Block_Adminhtml_Widget_Container::getHeaderText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ess_M2ePro_Block_Adminhtml_Widget_Container
的用法示例。
在下文中一共展示了Ess_M2ePro_Block_Adminhtml_Widget_Container::getHeaderText方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getHeaderText
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
<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;
}