mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Redirect live stream viewers
This commit is contained in:
parent
286d3acdf5
commit
ec6a7aed46
21 changed files with 630 additions and 133 deletions
|
@ -7265,7 +7265,7 @@ function calculateCenterCrop($originalWidth, $originalHeight, $aspectRatio)
|
|||
return ['newWidth' => intval($newWidth), 'newHeight' => intval($newHeight), 'x' => intval($x), 'y' => intval($y)];
|
||||
}
|
||||
|
||||
function getTourHelpButton($stepsFileRelativePath, $class = 'btn btn-default')
|
||||
function getTourHelpButton($stepsFileRelativePath, $class = 'btn btn-default', $showLabel = true)
|
||||
{
|
||||
/*
|
||||
[
|
||||
|
@ -7279,7 +7279,11 @@ function getTourHelpButton($stepsFileRelativePath, $class = 'btn btn-default')
|
|||
}
|
||||
]
|
||||
*/
|
||||
return "<button class=\"startTourBtn {$class}\" onclick=\"startTour('{$stepsFileRelativePath}')\"><i class=\"fa-solid fa-circle-question\"></i> " . __('Help') . "</button>";
|
||||
$label = '';
|
||||
if($showLabel){
|
||||
$label = __('Help');
|
||||
}
|
||||
return "<button class=\"startTourBtn {$class}\" onclick=\"startTour('{$stepsFileRelativePath}')\"><i class=\"fa-solid fa-circle-question\"></i> {$label}</button>";
|
||||
}
|
||||
|
||||
function getInfoButton($info)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue