mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 02:09:22 +02:00
17 lines
623 B
PHP
17 lines
623 B
PHP
<?php
|
|
$videoAB = new Video('', '', $videos_id);
|
|
$trailer = $videoAB->getTrailer1();
|
|
//var_dump($_REQUEST);exit;
|
|
if (!isValidURL($trailer)) {
|
|
if (!empty($_REQUEST['playlist_id'])) {
|
|
$trailer = PlayLists::getTrailerIfIsSerie($_REQUEST['playlist_id']);
|
|
}
|
|
}
|
|
if (!isValidURL($trailer)) {
|
|
echo '<!-- invalid trailer URL -->';
|
|
return false;
|
|
}
|
|
?>
|
|
<button type="button" class="btn btn-default no-outline" onclick="avideoModalIframe('<?php echo parseVideos($trailer, 1); ?>');" data-toggle="tooltip" title="<?php echo __("Trailer"); ?>">
|
|
<i class="fa fa-video"></i> <?php echo __("Trailer"); ?>
|
|
</button>
|