need('header.php'); ?>

title() ?>

to($quantity); ?>

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

options->showallwords): ?>

publishedPostsNum)->to($archives); $year = 0; $mon = 0; $output = '
'; // Start archives container while ($archives->next()) { $year_tmp = date('Y', $archives->created); $mon_tmp = date('m', $archives->created); // 检查是否需要新的年份标题 if ($year != $year_tmp) { if ($year > 0) { $output .= '
'; // 结束上一个年份的月份列表和包裹的div } $year = $year_tmp; $mon = 0; // 重置月份 $output .= '

' . $year . '年

'; // 开始新的年份div } // 检查是否需要新的月份标题 if ($mon != $mon_tmp) { if ($mon > 0) { $output .= ''; // 结束上一个月份的列表 } $mon = $mon_tmp; $output .= '

' . $mon . '月

'; $output .= '
    '; // 开始新的月份列表 } // 输出文章项 $output .= '
  • '; $output .= ''; $output .= '
    ' . date('m月d日', $archives->created) . '
  • '; } // 循环后,确保所有标签都已经关闭 if ($mon > 0) { $output .= '
'; // 结束最后一个月份的列表 } if ($year > 0) { $output .= '
'; // 结束最后一个年份的div } $output .= '
'; // End archives container echo $output; ?>
need('footer.php'); ?>