We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 5087a24c authored by Sarven Capadisli's avatar Sarven Capadisli

Init showHeader

parent fe4a49d4
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment