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

28 lines
919 B
Scheme
Raw Normal View History

2018-05-28 14:42:05 +02:00
<% if $Children %>
<li class="nav-item dropdown<% if $isCurrent || $isSection %> active <% end_if %> {$CSSClass} {$ExtraClass}">
2020-09-07 22:55:26 +02:00
<% include NavItem_link %>
<b
class="nav-dropdown dropdown-toggle"
id="NavDropdownToggler{$ID}"
2018-05-28 14:42:05 +02:00
role="button"
data-toggle="hover"
data-allow-click="true"
2018-05-28 14:42:05 +02:00
aria-haspopup="true"
aria-expanded="false"
>
2020-09-07 22:55:26 +02:00
<i class="fas fa-chevron-right"></i>
</b>
2018-05-28 14:42:05 +02:00
<ul class="dropdown-menu" aria-labelledby="NavItem{$ID}">
<% loop $Children %>
<% include NavItem ExtraClass="dropdown-item" %>
<% end_loop %>
</ul>
</li>
<% else %>
<li class="nav-item {$CSSClass} $ExtraClass <% if $isCurrent || $isSection %> active<% end_if %>">
2020-05-27 04:15:52 +02:00
<% include NavItem_link %>
2018-05-28 14:42:05 +02:00
</li>
<% end_if %>