| Línea 1020... |
Línea 1020... |
| 1020 |
if (!is_null($sortid)) {
|
1020 |
if (!is_null($sortid)) {
|
| 1021 |
if ($sortby !== $sortid or $sorthow !== 'ASC') {
|
1021 |
if ($sortby !== $sortid or $sorthow !== 'ASC') {
|
| 1022 |
$url = new moodle_url($this->page->url);
|
1022 |
$url = new moodle_url($this->page->url);
|
| 1023 |
$url->params(array('sortby' => $sortid, 'sorthow' => 'ASC'));
|
1023 |
$url->params(array('sortby' => $sortid, 'sorthow' => 'ASC'));
|
| 1024 |
$out .= $this->output->action_icon($url, new pix_icon('t/sort_asc', get_string('sortasc', 'workshop')),
|
1024 |
$out .= $this->output->action_icon($url, new pix_icon('t/sort_asc', get_string('sortasc', 'workshop')),
|
| 1025 |
null, array('class' => 'iconsort sort asc'));
|
1025 |
null, ['class' => 'sort asc']);
|
| 1026 |
}
|
1026 |
}
|
| 1027 |
if ($sortby !== $sortid or $sorthow !== 'DESC') {
|
1027 |
if ($sortby !== $sortid or $sorthow !== 'DESC') {
|
| 1028 |
$url = new moodle_url($this->page->url);
|
1028 |
$url = new moodle_url($this->page->url);
|
| 1029 |
$url->params(array('sortby' => $sortid, 'sorthow' => 'DESC'));
|
1029 |
$url->params(array('sortby' => $sortid, 'sorthow' => 'DESC'));
|
| 1030 |
$out .= $this->output->action_icon($url, new pix_icon('t/sort_desc', get_string('sortdesc', 'workshop')),
|
1030 |
$out .= $this->output->action_icon($url, new pix_icon('t/sort_desc', get_string('sortdesc', 'workshop')),
|
| 1031 |
null, array('class' => 'iconsort sort desc'));
|
1031 |
null, ['class' => 'sort desc']);
|
| 1032 |
}
|
1032 |
}
|
| 1033 |
}
|
1033 |
}
|
| 1034 |
return $out;
|
1034 |
return $out;
|
| 1035 |
}
|
1035 |
}
|