1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Oinktube/view/modeYoutubeBottomRight.php
Daniel 2a9630258f https://github.com/WWBN/AVideo/issues/6345#issuecomment-1067056556
Also check the lang in case insensitive
2022-03-14 14:28:38 -03:00

97 lines
No EOL
3.7 KiB
PHP

<?php
$TimeLogLimitMYBR = 0.01;
$timeLogNameMYBR = TimeLogStart("modeYoutubeBottomRight.php");
if (!empty($video['users_id']) && User::hasBlockedUser($video['users_id'])) {
return false;
}
TimeLogEnd($timeLogNameMYBR, __LINE__, $TimeLogLimitMYBR);
?>
<div class="col-lg-12 col-sm-12 col-xs-12 text-center">
<?php echo getAdsSideRectangle(); ?>
</div>
<?php
TimeLogEnd($timeLogNameMYBR, __LINE__, $TimeLogLimitMYBR);
if (!empty($playlist_id)) {
include $global['systemRootPath'] . 'view/include/playlist.php'; ?>
<script>
$(document).ready(function () {
setAutoplay(true);
});
</script>
<?php
} elseif (empty($autoPlayVideo)) {
?>
<div class="col-lg-12 col-sm-12 col-xs-12 autoplay text-muted" style="margin: 10px 0;" >
<strong><?php echo __("Autoplay ended"); ?></strong>
<span class="pull-right">
<span><?php echo __("Autoplay"); ?></span>
<span>
<i class="fa fa-info-circle" data-toggle="tooltip" data-placement="bottom" title="<?php echo __("When autoplay is enabled, a suggested video will automatically play next."); ?>"></i>
</span>
<div class="material-switch pull-right" style="margin-left: 10px;">
<input type="checkbox" class="saveCookie" name="autoplay" id="autoplay" <?php echo PlayerSkins::isAutoplayEnabled() ? "checked" : ""; ?>>
<label for="autoplay" class="label-primary"></label>
</div>
</span>
</div>
<?php
} elseif (!empty($autoPlayVideo)) { ?>
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12 autoplay text-muted" style="margin: 10px 0;" >
<strong><?php echo __("Up Next"); ?></strong>
<span class="pull-right">
<span><?php echo __("Autoplay"); ?></span>
<span>
<i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="<?php echo __("When autoplay is enabled, a suggested video will automatically play next."); ?>"></i>
</span>
<div class="material-switch pull-right" style="margin-left: 10px;">
<input type="checkbox" class="saveCookie" name="autoplay" id="autoplay" <?php echo PlayerSkins::isAutoplayEnabled() ? "checked" : ""; ?>>
<label for="autoplay" class="label-primary"></label>
</div>
</span>
</div>
</div>
<?php
$style = 'margin: 10px 0; padding: 15px 5px;';
if (!PlayerSkins::isAutoplayEnabled()) {
$style .= 'display: none;';
}
echo Video::getVideosListItem($autoPlayVideo['id'], 'autoPlayVideoDiv', $style);
}
TimeLogEnd($timeLogNameMYBR, __LINE__, $TimeLogLimitMYBR);
$modeYouTubeTimeLog['After autoplay and playlist '] = microtime(true) - $modeYouTubeTime;
$modeYouTubeTime = microtime(true);
?>
<div class="clearfix"></div>
<div class="extraVideos nopadding" style="margin: 15px 0;"></div>
<div class="clearfix"></div>
<!-- videos List -->
<!--googleoff: all-->
<div id="videosList">
<?php
TimeLogEnd($timeLogNameMYBR, __LINE__, $TimeLogLimitMYBR);
if (empty($playlist_id)) {
include $global['systemRootPath'] . 'view/videosList.php';
}
TimeLogEnd($timeLogNameMYBR, __LINE__, $TimeLogLimitMYBR);
?>
</div>
<!--googleon: all-->
<!-- End of videos List -->
<script>
var fading = false;
var autoPlaySources = <?php echo json_encode(@$autoPlaySources); ?>;
var autoPlayURL = '<?php echo @$autoPlayURL; ?>';
var autoPlayPoster = '<?php echo @$autoPlayPoster; ?>';
var autoPlayThumbsSprit = '<?php echo @$autoPlayThumbsSprit; ?>';
$(document).ready(function () {
});
</script>