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 media_vimeo/embed
19
 
20
    This template will render the Vimeo embeded player
21
    in a special format for the Moodle mobile app.
22
 
23
    Variables required for this template:
24
    * lang: The language of the user.
25
    * width: The width of the video.
26
    * height: The height of the video.
27
    * style: The style info for iframe.
28
    * embedurl: The URL to the video.
29
 
30
    Example context (json):
31
    {
32
        "lang": "en",
33
        "width": 640,
34
        "height": 360,
35
        "style": "position:absolute; top:0; left:0; width:100%; height:100%;",
36
        "embedurl": "https://player.vimeo.com/video/226053498"
37
    }
38
 
39
}}
40
<!DOCTYPE html>
41
<html lang="{{lang}}">
42
<head>
43
    <title>{{#str}} pluginname, media_vimeo {{/str}}</title>
44
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
45
</head>
46
<body style="margin:0; padding:0">
47
<iframe {{#style}}style="{{style}}" {{/style}}
48
        {{#width}}width="{{width}}" {{/width}}
49
        {{#height}}height="{{height}}" {{/height}}
50
        src="{{{embedurl}}}" allow="fullscreen" loading="lazy">
51
</iframe>
52
</body>
53
</html>