欢迎访问 舍力博客(www.shuyong.net)
$url .=BLOG_URL.''然后在该判断的地方加入代码
<?php if($comment['url']==$url){?>此处自定义代码函数<?php }?>
<?php //blog:子评论列表 function blog_comments_children($comments, $children){ $url .=BLOG_URL.''; $isGravatar = Option::get('isgravatar'); foreach($children as $child): $comment = $comments[$child]; $comment['poster'] = $comment['url'] ? '<a href="'.$comment['url'].'" target="_blank">'.$comment['poster'].'</a>' : $comment['poster']; ?> <div class="comment comment-children" id="comment-<?php echo $comment['cid']; ?>"> <a name="<?php echo $comment['cid']; ?>"></a> <?php if($isGravatar == 'y'): ?><div class="avatar"><img src="<?php echo getGravatar($comment['mail']); ?>" /></div><?php endif; ?> <div class="comment-info"> <b><?php echo $comment['poster']; ?> </b><br /><span class="comment-time"><?php echo $comment['date']; ?></span> <div class="comment-content"<?php if(($comment['url']==$url)||($comment['mail']=='sl@shuyong.net')){?> style="color:#F00;"<?php }?>><?php echo $comment['content']; ?></div> <?php if($comment['level'] < 4): ?><div class="comment-reply"><a href="#comment-<?php echo $comment['cid']; ?>" onclick="commentReply(<?php echo $comment['cid']; ?>,this)">回复</a></div><?php endif; ?> </div> <?php blog_comments_children($comments, $comment['children']);?> </div> <?php endforeach; ?> <?php }?>如对教程有疑问,请直接在下方留言。
留言/评论:◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。