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 tool_usertours/tourstep
|
|
|
19 |
|
|
|
20 |
Template used as a template to render step bubbles with their content
|
|
|
21 |
in a user tour.
|
|
|
22 |
|
|
|
23 |
Classes required for JS:
|
|
|
24 |
* arrow
|
|
|
25 |
* popover-title
|
|
|
26 |
* popover-content
|
|
|
27 |
* popover-navigation
|
|
|
28 |
* popover-title
|
|
|
29 |
|
|
|
30 |
Data attributes required for JS:
|
|
|
31 |
* data-role=prev
|
|
|
32 |
* data-role=next
|
|
|
33 |
* data-role=pause-resume
|
|
|
34 |
* data-pause-text
|
|
|
35 |
* data-resume-text
|
|
|
36 |
* data-role=end
|
|
|
37 |
* data-placeholder=body
|
|
|
38 |
* data-placeholder=title
|
|
|
39 |
|
|
|
40 |
Context variables required for this template:
|
|
|
41 |
* None
|
|
|
42 |
|
|
|
43 |
Example context (json):
|
|
|
44 |
{
|
|
|
45 |
"name" : "tour_activity_completion",
|
|
|
46 |
"endtourlabel" : "Got it",
|
|
|
47 |
"steps": [
|
|
|
48 |
{
|
|
|
49 |
"stepid": 10,
|
|
|
50 |
"title": "Activity information"
|
|
|
51 |
}
|
|
|
52 |
]
|
|
|
53 |
}
|
|
|
54 |
|
|
|
55 |
}}
|
|
|
56 |
<div class="modal-dialog" role="document" data-role="flexitour-step">
|
|
|
57 |
<div class="modal-content">
|
|
|
58 |
<div class="tooltip-arrow" data-role="arrow"></div>
|
|
|
59 |
<div class="modal-header">
|
|
|
60 |
<h5 class="modal-title" data-placeholder="title"></h5>
|
|
|
61 |
</div>
|
|
|
62 |
<div class="modal-body" data-placeholder="body">
|
|
|
63 |
</div>
|
|
|
64 |
<div class="modal-footer">
|
|
|
65 |
<button type="button" class="btn btn-primary" data-role="next">{{# str }} nextstep, tool_usertours {{/ str }}</button>
|
|
|
66 |
<button class="btn btn-secondary" data-role="end"> {{endtourlabel}} </button>
|
|
|
67 |
</div>
|
|
|
68 |
</div>
|
|
|
69 |
</div>
|