Show NoticeForm only if logged in

This commit is contained in:
Evan Prodromou 2009-01-15 22:25:26 +00:00
parent 10a4d9ea1e
commit d012bdabde
1 changed files with 10 additions and 1 deletions

View File

@ -208,7 +208,11 @@ class Action extends HTMLOutputter // lawsuit
$this->showLogo();
$this->showPrimaryNav();
$this->showSiteNotice();
$this->showNoticeForm();
if (common_logged_in()) {
$this->showNoticeForm();
} else {
$this->showAnonymousMessage();
}
$this->elementEnd('div');
}
@ -285,6 +289,11 @@ class Action extends HTMLOutputter // lawsuit
$notice_form->show();
}
function showAnonymousMessage()
{
// needs to be defined by the class
}
function showCore()
{
$this->elementStart('div', array('id' => 'core'));