silverstripe-webpack/app/templates/DNADesign/Elemental/Models/ElementContent.ss

21 lines
585 B
Scheme
Raw Normal View History

2020-08-14 00:36:26 +02:00
<div
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
>
<% if $BlockIcon %>
2021-03-21 21:06:35 +01:00
<i class="element__icon $BlockIcon"></i>
<% end_if %>
<% if $ShowTitle %>
2021-03-21 21:06:35 +01:00
<h2 class="element__title">$Title</h2>
<% end_if %>
2021-03-21 21:06:35 +01:00
<div class="element__html typography">
$HTML
</div>
<% if $BlockLink %>
2021-03-21 21:06:35 +01:00
<a href="$BlockLink.LinkURL" class="element__link btn btn-default stretched-link">
$BlockLink.Title
</a>
<% end_if %>
</div>