本文整理匯總了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);
}