<!--<ol class="ui-breadcrumb"> <li> <a href="<?php echo WoW::GetWoWPath(); ?> /wow/" rel="np"> World of Warcraft </a> </li> <li class="last"> <a href="<?php echo WoW::GetWoWPath(); ?> /wow/search" rel="np"> <?php echo WoW_Locale::GetString('template_search'); ?> </a> </li> </ol>--> </div> <?php if (WoW_Search::GetSearchQuery() != null && WoW_Search::GetResultsCount() > 0) { WoW_Template::LoadTemplate('block_search_results'); } else { WoW_Template::LoadTemplate('block_search_box'); } ?> </div> </div>
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 ''; } }
<div class="result-title"> <div class="type-icon type-wowitem border-q%d" style="background-image:url(http://eu.battle.net/wow-assets/static/images/icons/36/%s.jpg)"> <a href="%s/wow/' . WoW_Locale::GetLocale() . '/item/%d" rel="item:%d"> <img width="32" height="32" src="http://eu.battle.net/wow-assets/static/images/icons/36/%s.jpg" alt=""/> </a> </div> <a href="%s/wow/' . WoW_Locale::GetLocale() . '/item/%d" class="search-title color-q%d">%s</a> </div> <div>%s</div> %s / %s / %s<br /> <a href="javascript:;" data-fansite="npc|41378|Малориак" class="fansite-link float-right"> </a> Создание: Малориак<br />%s <span class="price"> <span class="icon-gold">%d</span> <span class="icon-silver">%d</span> <span class="icon-copper">%d</span> </span> </div> </div>', $item['Quality'], $itemIcon, WoW::GetWoWPath(), $item['entry'], $item['entry'], $itemIcon, WoW::GetWoWPath(), $item['entry'], $item['Quality'], $item['name'], $item['bonding'] > 0 ? WoW_Locale::GetString('template_item_bonding_' . $item['bonding']) : null, $classSubClassString, sprintf(WoW_Locale::GetString('template_item_itemlevel'), $item['ItemLevel']), $item['RequiredLevel'] > 0 ? sprintf(WoW_Locale::GetString('template_item_required_level'), $item['RequiredLevel']) : null, WoW_Locale::GetString('template_item_sell_price'), $sellPrice['gold'], $sellPrice['silver'], $sellPrice['copper']); } echo sprintf(' <div class="more-results"> <a href="?q=%s&f=wowitem" class="more"> Больше результатов по запросу «%s» </a> </div> </div>', WoW_Search::GetSearchQuery(), WoW_Search::GetSearchQuery(), WoW_Search::GetSearchQuery()); } } ?> </div>
echo WoW_Template::GetPageData('body_class'); ?> "> <div id="wrapper"> <div id="header"> <div id="search-bar"> <form action="<?php echo WoW::GetWoWPath(); ?> /wow/search" method="get" id="search-form"> <div> <input type="submit" id="search-button" value="" tabindex="41" /> <input type="text" name="q" id="search-field" maxlength="200" tabindex="40" alt="<?php echo WoW_Locale::GetString('template_search_site'); ?> " value="<?php echo WoW_Search::GetSearchQuery() != null ? WoW_Search::GetSearchQuery() : WoW_Locale::GetString('template_search_site'); ?> " /> </div> </form> </div> <h1 id="logo"><a href="<?php echo WoW::GetWoWPath(); ?> /wow/">World of Warcraft</a></h1> <div class="header-plate-wrapper header-plate"> <?php echo WoW_Layout::PrintMainMenu(); if (WoW_Account::IsLoggedIn()) { if (WoW_Account::IsHaveActiveCharacter()) { WoW_Template::LoadTemplate('block_user_meta_auth');
<div class="content-bot"> <div id="search-results"> <form action=""> <div id="search-again"><?php echo WoW_Locale::GetString('template_search'); ?> <div class="search-input"> <input id="search-again-field" type="text" name="q" value="<?php echo WoW_Search::GetSearchQuery(); ?> "/> <button class="ui-button button1" type="submit" id="search-again-submit"><span><span><?php echo WoW_Locale::GetString('template_search'); ?> </span></span></button> </div> </div> </form> </div> </div>