mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
weblib: MDL-17525 Give previous and next links in paging bars class names, so they can be themed.
Thanks to Daniel Neis for the patch. I checked the standard theme, and I don't see any rules there that would erroneously apply to these class names in paging bars.
This commit is contained in:
parent
838f69de81
commit
7797b0df31
@ -6345,9 +6345,9 @@ function print_paging_bar($totalcount, $page, $perpage, $baseurl, $pagevar='page
|
||||
if ($page > 0) {
|
||||
$pagenum = $page - 1;
|
||||
if (!is_a($baseurl, 'moodle_url')){
|
||||
$output .= ' (<a href="'. $baseurl . $pagevar .'='. $pagenum .'">'. get_string('previous') .'</a>) ';
|
||||
$output .= ' (<a class="previous" href="'. $baseurl . $pagevar .'='. $pagenum .'">'. get_string('previous') .'</a>) ';
|
||||
} else {
|
||||
$output .= ' (<a href="'. $baseurl->out(false, array($pagevar => $pagenum)).'">'. get_string('previous') .'</a>) ';
|
||||
$output .= ' (<a class="previous" href="'. $baseurl->out(false, array($pagevar => $pagenum)).'">'. get_string('previous') .'</a>) ';
|
||||
}
|
||||
}
|
||||
if ($perpage > 0) {
|
||||
@ -6393,9 +6393,9 @@ function print_paging_bar($totalcount, $page, $perpage, $baseurl, $pagevar='page
|
||||
$pagenum = $page + 1;
|
||||
if ($pagenum != $displaypage) {
|
||||
if (!is_a($baseurl, 'moodle_url')){
|
||||
$output .= ' (<a href="'. $baseurl . $pagevar .'='. $pagenum .'">'. get_string('next') .'</a>)';
|
||||
$output .= ' (<a class="next" href="'. $baseurl . $pagevar .'='. $pagenum .'">'. get_string('next') .'</a>)';
|
||||
} else {
|
||||
$output .= ' (<a href="'. $baseurl->out(false, array($pagevar => $pagenum)) .'">'. get_string('next') .'</a>)';
|
||||
$output .= ' (<a class="next" href="'. $baseurl->out(false, array($pagevar => $pagenum)) .'">'. get_string('next') .'</a>)';
|
||||
}
|
||||
}
|
||||
$output .= '</div>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user