%s </div> </div>', $char['classId'], WoW::GetWoWPath(), $char['raceId'], $char['gender'], WoW::GetWoWPath(), WoW_Locale::GetLocale(), $char['realmName'], $char['name'], WoW::GetWoWPath(), $char['raceId'], $char['gender'], WoW::GetWoWPath(), WoW_Locale::GetLocale(), $char['realmName'], $char['name'], $char['classId'], $char['name'], $char['realmName'], $guild_text, WoW_Locale::GetString('character_race_' . $char['raceId'], $char['gender']), WoW_Locale::GetString('character_class_' . $char['classId'], $char['gender']), sprintf(WoW_Locale::GetString('tempalte_lvl_fmt'), $char['level']), $char['realmName']); } echo sprintf('<div class="more-results"> <a href="?q=%s&f=wowcharacter" class="more"> Больше результатов по запросу «%s» </a> </div> </div>', WoW_Search::GetSearchQuery(), WoW_Search::GetSearchQuery()); } } if (WoW_Search::GetItemsSearchResultsCount() > 0) { echo sprintf('<div class="result-set"> <h3 class="results-title">%s</h3>', sprintf(WoW_Locale::GetString('template_search_results_wowitem'), WoW_Search::GetSearchQuery())); $items = WoW_Search::GetRightBoxResults('wowitem'); if (is_array($items)) { foreach ($items as $item) { $itemIcon = WoW_Items::GetItemIcon($item['entry'], $item['displayid']); $sellPrice = WoW_Utils::GetMoneyFormat($item['SellPrice']); $classSubClassString = null; switch ($item['class']) { case ITEM_CLASS_ARMOR: case ITEM_CLASS_WEAPON: $classSubClassName = DB::WoW()->selectRow("SELECT `class_name_%s` AS `className`, `subclass_name_%s` AS `subclassName` FROM `DBPREFIX_itemsubclass` WHERE `class` = %d AND `subclass` = %d LIMIT 1", WoW_Locale::GetLocale(), WoW_Locale::GetLocale(), $item['class'], $item['subclass']); if (is_array($classSubClassName)) { $classSubClassString = sprintf('%s (%s)', $classSubClassName['subclassName'], WoW_Locale::GetString('template_item_invtype_' . $item['InventoryType'])); } break; } echo sprintf('<div class="search-result">