1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00
Oinktube/plugin/CustomizeAdvanced/CustomizeAdvanced.php
2018-05-18 15:51:37 -03:00

70 lines
2.8 KiB
PHP

<?php
global $global;
require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class CustomizeAdvanced extends PluginAbstract {
public function getDescription() {
return "Fine Tuning your YouPHPTube";
}
public function getName() {
return "CustomizeAdvanced";
}
public function getUUID() {
return "55a4fa56-8a30-48d4-a0fb-8aa6b3f69033";
}
public function getEmptyDataObject() {
$obj = new stdClass();
$obj->doNotShowUploadMP4Button = true;
$obj->doNotShowImportMP4Button = false;
$obj->doNotShowEncoderButton = false;
$obj->doNotShowEmbedButton = false;
$obj->doNotShowEncoderResolutionLow = false;
$obj->doNotShowEncoderResolutionSD = false;
$obj->doNotShowEncoderResolutionHD = false;
$obj->doNotShowLeftMenuAudioAndVideoButtons = false;
$obj->disableNativeSignUp = false;
$obj->disableNativeSignIn = false;
$obj->doNotShowWebsiteOnContactForm = false;
$obj->newUsersCanStream = false;
$obj->doNotIndentifyByEmail = false;
$obj->doNotIndentifyByName = false;
$obj->doNotIndentifyByUserName = false;
$obj->doNotUseXsendFile = false;
$obj->makeVideosInactiveAfterEncode = false;
$obj->usePermalinks = false;
$obj->showAdsenseBannerOnTop = false;
$obj->showAdsenseBannerOnLeft = true;
$obj->disableAnimatedGif = false;
$obj->unverifiedEmailsCanNOTLogin = false;
$obj->removeBrowserChannelLinkFromMenu = false;
$obj->uploadButtonDropdownIcon = "fas fa-video";
$obj->uploadButtonDropdownText = "";
$obj->EnableWavesurfer = true;
$obj->EnableMinifyJS = false;
$obj->disableShareAndPlaylist = false;
$obj->commentsMaxLength = 200;
$obj->disableYoutubePlayerIntegration = false;
$o = new stdClass();
$o->type = "textarea";
$o->value = "";
$obj->underMenuBarHTMLCode = $o;// an url for encoder network
$obj->encoderNetwork = "";// an url for encoder network
return $obj;
}
public function getHelp(){
if(User::isAdmin()){
return "<h2 id='CustomizeAdvanced help'>CustomizeAdvanced (admin)</h2><ul><li>EnableWavesurfer = Enables the visualisation for audio. This will always download full audio first, so with big audio-files, you might better disable it.</li><li>commentsMaxLength = Maximum lenght for comments in videos</li><li>disableYoutubePlayerIntegration = Disables the integrating of youtube-videos and just embed them.</li><li>EnableMinifyJS = Minify your JS. Clear videos/cache after changing this option.</li></ul>";
}
return "";
}
public function getTags() {
return array('free', 'customization', 'buttons', 'resolutions');
}
}