<?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
<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>
<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>
?> &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>
<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>
?> /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>
</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>
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();
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>
</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>
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">';
<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">';
<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>
<?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>
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 ''; } }
<a class="ui-button button2 " href="#new-post" onclick="Cms.Topic.quote(%d);"><span><span><span class="icon-quote">%s</span></span></span></a> </div> <span class="clear"><!-- --></span> </div> </div> </div>', $post['post_id'], $post['blizzpost'] ? ' blizzard' : null, $post_num, $post['blizzpost'] ? 'javascript:;' : $character_url, $post['race'], $post['gender'], $post['author'], $post['blizzpost'] ? ' style="display: none; "' : null, $post['author'], $post['guildName'], $character_links, $post['blizzpost'] ? 'javascript:;' : $character_url, $post['blizzpost'] ? null : ' color-c' . $post['class'], $post['author'], $post['blizzpost'] ? ' class="blizzard-title"' : null, $post['blizzpost'] ? WoW_Locale::GetString('template_forum_blizz_title') : $character_description, $post['edit_date'] != null ? sprintf(WoW_Locale::GetString('template_forum_post_edited'), $post['author'], $post['formated_edit_date']) : null, $post['message'], $post_num, $post_num, $post['fully_formated_date'], $post['formated_date'], $blizz_icon_link, $post['bn_id'] == WoW_Account::GetUserID() ? $post_options : null, WoW_Locale::GetString('template_blog_answer'), $post['post_id'], WoW_Locale::GetString('template_forum_post_quote')); } ++$post_num; } } ?> </div> <div class="forum-actions bottom"> <div class="actions-panel"> <?php echo WoW_Paginator::Initialize(WoW_Template::GetPageData('current_page'), WoW_Forums::GetTotalThreadPosts(), 20, 'forum'); echo WoW_Template::NavigationMenu(); ?> <span class="clear"><!-- --></span> </div> </div> <div class="talkback"><a id="new-post"></a> <form method="post" onsubmit="return Cms.Topic.postValidate(this);" action="#new-post"> <div> <input type="hidden" name="xstoken" value="fbc9d52f-99bf-4639-b2b5-7a535e7f31fe"/> <input type="hidden" name="sessionPersist" value="forum.topic.post"/> <div class="post "> <?php if (WoW_Forums::IsClosedThread()) { echo sprintf('<table class="dynamic-center "><tr><td>%s</td></tr></table>', WoW_Locale::GetString('template_forum_topic_closed')); } elseif (!WoW_Account::IsLoggedIn()) {
<div class="wrapper" id="wrapper"> <div class="wrapper-center" id="wrapper-center"></div> <div class="wrapper-right" id="wrapper-right"><a href="#" class="header-expandsite" id="header-expandsite"></a></div> <?php WoW_Template::LoadTemplate('block_toplinks'); ?> <div class="toptabs" id="toptabs"></div> <div class="topbar" id="topbar"> <div class="topbar-search"> <form action="<?php echo WoW::GetWoWPath(); ?> /search"><input name="q" value="<?php echo WoW_Template::GetPageData('search_terms'); ?> " /></form></div> <div class="topbar-buttons"></div> </div> <div class="main" id="main"> <div class="main-precontents" id="main-precontents"></div> <div class="main-contents" id="main-contents"> <?php if (WoW_Template::GetPageAnnouncement() >= 0) { echo '<div id="announcement-' . WoW_Template::GetPageAnnouncement() . '"></div>'; } ?> <?php if (WoW::IsRegisteredPage() && !WoW_Template::IsErrorPage()) {
private static function GetFiltersForItems() { $filter_string = null; $andOr = 1; $all_filters = WoW::GetFilters(); if (is_array($all_filters)) { foreach ($all_filters as $filter) { if (!isset($filter['key']) || !isset($filter['values'])) { continue; } $val_count = count($filter['values']); switch ($filter['key']) { // Name case 'na': if (WoW_Locale::GetLocaleID() > 0) { $filter_string .= sprintf(" {COND} ((`b`.`name_loc%d` LIKE '%s') OR (`a`.`name` LIKE '%s'))", WoW_Locale::GetLocaleID(), '%' . $filter['values'][0] . '%', '%' . $filter['values'][0] . '%'); } else { $filter_string .= sprintf("' {COND} `a`.`name` LIKE '%s'", '%' . $filter['values'][0] . '%'); } break; // Quality // Quality case 'qu': if ($val_count == 1) { $filter_string .= sprintf(' {COND} `a`.`Quality` = %d', $filter['values'][0]); } else { $filter_string .= ' {COND} `a`.`Quality` IN ( '; self::ApplyMultiFiltersToString($val_count, $filter, $filter_string); } break; // Min item level // Min item level case 'minle': $filter_string .= sprintf(' {COND} `a`.`ItemLevel` >= %d', $filter['values'][0]); break; // Max item level // Max item level case 'maxle': $filter_string .= sprintf(' {COND} `a`.`ItemLevel` <= %d', $filter['values'][0]); break; // At least one? // At least one? case 'ma': if ($filter['values'][0] == 1) { $andOr = 2; } break; // Min req level // Min req level case 'minrl': $filter_string .= sprintf(' {COND} `a`.`RequiredLevel` >= %d', $filter['values'][0]); break; // Max req level // Max req level case 'maxrl': $filter_string .= sprintf(' {COND} `a`.`RequiredLevel` <= %d', $filter['values'][0]); break; // Slot // Slot case 'sl': if ($val_count == 1) { $filter_string .= sprintf(' {COND} `a`.`InventoryType` = %d', $filter['values'][0]); WoW_Template::SetPageData('breadcrumb', WoW_Template::GetPageData('breadcrumb') . ',' . $filter['values'][0]); } else { $filter_string .= ' {COND} `a`.`InventoryType` IN( '; self::ApplyMultiFiltersToString($val_count, $filter, $filter_string); } break; // Side // Side case 'si': switch ($filter['values'][0]) { case -1: // Alliance only $filter_string .= ' {COND} `a`.`AllowableRace` = ' . WoW_Utils::GetFactionBitMaskByFactionId(FACTION_ALLIANCE); break; case 1: // Alliance $filter_string .= ' {COND} `a`.`AllowableRace` & ' . WoW_Utils::GetFactionBitMaskByFactionId(FACTION_ALLIANCE); break; case -2: // Horde only $filter_string .= ' {COND} `a`.`AllowableRace` = ' . WoW_Utils::GetFactionBitMaskByFactionId(FACTION_HORDE); break; case 2: // Horde $filter_string .= ' {COND} `a`.`AllowableRace` & ' . WoW_Utils::GetFactionBitMaskByFactionId(FACTION_HORDE); break; default: // Skip "3" - useable by all break; } break; // Useable by class ID // Useable by class ID case 'ub': if (!($filter['values'][0] < CLASS_WARRIOR) && !($filter['values'][0] >= MAX_CLASSES)) { $filter_string .= ' {COND} `a`.`AllowableClass` & ' . WoW_Utils::GetClassBitMaskByClassId($filter['values'][0]); } break; } } } if (self::$m_items_class >= 0) { $filter_string .= sprintf(' {COND} `a`.`class` = %d', self::$m_items_class); } if (self::$m_items_subclass >= 0) { $filter_string .= sprintf(' {COND} `a`.`subclass` = %d', self::$m_items_subclass); } $filter_string = str_replace('{COND}', $andOr == 2 ? 'OR' : 'AND', $filter_string); $filter_string = substr($filter_string, 5); return $filter_string; }
public static function GetPageTitle($onlyPage = false) { switch (self::GetPageIndex()) { case 'home': return sprintf('%s: %s', WoWConfig::$SiteTitle, self::GetRandomTitle()); case 'error': return sprintf('%s%s', WoW_Locale::GetString('template_404_title'), $onlyPage ? null : sprintf(' - %s', WoWConfig::$SiteTitle)); case 'talent': return sprintf('%s - World of Warcraft', WoW_Locale::GetString('template_talent_calc')); case 'search': return sprintf('%s - %s', WoW_Template::GetPageData('search_query'), WoW_Locale::GetString('template_search_title')); default: return sprintf('%s%s%s', WoW_Template::GetPageData('db_page_title'), WoW_Locale::GetString('template_' . self::GetPageIndex() . '_title'), $onlyPage ? null : ' - World of Warcraft'); } }
if (isset($results['items']) && is_array($results['items'])) { foreach ($results['items'] as &$item) { echo sprintf('_[%d]={name_enus:\'%s\',quality:%d,icon:\'%s\'};', $item['entry'], addslashes($item['name']), $item['quality'], addslashes($item['icon'])); } } ?> $.extend(true, g_items, _); _ = g_items; var _ = {}; _[27672]={name_enus:'Initiate Secret Technique',rank_enus:'',icon:'inv_misc_organ_01'};_[39923]={name_enus:'Legion Ring - Initiate TEST',rank_enus:'',icon:'trade_engineering'};_[47068]={name_enus:'Who Are They: Shadowy Initiate Kill Credit',rank_enus:'',icon:'trade_engineering'};_[51519]={name_enus:'Death Knight Initiate Visual',rank_enus:'',icon:'trade_engineering'};_[51520]={name_enus:'Death Knight Initiate (Male, Human)',rank_enus:'',icon:'trade_engineering'};_[51534]={name_enus:'Death Knight Initiate (Female, Human)',rank_enus:'',icon:'trade_engineering'};_[51535]={name_enus:'Death Knight Initiate (Male, Night Elf)',rank_enus:'',icon:'trade_engineering'};_[51536]={name_enus:'Death Knight Initiate (Female, Night Elf)',rank_enus:'',icon:'trade_engineering'};_[51537]={name_enus:'Death Knight Initiate (Female, Dwarf)',rank_enus:'',icon:'trade_engineering'};_[51538]={name_enus:'Death Knight Initiate (Male, Dwarf)',rank_enus:'',icon:'trade_engineering'};_[51539]={name_enus:'Death Knight Initiate (Male, Gnome)',rank_enus:'',icon:'trade_engineering'};_[51540]={name_enus:'Death Knight Initiate (Female, Gnome)',rank_enus:'',icon:'trade_engineering'};_[51541]={name_enus:'Death Knight Initiate (Male, Draenei)',rank_enus:'',icon:'trade_engineering'};_[51542]={name_enus:'Death Knight Initiate (Female, Draenei)',rank_enus:'',icon:'trade_engineering'};_[51543]={name_enus:'Death Knight Initiate (Male, Orc)',rank_enus:'',icon:'trade_engineering'};_[51544]={name_enus:'Death Knight Initiate (Female, Orc)',rank_enus:'',icon:'trade_engineering'};_[51545]={name_enus:'Death Knight Initiate (Female, Troll)',rank_enus:'',icon:'trade_engineering'};_[51546]={name_enus:'Death Knight Initiate (Male, Troll)',rank_enus:'',icon:'trade_engineering'};_[51547]={name_enus:'Death Knight Initiate (Male, Tauren)',rank_enus:'',icon:'trade_engineering'};_[51548]={name_enus:'Death Knight Initiate (Female, Tauren)',rank_enus:'',icon:'trade_engineering'};_[51549]={name_enus:'Death Knight Initiate (Male, Forsaken)',rank_enus:'',icon:'trade_engineering'};_[51550]={name_enus:'Death Knight Initiate (Female, Forsaken)',rank_enus:'',icon:'trade_engineering'};_[51551]={name_enus:'Death Knight Initiate (Male, Blood Elf)',rank_enus:'',icon:'trade_engineering'};_[51552]={name_enus:'Death Knight Initiate (Female, Blood Elf)',rank_enus:'',icon:'trade_engineering'};_[52546]={name_enus:'Initiate Kill Check',rank_enus:'',icon:'trade_engineering'};_[62722]={name_enus:'Tournament - Mounted Melee - GOSSIP - Initiate Combat',rank_enus:'',icon:'trade_engineering'};_[86201]={name_enus:'A Fiery Reunion: Initiate Goldmine Channel at Magmatooth',rank_enus:'',icon:'trade_engineering'};_[86730]={name_enus:'Mr. Goldmine\'s Wild Ride: Summon Initiate Goldmine QG',rank_enus:'',icon:'trade_engineering'};_[86735]={name_enus:'Initiate Goldmine',rank_enus:'',icon:'achievement_boss_mekgineer_thermaplugg-'};_[86739]={name_enus:'Mr. Goldmine\'s Wild Ride: Resummon Initiate Goldmine QG',rank_enus:'',icon:'trade_engineering'};_[75834]={name_enus:'Initiates Ready',rank_enus:'',icon:'trade_engineering'}; $.extend(true, g_spells, _); _ = g_spells; var myTabs = new Tabs({parent: $WH.ge('jkbfksdbl4')}); <?php if (isset($results['items']) && is_array($results['items'])) { echo 'new Listview({template: \'item\', id: \'items\', name: LANG.tab_items, tabs: myTabs, parent: \'lkljbjkb574\', note: $WH.sprintf(LANG.lvnote_filterresults, \'' . WoW::GetWoWPath() . '/items?filter=na=' . addslashes(WoW_Template::GetPageData('search_query')) . '\'), data: ['; $count = count($results['items']); $current = 1; foreach ($results['items'] as &$item) { $item_fields_count = count($item); $current_field = 1; echo '{'; foreach ($item as $field => $value) { if (in_array($field, array('entry', 'icon'))) { ++$current_field; continue; } if (intval($value) == $value || strpos($value, '{') !== false) { echo '"' . $field . '":"'; if ($field == 'name') { echo 7 - $item['quality'];
public static function GetBoss() { if (!self::$m_boss) { self::LoadBoss(WoW_Template::GetPageData('bossKey')); } return self::$m_boss; }
</div> </td> <td class="post-title"> <div class="content"><a href="../topic/%d?page=13#%d">‘%s’</a></div> <div class="desc">[<a href="../%d/" class="forum-source">%s</a>] <a href="../topic/%d?page=13#%d">%s</a> - %s</div> </td> <td class="post-pageNav"> </td> <td class="post-author"> <span class="type-blizzard">%s<img src="/wow/static/images/layout/cms/icon_blizzard.gif" alt="" /> </span> </td> </tr>', $post['thread_id'], $post['thread_id'], $post['post_id'], WoW_Locale::getString('template_blizztracker_jump_first'), $post['thread_id'], $post['thread_id'], $post['message_short'], $post['cat_id'], $post['categoryTitle'], $post['thread_id'], $post['post_id'], $post['threadTitle'], $before_text, $post['author']); } } ?> </tbody> </table> </div> <div class="forum-actions topic-bottom"> <div class="actions-panel"> <?php // paging echo WoW_Paginator::Initialize(WoW_Template::GetPageData('current_page'), $total_blizz_posts, 15, 'blizztracker'); ?> </div> </div> </div> </div> </div> </div>
?> /wow/player/rating-pegi.jpg'; //]]> </script> <meta name="title" content="<?php echo WoW_Template::GetPageData('overall_meta_title') != null ? WoW_Template::GetPageData('overall_meta_title') : 'World of Warcraft'; ?> " /> <link rel="image_src" href="<?php echo WoW_Template::GetPageData('overall_meta_img') != null ? WoW_Template::GetPageData('overall_meta_img') : WoW::GetWoWPath() . '/wow/static/images/icons/facebook/game.jpg'; ?> " /> <?php switch (WoW_Template::GetPageData('page')) { case 'character_profile': echo sprintf('<style type="text/css">#content .content-top { background: url("%s/wow/static/images/character/summary/backgrounds/race/%d.jpg") left top no-repeat; }.profile-wrapper { background-image: url("%s/wow/static/images/2d/profilemain/race/%d-%d.jpg"); }</style>', WoW::GetWoWPath(), WoW_Characters::GetRaceID(), WoW::GetWoWPath(), WoW_Characters::GetRaceID(), WoW_Characters::GetGender()); break; case 'character_talents': echo sprintf('<style type="text/css">.talentcalc-cell .icon .texture { background-image: url(%s/wow/wow-assets/static/images/talents/icons/%d-greyscale.jpg); }</style>', WoW::GetWoWPath(), WoW_Characters::GetClassID()); break; case 'guild': echo sprintf('<style type="text/css">#content .content-top { background: url("%s/wow/static/images/guild/summary/bg-%s.jpg") left top no-repeat; }</style>', WoW::GetWoWPath(), WoW_Guild::GetGuildFactionText()); break; case 'zone': echo sprintf('<style type="text/css">#content .content-top { background: url("%s/wow/static/images/wiki/zone/bgs/%s.jpg") 0 0 no-repeat; }</style>', WoW::GetWoWPath(), WoW_Template::GetPageData('zone_key')); break; } ?> </head>
<!-- START: Slideshow --> <div id="slideshow"> <div class="container"> <?php $carousel = WoW_Template::GetPageData('carousel'); $i = 0; $paging_text = null; $js_string = null; if (is_array($carousel)) { foreach ($carousel as $carousel_item) { echo sprintf('<div class="slide" id="slide-%d" style="background-image: url(\'%s/cms/carousel_header/%s\');%s"> </div>', $i, WoW::GetWoWPath(), $carousel_item->image, $i > 0 ? ' display: none;' : null); $paging_text .= sprintf('<a href="javascript:;" id="paging-%d" onclick="Slideshow.jump(%d, this);" onmouseover="Slideshow.preview(%d);"%s></a>', $i, $i, $i, $i == 0 ? ' class="current"' : null); $js_string .= sprintf('{ image: "%s/cms/carousel_header/%s", desc: "%s", title: "%s", url: "%s", id: "%d" },', WoW::GetWoWPath(), $carousel_item->image, $carousel_item->desc, $carousel_item->title, $carousel_item->url, $carousel_item->id); $i++; } } ?> </div> <div class="paging"><?php echo $paging_text; ?> </div> <div class="caption"> <?php
<td class="tr"></td> </tr> <tr> <td class="ml"></td> <td class="mm"> <a href="<?php echo WoW::GetWoWPath(); ?> /wow/media/screenshots/races?keywords=<?php echo WoW_Template::GetPageData('race'); ?> "><img src="<?php echo WoW::GetWoWPath(); ?> /wow/static/images/game/race/<?php echo WoW_Template::GetPageData('race'); ?> /thumb-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');
<ul class="profile-view-options" id="profile-view-options-talents"> <?php $talents = WoW_Characters::GetTalentsData(); foreach ($talents['specsData'] as $spec) { echo sprintf('<li%s> <a href="%stalent/%s" rel="np" class="secondary has-icon"> <span class="icon"> <span class="icon-frame frame-14"> <img src="http://eu.battle.net/wow-assets/static/images/icons/18/%s.jpg" alt="" width="14" height="14" /> </span> </span> <span class="%s"></span> %s </a> </li>', WoW_Template::GetPageData('talents') == $spec['text_group'] ? ' class="current"' : null, WoW_Characters::GetURL(), $spec['group'] == 1 ? 'secondary' : 'primary', $spec['icon'], $spec['active'] == 1 ? 'active-spec' : null, $spec['group'] == 1 ? WoW_Locale::GetString('template_secondary_talents') : WoW_Locale::GetString('template_primary_talents')); } ?> </ul> <h3 class="category ">Таланты</h3> </div> <div class="profile-section"> <div class="character-talents">
echo WoW_Locale::GetString('template_guild_menu_achievements'); ?> </span></span></a> </li> <li class="<?php echo WoW_Template::GetPageData('guild-page') == 'perks' ? ' active' : null; ?> "> <a href="<?php echo WoW_Guild::GetGuildUrl(); ?> perk" class="" rel="np"><span class="arrow"><span class="icon"><?php echo WoW_Locale::GetString('template_guild_menu_perks'); ?> </span></span></a> </li> <li class="<?php echo WoW_Template::GetPageData('guild-authorized') == false ? ' disabled' : null; echo WoW_Template::GetPageData('guild-page') == 'rewards' ? ' active' : null; ?> "> <a href="<?php echo WoW_Template::GetPageData('guild-authorized') == true ? '/vault/guild/reward' : 'javascript:;'; ?> " class=" vault" rel="np"><span class="arrow"><span class="icon"><?php echo WoW_Locale::GetString('template_guild_menu_rewards'); ?> </span></span></a> </li> </ul>
<script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/local-common/js/table.js"></script> <script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/local-common/js/cms.js"></script> <script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/local-common/js/filter.js"></script> <script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/local-common/js/utility/model-rotator.js"></script>'; break; case 'guild_page': case 'guild_perks': case 'guild_roster': case 'guild_professions': if (in_array(WoW_Template::GetPageData('page'), array('guild_roster', 'guild_professions'))) { echo '<script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/local-common/js/table.js"></script> <script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/local-common/js/filter.js"></script> <script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/local-common/js/dropdown.js"></script> '; } if (WoW_Template::GetPageData('page') == 'guild_professions') { echo '<script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/js/guild/professions.js?v7"></script>'; } echo '<script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/js/profile.js?v6"></script> <script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/js/character/guild-tabard.js?v6"></script> <script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/js/guild/guild.js?v7"></script>'; break; case 'search': echo '<script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/local-common/js/table.js"></script> <script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/js/character/guild-tabard.js?v7"></script>'; break; case 'realm_status': echo '<script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/local-common/js/table.js"></script> <script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/local-common/js/filter.js"></script> <script type="text/javascript" src="' . WoW::GetWoWPath() . '/wow/static/js/services/realm-status.js?v7"></script>'; break;
<!DOCTYPE html> <html> <head> <title><?php echo WoW_Template::GetPageTitle(); ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="description" content="<?php echo WoW_Template::GetPageData('meta_description'); ?> " /> <link rel="shortcut icon" href="<?php echo WoW::GetStaticUrl(); ?> /favicon.ico" /> <link rel="canonical" href="<?php echo WoW::GetUrl(); ?> " /> <link rel="search" type="application/opensearchdescription+xml" href="<?php echo WoW::GetStaticUrl(); ?> /download/searchplugins/wowhead.xml" title="Wowhead" /> <link rel="apple-touch-icon-precomposed" href="<?php echo WoW::GetStaticUrl(); ?> /apple-touch-icon.png" />
<div id="layout-middle"> <div class="wrapper"> <div id="content"> <div id="page-header"> <h3 class="caption">Создание записи завершено.</h3> </div> <div id="page-content"> <div class="account-success section-box border-5"> <div class="account-verification"> <h4 class="headline text-green">На ваш E-mail было выслано контрольное сообщение.</h4> <p>Чтобы открыть для вашей учетной записи Battle.net доступ к дополнительным возможностям (в частности, закрепить за записью любую игру Blizzard и загрузить ее, когда захотите, с любого компьютера), вам необходимо будет перейти по указанной в этом сообщении ссылке.</p> </div> <div class="account-name"> <h5 class="subcategory">Название записи (E-mail):</h5> <p class="headline"><?php echo WoW_Template::GetPageData('email'); ?> </p> </div> <div class="account-details"> <p class="caption">Адрес для авторизации.</p> <p>При входе на сайты Battle.net или в различные игры требуется авторизация: нужно указать название учетной записи и пароль. Этот адрес будет названием вашей учетной записи. Вы в любой момент можете изменить его в разделе управления записью.</p> </div> </div> </div> <script type="text/javascript"> //<![CDATA[ $(function() { Core.loadDeferredScript('HTTPS://bs.serving-sys.com/BurstingPipe/ActivityServer.bs?cn=as&ActivityID=97825&Value=Revenue&OrderID=OrderID&ProductID=ProductID&ProductInfo=ProductInfo'); }); //]]>