silverstripe-elemental-basics/templates/Includes/NavItem_link.ss

27 lines
706 B
Scheme
Raw Normal View History

2021-06-19 20:14:18 +02:00
<a
href="{$Link}"
2022-12-29 18:49:25 +01:00
class="
nav-link
graphql-page
$ExtraClass
{$LinkClass}
<% if $RedirectionType = 'External' || $ExternalURL || $OpenInNewWindow %>
external
<% end_if %>
<% if $isCurrent || $isSection %>active <% end_if %>
<% if $isSection %>section<% end_if %>
"
<% if $RedirectionType = 'External' || $OpenInNewWindow %>
rel="noreferrer"
target="_blank"
<% end_if %>
2021-06-19 20:14:18 +02:00
data-text="{$MenuTitle.XML}"
>
<% if $BlockIcon %>
<i class="fa-icon $BlockIcon"></i>
<% end_if %>
$MenuTitle.XML
2021-06-19 20:27:51 +02:00
<% if $isCurrent || $isSection %><i class="visually-hidden">(current)</i><% end_if %>
2021-06-19 20:14:18 +02:00
</a>