Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 61... Línea 61...
61
$embedurl = new moodle_url("https://player.vimeo.com/video/$video", $params);
61
$embedurl = new moodle_url("https://player.vimeo.com/video/$video", $params);
62
$context = ['embedurl' => $embedurl->out(false)]; // Template context.
62
$context = ['embedurl' => $embedurl->out(false)]; // Template context.
Línea 63... Línea 63...
63
 
63
 
64
if (empty($width) && empty($height)) {
64
if (empty($width) && empty($height)) {
65
    // Use the full page. The video will keep the ratio.
65
    // Use the full page. The video will keep the ratio.
66
    $context['display'] = "position:absolute; top:0; left:0; width:100%; height:100%;";
66
    $context['style'] = "position:absolute; top:0; left:0; width:100%; height:100%;";
67
} else {
67
} else {
68
    $context['width'] = $width;
68
    $context['width'] = $width;
69
    $context['height'] = $height;
69
    $context['height'] = $height;