Add notice form

This commit is contained in:
Evan Prodromou 2009-01-14 12:01:53 -05:00
parent a6c9e3cea0
commit efe9d28efa
1 changed files with 13 additions and 22 deletions

View File

@ -32,6 +32,9 @@ if (!defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR.'/lib/form.php';
require_once INSTALLDIR.'/lib/htmloutputter.php';
/** /**
* Base class for all actions * Base class for all actions
* *
@ -180,17 +183,6 @@ class Action extends HTMLOutputter // lawsuit
{ {
$this->elementStart('div', array('id' => 'header')); $this->elementStart('div', array('id' => 'header'));
$this->showLogo(); $this->showLogo();
// common_element('h1', 'pagetitle', $pagetitle);
if ($headercall) {
if ($data) {
call_user_func($headercall, $data);
} else {
call_user_func($headercall);
}
}
//common_nav_menu();
$this->showPrimaryNav(); $this->showPrimaryNav();
$this->showSiteNotice(); $this->showSiteNotice();
$this->showNoticeForm(); $this->showNoticeForm();
@ -247,7 +239,6 @@ class Action extends HTMLOutputter // lawsuit
$this->elementEnd('dl'); $this->elementEnd('dl');
} }
// Revist. Should probably do an hAtom pattern here // Revist. Should probably do an hAtom pattern here
function showSiteNotice() function showSiteNotice()
{ {
@ -263,7 +254,8 @@ class Action extends HTMLOutputter // lawsuit
function showNoticeForm() function showNoticeForm()
{ {
// show the notice form here $notice_form = new NoticeForm();
$notice_form->show();
} }
function showCore() function showCore()
@ -575,7 +567,6 @@ class Action extends HTMLOutputter // lawsuit
common_end_xml(); common_end_xml();
} }
// Added @id to li for some control. We might want to move this to htmloutputter.php // Added @id to li for some control. We might want to move this to htmloutputter.php
function common_menu_item($id=null, $url, $text, $title=null, $is_selected=false) function common_menu_item($id=null, $url, $text, $title=null, $is_selected=false)
{ {