本文整理汇总了PHP中WoW_Template::GetPageData方法的典型用法代码示例。如果您正苦于以下问题:PHP WoW_Template::GetPageData方法的具体用法?PHP WoW_Template::GetPageData怎么用?PHP WoW_Template::GetPageData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WoW_Template
的用法示例。
在下文中一共展示了WoW_Template::GetPageData方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
$proto = WoW_Template::GetPageData('proto');
?>
<div id="content">
<div class="content-top">
<div class="content-trail">
<?php
WoW_Template::NavigationMenu();
?>
<!--<ol class="ui-breadcrumb">
<li>
<a href="<?php
echo WoW::GetWoWPath();
?>
/wow/" rel="np">
World of Warcraft
</a>
</li>
<li>
<a href="<?php
echo WoW::GetWoWPath();
?>
/wow/game/" rel="np">
<?php
echo WoW_Locale::GetString('template_menu_game');
?>
</a>
</li>
<li>
<a href="<?php
示例2:
<textarea id="postCommand.detail" name="postCommand.detail" class="post-editor" cols="78" rows="13"><?php
echo WoW_Template::GetPageData('edit_text');
?>
</textarea>
<script type="text/javascript" src="/wow/static/local-common/js/bml.js"></script>
<script type="text/javascript">
//<![CDATA[
$(function() {
Wow.addBmlCommands();
BML.initialize('#post-edit', false);
});
//]]>
</script>
</div>
<div class="post-detail" id="post-preview" style="display: none; "><?php
echo WoW_Template::GetPageData('edit_text');
?>
</div>
<div class="talkback-btm">
<table class="dynamic-center ">
<tr>
<td>
<div id="submitBtn">
<button class="ui-button button1 " type="submit">
<span>
<span><?php
echo WoW_Locale::GetString('template_forum_submit');
?>
</span>
</span>
</button>
示例3: sprintf
<a href="<?php
echo WoW_Characters::GetURL();
?>
pvp" class="" rel="np"><span class="arrow"><span class="icon">PvP</span></span></a>
</li>
<li class="<?php
echo WoW_Template::GetPageData('page') == 'character_feed' ? ' active' : null;
?>
">
<a href="<?php
echo WoW_Characters::GetURL();
?>
feed" class="" rel="np"><span class="arrow"><span class="icon"><?php
echo WoW_Locale::GetString('template_profile_feed');
?>
</span></span></a>
</li>
<?php
if (WoW_Account::IsAccountCharacter()) {
echo sprintf('<li class="%s">
<a href="%s/wow/vault/character/friend" class=" vault" rel="np"><span class="arrow"><span class="icon">%s</span></span></a>
</li>', WoW_Template::GetPageData('page') == 'vault_friends' ? ' active' : null, WoW::GetWoWPath(), WoW_Locale::GetString('template_profile_friends'));
}
if (WoW_Characters::GetGuildID() > 0) {
echo sprintf('<li class="%s">
<a href="%s?character=%s" class=" has-submenu" rel="np"><span class="arrow"><span class="icon">%s</span></span></a>
</li>', WoW_Template::GetPageData('page') == 'guild_roster' ? ' active' : null, WoW_Characters::GetGuildURL(), urlencode(WoW_Characters::GetName()), WoW_Locale::GetString('template_profile_guild'));
}
?>
</ul>
示例4:
?>
&page=4">4</a>
<div class="page-sep"></div>
<a href="<?php
echo WoW::GetWoWPath();
?>
/wow/search?q=<?php
echo WoW_Template::GetPageData('searchQuery');
?>
&page=5">5</a>
<a href="<?php
echo WoW::GetWoWPath();
?>
/wow/search?q=<?php
echo WoW_Template::GetPageData('searchQuery');
?>
&page=6">6</a>
<a href="<?php
echo WoW::GetWoWPath();
?>
/wow/search?q=<?php
echo WoW_Template::GetPageData('searchQuery');
?>
&page=2">Далее ></a>
</div>
</div>
</div>
<span class="clear"><!-- --></span>
</div>
</div>
</div>
示例5: sprintf
<div id="cms-account-status" class="ajax-update">
<div id="forum-content">
<div class="section-header">
<?php
if (WoW_Template::GetPageData('account-status') == 'no_subscribe') {
echo WoW_Locale::GetString('template_account_status_posting_disabled');
}
?>
</div>
<div class="bannedInfo">
<div class="banned-int">
<div class="center">
<?php
echo WoW_Locale::GetString('template_account_status_info_' . WoW_Template::GetPageData('account-status'));
?>
</div>
</div>
</div>
</div>
<div class="center">
<?php
if (WoW_Template::GetPageData('account-status') == 'no_subscribe') {
echo sprintf('%s<div><a class="ui-button button1 " href="?logout"><span><span>%s</span></span></a></div>', WoW_Locale::GetString('template_account_status_clear_session'), WoW_Locale::GetString('template_account_status_log_out'));
}
?>
</div>
</div>
</div>
</div>
</div>
示例6:
?>
/wow/zone/#expansion=<?php
echo $zone_info['expansion'];
?>
" rel="np">
<?php
echo WoW_Locale::GetString('template_expansion_' . $zone_info['expansion']);
?>
</a>
</li>
<li class="last">
<a href="<?php
echo WoW::GetWoWPath();
?>
/wow/zone/<?php
echo WoW_Template::GetPageData('zone_key');
?>
/" rel="np">
<?php
echo $zone_info['name'];
?>
</a>
</li>
</ol>-->
</div>
<div class="content-bot">
<div id="wiki" class="wiki wiki-zone">
<div class="sidebar">
<table class="media-frame">
<tr>
示例7:
</tr>
<tr>
<td class="ml"></td>
<td class="mm">
<a href="<?php
echo WoW::GetWoWPath();
?>
/wow/media/screenshots/classes?keywords=<?php
echo WoW_Template::GetPageData('class');
?>
">
<img src="<?php
echo WoW::GetWoWPath();
?>
/wow/static/images/game/class/thumbnails/<?php
echo WoW_Template::GetPageData('class');
?>
-screenshot.jpg" alt="<?php
echo WoW_Locale::GetString('template_game_class_screenshots');
?>
" title="<?php
echo WoW_Locale::GetString('template_game_class_screenshots');
?>
" width="327" height="134" /></a>
<div class="caption"><a href="javascript:;" class="view-all"><?php
echo WoW_Locale::GetString('template_game_class_viewall');
?>
</a><?php
echo WoW_Locale::GetString('template_game_class_screenshots');
?>
<span class="clear"><!-- --></span>
示例8:
WoW_Template::LoadTemplate('content_management');
break;
case 'dashboard':
WoW_Template::LoadTemplate('content_dashboard');
break;
case 'creation_tos':
WoW_Template::LoadTemplate('content_creation_tos');
break;
case 'creation_success':
WoW_Template::LoadTemplate('content_creation_success');
break;
case 'add_game':
WoW_Template::LoadTemplate('content_add_game');
break;
case 'account_conversion':
WoW_Template::LoadTemplate('content_conversion_s' . WoW_Template::GetPageData('conversion_page'));
break;
}
?>
<div id="layout-bottom">
<div class="wrapper">
<?php
WoW_Template::LoadTemplate('block_footer', true);
?>
</div>
</div>
<?php
WoW_Template::LoadTemplate('block_js_messages', true);
?>
<script type="text/javascript" src="<?php
echo WoW::GetWoWPath();
示例9: switch
echo WoW_Locale::GetString('template_bn_search');
?>
" maxlength="200" alt="<?php
echo WoW_Locale::GetString('template_bn_search');
?>
" />
</div>
</form>
</div>
<h1 id="logo"><a href="<?php
echo WoW::GetWoWPath();
?>
/">Battle.net</a></h1>
</div>
<?php
switch (WoW_Template::GetPageData('landing')) {
case 'what_is':
WoW_Template::LoadTemplate('content_what_is');
break;
case '404':
WoW_Template::LoadTemplate('content_404');
break;
}
WoW_Template::LoadTemplate('block_footer', true);
WoW_Template::LoadTemplate('block_service', true);
WoW_Template::LoadTemplate('block_js_messages', true);
?>
<script type="text/javascript" src="<?php
echo WoW::GetWoWPath();
?>
/static/js/bnet.js?v5"></script>
示例10: sprintf
</div>
<div class="summary-weekly-contributors">
<h3 class="category "><?php
echo WoW_Locale::GetString('template_guild_top_contributors');
?>
</h3>
<div class="profile-box-simple">
<?php
echo WoW_Locale::GetString('template_guild_no_contributors');
?>
</div>
</div>
</div>
<div class="summary-left">
<?php
if (WoW_Template::GetPageData('guild-authorized')) {
echo sprintf('<div class="summary-motd">
<div class="description"><span class="icon">%s</span></div>
</div>', WoW_Guild::GetGuildMOTD());
}
?>
<div class="summary-activity">
<h3 class="category "><?php
echo WoW_Locale::GetString('template_guild_feed_recent_news');
?>
</h3>
<div class="profile-box-simple">
<?php
WoW_Template::LoadTemplate('block_guild_news');
?>
</div>
示例11:
echo WoW_Locale::GetString('template_filter_caption');
?>
</span>
</span>
</button>
<a href="<?php
echo WoW::GetWoWPath();
?>
/wow/<?php
echo WoW_Locale::GetLocale();
?>
/pvp/arena/<?php
echo WoW_Template::GetPageData('activeBG');
?>
/<?php
echo WoW_Template::GetPageData('teamFormatS');
?>
"><?php
echo WoW_Locale::GetString('template_guild_roster_reset_filter');
?>
</a>
</div>
</form>
<div id="ladders">
<div class="table-options">
<div class="option">
<?php
$teams = WoW_Arena::GetTopTeams($format, $bg['id'], 50, $offset);
$total_count = WoW_Arena::GetTopTeams($format, $bg['id'], 0, 0, true);
$pagination = '<ul class="ui-pagination">';
示例12: sprintf
<div id="news-updates">
<?php
$wow_news = WoW_Template::GetPageData('wow_news');
for ($i = 0; $i < 11; $i++) {
if (!isset($wow_news[$i])) {
continue;
}
echo sprintf('<div class="news-article first-child">
<h3><a href="%s/wow/blog/%d#blog">%s</a></h3>
<div class="by-line">
<a href="%s/wow/search?f=article&a=%s">%s</a>
<span class="spacer">//</span> %s
<a href="%s/wow/blog/%d#comments" class="comments-link">%d</a>
</div>
<div class="article-left" style="background-image: url(\'%s/cms/blog_thumbnail/%s\');">
<a href="%s/wow/blog/%d"><img src="%s/wow/static/images/homepage/thumb-frame.gif" alt="" /></a>
</div>
<div class="article-right">
<div class="article-summary">
%s
<a href="%s/wow/blog/%d#blog" class="more">%s</a>
</div>
</div>
<span class="clear"><!-- --></span>
</div>', WoW::GetWoWPath(), $wow_news[$i]['id'], $wow_news[$i]['title'], WoW::GetWoWPath(), urlencode($wow_news[$i]['author']), $wow_news[$i]['author'], date('d M Y H:i', $wow_news[$i]['postdate']), WoW::GetWoWPath(), $wow_news[$i]['id'], $wow_news[$i]['comments_count'], WoW::GetWoWPath(), $wow_news[$i]['image'], WoW::GetWoWPath(), $wow_news[$i]['id'], WoW::GetWoWPath(), $wow_news[$i]['desc'], WoW::GetWoWPath(), $wow_news[$i]['id'], WoW_Locale::GetString('template_articles_full_caption'));
}
?>
<?php
// paging
if (WoW::GetPrevPage() >= 0 || WoW::GetNextPage() >= 0) {
echo '<div class="blog-paging">';
示例13: function
<div class="alert error closeable border-4 glow-shadow">
<div class="alert-inner">
<div class="alert-message">
<p class="title"><strong><?php
echo WoW_Locale::GetString('template_js_unexpectedError');
?>
</strong></p>
<p class="error.email.unavailable"><?php
echo WoW_Template::GetPageData('account_creation_error_msg');
?>
</p>
</div>
</div>
<a class="alert-close" href="#" onclick="$(this).parent().fadeOut(250, function() { $(this).css({opacity:0}).animate({height: 0}, 100, function() { $(this).remove(); }); }); return false;"><?php
echo WoW_Locale::GetString('template_blog_close_report');
?>
</a>
<span class="clear"><!-- --></span>
</div>
示例14: array
<?php
$allowed_types = array('dropCreatures', 'dropGameObjects', 'vendors', 'currencyForItems', 'rewardFromQuests', 'skinnedFromCreatures', 'pickPocketCreatures', 'minedFromCreatures', 'createdBySpells', 'reagentForSpells', 'disenchantItems', 'comments');
$filtered_types = array('dropCreatures', 'dropGameObjects', 'vendors', 'currencyForItems', 'rewardFromQuests', 'skinnedFromCreatures', 'pickPocketCreatures', 'minedFromCreatures', 'createdBySpells', 'disenchantItems');
$tab_type = WoW_Template::GetPageData('tab_type');
$entry = WoW_Template::GetPageData('item_entry');
$all_item_tabs = WoW_Items::GetItemTabsNames($entry);
$allowed_item_tabs = array();
foreach ($all_item_tabs as $tab) {
$allowed_item_tabs[] = $tab['type'];
}
?>
<div class="related-content" id="related-<?php
echo $tab_type;
?>
">
<?php
if (in_array($tab_type, $allowed_types)) {
if (in_array($tab_type, $filtered_types)) {
echo sprintf('<div class="filters inline">
<div class="keyword">
<input id="filter-name-%s" type="text" class="input filter-name" data-filter="row" maxlength="25" title="%s" value="%s" />
</div>
<span class="clear"><!-- --></span>
</div>', $tab_type, WoW_Locale::GetString('template_filter_caption'), WoW_Locale::GetString('template_filter_caption'));
}
if ($tab_type == 'currencyForItems') {
// Extra filter
echo sprintf('<div class="filter">
<label for="filter-class">%s</label>
示例15: GetPageTitle
public static function GetPageTitle()
{
switch (WoW_Template::GetPageIndex()) {
case 'character_profile_simple':
case 'character_profile_advanced':
return sprintf('%s @ %s - %s - ', WoW_Characters::GetName(), WoW_Characters::GetRealmName(), WoW_Locale::GetString('template_menu_game'));
case 'character_talents':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_profile_talents'), WoW_Locale::GetString('template_menu_game'));
case 'character_achievements':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_profile_achievements'), WoW_Locale::GetString('template_menu_game'));
case 'character_reputation':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_profile_reputation'), WoW_Locale::GetString('template_menu_game'));
case 'character_statistics':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_profile_statistics'), WoW_Locale::GetString('template_menu_game'));
case 'character_pvp':
return sprintf('PvP - %s - ', WoW_Locale::GetString('template_menu_game'));
case 'character_feed':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_character_feed'), WoW_Locale::GetString('template_menu_game'));
case 'item':
return sprintf('%s - ', WoW_Template::GetPageData('itemName'));
case 'item_list':
return sprintf('%s - ', WoW_Template::GetPageData('last-crumb'));
case 'guild_page':
return sprintf('%s @ %s - ', WoW_Guild::GetGuildName(), WoW_Guild::GetGuildRealmName());
case 'guild_perks':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_guild_menu_perks'), WoW_Locale::GetString('template_menu_game'));
case 'guild_roster':
case 'guild_professions':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_guild_menu_roster'), WoW_Locale::GetString('template_menu_game'));
case 'search':
return WoW_Search::GetSearchQuery() != null ? sprintf('%s - %s - ', WoW_Search::GetSearchQuery(), WoW_Locale::GetString('template_search')) : sprintf('%s - ', WoW_Locale::GetString('template_search'));
case 'realm_status':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_realm_status'), WoW_Locale::GetString('template_menu_game'));
case 'blog':
return sprintf('%s - ', WoW_Template::GetPageData('blog_title'));
case 'game':
return sprintf('%s - ', WoW_Locale::GetString('template_menu_game'));
case 'game_guide_what_is_wow':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_menu_game_guide_what_is_wow'), WoW_Locale::GetString('template_menu_game'));
case 'game_guide_getting_started':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_menu_game_guide_getting_started'), WoW_Locale::GetString('template_menu_game'));
case 'game_guide_how_to_play':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_menu_game_guide_how_to_play'), WoW_Locale::GetString('template_menu_game'));
case 'game_guide_playing_together':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_menu_game_guide_playing_together'), WoW_Locale::GetString('template_menu_game'));
case 'game_guide_late_game':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_menu_game_guide_late_game'), WoW_Locale::GetString('template_menu_game'));
case 'game_race_index':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_game_race_index'), WoW_Locale::GetString('template_menu_game'));
case 'game_race':
return sprintf('%s - %s - ', WoW_Locale::GetString('character_race_' . WoW_Template::GetPageData('raceId')), WoW_Locale::GetString('template_menu_game'));
case 'game_class_index':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_game_class_index'), WoW_Locale::GetString('template_menu_game'));
case 'game_class':
return sprintf('%s - %s - ', WoW_Locale::GetString('character_class_' . WoW_Template::GetPageData('classId')), WoW_Locale::GetString('template_menu_game'));
case 'password_reset':
return sprintf('%s - Battle.Net', WoW_Locale::GetString('login_help_title'));
case 'password_reset_select':
case 'password_reset_secred_answer':
case 'password_reset_success':
case 'password_reset_confirm':
case 'password_reset_changed':
return sprintf('%s - Battle.Net', WoW_Locale::GetString('template_account_password_reset_title'));
case 'dashboard':
return sprintf('%s - Battle.Net', WoW_Locale::GetString('expansion_' . WoW_Account::GetExpansion()));
case 'landing':
switch (WoW_Template::GetPageData('landing')) {
case 'what_is':
return sprintf('%s - Battle.Net', WoW_Locale::GetString('template_bn_what_is_it_title'));
}
break;
case 'creation_tos':
case 'creation_success':
case 'account_conversion':
case 'management':
return WoW_Locale::GetString('template_management_main_title');
//[PH]
//[PH]
case 'auction_lots':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_auction_menu_lots'), WoW_Locale::GetString('template_menu_game'));
case 'forum_index':
return sprintf('%s - ', WoW_Locale::GetString('template_menu_forums'));
case 'forum_category':
return sprintf('%s - %s - ', WoW_Template::GetPageData('forum_category_title'), WoW_Locale::GetString('template_menu_forums'));
case 'forum_thread':
return sprintf('%s - %s - ', WoW_Template::GetPageData('forum_thread_title'), WoW_Locale::GetString('template_menu_forums'));
case 'forum_blizztracker':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_blizztracker_title'), WoW_Locale::GetString('template_menu_forums'));
case 'zones':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_game_dungeons_and_raids'), WoW_Locale::GetString('template_menu_game'));
case 'zone':
return sprintf('%s - %s - ', WoW_Template::GetPageData('zone_name'), WoW_Locale::GetString('template_menu_game'));
case 'pvp_arena':
return sprintf('PvP - %s - ', WoW_Locale::GetString('template_menu_game'));
case 'character_companions_mounts':
return sprintf('%s - %s - ', WoW_Locale::GetString('template_profile_' . WoW_Template::GetPageData('category') . 's'), WoW_Locale::GetString('template_menu_game'));
case 'shop':
return sprintf('%s - ', WoW_Locale::GetString('template_shop_title'));
default:
return '';
//.........这里部分代码省略.........