issue: reply posts in article elements
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 25 Nov 2021 23:14:31 +0000 (00:14 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 26 Nov 2021 00:04:55 +0000 (01:04 +0100)
More appropriate than list items.  Requires stylesheet changes.

widget/reply.php

index f8984aae185e29b7b413bc8dc8f954de1f1338e6..4f6a2c88242f4f1ed5876c52b98a56826370a213 100644 (file)
@@ -28,12 +28,12 @@ if ($row = $query->fetch()) {
        $Page->teaser = $row->raw;
 }
 
-print '<ul class="replies">';
+print '<section class="replies">';
 
 $imagecount = 0;
 while ($row = $query->fetch()) {
        $rowuser = new User("profile/{$row->author}");
-       printf('<li id="%d">', $row->id);
+       printf('<article id="%d">', $row->id);
        printf('<strong>%s</strong>', $rowuser->html);
        $rowdate = showdate(preg_split('/\D/', $row->created));
        if ($User->admin('beheer') and $row->updated) {
@@ -71,11 +71,11 @@ while ($row = $query->fetch()) {
                }
                print "</ul>\n";
        }
-       print "</li>\n";
+       print "</article>\n";
 }
 
 if ($User->login) {
-       print '<li><hr/>';
+       print '<article><hr />';
        print '<form method="post" action="" enctype="multipart/form-data">';
        if (isset($Issue) and $User->admin("edit {$Page->link}")) {
                print "<aside>\n";
@@ -139,7 +139,7 @@ if ($User->login) {
        print '<input type="submit" value="Plaatsen" />'."\n";
        print "</form>";
        print '<script src="/upload/progress.js"></script>';
-       print "</li>\n";
+       print "</article>\n";
 }
 
-print "</ul>\n\n";
+print "</section>\n\n";