@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 (PageState.RenderMode == RenderModes.Static && PageState.Page.ThemeType != (string.IsNullOrEmpty(childPage.ThemeType) ? PageState.Site.DefaultThemeType : childPage.ThemeType))
{
_attributes.Add("data-enhance-nav", "false");
}*@
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
}
}
}
}