getDataObject(); // preload image $js = ""; $css = ''; if (!empty($obj->playVideoOnFullscreenOnIframe)) { if (canFullScreen()) { $css .= ''; $css .= ''; $css .= ''; } $js .= ''; } else if (!empty($obj->playVideoOnFullscreen) && canFullScreen()) { $css .= ''; } if (!empty($obj->playVideoOnFullscreen)) { $css .= ''; } return $js . $css; } public function getEmptyDataObject() { global $global; $obj = new stdClass(); $obj->hidePrivateVideos = false; $obj->BigVideo = true; $obj->useSuggestedVideosAsCarouselInBigVideo = true; $obj->GifOnBigVideo = true; $obj->Description = false; $obj->CategoryDescription = false; $obj->Suggested = true; $obj->SuggestedCustomTitle = ""; $obj->SuggestedRowCount = 12; $obj->SuggestedOrder = 1; $obj->Trending = true; $obj->TrendingCustomTitle = ""; $obj->TrendingRowCount = 12; $obj->TrendingOrder = 2; $obj->DateAdded = true; $obj->DateAddedCustomTitle = ""; $obj->DateAddedRowCount = 12; $obj->DateAddedOrder = 3; $obj->MostWatched = true; $obj->MostWatchedCustomTitle = ""; $obj->MostWatchedRowCount = 12; $obj->MostWatchedOrder = 4; $obj->MostPopular = true; $obj->MostPopularCustomTitle = ""; $obj->MostPopularRowCount = 12; $obj->MostPopularOrder = 5; $obj->SortByName = false; $obj->SortByNameCustomTitle = ""; $obj->SortByNameRowCount = 12; $obj->SortByNameOrder = 6; $obj->SubscribedChannels = true; $obj->SubscribedChannelsRowCount = 12; $obj->SubscribedChannelsOrder = 7; $obj->Categories = true; $obj->CategoriesCustomTitle = ""; $obj->CategoriesRowCount = 12; $obj->CategoriesOrder = 7; $obj->CategoriesShowOnlySuggested = false; $obj->sortReverseable = false; $obj->SubCategorys = false; $obj->showTags = true; $obj->showCategoryTag = true; $obj->showCategoryLiveRow = false; $obj->searchOnChannels = true; $obj->searchOnChannelsRowCount = 12; $obj->playVideoOnFullscreen = false; $obj->playVideoOnFullscreenOnIframe = false; $obj->playVideoOnBrowserFullscreen = false; $obj->filterUserChannel = false; $obj->screenColsLarge = 6; $obj->screenColsMedium = 3; $obj->screenColsSmall = 2; $obj->screenColsXSmall = 1; $obj->allowSwitchTheme = true; self::addDataObjectHelper('allowSwitchTheme', 'Show Switch theme button'); $themes = getThemes(); foreach ($themes as $value) { $name = ucfirst($value); eval('$obj->SwitchThemeShow'.$name.' = true;'); self::addDataObjectHelper('SwitchThemeShow'.$name, 'Show '.$name.' Option', 'Uncheck this button to not show the '.$name.' in your themes list'); eval('$obj->SwitchThemeLabel'.$name.' = "'.$name.'";'); self::addDataObjectHelper('SwitchThemeLabel'.$name, $name.' Theme Label', 'Change the label name to the theme '.$name.' in your themes list'); } return $obj; } public function navBarProfileButtons() { global $global; $navBarButtons = 0; $obj = $this->getDataObject(); if ($obj->allowSwitchTheme) { include $global['systemRootPath'] . 'plugin/Gallery/view/themeSwitcher.php'; } } public function navBarButtons() { global $global; $navBarButtons = 1; $obj = $this->getDataObject(); if (!empty($obj->allowSwitchTheme)) { include $global['systemRootPath'] . 'plugin/Gallery/view/themeSwitcher.php'; } } public function getHelp() { if (User::isAdmin()) { return "
" . __('Option-name') . " | " . __('Default') . " | " . __('Description') . " |
---|---|---|
BigVideo | " . __('checked') . " | " . __('Create a big preview with a direct description on top') . " |
DateAdded,MostPopular,MostWatched,SortByName | " . __('checked') . "," . __('checked') . "," . __('checked') . "," . __('unchecked') . " | " . __('Metacategories') . " |
SubCategorys | " . __('unchecked') . " | " . __('Enable a view for subcategories on top') . " |
Description | " . __('unchecked') . " | " . __('Enable a small button for show the description') . " |