mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 15:05:54 +00:00
FIX: NavItem_link template
This commit is contained in:
parent
165c69b757
commit
46eb28b41c
12
templates/Includes/NavItem_link.ss
Executable file
12
templates/Includes/NavItem_link.ss
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
<a
|
||||||
|
class="nav-link graphql-page $ExtraClass <% if $LinkClass %>{$LinkClass}<% else %>nav-link<% end_if %><% if $RedirectionType = 'External' || $ExternalURL || $OpenInNewWindow %> external<% end_if %><% if $isCurrent || $isSection %> active <% end_if %><% if $isSection %> section<% end_if %>"
|
||||||
|
href="{$Link}"
|
||||||
|
<% if $RedirectionType = 'External' || $OpenInNewWindow %> target="_blank"<% end_if %>
|
||||||
|
data-text="{$MenuTitle.XML}"
|
||||||
|
>
|
||||||
|
<% if $BlockIcon %>
|
||||||
|
<i class="fa-icon $BlockIcon"></i>
|
||||||
|
<% end_if %>
|
||||||
|
$MenuTitle.XML
|
||||||
|
<% if $isCurrent || $isSection %><i class="sr-only">(current)</i><% end_if %>
|
||||||
|
</a>
|
Loading…
x
Reference in New Issue
Block a user