@model NavigationModel @using SmartStore.Core.Domain.Catalog; @using SmartStore.Core.Infrastructure; @using SmartStore.Services.Catalog; @using SmartStore.Web.Models.Catalog; @using SmartStore.Collections; @functions { private string GetNodeLink(TreeNode node) { return node.Value.GenerateUrl(this.Url); } private string GetCssClassForNode(TreeNode node, NodePathState state) { var liClasses = new List(); if (node.Depth == 1) { liClasses.Add("drop-list-item"); } if (node.Depth <= 1 && node.HasChildren) { liClasses.Add(node.Depth > 0 ? "dropdown-submenu" : "dropdown"); } if ((state & NodePathState.Expanded) == NodePathState.Expanded) { liClasses.Add("expanded"); } if ((state & NodePathState.Selected) == NodePathState.Selected) { liClasses.Add("selected"); } return liClasses.Count > 0 ? String.Join(" ", liClasses) : null; } } @if(GetThemeVariable("DisplayNavbar") ) {
} @helper CreateDrilldownMenu(IEnumerable> nodes, bool isRoot) { if (isRoot) { @Html.Raw("") } }