Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/9682
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Dec 8, 2024
1 parent 43af632 commit 0597d96
Showing 1 changed file with 37 additions and 16 deletions.
53 changes: 37 additions & 16 deletions view/managerVideos_body.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
if (!empty($video_id) && Video::canEdit($video_id)) {
$editVideo = Video::getVideo($video_id, '');
}

if (empty($advancedCustom)) {
$advancedCustom = AVideoPlugin::getObjectData("CustomizeAdvanced");
}
?>
<style>
<?php
Expand Down Expand Up @@ -153,7 +157,8 @@
body.compact #grid {
font-size: 12px !important;
}
body.compact #grid .titleBtn{

body.compact #grid .titleBtn {
font-size: 0.8em !important;
}
</style>
Expand Down Expand Up @@ -208,20 +213,36 @@
<span class="fa fa-cog"></span> <span class="hidden-md hidden-sm hidden-xs"><?php echo empty($advancedCustom->encoderButtonLabel) ? __("Encode video and audio") : __($advancedCustom->encoderButtonLabel); ?></span>
</a>

<button class="btn btn-sm btn-xs btn-default" onclick="newDirectUploadVideo();" id="uploadMp4Button" data-toggle="tooltip" title="<?php echo __("Upload files without encode"), ' ', implode(', ', CustomizeAdvanced::directUploadFiletypes()); ?>">
<span class="fa fa-upload"></span>
<span class="hidden-md hidden-sm hidden-xs"><?php echo empty($advancedCustom->uploadMP4ButtonLabel) ? __("Direct upload") : __($advancedCustom->uploadMP4ButtonLabel); ?></span>
</button>

<button class="btn btn-sm btn-xs btn-default" id="embedVideoLinkButton">
<span class="fa fa-link"></span>
<span class="hidden-md hidden-sm hidden-xs"><?php echo __("Embed a video link"); ?></span>
</button>

<button class="btn btn-sm btn-xs btn-default" id="addArticleButton" onclick="newArticle()">
<i class="far fa-newspaper"></i>
<span class="hidden-md hidden-sm hidden-xs"><?php echo __("Add Article"); ?></span>
</button>
<?php
if (CustomizeAdvanced::showDirectUploadButton()) {
?>
<button class="btn btn-sm btn-xs btn-default" onclick="newDirectUploadVideo();" id="uploadMp4Button" data-toggle="tooltip" title="<?php echo __("Upload files without encode"), ' ', implode(', ', CustomizeAdvanced::directUploadFiletypes()); ?>">
<span class="fa fa-upload"></span>
<span class="hidden-md hidden-sm hidden-xs"><?php echo empty($advancedCustom->uploadMP4ButtonLabel) ? __("Direct upload") : __($advancedCustom->uploadMP4ButtonLabel); ?></span>
</button>
<?php
}
?>
<?php
if (empty($advancedCustom->doNotShowEmbedButton)) {
?>
<button class="btn btn-sm btn-xs btn-default" id="embedVideoLinkButton">
<span class="fa fa-link"></span>
<span class="hidden-md hidden-sm hidden-xs"><?php echo __("Embed a video link"); ?></span>
</button>
<?php
}
?>
<?php
if (AVideoPlugin::isEnabledByName("Articles")) {
?>
<button class="btn btn-sm btn-xs btn-default" id="addArticleButton" onclick="newArticle()">
<i class="far fa-newspaper"></i>
<span class="hidden-md hidden-sm hidden-xs"><?php echo __("Add Article"); ?></span>
</button>
<?php
}
?>

<button class="btn btn-sm btn-xs btn-default" id="sortVideosButton" onclick="avideoModalIframeFullScreen(webSiteRootURL+'view/managerVideosOrganize.php');">
<i class="fas fa-sort-amount-up-alt"></i>
Expand Down Expand Up @@ -273,7 +294,7 @@
<i class="far fa-square" aria-hidden="true" id="chk"></i>
</button>
<?php if ($advancedCustom->videosManegerBulkActionButtons) {
$categories = Category::getAllCategories(true);
$categories = Category::getAllCategories(true);
if (!empty($categories)) {
if (empty($advancedCustomUser->userCanNotChangeCategory) || Permissions::canAdminVideos()) { ?>
<div class="btn-group" id="categoriesBtnGroup">
Expand Down

0 comments on commit 0597d96

Please sign in to comment.