From: Sarven Capadisli Date: Sat, 27 Jun 2009 03:21:18 +0000 (+0000) Subject: Added input submit to let the user to go back to site's default design X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f65015b24a8448ecbb12b3897992cdaf6b563212;p=quix0rs-gnu-social.git Added input submit to let the user to go back to site's default design settings --- diff --git a/lib/designsettings.php b/lib/designsettings.php index 9650679ac5..5def5053fd 100644 --- a/lib/designsettings.php +++ b/lib/designsettings.php @@ -212,18 +212,19 @@ class DesignSettingsAction extends AccountSettingsAction 'maxlength' => '7', 'size' => '7', 'value' => '#' . $lcolor->hexValue())); + $this->elementEnd('li'); - $this->elementEnd('li'); + } catch (WebColorException $e) { + common_log(LOG_ERR, 'Bad color values in design ID: ' .$design->id); + } - } catch (WebColorException $e) { - common_log(LOG_ERR, 'Bad color values in design ID: ' . - $design->id); - } + $this->elementEnd('ul'); + $this->elementEnd('fieldset'); - $this->elementEnd('ul'); - $this->elementEnd('fieldset'); + $this->submit('defaults', _('Use defaults'), 'submit form_action-default', + 'defaults', _('Restore default designs')); - $this->element('input', array('id' => 'settings_design_reset', + $this->element('input', array('id' => 'settings_design_reset', 'type' => 'reset', 'value' => 'Reset', 'class' => 'submit form_action-primary', diff --git a/theme/base/css/display.css b/theme/base/css/display.css index 78fcd7ecef..85b42cdd16 100644 --- a/theme/base/css/display.css +++ b/theme/base/css/display.css @@ -206,7 +206,10 @@ border-radius:4px; padding:0 7px; } - +.form_settings input.form_action-default { +margin-right:11px; +} +.form_settings input.form_action-default, .form_settings input.form_action-primary { padding:0; }