コード例 #1
0
																<a href="javascript:;" class="selected" onclick="Cms.Station.toggleFilter(this)">%s</a>
																<a href="javascript:;" onclick="Cms.Station.toggleFilter(this,true)">%s</a>
															</div>';
            echo sprintf('<div class="child-forums%s%s" id="child%d">', $info['realm_cat'] == 1 ? ' filtered-parent' : null, $info['short'] == 1 ? ' non-verbose' : null, $info['cat_id']);
            if ($info['realm_cat'] == 1) {
                echo sprintf('<div class="child-filter">
																<div class="forum-filter png-fix">
																	<img width="27" src="%s/wow/static/images/icons/mag-glass.png" />
																	<input class=\'filter\' type="text"/>
																</div>
																	%s
																	<span class="clear"><!-- --></span>
															</div>
												<div class="forums-list">', WoW::GetWoWPath(), WoW_Account::IsLoggedIn() ? sprintf($realms_filter, WoW_Locale::GetString('template_forums_my_realms'), WoW_Locale::GetString('template_forums_all_realms')) : null);
                foreach ($subcats as $subcat) {
                    if (!WoW::IsRealm($subcat['title'])) {
                        continue;
                    }
                    if (WoW_Account::IsLoggedIn()) {
                        $isMy = WoW_Account::IsHaveCharacterOnRealm($subcat['title']);
                    } else {
                        $isMy = false;
                    }
                    echo sprintf('<a href="%d/" class="forum-link%s"%s>
																	<span class="forum-icon">
																	</span>
																	<span class="int">
																		<span class="int-padding">
																			%s
																			<span class="desc"></span>
																		</span>