-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jesse Stippel
authored and
Jesse Stippel
committed
Jan 21, 2016
1 parent
938bfe4
commit 5f7567d
Showing
7 changed files
with
67 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ if (window.jQuery) { | |
|
||
require([ | ||
'jquery', | ||
'lightbox', | ||
], function($) { | ||
'use strict'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#gallery { | ||
overflow: auto; | ||
width: 100%; | ||
height: auto; | ||
margin-bottom: 30px; | ||
} | ||
|
||
.gallery-image img { | ||
width: 100%; | ||
height: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,47 @@ | ||
<html i18n:domain="plone" | ||
lang="en" | ||
metal:use-macro="context/main_template/macros/master" | ||
xml:lang="en" | ||
xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
xmlns:metal="http://xml.zope.org/namespaces/metal" | ||
xmlns:tal="http://xml.zope.org/namespaces/tal" | ||
xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<body> | ||
|
||
<metal:content-core fill-slot="content-core"> | ||
<metal:content-core define-macro="content-core" | ||
tal:define="toc context/table_of_contents|nothing;"> | ||
|
||
<div id="parent-fieldname-text" | ||
tal:condition="exists:context/text" | ||
tal:content="structure python:context.text.output_relative_to(view.context)" | ||
tal:attributes="class python: toc and 'pat-autotoc' or ''" /> | ||
|
||
<section id="gallery" tal:define="images view/images" tal:condition="images"> | ||
<tal:images tal:repeat="image images"> | ||
<div class="image-title"> | ||
<h2 tal:content="image/title">Teaser Title</h2> | ||
</div> | ||
<div class="gallery-image"> | ||
<img tal:replace="structure image/image"/> | ||
</div> | ||
</tal:images> | ||
</section> | ||
|
||
</metal:content-core> | ||
</metal:content-core> | ||
|
||
</body> | ||
lang="en" | ||
metal:use-macro="context/main_template/macros/master" | ||
xml:lang="en" | ||
xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
xmlns:metal="http://xml.zope.org/namespaces/metal" | ||
xmlns:tal="http://xml.zope.org/namespaces/tal" | ||
xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<body> | ||
|
||
<metal:content-core fill-slot="content-core"> | ||
<metal:content-core define-macro="content-core" tal:define="toc context/table_of_contents|nothing;"> | ||
|
||
<div id="parent-fieldname-text" | ||
tal:condition="exists:context/text" | ||
tal:content="structure python:context.text.output_relative_to(view.context)" | ||
tal:attributes="class python: toc and 'pat-autotoc' or ''"/> | ||
|
||
<section id="gallery" tal:define="images view/images" tal:condition="images"> | ||
<div class="col-xs-4 col-sm-3" tal:repeat="image images"> | ||
<div class="gallery-image"> | ||
<!-- <div class="image-title"> | ||
<h2 tal:content="image/title">Teaser Title</h2> | ||
</div> --> | ||
<a href="" tal:attributes="href image/url;data-title image/title" data-lightbox="image" data-title=""></a> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
</metal:content-core> | ||
</metal:content-core> | ||
|
||
<script type="text/javascript"> | ||
|
||
require([ | ||
'jquery', | ||
'lightbox', | ||
], function ($) { | ||
'use strict'; | ||
|
||
}) | ||
</script> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters