Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
433 ddelon 1
<?php
2
 
3
if ($comments = $this->LoadRecentComments())
4
{
5
	foreach ($comments as $comment)
6
	{
7
		// day header
8
		list($day, $time) = explode(" ", $comment["time"]);
9
		if ($day != $curday)
10
		{
11
			if ($curday) print("<br />\n");
12
			print("<b>$day:</b><br />\n");
13
			$curday = $day;
14
		}
15
 
16
		// print entry
17
		print("&nbsp;&nbsp;&nbsp;(".$comment["time"].") <a href=\"".$this->href("", $comment["comment_on"], "show_comments=1")."#".$comment["tag"]."\">".$comment["comment_on"]."</a> . . . . ".$this->Format($comment["user"])."<br />\n");
18
	}
19
}
20
else
21
{
22
	print("<i>Pas de commentaires récents.</i>");
23
}
24
 
25
?>