<%@ Reference Control="~/bitrix/components/bitrix/forum.menu/component.ascx" %>
<%@ Control Language="C#" AutoEventWireup="true" Inherits="Bitrix.Forum.Components.ForumMenuTemplate" %>
<%@ Import Namespace="Bitrix.Forum.Components" %>

<div class="forum-content">
	<div class="forum-info-box forum-menu-box">
		<div class="forum-info-box-inner">
			<% for (int i = 0; i < Component.MenuItems.Count; i++) { %>
			<% ForumMenuComponent.MenuItem item = Component.MenuItems[i]; %>
			<span class="forum-menu-item<%= (i == 0) ? " forum-menu-item-first" : ""%><%= (i == Component.MenuItems.Count - 1) ? " forum-menu-item-last" : "" %><%= (i == Component.MenuItems.Count - 1) ? " forum-menu-item-last" : "" %> forum-menu-<%= item.ClassName %>" ><a title="<%= item.TooltipHtml %>" href="<%= item.Href %>"><span><%= item.TitleHtml %></span></a> </span>
			<% } %>
		</div>
	</div>
</div>