mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 09:05:46 +00:00
IMPR: RedirectorPage open in new window
This commit is contained in:
parent
69d2ccc023
commit
1adfc4ef01
@ -58,3 +58,7 @@ Page:
|
||||
- A2nt\CMSNiceties\Models\TeamMember
|
||||
extensions:
|
||||
- DNADesign\Elemental\Extensions\ElementalPageExtension
|
||||
|
||||
SilverStripe\CMS\Model\RedirectorPage:
|
||||
extensions:
|
||||
- A2nt\CMSNiceties\Extensions\RedirectorPageEx
|
||||
|
@ -6,21 +6,21 @@
|
||||
$ExtraClass
|
||||
{$LinkClass}
|
||||
<% if $RedirectionType = 'External' || $ExternalURL || $OpenInNewWindow %>
|
||||
external
|
||||
legacy
|
||||
<% end_if %>
|
||||
<% if $isCurrent || $isSection %>active <% end_if %>
|
||||
<% if $isCurrent || $isSection %>active<% end_if %>
|
||||
<% if $isSection %>section<% end_if %>
|
||||
"
|
||||
<% if $RedirectionType = 'External' || $OpenInNewWindow %>
|
||||
<% if $OpenInNewWindow %>
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
<% end_if %>
|
||||
|
||||
data-text="{$MenuTitle.XML}"
|
||||
>
|
||||
<% if $BlockIcon %>
|
||||
<i class="fa-icon $BlockIcon"></i>
|
||||
<% end_if %>
|
||||
<% if $BlockIcon %>
|
||||
<i class="fa-icon $BlockIcon"></i>
|
||||
<% end_if %>
|
||||
$MenuTitle.XML
|
||||
<% if $isCurrent || $isSection %><i class="visually-hidden">(current)</i><% end_if %>
|
||||
</a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user