silverstripe-elemental-basics/templates/Includes/SlideItem.ss
2021-06-19 20:13:41 +02:00

22 lines
644 B
Scheme
Executable File

<% include SlideItem_media %>
<% if $Content || $Headline || $CustomTitle || $Description || $SlideLinkID %>
<div class="container">
<div class="carousel-caption">
<div class="carousel-caption-container typography">
<% if $Headline %>
<h2 class="carousel-title">
$Headline
</h2>
<% end_if %>
<% if $Content %>
<div class="carousel-content">$Content</div>
<% else_if $Description %>
<p class="carousel-content">$Description</p>
<% end_if %>
</div>
</div>
</div>
<% end_if %>