nextcloud/apps/gallery/templates/view_album.php

35 lines
950 B
PHP
Raw Normal View History

<?php
2011-09-26 00:32:08 +04:00
OC_Util::addStyle('gallery', 'styles');
2011-12-08 23:04:56 +04:00
OC_Util::addScript('gallery', 'albums');
2011-09-26 00:32:08 +04:00
OC_Util::addScript('gallery', 'album_cover');
OC_Util::addScript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
OC_Util::addScript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
OC_Util::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' );
2012-01-15 15:11:04 +04:00
$l = new OC_L10N('gallery');
2011-09-26 00:32:08 +04:00
?>
<script type="text/javascript">
$(document).ready(function() {
$("a[rel=images]").fancybox({
'titlePosition': 'inside'
});
});
</script>
2011-09-26 00:32:08 +04:00
<div id="controls">
<a href="?"><input type="button" value="<?php echo $l->t('Back');?>" /></a>
2011-12-21 21:37:17 +04:00
<br/>
2011-09-26 00:32:08 +04:00
</div>
2011-12-08 23:04:56 +04:00
<div id="gallery_list" class="leftcontent">
</div>
<div id="gallery_images" class="rightcontent">
<?php
2011-09-26 00:32:08 +04:00
foreach ($_['photos'] as $a) {
?>
2011-12-08 23:04:56 +04:00
<a rel="images" href="../../files/download.php?file=<?php echo urlencode($a); ?>"><img src="ajax/thumbnail.php?img=<?php echo urlencode($a) ?>"></a>
<?php
2011-09-26 00:32:08 +04:00
}
?>
</div>