mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Follow up fix for MDL-11436 'Encapsulate "accesshide" HTML class in function', and use.
This commit is contained in:
parent
bddd9f6f40
commit
f79f249490
3 changed files with 5 additions and 5 deletions
|
@ -321,7 +321,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
|
|||
$popup = calendar_get_popup(true, false);
|
||||
$cell = '<a href="#" '.$popup.'>'.$day.'</a>';
|
||||
}
|
||||
$cell = '<span class="accesshide">'.$today.' </span>'.$cell;
|
||||
$cell = get_accesshide($today.' ').$cell;
|
||||
}
|
||||
|
||||
// Just display it
|
||||
|
|
|
@ -654,8 +654,8 @@ class flexible_table {
|
|||
$fsortorder = get_string('asc');
|
||||
$lsortorder = get_string('asc');
|
||||
}
|
||||
$this->headers[$index] = '<a href="'.$this->baseurl.$this->request[TABLE_VAR_SORT].'=firstname">'.get_string('firstname').'<span class="accesshide">'.get_string('sortby').' '.get_string('firstname').' '.$fsortorder.'</span></a> '.$icon_sort_first.' / '.
|
||||
'<a href="'.$this->baseurl.$this->request[TABLE_VAR_SORT].'=lastname">'.get_string('lastname').'<span class="accesshide">'.get_string('sortby').' '.get_string('lastname').' '.$lsortorder.'</span></a> '.$icon_sort_last;
|
||||
$this->headers[$index] = '<a href="'.$this->baseurl.$this->request[TABLE_VAR_SORT].'=firstname">'.get_string('firstname').get_accesshide(get_string('sortby').' '.get_string('firstname').' '.$fsortorder).'</a> '.$icon_sort_first.' / '.
|
||||
'<a href="'.$this->baseurl.$this->request[TABLE_VAR_SORT].'=lastname">'.get_string('lastname').get_accesshide(get_string('sortby').' '.get_string('lastname').' '.$lsortorder).'</a> '.$icon_sort_last;
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -677,7 +677,7 @@ class flexible_table {
|
|||
} else {
|
||||
$localsortorder = get_string('asc');
|
||||
}
|
||||
$this->headers[$index] = '<a href="'.$this->baseurl.$this->request[TABLE_VAR_SORT].'='.$column.'">'.$this->headers[$index].'<span class="accesshide">'.get_string('sortby').' '.$this->headers[$index].' '.$localsortorder.'</span></a>';
|
||||
$this->headers[$index] = '<a href="'.$this->baseurl.$this->request[TABLE_VAR_SORT].'='.$column.'">'.$this->headers[$index].get_accesshide(get_string('sortby').' '.$this->headers[$index].' '.$localsortorder).'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3499,7 +3499,7 @@ function build_navigation($extranavlinks, $cm = null) {
|
|||
|
||||
//Construct an unordered list from $navlinks
|
||||
//Accessibility: heading hidden from visual browsers by default.
|
||||
$navigation = '<h2 class="accesshide">'.get_string('youarehere','access')."</h2> <ul>\n";
|
||||
$navigation = get_accesshide(get_string('youarehere','access'), 'h2')." <ul>\n";
|
||||
$lastindex = count($navlinks) - 1;
|
||||
$i = -1; // Used to count the times, so we know when we get to the last item.
|
||||
$first = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue