public function main() { WoW_Template::SetPageData('body_class', WoW_Locale::GetLocale(LOCALE_DOUBLE)); WoW_Template::SetTemplateTheme('wow'); $url_data = WoW::GetUrlData('guild'); $guild_error = false; if (!$url_data) { WoW_Template::ErrorPage(404); } elseif (!WoW_Guild::LoadGuild($url_data['name'], WoW_Utils::GetRealmIDByName($url_data['realmName']))) { WoW_Template::ErrorPage(404); } else { $primary = WoW_Account::GetActiveCharacter(); WoW_Template::SetPageData('guild-authorized', false); if (is_array($primary) && isset($primary['realmName'])) { if ($primary['realmName'] == WoW_Guild::GetGuildRealmName() && $primary['guildId'] == WoW_Guild::GetGuildID()) { WoW_Template::SetPageData('guild-authorized', true); } } switch ($url_data['action0']) { default: WoW_Template::SetPageData('guild-page', 'summary'); WoW_Template::SetPageIndex('guild_page'); WoW_Template::SetPageData('page', 'guild_page'); break; case 'perk': WoW_Template::SetPageData('guild-page', 'perks'); WoW_Template::SetPageIndex('guild_perks'); WoW_Template::SetPageData('page', 'guild_perks'); break; case 'roster': switch ($url_data['action1']) { default: WoW_Template::SetPageIndex('guild_roster'); WoW_Template::SetPageData('page', 'guild_roster'); break; case 'professions': WoW_Guild::InitProfessions(); WoW_Template::SetPageIndex('guild_professions'); WoW_Template::SetPageData('page', 'guild_professions'); break; } WoW_Template::SetPageData('guild-page', 'roster'); break; } WoW_Template::SetPageData('guildName', $url_data['name']); WoW_Template::SetPageData('realmName', $url_data['realmName']); WoW_Template::SetMenuIndex('menu-game'); } WoW_Template::LoadTemplate('page_index'); }
?> "><?php echo WoW_Guild::GetGuildName(); ?> </a></div> <div class="under-name"> <?php echo sprintf(WoW_Locale::GetString('template_guild_under_name'), WoW_Guild::GetGuildLevel(), WoW_Locale::GetString(sprintf('faction_' . WoW_Guild::GetGuildFactionText()))); ?> </div> <div class="realm"> <span id="profile-info-realm" class="tip" data-battlegroup="<?php echo WoWConfig::$DefaultBGName; ?> "><?php echo WoW_Guild::GetGuildRealmName(); ?> </span> </div> </div> </div> <?php WoW_Template::LoadTemplate('block_guild_menu'); ?> </div> </div> </div> </div> <div class="profile-contents"> <div class="profile-section-header"> <div class="ui-dropdown" id="roster-view">
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 ''; } }
<span class="icon-frame frame-56" style=\'background-image: url("http://eu.battle.net/wow-assets/static/images/icons/56/%s.jpg");\'></span> <h3>%s</h3> <div class="color-tooltip-yellow">%s</div> </div> </div> </dd> <dt>%s</dt> </dl> </li>', $feed_link, sprintf(WoW_Locale::GetString($locale_string, $feed['gender']), $char_link, $achievement_link, $feed['points']), $i, $feed['icon'], $feed['name'], $feed['desc'], $feed['date']); $i++; break; case TYPE_ITEM_FEED: $feed_link = sprintf('<a href="%s/wow/%s/item/%d" class="color-q%d"> <span class="icon-frame frame-18" style=\'background-image: url("http://eu.battle.net/wow-assets/static/images/icons/18/%s.jpg");\'></span> </a>', WoW::GetWoWPath(), WoW_Locale::GetLocale(), $feed['id'], $feed['quality'], $feed['icon']); $char_link = sprintf('<a href="%s/wow/%s/character/%s/%s/">%s</a>', WoW::GetWoWPath(), WoW_Locale::GetLocale(), WoW_Guild::GetGuildRealmName(), $feed['charName'], $feed['charName']); $item_link = sprintf('<a href="%s/wow/%s/item/%d" class="color-q%d">%s</a>', WoW::GetWoWPath(), WoW_Locale::GetLocale(), $feed['id'], $feed['quality'], $feed['name']); echo sprintf('<li class="item-purchased first"> <dl> <dd> %s %s </dd> <dt>%s</dt> </dl> </li>', $feed_link, sprintf(WoW_Locale::GetString('template_guild_feed_obtained_item', $feed['gender']), $char_link, $item_link), $feed['date']); break; } } echo sprintf('</ul><a class="profile-linktomore" href="%snews" rel="np">%s</a><span class="clear"><!-- --></span>', WoW_Guild::GetGuildUrl(), WoW_Locale::GetString('template_guild_feed_all_feeds')); } else {