mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Trailer button
This commit is contained in:
parent
c9483364d9
commit
3eed15df6a
2 changed files with 15 additions and 0 deletions
|
@ -647,6 +647,11 @@ Allow: .css";
|
|||
include $global['systemRootPath'] . 'plugin/CustomizeAdvanced/actionButtonGallery.php';
|
||||
}
|
||||
|
||||
public function getWatchActionButton($videos_id) {
|
||||
global $global, $video;
|
||||
include $global['systemRootPath'] . 'plugin/CustomizeAdvanced/actionButton.php';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class SocialMedias {
|
||||
|
|
10
plugin/CustomizeAdvanced/actionButton.php
Normal file
10
plugin/CustomizeAdvanced/actionButton.php
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue