Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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 core_courseformat/local/content/sectionselector
19
 
20
    Displays the course section navigation.
21
 
22
    Example context (json):
23
    {
24
        "hasprevious": true,
25
        "previousurl": "#",
26
        "larrow": "&#x25C4;",
27
        "previousname": "Section 3",
28
        "hasnext": true,
29
        "rarrow": "&#x25BA;",
30
        "nexturl": "#",
31
        "nextname": "Section 5",
32
        "selector": "<select><option>Section 4</option></select>"
33
    }
34
}}
35
<div class="section-navigation mdl-bottom d-flex justify-content-between">
36
    <div class="prevsection">
37
        {{#hasprevious}}
38
        <a href="{{{previousurl}}}" class="{{#previoushidden}} dimmed_text {{/previoushidden}}">
39
            <span class="larrow">{{{larrow}}}</span>{{{previousname}}}
40
        </a>
41
        {{/hasprevious}}
42
    </div>
43
    <div>
44
        {{{selector}}}
45
    </div>
46
    <div class="nextsection">
47
        {{#hasnext}}
48
        <a href="{{{nexturl}}}" class="{{#nexthidden}} dimmed_text {{/nexthidden}}">
49
            <span class="rarrow">{{{rarrow}}}</span>{{{nextname}}}
50
        </a>
51
        {{/hasnext}}
52
    </div>
53
</div>