1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00
Oinktube/plugin/YouPHPFlix2/view/row_info.php
2022-09-08 11:20:55 -03:00

157 lines
6.2 KiB
PHP

<!-- row_info start -->
<div class="infoDetails">
<?php
if (!empty($value['rate'])) {
?>
<span class="label label-success"><i class="fab fa-imdb"></i> IMDb <?php echo $value['rate']; ?></span>
<?php
}
?>
<?php
if (!empty($advancedCustom) && empty($advancedCustom->doNotDisplayViews)) {
?>
<span class="label label-default"><i class="fa fa-eye"></i> <?php echo $value['views_count']; ?></span>
<?php } ?>
<?php
if (!empty($advancedCustom) && empty($advancedCustom->doNotDisplayLikes)) {
?>
<span class="label label-success"><i class="fa fa-thumbs-up"></i> <?php echo $value['likes']; ?></span>
<?php } ?>
<?php
if (!empty($advancedCustom) && empty($advancedCustom->doNotDisplayCategory)) {
?>
<span class="label label-success"><a style="color: inherit;" class="tile__cat" cat="<?php echo $value['clean_category']; ?>" href="<?php echo $global['webSiteRootURL'] . "cat/" . $value['clean_category']; ?>"><i class="<?php echo $value['iconClass']; ?>"></i> <?php echo $value['category']; ?></a></span>
<?php } ?>
<?php
foreach ($value['tags'] as $value2) {
$value2 = (object) $value2;
if (!empty($advancedCustom) && empty($advancedCustom->doNotDisplayGroupsTags)) {
if ($value2->label === __("Group")) {
?>
<span class="label label-<?php echo $value2->type; ?>"><?php echo $value2->text; ?></span>
<?php
}
}
if ($advancedCustom->paidOnlyFreeLabel && !empty($value2->label) && $value2->label === __("Paid Content")) {
?><span class="label label-<?php echo $value2->type; ?>"><?php echo $value2->text; ?></span><?php
}
if (!empty($advancedCustom) && empty($advancedCustom->doNotDisplayPluginsTags)) {
if ($value2->label === "Plugin") {
?>
<span class="label label-<?php echo $value2->type; ?>"><?php echo $value2->text; ?></span>
<?php
}
}
}
?>
<?php
if (!empty($value['rrating'])) {
include $global['systemRootPath'] . 'view/rrating/rating-' . $value['rrating'] . '.php';
} else if (!empty($advancedCustom) && $advancedCustom->showNotRatedLabel) {
include $global['systemRootPath'] . 'view/rrating/notRated.php';
}
?>
</div>
<div class="row">
<?php
if (!empty($images->posterPortrait) && basename($images->posterPortrait) !== 'notfound_portrait.jpg' && basename($images->posterPortrait) !== 'pdf_portrait.png' && basename($images->posterPortrait) !== 'article_portrait.png') {
?>
<!-- row video 1 -->
<div class="col-md-2 col-sm-3 col-xs-4 hidden-xs">
<center>
<img alt="<?php echo $value['title']; ?>" class="img img-responsive posterPortrait" src="<?php echo $images->posterPortraitThumbs; ?>" style="min-width: 86px;" />
</center>
</div>
<?php
} else if (!empty($images->poster) && basename($images->poster) !== 'notfound.jpg' && basename($images->poster) !== 'pdf.png' && basename($images->poster) !== 'article.png') {
?>
<!-- row video 2 -->
<div class="col-md-2 col-sm-3 col-xs-4 hidden-xs">
<center>
<img alt="<?php echo $value['title']; ?>" class="img img-responsive" src="<?php echo $images->poster; ?>" style="min-width: 86px;" />
</center>
</div>
<?php
} else if (empty($obj->landscapePosters) && !empty($images->posterPortrait)) {
?>
<!-- row video 3 -->
<div class="col-md-2 col-sm-3 col-xs-4 hidden-xs">
<center>
<img alt="<?php echo $value['title']; ?>" class="img img-responsive posterPortrait" src="<?php echo $images->posterPortraitThumbs; ?>" style="min-width: 86px;" />
</center>
</div>
<?php
} else {
?>
<!-- row video 4 -->
<div class="col-md-2 col-sm-3 col-xs-4 hidden-xs">
<center>
<img alt="<?php echo $value['title']; ?>" class="img img-responsive" src="<?php echo $images->poster; ?>" style="min-width: 86px;" />
</center>
</div>
<?php
}
?>
<div class="infoText col-md-4 col-sm-6 col-xs-8">
<h4 class="mainInfoText" itemprop="description">
<?php
if (strip_tags($value['description']) != $value['description']) {
echo $value['description'];
} else {
echo nl2br(textToLink(htmlentities($value['description'])));
}
?>
</h4>
<?php
if (AVideoPlugin::isEnabledByName("VideoTags")) {
echo VideoTags::getLabels($value['id']);
}
?>
</div>
</div>
<div class="footerBtn">
<?php
$canWatchPlayButton = "";
$get = $_GET;
if (User::canWatchVideoWithAds($value['id'])) {
$canWatchPlayButton = "canWatchPlayButton";
} else if ($obj->hidePlayButtonIfCannotWatch) {
$canWatchPlayButton = "hidden";
if (!User::isLogged()) {
$url = "{$global['webSiteRootURL']}user";
$url = addQueryStringParameter($url, 'redirectUri', $rowLink);
?>
<a class="btn btn-default"
href="<?php echo $url; ?>">
<i class="fas fa-sign-in-alt"></i>
<span class="hidden-xs"><?php echo __("Login"); ?></span>
</a>
<?php
}
}
$_GET = $get;
?>
<a class="btn btn-danger playBtn <?php echo $canWatchPlayButton; ?>"
href="<?php echo $rowLink; ?>"
embed="<?php echo $rowLinkEmbed; ?>">
<i class="fa fa-play"></i>
<span class="hidden-xs"><?php echo __("Play"); ?></span>
</a>
<?php
if (!empty($value['trailer1'])) {
?>
<a href="#" class="btn btn-warning" onclick="flixFullScreen('<?php echo parseVideos($value['trailer1'], 1, 0, 0, 0, 1); ?>', '');return false;">
<span class="fa fa-film"></span>
<span class="hidden-xs"><?php echo __("Trailer"); ?></span>
</a>
<?php
}
?>
<?php
echo AVideoPlugin::getNetflixActionButton($value['id']);
getSharePopupButton($value['id']);
?>
</div>
<!-- row_info end -->