diff --git a/plugin/YouTube/YouTube.php b/plugin/YouTube/YouTube.php index 3d57c22a7..edb994b19 100644 --- a/plugin/YouTube/YouTube.php +++ b/plugin/YouTube/YouTube.php @@ -1,122 +1,122 @@ getDataObject(); // preload image $js = ""; $css = ''; if(!empty($obj->playVideoOnFullscreen) && !empty($_GET['videoName'])){ - $css .= ''; + $css .= ''; } if(!empty($obj->playVideoOnFullscreen)){ $css .= ''; } $sidebarStyle = ($this->menuIsOpen())?"/**/":"display: none;"; return $js.$css; } public function getEmptyDataObject() { global $global; $obj = new stdClass(); $obj->hidePrivateVideos = false; $obj->BigVideo = true; $obj->Description = false; $obj->CategoryDescription = false; $obj->Trending = true; $obj->TrendingCustomTitle = ""; $obj->TrendingRowCount = 12; $obj->DateAdded = true; $obj->DateAddedCustomTitle = ""; $obj->DateAddedRowCount = 12; $obj->MostWatched = true; $obj->MostWatchedCustomTitle = ""; $obj->MostWatchedRowCount = 12; $obj->MostPopular = true; $obj->MostPopularCustomTitle = ""; $obj->MostPopularRowCount = 12; $obj->SortByName = false; $obj->SortByNameCustomTitle = ""; $obj->SortByNameRowCount = 12; $obj->SubscribedChannels = true; $obj->SubscribedChannelsRowCount = 12; $obj->Categories = false; $obj->CategoriesRowCount = 12; $obj->sortReverseable = false; $obj->SubCategorys = false; $obj->showTags = true; $obj->searchOnChannels = true; $obj->searchOnChannelsRowCount = 12; $obj->playVideoOnFullscreen = false; $obj->playVideoOnBrowserFullscreen = false; $obj->filterUserChannel = false; return $obj; } public function getHelp(){ if(User::isAdmin()){ return "

YouTube options (admin)

Option-nameDefaultDescription
BigVideocheckedCreate a big preview with a direct description on top
DateAdded,MostPopular,MostWatched,SortByNamechecked,checked,checked,uncheckedMetacategories
SubCategorysunchecked Enable a view for subcategories on top
DescriptionuncheckedEnable a small button for show the description
"; } return ""; } public function getFirstPage(){ global $global; return $global['systemRootPath'].'plugin/YouTube/view/modeYouTube.php'; } public function getTags() { return array('free', 'firstPage', 'YouTube'); } public function getFooterCode() { $obj = $this->getDataObject(); global $global; $js = ''; if(!empty($obj->playVideoOnFullscreen)){ - $js = ''; + $js = ''; } if(!empty($obj->playVideoOnBrowserFullscreen)){ $js = ''; } return $js; } public function navBar() { global $global,$includeDefaultNavBar; //include $global['systemRootPath'] . 'plugin/YouTube/view/navbar.php'; //$includeDefaultNavBar = false; } public function getStart() { global $global; $global['bodyClass'] = ($this->menuIsOpen())?"youtube":""; } private function menuIsOpen(){ return (empty($_COOKIE['youTubeMenuIsOpened']) || $_COOKIE['youTubeMenuIsOpened']==="false")?false:true; } }