From: moodler Date: Sat, 29 Jan 2005 04:01:15 +0000 (+0000) Subject: Removed some $THEME and added some new classes for the blockconfiginstance X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0705dcc035b0b06a25b844d484260d05cfb00b61;p=moodle.git Removed some $THEME and added some new classes for the blockconfiginstance and blockconfigglobal boxes --- diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 0d4195362e..82170ae9ff 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -259,13 +259,12 @@ class block_base { * Sets class $edit_controls var with correct block manipulation links. * * @uses $CFG - * @uses $THEME * @uses $USER * @param stdObject $options ? * @todo complete documenting this function. Define $options. */ function _add_edit_controls($options) { - global $CFG, $THEME, $USER; + global $CFG, $USER; if (!isset($this->str)) { $this->str->delete = get_string('delete'); @@ -278,14 +277,6 @@ class block_base { $this->str->configure = get_string('configuration'); } - $path = $CFG->wwwroot.'/course'; - - if (empty($THEME->custompix)) { - $pixpath = $path .'/../pix'; - } else { - $pixpath = $path .'/../theme/'. $CFG->theme .'/pix'; - } - $movebuttons = '
'; if ($this->instance->visible) { @@ -300,31 +291,31 @@ class block_base { $script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey)); $movebuttons .= '' . - ''.$title.''; + ''.$title.''; if ($options & BLOCK_CONFIGURE) { $movebuttons .= '' . - ''. $this->str->configure .''; + ''. $this->str->configure .''; } $movebuttons .= '' . - ''. $this->str->delete .' '; + ''. $this->str->delete .' '; if ($options & BLOCK_MOVE_LEFT) { $movebuttons .= '' . - ''. $this->str->moveleft .''; + ''. $this->str->moveleft .''; } if ($options & BLOCK_MOVE_UP) { $movebuttons .= '' . - ''. $this->str->moveup .''; + ''. $this->str->moveup .''; } if ($options & BLOCK_MOVE_DOWN) { $movebuttons .= '' . - ''. $this->str->movedown .''; + ''. $this->str->movedown .''; } if ($options & BLOCK_MOVE_RIGHT) { $movebuttons .= '' . - ''. $this->str->moveright .''; + ''. $this->str->moveright .''; } $movebuttons .= '
'; @@ -390,7 +381,6 @@ class block_base { * You don't need to override this if you're satisfied with the above * * @uses $CFG - * @uses $THEME * @return boolean */ function config_print() { @@ -399,8 +389,8 @@ class block_base { if (!$this->has_config()) { return false; } - global $CFG, $THEME; - print_simple_box_start('center', '', $THEME->cellheading); + global $CFG; + print_simple_box_start('center', '', '', 5, 'blockconfigglobal'); include($CFG->dirroot.'/blocks/'. $this->name() .'/config_global.html'); print_simple_box_end(); return true; @@ -516,7 +506,6 @@ class block_base { * You don't need to override this if you're satisfied with the above * * @uses $CFG - * @uses $THEME * @return boolean * @todo finish documenting this function */ @@ -526,10 +515,10 @@ class block_base { if (!$this->instance_allow_multiple() && !$this->instance_allow_config()) { return false; } - global $CFG, $THEME; + global $CFG; if (is_file($CFG->dirroot .'/blocks/'. $this->name() .'/config_instance.html')) { - print_simple_box_start('center', '', $THEME->cellheading); + print_simple_box_start('center', '', '', 5, 'blockconfiginstance'); include($CFG->dirroot .'/blocks/'. $this->name() .'/config_instance.html'); print_simple_box_end(); } else {