Go to most recent revision | Blame | Last modification | View Log | RSS feed
<?php
if ($comments = $this->LoadRecentComments())
{
foreach ($comments as $comment)
{
// day header
list($day, $time) = explode(" ", $comment["time"]);
if ($day != $curday)
{
if ($curday) print("<br />\n");
print("<b>$day:</b><br />\n");
$curday = $day;
}
// print entry
print(" (".$comment["time"].") <a href=\"".$this->href("", $comment["comment_on"], "show_comments=1")."#".$comment["tag"]."\">".$comment["comment_on"]."</a> . . . . ".$this->Format($comment["user"])."<br />\n");
}
}
else
{
print("<i>Pas de commentaires récents.</i>");
}
?>