mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 02:21:36 +00:00
Add 'YouTube' str_replace
This commit is contained in:
parent
99a7ffdc10
commit
aedd1870b8
@ -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="#">↑</a> <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="#">↑</a> <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>
|
||||
<?
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user