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 Licensebllsdsadfasfd
15 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 @template block_recentcourses/view-cards
20 This template renders the carousel for the recentcourses block.
22 Example context (json):
26 "name": "Assignment due 1",
27 "viewurl": "https://moodlesite/course/view.php?id=2",
28 "courseimage": "https://moodlesite/pluginfile/123/course/overviewfiles/123.jpg",
29 "fullname": "course 3"
37 <div class="card course-card">
38 <a href="{{viewurl}}" tabindex="-1">
39 <div class="card-img-top recentcoursesimg" style='background-image: url("{{{courseimage}}}");'>
42 <div class="card-body course-info-container" id="course-info-container-{{id}}">
44 <div class="card-title">
46 aria-label="{{#shortentext}}12, {{{fullname}}} {{/shortentext}}">
47 {{#shortentext}}12, {{{fullname}}} {{/shortentext}}