mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
27 lines
No EOL
820 B
PHP
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>
|