2 This file is part of Moodle - http://moodle.org/
4 Moodle is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 Moodle is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 @template core_admin/themeselector/theme_selector
20 This template renders the cards view for choosing a theme.
22 Example context (json):
28 "image": "http://moodlesite/theme/image.php?theme=boost&image=screenshot&component=theme",
30 "actionurl": "http://moodlesite/admin/themeselector.php",
36 "image": "http://moodlesite/theme/image.php?theme=classic&image=screenshot&component=theme",
37 "actionurl": "http://moodlesite/admin/themeselector.php",
42 "id": "single_button123",
45 "label": "Clear theme caches",
59 <h2>{{#str}}themeselector, admin{{/str}}</h2>
62 {{>core/single_button}}
65 <div class="card-grid row row-cols-1 row-cols-md-3 mx-0" id="themelist" data-region="card-deck" role="list" data-definedinconfig="{{definedinconfig}}">
67 <div class="col d-flex px-1 mb-2">
68 {{>core_admin/themeselector/theme_card}}
74 require(['core_admin/themeselector/preview_modal'], function(Modal) {