silverstripe-webpack/app/templates/BreadcrumbsTemplate.ss

22 lines
829 B
Scheme
Raw Normal View History

2018-09-15 00:55:42 +02:00
<% if $Pages %>
<nav class="breadcrumbs $DefaultContainer" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="/">Home</a>
<%-- $Delimiter.RAW --%>
2018-09-15 00:55:42 +02:00
</li>
<% loop $Pages %>
<li
class="breadcrumb-item<% if $Last %> current active<% end_if %>"
<% if $Last %> aria-current="page"<% end_if %>
>
<% if not Up.Unlinked %><a href="$Link" class="breadcrumb-$Pos"><% end_if %>
$MenuTitle.XML
<% if not Up.Unlinked %></a><% end_if %>
<%-- if not $Last %>$Up.Delimiter.RAW<% end_if --%>
</li>
<% end_loop %>
</ol>
</nav>
2018-09-15 00:55:42 +02:00
<% end_if %>