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; -} ?>