MDL-40759 icons: convert uses of pix_url to pix_icon
Also change filepicker to use scaled svgs instead of sets of custom pngs. The svgs are taken from font-awesome.
This commit is contained in:
+4
-8
@@ -1177,16 +1177,14 @@ class flexible_table {
|
||||
'aria-expanded' => 'false',
|
||||
'aria-controls' => $ariacontrols);
|
||||
return html_writer::link($this->baseurl->out(false, array($this->request[TABLE_VAR_SHOW] => $column)),
|
||||
html_writer::empty_tag('img', array('src' => $OUTPUT->pix_url('t/switch_plus'), 'alt' => get_string('show'))),
|
||||
$linkattributes);
|
||||
$OUTPUT->pix_icon('t/switch_plus', get_string('show')), $linkattributes);
|
||||
|
||||
} else if ($this->headers[$index] !== NULL) {
|
||||
$linkattributes = array('title' => get_string('hide') . ' ' . strip_tags($this->headers[$index]),
|
||||
'aria-expanded' => 'true',
|
||||
'aria-controls' => $ariacontrols);
|
||||
return html_writer::link($this->baseurl->out(false, array($this->request[TABLE_VAR_HIDE] => $column)),
|
||||
html_writer::empty_tag('img', array('src' => $OUTPUT->pix_url('t/switch_minus'), 'alt' => get_string('hide'))),
|
||||
$linkattributes);
|
||||
$OUTPUT->pix_icon('t/switch_minus', get_string('hide')), $linkattributes);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1295,11 +1293,9 @@ class flexible_table {
|
||||
}
|
||||
|
||||
if ($order == SORT_ASC) {
|
||||
return html_writer::empty_tag('img',
|
||||
array('src' => $OUTPUT->pix_url('t/sort_asc'), 'alt' => get_string('asc'), 'class' => 'iconsort'));
|
||||
return $OUTPUT->pix_icon('t/sort_asc', get_string('asc'));
|
||||
} else {
|
||||
return html_writer::empty_tag('img',
|
||||
array('src' => $OUTPUT->pix_url('t/sort_desc'), 'alt' => get_string('desc'), 'class' => 'iconsort'));
|
||||
return $OUTPUT->pix_icon('t/sort_desc', get_string('desc'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user