issue: metadata list in aside container
[minimedit.git] / issue / index.php
index 3f665db3456ea9e859dbc5b1d44b66aa6512bedf..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;
@@ -82,15 +82,15 @@ while ($row = $query->fetch()) {
                        showdate(array_slice(preg_split('/\D/', $row->updated), 0, 3))
                );
        }
-       if ($row->imagecount) {
-               print ' <span class="right icon icon-camera" title="afbeeldingen">&#x1F4F7;</span>';
-       }
        if ($row->replycount) {
                printf(' <span class=right>%s %d</span>',
                        '<span class="icon icon-comment" title="reacties">&#x1F5E8;</span>',
                        $row->replycount
                );
        }
+       if ($row->imagecount) {
+               print ' <span class="right icon icon-camera" title="afbeeldingen">&#x1F4F7;</span>';
+       }
        if (isset($row->assign)) {
                print ' <em class="right">'.$row->assign.'</em>';
        }