mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
96 lines
4.2 KiB
PHP
96 lines
4.2 KiB
PHP
<?php
|
|
require_once dirname(__FILE__) . '/../../videos/configuration.php';
|
|
|
|
$images = Video::getImageFromFilename($video['filename']);
|
|
$img = $images->poster;
|
|
if (!empty($images->posterPortrait) && strpos($images->posterPortrait, 'notfound_portrait') === false) {
|
|
$img = $images->posterPortrait;
|
|
}
|
|
$imgw = 1280;
|
|
$imgh = 720;
|
|
$metaDescription = $title = str_replace('"', '', $video['title']);
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="<?php echo $_SESSION['language']; ?>">
|
|
<head>
|
|
<title><?php echo __("Confirm Rating") . $config->getPageTitleSeparator() . $title; ?></title>
|
|
<?php
|
|
include $global['systemRootPath'] . 'view/include/head.php';
|
|
?>
|
|
<link rel="image_src" href="<?php echo $img; ?>" />
|
|
<meta property="fb:app_id" content="774958212660408" />
|
|
<meta property="og:url" content="<?php echo $global['webSiteRootURL'], "video/", $video['clean_title']; ?>" />
|
|
<meta property="og:type" content="video.other" />
|
|
<meta property="og:title" content="<?php echo getSEOTitle($video['title']); ?>" />
|
|
<meta property="og:description" content="<?php echo getSEODescription(!empty($custom) ? $custom : $video['title']); ?>" />
|
|
<meta property="og:image" content="<?php echo $img; ?>" />
|
|
<meta property="og:image:width" content="<?php echo $imgw; ?>" />
|
|
<meta property="og:image:height" content="<?php echo $imgh; ?>" />
|
|
<meta property="video:duration" content="<?php echo Video::getItemDurationSeconds($video['duration']); ?>" />
|
|
<meta property="duration" content="<?php echo Video::getItemDurationSeconds($video['duration']); ?>" />
|
|
<style>
|
|
body {
|
|
padding-top: 0;
|
|
}
|
|
footer{
|
|
display: none;
|
|
}
|
|
#bg{
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: url('<?php echo $images->poster; ?>');
|
|
background-size: cover;
|
|
opacity: 0.3;
|
|
filter: alpha(opacity=30); /* For IE8 and earlier */
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="<?php echo $global['bodyClass']; ?>">
|
|
<?php
|
|
//include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
?>
|
|
<div id="bg"></div>
|
|
|
|
<!-- Modal -->
|
|
<div id="myModal" class="modal fade in" role="dialog">
|
|
<div class="modal-dialog">
|
|
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title">Title: <?php echo $video['title']; ?></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<img src="<?php echo $img; ?>" class="img img-responsive"/>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<center>
|
|
<?php
|
|
include $global['systemRootPath'] . 'view/rrating/rating-'.$video['rrating'].'_text.php';
|
|
?>
|
|
</center>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer" >
|
|
<a href="<?php echo $_SERVER['REQUEST_URI'],strpos($_SERVER['REQUEST_URI'], "?")===false?"?":"&"; ?>rrating=1" class="btn btn-success pull-right"><i class="fas fa-check-circle"></i> <?php echo __("Confirm"); ?></a>
|
|
<a href="<?php echo $global['webSiteRootURL']; ?>" class="btn btn-danger pull-right"><i class="fas fa-times-circle"></i> <?php echo __("Cancel"); ?></a>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<?php
|
|
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
?>
|
|
<script type="text/javascript">
|
|
$(window).on('load', function () {
|
|
$('#myModal').modal('show');
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|