Select Git revision
-
Lennart Kramer authoredLennart Kramer authored
columns2.mustache 7.62 KiB
{{!
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/>.
}}
{{!
@template theme_boost_campus/columns2
Admin time setting template.
Boost Campus 2 column layout template.
Context variables required for this template:
* sitename - The name of the site
* output - The core renderer for the page
* bodyattributes - attributes for the body tag as a string of html attributes
* sidepreblocks - HTML for the blocks
* hasblocks - true if there are blocks on this page
* navdraweropen - true if the nav drawer should be open on page load
* regionmainsettingsmenu - HTML for the region main settings menu
* hasregionmainsettingsmenu - There is a region main settings menu on this page.
* pagebottomelements - HTML for all additional layout elements below the main content, e.g. the footer.
* timedinfobannershowonselectedpage - true if the time controlled info banner should be displayed.
* timedetualinfobannercontent - The content that should be shown in the time controled information banner.
* timedetualinfobannercssclass - The Bootstrap class that is used for the time controlled info banner.
* perpinfobannershowonselectedpage - true if the perpetual info banner should be displayed.
* perpibcontent - The content that should be shown in the perpetual information banner.
* perpibcss - The Bootstrap class that is used for the perpetual info banner.
* perpibdismiss - true if the setting perpibdismiss is enabled.
* bcbttbutton - true if the setting bcbttbutton is enabled.
Example context (json):
{
"sitename": "Moodle",
"output": {
"doctype": "<!DOCTYPE html>",
"page_title": "Test page",
"favicon": "favicon.ico",
"main_content": "<h1>Headings make html validators happier</h1>"
},
"bodyattributes":"",
"sidepreblocks": "<h2>Blocks html goes here</h2>",
"hasblocks":true,
"navdraweropen":true,
"regionmainsettingsmenu": "",
"hasregionmainsettingsmenu": false,
"pagebottomelements": "",
"timedinfobannershowonselectedpage": true,
"timedibcontent": "This is a test content for timed info banner.",
"timedibcss": "danger",
"perpinfobannershowonselectedpage": true,
"perpibcontent": "This is a test content for perpetual info banner.",
"perpibcss": "primary",
"perpibdismiss": true,
"infobannerconfirmationdialogue": true,
"bcbttbutton": true
}
}}
{{! MODIFICATION: