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 mod_book/main_action_menu
19
 
20
    Previous and next buttons for the book.
21
 
22
    Classes required for JS:
23
    * none
24
 
25
    Context variables required for this template:
26
    * see mod/book/classes/output/main_actionbar.php
27
 
28
    Example context (json):
29
    {
30
        "previous": {
31
            "url": "https://moodle.org",
32
            "title": "Chapter 1: First of many"
33
        },
34
        "next": {
35
            "url": "https://moodle.org",
36
            "title": "Chapter 3: Last of many"
37
        }
38
    }
39
 
40
}}
41
<div class="container-fluid tertiary-navigation">
42
    <div class="row">
43
        {{#previous}}
44
            <div class="navitem">
45
                <a class="btn btn-link btn-previous" href="{{url}}#mod_book-chapter" title="{{title}}">
46
                    {{#pix}} i/previous, core {{/pix}}
47
                </a>
48
            </div>
49
        {{/previous}}
50
        {{#next}}
51
            <div class="navitem ml-auto">
52
                <a class="btn btn-link btn-next" href="{{url}}#mod_book-chapter" title="{{title}}">
53
                    {{#pix}} i/next, core {{/pix}}
54
                </a>
55
            </div>
56
        {{/next}}
57
    </div>
58
</div>