Fix site notice

This commit is contained in:
Evan Prodromou 2009-01-15 20:27:33 +00:00
parent 62ed9d3e73
commit 443e4a48c7
1 changed files with 9 additions and 7 deletions

View File

@ -265,14 +265,16 @@ class Action extends HTMLOutputter // lawsuit
// Revist. Should probably do an hAtom pattern here // Revist. Should probably do an hAtom pattern here
function showSiteNotice() function showSiteNotice()
{ {
$this->elementStart('dl', array('id' => 'site_notice', $text = common_config('site', 'notice');
'class' => 'system_notice')); if ($text) {
$this->element('dt', null, _('Site notice')); $this->elementStart('dl', array('id' => 'site_notice',
$this->elementStart('dd', null); 'class' => 'system_notice'));
// Output a bunch of paragraphs here $this->element('dt', null, _('Site notice'));
$this->elementEnd('dd'); $this->element('dd', null, $text);
$this->elementEnd('dl');
}
} }
// MAY overload if no notice form needed... or direct message box???? // MAY overload if no notice form needed... or direct message box????
function showNoticeForm() function showNoticeForm()