nextcloud/apps/gallery/templates/index.php

34 lines
777 B
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
2012-06-22 16:11:57 +04:00
var root = "<?php echo OCP\Util::sanitizeHTML($_['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.'">'.$paths[$i].'</a></div>';
}
}
?><br/>
</div>
<div id="gallerycontent">
2012-06-02 17:25:50 +04:00
<?php
echo $_['tl']->get();
2012-06-02 17:25:50 +04:00
?>
</div>