{{!
    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 local_coursedynamicrules/header_with_brand

    Reusable row with heading (pre-rendered) and Datacurso logo aligned in the same line.

    Context:
    - heading: Pre-rendered HTML for the page heading (use triple-mustache).
    - logourl: Absolute URL to the Datacurso logo image.

    Example context (json):
    {
        "heading": "<h2 class=\"h4 m-0\">Example heading</h2>",
        "logourl": "https://example.com/logo.png"
    }
}}
<div class="d-flex align-items-center justify-content-between gap-2 mb-2 flex-wrap">
    <div class="flex-grow-1">{{{heading}}}</div>
    {{#logourl}}
    <a href="https://datacurso.com/" target="_blank" rel="noopener noreferrer" class="d-flex align-items-center">
        <img src="{{logourl}}" alt="{{#str}} datacurso, local_coursedynamicrules {{/str}}" style="height:28px;opacity:.9;">
    </a>
    {{/logourl}}
</div>
