".PHP_EOL; if (empty($videos_id)) { echo PHP_EOL."".PHP_EOL; if (!empty($_GET['videoName'])) { echo PHP_EOL."".PHP_EOL; $video = Video::getVideoFromCleanTitle($_GET['videoName']); } } else { echo PHP_EOL."".PHP_EOL; $video = Video::getVideoLight($videos_id); } if (empty($video)) { echo PHP_EOL."".PHP_EOL; return false; } $videos_id = $video['id']; $source = Video::getSourceFile($video['filename']); $imgw = 1024; $imgh = 768; 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'; } if ($video['type'] === 'article') { $type = 'article'; } $images = Video::getImageFromFilename($video['filename'], $type); 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($images->posterPortraitPath); $imgw = $data[0]; $imgh = $data[1]; } else { $img = $images->poster; } $twitter_site = $advancedCustom->twitter_site; $title = _substr(html2plainText($video['title']), 0, 55); $description = _substr(html2plainText($video['description']), 0, 155); $ogURL = Video::getLinkToVideo($videos_id); ?> "; } if (empty($source['url'])) { echo ""; } } else { $source['url'] = str_replace(".m3u8", ".m3u8.mp4", $source['url']); } if (!AVideoPlugin::isEnabledByName("SecureVideosDirectory") && !empty($source['url'])) { ?> "; } if (empty($source['url'])) { echo ""; } ?> twitter_player)) { if (!AVideoPlugin::isEnabledByName("SecureVideosDirectory") && !empty($source['url'])) { ?> " /> twitter_summary_large_image)) { ?>