silverstripe-gallery 

silverstripe-gallery Commit Details

Date:2014-09-26 00:39:09 (6 years 2 months ago)
Author:Nicola Fontana
Branch:dev, master
Commit:a496c351549536339a23044b08d778ab84758e94
Parents: f1fb1db48cd1f5bf699a50a8dbd09f9bd37a6453
Message:Improve template modularity

Now ContentGallery.ss does not depend on silverstrap anymore.
Changes:
Atemplates/Includes/Fotorama.ss (full)
Mtemplates/Includes/ContentGallery.ss (1 diff)
Mtemplates/Layout/GalleryPage.ss (1 diff)

File differences

templates/Includes/ContentGallery.ss
11
2
3
4
5
2
63
74
85
<% if $SortedImages %>
<%-- The following line force the inclusion of JQuery *before* fotorama --%>
<% include JQuery %>
<% require javascript(//fotorama.s3.amazonaws.com/4.6.2/fotorama.js) %>
<% require CSS(//fotorama.s3.amazonaws.com/4.6.2/fotorama.css) %>
<% include Fotorama %>
<div class="row">
<div class="fotorama" data-nav="thumbs" data-width="100%" data-captions="$Captions" data-height="$Top.SlideHeight" data-thumbheight="$Top.StripHeight" data-allowfullscreen="native"><% loop $SortedImages %>
<a data-caption="$Title.ATT" href="$SetHeight($Top.SlideHeight).Link"><img <% with $SetHeight($Top.StripHeight) %>width="$Width" height="$Height" src="$Link"<% end_with %> data-full="$Link"></a><% end_loop %>
templates/Includes/Fotorama.ss
1
2
3
<% require javascript(//oss.maxcdn.com/jquery/1.11/jquery.min.js) %>
<% require javascript(//fotorama.s3.amazonaws.com/4.6.2/fotorama.js) %>
<% require CSS(//fotorama.s3.amazonaws.com/4.6.2/fotorama.css) %>
templates/Layout/GalleryPage.ss
1
12
23
34
<%-- This template is silverstrap ready --%>
<div class="container">
<% include ContentHeader %>
<% include ContentGallery %>

Archive Download the corresponding diff file