2011-10-02 11:52:04 +00:00
< ? php
2012-05-01 07:49:22 +00:00
OCP\Util :: addStyle ( 'gallery' , 'styles' );
2012-05-01 18:03:41 +00:00
OCP\Util :: addscript ( 'gallery' , 'albums' );
OCP\Util :: addscript ( 'gallery' , 'album_cover' );
OCP\Util :: addscript ( 'files_imageviewer' , 'jquery.mousewheel-3.0.4.pack' );
OCP\Util :: addscript ( 'files_imageviewer' , 'jquery.fancybox-1.3.4.pack' );
2012-05-01 07:49:22 +00:00
OCP\Util :: addStyle ( 'files_imageviewer' , 'jquery.fancybox-1.3.4' );
2012-04-14 14:44:15 +00:00
$l = OC_L10N :: get ( 'gallery' );
2011-09-25 20:32:08 +00:00
?>
2011-10-16 21:16:32 +00:00
< script type = " text/javascript " >
$ ( document ) . ready ( function () {
$ ( " a[rel=images] " ) . fancybox ({
'titlePosition' : 'inside'
});
});
</ script >
2011-09-25 20:32:08 +00:00
< div id = " controls " >
2012-01-15 17:58:08 +00:00
< a href = " ? " >< input type = " button " value = " <?php echo $l->t ('Back');?> " /></ a >
2011-12-21 17:37:17 +00:00
< br />
2011-09-25 20:32:08 +00:00
</ div >
2011-12-08 19:04:56 +00:00
< div id = " gallery_list " class = " leftcontent " >
</ div >
< div id = " gallery_images " class = " rightcontent " >
2011-10-02 11:52:04 +00:00
< ? php
2011-09-25 20:32:08 +00:00
foreach ( $_ [ 'photos' ] as $a ) {
?>
2011-12-08 19:04:56 +00:00
< a rel = " images " href = " ../../files/download.php?file=<?php echo urlencode( $a ); ?> " >< img src = " ajax/thumbnail.php?img=<?php echo urlencode( $a ) ?> " ></ a >
2011-10-02 11:52:04 +00:00
< ? php
2011-09-25 20:32:08 +00:00
}
?>
</ div >
2012-01-30 18:36:33 +00:00
< div id = " dialog-confirm " title = " <?php echo $l->t ('Remove confirmation');?> " style = " display: none " >
< p >< span class = " ui-icon ui-icon-alert " style = " float:left; margin:0 7px 20px 0; " ></ span >< ? php echo $l -> t ( 'Do you want to remove album' ); ?> <span id="albumName"></span>?</p>
</ div >
< div id = " dialog-form " title = " <?php echo $l->t ('Change album name');?> " style = " display:none " >
< form >
< fieldset >
< label for = " name " >< ? php echo $l -> t ( 'New album name' ); ?> </label>
< input type = " text " name = " name " id = " name " class = " text ui-widget-content ui-corner-all " />
</ fieldset >
</ form >
</ div >