diff options
author | Zach Copley <zach@status.net> | 2009-11-18 18:25:36 -0800 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-11-18 18:25:36 -0800 |
commit | cf7188a4586c5ce5b539229035866cf494413a76 (patch) | |
tree | f8bc8f22fcd3883994e8cbb2b042eb0a0cf654df /actions/siteadminpanel.php | |
parent | 8f2db3820f6ab2c8881521c0adc9a6427b5ea86b (diff) |
Design admin panel mostly done.
Diffstat (limited to 'actions/siteadminpanel.php')
-rw-r--r-- | actions/siteadminpanel.php | 47 |
1 files changed, 1 insertions, 46 deletions
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 @@ -316,51 +316,6 @@ class SiteAdminPanelForm extends Form } /** - * 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 * * @return void |