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:
tjhunt 2009-02-04 08:21:18 +00:00
parent 838f69de81
commit 7797b0df31

View File

@ -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 .= '&nbsp;(<a href="'. $baseurl . $pagevar .'='. $pagenum .'">'. get_string('previous') .'</a>)&nbsp;';
$output .= '&nbsp;(<a class="previous" href="'. $baseurl . $pagevar .'='. $pagenum .'">'. get_string('previous') .'</a>)&nbsp;';
} else {
$output .= '&nbsp;(<a href="'. $baseurl->out(false, array($pagevar => $pagenum)).'">'. get_string('previous') .'</a>)&nbsp;';
$output .= '&nbsp;(<a class="previous" href="'. $baseurl->out(false, array($pagevar => $pagenum)).'">'. get_string('previous') .'</a>)&nbsp;';
}
}
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 .= '&nbsp;&nbsp;(<a href="'. $baseurl . $pagevar .'='. $pagenum .'">'. get_string('next') .'</a>)';
$output .= '&nbsp;&nbsp;(<a class="next" href="'. $baseurl . $pagevar .'='. $pagenum .'">'. get_string('next') .'</a>)';
} else {
$output .= '&nbsp;&nbsp;(<a href="'. $baseurl->out(false, array($pagevar => $pagenum)) .'">'. get_string('next') .'</a>)';
$output .= '&nbsp;&nbsp;(<a class="next" href="'. $baseurl->out(false, array($pagevar => $pagenum)) .'">'. get_string('next') .'</a>)';
}
}
$output .= '</div>';