]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/action.php
add a profile block to left column
[quix0rs-gnu-social.git] / lib / action.php
index 12464c2c68e768432ebc5bcaf274547efbf9f9d1..aa85c40f22fdbd1a41b529c9c1f62131bb57a08c 100644 (file)
@@ -716,10 +716,26 @@ class Action extends HTMLOutputter // lawsuit
         // Need to have this ID for CSS; I'm too lazy to add it to
         // all menus
         $this->elementStart('div', array('id' => 'site_nav_local_views'));
+        // Cheat cheat cheat!
+        $this->showProfileBlock();
         $this->showLocalNav();
         $this->elementEnd('div');
     }
 
+    /**
+     * If there's a logged-in user, show a bit of login context
+     *
+     * @return nothing
+     */
+
+    function showProfileBlock()
+    {
+        if (common_logged_in()) {
+            $block = new DefaultProfileBlock($this);
+            $block->show();
+        }
+    }
+
     /**
      * Show local navigation.
      *