From 2fa9b701ea1bf4cdb0a380c00f8433e93267d6d4 Mon Sep 17 00:00:00 2001 From: filesite Date: Wed, 24 Jul 2024 08:33:31 +0800 Subject: [PATCH] always show breadcrumbs --- themes/beauty/views/site/index.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/themes/beauty/views/site/index.php b/themes/beauty/views/site/index.php index 6df9716..1732ee1 100644 --- a/themes/beauty/views/site/index.php +++ b/themes/beauty/views/site/index.php @@ -82,37 +82,37 @@ if (!empty($category['files'])) { } -if (!empty($breadcrumbs)) { - $totalNum = ''; - if ($total > 0) { - $totalNum = << 0) { + $totalNum = <<总数 {$total} eof; - } +} - echo << {$totalNum} 当前位置: - 首页 / + 首页 eof; +if (!empty($breadcrumbs)) { foreach ($breadcrumbs as $bread) { if ($bread['id'] != $selectedId) { echo <<{$bread['name']} / + / {$bread['name']} eof; } else { echo <<{$bread['name']} + / {$bread['name']} eof; } } +} - echo << eof; -} ?>