diff --git a/plugin/Gallery/view/mainArea.php b/plugin/Gallery/view/mainArea.php index eb67a9af9..50ec1cc02 100644 --- a/plugin/Gallery/view/mainArea.php +++ b/plugin/Gallery/view/mainArea.php @@ -1,219 +1,223 @@
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'; } ?>
Suggested) { $countSections++; createGallery(!empty($obj->SuggestedCustomTitle) ? $obj->SuggestedCustomTitle : __("Suggested"), 'suggested', $obj->SuggestedRowCount, 'SuggestedOrder', "", "", $orderString, "ASC", !$obj->hidePrivateVideos, "fas fa-star"); } if ($obj->Trending) { $countSections++; createGallery(!empty($obj->TrendingCustomTitle) ? $obj->TrendingCustomTitle : __("Trending"), 'trending', $obj->TrendingRowCount, 'TrendingOrder', "zyx", "abc", $orderString, "ASC", !$obj->hidePrivateVideos, "fas fa-chart-line"); } if ($obj->SortByName) { $countSections++; createGallery(!empty($obj->SortByNameCustomTitle) ? $obj->SortByNameCustomTitle : __("Sort by name"), 'title', $obj->SortByNameRowCount, 'sortByNameOrder', "zyx", "abc", $orderString, "ASC", !$obj->hidePrivateVideos, "fas fa-font"); } if ($obj->DateAdded && empty($_GET['catName'])) { $countSections++; createGallery(!empty($obj->DateAddedCustomTitle) ? $obj->DateAddedCustomTitle : __("Date added"), 'created', $obj->DateAddedRowCount, 'dateAddedOrder', __("newest"), __("oldest"), $orderString, "DESC", !$obj->hidePrivateVideos, "far fa-calendar-alt"); } if ($obj->MostWatched) { $countSections++; createGallery(!empty($obj->MostWatchedCustomTitle) ? $obj->MostWatchedCustomTitle : __("Most watched"), 'views_count', $obj->MostWatchedRowCount, 'mostWatchedOrder', __("Most"), __("Fewest"), $orderString, "DESC", !$obj->hidePrivateVideos, "far fa-eye"); } if ($obj->MostPopular) { $countSections++; createGallery(!empty($obj->MostPopularCustomTitle) ? $obj->MostPopularCustomTitle : __("Most popular"), 'likes', $obj->MostPopularRowCount, 'mostPopularOrder', __("Most"), __("Fewest"), $orderString, "DESC", !$obj->hidePrivateVideos, "fas fa-fire"); } if ($obj->SubscribedChannels && User::isLogged() && empty($_GET['showOnly'])) { $channels = Subscribe::getSubscribedChannels(User::getId()); foreach ($channels as $value) { $_POST['disableAddTo'] = 0; createChannelItem($value['users_id'], $value['photoURL'], $value['identification'], $obj->SubscribedChannelsRowCount); } } if ($obj->Categories && empty($_GET['catName']) && empty($_GET['showOnly'])) { ?>

CategoriesRowCount * 3; $videos = Video::getAllVideos("viewableNotUnlisted", false, !$obj->hidePrivateVideos); if (!empty($videos)) { ?>

!

.
\ No newline at end of file