summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-15 22:25:26 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-15 22:25:26 +0000
commitd012bdabde712fbb600408d4a834cba399d4015d (patch)
treefa87ce49220948a90bd4e0252b0c28c0ee57b749
parent10a4d9ea1e7a930354c8005fb1f418f12d33013b (diff)
Show NoticeForm only if logged in
-rw-r--r--lib/action.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/action.php b/lib/action.php
index d106ba366..9df39e9a8 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -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'));