mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 17:05:54 +02:00
FIX: NavItem_link
This commit is contained in:
parent
ce01c06af4
commit
3b4508419f
@ -1,7 +1,21 @@
|
|||||||
<a
|
<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}"
|
href="{$Link}"
|
||||||
<% if $RedirectionType = 'External' || $OpenInNewWindow %>rel="noreferrer" target="_blank"<% end_if %>
|
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 %>
|
||||||
|
|
||||||
data-text="{$MenuTitle.XML}"
|
data-text="{$MenuTitle.XML}"
|
||||||
>
|
>
|
||||||
<% if $BlockIcon %>
|
<% if $BlockIcon %>
|
||||||
|
Loading…
Reference in New Issue
Block a user