32 lines
1.5 KiB
Scheme
32 lines
1.5 KiB
Scheme
|
<% include Syntro\SilverStripeElementalBaseitems\ContentBlock %>
|
||
|
|
||
|
<div class="{$ElementName}__featureholder row justify-content-center text-left">
|
||
|
<% loop Features %>
|
||
|
<div class="{$Up.ElementName}__feature col-12 col-md-6 col-lg-4 px-4">
|
||
|
<div class="media">
|
||
|
<div class="{$Up.ElementName}__feature-icon mr-3" style="width:3rem;">
|
||
|
<% if IsSvgIcon %>
|
||
|
<img src="$Icon.URL" alt="$Title" class="img-fluid">
|
||
|
<% else %>
|
||
|
<img src="$Icon.Fill(500,500).URL" alt="$Title" class="img-fluid">
|
||
|
<% end_if %>
|
||
|
</div>
|
||
|
|
||
|
<div class="{$Up.ElementName}__feature-body media-body">
|
||
|
<% if ShowTitle %>
|
||
|
<h3 class="{$Up.ElementName}__feature-title mt-2 mb-4">$Title</h3>
|
||
|
<% end_if %>
|
||
|
<p class="{$Up.ElementName}__feature-content mb-4">$Content</p>
|
||
|
<% if CTALink %>
|
||
|
<% with CTALink %>
|
||
|
<a {$IDAttr} class="{$Up.ElementName}__feature-link text-$Up.Up.LinkColor" href="{$LinkURL}" {$TargetAttr}>
|
||
|
<%t Syntro\SilverStripeElementalBootstrapFeatureSection\Model\Feature.CTA 'Read more...' %>
|
||
|
</a>
|
||
|
<% end_with %>
|
||
|
<% end_if %>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<% end_loop %>
|
||
|
</div>
|