' . 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; } $cdnObj = AVideoPlugin::getDataObjectIfEnabled('CDN'); $cdnStorageEnabled = !empty($cdnObj) && $cdnObj->enable_storage; $description = getSEODescription(emptyHTML($video['description']) ? $video['title'] : $video['description']); ?>
label === __("Group")) { ?> text; ?>
doNotDisplayViews)) { ?>
disableShareAndPlaylist)) { ?> $theLink) { //$notAllowedKeys = array('m3u8'); $notAllowedKeys = []; if (empty($advancedCustom->showImageDownloadOption)) { $notAllowedKeys = array_merge($notAllowedKeys, ['jpg', 'gif', 'webp', 'pjpg']); } $keyFound = false; foreach ($notAllowedKeys as $notAllowedKey) { if (preg_match("/{$notAllowedKey}/", $key)) { $keyFound = true; break; } } if ($keyFound) { continue; } if (!$cdnStorageEnabled || !preg_match('/cdn\.ypt\.me(.*)\.m3u8/i', $theLink['url'])) { $theLink['url'] = addQueryStringParameter($theLink['url'], "download", 1); $theLink['url'] = addQueryStringParameter($theLink['url'], "title", getSEOTitle($video['title']) . "_{$key}_." . ($video['type'] === 'audio' ? 'mp3' : 'mp4')); if (!$cdnStorageEnabled && $key == 'm3u8') { $name = 'MP4'; } else { $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[] = ['name' => $name, 'url' => $theLink['url']]; } } if($canDownloadFiles){ $filesToDownload = array_merge($filesToDownload, getMP3ANDMP4DownloadLinksFromHLS($videos_id, $video['type'])); } if (!empty($filesToDownload)) { ?> '; } } else { echo ''; } ?> removeThumbsUpAndDown)) { ?> " id="dislikeBtn" data-toggle="tooltip" title="" > " id="likeBtn" data-toggle="tooltip" title="" >
:
:
showVideoDownloadedLink) && isValidURL($video['videoDownloadedLink'])) { $parse = parse_url($video['videoDownloadedLink']); $domain = str_replace('www.', '', $parse['host']); ?>
:
:
disableShowMOreLessDescription)) { ?>
disableComments) && Video::showYoutubeModeOptions()) { ?>