Skip to content

Commit

Permalink
Merge pull request #134 from DNNCommunity/develop
Browse files Browse the repository at this point in the history
Merge `develop` into `main` for `1.3.0` release
  • Loading branch information
david-poindexter authored May 27, 2023
2 parents 762ae47 + fd5ccdc commit 299748b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions menus/mobile/RazorMenu.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@
foreach (var page in pages)
{
var hasChildren = page.HasChildren();
var pageDesc = Html.Raw(!string.IsNullOrEmpty(page.Description) ? ("<br/><span class=\"link-description\">" + @page.Description + "</span>") :string.Empty);
var attrTarget = !string.IsNullOrEmpty(page.Target) ? ("target=\"" + page.Target + "\"") :string.Empty;

<li class="nav-item @(hasChildren ? "nav-expand " : string.Empty)@(page.Selected ? "selected" : string.Empty)">
@if (page.Enabled)
{
<a class="nav-link" href="@page.Url" @attrTarget>@page.Text @pageDesc</a>
<a class="nav-link" href="@page.Url" @attrTarget>@page.Text</a>
}
else
{
<a href="javascript:void(0);" @attrTarget>@page.Text @pageDesc</a>
<a class="nav-link" href="javascript:void(0);" @attrTarget>@page.Text</a>
}

@if (hasChildren)
Expand Down

0 comments on commit 299748b

Please sign in to comment.