mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-40759 icons: Split pix_icon from activity_icon
Activity icons always use the standard icon renderer.
This commit is contained in:
parent
95b06c13c6
commit
c2dde7eebc
7 changed files with 48 additions and 7 deletions
|
@ -184,7 +184,7 @@ class block_course_overview_renderer extends plugin_renderer_base {
|
|||
$output .= html_writer::start_tag('div', array('class' => 'activity_overview'));
|
||||
$url = new moodle_url("/mod/$module/index.php", array('id' => $cid));
|
||||
$modulename = get_string('modulename', $module);
|
||||
$icontext = html_writer::link($url, $this->output->pix_icon('icon', $modulename, 'mod_'.$module, array('class'=>'iconlarge')));
|
||||
$icontext = html_writer::link($url, $this->output->activity_icon('icon', $modulename, 'mod_'.$module, array('class'=>'iconlarge')));
|
||||
if (get_string_manager()->string_exists("activityoverview", $module)) {
|
||||
$icontext .= get_string("activityoverview", $module);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue