{{! 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 . }} {{! @template theme_adaptable/primary-drawer-mobile This template renders the mobile version of the top navbar menu in a drawer. Differs by allowing sub-sub-menu's. Example context (json): { "output": { "should_display_navbar_logo": true, "get_compact_logo_url": "http://placekitten.com/50/50" }, "mobileprimarynav": [ { "text": "Dashboard", "url": "/my", "isactive": "true" }, { "text": "Site home", "url": "/", "isactive": "false" }, { "text": "My courses", "url": "/course", "isactive": "false" } ] } }} {{< theme_boost/drawer }} {{$id}}theme_adaptable-drawers-primary{{/id}} {{$drawerclasses}}drawer drawer-left drawer-primary{{/drawerclasses}} {{$drawercloseonresize}}1{{/drawercloseonresize}} {{$drawerheading}} {{# output.should_display_navbar_logo }} {{/ output.should_display_navbar_logo }} {{^ output.should_display_navbar_logo }} {{{ sitename }}} {{/ output.should_display_navbar_logo }} {{/drawerheading}} {{$drawercontent}}
{{#mobileprimarynav}} {{#haschildren}} {{/haschildren}} {{^haschildren}} {{{text}}} {{/haschildren}} {{/mobileprimarynav}}
{{/drawercontent}} {{$drawerstate}}show-drawer-primary{{/drawerstate}} {{/ theme_boost/drawer}}