nextcloud/apps/gallery/templates/index.php

85 lines
2.1 KiB
PHP
Raw Normal View History

2012-06-02 17:25:50 +04:00
<script type="text/javascript">
2012-06-03 02:29:10 +04:00
var root = "<?php echo $_['root']; ?>";
2012-06-03 02:29:10 +04:00
2012-06-05 20:32:42 +04:00
$(document).ready(function() {
$("a[rel=images]").fancybox({
'titlePosition': 'inside'
});
});
2012-06-03 02:29:10 +04:00
2012-06-02 17:25:50 +04:00
</script>
2012-06-08 23:31:31 +04:00
<div id="controls"><?php
$sr = trim($_['root'], '/');
2012-06-08 23:31:31 +04:00
if (!empty($sr)) {
$paths = explode('/', $sr);
$path = '/';
for ($i = 0; $i < count($paths); $i++) {
$path .= urlencode($paths[$i]).'/';
$classess = 'crumb'.($i == count($paths)-1?' last':'');
echo '<div class="'.$classess.'" style="background-image:url(\''.\OCP\image_path('core','breadcrumb.png').'\')"><a href="'.\OCP\Util::linkTo('gallery', 'index.php').'&root='.$path.'">'.OCP\Util::sanitizeHTML($paths[$i]).'</a></div>';
2012-06-08 23:31:31 +04:00
}
}
2012-07-05 01:36:49 +04:00
?>
<div id="slideshow">
<input type="button" class="start" value="<?php echo $l->t('Slideshow')?>" />
</div>
</div>
<div id="gallerycontent">
2012-06-02 17:25:50 +04:00
<?php
2012-06-20 21:41:08 +04:00
session_write_close();
2012-06-02 17:25:50 +04:00
echo $_['tl']->get();
2012-06-02 17:25:50 +04:00
?>
</div>
2012-07-05 01:36:49 +04:00
<!-- start supersized block -->
2012-07-09 18:04:46 +04:00
<div id="slideshow-content" style="display:none;">
2012-07-05 01:36:49 +04:00
<!--Thumbnail Navigation-->
<div id="prevthumb"></div>
<div id="nextthumb"></div>
<!--Arrow Navigation-->
<a id="prevslide" class="load-item"></a>
<a id="nextslide" class="load-item"></a>
<div id="thumb-tray" class="load-item">
<div id="thumb-back"></div>
<div id="thumb-forward"></div>
</div>
<!--Time Bar-->
<div id="progress-back" class="load-item">
<div id="progress-bar"></div>
</div>
<!--Control Bar-->
<div id="slideshow-controls-wrapper" class="load-item">
<div id="slideshow-controls">
<a id="play-button"><img id="pauseplay" src="<?php echo OCP\image_path('gallery', 'supersized/pause.png'); ?>"/></a>
<!--Slide counter-->
<div id="slidecounter">
<span class="slidenumber"></span> / <span class="totalslides"></span>
</div>
<!--Slide captions displayed here-->
<div id="slidecaption"></div>
<!--Thumb Tray button-->
<a id="tray-button"><img id="tray-arrow" src="<?php echo OCP\image_path('gallery', 'supersized/button-tray-up.png'); ?>"/></a>
<!--Navigation-->
<!--
<ul id="slide-list"></ul>
-->
</div>
</div>
</div><!-- end supersized block -->