coid > $GLOBALS['max_read_id']){ $GLOBALS['max_read_id'] = $comments->coid; } $commentClass = ''; if ($comments->authorId) { if ($comments->authorId == $comments->ownerId) { $commentClass .= ' comment-by-author'; //如果是文章作者的评论添加 .comment-by-author 样式 } else { $commentClass .= ' comment-by-user'; //如果是评论作者的添加 .comment-by-user 样式 } } $commentLevelClass = $comments->_levels > 0 ? ' comment-child' : ' comment-parent'; //评论层数大于0为子级,否则是父级 ?>
author(); ?> created, $options->dateFormat); ?>
content); ?>
allow('comment')): ?> user->hasLogin()): ?>

comments()->to($comments); ?> have()): ?>
listComments(); if ($GLOBALS['max_read_id']>Typecho_Cookie::get('latest_time_id')){//防止阅读ID错误,越界 $GLOBALS['max_read_id'] = Typecho_Cookie::get('latest_time_id'); } if ($GLOBALS['max_read_id'] > Typecho_Cookie::get('user_read_id')){//新的阅读ID大于之前的Id,再去修改这个值 Typecho_Cookie::set('user_read_id', $GLOBALS['max_read_id']); } ?>
    user->screenName(); ?> options->timezone - idate("Z"))); ?>


    这是默认的第一条说说,当你发布第一条说说,刷新页面后,该条动态会自动消失。") ?>