{{!
    This file is part of Moodle - https://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    @template local_deepler/activity_icon

    Classes required for JS: none

    Data attributes required for JS: none

    Context variables required for this template:
    * itempurpose - CSS purpose (e.g., 'modicon')
    * icon - icon URL (HTML-safe)
    * pluginname - plugin name for alt text

    Example context (json):
    {
        "pluginname":"myPlugin",
        "icon":"https://path/to/icon.png",
        "itempurpose":"purpose"
    }
}}
<span class='{{itempurpose}} activity-icon activityiconcontainer smaller courseicon align-self-start mr-2'>
    <img src='{{{icon}}}' alt='icon for {{pluginname}}' loading='lazy' decoding='async'>
</span>
