silverstripe-gallery 

silverstripe-gallery Commit Details

Date:2014-09-18 13:20:30 (6 years 2 months ago)
Author:Nicola Fontana
Branch:dev, master
Commit:99c81a44d62dca81c2279821ea57e3080785d375
Parents: f76ee9367d55e18e3de309229ae844d693d186d4
Message:Update templates to silverstrap-dev

Changes:
Dtemplates/Includes/Gallery.ss (full)
Atemplates/Includes/ContentGallery.ss (full)
Mtemplates/Layout/GalleryPage.ss (1 diff)

File differences

templates/Includes/ContentGallery.ss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<% if $Images %>
<%-- The following line force the inclusion of JQuery before ad-gallery --%>
<% include JQuery %>
<% require css(gallery/css/jquery.ad-gallery.css) %>
<% require javascript(gallery/javascript/jquery.ad-gallery.min.js) %>
<% require javascript(gallery/javascript/gallery.js) %>
<div class="row">
<div id="gallery" class="ad-gallery">
<div class="ad-image-wrapper"></div>
<div class="ad-controls"></div>
<div class="ad-nav">
<div class="ad-thumbs">
<ul class="ad-thumb-list"><% loop $Images %>
<li>
<a href="$Link"><img src="$CroppedImage(60,60).Link" <% if not Top.HideDescription %>alt="$Title"<% end_if %> class="image{$Pos}"></a>
</li><% end_loop %>
</ul>
</div>
</div>
</div>
</div>
<% end_if %>
templates/Includes/Gallery.ss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<% if $Images %>
<div id="gallery" class="ad-gallery">
<div class="ad-image-wrapper"></div>
<div class="ad-controls"></div>
<div class="ad-nav">
<div class="ad-thumbs">
<ul class="ad-thumb-list">
<% loop $Images %><li>
<a href="$Link">
<img src="$CroppedImage(60,60).Link" <% if not Top.HideDescription %>alt="$Title"<% end_if %> class="image{$Pos}">
</a>
</li><% end_loop %>
</ul>
</div>
</div>
</div>
<% end_if %>
templates/Layout/GalleryPage.ss
1
2
3
4
51
6
7
8
9
10
11
12
13
2
3
4
145
<% require javascript(http://cdn.jsdelivr.net/jquery/1.11.0/jquery.min.js) %>
<% require css(gallery/css/jquery.ad-gallery.css) %>
<% require javascript(gallery/javascript/jquery.ad-gallery.min.js) %>
<% require javascript(gallery/javascript/gallery.js) %>
<div class="container">
<div class="row">
<main class="col-md-12" id="ss-content">
<div class="page-header"><h1>$Title</h1></div>
$Gallery
$Content
$Form
</main>
</div>
<% include ContentHeader %>
<% include ContentGallery %>
<% include ContentBody %>
</div>

Archive Download the corresponding diff file