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

16 lines
404 B
Scheme
Raw Normal View History

2021-03-22 03:06:35 +07:00
<div class="element__content<% if $Style %> $CssStyle<% end_if %>">
2020-11-24 14:47:36 +07:00
<% if $ShowTitle %>
2021-03-22 03:06:35 +07:00
<h2 class="element__title">$Title</h2>
2020-11-24 14:47:36 +07:00
<% end_if %>
2021-03-22 03:06:35 +07:00
<div class="element__html typography">
2020-11-24 14:47:36 +07:00
$HTML
</div>
<% if $BlockLink %>
2021-03-22 03:06:35 +07:00
<a href="$BlockLink.LinkURL" class="element__link btn btn-default stretched-link">
2020-11-24 14:47:36 +07:00
$BlockLink.Title
</a>
<% end_if %>
</div>