mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
Slider template improvement
This commit is contained in:
parent
cb3a48cec2
commit
0acdcd0fd5
@ -1,19 +1,19 @@
|
||||
<% if $ShowTitle || $Content %>
|
||||
<div class="slider-caption ">
|
||||
<div class="slider-element__content">
|
||||
<% if $ShowTitle %>
|
||||
<h2 class="slider-element__title text-center">$Title</h2>
|
||||
<% end_if %>
|
||||
<% if $Content %>
|
||||
<div class="slider-element__content typography text-center">$Content</div>
|
||||
<% end_if %>
|
||||
<% if $Content %><div class="typography">$Content</div><% end_if %>
|
||||
</div>
|
||||
</div>
|
||||
<% end_if %>
|
||||
|
||||
<% if $SlideShow %>
|
||||
<div id="Carousel{$ID}" class="carousel slide js-carousel d-none d-sm-block parallax"<% if $SlideShow.count > 1 %><% if $Interval %> data-interval="$Interval"<% end_if %> data-indicators="true" data-arrows="true"<% end_if %>>
|
||||
<div id="Carousel{$ID}" class="carousel slide js-carousel d-none d-sm-block"<% if $SlideShow.count > 1 %><% if $Interval %> data-interval="$Interval"<% end_if %> data-indicators="true" data-arrows="true"<% end_if %>>
|
||||
<div class="carousel-inner">
|
||||
<% loop $SlideShow %>
|
||||
<div class="carousel-item<% if $First %> active<% end_if %>">
|
||||
<div class="carousel-item carousel-item-{$SlideType}<% if $First %> active<% end_if %>">
|
||||
|
||||
|
||||
<% if $Video || $Image %>
|
||||
@ -27,7 +27,7 @@
|
||||
<% if $PageLink %><a href="$PageLink.Link" title="$PageLink.MenuTitle.XML" class="btn-primary"><% end_if %>
|
||||
|
||||
<% if $Image %>
|
||||
<span class="img parallax-image">
|
||||
<span class="img">
|
||||
<img class="d-block w-100" src="$Image.Fill(1200,600).URL" alt="<% if $Headline %>$Headline<% end_if %>">
|
||||
</span>
|
||||
<% end_if %>
|
||||
@ -35,7 +35,7 @@
|
||||
</div>
|
||||
<% end_if %>
|
||||
|
||||
|
||||
<% if $Content || $Headline || $Description || $PageLinkID %>
|
||||
<% if not $Video && not $Image %>
|
||||
<div class="carousel-slide">
|
||||
<% else %>
|
||||
@ -44,7 +44,11 @@
|
||||
|
||||
<div class="carousel-caption-container">
|
||||
<% if $Headline %><h2 class="carousel-title">$Headline</h2><% end_if %>
|
||||
<% if $Content %>
|
||||
<div class="carousel-content typography">$Content</div>
|
||||
<% else %>
|
||||
<% if $Description %><p class="carousel-content">$Description</p><% end_if %>
|
||||
<% end_if %>
|
||||
<% if $PageLinkID %>
|
||||
<p>
|
||||
<a href="$PageLink.Link" title="$PageLink.MenuTitle.XML" class="btn btn-default btn-lg">
|
||||
@ -55,6 +59,7 @@
|
||||
<% end_if %>
|
||||
</div>
|
||||
</div>
|
||||
<% end_if %>
|
||||
</div>
|
||||
<% end_loop %>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user