echo WoW_LOcale::GetString('template_profile_achievements'); ?> </span></span></a> </li> <li class=" active"> <a href="<?php echo WoW_Characters::GetURL(); ?> achievement#summary" class="" rel="np"><span class="arrow"><span class="icon"><?php echo WoW_Locale::GetString('template_profile_achievements'); ?> </span></span></a> </li> <?php $categories = WoW_Achievements::BuildCategoriesTree(false); if (is_array($categories)) { foreach ($categories as $category) { echo sprintf('<li class=""> <a href="%sachievement#%d" class="%s" rel="np"><span class="arrow"><span class="icon">%s</span></span></a> ', WoW_Characters::GetURL(), $category['id'], is_array($category['child']) ? 'has-submenu' : null, $category['name']); if (is_array($category['child'])) { echo '<ul>'; foreach ($category['child'] as $child) { echo sprintf('<li class=""> <a href="%sachievement#%d:%d" class="" rel="np"><span class="arrow"><span class="icon">%s</span></span></a> </li>', WoW_Characters::GetURL(), $category['id'], $child['id'], $child['name']); } echo '</ul>'; } echo '</li>';
statistic" class="back-to" rel="np"><span class="arrow"><span class="icon"><?php echo WoW_Locale::GetString('template_profile_statistics'); ?> </span></span></a> </li> <li class=" active"> <a href="<?php echo WoW_Characters::GetURL(); ?> statistic#summary" class="" rel="np"><span class="arrow"><span class="icon"><?php echo WoW_Locale::GetString('template_profile_statistics'); ?> </span></span></a> </li> <?php $categories = WoW_Achievements::BuildCategoriesTree(true); if (is_array($categories)) { foreach ($categories as $category) { echo sprintf('<li class=""> <a href="%sstatistic#%d" class="%s" rel="np"><span class="arrow"><span class="icon">%s</span></span></a> ', WoW_Characters::GetURL(), $category['id'], is_array($category['child']) ? 'has-submenu' : null, $category['name']); if (is_array($category['child'])) { echo '<ul>'; foreach ($category['child'] as $child) { echo sprintf('<li class=""><a href="%sstatistic#%d:%d" class="" rel="np"><span class="arrow"><span class="icon">%s</span></span></a></li>', WoW_Characters::GetURL(), $category['id'], $child['id'], $child['name']); } echo '</ul>'; } echo '</li>'; } }