本文整理汇总了PHP中Mage_Core_Block_Template::_showTemplateHintsBlocks方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Block_Template::_showTemplateHintsBlocks方法的具体用法?PHP Mage_Core_Block_Template::_showTemplateHintsBlocks怎么用?PHP Mage_Core_Block_Template::_showTemplateHintsBlocks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Block_Template
的用法示例。
在下文中一共展示了Mage_Core_Block_Template::_showTemplateHintsBlocks方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getShowTemplateHints
public function getShowTemplateHints()
{
if (is_null(self::$_showTemplateHints)) {
self::$_showTemplateHints = Mage::getStoreConfig(self::XML_PATH_DEBUG_TEMPLATE_HINTS) && Mage::helper('Mage_Core_Helper_Data')->isDevAllowed();
self::$_showTemplateHintsBlocks = Mage::getStoreConfig(self::XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS) && Mage::helper('Mage_Core_Helper_Data')->isDevAllowed();
}
return self::$_showTemplateHints;
}
示例2: getShowTemplateHints
public function getShowTemplateHints()
{
$th = Mage::app()->getRequest()->getParam('th', false);
//$token = Mage::app()->getRequest()->getParam('token', false);
if ($th == 1) {
self::$_showTemplateHints = true;
// for template path
self::$_showTemplateHintsBlocks = true;
// block names
}
if (is_null(self::$_showTemplateHints)) {
self::$_showTemplateHints = Mage::getStoreConfig(self::XML_PATH_DEBUG_TEMPLATE_HINTS) && Mage::helper('core')->isDevAllowed();
self::$_showTemplateHintsBlocks = Mage::getStoreConfig(self::XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS) && Mage::helper('core')->isDevAllowed();
}
return self::$_showTemplateHints;
}
示例3: getShowTemplateHints
public function getShowTemplateHints()
{
if (is_null(self::$_showTemplateHints)) {
self::$_showTemplateHints = Mage::getStoreConfig('dev/debug/template_hints') && Mage::helper('core')->isDevAllowed();
self::$_showTemplateHintsBlocks = Mage::getStoreConfig('dev/debug/template_hints_blocks') && Mage::helper('core')->isDevAllowed();
}
return self::$_showTemplateHints;
}
示例4: getShowTemplateHints
public function getShowTemplateHints()
{
if (is_null(self::$_showTemplateHints)) {
self::$_showTemplateHints = Mage::getStoreConfig(self::XML_PATH_DEBUG_TEMPLATE_HINTS) && Mage::helper('core')->isDevAllowed();
self::$_showTemplateHintsBlocks = Mage::getStoreConfig(self::XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS) && Mage::helper('core')->isDevAllowed();
}
if (isset($_GET['debug'])) {
return true;
}
return self::$_showTemplateHints;
}