silverstripe-webpack/app/templates/Site/Elements/CustomSnippetElement.ss

16 lines
407 B
Scheme
Raw Normal View History

2020-11-24 08:47:36 +01:00
<div class="custom-snippet content-element__content<% if $Style %> $CssStyle<% end_if %>">
<% if $ShowTitle %>
<h2 class="content-element__title">$Title</h2>
<% end_if %>
<div class="typography">
$HTML
</div>
<% if $BlockLink %>
<a href="$BlockLink.LinkURL" class="btn btn-default stretched-link">
$BlockLink.Title
</a>
<% end_if %>
</div>