]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add a menu to subs
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 11 Dec 2008 18:06:22 +0000 (13:06 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 11 Dec 2008 18:06:22 +0000 (13:06 -0500)
darcs-hash:20081211180622-5ed1f-ab61ae0e19506b9686cd560ff262d29a6d0ac267.gz

lib/gallery.php

index bd77b587c3ef2de633e4dd925b5b00542f309660..152664d4269ee64ba5728d61bd798c191984c8cc 100644 (file)
@@ -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) {