作者为 David Cramer | 访问插件主页

俺这是9时区设置,8时区的话,请自行修改

修改\themes\default\main.inc.

主要需要修改5个地方, today  yesterday  以及下面3个

[code lang=""]

<?
$day = '';
if (count($events))
{
$today = date('m d Y', time() - 54000);
$yesterday = date('m d Y', time() -140400);
if ($has_paging)
{
if ($has_prev_page) {
echo '<p><a href="' . $->get_previous_page_url($page) .

'">Newer Entries</a></p>';
}
}
?>
<table>
<?
foreach ($events as $event)
{
$ = $event->get_date();
if ($today == date('m d Y', $ -32400)) $this_day = $->__('Today');
else if ($yesterday == date('m d Y', $-32400)) $this_day = $->__('Yesterday');
else $this_day = $->__(ucfirst(htmlentities(date($->get_option('day_format'),

$-82400))));
if ($day != $this_day)
{
?>
<tr>
<th colspan="2">
<h2><? echo $this_day; ?></h2>
</th>
</tr>
<?
$day = $this_day;
}
..............
[/code]

标签:, , , , ,

相关日志


相关博文

评论

Good.Be the first to comment on this entry.

Post comment

comment has COPYRIGHT too!