Init showHeader

This commit is contained in:
Sarven Capadisli 2009-10-04 21:09:16 +00:00
parent fe4a49d4a5
commit 5087a24c48

View 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) function onStartShowAside($action)
{ {
if ($this->serveMobile) { if ($this->serveMobile) {