need('header.php'); ?>

title() ?>

to($quantity); ?>

共包含 publishedPostsNum(); ?> 篇文章

options->showallwords): ?>

publishedPostsNum)->to($archives); $year = 0; $mon = 0; $output = '
'; while ($archives->next()) { $year_tmp = date('Y', $archives->created); $mon_tmp = date('m', $archives->created); // 检查年份和月份是否变化 if ($year != $year_tmp) { if ($year > 0) { $output .= '
'; // 结束上一个年份的ul和div } $year = $year_tmp; $mon = 0; // 更新年份和重置月份 $output .= '

' . date('Y', $archives->created) . '

'; // 输出新的年份 } if ($mon != $mon_tmp) { if ($mon > 0) { $output .= ''; // 结束上一个月份的ul } $mon = $mon_tmp; // 更新月份 $output .= '

'. date('M', $archives->created) . '

'; // 确保结束最后一个月份列表和div } $output .= '
'; // 结束归档div echo $output; ?>
need('footer.php'); ?>