* @return boolean whether anything was done. Blocks should use edit_form.php.
*/
function instance_config_print() {
- global $CFG, $DB;
+ global $CFG, $DB, $OUTPUT;
// Default behavior: print the config_instance.html file
// You don't need to override this if you're satisfied with the above
if (!$this->instance_allow_multiple() && !$this->instance_allow_config()) {
}
if (is_file($CFG->dirroot .'/blocks/'. $this->name() .'/config_instance.html')) {
- print_simple_box_start('center', '', '', 5, 'blockconfiginstance');
+ echo $OUTPUT->box_start('generalbox boxaligncenter blockconfiginstance');
include($CFG->dirroot .'/blocks/'. $this->name() .'/config_instance.html');
- print_simple_box_end();
+ echo $OUTPUT->box_end();
} else {
notice(get_string('blockconfigbad'), str_replace('blockaction=', 'dummy=', qualified_me()));
}
}
function get_content() {
- global $CFG;
+ global $CFG, $OUTPUT;
if($this->content !== NULL) {
return $this->content;
'<input id="searchform_search" name="search" type="text" size="16" />';
$this->content->text .= '<button id="searchform_button" type="submit" title="'.$search.'">'.$button.'</button><br />';
$this->content->text .= '<a href="'.$CFG->wwwroot.'/mod/forum/search.php?id='.$this->page->course->id.'">'.$advancedsearch.'</a>';
- $this->content->text .= helpbutton('search', $advancedsearch, 'moodle', true, false, '', true);
+ $this->content->text .= $OUTPUT->help_icon(moodle_help_icon::make('search', $advancedsearch));
$this->content->text .= '</fieldset></form></div>';
return $this->content;
$tagthisunit = get_string('tagthisunit', $tagslang);
$buttonadd = get_string('add', $tagslang);
$arrowtitle = get_string('arrowtitle', $tagslang);
- $coursetaghelpbutton = helpbutton('addtags', 'adding tags', $tagslang, TRUE, FALSE, '', TRUE);
+ $coursetaghelpbutton = $OUTPUT->help_icon(moodle_help_icon::make('addtags', 'adding tags', $tagslang));
$sesskey = sesskey();
$arrowright = $OUTPUT->old_icon_url('t/arrow_left');
$this->content->footer .= <<<EOT