1 |
efrain |
1 |
{{!
|
|
|
2 |
This file is part of Moodle - http://moodle.org/
|
|
|
3 |
|
|
|
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.
|
|
|
8 |
|
|
|
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.
|
|
|
13 |
|
|
|
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/>.
|
|
|
16 |
}}
|
|
|
17 |
{{!
|
|
|
18 |
@template block_thumblinks_action/thumblinks_actions
|
|
|
19 |
|
|
|
20 |
This template renders the main content area for the mcms block.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{}
|
|
|
24 |
}}
|
|
|
25 |
|
|
|
26 |
<div id="block-featured-courses-{{uniqid}}" class="block-featured-courses block-cards">
|
|
|
27 |
<div class="container">
|
|
|
28 |
<div class="row">
|
|
|
29 |
{{#courses}}
|
|
|
30 |
<div class="col col-md-4 pt-3 pt-md-0">
|
|
|
31 |
<div class="thumbnail my-1 d-flex flex-column justify-content-start">
|
|
|
32 |
<div class="course-image"
|
|
|
33 |
style='background-image: url("{{{ courseimage}}}");'>
|
|
|
34 |
</div>
|
|
|
35 |
<div class="title p-1 text-primary font-weight-bolder text-truncate title p-2 text-primary flex-grow-1">{{ fullname }}</div>
|
|
|
36 |
<div class="d-flex flex-row p-2 ">
|
|
|
37 |
<div class="otherinfo text-muted font-italic flex-grow-1">
|
|
|
38 |
{{#startdate}}{{#userdate}}{{.}}, {{#str}} strftimedate {{/str}}{{/userdate}}{{/startdate}}</div>
|
|
|
39 |
<div class="link">
|
|
|
40 |
<a class="btn btn-primary rounded-circle p-1" href="{{viewurl}}">{{#pix}}
|
|
|
41 |
t/right, core, {{#str}}viewcourse, block_featured_courses {{/str}}{{/pix}}</a>
|
|
|
42 |
</div>
|
|
|
43 |
</div>
|
|
|
44 |
</div>
|
|
|
45 |
</div>
|
|
|
46 |
{{/courses}}
|
|
|
47 |
</div>
|
|
|
48 |
</div>
|
|
|
49 |
</div>
|