while ($row = $query->fetch()) {
$rowuser = new User("profile/{$row->author}");
printf('<li id="%d">', $row->id);
+ printf('<strong>%s</strong>', $rowuser->html);
$rowdate = showdate(preg_split('/\D/', $row->created));
if ($User->admin('beheer') and $row->updated) {
$rowdate = "<s>$rowdate</s> " . showdate(preg_split('/\D/', $row->updated));
}
- printf('<strong>%s</strong> <small class=date>%s</small>',
- $rowuser->html, $rowdate
- );
+ printf(' <small class=date>%s</small>', $rowdate);
+ if ($User->admin('beheer') and $User->admin('user') || $User->login === $row->author) {
+ printf(' <a href="%s" title="%s" class=icon>%s</a>',
+ "/{$Page->link}/{$row->id}", 'reactie aanpassen', "\u{270D}");
+ }
if ($html = $row->message) {
$html = preg_replace('/(?<=<img )/',
$imagecount > 2 ? 'loading="lazy" ' : '', $html, -1, $found);
}
if ($User->login) {
- print '<li>';
+ print '<li><hr/>';
print '<form method="post" action="" enctype="multipart/form-data">';
if (isset($Issue) and $User->admin("edit {$Page->link}")) {
print "<aside>\n";