From 7353c36927d48841662dec3bd0bfe8e33d11e16e Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Mon, 20 Jan 2025 10:43:11 -0300 Subject: [PATCH] Edit thumbs in timeline --- plugin/PlayLists/player.php | 4 - plugin/PlayerSkins/saveThumbnail.php | 2 +- view/managerVideosLight.php | 151 +++++++++++++++++--------- view/managerVideosLight_imageTime.php | 15 +++ view/modeYoutubeBottom.php | 5 - 5 files changed, 118 insertions(+), 59 deletions(-) create mode 100644 view/managerVideosLight_imageTime.php diff --git a/plugin/PlayLists/player.php b/plugin/PlayLists/player.php index b9d405aff3..8ff399802c 100644 --- a/plugin/PlayLists/player.php +++ b/plugin/PlayLists/player.php @@ -90,10 +90,6 @@ if (!empty($advancedCustomUser->showChannelBannerOnModeYoutube)) { ?> - '; echo PlayerSkins::getMediaTag($video['filename'], $htmlMediaTag); ?> diff --git a/plugin/PlayerSkins/saveThumbnail.php b/plugin/PlayerSkins/saveThumbnail.php index f199ea63fa..aa3bd2b8a3 100644 --- a/plugin/PlayerSkins/saveThumbnail.php +++ b/plugin/PlayerSkins/saveThumbnail.php @@ -1,7 +1,7 @@ - diff --git a/view/managerVideosLight.php b/view/managerVideosLight.php index a8de911d90..7a2dd72159 100644 --- a/view/managerVideosLight.php +++ b/view/managerVideosLight.php @@ -21,63 +21,116 @@ $categories_id = $video->getCategories_id(); ?> - - <?php echo __("Edit Video"); ?> + + + <?php echo __("Edit Video"); ?> + + + + + + +
+
+
+

+ +

+
+ array( + 'url' => addQueryStringParameter($url, 'image', 1), + 'label' => " " . __('Thumbnail') + ), + 'include' => $global['systemRootPath'] . 'view/managerVideosLight_image.php' + ); + $assets['imageTime'] = array( + 'button' =>array( + 'url' => addQueryStringParameter($url, 'imageTime', 1), + 'label' => " " . __('Thumbnail in video time'), + ), + 'include' => $global['systemRootPath'] . 'view/managerVideosLight_imageTime.php' + ); + $assets['meta'] = array( + 'button' =>array( + 'url' => addQueryStringParameter($url, 'image', 0), + 'label' => " " . __('Edit') + ), + 'include' => $global['systemRootPath'] . 'view/managerVideosLight_meta.php' + ); + + $buttons = array( + 'image' => array( + $assets['imageTime']['button'], + $assets['meta']['button'], + ), + 'imageTime' => array( + $assets['image']['button'], + $assets['meta']['button'], + ), + 'meta' => array( + $assets['imageTime']['button'], + $assets['image']['button'], + ), + ); + + $index = ''; + if (!empty($_REQUEST['image'])) { + $index = 'image'; + } else if (!empty($_REQUEST['imageTime'])) { + $index = 'imageTime'; + } else { + $index = 'meta'; } - - - - - - - - - +
+ +
+
+
+ + + + \ No newline at end of file diff --git a/view/managerVideosLight_imageTime.php b/view/managerVideosLight_imageTime.php new file mode 100644 index 0000000000..26bc27d49c --- /dev/null +++ b/view/managerVideosLight_imageTime.php @@ -0,0 +1,15 @@ + + +'; +echo PlayerSkins::getMediaTag($video['filename']); + +include __DIR__.'/../plugin/PlayerSkins/saveThumbnail.php'; + +include $global['systemRootPath'] . 'view/include/video.min.js.php'; +?> \ No newline at end of file diff --git a/view/modeYoutubeBottom.php b/view/modeYoutubeBottom.php index fae29c6a19..ccb71d5bdd 100644 --- a/view/modeYoutubeBottom.php +++ b/view/modeYoutubeBottom.php @@ -83,11 +83,6 @@ $description = getSEODescription(emptyHTML($video['description']) ? $video['titl -