mirror of
https://github.com/thumbsup/thumbsup
synced 2024-11-11 07:10:26 +00:00
132 lines
3.8 KiB
Handlebars
132 lines
3.8 KiB
Handlebars
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, user-scalable=no" />
|
|
<title>{{gallery.title}} - {{album.title}}</title>
|
|
<link rel="stylesheet" href="public/reset.css" />
|
|
<link rel="stylesheet" href="public/light-gallery/css/lightgallery.css" />
|
|
<link rel="stylesheet" href="public/video-js.css" />
|
|
<link rel="stylesheet" href="public/theme.css" />
|
|
{{#if gallery.css}}
|
|
<link rel="stylesheet" href="public/{{gallery.css}}" />
|
|
{{/if}}
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
<h1>{{gallery.title}}</h1>
|
|
<h2>{{gallery.subtitle}}</h2>
|
|
</header>
|
|
|
|
<section id="sidebar">
|
|
<nav>
|
|
{{> sidebar-album gallery.home }}
|
|
</nav>
|
|
</section>
|
|
|
|
<section id="content">
|
|
|
|
<nav class="breadcrumbs">
|
|
{{#each breadcrumbs~}}
|
|
<a class="breadcrumb-item" href="{{filename}}.html">{{title}} </a>
|
|
{{~/each~}}
|
|
<span class="breadcrumb-item active">{{album.title}}</span>
|
|
</nav>
|
|
|
|
<ul id="albums">
|
|
{{#each album.albums}}
|
|
<li>
|
|
<a href="{{filename}}.html">
|
|
<ul class="grid clearfix">
|
|
{{~#each previews ~}}
|
|
<li><img src="{{this.urls.thumb}}" /></li>
|
|
{{~/each}}
|
|
</ul>
|
|
<h3>{{title}}</h3>
|
|
<div class="meta">
|
|
{{summary}}<br />
|
|
{{{date stats.fromDate}}} - {{{date stats.toDate}}}
|
|
</div>
|
|
</a>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
|
|
<ul id="gallery">
|
|
{{#each album.files}}
|
|
{{#if isVideo}}
|
|
<li data-html="#media{{id}}"
|
|
data-poster="{{urls.poster}}"
|
|
data-download-url="{{{download this}}}">
|
|
<a href="{{{download this}}}">
|
|
<img src="{{urls.thumb}}"
|
|
width="{{../gallery.thumbsSize}}"
|
|
height="{{../gallery.thumbSize}}"
|
|
alt="{{filename}}" />
|
|
</a>
|
|
<img class="video-overlay" src="public/play.png" />
|
|
</li>
|
|
{{else}}
|
|
<li data-src="{{urls.large}}"
|
|
data-sub-html="{{caption}}"
|
|
data-download-url="{{{download this}}}">
|
|
<a href="{{{download this}}}">
|
|
<img src="{{urls.thumb}}"
|
|
width="{{../gallery.thumbSize}}"
|
|
height="{{../gallery.thumbSize}}"
|
|
alt="{{filename}}" />
|
|
</a>
|
|
</li>
|
|
{{/if}}
|
|
{{/each}}
|
|
</ul>
|
|
|
|
<div id="videos">
|
|
{{#each album.files}}
|
|
{{#if isVideo}}
|
|
<div id="media{{id}}" style="display:none;">
|
|
<video class="lg-video-object lg-html5 video-js vjs-default-skin" preload="none" controls>
|
|
<source src="{{urls.video}}" type="video/mp4" />
|
|
Your browser does not support HTML5 video
|
|
</video>
|
|
</div>
|
|
{{/if}}
|
|
{{/each}}
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<!-- jQuery -->
|
|
<script src="public/jquery.min.js"></script>
|
|
<!-- VideoJS -->
|
|
<script src="public/video.js"></script>
|
|
<!-- LightGallery -->
|
|
<script src="public/light-gallery/js/lightgallery.js"></script>
|
|
<script src="public/light-gallery/js/lg-autoplay.js"></script>
|
|
<script src="public/light-gallery/js/lg-pager.js"></script>
|
|
<script src="public/light-gallery/js/lg-thumbnail.js"></script>
|
|
<script src="public/light-gallery/js/lg-video.js"></script>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
$("#gallery").lightGallery({
|
|
thumbWidth: 80,
|
|
controls: true,
|
|
loop : false,
|
|
download: true,
|
|
counter: true,
|
|
videojs: true
|
|
});
|
|
});
|
|
|
|
</script>
|
|
|
|
{{> analytics}}
|
|
|
|
</body>
|
|
|
|
</html>
|