@@ -70,21 +70,53 @@ saveRequestVars();
include $global['systemRootPath'] . 'plugin/Gallery/view/mainAreaCategory.php';
} else {
+ //var_dump($sections);exit;
foreach ($sections as $value) {
if (empty($value['active'])) {
continue;
}
$countSections++;
- if(preg_match('/Channel_([0-9]+)_/', $value['name'], $matches)){
+ if (preg_match('/Channel_([0-9]+)_/', $value['name'], $matches)) {
$users_id = intval($matches[1]);
User::getChannelPanel($users_id);
} else
if ($value['name'] == 'Shorts' && AVideoPlugin::isEnabledByName('Shorts')) {
- include $global['systemRootPath'].'plugin/Shorts/row.php';
+ include $global['systemRootPath'] . 'plugin/Shorts/row.php';
} else
if ($value['name'] == 'Suggested') {
createGallery(!empty($obj->SuggestedCustomTitle) ? $obj->SuggestedCustomTitle : __("Suggested"), 'suggested', $obj->SuggestedRowCount, 'SuggestedOrder', "", "", $orderString, "ASC", !$obj->hidePrivateVideos, "fas fa-star");
- } else
+ } else
+ if($value['name'] == 'PlayLists'){
+ $objPl = AVideoPlugin::getDataObject('PlayLists');
+ $plRows = PlayList::getAllToShowOnFirstPage();
+ //var_dump(count($plRows));exit;
+ if (!empty($plRows)) {
+ $rowCount = getRowCount();
+ setRowCount(12);
+ foreach ($plRows as $pl) {
+ ?>
+
+
+ TrendingCustomTitle) ? $obj->TrendingCustomTitle : __("Trending"), 'trending', $obj->TrendingRowCount, 'TrendingOrder', "zyx", "abc", $orderString, "ASC", !$obj->hidePrivateVideos, "fas fa-chart-line");
} else
@@ -130,7 +162,7 @@ saveRequestVars();
}
}
} else {
- echo '';
+ echo '';
include $global['systemRootPath'] . 'plugin/Gallery/view/modeGalleryCategoryLive.php';
$ob = _ob_get_clean();
_ob_start();
@@ -158,10 +190,10 @@ saveRequestVars();
.
-
diff --git a/plugin/PlayLists/View/getPlaylistButtons.php b/plugin/PlayLists/View/getPlaylistButtons.php
index 9ae764e2ee..1bf6355efa 100644
--- a/plugin/PlayLists/View/getPlaylistButtons.php
+++ b/plugin/PlayLists/View/getPlaylistButtons.php
@@ -21,6 +21,8 @@ if (empty($isASerie)) {
} else {
$currentSerieVideos_id = $isASerie['id'];
}
+
+getSharePopupButton(0, "{$global['webSiteRootURL']}viewProgram/{$program['id']}/".urlencode($program['name']), $program['name'], 'btn-xs');
?>