From afee9864204e226b7af15b7d0a4a4e3f5a58485b Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 25 Sep 2006 08:20:14 +0000 Subject: [PATCH] Updates for better CSS hooks --- admin/settings.php | 2 +- lib/adminlib.php | 60 ++++++++++++++++---------------- lib/weblib.php | 2 +- theme/standard/styles_layout.css | 2 +- 4 files changed, 33 insertions(+), 33 deletions(-) diff --git a/admin/settings.php b/admin/settings.php index b17bbf5619..d9647c2163 100644 --- a/admin/settings.php +++ b/admin/settings.php @@ -113,7 +113,7 @@ print_heading($root->visiblename); echo $root->output_html(); -echo '
'; +echo '
'; echo ''; diff --git a/lib/adminlib.php b/lib/adminlib.php index 53d1d3d30a..49c72b8547 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -1340,7 +1340,7 @@ class admin_setting_configtext extends admin_setting { $current = $this->get_setting(); } return format_admin_setting('text', $this->name, $this->visiblename, - '', + '', $this->description); } @@ -1372,7 +1372,7 @@ class admin_setting_configcheckbox extends admin_setting { $current = $this->get_setting(); } return format_admin_setting('checkbox', $this->name, $this->visiblename, - '', + '', $this->description); } @@ -1408,7 +1408,7 @@ class admin_setting_configselect extends admin_setting { } else { $current = $this->get_setting(); } - $return = ''; foreach ($this->choices as $key => $value) { $return .= ''; } @@ -1460,11 +1460,11 @@ class admin_setting_configtime extends admin_setting { } else { $currentsetting = $this->get_setting(); } - $return = ''; foreach ($this->choices as $key => $value) { $return .= ''; } - $return .= '      '; + $return = ''; + $return .=''; + $return .= ''; $return .= '  '; - $return .= '
'; + $return .= '
'; } - $return .= ''; + $return .= ''; $return .= '  '; - $return .= '
'; - $return .= ''; + $return .= '
'; + $return .= ''; $return .= '  '; - $return .= ''; + $return .= ''; return format_admin_setting('editorfontlist', $this->name, $this->visiblename, $return, $this->description); } @@ -2013,7 +2013,7 @@ class admin_setting_special_editorhidebuttons extends admin_setting { } $return .= ($value == '' ? get_string($key,'editor') : '' . get_string($key,'editor') . '') . ' '; - $return .= '       '; + $return .= '       '; $count++; if ($count % 15 != 0) { $return .= '

'; @@ -2165,13 +2165,13 @@ class admin_setting_special_backupdays extends admin_setting { get_string('monday', 'calendar') . '  
  ' . get_string('tuesday', 'calendar') . '  
  ' . get_string('wednesday', 'calendar') . '  
  ' . get_string('thursday', 'calendar') . '  
  ' . get_string('friday', 'calendar') . '  
  ' . get_string('saturday', 'calendar') . '  
' . - '
' . - '
' . - '
' . - '
' . - '
' . - '
' . - '
' . + '
' . + '
' . + '
' . + '
' . + '
' . + '
' . + '
' . ''; return format_admin_setting('backupdays', $this->name, $this->visiblename, $return, $this->description); @@ -2268,13 +2268,13 @@ class admin_setting_special_calendar_weekend extends admin_setting { get_string('monday', 'calendar') . '  
  ' . get_string('tuesday', 'calendar') . '  
  ' . get_string('wednesday', 'calendar') . '  
  ' . get_string('thursday', 'calendar') . '  
  ' . get_string('friday', 'calendar') . '  
  ' . get_string('saturday', 'calendar') . '  
' . - '
' . - '
' . - '
' . - '
' . - '
' . - '
' . - '
' . + '
' . + '
' . + '
' . + '
' . + '
' . + '
' . + '
' . ''; return format_admin_setting('calendarweekend', $this->name, $this->visiblename, $return, $this->description); @@ -2308,7 +2308,7 @@ class admin_setting_special_perfdebug extends admin_setting_configcheckbox { $currentsetting = $this->get_setting(); } - $return = ''; + $return = ''; return format_admin_setting('checkbox', $this->name, $this->visiblename, $return, $this->description); } @@ -2470,7 +2470,7 @@ function apply_default_exception_settings($defaults) { function format_admin_setting($class, $name, $title='', $form='', $description='') { return "\n". - '
'."\n". + '
'."\n". ''."\n". diff --git a/lib/weblib.php b/lib/weblib.php index ef60e789e3..a39831fc7f 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3600,7 +3600,7 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v } } } - $str .= '