{{!
    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.

    Edwiser RemUI 
    @package    theme_remui
    @copyright  (c) 2018 WisdmLabs (https://wisdmlabs.com/)
    @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 
}}

<!-- navbar-inverse -->
<nav class="site-navbar navbar navbar-default navbar-fixed-top moodle-has-zindex {{ navbarinverse }} {{# sitecolor }} bg-{{sitecolor}}-600 {{/ sitecolor }}" role="navigation">
    <div class="navbar-header d-flex justify-content-end {{^sitecolor}} bg-primary {{/sitecolor}}">
      <button type="button" class="navbar-toggler hamburger hamburger-close navbar-toggler-left hided mr-auto"
      data-toggle="menubar">
        <span class="sr-only">{{#str}}expand, core{{/str}}</span>
        <span class="hamburger-bar"></span>
      </button>
      
      <div class="navbar-brand navbar-brand-center p-0 {{# sitecolor }} bg-{{sitecolor}}-600 {{/ sitecolor }}">
        {{# output.should_display_logo }}
          {{# isiconsitename }}
            <a class="text-white text-center d-block h-full" style="line-height:66px;" href="{{{ config.wwwroot }}}">
              <span class="navbar-brand-logo mini w-full h-full"><i class="fa fa-{{siteicon}}"></i></span>
              <span class="navbar-brand-logo w-full h-full">
                  <i class="fa fa-{{siteicon}}"></i>
                  {{{ sitename }}}
              </span>
            </a>
          {{/ isiconsitename }}
          
          {{# islogo }}
            <a class="text-white text-center d-block h-full" href="{{{ config.wwwroot }}}">
              <span class="navbar-brand-logo mini h-full w-full" style="background-image: url({{ logominiurl }});
                    background-position: center; background-size: contain; background-repeat: no-repeat;"></span>

              <span class="navbar-brand-logo h-full w-full" style="background-image: url({{ logourl }});
                    background-position: center; background-size: contain; background-repeat: no-repeat;">
              </span>
            </a>
          {{/ islogo }}
        {{/ output.should_display_logo }}
      </div>

      {{{ output.search_box_icon_collapsed }}}

      <button type="button" class="navbar-toggler collapsed" data-target="#site-navbar-collapse"
      data-toggle="collapse">
        <i class="icon fa fa-ellipsis-h" aria-hidden="true"></i>
      </button>

    </div>
    <div class="navbar-container container-fluid pl-0" style="-ms-flex:1 1 0%;">
      <!-- Navbar Collapse -->
      <div class="collapse navbar-collapse navbar-collapse-toolbar" id="site-navbar-collapse">
        <!-- Navbar Toolbar -->
        <ul class="nav navbar-toolbar">
          <li class="nav-item hidden-float" id="toggleMenubar">
            <a class="nav-link px-10" data-toggle="menubar" data-toggle="menubardesktop" href="#" role="button">
              <i class="icon hamburger">
                <span class="sr-only">{{#str}}expand, core{{/str}}</span>
                <span class="hamburger-bar"></span>
              </i>
            </a>
          </li>
          <li class="nav-item hidden-sm-down" id="toggleFullscreen">
            <a class="nav-link icon icon-fullscreen" data-toggle="fullscreen" href="#" role="button">
              <span class="sr-only">{{#str}}togglefullscreen, theme_remui{{/str}}</span>
            </a>
          </li>

          {{#hasrecent}}
            <li class="nav-item dropdown " id="recentCourses">
              <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="javascript:void(0)" data-animation="scale-up" aria-expanded="true" role="button">{{#str}}recent, theme_remui{{/str}}</a>
              <div class="dropdown-menu" role="menu">
                  {{#recentcourses}}
                    <a class="dropdown-item" role="menuitem" href="{{{ config.wwwroot }}}/course/view.php?id={{{id}}}">{{{fullname}}}</a>
                  {{/recentcourses}}
              </div>
            </li>
          {{/hasrecent}}

          {{{ output.custom_menu }}}
          <li class="hideshow nav-item dropdown">
            <a href="javascript:void(0)" class="nav-link" data-toggle="dropdown" data-animation="scale-up">
              <i class="icon fa fa-ellipsis-h"></i>
            </a>
            <ul class="hideshow-ul dropdown-menu">

            </ul>
          </li>
        </ul>
        <!-- End Navbar Toolbar -->

        <!-- Navbar Toolbar Right -->
        <!-- user_menu -->
        <ul class="nav navbar-toolbar navbar-right navbar-toolbar-right">
          {{{ output.search_box_icon }}}
          
          <!-- navbar_plugin_output : 'message', 'notifications' and 'chat sidebar' toggles -->
          {{{ output.navbar_plugin_output }}}
          
          {{{ output.user_menu }}}

          {{# cansignup }}
          <li class="nav-item">
            <a href="{{signupurl}}" class="nav-link"><i class="icon fa fa-user-plus"></i> {{#str}}startsignup{{/str}}</a>
          </li>
          {{/ cansignup }}

          {{{ output.navbar_plugin_output_custom_icons }}}
        </ul>
        <!-- End Navbar Toolbar Right -->
      </div>
      <!-- End Navbar Collapse -->

      <!-- Site Navbar Seach -->
        {{{ output.search_box }}}
      <!-- End Site Navbar Seach -->
    </div>
  </nav>
  {{{ output.showLicenseNotice }}}
