diff --git a/objects/plugin.php b/objects/plugin.php index f488e2b968..af51c1b522 100644 --- a/objects/plugin.php +++ b/objects/plugin.php @@ -436,3 +436,21 @@ class Plugin extends ObjectYPT { } } + +class PluginTags { + static $RECOMMENDED = array('success', 'Recommended', '', 'RECOMMENDED'); + static $SECURITY = array('warning', 'Security', '', 'SECURITY'); + static $LIVE = array('primary', 'Live', '', 'LIVE'); + static $MONETIZATION = array('primary', 'Monetization', '', 'MONETIZATION'); + static $ADS = array('primary', 'ADS', '', 'ADS'); + static $STORAGE = array('primary', 'Storage', '', 'STORAGE'); + static $GALLERY = array('primary', 'Gallery', '', 'GALLERY'); + static $NETFLIX = array('primary', 'Netflix', '', 'NETFLIX'); + static $LAYOUT = array('primary', 'Layout', '', 'LAYOUT'); + static $LOGIN = array('primary', 'Login', '', 'LOGIN'); + static $MOBILE = array('primary', 'Mobile', '', 'MOBILE'); + static $PLAYER = array('primary', 'Player', '', 'PLAYER'); + static $FREE = array('info', 'Free', '', 'FREE'); + static $PREMIUM = array('info', 'Premium', '', 'PREMIUM'); + static $DEPRECATED = array('danger', 'Deprecated', '', 'DEPRECATED'); +} \ No newline at end of file diff --git a/plugin/AD_Overlay/AD_Overlay.php b/plugin/AD_Overlay/AD_Overlay.php index 24ecfb23a0..474bcebf9c 100644 --- a/plugin/AD_Overlay/AD_Overlay.php +++ b/plugin/AD_Overlay/AD_Overlay.php @@ -5,6 +5,16 @@ require_once $global['systemRootPath'] . 'plugin/AD_Overlay/Objects/AD_Overlay_C class AD_Overlay extends PluginAbstract { + + public function getTags() { + return array( + PluginTags::$MONETIZATION, + PluginTags::$ADS, + PluginTags::$FREE, + PluginTags::$PLAYER, + ); + } + public function getDescription() { $txt = "Display simple overlays - similar to YouTube's \"Annotations\" feature in appearance - during video playback."; $help = "
Help"; @@ -41,7 +51,7 @@ class AD_Overlay extends PluginAbstract { '; $obj->adText = $o; - + $o = new stdClass(); $o->type = "textarea"; $o->value = ' @@ -82,10 +92,6 @@ class AD_Overlay extends PluginAbstract { return $obj; } - public function getTags() { - return array('free'); - } - public function getHeadCode() { if (empty($_GET['videoName']) && empty($_GET['u']) && empty($_GET['link'])) { return false; @@ -120,12 +126,12 @@ class AD_Overlay extends PluginAbstract { } $obj = $this->getDataObject(); - if(isMobile()){ + if (isMobile()) { $adText = $obj->mobileAdText->value; - }else{ + } else { $adText = $obj->adText->value; } - + if ($obj->allowUserAds) { if (!empty($video['id'])) { @@ -155,7 +161,7 @@ class AD_Overlay extends PluginAbstract { . ''; $js .= ''; - + $onPlayerReady = "setTimeout(function(){ \$('#cbb').click(function() { \$('.vjs-overlay').fadeOut(); @@ -178,8 +184,8 @@ class AD_Overlay extends PluginAbstract { align: '{$obj->align}' }] });"; - $js .= ''; - + $js .= ''; + return $js; } diff --git a/plugin/AD_Server/AD_Server.php b/plugin/AD_Server/AD_Server.php index 7e452ee1ee..d721931d3b 100644 --- a/plugin/AD_Server/AD_Server.php +++ b/plugin/AD_Server/AD_Server.php @@ -11,6 +11,14 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; require_once $global['systemRootPath'] . 'plugin/AD_Server/Objects/VastCampaigns.php'; class AD_Server extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$MONETIZATION, + PluginTags::$ADS, + PluginTags::$FREE, + PluginTags::$PLAYER, + ); + } public function getDescription() { return "VAST Ad Server
Help"; diff --git a/plugin/AD_Server_Location/AD_Server_Location.php b/plugin/AD_Server_Location/AD_Server_Location.php index 9bafbd39ff..6384ed7338 100644 --- a/plugin/AD_Server_Location/AD_Server_Location.php +++ b/plugin/AD_Server_Location/AD_Server_Location.php @@ -12,6 +12,15 @@ require_once $global['systemRootPath'] . 'plugin/User_Location/Objects/IP2Locati class AD_Server_Location extends PluginAbstract { + + public function getTags() { + return array( + PluginTags::$MONETIZATION, + PluginTags::$ADS, + PluginTags::$FREE + ); + } + public function getDescription() { $desc = "Enable select location to display each ad
"; diff --git a/plugin/ADs/ADs.php b/plugin/ADs/ADs.php index e2033f86ba..66102bc30a 100644 --- a/plugin/ADs/ADs.php +++ b/plugin/ADs/ADs.php @@ -3,7 +3,13 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class ADs extends PluginAbstract { - + public function getTags() { + return array( + PluginTags::$MONETIZATION, + PluginTags::$ADS, + PluginTags::$FREE + ); + } public function getDescription() { $txt = "Handle the ads system, like Adsense or similar"; //$help = "
Help"; @@ -140,8 +146,4 @@ class ADs extends PluginAbstract { } return ""; } - - public function getTags() { - return array('free'); - } } \ No newline at end of file diff --git a/plugin/API/API.php b/plugin/API/API.php index 0b87944ffd..657737a9fa 100644 --- a/plugin/API/API.php +++ b/plugin/API/API.php @@ -5,6 +5,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class API extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + PluginTags::$MOBILE + ); + } public function getDescription() { return "Handle APIs for third party Applications"; } diff --git a/plugin/AVideoPlugin.php b/plugin/AVideoPlugin.php index b70bcc3c6f..03a0721883 100644 --- a/plugin/AVideoPlugin.php +++ b/plugin/AVideoPlugin.php @@ -240,28 +240,7 @@ class AVideoPlugin { return $str; } - private static function firstPage() { - $name = "ThemeSwitcherMenu"; - if (Plugin::isEnabledByName($name)) { - $p = static::loadPlugin($name); - if (is_object($p)) { - $page = $p->getPage(); - if (!empty($page)) { - $p2 = static::loadPlugin($page); - - return $p2->getFirstPage(); - } - } - } - return false; - } - public static function getFirstPage() { - // if the menu set a different defaul page - $fp = static::firstPage(); - if (!empty($fp)) { - return $fp; - } return static::getEnabledFirstPage(); } diff --git a/plugin/AdsForJesus/AdsForJesus.php b/plugin/AdsForJesus/AdsForJesus.php index 0745221e9d..d372b93eb8 100644 --- a/plugin/AdsForJesus/AdsForJesus.php +++ b/plugin/AdsForJesus/AdsForJesus.php @@ -3,6 +3,13 @@ global $global; require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class AdsForJesus extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$ADS, + PluginTags::$FREE, + PluginTags::$PLAYER, + ); + } public function getDescription() { $txt = " We will provide a simple VMAP Ad link for free, these ads will be placed in your videos.
" diff --git a/plugin/Articles/Articles.php b/plugin/Articles/Articles.php index b38fdba44c..987ea7e6ce 100644 --- a/plugin/Articles/Articles.php +++ b/plugin/Articles/Articles.php @@ -3,6 +3,11 @@ global $global; require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class Articles extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE + ); + } public function getDescription() { global $global; diff --git a/plugin/Audit/Audit.php b/plugin/Audit/Audit.php index 0fe44e0850..6d318aa4fb 100644 --- a/plugin/Audit/Audit.php +++ b/plugin/Audit/Audit.php @@ -5,6 +5,13 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; require_once $global['systemRootPath'] . 'plugin/Audit/Objects/AuditTable.php'; class Audit extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$RECOMMENDED, + PluginTags::$FREE, + PluginTags::$SECURITY + ); + } public function getDescription() { return "Save all insert, update and delete queries for audit"; diff --git a/plugin/BulkEmbed/BulkEmbed.php b/plugin/BulkEmbed/BulkEmbed.php index 1151406598..f96637a6b0 100644 --- a/plugin/BulkEmbed/BulkEmbed.php +++ b/plugin/BulkEmbed/BulkEmbed.php @@ -3,6 +3,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class BulkEmbed extends PluginAbstract { + + public function getTags() { + return array( + PluginTags::$FREE, + ); + } public function getDescription() { global $global; @@ -32,12 +38,7 @@ class BulkEmbed extends PluginAbstract { $obj->API_KEY = "AIzaSyCIqxE86BawU33Um2HEGtX4PcrUWeCh_6o"; $obj->onlyAdminCanBulkEmbed = true; return $obj; - } - - public function getTags() { - return array('free', 'google'); - } - + } public function getPluginMenu() { global $global; diff --git a/plugin/Cache/Cache.php b/plugin/Cache/Cache.php index 670098bb79..d85a9b43f7 100644 --- a/plugin/Cache/Cache.php +++ b/plugin/Cache/Cache.php @@ -3,6 +3,13 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class Cache extends PluginAbstract { + + public function getTags() { + return array( + PluginTags::$RECOMMENDED, + PluginTags::$FREE + ); + } public function getDescription() { $txt = "AVideo application accelerator to cache pages.
Your website has 10,000 visitors who are online, and your dynamic page has to send 10,000 times the same queries to database on every page load. With this plugin, your page only sends 1 query to your DB, and uses the cache to serve the 9,999 other visitors."; @@ -53,10 +60,6 @@ class Cache extends PluginAbstract { return $obj->cacheDir . $firstPage; } - public function getTags() { - return array('free', 'cache', 'speed up'); - } - private function getFileName() { if (empty($_SERVER['REQUEST_URI'])) { $_SERVER['REQUEST_URI'] = ""; diff --git a/plugin/Chromecast/Chromecast.php b/plugin/Chromecast/Chromecast.php index 21cca5166c..980b8f6dab 100644 --- a/plugin/Chromecast/Chromecast.php +++ b/plugin/Chromecast/Chromecast.php @@ -5,6 +5,11 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class Chromecast extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE + ); + } public function getDescription() { return "A plugin that adds a button to the control bar which will cast videos to a Chromecast."; } diff --git a/plugin/CloneSite/CloneSite.php b/plugin/CloneSite/CloneSite.php index 73187d4b8c..18d05a8bd0 100644 --- a/plugin/CloneSite/CloneSite.php +++ b/plugin/CloneSite/CloneSite.php @@ -5,6 +5,13 @@ require_once $global['systemRootPath'] . 'plugin/CloneSite/functions.php'; class CloneSite extends PluginAbstract { + + public function getTags() { + return array( + PluginTags::$SECURITY, + PluginTags::$FREE + ); + } public function getDescription() { global $global; $obj = $this->getDataObject(); diff --git a/plugin/CombineSites/CombineSites.php b/plugin/CombineSites/CombineSites.php index d900546607..c8329c629c 100644 --- a/plugin/CombineSites/CombineSites.php +++ b/plugin/CombineSites/CombineSites.php @@ -6,6 +6,12 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit class CombineSites extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$RECOMMENDED, + PluginTags::$FREE + ); + } public function getDescription() { $desc = "This plugin will share multiple streamers medias
"; $desc .= $this->isReadyLabel(array('API')); diff --git a/plugin/CustomizeAdvanced/CustomizeAdvanced.php b/plugin/CustomizeAdvanced/CustomizeAdvanced.php index ddc46e6827..9d7cb5cfb0 100644 --- a/plugin/CustomizeAdvanced/CustomizeAdvanced.php +++ b/plugin/CustomizeAdvanced/CustomizeAdvanced.php @@ -5,6 +5,13 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class CustomizeAdvanced extends PluginAbstract { + + public function getTags() { + return array( + PluginTags::$RECOMMENDED, + PluginTags::$FREE + ); + } public function getDescription() { $txt = "Fine Tuning your AVideo"; $help = "
Help"; @@ -111,10 +118,10 @@ class CustomizeAdvanced extends PluginAbstract { $obj->autoHideNavbarInSeconds = 0; $obj->videosCDN = ""; $obj->useFFMPEGToGenerateThumbs = false; - $obj->thumbsWidthPortrait = 170; - $obj->thumbsHeightPortrait = 250; - $obj->thumbsWidthLandscape = 250; - $obj->thumbsHeightLandscape = 140; + $obj->thumbsWidthPortrait = 360; + $obj->thumbsHeightPortrait = 640; + $obj->thumbsWidthLandscape = 640; + $obj->thumbsHeightLandscape = 360; $obj->showImageDownloadOption = false; $obj->doNotDisplayViews = false; $obj->doNotDisplayLikes = false; @@ -181,11 +188,7 @@ class CustomizeAdvanced extends PluginAbstract { } return ""; } - - public function getTags() { - return array('free', 'customization', 'buttons', 'resolutions'); - } - + public function getModeYouTube($videos_id) { global $global, $config; $obj = $this->getDataObject(); diff --git a/plugin/CustomizeUser/CustomizeUser.php b/plugin/CustomizeUser/CustomizeUser.php index 4cb52421c4..5d72e921f4 100644 --- a/plugin/CustomizeUser/CustomizeUser.php +++ b/plugin/CustomizeUser/CustomizeUser.php @@ -8,6 +8,13 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class CustomizeUser extends PluginAbstract { + + public function getTags() { + return array( + PluginTags::$RECOMMENDED, + PluginTags::$FREE + ); + } public function getDescription() { $txt = "Fine Tuning User Profile"; return $txt; @@ -216,10 +223,6 @@ class CustomizeUser extends PluginAbstract { } } - public function getTags() { - return array('free', 'customization', 'users'); - } - public function getChannelButton() { global $global, $isMyChannel; if (!$isMyChannel) { diff --git a/plugin/DiscordNotify/DiscordNotify.php b/plugin/DiscordNotify/DiscordNotify.php index 925058a441..29c9f36f43 100644 --- a/plugin/DiscordNotify/DiscordNotify.php +++ b/plugin/DiscordNotify/DiscordNotify.php @@ -8,6 +8,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class DiscordNotify extends PluginAbstract { + + public function getTags() { + return array( + PluginTags::$FREE + ); + } public function getDescription() { return "Send video upload notifications to discord webhook"; } @@ -20,14 +26,6 @@ class DiscordNotify extends PluginAbstract { return "cf145581-7d5e-4bb6-8c12-848a19j1564g"; } - public function getTags() { - return array( - 'free', - 'notifications', - 'webhook' - ); - } - public function getPluginVersion() { return "1.0"; } diff --git a/plugin/FBTube/FBTube.php b/plugin/FBTube/FBTube.php index 37013a7bcb..16a502ea6a 100644 --- a/plugin/FBTube/FBTube.php +++ b/plugin/FBTube/FBTube.php @@ -4,6 +4,11 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class FBTube extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE + ); + } public function getDescription() { return "(Deprecated, will be removed in next version) Make the first page works as a facebook page"; } @@ -30,9 +35,4 @@ class FBTube extends PluginAbstract { global $global; return ''; } - - public function getTags() { - return array('free', 'firstPage', 'facebook'); - } - } diff --git a/plugin/FloatVideo/FloatVideo.php b/plugin/FloatVideo/FloatVideo.php index 4407ecf634..f49fdcfd02 100644 --- a/plugin/FloatVideo/FloatVideo.php +++ b/plugin/FloatVideo/FloatVideo.php @@ -5,6 +5,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class FloatVideo extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + PluginTags::$PLAYER, + ); + } public function getDescription() { return "Enable Or disable Float Video"; } @@ -46,8 +52,4 @@ class FloatVideo extends PluginAbstract { } return $str; } - - public function getTags() { - return array('free'); - } } diff --git a/plugin/Gallery/Gallery.php b/plugin/Gallery/Gallery.php index 99ca1e7cfb..95fa285643 100644 --- a/plugin/Gallery/Gallery.php +++ b/plugin/Gallery/Gallery.php @@ -4,6 +4,14 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; require_once $global['systemRootPath'] . 'plugin/AVideoPlugin.php'; class Gallery extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$RECOMMENDED, + PluginTags::$FREE, + PluginTags::$GALLERY, + PluginTags::$LAYOUT, + ); + } public function getDescription() { return "Make the first page works as a gallery"; } @@ -99,10 +107,6 @@ class Gallery extends PluginAbstract { } } - public function getTags() { - return array('free', 'firstPage', 'gallery'); - } - public function getFooterCode() { $obj = $this->getDataObject(); global $global; diff --git a/plugin/Hotkeys/Hotkeys.php b/plugin/Hotkeys/Hotkeys.php index 4a3838eeb9..e7c66a3093 100644 --- a/plugin/Hotkeys/Hotkeys.php +++ b/plugin/Hotkeys/Hotkeys.php @@ -4,6 +4,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class Hotkeys extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + PluginTags::$PLAYER, + ); + } public function getDescription() { global $global; return "Enable hotkeys for videos, like F for fullscreen, space for play/pause, etc..
Author: Vinzenz Hersche"; @@ -57,12 +63,7 @@ class Hotkeys extends PluginAbstract { $obj->PlayPauseKey = " "; $obj->AlwaysCaptureHotkeys = true; return $obj; - } - - public function getTags() { - return array('free', 'videos', 'hotkeys'); - } - + } public function getFooterCode() { global $global; diff --git a/plugin/IMDbScrape/IMDbScrape.php b/plugin/IMDbScrape/IMDbScrape.php index f8d7ecad6a..5d9a2a8263 100644 --- a/plugin/IMDbScrape/IMDbScrape.php +++ b/plugin/IMDbScrape/IMDbScrape.php @@ -6,6 +6,11 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class IMDbScrape extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$DEPRECATED + ); + } public function getDescription() { return "Enables you to scrape data from IMDB.com
Your Video title must match with IMDb title
Help"; } diff --git a/plugin/Live/Live.php b/plugin/Live/Live.php index f45051ff4d..80b30a5eb5 100644 --- a/plugin/Live/Live.php +++ b/plugin/Live/Live.php @@ -13,6 +13,15 @@ $_getStats = array(); class Live extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$LIVE, + PluginTags::$FREE, + PluginTags::$RECOMMENDED, + PluginTags::$PLAYER, + ); + } + public function getDescription() { $desc = "Broadcast a RTMP video from your computer
and receive HLS streaming from servers"; $lu = AVideoPlugin::loadPlugin("LiveUsers"); @@ -532,10 +541,6 @@ class Live extends PluginAbstract { return false; } - public function getTags() { - return array('free', 'live', 'streaming', 'live stream'); - } - public function getChartTabs() { return '
  • '.__('Live videos').'
  • '; } diff --git a/plugin/LiveChat/LiveChat.php b/plugin/LiveChat/LiveChat.php index 4345cf0c72..c3982945a2 100644 --- a/plugin/LiveChat/LiveChat.php +++ b/plugin/LiveChat/LiveChat.php @@ -3,6 +3,14 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class LiveChat extends PluginAbstract{ + public function getTags() { + return array( + PluginTags::$LIVE, + PluginTags::$FREE, + PluginTags::$DEPRECATED + ); + } + public function getDescription() { global $global; $desc = "(Deprecated, will be removed next version) This plugin is Discontinued. you should move to Chat2 plugin.
    A live chat for multiple propouses
    Initiate it on terminal with the command nohup php {$global['systemRootPath']}plugin/LiveChat/chat-server.php &"; @@ -62,11 +70,6 @@ class LiveChat extends PluginAbstract{ $o = $this->getDataObject(); return $o->websocket; } - - - public function getTags() { - return array('free', 'live', 'streaming', 'live stream', 'chat'); - } public function canSendMessage($isLogged=false){ $obj = $this->getDataObject(); diff --git a/plugin/LiveLinks/LiveLinks.php b/plugin/LiveLinks/LiveLinks.php index 61874b0cbe..a63d599610 100644 --- a/plugin/LiveLinks/LiveLinks.php +++ b/plugin/LiveLinks/LiveLinks.php @@ -6,6 +6,14 @@ require_once $global['systemRootPath'] . 'plugin/LiveLinks/Objects/LiveLinksTabl class LiveLinks extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$LIVE, + PluginTags::$FREE, + PluginTags::$PLAYER, + ); + } + public function getDescription() { $desc = "Register Livestreams external Links from any HLS provider, Wowza and others"; $desc .= $this->isReadyLabel(array('Live')); diff --git a/plugin/LoginFacebook/LoginFacebook.php b/plugin/LoginFacebook/LoginFacebook.php index 3e288a9d61..b90599b7f2 100644 --- a/plugin/LoginFacebook/LoginFacebook.php +++ b/plugin/LoginFacebook/LoginFacebook.php @@ -4,6 +4,11 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class LoginFacebook extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + ); + } public function getDescription() { global $global; $obj = $this->getLogin(); @@ -34,11 +39,6 @@ class LoginFacebook extends PluginAbstract { $obj->key = ""; return $obj; } - - public function getTags() { - return array('free', 'login', 'facebook'); - } - public function getLogin() { $obj = new stdClass(); $obj->class = "btn btn-primary btn-block"; diff --git a/plugin/LoginGoogle/LoginGoogle.php b/plugin/LoginGoogle/LoginGoogle.php index 4b9b460a7d..9aedeecfdb 100644 --- a/plugin/LoginGoogle/LoginGoogle.php +++ b/plugin/LoginGoogle/LoginGoogle.php @@ -4,6 +4,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class LoginGoogle extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + PluginTags::$LOGIN, + ); + } public function getDescription() { global $global; $obj = $this->getLogin(); @@ -36,10 +42,6 @@ class LoginGoogle extends PluginAbstract { return $obj; } - public function getTags() { - return array('free', 'login', 'google'); - } - public function getLogin() { $obj = new stdClass(); $obj->class = "btn btn-danger btn-block"; diff --git a/plugin/LoginLinkedin/LoginLinkedin.php b/plugin/LoginLinkedin/LoginLinkedin.php index fe8dfc4dcc..4bde80d8eb 100644 --- a/plugin/LoginLinkedin/LoginLinkedin.php +++ b/plugin/LoginLinkedin/LoginLinkedin.php @@ -4,6 +4,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class LoginLinkedin extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + PluginTags::$LOGIN, + ); + } public function getDescription() { global $global; $obj = $this->getLogin(); @@ -34,11 +40,6 @@ class LoginLinkedin extends PluginAbstract { $obj->key = ""; return $obj; } - - public function getTags() { - return array('free', 'login', 'linkedin'); - } - public function getLogin() { $obj = new stdClass(); $obj->class = "btn btn-primary btn-block"; diff --git a/plugin/LoginTwitter/LoginTwitter.php b/plugin/LoginTwitter/LoginTwitter.php index 274f47030c..18d60c0965 100644 --- a/plugin/LoginTwitter/LoginTwitter.php +++ b/plugin/LoginTwitter/LoginTwitter.php @@ -4,6 +4,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class LoginTwitter extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + PluginTags::$LOGIN, + ); + } public function getDescription() { global $global; $obj = $this->getLogin(); @@ -34,11 +40,6 @@ class LoginTwitter extends PluginAbstract { $obj->key = ""; return $obj; } - - public function getTags() { - return array('free', 'login', 'twitter'); - } - public function getLogin() { $obj = new stdClass(); $obj->class = "btn btn-info btn-block"; diff --git a/plugin/LoginYahoo/LoginYahoo.php b/plugin/LoginYahoo/LoginYahoo.php index f3b4283bbb..f85c515e88 100644 --- a/plugin/LoginYahoo/LoginYahoo.php +++ b/plugin/LoginYahoo/LoginYahoo.php @@ -4,6 +4,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class LoginYahoo extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + PluginTags::$LOGIN, + ); + } public function getDescription() { global $global; $obj = $this->getLogin(); @@ -35,10 +41,6 @@ class LoginYahoo extends PluginAbstract { return $obj; } - public function getTags() { - return array('free', 'login', 'yahoo'); - } - public function getLogin() { $obj = new stdClass(); $obj->class = "btn btn-primary btn-block"; diff --git a/plugin/MaintenanceMode/MaintenanceMode.php b/plugin/MaintenanceMode/MaintenanceMode.php index 109ff77892..9dc9f4228e 100644 --- a/plugin/MaintenanceMode/MaintenanceMode.php +++ b/plugin/MaintenanceMode/MaintenanceMode.php @@ -4,6 +4,11 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class MaintenanceMode extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + ); + } public function getDescription() { global $global; $desc = "Put your site in Maintenance Mode"; diff --git a/plugin/Meet/Meet.php b/plugin/Meet/Meet.php index 7890070644..f476e95cc6 100644 --- a/plugin/Meet/Meet.php +++ b/plugin/Meet/Meet.php @@ -14,6 +14,13 @@ User::loginFromRequest(); //require_once $global['systemRootPath'] . 'objects/php-jwt/src/JWT.php'; //use \Firebase\JWT\JWT; class Meet extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$RECOMMENDED, + PluginTags::$FREE, + PluginTags::$LIVE, + ); + } public function getDescription() { $txt = "AVideo Meet/Conference software"; diff --git a/plugin/Meet/iframe.php b/plugin/Meet/iframe.php index f3504871aa..a643bae3d7 100644 --- a/plugin/Meet/iframe.php +++ b/plugin/Meet/iframe.php @@ -17,12 +17,12 @@ if (empty($objM)) { $meet_schedule_id = intval($_GET['meet_schedule_id']); if (empty($meet_schedule_id)) { - die("meet schedule id cannot be empty"); + forbiddenPage("meet schedule id cannot be empty"); } $meet = new Meet_schedule($meet_schedule_id); if(empty($meet->getName())){ - die("meet not found"); + forbiddenPage("meet not found"); } $userCredentials = User::loginFromRequestToGet(); diff --git a/plugin/Meet/index.php b/plugin/Meet/index.php index b673114d61..e83ebd2724 100644 --- a/plugin/Meet/index.php +++ b/plugin/Meet/index.php @@ -9,12 +9,11 @@ if (!isset($global['systemRootPath'])) { $obj = AVideoPlugin::getObjectDataIfEnabled("Meet"); //_error_log(json_encode($_SERVER)); if (empty($obj)) { - die("Plugin disabled"); + forbiddenPage("Plugin disabled"); } if (!User::isLogged()) { - header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); - exit; + forbiddenPage("You can not do this"); } $userCredentials = User::loginFromRequestToGet(); if (User::isAdmin() && !empty($_GET['newServer'])) { diff --git a/plugin/MobileManager/MobileManager.php b/plugin/MobileManager/MobileManager.php index 7c50f23bc6..ec4efcfc7d 100644 --- a/plugin/MobileManager/MobileManager.php +++ b/plugin/MobileManager/MobileManager.php @@ -5,6 +5,12 @@ require_once $global['systemRootPath'] . 'objects/video.php'; class MobileManager extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + PluginTags::$MOBILE + ); + } public static function getVersion(){ return 2; } @@ -27,10 +33,6 @@ class MobileManager extends PluginAbstract { return "1.0"; } - public function getTags() { - return array('free', 'mobile', 'android', 'ios'); - } - public function getEmptyDataObject() { global $global; $obj = new stdClass(); diff --git a/plugin/MonetizeUsers/MonetizeUsers.php b/plugin/MonetizeUsers/MonetizeUsers.php index 3641da4f27..792e1d88c0 100644 --- a/plugin/MonetizeUsers/MonetizeUsers.php +++ b/plugin/MonetizeUsers/MonetizeUsers.php @@ -4,6 +4,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class MonetizeUsers extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$MONETIZATION, + PluginTags::$FREE, + ); + } public function getDescription() { $txt = "This plugin will reward your users based on their videos view, each view will affect the user's walled balance"; @@ -31,10 +37,6 @@ class MonetizeUsers extends PluginAbstract { return $obj; } - public function getTags() { - return array('free', 'monetize', 'wallet'); - } - public function addView($videos_id, $total) { global $global; $obj = $this->getDataObject(); diff --git a/plugin/NextButton/NextButton.php b/plugin/NextButton/NextButton.php index 47092d1bdb..c3894cf129 100644 --- a/plugin/NextButton/NextButton.php +++ b/plugin/NextButton/NextButton.php @@ -5,6 +5,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class NextButton extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + PluginTags::$PLAYER, + ); + } public function getDescription() { return "Add next button to the control bar"; } @@ -43,11 +49,6 @@ class NextButton extends PluginAbstract { return $js; } } - - public function getTags() { - return array('free', 'buttons', 'video player'); - } - } diff --git a/plugin/OptionsTest/OptionsTest.php b/plugin/OptionsTest/OptionsTest.php index 8356219a2c..ccead1acb7 100644 --- a/plugin/OptionsTest/OptionsTest.php +++ b/plugin/OptionsTest/OptionsTest.php @@ -6,6 +6,11 @@ use Pecee\SimpleRouter\SimpleRouter; //required if we want to define routes on o class OptionsTest extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + ); + } public function getDescription() { global $global; return "Salmple object for new features
    Author: Criptos"; @@ -45,10 +50,6 @@ class OptionsTest extends PluginAbstract { public function getHeadCode() { } - - public function getTags() { - return array('sample'); - } public function addRoutes() { diff --git a/plugin/PayPalYPT/PayPalYPT.php b/plugin/PayPalYPT/PayPalYPT.php index b989b26a47..bf06566a04 100644 --- a/plugin/PayPalYPT/PayPalYPT.php +++ b/plugin/PayPalYPT/PayPalYPT.php @@ -25,6 +25,12 @@ use PayPal\Api\ShippingAddress; class PayPalYPT extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$MONETIZATION, + PluginTags::$FREE, + ); + } public function getDescription() { return "Paypal module for several purposes
    Go to Paypal developer Site here https://developer.paypal.com/developer/applications (you must have Paypal account, of course) diff --git a/plugin/PlayLists/PlayLists.php b/plugin/PlayLists/PlayLists.php index b25c5f4e79..a6127ac561 100644 --- a/plugin/PlayLists/PlayLists.php +++ b/plugin/PlayLists/PlayLists.php @@ -6,6 +6,12 @@ require_once $global['systemRootPath'] . 'objects/playlist.php'; class PlayLists extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$RECOMMENDED, + PluginTags::$FREE, + ); + } public function getDescription() { return "Playlists or Program Playlists are identified by default as programs of content on the AVideo Platform.
    " . " You can use the Edit Parameters button to rename it to your choosing.
    We recommend to keep the Program name " diff --git a/plugin/PlayerSkins/PlayerSkins.php b/plugin/PlayerSkins/PlayerSkins.php index 609f05aef7..6933eb3916 100644 --- a/plugin/PlayerSkins/PlayerSkins.php +++ b/plugin/PlayerSkins/PlayerSkins.php @@ -5,6 +5,12 @@ require_once $global['systemRootPath'] . 'plugin/AVideoPlugin.php'; class PlayerSkins extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + PluginTags::$PLAYER, + ); + } public function getDescription() { global $global; $desc = "Customize your playes Skin
    The Skis options are: "; @@ -117,10 +123,6 @@ class PlayerSkins extends PluginAbstract { return $js; } - public function getTags() { - return array('free'); - } - static function getDataSetup($str = "") { global $video, $disableYoutubeIntegration, $global; $obj = AVideoPlugin::getObjectData('PlayerSkins'); diff --git a/plugin/PredefinedCategory/PredefinedCategory.php b/plugin/PredefinedCategory/PredefinedCategory.php index 88c9c4531d..2b1cf8be4e 100644 --- a/plugin/PredefinedCategory/PredefinedCategory.php +++ b/plugin/PredefinedCategory/PredefinedCategory.php @@ -6,10 +6,16 @@ require_once $global['systemRootPath'] . 'objects/userGroups.php'; class PredefinedCategory extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE + ); + } + public function getDescription() { $txt = "Choose what category the video goes when upload, encode or embed"; $help = "
    Help"; - return $txt.$help; + return $txt . $help; } public function getName() { @@ -24,13 +30,13 @@ class PredefinedCategory extends PluginAbstract { $obj = new stdClass(); $obj->defaultCategory = 1; $obj->userCategory = new stdClass(); - + $groups = UserGroups::getAllUsersGroups(); //import external plugins configuration options foreach ($groups as $value) { - $obj->{"AddVideoOnGroup_[{$value['id']}]_"}=false; + $obj->{"AddVideoOnGroup_[{$value['id']}]_"} = false; } - + return $obj; } @@ -39,44 +45,38 @@ class PredefinedCategory extends PluginAbstract { $filename = $global['systemRootPath'] . 'plugin/PredefinedCategory/pluginMenu.html'; return file_get_contents($filename); } - + public function getCategoryId() { - global $global; + global $global; require_once $global['systemRootPath'] . 'objects/user.php'; $obj = AVideoPlugin::getObjectDataIfEnabled("PredefinedCategory"); $id = $obj->defaultCategory; - if(User::canUpload()){ + if (User::canUpload()) { $user_id = User::getId(); - if(!empty($obj->userCategory->$user_id)){ + if (!empty($obj->userCategory->$user_id)) { $id = $obj->userCategory->$user_id; } } return $id; } - - public function getUserGroupsArray(){ + + public function getUserGroupsArray() { $obj = $this->getDataObject(); - + $videoGroups = array(); foreach ($obj as $key => $value) { - if($value===true){ + if ($value === true) { preg_match("/^AddVideoOnGroup_\[([0-9]+)\]_/", $key, $match); - if(!empty($match[1])){ + if (!empty($match[1])) { //check if group exists - $group=new UserGroups($match[1]); - if(!empty($group->getGroup_name())){ + $group = new UserGroups($match[1]); + if (!empty($group->getGroup_name())) { $videoGroups[] = $match[1]; } } } } return $videoGroups; - - - } - - public function getTags() { - return array('free'); } } diff --git a/plugin/RazorPayYPT/RazorPayYPT.php b/plugin/RazorPayYPT/RazorPayYPT.php index 6d1d2f13c2..ba963f2563 100644 --- a/plugin/RazorPayYPT/RazorPayYPT.php +++ b/plugin/RazorPayYPT/RazorPayYPT.php @@ -8,6 +8,12 @@ require_once ($global['systemRootPath'] . 'plugin/RazorPayYPT/razorpay-php/Razor use Razorpay\Api\Api; class RazorPayYPT extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$MONETIZATION, + PluginTags::$FREE, + ); + } public function getDescription() { global $global; $obj = $this->getDataObject(); diff --git a/plugin/ReportVideo/ReportVideo.php b/plugin/ReportVideo/ReportVideo.php index c29b597eac..69930804b3 100644 --- a/plugin/ReportVideo/ReportVideo.php +++ b/plugin/ReportVideo/ReportVideo.php @@ -6,6 +6,12 @@ require_once $global['systemRootPath'] . 'plugin/ReportVideo/Objects/videos_repo class ReportVideo extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$RECOMMENDED, + PluginTags::$FREE, + ); + } public function getDescription() { return "Create a button to report videos with inapropriate content"; } @@ -49,11 +55,6 @@ class ReportVideo extends PluginAbstract { } return true; } - - public function getTags() { - return array('free', 'buttons', 'report'); - } - public function getWatchActionButton($videos_id) { global $global, $video; if (!isVideo()) { diff --git a/plugin/SeekButton/SeekButton.php b/plugin/SeekButton/SeekButton.php index b604b388d6..fcaa6f7d5b 100644 --- a/plugin/SeekButton/SeekButton.php +++ b/plugin/SeekButton/SeekButton.php @@ -5,6 +5,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class SeekButton extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + PluginTags::$PLAYER, + ); + } public function getDescription() { return "Add seek buttons to the control bar"; } @@ -57,9 +63,4 @@ class SeekButton extends PluginAbstract { return $js; } } - - public function getTags() { - return array('free', 'buttons', 'video player'); - } - } diff --git a/plugin/ShareSocialButtonsOnEmbed/ShareSocialButtonsOnEmbed.php b/plugin/ShareSocialButtonsOnEmbed/ShareSocialButtonsOnEmbed.php index 80a7bbcba8..266dd3959e 100644 --- a/plugin/ShareSocialButtonsOnEmbed/ShareSocialButtonsOnEmbed.php +++ b/plugin/ShareSocialButtonsOnEmbed/ShareSocialButtonsOnEmbed.php @@ -5,6 +5,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class ShareSocialButtonsOnEmbed extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + ); + } + public function getDescription() { return "(Deprecated, will be removed next version) Enable Or disable Share Social Buttons on Embed videos"; } @@ -24,9 +30,4 @@ class ShareSocialButtonsOnEmbed extends PluginAbstract { } include 'script.php'; } - - - public function getTags() { - return array('free'); - } } diff --git a/plugin/SlackBot/SlackBot.php b/plugin/SlackBot/SlackBot.php index 3dcfa2179f..8a47c3e648 100644 --- a/plugin/SlackBot/SlackBot.php +++ b/plugin/SlackBot/SlackBot.php @@ -10,6 +10,11 @@ require_once $global['systemRootPath'] . 'objects/subscribe.php'; class SlackBot extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + ); + } public function getDescription() { return "Send video upload notifications to Users on Slack who have subscribed to the channel via a Slack Bot. @@ -29,14 +34,7 @@ class SlackBot extends PluginAbstract { return "cf145581-7d5e-4bb6-8c13-848a19j1564a"; } - public function getTags() - { - return array( - 'free', - 'notifications', - 'bot' - ); - } + public function getPluginVersion() { return "1.0"; diff --git a/plugin/SlackNotify/SlackNotify.php b/plugin/SlackNotify/SlackNotify.php index 84c400ad06..f73b5cfdea 100644 --- a/plugin/SlackNotify/SlackNotify.php +++ b/plugin/SlackNotify/SlackNotify.php @@ -9,6 +9,11 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class SlackNotify extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + ); + } public function getDescription() { return "Send video upload notifications to Slack webhook"; @@ -23,14 +28,6 @@ class SlackNotify extends PluginAbstract { return "cf145581-7d5e-4bb6-8c13-848a19j1564h"; } - public function getTags() - { - return array( - 'free', - 'notifications', - 'webhook' - ); - } public function getPluginVersion() { return "1.0"; diff --git a/plugin/StripeYPT/StripeYPT.php b/plugin/StripeYPT/StripeYPT.php index 9687015b6a..2d57eb5f2b 100644 --- a/plugin/StripeYPT/StripeYPT.php +++ b/plugin/StripeYPT/StripeYPT.php @@ -8,6 +8,12 @@ class StripeYPT extends PluginAbstract { private $Publishablekey, $Restrictedkey, $SigningSecret; + public function getTags() { + return array( + PluginTags::$MONETIZATION, + PluginTags::$FREE, + ); + } public function getDescription() { $str = "Stripe module for several purposes
    Go to Stripe dashboard Site here (you must have Stripe account, of course)
    "; diff --git a/plugin/TheaterButton/TheaterButton.php b/plugin/TheaterButton/TheaterButton.php index 3b81f1789e..9aff459ac3 100644 --- a/plugin/TheaterButton/TheaterButton.php +++ b/plugin/TheaterButton/TheaterButton.php @@ -5,6 +5,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class TheaterButton extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + PluginTags::$PLAYER, + ); + } public function getDescription() { return "Add next theater switch button to the control bar"; } @@ -81,11 +87,6 @@ class TheaterButton extends PluginAbstract { } return false; } - - public function getTags() { - return array('free', 'buttons', 'video player'); - } - static function isCompressed(){ if(empty($_COOKIE['compress'])){ $obj = AVideoPlugin::getDataObject('TheaterButton'); diff --git a/plugin/TopMenu/TopMenu.php b/plugin/TopMenu/TopMenu.php index 0e8855ed40..c112b8a9f1 100644 --- a/plugin/TopMenu/TopMenu.php +++ b/plugin/TopMenu/TopMenu.php @@ -8,6 +8,12 @@ use Pecee\SimpleRouter\SimpleRouter; //required if we want to define routes on o class TopMenu extends PluginAbstract { + + public function getTags() { + return array( + PluginTags::$FREE, + ); + } public function getDescription() { $txt = "Responsive Customized Top Menu"; $help = "
    Help"; @@ -79,8 +85,4 @@ class TopMenu extends PluginAbstract { return false; return $menuId['id']; } - - public function getTags() { - return array('free'); - } } diff --git a/plugin/User_Location/User_Location.php b/plugin/User_Location/User_Location.php index 24e1e49bff..a5d01e7591 100644 --- a/plugin/User_Location/User_Location.php +++ b/plugin/User_Location/User_Location.php @@ -5,6 +5,11 @@ require_once $global['systemRootPath'] . 'plugin/User_Location/Objects/IP2Locati class User_Location extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + ); + } public function getDescription() { global $global, $mysqlDatabase; $ret = "Detects user location for various purposes"; diff --git a/plugin/VR360/VR360.php b/plugin/VR360/VR360.php index a8d9ba8248..4346529a4a 100644 --- a/plugin/VR360/VR360.php +++ b/plugin/VR360/VR360.php @@ -7,6 +7,11 @@ class VR360 extends PluginAbstract { private $script = 'panorama'; + public function getTags() { + return array( + PluginTags::$FREE, + ); + } public function getDescription() { return "Panoramic 360 video player. Project video onto different shapes"; } @@ -91,9 +96,5 @@ class VR360 extends PluginAbstract { }(window, window.videojs));'; return $js; } - - public function getTags() { - return array('free'); - } } diff --git a/plugin/VideoLandscapeFullscreen/VideoLandscapeFullscreen.php b/plugin/VideoLandscapeFullscreen/VideoLandscapeFullscreen.php index 72056f31c6..58c410e83b 100644 --- a/plugin/VideoLandscapeFullscreen/VideoLandscapeFullscreen.php +++ b/plugin/VideoLandscapeFullscreen/VideoLandscapeFullscreen.php @@ -4,6 +4,11 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class VideoLandscapeFullscreen extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + ); + } public function getPluginVersion(){ return "1.0"; } diff --git a/plugin/VideoLogoOverlay/VideoLogoOverlay.php b/plugin/VideoLogoOverlay/VideoLogoOverlay.php index 0330c7eda4..0ca22df0d1 100644 --- a/plugin/VideoLogoOverlay/VideoLogoOverlay.php +++ b/plugin/VideoLogoOverlay/VideoLogoOverlay.php @@ -5,6 +5,11 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class VideoLogoOverlay extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + ); + } public function getDescription() { return "Put an Logo overlay on video"; } @@ -74,10 +79,5 @@ class VideoLogoOverlay extends PluginAbstract { } return $url; } - - - public function getTags() { - return array('free'); - } } diff --git a/plugin/VideoTags/VideoTags.php b/plugin/VideoTags/VideoTags.php index 30b5e5083f..6e00a879ad 100644 --- a/plugin/VideoTags/VideoTags.php +++ b/plugin/VideoTags/VideoTags.php @@ -8,6 +8,11 @@ require_once $global['systemRootPath'] . 'plugin/VideoTags/Objects/TagsTypes.php class VideoTags extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + ); + } public function getDescription() { $txt = "User interface for managing tags"; $help = ""; diff --git a/plugin/VimeoAPI/VimeoAPI.php b/plugin/VimeoAPI/VimeoAPI.php index a8c3a52427..aa84214204 100644 --- a/plugin/VimeoAPI/VimeoAPI.php +++ b/plugin/VimeoAPI/VimeoAPI.php @@ -10,6 +10,10 @@ use Vimeo\Exceptions\VimeoUploadException; class VimeoAPI extends PluginAbstract { + public function getTags() { + return array( + ); + } public function getDescription() { $txt = "Upload your videos to Vimeo using the Vimeo API.
    "; $txt .= "Create an APP and get your credentials here
    "; diff --git a/plugin/WWBN/WWBN.php b/plugin/WWBN/WWBN.php index faf8c8fbd8..ffd48f5935 100644 --- a/plugin/WWBN/WWBN.php +++ b/plugin/WWBN/WWBN.php @@ -4,6 +4,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; class WWBN extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$RECOMMENDED, + PluginTags::$FREE, + ); + } public function getDescription() { global $global; $desc = "WWBN Network Index (this plugin is under development)
    "; diff --git a/plugin/YPTWallet/YPTWallet.php b/plugin/YPTWallet/YPTWallet.php index 9f61a8ad27..0f56fdd1ed 100644 --- a/plugin/YPTWallet/YPTWallet.php +++ b/plugin/YPTWallet/YPTWallet.php @@ -11,6 +11,13 @@ class YPTWallet extends PluginAbstract { const MANUAL_WITHDRAW = "Manual Withdraw Funds"; const MANUAL_ADD = "Manual Add Funds"; + public function getTags() { + return array( + PluginTags::$MONETIZATION, + PluginTags::$NETFLIX, + PluginTags::$FREE, + ); + } public function getDescription() { return "Wallet for AVideo"; } @@ -79,10 +86,6 @@ class YPTWallet extends PluginAbstract { return $obj; } - public function getTags() { - return array('free', 'monetization'); - } - public function getBalance($users_id) { $wallet = self::getWallet($users_id); return $wallet->getBalance(); diff --git a/plugin/YouPHPFlix2/YouPHPFlix2.php b/plugin/YouPHPFlix2/YouPHPFlix2.php index e930132f42..e52099437a 100644 --- a/plugin/YouPHPFlix2/YouPHPFlix2.php +++ b/plugin/YouPHPFlix2/YouPHPFlix2.php @@ -4,6 +4,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; require_once $global['systemRootPath'] . 'plugin/AVideoPlugin.php'; class YouPHPFlix2 extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$NETFLIX, + PluginTags::$FREE, + ); + } public function getDescription() { $txt = "Make the first page looks like a Netflix site"; $help = "
    Help"; @@ -119,9 +125,4 @@ class YouPHPFlix2 extends PluginAbstract { return $js; } - public function getTags() { - return array('free', 'firstPage', 'netflix'); - } - - } diff --git a/plugin/YouTube/YouTube.php b/plugin/YouTube/YouTube.php index 63638423e0..38369b88fc 100644 --- a/plugin/YouTube/YouTube.php +++ b/plugin/YouTube/YouTube.php @@ -4,6 +4,11 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php'; require_once $global['systemRootPath'] . 'plugin/AVideoPlugin.php'; class YouTube extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$DEPRECATED, + ); + } public function getDescription() { return "(Deprecated, will be removed in next version) Make the first page works as a YouTube"; } @@ -86,10 +91,6 @@ class YouTube extends PluginAbstract { return $global['systemRootPath'].'plugin/YouTube/view/modeYouTube.php'; } - public function getTags() { - return array('free', 'firstPage', 'YouTube'); - } - public function getFooterCode() { $obj = $this->getDataObject(); global $global; diff --git a/plugin/YouTubeAPI/YouTubeAPI.php b/plugin/YouTubeAPI/YouTubeAPI.php index 6a8df29819..1b033735ad 100644 --- a/plugin/YouTubeAPI/YouTubeAPI.php +++ b/plugin/YouTubeAPI/YouTubeAPI.php @@ -6,6 +6,11 @@ require_once $global['systemRootPath'] . 'plugin/YouTubeAPI/Objects/YouTubeUploa class YouTubeAPI extends PluginAbstract { + public function getTags() { + return array( + PluginTags::$FREE, + ); + } public function getDescription() { $txt = "Upload your videos to YouTube using the YouTube API.
    "; //$txt .= "You can acquire an OAuth 2.0 client ID and client secret from the Google Cloud Console"; diff --git a/view/managerPlugins_body.php b/view/managerPlugins_body.php index 33f49e7c69..107f9052bb 100644 --- a/view/managerPlugins_body.php +++ b/view/managerPlugins_body.php @@ -8,145 +8,197 @@ $uuidJSCondition = implode(" && ", $rowId); ?>
    - - - -
    -