summaryrefslogtreecommitdiff
path: root/lib/gallery.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-12-11 13:06:22 -0500
committerEvan Prodromou <evan@controlyourself.ca>2008-12-11 13:06:22 -0500
commitfb837b86c5ab46f92fba37db0d37d49071d71a74 (patch)
tree921b637d306ff6324c0eb16ec166403ad611f27a /lib/gallery.php
parenta0d85c93bca769ed27968f72330503bf62fd7bc1 (diff)
add a menu to subs
darcs-hash:20081211180622-5ed1f-ab61ae0e19506b9686cd560ff262d29a6d0ac267.gz
Diffstat (limited to 'lib/gallery.php')
-rw-r--r--lib/gallery.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/gallery.php b/lib/gallery.php
index bd77b587c..152664d42 100644
--- a/lib/gallery.php
+++ b/lib/gallery.php
@@ -119,6 +119,25 @@ class GalleryAction extends Action {
function show_top($profile) {
common_element('div', 'instructions',
$this->get_instructions($profile));
+ $this->show_menu();
+ }
+
+ function show_menu() {
+ # action => array('prompt', 'title', $args)
+ $action = $this->trimmed('action');
+ $nickname = $this->trimmed('nickname');
+ $menu =
+ array('subscriptions' =>
+ array(
+ _('Subscribers'),
+ _('Subscribers'),
+ array('nickname' => $nickname)),
+ 'subscribers' =>
+ array( _('Subscriptions'),
+ _('Subscriptions'),
+ array('nickname' => $nickname)),
+ );
+ $this->nav_menu($menu);
}
function show_gallery($profile, $page, $display='list', $tag=NULL) {