]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Init showHeader
authorSarven Capadisli <csarven@status.net>
Sun, 4 Oct 2009 21:09:16 +0000 (21:09 +0000)
committerSarven Capadisli <csarven@status.net>
Sun, 4 Oct 2009 21:09:16 +0000 (21:09 +0000)
plugins/MobileProfile/MobileProfilePlugin.php

index 28a2eb0c1327aa1a3fa93c30de69089444bdc392..90ec8129dac1a7112983550826ae85fcea6fb488 100644 (file)
@@ -207,6 +207,25 @@ class MobileProfilePlugin extends WAP20Plugin
     }
 
 
+    function onStartShowHeader($action)
+    {
+        if (!$this->serveMobile) {
+            return true;
+        }
+
+        $action->elementStart('div', array('id' => 'header'));
+        $action->showLogo();
+        $action->showPrimaryNav();
+        $action->showSiteNotice();
+        if (common_logged_in()) {
+            $action->showNoticeForm();
+        } else {
+            $action->showAnonymousMessage();
+        }
+        $action->elementEnd('div');
+    }
+
+
     function onStartShowAside($action)
     {
         if ($this->serveMobile) {