You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

51 lines
1.9 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 format_tiles/icon_picker_launch_btn
Icon picker launch button template.
This template is only called from JS, from icon_picker.js
It is only used on the course > edit settings page, to add an icon picker
launch button to the course format settings enabling teachers to pick the
default icon for a course using the icon picker modal using images, rather
than just a text drop down with image names
Classes required for JS:
* none
Data attributes required for JS:
* none
Context variables required for this template:
initialicon - which icon to display on the button
Example context (json):
{
"initialicon": "puzzle-piece"
}
}}
{{#initialicon}}
<span id="selectedicon" title="{{initialname}}">{{#pix}}tileicon/{{initialicon}}, format_tiles, {{initialname}}{{/pix}}</span>
{{/initialicon}}
<div id="launchiconpicker" class="btn btn-secondary launchiconpicker" data-sectionid="{{sectionId}}">
<span>
{{^allowphototiles}}{{#str}}picknewicon, format_tiles{{/str}}{{/allowphototiles}}
{{#allowphototiles}}{{#str}}picknewiconphoto, format_tiles{{/str}}{{/allowphototiles}}
</span>
</div>