@namespace Oqtane.Themes.Controls
@inherits MenuItemsBase
@if (ParentPage != null)
{
}
else
{
@foreach (var childPage in GetChildPages())
{
var _attributes = new Dictionary();
_attributes.Add("href", GetUrl(childPage));
var _target = GetTarget(childPage);
if (!string.IsNullOrEmpty(_target))
{
_attributes.Add("target", _target);
}
if (!Pages.Any(e => e.ParentId == childPage.PageId))
{
if (childPage.PageId == PageState.Page.PageId)
{
-
@childPage.Name (current)
}
else
{
-
@childPage.Name
}
}
else
{
if (childPage.PageId == PageState.Page.PageId)
{
-
@childPage.Name (current)
}
else
{
-
@childPage.Name
}
}
}
}