From 03d84abee9a8f0cf97a454750e228f8abfce83fb Mon Sep 17 00:00:00 2001 From: Alexander Andreev Date: Sat, 21 Feb 2026 14:57:48 +0300 Subject: [PATCH] Public: always show detail counter label in photo view --- index.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index b253e23..117ff8d 100644 --- a/index.php +++ b/index.php @@ -226,6 +226,9 @@ if ($activeTopicId > 0 && $activeTopicName !== '') { } elseif ($detailSectionId > 0 && isset($sectionNames[$detailSectionId])) { $detailLocationLabel = 'в разделе «' . $sectionNames[$detailSectionId] . '»'; } +$detailCounterLabel = $detailTotal > 0 + ? ('Фото ' . $detailIndex . ' из ' . $detailTotal . ($detailLocationLabel !== '' ? ' ' . $detailLocationLabel : '')) + : ''; $pageHeading = ''; if ($isTopicMode && $activeTopicShortName !== '') { @@ -579,10 +582,10 @@ function outputWatermarked(string $path, string $mime): never
- +
-
До обработки
- 0): ?>
Фото из
+
До обработки
+
@@ -590,7 +593,14 @@ function outputWatermarked(string $path, string $mime): never
-
После обработки
+ +
После обработки
+ +
+
После обработки
+
+
+
@@ -627,7 +637,7 @@ function outputWatermarked(string $path, string $mime): never 0): ?>