diff options
author | Bartek Przybylski <bart.p.pl@gmail.com> | 2011-09-26 00:32:08 +0400 |
---|---|---|
committer | Bartek Przybylski <bart.p.pl@gmail.com> | 2011-09-26 00:32:08 +0400 |
commit | bc43851d74e8fceea1c914e98a8cd571b84610d5 (patch) | |
tree | 171216b960b26719fe124db95a20520c9a3d0081 /apps/gallery/templates | |
parent | fb01a7269304fe38369f01293f8f7fb707061363 (diff) |
initial commit for gallery app
Diffstat (limited to 'apps/gallery/templates')
-rw-r--r-- | apps/gallery/templates/index.php | 22 | ||||
-rw-r--r-- | apps/gallery/templates/view_album.php | 20 |
2 files changed, 42 insertions, 0 deletions
diff --git a/apps/gallery/templates/index.php b/apps/gallery/templates/index.php new file mode 100644 index 00000000000..45f70daa2e0 --- /dev/null +++ b/apps/gallery/templates/index.php @@ -0,0 +1,22 @@ +<? +OC_Util::addStyle('gallery', 'styles'); +OC_Util::addScript('gallery', 'album_cover'); +?> + +<div id="controls"> + <input type="button" value="New album" onclick="javascript:createNewAlbum();" /> + <input type="button" value="Rescan" onclick="javascript:scanForAlbums();" /><br/> +</div> +<div id="gallery_list"> +<? +require_once('base.php'); +foreach ($_['r'] as $r) { +?> + <div class="gallery_album_box"> + <a href="?view=<? echo $r['album_name']; ?>"><img class="gallery_album_cover"></a> + <h1><? echo $r['album_name']; ?></h1> + </div> +<? +} +?> +</div> diff --git a/apps/gallery/templates/view_album.php b/apps/gallery/templates/view_album.php new file mode 100644 index 00000000000..c1298a22c22 --- /dev/null +++ b/apps/gallery/templates/view_album.php @@ -0,0 +1,20 @@ +<? +OC_Util::addStyle('gallery', 'styles'); +OC_Util::addScript('gallery', 'album_cover'); +OC_Util::addScript( 'files_imageviewer', 'lightbox' ); +OC_Util::addStyle( 'files_imageviewer', 'lightbox' ); +?> + +<div id="controls"> + <a href="?"><input type="button" value="Back" /></a><br/> +</div> +<div id="gallery_list"> +<? +foreach ($_['photos'] as $a) { +?> +<a onclick="javascript:viewImage('/','<? echo $a; ?>');"><img src="ajax/thumbnail.php?img=<? echo $a ?>"></a> +<? + } +?> + +</div> |