Browse Source

fix: youtube module was broken

master
Dominik Schmidt-Philipp 1 day ago
parent
commit
43d4779a9e
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      app/modules/elementdispatcher.php

+ 3
- 2
app/modules/elementdispatcher.php View File

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>",

Loading…
Cancel
Save