Fixes bug MDL-6360 "Resizable image in breadcrumb trail..."

- files block_search_forums.php, calendar/lib.php, lang/en_utf8/access.php, weblib.php, theme/standard/config.php, styles_color.css
This commit is contained in:
nfreear 2006-09-19 11:36:21 +00:00
parent 717cfb0a7b
commit 57100a9098
6 changed files with 91 additions and 30 deletions

View file

@ -10,7 +10,7 @@ class block_search_forums extends block_base {
}
function get_content() {
global $CFG;
global $CFG, $THEME;
if($this->content !== NULL) {
return $this->content;
@ -26,12 +26,16 @@ class block_search_forums extends block_base {
$advancedsearch = get_string('advancedsearch', 'block_search_forums');
//Accessibility: replaced <input value=">" type="submit"> with button-embedded image.
//Accessibility: replaced <input value=">" type="submit"> with configurable text/'silent' character.
check_theme_arrows();
// Theme config, $CFG->block_search_button = $THEME->rarrow .'<span class="accesshide">'.get_string('search').'</span>';
$button = (isset($CFG->block_search_button)) ? $CFG->block_search_button : get_string('go');
$this->content->text = '<div class="searchform">';
$this->content->text .= '<form name="search" action="'.$CFG->wwwroot.'/mod/forum/search.php" style="display:inline">';
$this->content->text .= '<input name="id" type="hidden" value="'.$this->instance->pageid.'" />'; // course
$this->content->text .= '<input name="search" type="text" size="16" value="" />';
$this->content->text .= '<button type="submit" title="'.get_string('search').'"><img src="'.$CFG->pixpath.'/a/r_go.gif" alt="" class="resize" /><span class="accesshide">'.get_string('search').'</span></button><br />';
$this->content->text .= '<input name="search" type="text" size="16" />';
$this->content->text .= '<button type="submit" title="'.get_string('search').'">'.$button.'</button><br />';
$this->content->text .= '<a href="'.$CFG->wwwroot.'/mod/forum/search.php?id='.$this->instance->pageid.'">'.$advancedsearch.'</a>';
$this->content->text .= helpbutton('search', $advancedsearch, 'moodle', true, false, '', true);
$this->content->text .= '</form></div>';