本文整理汇总了PHP中WoW_Template::GetTemplateTheme方法的典型用法代码示例。如果您正苦于以下问题:PHP WoW_Template::GetTemplateTheme方法的具体用法?PHP WoW_Template::GetTemplateTheme怎么用?PHP WoW_Template::GetTemplateTheme使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WoW_Template
的用法示例。
在下文中一共展示了WoW_Template::GetTemplateTheme方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PrintCSSForBNPage
public static function PrintCSSForBNPage()
{
switch (WoW_Template::GetTemplateTheme()) {
case 'account':
$root_path = WoWConfig::$WoW_Path . '/account';
break;
default:
$root_path = WoWConfig::$WoW_Path . '/static';
break;
}
$css_data = array(array('path' => '/local-common/css/common.css', 'version' => 15, 'browser' => false, 'skip_path' => false), array('path' => '/local-common/css/common-game-site.min.css', 'version' => 15, 'browser' => false, 'skip_path' => false), array('path' => '/local-common/css/common-ie.css', 'version' => 15, 'browser' => 'IE', 'skip_path' => false), array('path' => '/local-common/css/common-ie6.css', 'version' => 15, 'browser' => 'IE 6', 'skip_path' => false), array('path' => '/local-common/css/common-ie7.css', 'version' => 15, 'browser' => 'IE 7', 'skip_path' => false), array('path' => '/css/bnet.css', 'version' => 5, 'browser' => false, 'skip_path' => false), array('path' => '/css/bnet-ie.css', 'version' => 5, 'browser' => 'IE', 'skip_path' => false), array('path' => '/css/bnet-ie6.css', 'version' => 5, 'browser' => 'IE 6', 'skip_path' => false), array('path' => '/css/bnet-ie7.css', 'version' => 5, 'browser' => 'IE 7', 'skip_path' => false));
switch (WoW_Template::GetPageIndex()) {
default:
$css_data_page = array(array('path' => '/css/homepage.css', 'version' => 5, 'browser' => false, 'skip_path' => false));
break;
case 'management':
$css_data_page = array(array('path' => '/css/bnet-print.css', 'version' => 19, 'media' => 'print', 'browser' => false, 'skip_path' => false), array('path' => '/css/inputs.css', 'version' => 19, 'browser' => false, 'skip_path' => false), array('path' => '/css/inputs-ie6.css', 'version' => 19, 'browser' => 'IE 6', 'skip_path' => false), array('path' => '/css/inputs-ie7.css', 'version' => 19, 'browser' => 'IE 7', 'skip_path' => false), array('path' => '/css/management/lobby.css', 'version' => 19, 'browser' => false, 'skip_path' => false), array('path' => '/css/management/lobby-ie.css', 'version' => 19, 'browser' => 'IE', 'skip_path' => false));
break;
case 'dashboard':
$css_data_page = array(array('path' => '/css/bnet-print.css', 'media' => 'print', 'version' => 19, 'browser' => false, 'skip_path' => false), array('path' => '/css/management/dashboard.css', 'version' => 19, 'browser' => false, 'skip_path' => false), array('path' => '/css/management/wow/dashboard.css', 'version' => 19, 'browser' => false, 'skip_path' => false), array('path' => '/css/management/wow/dashboard-ie.css', 'version' => 19, 'browser' => 'IE', 'skip_path' => false), array('path' => '/css/management/wow/dashboard-ie6.css', 'version' => 19, 'browser' => 'IE 6', 'skip_path' => false));
break;
case 'landing':
switch (WoW_Template::GetPageData('landing')) {
case 'what_is':
$css_data_page = array(array('path' => '/css/landing/info.css', 'version' => 5, 'browser' => false, 'skip_path' => false), array('path' => '/css/landing/info-ie6.css', 'version' => 5, 'browser' => 'IE 6', 'skip_path' => false));
break;
case '404':
$css_data_page = array(array('path' => '/css/error.css', 'version' => 6, 'browser' => false, 'skip_path' => false));
break;
}
break;
case 'creation_tos':
case 'creation_success':
$css_data_page = array(array('path' => '/css/bnet-print.css', 'version' => 19, 'media' => 'print', 'browser' => false, 'skip_path' => false), array('path' => '/css/inputs.css', 'version' => 19, 'browser' => false, 'skip_path' => false), array('path' => '/css/inputs-ie6.css', 'version' => 19, 'browser' => 'IE 6', 'skip_path' => false), array('path' => '/css/inputs-ie7.css', 'version' => 19, 'browser' => 'IE 7', 'skip_path' => false), array('path' => '/css/account-creation/streamlined-creation.css', 'version' => 19, 'browser' => false, 'skip_path' => false), array('path' => '/css/account-creation/streamlined-creation-ie6.css', 'version' => 19, 'browser' => 'IE 6', 'skip_path' => false), array('path' => '/css/account-creation/streamlined-creation-ie7.css', 'version' => 19, 'browser' => 'IE 7', 'skip_path' => false));
break;
case 'add_game':
$css_data_page = array(array('path' => '/css/management/add-game.css', 'version' => 19, 'browser' => false, 'skip_path' => false));
break;
case 'password_reset':
$css_data_page = array(array('path' => '/css/bnet-print.css', 'version' => 19, 'media' => 'print', 'browser' => false, 'skip_path' => false), array('path' => '/css/cant-login/cant-login.css', 'version' => 19, 'browser' => false, 'skip_path' => false));
break;
case 'password_reset_select':
case 'password_reset_secred_answer':
case 'password_reset_success':
case 'password_reset_confirm':
case 'password_reset_changed':
$css_data_page = array(array('path' => '/css/bnet-print.css', 'version' => 19, 'media' => 'print', 'browser' => false, 'skip_path' => false), array('path' => '/css/support/support.css', 'version' => 19, 'browser' => false, 'skip_path' => false));
break;
case 'account_conversion':
$css_data_page = array(array('path' => '/css/bnet-print.css', 'version' => 19, 'media' => 'print', 'browser' => false, 'skip_path' => false), array('path' => '/css/inputs.css', 'version' => 19, 'browser' => false, 'skip_path' => false), array('path' => '/css/inputs-ie6.css', 'version' => 19, 'browser' => 'IE 6', 'skip_path' => false), array('path' => '/css/inputs-ie7.css', 'version' => 19, 'browser' => 'IE 7', 'skip_path' => false), array('path' => '/css/management/wow/merge/wow-merge.css', 'version' => 19, 'media' => 'all', 'browser' => false, 'skip_path' => false));
break;
}
$cssList = array_merge($css_data, $css_data_page);
$cssList[] = array('path' => sprintf('/local-common/css/locale/%s.css', WoW_Locale::GetLocale(LOCALE_DOUBLE)), 'version' => 15, 'browser' => false, 'skip_path' => false);
$cssList[] = array('path' => sprintf('/css/locale/%s.css', WoW_Locale::GetLocale(LOCALE_DOUBLE)), 'version' => 5, 'browser' => false, 'skip_path' => false);
$css_str = '';
foreach ($cssList as &$sheet) {
if ($sheet['skip_path']) {
$css_str .= self::PrintCSS($sheet['path'], $sheet['version'], $sheet['browser'], isset($sheet['media']) ? $sheet['media'] : false);
} else {
$css_str .= self::PrintCSS($root_path . $sheet['path'], $sheet['version'], $sheet['browser'], isset($sheet['media']) ? $sheet['media'] : false);
}
}
return $css_str;
}
示例2:
<a href="<?php
echo WoWConfig::$YourDomain;
echo WoW_Locale::GetLocale();
?>
?locale=en-us/" tabindex="100" onclick="Locale.trackEvent('Change Language', 'es-mx to en-us'); return true;">
English (US)
</a>
</li>
</ul>
</div>
<span class="clear"><!-- --></span>
</div>
</div>
<!-- This - need Fix - end -->
<?php
if (WoW_Template::GetTemplateTheme() == 'wow') {
echo '<div id="legal">
<div id="legal-ratings" class="png-fix">
<a rel="nofollow" class="truste-link" href="http://privacy-policy.truste.com/click-with-confidence/ctv/en/us.battle.net/seal_m" target="_blank">
<img class="legal-image" src="' . WoW::GetWoWPath() . '/wow/static/images/legal/seal_m.png" alt="Validar certificado de privacidad TRUSTe"/>
</a>
<a href="http://www.pegi.info/" onclick="return Core.open(this);">
<img class="legal-image" alt="" src="' . WoW::GetWoWPath() . '/wow/static/local-common/images/legal/eu/pegi-wow.png" />
</a>
</div>
<div id="blizzard" class="png-fix">
<a href="http://blizzard.com" tabindex="100">
<img src="' . WoW::GetWoWPath() . '/wow/static/local-common/images/logos/blizz-wow.png" alt="" />
</a>
</div>
<center>