-
Notifications
You must be signed in to change notification settings - Fork 0
/
album.phtml
37 lines (28 loc) · 1004 Bytes
/
album.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
// Load lightbox for this page
$this->getPluginBag()->load('lightbox');
?>
<div class="container">
<div class="page-header">
<h3><?php echo $page->getTitle(); ?> </h3>
</div>
<article><?php echo $page->getDescription(); ?></article>
<?php if (!empty($photos)): ?>
<div class="row">
<?php foreach ($photos as $photo): ?>
<div class="col-xs-6 col-md-3">
<div class="thumbnail height-initial">
<a data-lightbox="<?php printf('image-%s', $photo->getId()); ?>" href="<?php echo $photo->getImageUrl('original'); ?>"><img src="<?php echo $photo->getImageUrl('170x170'); ?>" alt="<?php echo $photo->getName(); ?>"></a>
<div class="caption text-center">
<h3 class="text-muted"><?php echo $photo->getName(); ?></h3>
<p><?php echo $photo->getDescription(); ?></p>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<?php $this->loadPartial('bs-pagination'); ?>
<?php else: ?>
<h2><?php $this->show('No photos'); ?></h2>
<?php endif; ?>
</div>