silverstripe-webpack/app/templates/Sheadawson/Linkable/Models/Link.ss

13 lines
356 B
Scheme
Raw Permalink Normal View History

<% 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 %>
2022-04-11 11:49:15 +02:00
<span class="link-label">
$Title
</span>
</a>
2022-04-11 11:49:15 +02:00
<% end_if %>