From f41dc1bfad47f0e49ce3fdd7c3515b46be3adc2b Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Wed, 27 Mar 2024 14:36:11 -0300 Subject: [PATCH] https://github.com/WWBN/AVideo/issues/8665 --- objects/video.php | 14 ++++++++------ view/videoCreator.html | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/objects/video.php b/objects/video.php index c29ed5fb2c..0d96de6f12 100644 --- a/objects/video.php +++ b/objects/video.php @@ -6326,30 +6326,31 @@ if (!class_exists('Video')) { require_once $global['systemRootPath'] . 'objects/subscribe.php'; $content = local_get_contents($template); + $channelLinkImageClass = ''; + $channelLinkNameClass = ''; if (!empty($advancedCustom->showChannelPhotoOnVideoItem)) { $photo = User::getPhoto($users_id); }else{ $photo = ''; + $channelLinkImageClass = 'hidden'; } if (!empty($advancedCustom->showChannelNameOnVideoItem)) { $name = strip_tags(User::getNameIdentificationById($users_id)); }else{ $name = ''; + $channelLinkNameClass = 'hidden'; } if ($ignoreLinks) { $channelLink = '#'; } else { $channelLink = User::getChannelLink($users_id); } - $channelLinkClass = ''; - if(empty($photo) && empty($name)){ - $channelLinkClass = 'hidden'; - } $search = [ '{photo}', '{channelLink}', '{name}', - '{channelLinkClass}', + '{channelLinkImageClass}', + '{channelLinkNameClass}', '{icon}', '{subscriptionButton}', '{html}' @@ -6359,7 +6360,8 @@ if (!class_exists('Video')) { $photo, $channelLink, $name, - $channelLinkClass, + $channelLinkImageClass, + $channelLinkNameClass, User::getEmailVerifiedIcon($users_id), Subscribe::getButton($users_id), $html, diff --git a/view/videoCreator.html b/view/videoCreator.html index 2859595297..4ca0c3643c 100644 --- a/view/videoCreator.html +++ b/view/videoCreator.html @@ -1,11 +1,11 @@
- + {name} Photo
{subscriptionButton}
- + {name} {icon}