Skip to content

Instantly share code, notes, and snippets.

@korthjp17
Created February 5, 2018 19:24
Show Gist options
  • Save korthjp17/2e00b51f986e50b2fd9e5cc3937b161b to your computer and use it in GitHub Desktop.
Save korthjp17/2e00b51f986e50b2fd9e5cc3937b161b to your computer and use it in GitHub Desktop.
<nav class="navbar navbar-expand-lg navbar-light" role="navigation"<% if $GlobalConfig.HeaderBgColor %> style="background: $GlobalConfig.HeaderBgColor"<% end_if %>>
<div class="container brand-bg">
<div class="row">
<div class="col-md-10 offset-md-1">
<a href="/" class="navbar-brand" title="Go to the home page">
<img src="/themes/ksm/dist/images/ksm_logo.svg" width="294" height="122" class="img-responsive" alt="Dynamic Logo" onerror="this.onerror=null; this.src='/themes/ksm/dist/images/ksm_logo.png'">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
</div>
<div class="row">
<div class="collapse navbar-collapse col-md-10 offset-md-1" id="navbarNav">
<ul class="navbar-nav"<% if $GlobalConfig.NavBgColor %> style="background: $GlobalConfig.NavBgColor"<% end_if %>>
<% loop Menu(1) %>
<li class="nav-item<% if Last %> last-parent<% end_if %><% if $Children %> dropdown <% end_if %> $LinkingMode">
<a href="$Link" class="nav-link<% if $Children %> dropdown-toggle<% end_if %>" title="Go to the $MenuTitle.XML page" <% if is_a(RedirectorPage) %><% if RedirectionType = External %>target="_blank" rel="noopener"<% end_if %><% end_if %><% if $Children %> data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"<% end_if %>>$MenuTitle.XML</a>
<% if Children %>
<div class="dropdown-menu">
<% loop Children %>
<a role="dropdown-item" href="$Link" class="$LinkingMode dropdown-item" title="Go to the $MenuTitle.XML page" <% if is_a(RedirectorPage) %><% if RedirectionType = External %>target="_blank" rel="noopener"<% end_if %><% end_if %>>$MenuTitle.XML</a>
<% end_loop %>
</div>
<% end_if %>
</li>
<% end_loop %>
</ul>
</div>
</div>
</div>
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment