mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-75571 theme_boost: Activity icon
* Use Activity get_icon_url helper method to fetch icon.
This commit is contained in:
parent
fc67298a27
commit
c48f443c32
@ -161,7 +161,8 @@ class core_renderer extends \core_renderer {
|
||||
$heading = $this->page->course->fullname;
|
||||
} else {
|
||||
$heading = $this->page->cm->get_formatted_name();
|
||||
$imagedata = $this->pix_icon('monologo', '', $this->page->activityname, ['class' => 'activityicon']);
|
||||
$imagedata = html_writer::img($this->page->cm->get_icon_url()->out(false), '',
|
||||
['class' => 'icon activityicon', 'aria-hidden' => 'true']);
|
||||
$purposeclass = plugin_supports('mod', $this->page->activityname, FEATURE_MOD_PURPOSE);
|
||||
$purposeclass .= ' activityiconcontainer';
|
||||
$purposeclass .= ' modicon_' . $this->page->activityname;
|
||||
|
Loading…
x
Reference in New Issue
Block a user