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
|
2012-06-20 23:22:41 +04:00
|
|
|
$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>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-06-20 23:22:41 +04:00
|
|
|
?><br/>
|
2012-06-08 22:26:17 +04:00
|
|
|
</div>
|
|
|
|
<div id="gallerycontent">
|
2012-06-02 17:25:50 +04:00
|
|
|
<?php
|
|
|
|
|
2012-06-20 23:22:41 +04:00
|
|
|
echo $_['tl']->get();
|
2012-06-02 17:25:50 +04:00
|
|
|
|
|
|
|
?>
|
2012-06-08 22:26:17 +04:00
|
|
|
</div>
|