mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
32 lines
1.1 KiB
Scheme
32 lines
1.1 KiB
Scheme
<% if $Children %>
|
|
<li class="nav-item dropdown<% if $isCurrent || $isSection %> active <% end_if %> {$CSSClass} {$ExtraClass}">
|
|
<a
|
|
class="nav-link dropdown-toggle"
|
|
id="NavItem{$ID}"
|
|
role="button"
|
|
data-toggle="hover"
|
|
data-allow-click="true"
|
|
aria-haspopup="true"
|
|
aria-expanded="false"
|
|
href="{$Link}"
|
|
title="$Title.XML"
|
|
>
|
|
$MenuTitle.XML
|
|
<% if $isCurrent || $isSection %><i class="sr-only">(current)</i><% end_if %>
|
|
</a>
|
|
|
|
<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 %>">
|
|
<a class="nav-link" href="{$Link}" title="$Title.XML">
|
|
$MenuTitle.XML
|
|
<% if $isCurrent || $isSection %><i class="sr-only">(current)</i><% end_if %>
|
|
</a>
|
|
</li>
|
|
<% end_if %>
|