silverstripe-webpack/app/templates/Includes/Navigation.ss

22 lines
556 B
Scheme

<nav id="{$NavID}" class="navbar navbar-expand-lg">
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#{$NavID}Content"
aria-controls="{$NavID}Content"
aria-expanded="false"
aria-label="Toggle navigation"
>
<i class="navbar-toggler-icon fa fas fa-bars"></i>
</button>
<div id="{$NavID}Content" class="collapse navbar-collapse">
<ul class="navbar-nav">
<% loop $Navigation %>
<% include NavItem %>
<% end_loop %>
</ul>
</div>
</nav>