From cf7188a4586c5ce5b539229035866cf494413a76 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 18 Nov 2009 18:25:36 -0800 Subject: Design admin panel mostly done. --- actions/siteadminpanel.php | 47 +--------------------------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) (limited to 'actions/siteadminpanel.php') diff --git a/actions/siteadminpanel.php b/actions/siteadminpanel.php index c316f8e17..965afb685 100644 --- a/actions/siteadminpanel.php +++ b/actions/siteadminpanel.php @@ -193,7 +193,7 @@ class SiteadminpanelAction extends AdminPanelAction } } -class SiteAdminPanelForm extends Form +class SiteAdminPanelForm extends AdminForm { /** * ID of the form @@ -315,51 +315,6 @@ class SiteAdminPanelForm extends Form $this->out->elementEnd('ul'); } - /** - * Utility to simplify some of the duplicated code around - * params and settings. - * - * @param string $setting Name of the setting - * @param string $title Title to use for the input - * @param string $instructions Instructions for this field - * @param string $section config section, default = 'site' - * - * @return void - */ - - function input($setting, $title, $instructions, $section='site') - { - $this->out->input($setting, $title, $this->value($setting, $section), $instructions); - } - - /** - * Utility to simplify getting the posted-or-stored setting value - * - * @param string $setting Name of the setting - * @param string $main configuration section, default = 'site' - * - * @return string param value if posted, or current config value - */ - - function value($setting, $main='site') - { - $value = $this->out->trimmed($setting); - if (empty($value)) { - $value = common_config($main, $setting); - } - return $value; - } - - function li() - { - $this->out->elementStart('li'); - } - - function unli() - { - $this->out->elementEnd('li'); - } - /** * Action elements * -- cgit v1.2.3-54-g00ecf