issue: metadata list in aside container
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 17 May 2020 03:06:19 +0000 (05:06 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Sun, 7 Jun 2020 05:44:46 +0000 (07:44 +0200)
Better semantics, benefits from common aside styling.

issue/index.php

index 6aebf8e2ff5032317adcab4e6b5322b86392d0f8..cc17f0310ac0cb44f0a1018477fb51dd4256c074 100644 (file)
@@ -18,7 +18,7 @@ if ($id and ctype_digit($id)) {
        $Article->body = $replies;  # find image
 
        print "<h2>{$Article->title}</h2>\n";
-       print "<dl class=\"aside right sidebar\">\n";
+       print '<aside class="metadata"><dl>'."\n";
        print '<dt>Geplaatst</dt>';
        printf('<dd>%s</dd>'."\n", showdate(preg_split('/\D/', $Issue->created)));
        if ($Issue->author and $author = new User('profile/'.$Issue->author, FALSE)) {
@@ -32,7 +32,7 @@ if ($id and ctype_digit($id)) {
                print '<dt>Opgelost</dt>';
                printf('<dd>%s</dd>'."\n", showdate(preg_split('/\D/', $Issue->closed)));
        }
-       print "</dl>\n\n";
+       print "</dl></aside>\n\n";
 
        print '<div>';
        print $Issue->body;