aurweb/web/template/pkg_comments.php
Loui Chang 24c9955b3c Revamp markup and styles for comments.
Make post date consistent with other dates.
Look Ma, no tables!

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-18 23:01:25 -05:00

27 lines
767 B
PHP

<div class="pgbox">
<?php
while (list($indx, $carr) = each($comments)) { ?>
<div class="comment-header"><?php
if (canDeleteComment($carr['ID'], $atype, $SID)) {
$durl = '<a href="pkgedit.php?del_Comment=1';
$durl.= '&comment_id=' . $carr['ID'] . '&ID=' . $row['ID'];
$durl.= '"><img src="images/x.png" border="0"';
$durl.= ' alt="' . __("Delete comment") . '"></a> ';
echo $durl;
}
if ($SID) {
$carr['UserName'] = "<a href=\"account.php?Action=AccountInfo&amp;ID={$carr['UsersID']}\">{$carr['UserName']}</a>";
}
echo __('Comment by: %s on %s', $carr['UserName'], gmdate('r', $carr['CommentTS']));
?></div>
<blockquote class="comment-body">
<div>
<?php echo nl2br(htmlspecialchars($carr['Comments'])) ?>
</div>
</blockquote>
<?php
} ?>
</div>