Made embed.php handle better the fact that HTTPS is common

remotes/angel/1.11.x
meuhland 8 years ago committed by Yannick Warnier
parent d65772811b
commit 8b37c098f3
  1. 4
      main/lp/embed.php

@ -12,13 +12,13 @@ if (empty($type) || empty($src)) {
$iframe = '';
switch ($type) {
case 'youtube':
$src = 'http://www.youtube.com/embed/'.$src;
$src = '//www.youtube.com/embed/'.$src;
$iframe .= '<div id="content" style="width: 700px ;margin-left:auto; margin-right:auto;"><br />';
$iframe .= '<iframe class="youtube-player" type="text/html" width="640" height="385" src="'.$src.'" frameborder="0"></iframe>';
$iframe .= '</div>';
break;
case 'vimeo':
$src = 'http://player.vimeo.com/video/'.$src;
$src = '//player.vimeo.com/video/'.$src;
$iframe .= '<div id="content" style="width: 700px ;margin-left:auto; margin-right:auto;"><br />';
$iframe .= '<iframe src="'.$src.'" width="640" height="385" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
$iframe .= '</div>';

Loading…
Cancel
Save