文章归档

共有 to($stat);?>publishedPostsNum() ?> 篇文章,allOfCharacters();?> 文字

widget('Widget_Contents_Post_Recent', 'pageSize=10000')->to($archives); $year = 0; $mon = 0; $i = 0; $j = 0; while ($archives->next()): if (empty($archives->title) || $archives->title == " ") continue; $year_tmp = date('Y',$archives->created); $mon_tmp = date('m',$archives->created); $y = $year; $m = $mon; if ($mon != $mon_tmp && $mon > 0) $output .= ''; if ($year != $year_tmp && $year > 0) $output .= ''; if ($year != $year_tmp) { $year = $year_tmp; $output .= '

'. $year .'

'; echo $output; ?>