X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/28665e987ef8be35ce4f7082bd7aa5c91371397a..88fa0277fa6f5acd7e4d075840aca909b18317e0:/widget/reply.php diff --git a/widget/reply.php b/widget/reply.php index 7e7d327..f8984aa 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -34,13 +34,16 @@ $imagecount = 0; while ($row = $query->fetch()) { $rowuser = new User("profile/{$row->author}"); printf('
  • ', $row->id); + printf('%s', $rowuser->html); $rowdate = showdate(preg_split('/\D/', $row->created)); if ($User->admin('beheer') and $row->updated) { $rowdate = "$rowdate " . showdate(preg_split('/\D/', $row->updated)); } - printf('%s %s', - $rowuser->html, $rowdate - ); + printf(' %s', $rowdate); + if ($User->admin('beheer') and $User->admin('user') || $User->login === $row->author) { + printf(' %s', + "/{$Page->link}/{$row->id}", 'reactie aanpassen', "\u{270D}"); + } if ($html = $row->message) { $html = preg_replace('/(?<= 2 ? 'loading="lazy" ' : '', $html, -1, $found); @@ -72,7 +75,7 @@ while ($row = $query->fetch()) { } if ($User->login) { - print '
  • '; + print '

  • '; print '
    '; if (isset($Issue) and $User->admin("edit {$Page->link}")) { print "