}
$allpages[] = 'background';
$allpages[] = 'archives';
+ $allpages[] = 'slider';
foreach ($linkPages as $linkPage => $true) {
$allpages[] = $linkPage;
}
// Get video dimensions from thumbnail if possible (locally uploaded files)
$path = file_exists($data->to) ? $data->to : $compiler->wdir . '/' . $data->to;
$e = explode(',', `ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 $path`);
- $attr['width'] = $e[0];
- $attr['height'] = $e[1];
+ if (count($e) > 1) {
+ $attr['width'] = $e[0];
+ $attr['height'] = $e[1];
+ } else {
+ $attr['width'] = 1920;
+ $attr['height'] = 1080;
+ }
}
return $attr;