AutorÃa | Ultima modificación | Ver Log |
{{!This file is part of Moodle - http://moodle.org/Moodle is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with Moodle. If not, see <http://www.gnu.org/licenses/>.}}{{!@template unilabeltype_courseteaser/gridTemplate to show a bootstrap modal dialog.Example context (json):{"showintro": false,"intro": "","height": 300,"items": [{"courseid": "3","courseurl": "https://example.com/course/view.php?id=3","title": "TEST copy 1","nr": 0,"first": true},{"courseid": "2","courseurl": "https://example.com/course/view.php?id=2","title": "TEST","nr": 1}],"hasitems": true,"cmid": "55"}}}{{#showintro}}{{{intro}}}{{/showintro}}{{#hasitems}}<div class="row mx-0">{{#items}}<div class="text-center {{{colclasses}}}"><!-- The overlay is used as button to show the modal dialog --><a href="{{{courseurl}}}"><div class="unilabel-overlay-effect bg-primary h-100 w-100"></div></a><h3>{{title}}</h3>{{#imageurl}}<div style="width:100%;"><img class="img-fluid mh-100 mb-3" src="{{{imageurl}}}" style="object-fit:contain;"/></div>{{/imageurl}}</div>{{/items}}</div>{{/hasitems}}{{^hasitems}}<span>{{#str}} nocontent , unilabeltype_courseteaser {{/str}}</span>{{/hasitems}}