2 This file is part of Moodle - http://moodle.org/
3 Moodle is free software: you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation, either version 3 of the License, or
6 (at your option) any later version.
7 Moodle is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
11 You should have received a copy of the GNU General Public License
12 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
15 @template core_admin/themeselector/theme_preview_modal
17 This template renders the modal for the selected theme.
19 Example context (json):
23 "image": "http://moodlesite/theme/image.php?theme=boost&image=screenshot&component=theme",
24 "description": "Boost is a modern highly-customisable theme...",
26 "actionurl": "http://moodlesite/admin/themeselector.php",
35 id="modal-theme-preview-{{choose}}"
39 <div class="flex-grow-1">
40 <p><strong>{{#str}}themepreviewdescription, moodle, {{name}}{{/str}}</strong></p>
42 <div class="d-flex align-items-end flex-column">
44 <strong><span class="text-success">{{#str}}currenttheme, moodle{{/str}}</span></strong>
46 <div class="alert alert-info p-1">{{#str}}configoverride, admin{{/str}}</div>
51 <p>{{description}}</p>
53 <form method="post" action="{{actionurl}}" id="modal-theme-select-form-{{choose}}">
54 <input type="hidden" name="sesskey" value="{{sesskey}}">
55 <input type="hidden" name="choose" value="{{choose}}">