silverstripe-webpack/app/templates/BreadcrumbsTemplate.ss

17 lines
507 B
Scheme
Raw Normal View History

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