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/sectionnavigation
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
    }
33
}}
34
<div class="section-navigation navigationtitle d-flex justify-content-between">
35
    <div class="prevsection">
36
        {{#hasprevious}}
37
        <a href="{{{previousurl}}}" class="{{#previoushidden}} dimmed_text {{/previoushidden}}">
38
            <span class="larrow">{{{larrow}}}</span>{{{previousname}}}
39
        </a>
40
        {{/hasprevious}}
41
    </div>
42
    <div class="nextsection">
43
        {{#hasnext}}
44
        <a href="{{{nexturl}}}" class="{{#nexthidden}} dimmed_text {{/nexthidden}}">
45
            <span class="rarrow">{{{rarrow}}}</span>{{{nextname}}}
46
        </a>
47
        {{/hasnext}}
48
    </div>
49
</div>