Init showHeader

This commit is contained in:
Sarven Capadisli 2009-10-04 21:09:16 +00:00
parent fe4a49d4a5
commit 5087a24c48
1 changed files with 19 additions and 0 deletions

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)
{
if ($this->serveMobile) {