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

24 lines
719 B
Scheme
Raw Normal View History

2023-11-22 02:37:28 +01:00
<% cached 'Navigation', $NavID, $List('SilverStripe\CMS\Model\SiteTree').max('LastEdited'), $List('SilverStripe\CMS\Model\SiteTree').count() %>
<nav id="{$NavID}" class="navbar navbar-expand-lg">
2018-05-28 14:42:05 +02:00
<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>
2018-05-28 14:42:05 +02:00
<div id="{$NavID}Content" class="collapse navbar-collapse">
2021-04-09 09:14:23 +02:00
<div class="navbar-nav">
2018-05-28 14:42:05 +02:00
<% loop $Navigation %>
<% include NavItem %>
<% end_loop %>
2021-04-09 09:14:23 +02:00
</div>
2018-05-28 14:42:05 +02:00
</div>
</nav>
2023-11-22 02:37:28 +01:00
<% end_cached %>