summaryrefslogtreecommitdiff
path: root/plugins/MobileProfile
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-10-04 21:09:16 +0000
committerSarven Capadisli <csarven@status.net>2009-10-04 21:09:16 +0000
commit5087a24c487891f4c5bc9fe2ff65be12fa74b930 (patch)
treeed898b86e5cb26f682fdb4f89f49e255c9bc2031 /plugins/MobileProfile
parentfe4a49d4a5cc728d6ee0484ceecba796af29fc42 (diff)
Init showHeader
Diffstat (limited to 'plugins/MobileProfile')
-rw-r--r--plugins/MobileProfile/MobileProfilePlugin.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php
index 28a2eb0c1..90ec8129d 100644
--- a/plugins/MobileProfile/MobileProfilePlugin.php
+++ b/plugins/MobileProfile/MobileProfilePlugin.php
@@ -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) {