1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 10:49:36 +02:00
Oinktube/view/include/youtubeModeOnFullscreenCloseButton.php
Caleb Mazalevskis 27a7925b98
Refactor.
2022-01-06 21:44:29 +08:00

27 lines
No EOL
820 B
PHP

<?php
$backURL = getBackURL();
if (empty($backURL)) {
$backURL = $global['webSiteRootURL'];
} else {
// if back URL is another video send it to the main page
$videos_id = getVideoIDFromURL($backURL);
if (!empty($videos_id)) {
echo "<!-- backURL videos_id detected {$videos_id} -->";
$backURL = $global['webSiteRootURL'];
}
}
?>
<div id="divTopBar" style="position: fixed; top: 0; left: 0; height: 50px; width: 100vw; z-index: 999999; padding:10px; display: none;">
<a href="<?php echo $backURL; ?>" id="closeBtnFull" class="pull-right" >
<i class="fas fa-times"></i>
</a>
</div>
<script>
$(document).ready(function () {
if(!inIframe()){
$('#divTopBar').fadeIn();
}
});
</script>