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

10 lines
307 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 %>
$Title
</a>
<% end_if %>