$replies = placeholder_include('reply'); # handle updates
$Article->title .= ': '.htmlspecialchars($Issue->subject);
+ $Article->teaser = $Issue->body;
+ $Article->body = $replies; # find image
+
print "<h2>{$Article->title}</h2>\n";
print "<dl class=\"aside right sidebar\">\n";
print '<dt>Geplaatst</dt>';
$subsql = "SELECT count(*) FROM comments WHERE page=i.page||'/'||i.id";
$cols = "*, ($subsql AND message IS NOT NULL) AS replycount";
-$cols .= ", ($subsql AND message ~ 'img') AS imagecount";
+$cols .= ", ($subsql AND message ~ '<img') AS imagecount";
$sql = "SELECT $cols FROM issues i WHERE page = ?";
if (isset($_GET['open'])) {
$sql .= ' AND closed IS NULL';
);
}
if ($row->imagecount) {
- print ' <span class="right icon images" title="afbeeldingen">🖼</span>';
+ print ' <span class="right icon icon-camera" title="afbeeldingen">📷</span>';
}
if ($row->replycount) {
printf(' <span class=right>%s %d</span>',
- '<span class="icon replies" title="reacties">🗩</span>',
+ '<span class="icon icon-comment" title="reacties">🗨</span>',
$row->replycount
);
}