mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00

Option for each user can select what playlist newly encoded videos will be automatically added
14 lines
No EOL
713 B
PHP
14 lines
No EOL
713 B
PHP
<?php
|
|
$video = new Video('', '', $videos_id);
|
|
$_class = 'isSuggested btn-warning ';
|
|
if (empty($video->getIsSuggested())) {
|
|
$_class = 'isNotSuggested btn-default ';
|
|
}
|
|
?>
|
|
<button type="button"
|
|
class="suggestBtn <?php echo $_class; ?> <?php echo $class; ?>"
|
|
onclick="toogleVideoSuggested($(this));return false;"
|
|
videos_id="<?php echo $videos_id; ?>" >
|
|
<span class="unsuggestText btnText"><i class="fas fa-star"></i> <span class="hidden-md hidden-sm hidden-xs"><?php echo __("Unsuggest it"); ?></span></span>
|
|
<span class="suggestText btnText"><i class="far fa-star"></i> <span class="hidden-md hidden-sm hidden-xs"><?php echo __("Suggest it"); ?></span></span>
|
|
</button>
|