Bug #33090 » youtube-video_forge-33090_4.5.34.patch
typo3_src-4.5.34-patched/typo3/sysext/cms/tslib/content/class.tslib_content_media.php 2014-08-08 07:54:09.000000000 +0200 | ||
---|---|---|
$conf['flashvars'] = array_merge((array) $conf['flashvars'], $conf['predefined']);
|
||
}
|
||
if(strpos($url, 'www.youtube.com') !== FALSE) {
|
||
$renderType = 'iframe';
|
||
}
|
||
switch ($renderType) {
|
||
case 'iframe':
|
||
$width = $conf['parameter.']['mmWidth'] ?: 640;
|
||
$height = $conf['parameter.']['mmHeight'] ?: 385;
|
||
$frameBorderAttribute = ' style="border:0px"';
|
||
// literally taken from EXT:news/Classes/MediaRenderer/Video/Youtube.php
|
||
$content = '<iframe width="' . (int)$width . '" height="' . (int)$height . '" src="' . htmlspecialchars($url) . '"' . $frameBorderAttribute . '></iframe>';
|
||
break;
|
||
case 'swf' :
|
||
$conf[$conf['type'] . '.'] = array_merge((array) $conf['mimeConf.']['swfobject.'][$conf['type'] . '.'], $typeConf);
|
||
$conf = array_merge((array) $conf['mimeConf.']['swfobject.'], $conf);
|
- « Previous
- 1
- 2
- 3
- 4
- Next »