From 8881b3b6697721ad7d4a0f71c606c24ca3b9fe66 Mon Sep 17 00:00:00 2001 From: filesite Date: Thu, 11 Jul 2024 08:56:46 +0800 Subject: [PATCH] total number show improve --- themes/beauty/views/site/index.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/themes/beauty/views/site/index.php b/themes/beauty/views/site/index.php index 7a19380..27aacea 100644 --- a/themes/beauty/views/site/index.php +++ b/themes/beauty/views/site/index.php @@ -80,9 +80,16 @@ if (!empty($category['files'])) { if (!empty($breadcrumbs)) { + $totalNum = ''; + if ($total > 0) { + $totalNum = <<总数 {$total} +eof; + } + echo << - 总数 {$total} + {$totalNum} 当前位置: 首页 / eof;