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

13 lines
532 B
Scheme
Raw Normal View History

2020-05-27 04:15:52 +02:00
<a
class="nav-link graphql-page $ExtraClass <% if $LinkClass %>{$LinkClass}<% else %>nav-link<% end_if %><% if $RedirectionType = 'External' || $ExternalURL || $OpenInNewWindow %> external<% end_if %>"
href="{$Link}"
2021-01-04 08:02:01 +01:00
<% if $RedirectionType = 'External' || $OpenInNewWindow %> target="_blank"<% end_if %>
data-text="{$MenuTitle.XML}"
2020-05-27 04:15:52 +02:00
>
<% if $BlockIcon %>
<i class="fa-icon $BlockIcon"></i>
<% end_if %>
$MenuTitle.XML
<% if $isCurrent || $isSection %><i class="sr-only">(current)</i><% end_if %>
</a>