silverstripe-webpack/app/templates/Includes/NavItem_link.ss
2020-05-27 09:15:52 +07:00

11 lines
363 B
Scheme

<a
class="nav-item-link <% if $LinkClass %>{$LinkClass}<% else %>nav-link<% end_if %>" href="{$Link}"
<% if $ExternalURL || $OpenInNewWindow %> target="_blank"<% end_if %>
>
<% if $BlockIcon %>
<i class="fa-icon $BlockIcon"></i>
<% end_if %>
$MenuTitle.XML
<% if $isCurrent || $isSection %><i class="sr-only">(current)</i><% end_if %>
</a>