Page MenuHomeGitPull.it

No OneTemporary

Size
108 KB
Referenced Files
None
Subscribers
None
diff --git a/plugin/Gallery/functions.php b/plugin/Gallery/functions.php
index ff6c59c86..7bcc1ba69 100644
--- a/plugin/Gallery/functions.php
+++ b/plugin/Gallery/functions.php
@@ -1,676 +1,676 @@
<?php
function showThis($who) {
if (empty($_GET['showOnly'])) {
return true;
}
if ($_GET['showOnly'] === $who) {
return true;
}
return false;
}
function createGallery($title, $sort, $rowCount, $getName, $mostWord, $lessWord, $orderString, $defaultSort = "ASC", $ignoreGroup = false, $icon = "fas fa-bookmark", $infinityScroll = false) {
if (!showThis($getName)) {
return "";
}
$getName = str_replace(array("'", '"', "&quot;", "&#039;"), array('', '', '', ''), xss_esc($getName));
if (!empty($_GET['showOnly'])) {
$rowCount = 24;
}
global $global, $args, $url;
$paggingId = uniqid();
$uid = "gallery" . uniqid();
?>
- <div class="row clear clearfix galeryRowElement" id="<?php echo $uid; ?>">
+ <div class="clear clearfix galeryRowElement" id="<?php echo $uid; ?>">
<?php
if (canPrintCategoryTitle($title)) {
?>
<h3 class="galleryTitle">
<a class="btn-default" href="<?php echo $global['webSiteRootURL']; ?>?showOnly=<?php echo $getName; ?>">
<i class="<?php echo $icon; ?>"></i>
<?php
if (empty($_GET[$getName])) {
$_GET[$getName] = $defaultSort;
}
if (!empty($orderString)) {
$info = createOrderInfo($getName, $mostWord, $lessWord, $orderString);
echo "{$title} (" . $info[2] . ") (Page " . $_GET['page'] . ") <a href='" . $info[0] . "' >" . $info[1] . "</a>";
} else {
echo "{$title}";
}
?>
</a>
</h3>
<?php
}
$countCols = 0;
unset($_POST['sort']);
if (empty($_GET['page'])) {
$_GET['page'] = 1;
}
$_POST['sort'][$sort] = $_GET[$getName];
$_REQUEST['current'] = $_GET['page'];
$_REQUEST['rowCount'] = $rowCount;
$total = Video::getTotalVideos("viewable");
$totalPages = ceil($total / $_REQUEST['rowCount']);
$page = $_GET['page'];
if ($totalPages < $_GET['page']) {
if ($infinityScroll) {
echo '</div>';
return 0;
}
$page = $totalPages;
$_REQUEST['current'] = $totalPages;
}
$videos = Video::getAllVideos("viewableNotUnlisted", false, $ignoreGroup);
// need to add dechex because some times it return an negative value and make it fails on javascript playlists
?>
<div class="gallerySectionContent">
<?php
$countCols = createGallerySection($videos, dechex(crc32($getName)));
?>
</div>
<?php
if ($countCols) {
?>
<!-- createGallery -->
<div class="col-sm-12" style="z-index: 1;">
<?php
$infinityScrollGetFromSelector = "";
$infinityScrollAppendIntoSelector = "";
if ($infinityScroll) {
$infinityScrollGetFromSelector = ".gallerySectionContent";
$infinityScrollAppendIntoSelector = ".gallerySectionContent";
}
echo getPagination($totalPages, $page, "{$url}{page}{$args}", 10, $infinityScrollGetFromSelector, $infinityScrollAppendIntoSelector);
?>
</div>
<?php
}
?>
</div>
<?php
if (empty($countCols)) {
?>
<style>
#<?php echo $uid; ?>{
display: none;
}
</style>
<?php
}
}
function createOrderInfo($getName, $mostWord, $lessWord, $orderString) {
$upDown = "";
$mostLess = "";
$tmpOrderString = $orderString;
if ($_GET[$getName] == "DESC") {
if (strpos($orderString, $getName . "=DESC")) {
$tmpOrderString = substr($orderString, 0, strpos($orderString, $getName . "=DESC")) . $getName . "=ASC" . substr($orderString, strpos($orderString, $getName . "=DESC") + strlen($getName . "=DESC"), strlen($orderString));
} else {
$tmpOrderString .= $getName . "=ASC";
}
$upDown = "<span class='glyphicon glyphicon-arrow-up' >" . __("Up") . "</span>";
$mostLess = $mostWord;
} else {
if (strpos($orderString, $getName . "=ASC")) {
$tmpOrderString = substr($orderString, 0, strpos($orderString, $getName . "=ASC")) . $getName . "=DESC" . substr($orderString, strpos($orderString, $getName . "=ASC") + strlen($getName . "=ASC"), strlen($orderString));
} else {
$tmpOrderString .= $getName . "=DESC";
}
$upDown = "<span class='glyphicon glyphicon-arrow-down'>" . __("Down") . "</span>";
$mostLess = $lessWord;
}
if (substr($tmpOrderString, strlen($tmpOrderString) - 1, strlen($tmpOrderString)) == "&") {
$tmpOrderString = substr($tmpOrderString, 0, strlen($tmpOrderString) - 1);
}
return array($tmpOrderString, $upDown, $mostLess);
}
function createGallerySection($videos, $crc = "", $get = array(), $ignoreAds = false, $screenColsLarge = 0, $screenColsMedium = 0, $screenColsSmall = 0, $screenColsXSmall = 0) {
global $global, $config, $obj, $advancedCustom, $advancedCustomUser;
$countCols = 0;
$obj = AVideoPlugin::getObjectData("Gallery");
$zindex = 1000;
$startG = microtime(true);
$program = AVideoPlugin::loadPluginIfEnabled('PlayLists');
foreach ($videos as $value) {
// that meas auto generate the channelName
if (empty($get) && !empty($obj->filterUserChannel)) {
$getCN = array('channelName' => $value['channelName'], 'catName' => @$_GET['catName']);
} else {
$getCN = $get;
}
$img_portrait = (@$value['rotation'] === "90" || @$value['rotation'] === "270") ? "img-portrait" : "";
$name = User::getNameIdentificationById($value['users_id']);
$name .= " " . User::getEmailVerifiedIcon($value['users_id']);
// make a row each 6 cols
if ($countCols % $obj->screenColsLarge === 0) {
echo '<div class="clearfix "></div>';
}
$countCols++;
if (!empty($screenColsLarge)) {
$obj->screenColsLarge = $screenColsLarge;
}
if (!empty($screenColsMedium)) {
$obj->screenColsMedium = $screenColsMedium;
}
if (!empty($screenColsSmall)) {
$obj->screenColsSmall = $screenColsSmall;
}
if (!empty($screenColsXSmall)) {
$obj->screenColsXSmall = $screenColsXSmall;
}
$colsClass = "col-lg-" . (12 / $obj->screenColsLarge) . " col-md-" . (12 / $obj->screenColsMedium) . " col-sm-" . (12 / $obj->screenColsSmall) . " col-xs-" . (12 / $obj->screenColsXSmall);
$isserie = Video::isSerie($value['id']);
$isserieClass = "";
if ($isserie) {
$isserieClass = "isserie";
}
?>
<div class=" <?php echo $colsClass; ?> galleryVideo thumbsImage fixPadding" style="z-index: <?php echo $zindex--; ?>; min-height: 175px;">
<a class="galleryLink <?php echo $isserieClass; ?>" videos_id="<?php echo $value['id']; ?>"
href="<?php echo Video::getLink($value['id'], $value['clean_title'], false, $getCN); ?>"
embed="<?php echo Video::getLink($value['id'], $value['clean_title'], true, $getCN); ?>" title="<?php echo $value['title']; ?>">
<?php
@$timesG[__LINE__] += microtime(true) - $startG;
$startG = microtime(true);
$images = Video::getImageFromFilename($value['filename'], $value['type']);
@$timesG[__LINE__] += microtime(true) - $startG;
if (!is_object($images)) {
$images = new stdClass();
$images->thumbsGif = "";
$images->poster = "" . getCDN() . "view/img/notfound.jpg";
$images->thumbsJpg = "" . getCDN() . "view/img/notfoundThumbs.jpg";
$images->thumbsJpgSmall = "" . getCDN() . "view/img/notfoundThumbsSmall.jpg";
}
if ($value['type'] === 'serie' && !empty($value['serie_playlists_id']) && stripos($images->thumbsJpg, 'notfound') !== false) {
$images = PlayList::getRandomImageFromPlayList($value['serie_playlists_id']);
}
$startG = microtime(true);
$imgGif = $images->thumbsGif;
$poster = $images->thumbsJpg;
?>
<div class="aspectRatio16_9">
<img src="<?php echo $images->thumbsJpgSmall; ?>" data-src="<?php echo $poster; ?>" alt="<?php echo $value['title']; ?>" class="thumbsJPG img img-responsive <?php echo $img_portrait; ?> rotate<?php echo $value['rotation']; ?> <?php echo ($poster != $images->thumbsJpgSmall && !empty($advancedCustom->usePreloadLowResolutionImages)) ? "blur" : ""; ?>" id="thumbsJPG<?php echo $value['id']; ?>" />
<?php if (!empty($imgGif)) { ?>
<img src="<?php echo getCDN(); ?>img/loading-gif.png" data-src="<?php echo $imgGif; ?>" style="position: absolute; top: 0; display: none;" alt="<?php echo $value['title']; ?>" id="thumbsGIF<?php echo $value['id']; ?>" class="thumbsGIF img-responsive <?php echo $img_portrait; ?> rotate<?php echo $value['rotation']; ?>" height="130" />
<?php } ?>
<?php
echo AVideoPlugin::thumbsOverlay($value['id']);
@$timesG[__LINE__] += microtime(true) - $startG;
$startG = microtime(true);
if (!empty($program) && $isserie) {
?>
<div class="gallerySerieOverlay">
<div class="gallerySerieOverlayTotal">
<?php
$plids = PlayList::getVideosIDFromPlaylistLight($value['serie_playlists_id']);
echo count($plids);
?>
<br><i class="fas fa-list"></i>
</div>
<i class="fas fa-play"></i>
<?php
echo __("Play All");
?>
</div>
<?php
} else
if (!empty($program) && User::isLogged()) {
?>
<div class="galleryVideoButtons">
<?php
//var_dump($value['isWatchLater'], $value['isFavorite']);
if ($value['isWatchLater']) {
$watchLaterBtnAddedStyle = "";
$watchLaterBtnStyle = "display: none;";
} else {
$watchLaterBtnAddedStyle = "display: none;";
$watchLaterBtnStyle = "";
}
if ($value['isFavorite']) {
$favoriteBtnAddedStyle = "";
$favoriteBtnStyle = "display: none;";
} else {
$favoriteBtnAddedStyle = "display: none;";
$favoriteBtnStyle = "";
}
?>
<button onclick="addVideoToPlayList(<?php echo $value['id']; ?>, false, <?php echo $value['watchLaterId']; ?>);return false;" class="btn btn-dark btn-xs watchLaterBtnAdded watchLaterBtnAdded<?php echo $value['id']; ?>" data-toggle="tooltip" data-placement="left" title="<?php echo __("Added On Watch Later"); ?>" style="color: #4285f4;<?php echo $watchLaterBtnAddedStyle; ?>" ><i class="fas fa-check"></i></button>
<button onclick="addVideoToPlayList(<?php echo $value['id']; ?>, true, <?php echo $value['watchLaterId']; ?>);return false;" class="btn btn-dark btn-xs watchLaterBtn watchLaterBtn<?php echo $value['id']; ?>" data-toggle="tooltip" data-placement="left" title="<?php echo __("Watch Later"); ?>" style="<?php echo $watchLaterBtnStyle; ?>" ><i class="fas fa-clock"></i></button>
<br>
<button onclick="addVideoToPlayList(<?php echo $value['id']; ?>, false, <?php echo $value['favoriteId']; ?>);return false;" class="btn btn-dark btn-xs favoriteBtnAdded favoriteBtnAdded<?php echo $value['id']; ?>" data-toggle="tooltip" data-placement="left" title="<?php echo __("Added On Favorite"); ?>" style="color: #4285f4; <?php echo $favoriteBtnAddedStyle; ?>"><i class="fas fa-check"></i></button>
<button onclick="addVideoToPlayList(<?php echo $value['id']; ?>, true, <?php echo $value['favoriteId']; ?>);return false;" class="btn btn-dark btn-xs favoriteBtn favoriteBtn<?php echo $value['id']; ?>" data-toggle="tooltip" data-placement="left" title="<?php echo __("Favorite"); ?>" style="<?php echo $favoriteBtnStyle; ?>" ><i class="fas fa-heart" ></i></button>
</div>
<?php
}
?>
</div>
<?php
if (isToShowDuration($value['type'])) {
?>
<span class="duration"><?php echo Video::getCleanDuration($value['duration']); ?></span>
<div class="progress" style="height: 3px; margin-bottom: 2px;">
<div class="progress-bar progress-bar-danger" role="progressbar" style="width: <?php echo $value['progress']['percent'] ?>%;" aria-valuenow="<?php echo $value['progress']['percent'] ?>" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<?php
}
?>
</a>
<a class="h6 galleryLink <?php echo $isserieClass; ?>" videos_id="<?php echo $value['id']; ?>"
href="<?php echo Video::getLink($value['id'], $value['clean_title'], false, $getCN); ?>"
embed="<?php echo Video::getLink($value['id'], $value['clean_title'], true, $getCN); ?>" title="<?php echo $value['title']; ?>">
<strong class="title"><?php echo $value['title']; ?></strong>
</a>
<div class="galeryDetails" style="overflow: hidden;">
<div class="galleryTags">
<!-- category tags -->
<?php
if (empty($_GET['catName']) && !empty($obj->showCategoryTag)) {
$iconClass = 'fas fa-folder';
if (!empty($value['iconClass'])) {
$iconClass = $value['iconClass'];
}
$icon = '<i class="' . $iconClass . '"></i>';
?>
<a class="label label-default" href="<?php echo $global['webSiteRootURL']; ?>cat/<?php echo $value['clean_category']; ?>"
data-toggle="tooltip" title="<?php echo htmlentities($icon . ' ' . $value['category']); ?>" data-html="true">
<?php
echo $icon;
?>
</a>
<?php } ?>
<!-- plugins tags -->
<?php
@$timesG[__LINE__] += microtime(true) - $startG;
$startG = microtime(true);
if (!empty($obj->showTags)) {
echo implode('', Video::getTagsHTMLLabelArray($value['id']));
}
@$timesG[__LINE__] += microtime(true) - $startG;
$startG = microtime(true);
?>
</div>
<?php
if (empty($advancedCustom->doNotDisplayViews)) {
if (AVideoPlugin::isEnabledByName('LiveUsers')) {
echo getLiveUsersLabelVideo($value['id'], $value['views_count'], "", "");
} else {
?>
<div>
<i class="fa fa-eye"></i>
<span itemprop="interactionCount">
<?php echo number_format($value['views_count'], 0); ?> <?php echo __("Views"); ?>
</span>
</div>
<?php
}
}
?>
<div>
<i class="far fa-clock"></i>
<?php echo humanTiming(strtotime($value['videoCreation'])), " ", __('ago'); ?>
</div>
<div>
<a href="<?php echo User::getChannelLink($value['users_id']); ?>">
<i class="fa fa-user"></i>
<?php echo $name; ?>
</a>
</div>
<?php
if ((!empty($value['description'])) && !empty($obj->Description)) {
//$desc = str_replace(array('"', "'", "#", "/", "\\"), array('``', "`", "", "", ""), preg_replace("/\r|\n/", " ", nl2br(trim($value['description']))));
$desc = nl2br(trim($value['description']));
if (!empty($desc)) {
$duid = uniqid();
$titleAlert = str_replace(array('"', "'"), array('``', "`"), $value['title']);
?>
<div>
<a href="#" onclick='avideoAlert("<?php echo $titleAlert; ?>", "<div style=\"max-height: 300px; overflow-y: scroll;overflow-x: hidden;\" id=\"videoDescriptionAlertContent<?php echo $duid; ?>\" ></div>", "");$("#videoDescriptionAlertContent<?php echo $duid; ?>").html($("#videoDescription<?php echo $duid; ?>").html());return false;' data-toggle="tooltip" title="<?php echo __("Description"); ?>"><i class="far fa-file-alt"></i> <span class="hidden-sm hidden-xs"><?php echo __("Description"); ?></span></a>
<div id="videoDescription<?php echo $duid; ?>" style="display: none;"><?php echo $desc; ?></div>
</div>
<?php
}
}
?>
<?php if (Video::canEdit($value['id'])) { ?>
<div>
<a href="#" onclick="avideoModalIframe('<?php echo $global['webSiteRootURL']; ?>mvideos?video_id=<?php echo $value['id']; ?>');return false;" data-toggle="tooltip" title="<?php echo __("Edit Video"); ?>">
<i class="fa fa-edit"></i> <span class="hidden-sm hidden-xs"><?php echo __("Edit Video"); ?></span>
</a>
</div>
<?php }
?>
<?php if (!empty($value['trailer1'])) { ?>
<div>
<span onclick="showTrailer('<?php echo parseVideos($value['trailer1'], 1); ?>'); return false;" class="cursorPointer" >
<i class="fa fa-video"></i> <?php echo __("Trailer"); ?>
</span>
</div>
<?php }
?>
<?php
echo AVideoPlugin::getGalleryActionButton($value['id']);
?>
</div>
<?php
@$timesG[__LINE__] += microtime(true) - $startG;
$startG = microtime(true);
if (CustomizeUser::canDownloadVideosFromVideo($value['id'])) {
@$timesG[__LINE__] += microtime(true) - $startG;
$startG = microtime(true);
$files = getVideosURL($value['filename']);
@$timesG[__LINE__] += microtime(true) - $startG;
$startG = microtime(true);
if (!empty($files['mp4']) || !empty($files['mp3'])) {
?>
<div style="position: relative; overflow: visible; z-index: 3;" class="dropup">
<button type="button" class="btn btn-default btn-sm btn-xs btn-block" data-toggle="dropdown">
<i class="fa fa-download"></i> <?php echo!empty($advancedCustom->uploadButtonDropdownText) ? $advancedCustom->uploadButtonDropdownText : ""; ?> <span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-menu-left" role="menu">
<?php
//var_dump($files);exit;
foreach ($files as $key => $theLink) {
if (($theLink['type'] !== 'video' && $theLink['type'] !== 'audio') || $key == "m3u8") {
continue;
}
$path_parts = pathinfo($theLink['filename']);
?>
<li>
<a href="<?php echo $theLink['url']; ?>?download=1&title=<?php echo urlencode($value['title'] . "_{$key}_.{$path_parts['extension']}"); ?>">
<?php echo __("Download"); ?> <?php echo $key; ?>
</a>
</li>
<?php }
?>
</ul>
</div>
<?php
}
}
@$timesG[__LINE__] += microtime(true) - $startG;
$startG = microtime(true);
//getLdJson($value['id']);
//getItemprop($value['id']);
?>
</div>
<?php
if ($countCols > 1) {
if ($countCols % $obj->screenColsLarge === 0) {
echo "<div class='clearfix hidden-md hidden-sm hidden-xs'></div>";
}
if ($countCols % $obj->screenColsMedium === 0) {
echo "<div class='clearfix hidden-lg hidden-sm hidden-xs'></div>";
}
if ($countCols % $obj->screenColsSmall === 0) {
echo "<div class='clearfix hidden-lg hidden-md hidden-xs'></div>";
}
if ($countCols % $obj->screenColsXSmall === 0) {
echo "<div class='clearfix hidden-lg hidden-md hidden-sm'></div>";
}
}
}
?>
<div class="col-xs-12 text-center clear clearfix" style="padding: 10px;">
<?php
if (empty($ignoreAds)) {
echo getAdsLeaderBoardMiddle();
}
?>
</div>
<!--
createGallerySection
<?php
$timesG[__LINE__] = microtime(true) - $startG;
$startG = microtime(true);
foreach ($timesG as $key => $value) {
echo "Line: {$key
} -> {$value
}\n";
}
?>
-->
<?php
unset($_POST['disableAddTo']);
return $countCols;
}
function createGalleryLiveSection($videos) {
global $global, $config, $obj, $advancedCustom, $advancedCustomUser;
$countCols = 0;
$obj = AVideoPlugin::getObjectData("Gallery");
$liveobj = AVideoPlugin::getObjectData("Live");
$zindex = 1000;
$program = AVideoPlugin::loadPluginIfEnabled('PlayLists');
foreach ($videos as $video) {
$name = User::getNameIdentificationById($video['users_id']);
$name .= " " . User::getEmailVerifiedIcon($video['users_id']);
// make a row each 6 cols
if ($countCols % $obj->screenColsLarge === 0) {
echo '<div class="clearfix "></div>';
}
$countCols++;
if (!empty($screenColsLarge)) {
$obj->screenColsLarge = $screenColsLarge;
}
if (!empty($screenColsMedium)) {
$obj->screenColsMedium = $screenColsMedium;
}
if (!empty($screenColsSmall)) {
$obj->screenColsSmall = $screenColsSmall;
}
if (!empty($screenColsXSmall)) {
$obj->screenColsXSmall = $screenColsXSmall;
}
$colsClass = "col-lg-" . (12 / $obj->screenColsLarge) . " col-md-" . (12 / $obj->screenColsMedium) . " col-sm-" . (12 / $obj->screenColsSmall) . " col-xs-" . (12 / $obj->screenColsXSmall);
if (!empty($video['className'])) {
$colsClass .= " {$video['className']}";
}
$liveNow = '<span class="label label-danger liveNow faa-flash faa-slow animated" style="position: absolute;
bottom: 5px;
right: 5px;">' . __("LIVE NOW") . '</span>';
?>
<div class=" <?php echo $colsClass; ?> galleryVideo thumbsImage fixPadding" style="z-index: <?php echo $zindex--; ?>; min-height: 175px;">
<a class="galleryLink" videos_id="<?php echo $video['id']; ?>"
href="<?php echo $video['href']; ?>"
embed="<?php echo $video['link']; ?>" title="<?php echo $video['title']; ?>">
<div class="aspectRatio16_9">
<img src="<?php echo $video['poster']; ?>" alt="<?php echo $video['title'] ?>" class="thumbsJPG img img-responsive" id="thumbsJPG<?php echo $video['id']; ?>" />
<?php if (!empty($video['imgGif'])) { ?>
<img src="<?php echo getCDN(); ?>img/loading-gif.png" data-src="<?php echo $video['imgGif']; ?>" style="position: absolute; top: 0; display: none;" alt="<?php echo $video['title']; ?>" id="thumbsGIF<?php echo $video['id']; ?>" class="thumbsGIF img-responsive " height="130" />
<?php
}
echo $liveNow;
?>
</div>
</a>
<a class="h6 galleryLink" videos_id="<?php echo $video['title']; ?>"
href="<?php echo $video['href']; ?>"
embed="<?php echo $video['link']; ?>" title="<?php echo $video['title']; ?>">
<strong class="title"><?php echo $video['title'] ?></strong>
</a>
<div class="galeryDetails" style="overflow: hidden;">
<div class="galleryTags">
<?php if (empty($_GET['catName']) && !empty($obj->showCategoryTag)) { ?>
<a class="label label-default" href="<?php echo $global['webSiteRootURL']; ?>cat/<?php echo $video['clean_category']; ?>">
<?php
if (!empty($video['iconClass'])) {
?>
<i class="<?php echo $video['iconClass']; ?>"></i>
<?php
}
?>
<?php echo $video['category']; ?>
</a>
<?php } ?>
</div>
<div>
<i class="fa fa-user"></i>
<a href="<?php echo User::getChannelLink($video['users_id']); ?>">
<?php echo $name; ?>
</a>
</div>
<?php
if ((!empty($video['description'])) && !empty($obj->Description)) {
$desc = str_replace(array('"', "'", "#", "/", "\\"), array('``', "`", "", "", ""), preg_replace("/\r|\n/", " ", nl2br(trim($video['description']))));
if (!empty($desc)) {
$titleAlert = str_replace(array('"', "'"), array('``', "`"), $video['title']);
?>
<div>
<a href="#" onclick='avideoAlert("<?php echo $titleAlert; ?>", "<div style=\"max-height: 300px; overflow-y: scroll;overflow-x: hidden;\"><?php echo $desc; ?></div>", "info");return false;' data-toggle="tooltip" title="<?php echo __("Description"); ?>"><i class="far fa-file-alt"></i> <span class="hidden-sm hidden-xs"><?php echo __("Description"); ?></span></a>
</div>
<?php
}
}
?>
</div>
</div>
<?php
if ($countCols > 1) {
if ($countCols % $obj->screenColsLarge === 0) {
echo "<div class='clearfix hidden-md hidden-sm hidden-xs'></div>";
}
if ($countCols % $obj->screenColsMedium === 0) {
echo "<div class='clearfix hidden-lg hidden-sm hidden-xs'></div>";
}
if ($countCols % $obj->screenColsSmall === 0) {
echo "<div class='clearfix hidden-lg hidden-md hidden-xs'></div>";
}
if ($countCols % $obj->screenColsXSmall === 0) {
echo "<div class='clearfix hidden-lg hidden-md hidden-sm'></div>";
}
}
}
?>
<div class="col-xs-12 text-center clear clearfix" style="padding: 10px;">
<?php
if (empty($ignoreAds)) {
echo getAdsLeaderBoardMiddle();
}
?>
</div>
<?php
if (!empty($video['galleryCallback'])) {
$video['galleryCallback'] = addcslashes($video['galleryCallback'], '"');
echo '<!-- galleryCallback --><script>$(document).ready(function () {eval("' . $video['galleryCallback'] . '")});</script>';
}
unset($_POST['disableAddTo']);
return $countCols;
}
function createChannelItem($users_id, $photoURL = "", $identification = "", $rowCount = 12) {
$total = Video::getTotalVideos("viewable", $users_id);
if (empty($total)) {
return false;
}
if (empty($photoURL)) {
$photoURL = User::getPhoto($users_id);
}
if (empty($identification)) {
$identification = User::getNameIdentificationById($users_id);
}
?>
<div class="clear clearfix">
<h3 class="galleryTitle">
<img src="<?php echo $photoURL; ?>" class="img img-circle img-responsive pull-left" style="max-height: 20px;" alt="Channel Owner">
<span style="margin: 0 5px;">
<?php
echo $identification;
?>
</span>
<a class="btn btn-xs btn-default" href="<?php echo User::getChannelLink($users_id); ?>" style="margin: 0 10px;">
<i class="fas fa-external-link-alt"></i>
</a>
<?php
echo Subscribe::getButton($users_id);
?>
</h3>
<div class="">
<?php
$countCols = 0;
unset($_POST['sort']);
$_POST['sort']['created'] = "DESC";
$_REQUEST['current'] = 1;
$_REQUEST['rowCount'] = $rowCount;
$videos = Video::getAllVideos("viewable", $users_id);
createGallerySection($videos);
?>
</div>
</div>
<?php
}
$search = "";
$searchPhrase = "";
function clearSearch() {
global $search, $searchPhrase;
$search = $_GET['search'];
$searchPhrase = $_POST['searchPhrase'];
unset($_GET['search']);
unset($_POST['searchPhrase']);
}
function reloadSearch() {
global $search, $searchPhrase;
$_GET['search'] = $search;
$_POST['searchPhrase'] = $searchPhrase;
}
function getTrendingVideos($rowCount = 12, $screenColsLarge = 0, $screenColsMedium = 0, $screenColsSmall = 0, $screenColsXSmall = 0) {
global $global;
$countCols = 0;
unset($_POST['sort']);
$_GET['sort']['trending'] = 1;
$_REQUEST['current'] = getCurrentPage();
$_REQUEST['rowCount'] = $rowCount;
$videos = Video::getAllVideos("viewableNotUnlisted");
// need to add dechex because some times it return an negative value and make it fails on javascript playlists
echo "<link href=\"" . getCDN() . "plugin/Gallery/style.css\" rel=\"stylesheet\" type=\"text/css\"/><div class='row gallery '>";
$countCols = createGallerySection($videos, "", array(), false, $screenColsLarge, $screenColsMedium, $screenColsSmall, $screenColsXSmall);
echo "</div>";
return $countCols;
}
function canPrintCategoryTitle($title) {
global $doNotRepeatCategoryTitle;
if (!isset($doNotRepeatCategoryTitle)) {
$doNotRepeatCategoryTitle = array();
}
if (in_array($title, $doNotRepeatCategoryTitle)) {
return false;
}
$doNotRepeatCategoryTitle[] = $title;
return true;
}
?>
diff --git a/plugin/Gallery/view/BigVideo.php b/plugin/Gallery/view/BigVideo.php
index 832c9e1af..6b1850e8d 100644
--- a/plugin/Gallery/view/BigVideo.php
+++ b/plugin/Gallery/view/BigVideo.php
@@ -1,305 +1,305 @@
<?php
if (empty($crc)) {
$crc = uniqid();
}
if ($obj->BigVideo && empty($_GET['showOnly'])) {
if (!empty($obj->useSuggestedVideosAsCarouselInBigVideo)) {
//getAllVideos($status = "viewable", $showOnlyLoggedUserVideos = false, $ignoreGroup = false, $videosArrayId = array(), $getStatistcs = false, $showUnlisted = false, $activeUsersOnly = true)
//$videoRows = Video::getAllVideosLight("viewable", !$obj->hidePrivateVideos, false, true);
$_REQUEST['rowCount'] = 20;
$_REQUEST['current'] = 1;
$videoRows = Video::getAllVideos("viewable", false, !$obj->hidePrivateVideos, array(), false, false, true, true);
}
if (empty($videoRows)) {
$videoRows = array($video);
}
$class = '';
$classInner = '';
if (count($videoRows) > 1) {
$class = 'carousel slide';
$classInner = 'carousel-inner';
}
?>
<style>
#bigVideoCarousel .carousel-indicators .active {
border-color: #777 !important;
}
</style>
<div class="row">
- <div class="col-sm-12 fixPadding">
+ <div class="col-sm-12">
<div id="bigVideoCarousel" class="<?php echo $class; ?> " data-ride="carousel">
<?php
if (count($videoRows) > 1) {
?>
<!-- Indicators -->
<ol class="carousel-indicators" style="bottom: -25px;">
<?php
for ($i = 0; $i < count($videoRows); $i++) {
?><li data-target="#bigVideoCarousel" data-slide-to="<?php echo $i; ?>" class="<?php echo $i === 0 ? "active" : ""; ?>" style="border-color: #DDD;"></li><?php
}
?>
</ol>
<?php
}
?>
<!-- Wrapper for slides -->
<div class="<?php echo $classInner; ?>">
<?php
$count = 0;
$program = AVideoPlugin::loadPluginIfEnabled('PlayLists');
foreach ($videoRows as $videoRow) {
$count++;
$category = new Category($videoRow['categories_id']);
$videoRow['category'] = $category->getName();
$videoRow['clean_category'] = $category->getClean_name();
$videoRow['iconClass'] = $category->getIconClass();
$videoRow['videoCreation'] = $videoRow['created'];
$name = User::getNameIdentificationById($videoRow['users_id']);
if (empty($get)) {
$get = array();
}
$bigVideoAd = getAdsLeaderBoardBigVideo();
$colClass1 = "col-sm-5";
$colClass2 = "col-sm-7";
$colClass3 = "";
if (!empty($bigVideoAd)) {
$colClass1 = "col-sm-4";
$colClass2 = "col-sm-8";
$colClass3 = "col-sm-6";
}
$isserie = Video::isSerie($videoRow['id']);
$isserieClass = "";
if ($isserie) {
$isserieClass = "isserie";
}
?>
<div class="item <?php echo $count === 1 ? "active" : ""; ?>">
<div class="clear clearfix">
<div class="row thumbsImage">
<div class="<?php echo $colClass1; ?> galleryVideo">
<a class="galleryLink <?php echo $isserieClass; ?>" videos_id="<?php echo $videoRow['id']; ?>"
href="<?php echo Video::getLink($videoRow['id'], $videoRow['clean_title'], false, $get); ?>"
embed="<?php echo Video::getLink($videoRow['id'], $videoRow['clean_title'], true, $get); ?>"
title="<?php echo $videoRow['title']; ?>" style="">
<?php
$images = Video::getImageFromFilename($videoRow['filename'], $videoRow['type']);
$imgGif = $images->thumbsGif;
$poster = isMobile() ? $images->thumbsJpg : $images->poster;
?>
<div class="aspectRatio16_9">
<img src="<?php echo $images->thumbsJpgSmall; ?>" data-src="<?php echo $poster; ?>" alt="<?php echo $videoRow['title']; ?>" class="thumbsJPG img img-responsive <?php echo ($poster != $images->thumbsJpgSmall && !empty($advancedCustom->usePreloadLowResolutionImages)) ? "blur" : ""; ?>" style="height: auto; width: 100%;" id="thumbsJPG<?php echo $videoRow['id']; ?>" />
<?php if (!empty($obj->GifOnBigVideo) && !empty($imgGif)) { ?>
<img src="<?php echo getCDN(); ?>view/img/loading-gif.png" data-src="<?php echo $imgGif; ?>" style="position: absolute; top: 0; display: none;" alt="<?php echo $videoRow['title']; ?>" id="thumbsGIF<?php echo $videoRow['id']; ?>" class="thumbsGIF img-responsive <?php echo @$img_portrait; ?> rotate<?php echo $videoRow['rotation']; ?>" height="130" />
<?php } ?>
</div>
<?php
if (isToShowDuration($videoRow['type'])) {
?>
<span class="duration"><?php echo Video::getCleanDuration($videoRow['duration']); ?></span>
<div class="progress" style="height: 3px; margin-bottom: 2px;">
<div class="progress-bar progress-bar-danger" role="progressbar" style="width: <?php echo $videoRow['progress']['percent'] ?>%;" aria-valuenow="<?php echo $videoRow['progress']['percent'] ?>" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<?php
}
if (!empty($program) && $videoRow['type'] == 'serie' && !empty($videoRow['serie_playlists_id'])) {
?>
<div class="gallerySerieOverlay">
<div class="gallerySerieOverlayTotal">
<?php
$plids = PlayList::getVideosIDFromPlaylistLight($videoRow['serie_playlists_id']);
echo count($plids);
?>
<br><i class="fas fa-list"></i>
</div>
<i class="fas fa-play"></i>
<?php
echo __("Play All");
?>
</div>
<?php
} else
if (User::isLogged() && !empty($program)) {
?>
<div class="galleryVideoButtons" style="margin-right: 20px;">
<?php
//var_dump($value['isWatchLater'], $value['isFavorite']);
if ($videoRow['isWatchLater']) {
$watchLaterBtnAddedStyle = "";
$watchLaterBtnStyle = "display: none;";
} else {
$watchLaterBtnAddedStyle = "display: none;";
$watchLaterBtnStyle = "";
}
if ($videoRow['isFavorite']) {
$favoriteBtnAddedStyle = "";
$favoriteBtnStyle = "display: none;";
} else {
$favoriteBtnAddedStyle = "display: none;";
$favoriteBtnStyle = "";
}
?>
<button onclick="addVideoToPlayList(<?php echo $videoRow['id']; ?>, false, <?php echo $videoRow['watchLaterId']; ?>);return false;" class="btn btn-dark btn-xs watchLaterBtnAdded watchLaterBtnAdded<?php echo $videoRow['id']; ?>" title="<?php echo __("Added On Watch Later"); ?>" style="color: #4285f4;<?php echo $watchLaterBtnAddedStyle; ?>" ><i class="fas fa-check"></i></button>
<button onclick="addVideoToPlayList(<?php echo $videoRow['id']; ?>, true, <?php echo $videoRow['watchLaterId']; ?>);return false;" class="btn btn-dark btn-xs watchLaterBtn watchLaterBtn<?php echo $videoRow['id']; ?>" title="<?php echo __("Watch Later"); ?>" style="<?php echo $watchLaterBtnStyle; ?>" ><i class="fas fa-clock"></i></button>
<br>
<button onclick="addVideoToPlayList(<?php echo $videoRow['id']; ?>, false, <?php echo $videoRow['favoriteId']; ?>);return false;" class="btn btn-dark btn-xs favoriteBtnAdded favoriteBtnAdded<?php echo $videoRow['id']; ?>" title="<?php echo __("Added On Favorite"); ?>" style="color: #4285f4; <?php echo $favoriteBtnAddedStyle; ?>"><i class="fas fa-check"></i></button>
<button onclick="addVideoToPlayList(<?php echo $videoRow['id']; ?>, true, <?php echo $videoRow['favoriteId']; ?>);return false;" class="btn btn-dark btn-xs favoriteBtn favoriteBtn<?php echo $videoRow['id']; ?>" title="<?php echo __("Favorite"); ?>" style="<?php echo $favoriteBtnStyle; ?>" ><i class="fas fa-heart" ></i></button>
</div>
<?php
}
?>
</a>
</div>
<div class="<?php echo $colClass2; ?>">
<div class="<?php echo $colClass3; ?>">
<a class="h6 galleryLink <?php echo $isserieClass; ?>" videos_id="<?php echo $videoRow['id']; ?>"
href="<?php echo Video::getLink($videoRow['id'], $videoRow['clean_title'], false, $get); ?>"
embed="<?php echo Video::getLink($videoRow['id'], $videoRow['clean_title'], true, $get); ?>"
title="<?php echo $videoRow['title']; ?>">
<strong><?php echo $videoRow['title']; ?></strong>
</a>
<div class="descriptionArea">
<div class="descriptionAreaPreContent">
<div class="descriptionAreaContent">
<?php
echo Video::htmlDescription($videoRow['description']);
?>
</div>
</div>
<button onclick="$(this).closest('.descriptionArea').toggleClass('expanded');" class="btn btn-xs btn-default descriptionAreaShowMoreBtn" style="display: none; ">
<span class="showMore"><i class="fas fa-caret-down"></i> <?php echo __("Show More"); ?></span>
<span class="showLess"><i class="fas fa-caret-up"></i> <?php echo __("Show Less"); ?></span>
</button>
</div>
<div class="galeryDetails">
<div class="galleryTags">
<?php if (empty($_GET['catName'])) { ?>
<a class="label label-default" href="<?php echo Video::getLink($videoRow['id'], $videoRow['clean_title'], false, $get); ?>">
<?php
if (!empty($videoRow['iconClass'])) {
?>
<i class="<?php echo $videoRow['iconClass']; ?>"></i>
<?php
}
?>
<?php echo $videoRow['category']; ?>
</a>
<?php } ?>
<?php
if (!empty($obj->showTags)) {
$videoRow['tags'] = Video::getTags($videoRow['id']);
if (!empty($videoRow['tags'])) {
foreach ($videoRow['tags'] as $value2) {
if (!empty($value2->label) && $value2->label === __("Group")) {
?><span class="label label-<?php echo $value2->type; ?>"><?php echo $value2->text; ?></span><?php
}
}
}
}
?>
</div>
<?php
if (empty($advancedCustom->doNotDisplayViews)) {
if (AVideoPlugin::isEnabledByName('LiveUsers')) {
echo getLiveUsersLabelVideo($videoRow['id'], $videoRow['views_count'], "", "");
} else {
?>
<div>
<i class="fa fa-eye"></i>
<span itemprop="interactionCount">
<?php echo number_format($videoRow['views_count'], 0); ?> <?php echo __("Views"); ?>
</span>
</div>
<?php
}
}
?>
<div>
<i class="far fa-clock"></i>
<?php echo humanTiming(strtotime($videoRow['videoCreation'])), " ", __('ago'); ?>
</div>
<div>
<a href="<?php echo User::getChannelLink($videoRow['users_id']); ?>">
<i class="fa fa-user"></i>
<?php echo $name; ?>
</a>
</div>
<?php if (Video::canEdit($videoRow['id'])) { ?>
<div>
<a href="#" onclick="avideoModalIframe('<?php echo $global['webSiteRootURL']; ?>mvideos?video_id=<?php echo $videoRow['id']; ?>');return false;"><i class="fa fa-edit"></i> <?php echo __("Edit Video"); ?></a>
</div>
<?php } ?>
<?php if (!empty($videoRow['trailer1'])) { ?>
<div>
<span onclick="showTrailer('<?php echo parseVideos($videoRow['trailer1'], 1); ?>'); return false;" class="cursorPointer" >
<i class="fa fa-video"></i> <?php echo __("Trailer"); ?>
</span>
</div>
<?php }
?>
<?php
echo AVideoPlugin::getGalleryActionButton($videoRow['id']);
?>
<?php
if (CustomizeUser::canDownloadVideosFromVideo($videoRow['id'])) {
@$timesG[__LINE__] += microtime(true) - $startG;
$startG = microtime(true);
$files = getVideosURL($videoRow['filename']);
@$timesG[__LINE__] += microtime(true) - $startG;
$startG = microtime(true);
if (!empty($files['mp4']) || !empty($files['mp3'])) {
?>
<div style="position: relative; overflow: visible;">
<button type="button" class="btn btn-default btn-sm btn-xs" data-toggle="dropdown">
<i class="fa fa-download"></i> <?php echo!empty($advancedCustom->uploadButtonDropdownText) ? $advancedCustom->uploadButtonDropdownText : ""; ?> <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<?php
//var_dump($files);exit;
foreach ($files as $key => $theLink) {
if ($theLink['type'] !== 'video' && $theLink['type'] !== 'audio' || $key == "m3u8") {
continue;
}
$path_parts = pathinfo($theLink['filename']);
?>
<li>
<a href="<?php echo $theLink['url']; ?>?download=1&title=<?php echo urlencode($videoRow['title'] . "_{$key}_.{$path_parts['extension']}"); ?>">
<?php echo __("Download"); ?> <?php echo $key; ?>
</a>
</li>
<?php }
?>
</ul>
</div>
<?php
}
}
?>
</div>
</div>
<div class="<?php echo $colClass3; ?>">
<?php echo $bigVideoAd; ?>
</div>
</div>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
<?php
} else if (!empty($_GET['showOnly'])) {
?>
<a href="<?php echo $global['webSiteRootURL']; ?>" class="btn btn-default"><i class="fa fa-arrow-left"></i> <?php echo __("Go Back"); ?></a>
<?php
}
diff --git a/plugin/Gallery/view/mainArea.php b/plugin/Gallery/view/mainArea.php
index 0bd477596..66c945b68 100644
--- a/plugin/Gallery/view/mainArea.php
+++ b/plugin/Gallery/view/mainArea.php
@@ -1,131 +1,131 @@
<div class="row mainArea">
<?php
if (!empty($currentCat)) {
include $global['systemRootPath'] . 'plugin/Gallery/view/Category.php';
}
if ($obj->searchOnChannels && !empty($_GET['search'])) {
$channels = User::getAllUsers(true);
//cleanSearchVar();
foreach ($channels as $value) {
$contentSearchFound = true;
createChannelItem($value['id'], $value['photoURL'], $value['identification']);
}
//reloadSearchVar();
}
if (!empty($video)) {
$contentSearchFound = true;
$img_portrait = ($video['rotation'] === "90" || $video['rotation'] === "270") ? "img-portrait" : "";
if (empty($_GET['search'])) {
include $global['systemRootPath'] . 'plugin/Gallery/view/BigVideo.php';
}
echo '<center style="margin:5px;">' . getAdsLeaderBoardTop2() . '</center>';
if (empty($_GET['catName'])) {
?>
<!-- For Live Videos -->
- <div id="liveVideos" class="row clear clearfix" style="display: none;">
+ <div id="liveVideos" class="clear clearfix" style="display: none;">
<h3 class="galleryTitle text-danger"> <i class="fas fa-play-circle"></i> <?php echo __("Live"); ?></h3>
<div class="extraVideos"></div>
</div>
<script>
function afterExtraVideos($liveLi) {
$liveLi.removeClass('col-lg-12 col-sm-12 col-xs-12 bottom-border');
$liveLi.find('.thumbsImage').removeClass('col-lg-5 col-sm-5 col-xs-5');
$liveLi.find('.videosDetails').removeClass('col-lg-7 col-sm-7 col-xs-7');
$liveLi.addClass('col-lg-2 col-md-4 col-sm-4 col-xs-6 fixPadding');
$('#liveVideos').slideDown();
return $liveLi;
}
</script>
<!-- For Live Videos End -->
<?php
} else {
echo '<script>function afterExtraVideos($liveLi) {return false;}</script>';
}
echo AVideoPlugin::getGallerySection();
$sections = Gallery::getSectionsOrder();
$countSections = 0;
if (!empty($_GET['catName'])) {
$currentCat = Category::getCategoryByName($_GET['catName']);
//createGallery($category['name'], 'created', $obj->CategoriesRowCount, 'dateAddedOrder', __("newest"), __("oldest"), $orderString, "DESC", !$obj->hidePrivateVideos, $category['iconClass'], true);
include $global['systemRootPath'] . 'plugin/Gallery/view/mainAreaCategory.php';
} else {
foreach ($sections as $value) {
if (empty($value['active'])) {
continue;
}
$countSections++;
if ($value['name'] == 'Suggested') {
createGallery(!empty($obj->SuggestedCustomTitle) ? $obj->SuggestedCustomTitle : __("Suggested"), 'suggested', $obj->SuggestedRowCount, 'SuggestedOrder', "", "", $orderString, "ASC", !$obj->hidePrivateVideos, "fas fa-star");
} else
if ($value['name'] == 'Trending') {
createGallery(!empty($obj->TrendingCustomTitle) ? $obj->TrendingCustomTitle : __("Trending"), 'trending', $obj->TrendingRowCount, 'TrendingOrder', "zyx", "abc", $orderString, "ASC", !$obj->hidePrivateVideos, "fas fa-chart-line");
} else
if ($value['name'] == 'SortByName') {
createGallery(!empty($obj->SortByNameCustomTitle) ? $obj->SortByNameCustomTitle : __("Sort by name"), 'title', $obj->SortByNameRowCount, 'sortByNameOrder', "zyx", "abc", $orderString, "ASC", !$obj->hidePrivateVideos, "fas fa-font");
} else
if ($value['name'] == 'DateAdded' && empty($_GET['catName'])) {
createGallery(!empty($obj->DateAddedCustomTitle) ? $obj->DateAddedCustomTitle : __("Date added"), 'created', $obj->DateAddedRowCount, 'dateAddedOrder', __("newest"), __("oldest"), $orderString, "DESC", !$obj->hidePrivateVideos, "far fa-calendar-alt");
} else
if ($value['name'] == 'MostWatched') {
createGallery(!empty($obj->MostWatchedCustomTitle) ? $obj->MostWatchedCustomTitle : __("Most watched"), 'views_count', $obj->MostWatchedRowCount, 'mostWatchedOrder', __("Most"), __("Fewest"), $orderString, "DESC", !$obj->hidePrivateVideos, "far fa-eye");
} else
if ($value['name'] == 'MostPopular') {
createGallery(!empty($obj->MostPopularCustomTitle) ? $obj->MostPopularCustomTitle : __("Most popular"), 'likes', $obj->MostPopularRowCount, 'mostPopularOrder', __("Most"), __("Fewest"), $orderString, "DESC", !$obj->hidePrivateVideos, "fas fa-fire");
} else
if ($value['name'] == 'SubscribedChannels' && User::isLogged() && empty($_GET['showOnly'])) {
include $global['systemRootPath'] . 'plugin/Gallery/view/mainAreaChannels.php';
} else
if ($value['name'] == 'Categories' && empty($_GET['showOnly'])) {
if(empty($currentCat) && !empty(getSearchVar())){
$onlySuggested = $obj->CategoriesShowOnlySuggested;
cleanSearchVar();
$categories = Category::getAllCategories(false, true, $onlySuggested);
reloadSearchVar();
foreach ($categories as $value) {
$currentCat = $value['clean_name'];
include $global['systemRootPath'] . 'plugin/Gallery/view/modeGalleryCategory.php';
}
}else{
include $global['systemRootPath'] . 'plugin/Gallery/view/modeGalleryCategory.php';
}
}
}
if (empty($countSections) && !empty($_GET['catName'])) {
$category = Category::getCategoryByName($_GET['catName']);
createGallery($category['name'], 'created', $obj->CategoriesRowCount, 'dateAddedOrder', __("newest"), __("oldest"), $orderString, "DESC", !$obj->hidePrivateVideos, $category['iconClass'], true);
}
}
} else {
include $global['systemRootPath'] . 'plugin/Gallery/view/modeGalleryCategoryLive.php';
$ob = ob_get_clean();
ob_start();
echo AVideoPlugin::getGallerySection();
$ob2 = ob_get_clean();
echo $ob;
if (empty($contentSearchFound) && empty($ob2)) {
$contentSearchFound = false;
} else {
$contentSearchFound = true;
}
}
if (!$contentSearchFound) {
_session_start();
unset($_SESSION['type']);
?>
<div class="alert alert-warning">
<h1>
<span class="glyphicon glyphicon-facetime-video"></span>
<?php echo __("Warning"); ?>!
</h1>
<?php echo __("We have not found any videos or audios to show"); ?>.
</div>
<?php
include $global['systemRootPath'] . 'view/include/notfound.php';
}
?>
</div>
\ No newline at end of file
diff --git a/plugin/Gallery/view/mainAreaCategory.php b/plugin/Gallery/view/mainAreaCategory.php
index 402bb1348..f0187c0f4 100644
--- a/plugin/Gallery/view/mainAreaCategory.php
+++ b/plugin/Gallery/view/mainAreaCategory.php
@@ -1,64 +1,64 @@
<?php
// if there is no section display only the dateAdded row for the selected category
if (!empty($currentCat) && empty($_GET['showOnly'])) {
if (empty($_GET['page'])) {
$_GET['page'] = 1;
}
$_REQUEST['current'] = $_GET['page'];
include $global['systemRootPath'] . 'plugin/Gallery/view/modeGalleryCategoryLive.php';
unset($_POST['sort']);
$_POST['sort']['v.created'] = "DESC";
$_POST['sort']['likes'] = "DESC";
$_GET['catName'] = $currentCat['clean_name'];
$_REQUEST['rowCount'] = $obj->CategoriesRowCount * 3;
$videos = Video::getAllVideos("viewableNotUnlisted", false, !$obj->hidePrivateVideos);
if (!empty($videos)) {
?>
- <div class="row clear clearfix" id="Div<?php echo $currentCat['clean_name']; ?>">
+ <div class="clear clearfix" id="Div<?php echo $currentCat['clean_name']; ?>">
<?php
if (canPrintCategoryTitle($currentCat['name'])) {
?>
<h3 class="galleryTitle">
<a class="btn-default" href="<?php echo $global['webSiteRootURL']; ?>cat/<?php echo $currentCat['clean_name']; ?>">
<i class="<?php echo $currentCat['iconClass']; ?>"></i> <?php echo $currentCat['name']; ?>
</a>
<?php
if (!empty($currentCat['description'])) {
$duid = uniqid();
$titleAlert = str_replace(array('"', "'"), array('``', "`"), $currentCat['name']);
?>
<a href="#" class="pull-right" onclick='avideoAlert("<?php echo $titleAlert; ?>", "<div style=\"max-height: 300px; overflow-y: scroll;overflow-x: hidden;\" id=\"categoryDescriptionAlertContent<?php echo $duid; ?>\" ></div>", "");$("#categoryDescriptionAlertContent<?php echo $duid; ?>").html($("#categoryDescription<?php echo $duid; ?>").html());return false;' ><i class="far fa-file-alt"></i> <?php echo __("Description"); ?></a>
<div id="categoryDescription<?php echo $duid; ?>" style="display: none;"><?php echo $currentCat['description_html']; ?></div>
<?php
}
?>
</h3>
<?php
}
?>
<div class="Div<?php echo $currentCat['clean_name']; ?>Section">
<?php
createGallerySection($videos, "", array(), true);
?>
</div>
</div>
<?php
$total = Video::getTotalVideos("viewable");
$totalPages = ceil($total / getRowCount());
$page = getCurrentPage();
if ($totalPages < $page) {
$page = $totalPages;
}
?>
<!-- mainAreaCategory -->
<div class="col-sm-12" style="z-index: 1;">
<?php
//getPagination($total, $page = 0, $link = "", $maxVisible = 10, $infinityScrollGetFromSelector="", $infinityScrollAppendIntoSelector="")
echo getPagination($totalPages, $page, "{$url}{page}{$args}", 10, ".Div{$currentCat['clean_name']}Section", ".Div{$currentCat['clean_name']}Section");
?>
</div>
<?php
}
}
\ No newline at end of file
diff --git a/plugin/Gallery/view/mainAreaChannels.php b/plugin/Gallery/view/mainAreaChannels.php
index fc334eca9..7e576cb24 100644
--- a/plugin/Gallery/view/mainAreaChannels.php
+++ b/plugin/Gallery/view/mainAreaChannels.php
@@ -1,45 +1,43 @@
<?php
global $global;
if (empty($global['systemRootPath'])) {
$global['systemRootPath'] = dirname(__FILE__) . '/../../../';
}
require_once $global['systemRootPath'] . 'videos/configuration.php';
require_once $global['systemRootPath'] . 'objects/subscribe.php';
require_once $global['systemRootPath'] . 'plugin/Gallery/functions.php';
if (empty($obj)) {
$obj = AVideoPlugin::getDataObject('Gallery');
}
$itemsPerPage = 4;
$total = Subscribe::getTotalSubscribedChannels(User::getId());
$page = getCurrentPage();
$channels = Subscribe::getSubscribedChannels(User::getId(), $itemsPerPage, $page);
if (empty($channels)) {
return '';
}
$totalPages = ceil($total / $itemsPerPage);
if ($totalPages < $page) {
$page = $totalPages;
}
?>
<!-- mainAreaChannel start -->
-<div class="row">
- <div class="mainAreaChannels">
- <?php
- foreach ($channels as $value) {
- $_POST['disableAddTo'] = 0;
- createChannelItem($value['users_id'], $value['photoURL'], $value['identification'], $obj->SubscribedChannelsRowCount);
- }
- ?>
- </div>
- <div class="col-sm-12" style="z-index: 1;">
- <?php
+<div class="mainAreaChannels">
+ <?php
+ foreach ($channels as $value) {
+ $_POST['disableAddTo'] = 0;
+ createChannelItem($value['users_id'], $value['photoURL'], $value['identification'], $obj->SubscribedChannelsRowCount);
+ }
+ ?>
+</div>
+<div class="col-sm-12" style="z-index: 1;">
+ <?php
//getPagination($total, $page = 0, $link = "", $maxVisible = 10, $infinityScrollGetFromSelector="", $infinityScrollAppendIntoSelector="")
- echo getPagination($totalPages, $page, "{$global['webSiteRootURL']}plugin/Gallery/view/mainAreaChannels.php", 10, ".mainAreaChannels", ".mainAreaChannels");
- ?>
- </div>
+ echo getPagination($totalPages, $page, "{$global['webSiteRootURL']}plugin/Gallery/view/mainAreaChannels.php", 10, ".mainAreaChannels", ".mainAreaChannels");
+ ?>
</div>
<!-- mainAreaChannel end -->
\ No newline at end of file
diff --git a/plugin/Gallery/view/modeGalleryCategory.php b/plugin/Gallery/view/modeGalleryCategory.php
index 47a5a52ff..2d0ab5c78 100644
--- a/plugin/Gallery/view/modeGalleryCategory.php
+++ b/plugin/Gallery/view/modeGalleryCategory.php
@@ -1,82 +1,82 @@
<?php
global $global, $config;
if (!isset($global['systemRootPath'])) {
require_once '../../../videos/configuration.php';
}
require_once $global['systemRootPath'] . 'plugin/Gallery/functions.php';
require_once $global['systemRootPath'] . 'objects/subscribe.php';
require_once $global['systemRootPath'] . 'objects/category.php';
$obj = AVideoPlugin::getObjectData("Gallery");
$liveobj = AVideoPlugin::getObjectData("Live");
$_REQUEST['rowCount'] = 2;
$_REQUEST['current'] = getCurrentPage();
$onlySuggested = $obj->CategoriesShowOnlySuggested;
if(!empty(getSearchVar())){
$onlySuggested = false;
}
$sort = $_POST['sort'];
unset($_POST['sort']);
$categories = Category::getAllCategories(false, true, $onlySuggested);
$total = Category::getTotalCategories(false, true, $onlySuggested);
$totalPages = ceil($total / getRowCount());
$page = getCurrentPage();
if ($totalPages < $page) {
$page = $totalPages;
}
$link = "{$global['webSiteRootURL']}plugin/Gallery/view/modeGalleryCategory.php?tags_id=" . intval(@$_GET['tagsid']) . "&search=" . htmlentities(urlencode(getSearchVar())) . "&current={page}";
if (empty($categories)) {
return false;
}
$_REQUEST['current'] = 1;
$_REQUEST['rowCount'] = $obj->CategoriesRowCount;
?>
<div class="categoriesContainerItem">
<?php
foreach ($categories as $_cat) {
$_GET['catName'] = $_cat['clean_name'];
if (empty($liveobj->doNotShowLiveOnCategoryList)) {
$currentCat = $_cat;
include $global['systemRootPath'] . 'plugin/Gallery/view/modeGalleryCategoryLive.php';
}
unset($_POST['sort']);
$_POST['sort']['v.created'] = "DESC";
$_POST['sort']['likes'] = "DESC";
$videos = Video::getAllVideos("viewableNotUnlisted", false, !$obj->hidePrivateVideos);
if (empty($videos)) {
continue;
}
if (empty($_cat['clean_name'])) {
continue;
}
?>
- <div class="row clear clearfix">
+ <div class="clear clearfix">
<?php
if (canPrintCategoryTitle($_cat['name'])) {
?>
<h3 class="galleryTitle">
<a class="btn-default" href="<?php echo $global['webSiteRootURL']; ?>cat/<?php echo $_cat['clean_name']; ?>">
<i class="<?php echo $_cat['iconClass']; ?>"></i> <?php echo $_cat['name']; ?>
</a>
</h3>
<?php
}
createGallerySection($videos, "", array(), true);
?>
</div>
<?php
}
?>
</div>
<!-- modeGalleryCategory -->
<div class="col-sm-12" style="z-index: 1;">
<?php
//getPagination($total, $page = 0, $link = "", $maxVisible = 10, $infinityScrollGetFromSelector="", $infinityScrollAppendIntoSelector="")
echo getPagination($totalPages, $page, $link, 10, ".categoriesContainerItem", ".categoriesContainerItem");
?>
</div>
<?php
$_POST['sort'] = $sort;
?>
\ No newline at end of file
diff --git a/plugin/Gallery/view/modeGalleryCategoryLive.php b/plugin/Gallery/view/modeGalleryCategoryLive.php
index a8a05b2df..fe4a8fcd4 100644
--- a/plugin/Gallery/view/modeGalleryCategoryLive.php
+++ b/plugin/Gallery/view/modeGalleryCategoryLive.php
@@ -1,65 +1,65 @@
<?php
if (empty($currentCat) || empty($currentCat['clean_name'])) {
echo '<!-- empty category on category Live -->';
return false;
}
$galleryObj = AVideoPlugin::getObjectData("Gallery");
if (empty($galleryObj->showCategoryLiveRow)) {
echo '<!-- empty showCategoryLiveRow on category Live -->';
return false;
}
$stats = getStatsNotifications();
$videos = array();
foreach ($stats["applications"] as $key => $value) {
if (empty($value['categories_id']) || $currentCat['id'] != $value['categories_id']) {
continue;
}
$video = array(
'id' => uniqid(),
'clean_category' => $currentCat['clean_name'],
'description' => '',
'users_id' => $value['users_id'],
'type' => 'ready',
'title' => $value['title'],
'poster' => @$value['poster'],
'href' => @$value['href'],
'link' => @$value['link'],
'imgGif' => @$value['imgGif'],
'className' => @$value['className'],
'galleryCallback' => @$value['galleryCallback']
);
$videos[] = $video;
}
/*
$videosL = $videosLL = $videos = array();
if (AVideoPlugin::isEnabledByName("Live")) {
$videosL = Live::getAllVideos();
}
if (AVideoPlugin::isEnabledByName("LiveLinks")) {
$videosLL = LiveLinks::getAllVideos('a');
}
$videos = array_merge($videosL, $videosLL);
*
*/
if (!empty($videos)) {
$contentSearchFound = true;
?>
- <div class="row clear clearfix">
+ <div class="clear clearfix">
<?php
if (canPrintCategoryTitle($currentCat['name'])) {
?>
<h3 class="galleryTitle">
<a class="btn-default" href="<?php echo $global['webSiteRootURL']; ?>cat/<?php echo $currentCat['clean_name']; ?>">
<i class="<?php echo $currentCat['iconClass']; ?>"></i> <?php echo $currentCat['name']; ?>
</a>
</h3>
<?php
}
createGalleryLiveSection($videos);
?>
</div>
<?php
}
\ No newline at end of file
diff --git a/view/channels.php b/view/channels.php
index d0368a40c..4cb12e821 100644
--- a/view/channels.php
+++ b/view/channels.php
@@ -1,160 +1,160 @@
<?php
global $global, $config;
if (!isset($global['systemRootPath'])) {
require_once '../videos/configuration.php';
}
require_once $global['systemRootPath'] . 'objects/user.php';
require_once $global['systemRootPath'] . 'objects/Channel.php';
require_once $global['systemRootPath'] . 'objects/subscribe.php';
require_once $global['systemRootPath'] . 'objects/video.php';
require_once $global['systemRootPath'] . 'plugin/Gallery/functions.php';
if (isset($_SESSION['channelName'])) {
_session_start();
unset($_SESSION['channelName']);
}
$totalChannels = Channel::getTotalChannels();
if (!empty($_GET['page'])) {
$_POST['current'] = intval($_GET['page']);
} else {
$_POST['current'] = 1;
}
$users_id_array = VideoStatistic::getUsersIDFromChannelsWithMoreViews();
$current = $_POST['current'];
$_REQUEST['rowCount'] = 10;
$channels = Channel::getChannels(true, "u.id, '" . implode(",", $users_id_array) . "'");
$totalPages = ceil($totalChannels / $_REQUEST['rowCount']);
$metaDescription = __("Channels");
?>
<!DOCTYPE html>
<html lang="<?php echo $_SESSION['language']; ?>">
<head>
<title><?php echo __("Channels") . getSEOComplement() . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<style>
#custom-search-input{
padding: 3px;
border: solid 1px #E4E4E4;
border-radius: 6px;
background-color: #fff;
}
#custom-search-input input{
border: 0;
box-shadow: none;
}
#custom-search-input button{
margin: 2px 0 0 0;
background: none;
box-shadow: none;
border: 0;
color: #666666;
padding: 0 8px 0 10px;
border-left: solid 1px #ccc;
}
#custom-search-input button:hover{
border: 0;
box-shadow: none;
border-left: solid 1px #ccc;
}
#custom-search-input .glyphicon-search{
font-size: 23px;
}
</style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container-fluid">
<div class="panel panel-default" >
<div class="panel-heading">
<form id="search-form" name="search-form" action="<?php echo $global['webSiteRootURL']; ?>channels" method="get">
<div id="custom-search-input">
<div class="input-group col-md-12">
<input type="search" name="searchPhrase" class="form-control input-lg" placeholder="<?php echo __("Search Channels"); ?>" value="<?php
echo htmlentities(@$_GET['searchPhrase']);
unsetSearch();
?>" />
<span class="input-group-btn">
<button class="btn btn-info btn-lg" type="submit">
<i class="glyphicon glyphicon-search"></i>
</button>
</span>
</div>
</div>
</form>
</div>
<div class="panel-body" >
<ul class="pages">
</ul>
<?php
foreach ($channels as $value) {
$get = array('channelName' => $value['channelName']);
?>
<div class="panel panel-default">
<div class="panel-heading" style="position: relative;">
<img src="<?php echo User::getPhoto($value['id']); ?>"
class="img img-thumbnail img-responsive pull-left" style="max-height: 100px; margin: 0 10px;" alt="User Photo" />
<a href="<?php echo User::getChannelLink($value['id']); ?>" class="btn btn-default">
<i class="fas fa-play-circle"></i>
<?php
echo User::getNameIdentificationById($value['id']);
?>
</a>
<div style="position: absolute; right: 10px; top: 10px;">
<?php
echo User::getBlockUserButton($value['id']);
?>
<?php echo Subscribe::getButton($value['id']); ?>
</div>
</div>
<div class="panel-body gallery ">
<div>
<?php echo stripslashes(str_replace('\\\\\\\n', '<br/>', $value['about'])); ?>
</div>
<div class="clearfix" style="margin-bottom: 10px;"></div>
- <div class="row clear clearfix galeryRowElement">
+ <div class="clear clearfix galeryRowElement">
<?php
$_POST['current'] = 1;
$_REQUEST['rowCount'] = 6;
$_POST['sort']['created'] = "DESC";
$uploadedVideos = Video::getAllVideos("viewable", $value['id']);
createGallerySection($uploadedVideos, dechex(crc32($value['channelName'])));
?>
</div>
</div>
<div class="panel-footer " style="font-size: 0.8em">
<div class=" text-muted align-right">
<?php echo VideoStatistic::getChannelsTotalViews($value['id']), " ", __("Views in the last 30 days"); ?>
</div>
</div>
</div>
<?php
}
echo getPagination($totalPages, $current, "{$global['webSiteRootURL']}channels?page={page}");
?>
</div>
</div>
</div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
</body>
</html>
diff --git a/view/css/main.css b/view/css/main.css
index 0f43b3204..afadbabf9 100644
--- a/view/css/main.css
+++ b/view/css/main.css
@@ -1,1206 +1,1207 @@
html,
body {
height: 100vh;
}
html {
scroll-behavior: smooth;
}
body {
padding-top: 50px;
}
body.fullscreen {
padding: 0 !important;
margin: 0 !important;
overflow: hidden;
}
.nopadding {
padding: 0 !important;
margin: 0 !important;
}
.videoLink > .duration,
time.duration{
position: absolute;
background: rgba(0, 0, 0, 0.6)!important;
padding: 2px;
color: #FFF;
bottom: 5px;
right: 5px;
font-size: 0.9em;
border-radius: 5px;
}
.videoLink .glyphicon-play-circle {
transition: all 0.3s ease-in-out;
top: 50%;
left: 50%;
margin: -25px 0 0 -25px;
position: absolute;
color: rgba(255, 255, 255, 0.3)!important;
font-size: 50px;
}
.gallery:hover .glyphicon-play-circle,
.videoLink:hover .glyphicon-play-circle {
color: rgba(255, 255, 255, 0.6)!important;
}
.bottom-border {
border-bottom: 2px solid #F2F2F2;
margin: 0;
padding: 5px;
}
h1,
h2,
h3,
h4 {
margin: 5px;
padding: 5px;
}
h1 {
font-size: 20px;
}
h2 {
font-size: 18px;
}
h3 {
font-size: 16px;
}
h4 {
font-size: 14px;
}
footer {
color: #AAA;
padding: 2px;
background-color: #F2F2F2;
border-top: 1px solid #DDD;
text-align: right;
margin: 0;
font-size: 0.8em;
}
footer .btn-outline:hover,
footer .btn-outline:focus,
footer .btn-outline:active {
color: #888;
background: white;
border: solid 1px white;
}
footer .btn-outline {
color: #AAA;
border: solid 1px #AAA;
background: transparent;
transition: all 0.3s ease-in-out;
margin: 0 2px;
font-size: 0.9em;
}
footer ul.list-inline {
justify-content: flex-end;
margin-bottom: 0;
}
footer ul.list-inline li {
justify-content: center;
align-items: center;
padding-right: 1px;
padding-left: 1px;
font-size: 0.8em;
}
/* for main video */
.video-content {
flex: 0 1 100%;
height: 50%;
display: flex;
justify-content: flex-start;
}
.main-video {
background-color: #000;
margin-bottom: 10px;
}
.main-video{
-webkit-transition: ease 1s; /* Safari */
transition: ease 1s;
}
/* to fix the click on mobile */
.rightBar div{
z-index: 10;
}
#videosList, #videosList div{
z-index: 1;
}
/* end for main video */
.form-compact .form-control {
position: relative;
height: auto;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 10px;
font-size: 16px;
}
.form-compact input.form-control {
border-radius: 0;
}
.form-compact input.first,
.form-compact select.first {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.form-compact input.last,
.form-compact select.last {
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
margin-bottom: 10px;
}
@media (max-width: 767px) {
.navbar-form, #modeYoutubeBottomContent, .principalContainer,
- .nopaddingOnSmall,.container-fluid,.container, #yptRightBar{
+ .nopaddingOnSmall,.container-fluid,.container, #yptRightBar,
+ body > div.container-fluid.gallery > div{
padding: 0;
}
.panel-body, .tabbable-panel {
padding: 5px;
- }
-
+ }
+
}
@media (max-width: 450px) {
#captchaText, .captcha .input-group{
display: block;
}
.captcha .input-group-addon:first-child {
border-right: 1px solid rgb(204, 204, 204);
}
}
/* Comments */
.commenterName small {
font-family: verdana;
font-size: 0.9em;
}
.commenterName {
margin-right: 5px;
}
.commentText {
clear: both;
}
.commentDetails {
margin: 0 0 0 60px;
}
/* End Comments */
/* Tabs panel */
.tabbable-panel {
padding: 10px;
}
/* Default mode */
.tabbable-line > .nav-tabs {
border: none;
margin: 0px;
}
.tabbable-line > .nav-tabs > li > a {
border: 0;
margin-right: 0;
}
.tabbable-line > .nav-tabs > li.open > a,
.tabbable-line > .nav-tabs > li:hover > a {
border: 0;
background: none !important;
}
.tabbable-line > .nav-tabs > li.open > a > i,
.tabbable-line > .nav-tabs > li:hover > a > i {
color: #a6a6a6;
}
.tabbable-line > .nav-tabs > li.open .dropdown-menu,
.tabbable-line > .nav-tabs > li:hover .dropdown-menu {
margin-top: 0px;
}
.tabbable-line > .nav-tabs > li.active > a {
border: 0;
background: none !important;
}
.tabbable-line > .nav-tabs > li.active > a > i {
color: #404040;
}
.tabbable-line > .tab-content {
margin-top: -3px;
border: 0;
border-top: 1px solid #eee;
padding: 15px 0;
}
.tabbable-line > .nav-tabs>li:after {
content: "";
background: #DDD;
height: 4px;
position: absolute;
width: 100%;
left: 0px;
bottom: 1px;
}
.tabbable-line > .nav-tabs>li>a::after {
content: "";
background: #f3565d;
height: 4px;
position: absolute;
width: 100%;
left: 0px;
bottom: 1px;
transition: all 250ms ease 0s;
transform: scale(0);
z-index: 1;
}
.tabbable-line > .nav-tabs>li:hover>a::after {
background: #F99;
}
.tabbable-line > .nav-tabs>li.active>a::after {
background: #f3565d;
}
.tabbable-line > .nav-tabs > li.open,
.tabbable-line > .nav-tabs>li.active>a::after,
.tabbable-line > .nav-tabs>li:hover>a::after {
transform: scale(1);
}
.portlet .tabbable-line > .tab-content {
padding-bottom: 0;
}
/* END Tabs panel */
.nowrapCell td {
white-space: normal !important;
}
.watch8-action-buttons {
padding: 5px 10px 0 10px;
margin: 5px 0 0 0;
border-top: 2px solid #F2F2F2;
clear: both;
}
.watch8-action-buttons .btn{
margin: 5px 2px;
}
.bgWhite {
margin: 0 0 10px;
border: 0;
box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 10px;
/*overflow: hidden;*/
text-overflow: ellipsis;
}
.ellipsis {
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.no-outline {
border: 0;
}
.no-outline:focus,
.no-outline:active,
.no-outline:hover {
background-color: transparent;
color: #000;
}
#showMore {
padding: 20px;
margin: 10px;
border-top: 2px solid #F2F2F2;
}
.watch-view-count {
line-height: 24px;
max-height: 24px;
font-size: 19px;
white-space: nowrap;
margin: -5px;
padding: -5px;
border-bottom: 2px solid #167ac6;
}
.myVote span,
.myVote small {
color: #167ac6;
}
/* fancy checkbox */
.material-switch > input[type="checkbox"] {
display: none;
}
.material-switch > label {
cursor: pointer;
height: 0px;
position: relative;
width: 40px;
}
.material-switch > label::before {
background: rgb(0, 0, 0);
box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
border-radius: 8px;
content: '';
height: 16px;
margin-top: -8px;
position: absolute;
opacity: 0.3;
transition: all 0.4s ease-in-out;
width: 40px;
}
.material-switch > label::after {
background: rgb(255, 255, 255);
border-radius: 16px;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
content: '';
height: 24px;
left: -4px;
margin-top: -8px;
position: absolute;
top: -4px;
transition: all 0.3s ease-in-out;
width: 24px;
}
.material-switch > input[type="checkbox"]:checked + label::before {
background: inherit;
opacity: 0.5;
}
.material-switch > input[type="checkbox"]:checked + label::after {
background: inherit;
left: 20px;
}
/* fancy checkbox */
.material-small.material-switch > input[type="checkbox"] {
display: none;
}
.material-small.material-switch > label {
width: 20px;
margin-right: 5px;
}
.material-small.material-switch > label::before {
margin-top: -5px;
width: 20px;
height: 10px;
}
.material-small.material-switch > label::after {
margin-top: -4px;
width: 15px;
height: 15px;
}
.material-small.material-switch > input[type="checkbox"]:checked + label::after {
left: 10px;
}
/* fancy checkbox end */
.videosDetails .label{
border-radius: 0;
}
.videosDetails .label:first-child{
border-top-left-radius: 0.25em;
border-bottom-left-radius: 0.25em;
}
.videosDetails .label:last-child{
border-top-right-radius: 0.25em;
border-bottom-right-radius: 0.25em;
}
.popover-content,
.popover-title,
.popover {
color: #333 !important;
}
.videosDetails {
padding-left: 20px;
}
.divMainVideo .duration {
position: absolute;
background: rgba(0, 0, 0, 0.6)!important;
padding: 3px;
color: #FFF;
bottom: 5px;
right: 25px;
font-size: 0.9em;
border-radius: 5px;
}
.autoplay span span {
margin: 0 5px;
font-weight: bold;
}
img.rotate90,
img.rotate-270 {
transform: rotate(90deg);
-ms-transform: rotate(90deg);
/* IE 9 */
-moz-transform: rotate(90deg);
/* Firefox */
-webkit-transform: rotate(90deg);
/* Safari and Chrome */
-o-transform: rotate(90deg);
/* Opera */
}
img.rotate180,
img.rotate-180 {
transform: rotate(180deg);
-ms-transform: rotate(180deg);
/* IE 9 */
-moz-transform: rotate(180deg);
/* Firefox */
-webkit-transform: rotate(180deg);
/* Safari and Chrome */
-o-transform: rotate(180deg);
/* Opera */
}
img.rotate270,
img.rotate-90 {
transform: rotate(270deg);
-ms-transform: rotate(270deg);
/* IE 9 */
-moz-transform: rotate(270deg);
/* Firefox */
-webkit-transform: rotate(270deg);
/* Safari and Chrome */
-o-transform: rotate(270deg);
/* Opera */
}
.notificationButton button{
display: none;
border-radius: 4px 0 0 4px !important;
}
.notificationButton button.subscribe{
border-radius: 4px !important;
}
.notificationButton button.notifyBtn{
border-radius: 0 4px 4px 0 !important;
}
.notificationButton.subscribed .doNotify,
.notificationButton .subscribe{
display: inline-block;
}
.notificationButton.subscribed .subscribed,
.notificationButton.subscribed.notify .doNotNotify{
display: inline-block;
}
.notificationButton.subscribed.notify .doNotify,
.notificationButton.subscribed .subscribe{
display: none;
}
.profileBg {
padding: 20px;
height: 27vw;
min-height: 90px;
max-height: 300px;
margin: 10px 0;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
#sidebar {
width: 300px;
position: absolute;
top: 0;
height: 100vh;
margin-top: 50px;
}
#sideBarContainer {
overflow: hidden;
position: absolute;
left: 0;
padding: 10px;
height: 100%;
width: 100%;
overflow-y: auto;
padding-right: 10px;
}
#sideBarContainer ul {
margin-bottom: 150px;
}
.navbar-brand {
padding: 0px ; /* firefox bug fix */
margin-left: 10px;
height: auto;
}
.navbar-brand>img {
width: 178px;
}
.list-inline {
display: flex;
justify-content: left;
}
/** header **/
nav ul.items-container {
display: flex;
justify-content: flex-end;
margin: 0px;
padding: 0px;
}
nav ul.items-container .tooltip{
min-width: 150px;
}
nav ul.items-container,
nav ul.items-container li {
list-style: none;
}
nav ul.items-container li:first-child {
flex: 1;
display: flex;
}
nav ul.items-container li:first-child ul.left-side {
display: flex;
align-items: center
}
ul.left-side {
height: 50px;
}
nav ul.items-container li:last-child {
margin-right: 20px;
}
nav ul.items-container li ul.right-menus {
display: flex;
flex-direction: row;
}
nav ul.items-container li ul.right-menus li {
margin-left: 5px;
}
nav ul.items-container li ul.right-menus li li {
margin-left: 0;
}
.navbar-left{
padding-right: 0;
}
/** header **/
.navbar .container {
padding: 0 2px;
align-items: center;
}
.list-inline > li {
display: flex;
}
.navbar .list-inline {
margin: 0;
display: flex;
align-items: center;
}
/* Play List */
.playlistList {
height: 80vh;
overflow: hidden;
}
.playlistList .nav {
overflow-y: auto;
position: absolute;
top: 0;
height: 100%;
overflow-x: hidden;
}
.playlist-nav .navbar {
padding: 0;
max-height: none;
margin: 0;
}
.playlist-nav .navbar ul {
float: none;
display: block;
}
.playlist-nav .navbar li {
float: none;
display: block;
}
.playlist-nav .navbar li a {
padding-top: 12px;
padding-bottom: 12px;
}
/* End Play List */
#videoContainer {
overflow: visible;
background: black;
}
/** video manager progress bar */
.progress {
position: relative;
height: 25px;
}
.progress > .progress-type {
position: absolute;
left: 0px;
font-weight: 800;
padding: 3px 30px 2px 10px;
color: rgb(255, 255, 255);
background-color: rgba(25, 25, 25, 0.2);
}
.progress > .progress-completed {
position: absolute;
right: 0px;
font-weight: 800;
padding: 3px 10px 2px;
}
.loader {
border: 5px solid #f3f3f3; /* Light grey */
border-top: 5px solid #3498db; /* Blue */
border-radius: 50%;
width: 30px;
height: 30px;
animation: spin 2s linear infinite;
}
.zoom {
-webkit-transition: all 0.35s ease-in-out;
-moz-transition: all 0.35s ease-in-out;
transition: all 0.35s ease-in-out;
cursor: -webkit-zoom-in;
cursor: -moz-zoom-in;
cursor: zoom-in;
}
.zoom:hover,
.zoom:active,
.zoom:focus {
/**adjust scale to desired size,
add browser prefixes**/
-ms-transform: scale(2.5);
-moz-transform: scale(2.5);
-webkit-transform: scale(2.5);
-o-transform: scale(2.5);
transform: scale(2.5);
position:relative;
z-index:100;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.navbar-collapse.in {
overflow-y: visible; /* Bootstrap default is "auto" */
}
.transparent{
opacity: 0.3;
filter: alpha(opacity=30); /* For IE8 and earlier */
}
.principalContainer{
position: relative;
}
.vjs-button-fa-size{
font-size: 14px !important;
}
a.h6 h2, a.h6 h1{
font-weight: bold;
}
img.blur{
filter: blur(5px);
}
.navbar-default .navbar-default, .navbar-inverse .navbar-default {
border-width: 0;
}
/*Show play button only when paused*/
.vjs-paused .vjs-big-play-button,
.vjs-paused.vjs-has-started .vjs-big-play-button {
display: block;
}
.rightProfile li a{
text-align: left;
}
#mainNavBar ul.items-container li:last-child {
margin-right: 0 !important;
}
.ima-controls-div{
pointer-events: none !important;
}
.ima-controls-div div{
pointer-events: auto !important;
}
.btn-circle {
width: 32px;
height: 32px;
text-align: center;
padding: 6px 0;
font-size: 12px;
line-height: 1.42;
border-radius: 15px;
}
.btn-circle:hover, .btn-group.open .btn-circle {
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05) inset, 0px 0px 8px rgba(82, 168, 236, 0.6);
}
::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 4px;
background-color: rgba(100,100,100,0.01);
}
::-webkit-scrollbar
{
width: 8px;
height: 8px;
background-color: rgba(100,100,100,0.01);
overflow: hidden;
}
::-webkit-scrollbar-thumb
{
border-radius: 4px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: rgba(100,100,100,0.05);
}
.videoAdUiSkipContainer {
z-index: 99 !important;
}
@media (min-width: 1200px) and (max-width: 1600px) {
.hidden-mdx {
display: none !important;
}
}
.swal-noform .form-group{
display: none;
}
#modeYoutubeBottomContentDetails{
overflow: hidden;
}
.cursorPointer:hover {
cursor: pointer;
text-decoration: underline;
}
.btn-dark {
color: #CCC;
background-color: #111;
border-color: #000;
}
.btn-dark:hover {
color: #FFF;
background-color: #000;
border-color: #000;
}
.opacityBtn{
opacity: 0.2;
}
.btn-group.justified, .btn-group-justified {
display: flex;
}
.btn-group-justified .btn, .justified .btn {
flex: 1
}
.addWidthOnMenuOpen {
transition: width 0.3s;
}
@media (min-width: 1200px){
body.youtube .lessMarginLeftOnMenuOpen{
margin-left: -200px;
}
body.youtube .col-lg-4.addWidthOnMenuOpen {
margin-left: -150px;
width: calc(33.3333333333% + 300px);
}
body.youtube .col-lg-10.addWidthOnMenuOpen {
width: 100%;
}
body.youtube .col-lg-offset-1.addWidthOnMenuOpen {
margin-left: 0;
}
}
.liveVideo .thumbsImage img{
width: 100%;
}
#mainVideo_ima-ad-container,
#mainVideo_ima-ad-container:after,
#mainVideo_ima-ad-container:before {
font-size: 14px !important;
line-height: 1 !important;
}
#mainVideo_ima-ad-container .ima-play-pause-div,
#mainVideo_ima-ad-container .ima-mute-div,
#mainVideo_ima-ad-container .ima-slider-div,
#mainVideo_ima-ad-container .ima-fullscreen-div {
font-size: 1.5em !important;
line-height: 2 !important;
}
#mainVideo_ima-controls-div{
max-height: 3.7em;
}
.vjs-menu-item, .vjs-menu-title{
margin: 0 !important;
padding: 0 !important;
border-radius: 0 !important;
}
.vjs-menu li {
text-transform: none;
}
#navBarFlag li{
cursor: pointer;
}
.videoListItem{
overflow: hidden;
font-size: smaller;
}
.extraVideos:empty{
display: none;
}
.list-group-horizontal .list-group-item{
display: inline-block;
}
.list-group-horizontal .list-group-item{
margin-bottom: 0;
margin-left:-4px;
margin-right: 0;
border-right-width: 0;
}
.list-group-horizontal .list-group-item:first-child{
border-top-right-radius:0;
border-bottom-left-radius:4px;
}
.list-group-horizontal .list-group-item:last-child{
border-top-right-radius:4px;
border-bottom-left-radius:0;
border-right-width: 1px;
}
#modeYoutubeTop, #mvideo, #videoContainer{
position: relative;
}
#closeBtnFull{
opacity: 0.25; filter: alpha(opacity=25);
-webkit-transition: opacity 0.25s ease-in-out;
-moz-transition: opacity 0.25s ease-in-out;
-ms-transition: opacity 0.25s ease-in-out;
-o-transition: opacity 0.25s ease-in-out;
transition: opacity 0.25s ease-in-out;
padding: 12px;
margin: 5px;
cursor: pointer;
}
#divTopBar:hover #closeBtnFull{
opacity: 1; filter: alpha(opacity=100);
}
#closeBtnFull i{
text-shadow: 1px 1px rgba(255,255,255,0.7);
}
li.dropdown-submenu > ul > li > a{
width: 100%;
}
.socket_not_loading{
display: none;
}
.socket_connected .socket_loading_icon, .socket_disconnected .socket_loading_icon{
display: none;
}
.socket_connected .socket_connected_icon{
display: block;
}
.socket_disconnected .socket_disconnected_icon{
display: block;
}
.socket_icon{
font-weight: bold;
}
.socket_connected{
color: #FFF;
animation: socketGlow 1s infinite alternate;
}
.socket_connected_icon{
color: #FFF;
animation: socketGlow 1s infinite alternate;
}
.socket_loading_icon{
color: #FFF;
animation: socketGlowBlue 1s infinite alternate;
}
@keyframes socketGlow {
from {
color: #DFD;
text-shadow:
0 0 1px #050,
0 0 2px #070,
0 0 3px #670,
0 0 4px #670;
}
to {
color: #FFF;
text-shadow:
0 0 2px #020,
0 0 5px #090,
0 0 10px #0F0,
0 0 15px #BF0,
0 0 20px #B6FF00;
}
}
@keyframes socketGlowBlue {
from {
color: #DDF;
text-shadow:
0 0 1px #005,
0 0 2px #007,
0 0 3px #067,
0 0 4px #067;
}
to {
color: #FFF;
text-shadow:
0 0 2px #002,
0 0 5px #009,
0 0 10px #00F,
0 0 15px #0BF,
0 0 20px #00B6FF;
}
}
.glowBox{
animation: glowBox 1s infinite alternate;
}
@keyframes glowBox {
from {
color: #DFD;
box-shadow:
0 0 1px #050,
0 0 2px #070,
0 0 3px #670,
0 0 4px #670;
}
to {
color: #FFF;
box-shadow:
0 0 2px #020,
0 0 5px #090,
0 0 10px #0F0,
0 0 15px #BF0,
0 0 20px #B6FF00;
}
}
#extraVideos .liveVideo{
min-height: 170px;
}
#extraVideos .liveVideo .thumbsImage img{
min-height: 90px;
}
.swal-modal.swal-modal-iframe {
width: calc(100% - 150px);
height: calc(100% - 150px);
}
.swal-modal.swal-modal-iframe .swal-content,
.swal-modal.swal-modal-iframe-small .swal-content,
.swal-modal.swal-modal-iframe-large .swal-content{
width: 100%;
height: calc(100% - 50px);
}
.swal-modal.swal-modal-iframe iframe,
.swal-modal.swal-modal-iframe-small iframe,
.swal-modal.swal-modal-iframe-large iframe{
width: 100%;
height: 100%;
}
.swal-modal-iframe-small {
width: 800px;
height: 600px;
max-width: 100%;
max-height: 100%;
}
.swal-modal-iframe-large {
width: calc(100% - 50px);
height: calc(100% - 50px);
max-width: 100%;
max-height: 100%;
}
.swal-modal.swal-modal-iframe-large .swal-content{
height: 100%;
padding: 0;
margin: 0;
}
.getChangeVideoStatusButton button{
display: none;
}
.getChangeVideoStatusButton.status_i button.getChangeVideoStatusButton_i{
display: block;
}
.getChangeVideoStatusButton.status_a button.getChangeVideoStatusButton_a{
display: block;
}
.getChangeVideoStatusButton.status_u button.getChangeVideoStatusButton_u{
display: block;
}
#pleaseWaitDialog{
z-index: 2001;
background-color: #00000077;
}
#pleaseWaitDialog>div, #pleaseWaitDialog .progress, #pleaseWaitDialog h2{
margin: 0;
position: absolute;
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
#pleaseWaitDialog>div{
margin: -65px 0 0 -40px;
left: 50%;
}
#pleaseWaitDialog .progress, #pleaseWaitDialog h2{
margin: 0 0 0 -200px;
width: 400px;
left: 50%;
}
#pleaseWaitDialog .progress{
background-color: #FFFFFF77;
}
#pleaseWaitDialog h2{
margin-top: 40px;
text-shadow: #000 1px 0 5px;
color: #FFF;
font-weight: bold;
}
@media (min-width: 1200px) {
.playerFullHeight, .playerFullHeight video, .playerFullHeight audio, .playerFullHeight iframe, .playerFullHeight #mainVideo, .playerFullHeight #main-video{
height: calc(100vh - 60px);
width: 100%;
padding: 0;
}
.playerFullHeight .floatVideo video, .playerFullHeight .floatVideo audio, .playerFullHeight .floatVideo iframe, .playerFullHeight .floatVideo #mainVideo, .playerFullHeight .floatVideo #main-video{
height: 300px;
}
.playerFullHeight .mainVideo{
padding: 0;
}
}
.modal {
overflow: auto !important;
}
.nav-tabs-horizontal{
display: -webkit-box;
display: -webkit-inline-box;
}
.scrtabs-tab-container{
margin: 5px 0;
}
.scrtabs-tab-scroll-arrow{
border-top: 1px solid #ddd;
}
.videoCreator{
display: -webkit-inline-box;
}
.videoCreator .zoom{
width: 40px;
height: 40px;
}
.videoCreatorSmall .zoom{
width: 20px;
height: 20px;
}
.videoCreator>img,
.videoCreator>a,
.videoCreator>div{
margin: 2px 10px 2px 2px;
}
.videoCreator>img, .videoCreatorSmall img{
float: left;
}
.videoCreatorSmall img{
margin-right: 5px;
}
a:hover{
text-decoration: none;
}
.descriptionArea .descriptionAreaPreContent{
max-height: 200px;
overflow: hidden;
transition: max-height 0.25s ease-out;
overflow: hidden;
}
.descriptionAreaPreContent{
margin-bottom: 10px;
}
.descriptionArea.expanded .descriptionAreaPreContent{
max-height: 1500px;
overflow: auto;
transition: max-height 0.25s ease-in;
}
.descriptionAreaShowMoreBtn{
margin-top: -10px;
}
.descriptionArea .showMore{
display: block;
}
.descriptionArea .showLess{
display: none;
}
.descriptionArea.expanded .showMore{
display: none;
}
.descriptionArea.expanded .showLess{
display: block;
}
.infoDetails{
display: flex;
margin: 4px 0;
}
\ No newline at end of file

File Metadata

Mime Type
text/x-diff
Expires
Wed, Apr 22, 15:00 (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1862822
Default Alt Text
(108 KB)

Event Timeline