diff --git a/objects/video.php b/objects/video.php index 961d29daaf71..03a6dd9960a2 100644 --- a/objects/video.php +++ b/objects/video.php @@ -6602,7 +6602,7 @@ public static function getVideosListItem($videos_id, $divID = '', $style = '') return str_replace($search, $replace, $templateContent); } - public static function generatePlaylistButtons($videos_id, $buttonClass = 'btn btn-dark btn-xs', $iconStyle = 'color: #4285f4;', $isVertical = true) + public static function generatePlaylistButtons($videos_id, $buttonClass = 'btn btn-dark btn-xs', $style = 'background-color: #11111199;', $isVertical = true) { if (empty($videos_id) || !User::isLogged()) { return ''; @@ -6621,8 +6621,8 @@ public static function generatePlaylistButtons($videos_id, $buttonClass = 'btn b $favoriteBtnStyle = $isFavorite ? "display: none;" : ""; // Add a layout style to force vertical stacking if required - $layoutStyle = $isVertical ? "display: block; margin-bottom: 5px;" : "display: inline-block; margin-right: 5px;"; - $layoutStyle .= 'display: none;'; + $layoutStyle = $isVertical ? "display: block;" : "display: inline-block; margin-right: 5px;"; + $layoutStyle .= 'display: none;'; $placement = 'top'; if ($isVertical) { $placement = 'left'; @@ -6630,11 +6630,11 @@ public static function generatePlaylistButtons($videos_id, $buttonClass = 'btn b // Generate the buttons for Watch Later and Favorite $buttonsHTML = ' - - '; // Add line break for vertical layout @@ -6643,10 +6643,10 @@ public static function generatePlaylistButtons($videos_id, $buttonClass = 'btn b } $buttonsHTML .= ' - - '; $buttonsHTML .= ''; @@ -6720,7 +6720,7 @@ public static function getVideoImagewithHoverAnimationFromVideosId($videos_id, $ $galleryVideoButtons = ''; $galleryDropDownMenu = Gallery::getVideoDropdownMenu($videos_id); - + $galleryVideoButtons .= ''; $galleryVideoButtons .= '
'; $galleryVideoButtons .= self::generatePlaylistButtons($videos_id); @@ -6728,7 +6728,7 @@ public static function getVideoImagewithHoverAnimationFromVideosId($videos_id, $ $galleryVideoButtons .= '
'; } - $galleryVideoButtons .= '
'.$galleryDropDownMenu ; + $galleryVideoButtons .= '
' . $galleryDropDownMenu; $galleryVideoButtons .= '
'; // Get links for the video or playlist diff --git a/plugin/YouPHPFlix2/view/modeFlixBody.php b/plugin/YouPHPFlix2/view/modeFlixBody.php index 830df765ba96..055f50a1aa20 100644 --- a/plugin/YouPHPFlix2/view/modeFlixBody.php +++ b/plugin/YouPHPFlix2/view/modeFlixBody.php @@ -146,10 +146,12 @@ ?> '; } ?> @@ -192,7 +194,7 @@ diff --git a/plugin/YouPHPFlix2/view/row.php b/plugin/YouPHPFlix2/view/row.php index e4d6288c46c8..db8ebbe6a048 100644 --- a/plugin/YouPHPFlix2/view/row.php +++ b/plugin/YouPHPFlix2/view/row.php @@ -72,6 +72,9 @@ class="tile__img thumbsJPG img img-responsive carousel- +
+ +
paidOnlyShowLabels && $obj->paidOnlyLabelOverPoster) { foreach ($value['tags'] as $value2) { diff --git a/view/css/main.css b/view/css/main.css index e3648e36fd0f..d01bc0cfa7e1 100644 --- a/view/css/main.css +++ b/view/css/main.css @@ -1000,6 +1000,10 @@ img.blur { border-color: #000; } +.btn-dark.watchLaterBtnAdded, .btn-dark.favoriteBtnAdded { + color: #4285f4; +} + .opacityBtn { opacity: 0.2; }