diff --git a/view/modeYoutubeBottom.php b/view/modeYoutubeBottom.php index 3f507b34f..db30f02bc 100644 --- a/view/modeYoutubeBottom.php +++ b/view/modeYoutubeBottom.php @@ -1,327 +1,327 @@ ' . 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]; } else if ($video['type'] == "audio") { $img = "" . getCDN() . "view/img/audio_wave.jpg"; } $type = 'video'; if ($video['type'] === 'pdf') { $type = 'pdf'; } else if ($video['type'] === 'zip') { $type = 'zip'; } else if ($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; } ?>
<?php echo str_replace('" class="img img-responsive rotate" height="130" itemprop="thumbnail" /> - " />

"> label === __("Group")) { ?> text; ?>

doNotDisplayViews)) { ?>
disableShareAndPlaylist)) { ?> $theLink) { //$notAllowedKeys = array('m3u8'); $notAllowedKeys = array(); if (empty($advancedCustom->showImageDownloadOption)) { $notAllowedKeys = array_merge($notAllowedKeys, array('jpg', 'gif', 'webp', 'pjpg')); } $keyFound = false; foreach ($notAllowedKeys as $notAllowedKey) { if (preg_match("/{$notAllowedKey}/", $key)) { $keyFound = true; break; } } if ($keyFound) { continue; } $theLink['url'] = addQueryStringParameter($theLink['url'], "download", 1); $theLink['url'] = addQueryStringParameter($theLink['url'], "title", $video['title'] . "_{$key}_." . ($video['type'] === 'audio' ? 'mp3' : 'mp4')); $parts = explode("_", $key); $name = $key; if (count($parts) > 1) { $name = strtoupper($parts[0]); if (is_numeric($parts[1])) { $name .= "
{$parts[1]}p
" . getResolutionLabel($parts[1]); } else { $name .= "
" . strtoupper($parts[1]) . "
"; } } $filesToDownload[] = array('name' => $name, 'url' => $theLink['url']); } if (!empty($filesToDownload)) { ?> '; } } else { echo ''; } ?> removeThumbsUpAndDown)) { ?> " id="dislikeBtn" data-toggle="tooltip" title="" > " id="likeBtn" data-toggle="tooltip" title="" >
:
:
:
disableComments) && Video::showYoutubeModeOptions()) { ?>