1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00

Trailer button

This commit is contained in:
DanieL 2022-11-02 13:24:10 -03:00
parent c9483364d9
commit 3eed15df6a
2 changed files with 15 additions and 0 deletions

View file

@ -647,6 +647,11 @@ Allow: .css";
include $global['systemRootPath'] . 'plugin/CustomizeAdvanced/actionButtonGallery.php'; include $global['systemRootPath'] . 'plugin/CustomizeAdvanced/actionButtonGallery.php';
} }
public function getWatchActionButton($videos_id) {
global $global, $video;
include $global['systemRootPath'] . 'plugin/CustomizeAdvanced/actionButton.php';
}
} }
class SocialMedias { class SocialMedias {

View file

@ -0,0 +1,10 @@
<?php
$videoAB = new Video('', '', $videos_id);
if(!isValidURL($videoAB->getTrailer1())){
echo '<!-- invalid trailer URL -->';
return false;
}
?>
<button type="button" class="btn btn-default no-outline" onclick="avideoModalIframe('<?php echo parseVideos($videoAB->getTrailer1(), 1); ?>');" data-toggle="tooltip" title="<?php echo __("Trailer"); ?>">
<i class="fa fa-video"></i> <?php echo __("Trailer"); ?>
</button>