{{!
    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/>.

    @package   theme_lambda2
    @copyright 2024 redPIthemes
}}
{{!
    @template theme_lambda2/coursecategory
}}

{{>theme_lambda2/includes/head}}

<body {{{ bodyattributes }}}>
<div class="wrapper-lambda-outer">
{{> core/local/toast/wrapper}}
<div id="page-wrapper-outer">

    {{{ output.standard_top_of_body_html }}}
    
    {{#haspreblocks}}
        {{< theme_boost/drawer }}
            {{$id}}theme_boost-drawers-blocks{{/id}}
            {{$drawerclasses}}drawer drawer-right{{#blockdraweropen}} show{{/blockdraweropen}}{{/drawerclasses}}
            {{$drawercontent}}
                <section class="d-print-none" aria-label="{{#str}}blocks{{/str}}">
                    <div class="block-pos-desc">
                        <span>{{#str}}region-side-pre, theme_lambda2{{/str}}</span>
                    </div>
                    {{{ addblockbutton }}}
                    {{{ sidepreblocks }}}
                </section>
            {{/drawercontent}}
            {{$drawerpreferencename}}drawer-open-block{{/drawerpreferencename}}
            {{$forceopen}}{{#forceblockdraweropen}}1{{/forceblockdraweropen}}{{/forceopen}}
            {{$drawerstate}}show-drawer-right{{/drawerstate}}
            {{$tooltipplacement}}left{{/tooltipplacement}}
            {{$closebuttontext}}{{#str}}closeblockdrawer, core{{/str}}{{/closebuttontext}}
        {{/ theme_boost/drawer}}
    {{/haspreblocks}}

<div id="page" data-region="mainpage" data-usertour="scroller" class="drawers {{#blockdraweropen}}show-drawer-right{{/blockdraweropen}} drag-container">
<div id="page-top"></div>
<div class="wrapper-lambda">

    {{#header_style_0}}
	    {{>theme_lambda2/includes/header_style_0}}
    {{/header_style_0}}

    {{#header_style_1}}
	    {{>theme_lambda2/includes/header_style_1}}
    {{/header_style_1}}

    {{#header_style_2}}
	    {{>theme_lambda2/includes/header_style_2}}
    {{/header_style_2}}
    
    <div class="drawer-toggles d-flex">
        {{#haspreblocks}}
            <div class="drawer-toggler drawer-right-toggle ml-auto d-print-none">
                <button
                    class="btn icon-no-margin"
                    data-toggler="drawers"
                    data-action="toggle"
                    data-target="theme_boost-drawers-blocks"
                    data-toggle="tooltip"
                    data-placement="right"
                    title="{{#str}}opendrawerblocks, core{{/str}}"
                >
                    <span class="sr-only">{{#str}}opendrawerblocks, core{{/str}}</span>
                    <span class="dir-rtl-hide">{{#pix}}t/blocks_drawer, core{{/pix}}</span>
                    <span class="dir-ltr-hide">{{#pix}}t/blocks_drawer_rtl, core{{/pix}}</span>
                </button>
            </div>
        {{/haspreblocks}}
    </div>

    <div id="lambda-page-header">
        {{{ output.full_header }}}
    </div>
    <div id="page-content-footer">
    <div id="page-content" class="row">
        <div id="region-main-box" class="col-xs-12 col-12">
            {{#secondarymoremenu}}
                <div class="secondary-navigation">
                    {{> core/moremenu}}
                </div>
            {{/secondarymoremenu}}
            {{#hasregionmainsettingsmenu}}
                <div id="region-main-settings-menu" class="d-print-none">
                    <div> {{{ regionmainsettingsmenu }}} </div>
                </div>
            {{/hasregionmainsettingsmenu}}
            <section id="region-main">
                {{#course_index}}
                    <div class="container-fluid">
                        <div class="row">
                            <div class="{{#rightcolumn}}col-md-9{{/rightcolumn}}{{^rightcolumn}}col-12{{/rightcolumn}}">
                                {{#hasregionmainsettingsmenu}}
                                    <div class="region_main_settings_menu_proxy"></div>
                                {{/hasregionmainsettingsmenu}}
                                <div class="card card-block">
                                    {{{ output.main_content }}}
                                </div>
                            </div>
                            {{#rightcolumn}}
                                <div class="col-md-3 lambda-category-fake-block-pos">
                                    {{{ output.theme_lambda2_course_categories_block }}}
                                    {{{ output.theme_lambda2_search_courses }}}
                                </div>
                            {{/rightcolumn}}
                        </div>
                    </div>
                {{/course_index}}
                {{^course_index}}
                    <div class="card card-block">
                        {{{ output.main_content }}}
                    </div>
                {{/course_index}}
            </section>
        </div>
    </div>

    {{>theme_lambda2/includes/footer}}
    </div>

</div>
</div>

{{{ output.standard_after_main_region_html }}}

</div>
</div>
</body>
</html>

{{#js}}
M.util.js_pending('theme_boost/loader');
require(['theme_boost/loader', 'theme_boost/drawer'], function(Loader, Drawer) {
    Drawer.init();
    M.util.js_complete('theme_boost/loader');
});
{{/js}}