1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00

improve help

This commit is contained in:
Vinzenz Hersche 2018-05-19 01:06:41 +02:00
parent 84b3000630
commit 34f7f097eb
3 changed files with 17 additions and 10 deletions

View file

@ -58,7 +58,7 @@ class CustomizeAdvanced extends PluginAbstract {
public function getHelp(){ public function getHelp(){
if(User::isAdmin()){ 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 "<h2 id='CustomizeAdvanced help'>CustomizeAdvanced (admin)</h2><table class='table'><tbody><tr><td>EnableWavesurfer</td><td>Enables the visualisation for audio. This will always download full audio first, so with big audio-files, you might better disable it.</td></tr><tr><td>commentsMaxLength</td><td>Maximum lenght for comments in videos</td></tr><tr><td>disableYoutubePlayerIntegration</td> <td>Disables the integrating of youtube-videos and just embed them.</td></tr><tr><td>EnableMinifyJS</td><td>Minify your JS. Clear videos/cache after changing this option.</td></tr></tbody></table>";
} }
return ""; return "";
} }

View file

@ -19,22 +19,22 @@ class Hotkeys extends PluginAbstract {
public function getHelp(){ public function getHelp(){
$obj = $this->getDataObject(); $obj = $this->getDataObject();
$html = "<h2 id='Hotkeys help' >Hotkeys</h2><p>When you are watching media, you can use these shortcuts.</p>"; $html = "<h2 id='Hotkeys help' >Hotkeys</h2><p>".__("When you are watching media, you can use these keyboard-shortcuts.")."</p><table class='table'><tbody>";
$html .= "<p>Seek: Left/right-arrow-key</p>"; $html .= "<tr><td>".__("Seek")."</td><td>".__("Left")."/".__("right")."-".__("arrow")."</td></tr><tr><td>";
if($obj->ReplaceVolumeWithPlusMinus){ if($obj->ReplaceVolumeWithPlusMinus){
$html .= "<p>Volume: +/-</p>"; $html .= __("Volume")."</td><td>+/-</td></tr>";
} else { } else {
$html .= "<p>Volume: Up/Down-Arrow</p>"; $html .= __("Volume")."Volume</td><td>".__("Up")."/".__("Down")."-".__("Arrow")."</td></tr>";
} }
if($obj->Fullscreen){ if($obj->Fullscreen){
$html .= "<p>Fullscreen: ".$obj->FullscreenKey."</p>"; $html .= "<tr><td>".__("Fullscreen")."</td><td>".$obj->FullscreenKey."</td></tr>";
} }
if($obj->PlayPauseKey==" "){ if($obj->PlayPauseKey==" "){
$html .= "<p>Play/pause: space</p>"; $html .= "<tr><td>".__("Play")."/".__("pause")."</td><td>".__("space")."</td></tr>";
} else { } else {
$html .= "<p>Play/pause: ".$obj->PlayPauseKey."</p>"; $html .= "<tr><td>".__("Play")."/".__("pause")."</td><td>".$obj->PlayPauseKey."</td></tr>";
} }
return $html; return $html."</tbody></table>";
} }
public function getJSFiles(){ public function getJSFiles(){
if(!empty($_GET['isMediaPlaySite'])){ if(!empty($_GET['isMediaPlaySite'])){

View file

@ -36,6 +36,13 @@ class YouPHPFlix extends PluginAbstract {
return $obj; return $obj;
} }
public function getHelp(){
if(User::isAdmin()){
return "<h2 id='YouPHPFlix help'>YouPHPFlix options (admin)</h2><table class='table'><thead><th>Option-name</th><th>Default</th><th>Description</th></thead><tbody><tr><td>DefaultDesign</td><td>checked</td><td>The original style, for each category, one row with the newest videos</td></tr><tr><td>DateAdded,MostPopular,MostWatched,SortByName</td><td>checked,checked,checked,unchecked</td><td>Metacategories</td></tr><tr><td>LiteDesign</td><td>unchecked</td> <td>All categories in one row</td></tr><tr><td>separateAudio</td><td>unchecked</td><td>Create a own row for audio</td></tr></tbody></table>";
}
return "";
}
public function getFirstPage(){ public function getFirstPage(){
global $global; global $global;
if(!YouPHPTubePlugin::isEnabled("d3sa2k4l3-23rds421-re323-4ae-423")){ if(!YouPHPTubePlugin::isEnabled("d3sa2k4l3-23rds421-re323-4ae-423")){