init
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
@model MvcSiteMapProvider.Web.Html.Models.SiteMapNodeModelList
|
||||
@using System.Web.Mvc.Html
|
||||
@using Kreta.Web.Menu
|
||||
@using Kreta.Web.Security
|
||||
|
||||
@if (Model.Any(almenu => almenu.IsClickable == false))
|
||||
{ // vannak csoportok az almenüpontok között
|
||||
<ul class="dropdown-menu megamenu row" role="menu" aria-hidden="true">
|
||||
@foreach (var node in Model.Where(x => x.Children.Count > 0))
|
||||
{
|
||||
if (
|
||||
node.Children.Any(x => x.IsVisible())
|
||||
)
|
||||
{
|
||||
<li class="col-xs-4 col-sm-4">
|
||||
<ul>
|
||||
@Html.DisplayFor(m => node)
|
||||
@foreach (var children in node.Children)
|
||||
{
|
||||
if (children.IsVisible())
|
||||
{
|
||||
if (children.IsDisabled())
|
||||
{
|
||||
<li class="disabledMenuItem">
|
||||
@Html.DisplayFor(m => children)
|
||||
</li>
|
||||
}
|
||||
else
|
||||
{
|
||||
<li>
|
||||
@Html.DisplayFor(m => children)
|
||||
</li>
|
||||
}
|
||||
}
|
||||
}
|
||||
</ul>
|
||||
</li>
|
||||
}
|
||||
}
|
||||
</ul>
|
||||
}
|
||||
else
|
||||
{ // csak kattintható menüpontok vannak
|
||||
<ul class="dropdown-menu sub-menu" role="menu" aria-hidden="true">
|
||||
@foreach (var node in Model)
|
||||
{
|
||||
if (node.IsDisabled())
|
||||
{
|
||||
<li class="disabledMenuItem">
|
||||
@Html.DisplayFor(m => node)
|
||||
@if (node.Children.Count > 0)
|
||||
{
|
||||
@Html.DisplayFor(m => node.Children)
|
||||
}
|
||||
</li>
|
||||
}
|
||||
else
|
||||
{
|
||||
<li>
|
||||
@Html.DisplayFor(m => node)
|
||||
@if (node.Children.Count > 0)
|
||||
{
|
||||
@Html.DisplayFor(m => node.Children)
|
||||
}
|
||||
</li>
|
||||
}
|
||||
}
|
||||
</ul>
|
||||
}
|
||||
Reference in New Issue
Block a user