{{!
    This file is part of Moodle - http://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 aiprovider_datacurso/header_logo

    Display plugin header with optional Datacurso logo.

    Example context (json):
    {
        "pluginname": "Datacurso AI Provider",
        "logourl": "https://datacurso.com/logo.png"
    }
}}

<div class="datacurso-header d-flex flex-wrap align-items-center justify-content-between mb-3 gap-2">
    {{#pluginname}}
        <h2 class="m-0">{{.}}</h2>
    {{/pluginname}}
    {{#logourl}}
        <a href="https://datacurso.com/" target="_blank" rel="noopener noreferrer" class="d-flex align-items-center">
            <img src="{{.}}" alt="{{#str}}alt_datacurso_icon, aiprovider_datacurso{{/str}}" style="height:35px;">
        </a>
    {{/logourl}}
</div>
