From c6951802cdd73297dc0cf61d86364b8c8963bb35 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Sun, 22 Apr 2012 07:56:17 +0000 Subject: [PATCH] Simple Gallery script - integrates with media-manager, experimental. --- gallery.php | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 gallery.php diff --git a/gallery.php b/gallery.php new file mode 100644 index 000000000..0a51d1adc --- /dev/null +++ b/gallery.php @@ -0,0 +1,121 @@ +catList = e107::getMedia()->getCategories('gallery'); + + if(($_GET['cat']) && isset($this->catList[$_GET['cat']])) + { + $this->showImages($_GET['cat']); + } + else + { + $this->listCategories(); + } + } + + function listCategories() + { + + foreach($this->catList as $val) + { + $thumb = ""; + $text .= "
+ + ".$thumb ." +

".$val['media_cat_title']."

+
"; + } + + e107::getRender()->tablerender("Gallery",$text); + } + + + function showImages($cat) + { + + $GALLERY_LIST_START = " + "; + + + $text = $GALLERY_LIST_START.$text.$GALLERY_LIST_END; + + e107::getRender()->tablerender("Gallery :: ".str_replace("_"," ",$cat),$text); + + } + +} + + +new gallery; + +require_once(FOOTERF); +exit; + + +?> \ No newline at end of file