Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | 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 theme_universe/drawer
19
 
20
    Example context (json):
21
    {
22
        "drawerclasses": "drawer drawer-right",
23
        "drawertrigger": "toggleblocks",
24
        "tooltipplacement": "right",
25
        "drawerconent": "Content for the blocks region",
26
        "closebuttontext": "Close drawer"
27
    }
28
}}
29
<div {{!
1028 ariadna 30
    }} class="{{$drawerclasses}}{{/drawerclasses}} not-initialized"{{!
1 efrain 31
    }} data-region="fixed-drawer"{{!
32
    }} id="{{$id}}{{/id}}"{{!
33
    }} data-preference="{{$drawerpreferencename}}{{/drawerpreferencename}}"{{!
34
    }} data-state="{{$drawerstate}}{{/drawerstate}}"{{!
35
    }} data-forceopen="{{$forceopen}}0{{/forceopen}}"{{!
36
    }} data-close-on-resize="{{$drawercloseonresize}}0{{/drawercloseonresize}}"{{!
37
    }}>
38
    <div class="drawerheader mb-4 justify-content-start">
39
        <button
40
            class="btn btn-icon btn-secondary drawertoggle icon-no-margin d-block"
41
            data-toggler="drawers"
42
            data-action="closedrawer"
43
            data-target="{{$id}}{{/id}}"
44
            data-toggle="tooltip"
45
            data-placement="{{$tooltipplacement}}right{{/tooltipplacement}}"
46
            title="{{$closebuttontext}}{{#str}}closedrawer, core{{/str}}{{/closebuttontext}}"
47
        >
48
            <svg width="24" height="24" fill="none" viewBox="0 0 24 24">
49
                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M17.25 6.75L6.75 17.25"></path>
50
                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6.75 6.75L17.25 17.25"></path>
51
            </svg>
52
        </button>
53
    </div>
54
    <div class="drawercontent drag-container" data-usertour="scroller">
55
        {{$drawercontent}}{{/drawercontent}}
56
    </div>
57
</div>
58
{{#js}}
59
require(['theme_universe/drawers']);
60
{{/js}}