westside
New member
Привет
някои би ли опитал да сложи на този код стойности за vbox
някои би ли опитал да сложи на този код стойности за vbox
PHP:
if(variable_get('drigg_embed_show_youtube',FALSE)){
if(preg_match('/youtube\.com\/watch\?v=([A-Za-z0-9._%-]*)[&\w;=\+_\-]*/', $url, $matches)){
if($teaser){
$return = '<div class="embedded-youtube teaser"><a href="'.$node_url.'"><img src="http://img.youtube.com/vi/'.$matches[1].'/0.jpg" width="80" height="60" border=1 title="'.$o->title.'"></a></div>';
} else {
$return = '<div class="embedded-youtube"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/'.$matches[1].'&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/'.$matches[1].'&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></div>';
}
return variable_get('drigg_embed_before', '').$return.variable_get('drigg_embed_after', '');