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

23 lines
605 B
Scheme
Raw Normal View History

2020-08-14 00:36:26 +02:00
<div
data-aos="fade-up"
2021-03-21 21:06:35 +01:00
class="element__content<% if $BlockLink %> has-blockLink<% end_if %><% if $BlockIcon %> has-blockIcon<% end_if %><% if $Style %> $CssStyle<% end_if %>"
2020-08-14 00:36:26 +02:00
>
2019-11-07 19:26:33 +01:00
<% if $BlockIcon %>
2021-03-21 21:06:35 +01:00
<i class="element__icon $BlockIcon"></i>
2019-11-07 19:26:33 +01:00
<% end_if %>
2021-03-21 21:06:35 +01:00
2019-11-07 19:26:33 +01:00
<% if $ShowTitle %>
2021-03-21 21:06:35 +01:00
<h2 class="element__title">$Title</h2>
2019-11-07 19:26:33 +01:00
<% end_if %>
2021-03-21 21:06:35 +01:00
<div class="element__html typography">
2019-11-07 19:26:33 +01:00
$HTML
</div>
<% if $BlockLink %>
2021-03-21 21:06:35 +01:00
<a href="$BlockLink.LinkURL" class="element__link btn btn-default stretched-link">
2019-11-07 19:26:33 +01:00
$BlockLink.Title
</a>
<% end_if %>
</div>