{{!
    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 <https://www.gnu.org/licenses/>.
}}

{{!
    @template core/full_header

    Template for rendering the full page header area in theme_nice.

    Renders:
    - The page settings menu (gear menu) if present.
    - Any header action buttons (e.g. edit mode, custom buttons).
    - Optional page heading button area.
    - Optional course header HTML content.

    Context variables required for this template:
    * settingsmenu - HTML for the page settings dropdown menu.
    * headeractions - An array of HTML snippets for header action buttons.
    * pageheadingbutton - HTML for a special page heading button.
    * courseheader - HTML content for the course header block.

    Example context (JSON):
    {
        "settingsmenu": "<div class=\"dropdown\"><button class=\"btn dropdown-toggle\">Settings</button></div>",
        "headeractions": [
            "<button class=\"btn btn-primary\">Turn editing on</button>",
            "<button class=\"btn btn-secondary\">More actions</button>"
        ],
        "pageheadingbutton": "<a class=\"btn btn-outline-primary\" href=\"#\">Add activity</a>",
        "courseheader": "<div class=\"course-info\"><h2>Course Name</h2><p>Course description</p></div>"
    }
}}

<div class="container">
   <div class="nice-breadcrumb-widgets clearfix">
      {{#settingsmenu}}
      <div id="nice-settings-menu-id" class="context-header-settings-menu" aria-label="Page settings">
         {{{settingsmenu}}}
      </div>
      {{/settingsmenu}}
      {{#headeractions}}
      <div class="header-actions-container flex-shrink-0" data-region="header-actions-container">
         <div class="header-action ms-2 text-end">{{{.}}}</div>
      </div>
      {{/headeractions}}
      {{#pageheadingbutton }}
      <div id="page-heading-button">
         {{{pageheadingbutton}}}
      </div>
      {{/pageheadingbutton }}
      {{#courseheader }}
      <div id="course-header">
         {{{courseheader}}}
      </div>
      {{/courseheader }}
   </div>
</div>