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