From 35d19fcb7fd8ac06ec2dce8423abb40f7ec3e061 Mon Sep 17 00:00:00 2001 From: filesite Date: Sun, 24 Nov 2024 17:13:32 +0800 Subject: [PATCH] add year sort for menus --- themes/beauty/views/site/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/beauty/views/site/index.php b/themes/beauty/views/site/index.php index 904fa25..bb0caf9 100644 --- a/themes/beauty/views/site/index.php +++ b/themes/beauty/views/site/index.php @@ -61,7 +61,9 @@ $main_view_cls = $menu_ext_status == 'opened' ? '' : 'full'; $ids) { + $arrYears = array_keys($viewData['cacheDataByDate']); + arsort($arrYears); + foreach($arrYears as $year) { $intYear = str_replace('y', '', $year); echo <<calendar {$intYear}年