From: Evan Prodromou Date: Thu, 15 Jan 2009 22:25:26 +0000 (+0000) Subject: Show NoticeForm only if logged in X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d012bdabde712fbb600408d4a834cba399d4015d;p=quix0rs-gnu-social.git Show NoticeForm only if logged in --- diff --git a/lib/action.php b/lib/action.php index d106ba3666..9df39e9a82 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'));