1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
| 1. / 2. / ...
<?php //YouTube Videoaddon
function cs_abcode_yt($matches) {
global $cs_main;
$op_videoabcode = cs_sql_option(__FILE__,'videoabcode');
if ($matches[0] == '[/yt]') {
$return = cs_html_div(0);
}
elseif(empty($matches[1])) {
$return = cs_html_div(1,0,0);
}
else {
if ($cs_main['mod'] == 'news'){
$name = '<object type="application/x-shockwave-flash" style="width:500px; height:500px;wmode:transparent;" data="http://www.youtube.com/v/' . $matches[1] . '&rel=1&color1=0x' . $op_videoabcode['ytcolor1'] . '&color2=0x' . $op_videoabcode['ytcolor2'] . '&border=' . $op_videoabcode['ytborder'] . '&csp=true"><param name="movie" value="http://www.youtube.com/v/'.$matches[1].'&rel=1&color1=0x' . $op_videoabcode['ytcolor1'] . '&color2=0x' . $op_videoabcode['ytcolor2'] . '&border=' . $op_videoabcode['ytborder'] . '&csp=true" /><param name="wmode" value="transparent" /><param name="allowFullScreen" value="true" /><param name="autostart" value="false" /></object>';
$return = cs_html_div(1,0,0).$name.cs_html_br(1).cs_html_div(0);
} else {
$name = '<object type="application/x-shockwave-flash" style="width:' . $op_videoabcode['width'] . 'px; height:' . $op_videoabcode['height'] . 'px;wmode:transparent;" data="http://www.youtube.com/v/' . $matches[1] . '&rel=1&color1=0x' . $op_videoabcode['ytcolor1'] . '&color2=0x' . $op_videoabcode['ytcolor2'] . '&border=' . $op_videoabcode['ytborder'] . '&csp=true"><param name="movie" value="http://www.youtube.com/v/'.$matches[1].'&rel=1&color1=0x' . $op_videoabcode['ytcolor1'] . '&color2=0x' . $op_videoabcode['ytcolor2'] . '&border=' . $op_videoabcode['ytborder'] . '&csp=true" /><param name="wmode" value="transparent" /><param name="allowFullScreen" value="true" /><param name="autostart" value="false" /></object>';
$return = cs_html_div(1,0,0).$name.cs_html_br(1).cs_html_div(0);
}
}
return $return;
}?> |