silverstripe-gallery 

silverstripe-gallery Commit Details

Date:2014-09-27 14:16:09 (6 years 2 months ago)
Author:Nicola Fontana
Branch:dev, master
Commit:e2e787564ebab0745589ef4f1f81899a65097524
Parents: 880793573a10ce3cccca76b706eae7dcf09ce31b
Message:Use better markup for gallery containing

The resulting gallery was too close to the following text and was
exceeding in width the container width. Enclose the gallery inside
<div class="lead col-md-12"> to solves these issues.
Changes:
Mtemplates/Includes/ContentGallery.ss (1 diff)

File differences

templates/Includes/ContentGallery.ss
11
22
33
4
5
4
5
6
7
68
79
810
<% if $SortedImages %>
<% include Fotorama %>
<div class="row">
<div id="ss-gallery" class="fotorama" data-auto="false" data-captions="$Captions" data-height="$Top.SlideHeight" data-thumbheight="$Top.StripHeight"><% loop $SortedImages %>
<a data-caption="$Title.ATT" data-full="$Link.ATT" href="$SetHeight($Top.SlideHeight).Link.ATT"><% with $SetHeight($Top.StripHeight) %><img width="$Width" height="$Height" src="$Link"><% end_with %></a><% end_loop %>
<div class="lead col-md-12">
<div id="ss-gallery" class="fotorama" data-auto="false" data-captions="$Captions" data-height="$Top.SlideHeight" data-thumbheight="$Top.StripHeight"><% loop $SortedImages %>
<a data-caption="$Title.ATT" data-full="$Link.ATT" href="$SetHeight($Top.SlideHeight).Link.ATT"><% with $SetHeight($Top.StripHeight) %><img width="$Width" height="$Height" src="$Link"><% end_with %></a><% end_loop %>
</div>
</div>
</div>
<% end_if %>

Archive Download the corresponding diff file