diff --git a/view/modeYoutubeBottom.php b/view/modeYoutubeBottom.php index 298941f9c5..f9dd8387b3 100644 --- a/view/modeYoutubeBottom.php +++ b/view/modeYoutubeBottom.php @@ -1,356 +1,362 @@ -' . humanTiming(strtotime($video['videoCreation'])) . ''); - $source = Video::getSourceFile($video['filename']); - if (($video['type'] !== "audio") && ($video['type'] !== "linkAudio") && !empty($source['url'])) { - $img = $source['url']; - $data = getimgsize($source['path']); - $imgw = $data[0]; - $imgh = $data[1]; - } elseif ($video['type'] == "audio") { - $img = "" . getCDN() . "view/img/audio_wave.jpg"; - } - $type = 'video'; - if ($video['type'] === 'pdf') { - $type = 'pdf'; - } elseif ($video['type'] === 'zip') { - $type = 'zip'; - } elseif ($video['type'] === 'article') { - $type = 'article'; - } - $images = Video::getImageFromFilename($video['filename'], $type); - $poster = $images->poster; - if (!empty($images->posterPortrait) && basename($images->posterPortrait) !== 'notfound_portrait.jpg' && basename($images->posterPortrait) !== 'pdf_portrait.png' && basename($images->posterPortrait) !== 'article_portrait.png') { - $img = $images->posterPortrait; - $data = getimgsize($source['path']); - $imgw = $data[0]; - $imgh = $data[1]; - } -} -if (empty($video['created'])) { - return false; -} -if (User::hasBlockedUser($video['users_id'])) { - return false; -} -?> - - -