silverstripe-webpack/app/templates/Sheadawson/Linkable/Models/Link.ss
2022-04-11 11:49:15 +02:00

13 lines
356 B
Scheme

<% if $LinkURL %>
<a href="$LinkURL"{$TargetAttr}$ClassAttr title="Go to $Title">
<% if $Type == 'Phone' %>
<i class="fas fa-phone"></i>
<% else_if $Type == 'Email' %>
<i class="fas fa-envelope-open"></i>
<% end_if %>
<span class="link-label">
$Title
</span>
</a>
<% end_if %>