本文整理汇总了PHP中BxDolTemplate::parseSystemKey方法的典型用法代码示例。如果您正苦于以下问题:PHP BxDolTemplate::parseSystemKey方法的具体用法?PHP BxDolTemplate::parseSystemKey怎么用?PHP BxDolTemplate::parseSystemKey使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BxDolTemplate
的用法示例。
在下文中一共展示了BxDolTemplate::parseSystemKey方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: parseSystemKey
function parseSystemKey($sKey, $mixedKeyWrapperHtml = null, $bProcessInjection = true)
{
$sRet = '';
switch ($sKey) {
case 'version':
$sRet = bx_get_ver();
break;
case 'page_breadcrumb':
$sRet = $this->getPageBreadcrumb();
break;
case 'dol_images':
$sRet = $this->_processJsImages();
break;
case 'dol_lang':
$sRet = $this->_processJsTranslations();
break;
case 'dol_options':
$sRet = $this->_processJsOptions();
break;
case 'menu_top':
$sRet = BxTemplStudioMenuTop::getInstance()->getCode();
break;
case 'copyright':
$sRet = _t('_copyright', date('Y')) . getVersionComment();
break;
default:
$sRet = parent::parseSystemKey($sKey, $mixedKeyWrapperHtml, false);
}
return $this->processInjection($this->getPageNameIndex(), $sKey, $sRet);
}
示例2: parseSystemKey
function parseSystemKey($sKey, $mixedKeyWrapperHtml = null, $bProcessInjection = true)
{
$sRet = '';
switch ($sKey) {
case 'version':
$sRet = bx_get_ver();
break;
case 'page_breadcrumb':
$sRet = $this->getPageBreadcrumb();
break;
case 'dol_images':
$sRet = $this->_processJsImages();
break;
case 'dol_lang':
$sRet = $this->_processJsTranslations();
break;
case 'dol_options':
$sRet = $this->_processJsOptions();
break;
case 'menu_top':
bx_import('BxTemplStudioMenuTop');
$sRet = BxTemplStudioMenuTop::getInstance()->getCode();
break;
case 'boonex_promo':
if (getParam('enable_dolphin_footer')) {
$sRet = $this->parseHtmlByName('boonex_promo.html', array());
}
break;
case 'promo_code':
if (defined('BX_PROMO_CODE')) {
$sRet = BX_PROMO_CODE;
} else {
$sRet = ' ';
}
break;
case 'copyright':
$sRet = _t('_copyright', date('Y')) . getVersionComment();
break;
default:
$sRet = parent::parseSystemKey($sKey, $mixedKeyWrapperHtml, false);
}
return $this->processInjection($this->getPageNameIndex(), $sKey, $sRet);
}