From: Sarven Capadisli Date: Sun, 4 Oct 2009 21:09:16 +0000 (+0000) Subject: Init showHeader X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5087a24c487891f4c5bc9fe2ff65be12fa74b930;p=quix0rs-gnu-social.git Init showHeader --- diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php index 28a2eb0c13..90ec8129da 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) {