From 4b4cffa0f3dd28ccc57bd4f0902d208a1fd22551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Fri, 17 Oct 2025 12:24:56 +0400 Subject: [PATCH] feat: hide video count --- ajax/load-more-videos.php | 4 +++- includes/featured-videos.php | 2 ++ includes/recent-videos.php | 2 ++ video.php | 6 +++++- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ajax/load-more-videos.php b/ajax/load-more-videos.php index 3bfc18b..921e144 100644 --- a/ajax/load-more-videos.php +++ b/ajax/load-more-videos.php @@ -109,7 +109,9 @@ foreach ($videos as $video) { $html .= '

' . htmlspecialchars($video['title']) . '

'; $html .= '
' . htmlspecialchars($video['channel']) . '
'; $html .= '
'; - $html .= ' ' . formatViewCount($video['views']) . ' vues'; + if (defined('SHOW_VIDEO_VIEWS') && SHOW_VIDEO_VIEWS) { + $html .= ' ' . formatViewCount($video['views']) . ' vues'; + } $html .= ' ' . formatDate($video['date']) . ''; $html .= '
'; $html .= ' '; diff --git a/includes/featured-videos.php b/includes/featured-videos.php index 3192d5f..8a6f62d 100644 --- a/includes/featured-videos.php +++ b/includes/featured-videos.php @@ -19,7 +19,9 @@ foreach ($featuredVideos as $video):

+ vues +
diff --git a/includes/recent-videos.php b/includes/recent-videos.php index 2f7b699..eeba88c 100644 --- a/includes/recent-videos.php +++ b/includes/recent-videos.php @@ -19,7 +19,9 @@ foreach ($recentVideos as $video):

+ vues +
diff --git a/video.php b/video.php index fe0395f..4674ac8 100644 --- a/video.php +++ b/video.php @@ -141,7 +141,7 @@ if (empty($videoData) || isset($videoData['error'])) { "> - + @@ -216,7 +216,9 @@ if (empty($videoData) || isset($videoData['error'])) {
@@ -440,7 +442,9 @@ if (empty($videoData) || isset($videoData['error'])) {
+ vues +