MDL-46625 theme: Added a way to target the current page
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
4bdc10db61
commit
ee483e0520
@@ -2335,7 +2335,7 @@ class paging_bar implements renderable {
|
||||
$displaypage = $currpage + 1;
|
||||
|
||||
if ($this->page == $currpage) {
|
||||
$this->pagelinks[] = $displaypage;
|
||||
$this->pagelinks[] = html_writer::span($displaypage, 'current-page');
|
||||
} else {
|
||||
$pagelink = html_writer::link(new moodle_url($this->baseurl, array($this->pagevar=>$currpage)), $displaypage);
|
||||
$this->pagelinks[] = $pagelink;
|
||||
|
||||
Reference in New Issue
Block a user