{{! 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 format_tiles/multi_section_page Multi section page template. The purpose of this template is to render the course landing page i.e. all of the tiles representing all of the sections in the course Either this or single_section_page will be the first template called when the user launches a page from PHP Classes required for JS: * none Data attributes required for JS: * none Context variables required for this template: * from_ajax - is this called from AJAX? * completionenabled - is completion enabled? * section_zero - info for section_zero template, * tiles - info for multi_section_tile and multi_section_tilebar templates * all_tiles_expanded - are we expanding all tiles? * activity_clipboard - moodle activity clipboard (not tiles), * course_activity_clipboard: moodle course activity clipboard (not tiles) Example context (json): { "from_ajax": 1, "completionenabled": 1, "section_zero": [], "tiles": [], "all_tiles_expanded": 0, "activity_clipboard": "", "course_activity_clipboard": "" } }} {{^from_ajax}} {{#completionenabled}} {{! This value apparently tracks whether there has been a dynamic change to the page. I copied it from the standard core page and included it just in case The note said it is used so that if a user does this - (a) set some tickmarks, (b) go to another page, (c) clicks Back button - the page will automatically reload. Otherwise it would start with the wrong tick values. }}
{{/completionenabled}} {{> format_tiles/above_tiles}} {{/from_ajax}} {{#userdisabledjsnav}}
{{#str}}jsdeactivated, format_tiles{{/str}} ({{#str}}reactivate, format_tiles{{/str}})
{{/userdisabledjsnav}} {{^userdisabledjsnav}} {{/userdisabledjsnav}} {{#showinitialpageloadingicon}}
{{> format_tiles/loading}}
{{#str}}clickiffailstoload, format_tiles{{/str}}
{{/showinitialpageloadingicon}} {{#isediting}}
{{#pix}}expand, format_tiles{{/pix}} {{#str}}expandall, format_tiles{{/str}} {{#pix}}collapse, format_tiles{{/pix}} {{#str}}collapsesections, format_tiles{{/str}}
{{/isediting}} {{#isediting}} {{#pix}}t/switch_plus, core, {{#str}}addsections, format_tiles{{/str}}{{/pix}} {{/isediting}} {{#isediting}} {{^from_ajax}} {{activity_clipboard}} {{/from_ajax}} {{{course_activity_clipboard}}} {{/isediting}}