|
|
|
|
|
|
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
|
case 'youtube': |
|
|
case 'youtube': |
|
|
|
|
|
array_shift($request); |
|
|
$vid=array_shift($request); |
|
|
$vid=array_shift($request); |
|
|
$pos= array_shift($request); |
|
|
$pos= array_shift($request); |
|
|
|
|
|
|
|
|
if( in_array($pos,array('left','right','full'))) { |
|
|
|
|
|
|
|
|
if( in_array($pos,array('left','right','full','center','auto'))) { |
|
|
$class = $pos; |
|
|
$class = $pos; |
|
|
} else { |
|
|
} else { |
|
|
$class = 'left'; |
|
|
$class = 'left'; |
|
|
|
|
|
|
|
|
$body[$k] = sprintf("<span class=\"copyright\">%s</span>",$line); |
|
|
$body[$k] = sprintf("<span class=\"copyright\">%s</span>",$line); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
$new=sprintf("<div class='video-container %s'>" |
|
|
|
|
|
|
|
|
$new=sprintf("<div class='video-container content_element_youtube %s'>" |
|
|
."<div class=\"media\">%s</div>" |
|
|
."<div class=\"media\">%s</div>" |
|
|
."<div class=\"caption\">%s</div>" |
|
|
."<div class=\"caption\">%s</div>" |
|
|
."</div>", |
|
|
."</div>", |