Add 'YouTube' str_replace

This commit is contained in:
fen7azy 2014-06-22 18:27:52 +03:00
parent 99a7ffdc10
commit aedd1870b8

View File

@ -900,10 +900,11 @@ function filelist($Str) {
?>
<?
if ($Youtube) {
$show_media = '<object type="application/x-shockwave-flash" style="width:560px; height:340px;" data="'.str_replace('watch?v=', 'v/', $Youtube).'"><param name="movie" value="'.str_replace('watch?v=', 'v/', $Youtube).'" /></object>';
?>
<div class="box youtube">
<div class="head"><a href="#">&uarr;</a>&nbsp;<strong>YouTube</strong><span style="float: right;"><a href="#" onclick="$('#youtube').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); return false;" class="brackets">Hide</a></span></div>
<div id="youtube" class="body" align="center"><object type="application/x-shockwave-flash" style="width:560px; height:340px;" data="<?=$Youtube?>"><param name="movie" value="<?=$Youtube?>" /></object></div>
<div class="head"><a href="#">&uarr;</a>&nbsp;<strong>YouTube trailer</strong><span style="float: right;"><a href="#" onclick="$('#youtube').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); return false;" class="brackets">Hide</a></span></div>
<div id="youtube" class="body" align="center"><?=$show_media?></div>
</div>
<?
}