<%@ Reference VirtualPath="~/bitrix/components/bitrix/system.PublicBreadCrumb/component.ascx" %>
<%@ Control Language="C#" ClassName="template" Inherits="Bitrix.Main.Components.SystemPublicBreadCrumbTemplate" %>
<%@ Import Namespace="Bitrix" %>
<script runat="server">
	public override string  Title
	{
		get 
		{ 
			return "Portal template";
		}
	}
</script>
<% 
	if (Component.BreadCrumb == null)
		return;
	for(int i = 0; i < Component.BreadCrumb.Length; i++) 
	{
		BXPublicMenuItem item = Component.BreadCrumb[i];
		if (i > 0) 
		{
			%> / <%
		}
		string title = Encode(item.Title);
		if (!string.IsNullOrEmpty(item.Href))
		{
			%><a href="<%= Encode(item.Href) %>" title="<%= title %>"><%= title %></a><%
		}
		else
		{
			%><%= title %><%
		}
	}
%>