git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
head: include canonical location in og:url
[minimedit.git]
/
issue
/
index.php
diff --git
a/issue/index.php
b/issue/index.php
index 332179ef90ebaf24f9b26b2044169f74f57d79e0..6aebf8e2ff5032317adcab4e6b5322b86392d0f8 100644
(file)
--- a/
issue/index.php
+++ b/
issue/index.php
@@
-14,6
+14,9
@@
if ($id and ctype_digit($id)) {
$replies = placeholder_include('reply'); # handle updates
$Article->title .= ': '.htmlspecialchars($Issue->subject);
$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>';
print "<h2>{$Article->title}</h2>\n";
print "<dl class=\"aside right sidebar\">\n";
print '<dt>Geplaatst</dt>';
@@
-54,7
+57,7
@@
if ($_POST) {
$subsql = "SELECT count(*) FROM comments WHERE page=i.page||'/'||i.id";
$cols = "*, ($subsql AND message IS NOT NULL) AS replycount";
$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';
$sql = "SELECT $cols FROM issues i WHERE page = ?";
if (isset($_GET['open'])) {
$sql .= ' AND closed IS NULL';
@@
-79,15
+82,15
@@
while ($row = $query->fetch()) {
showdate(array_slice(preg_split('/\D/', $row->updated), 0, 3))
);
}
showdate(array_slice(preg_split('/\D/', $row->updated), 0, 3))
);
}
- if ($row->imagecount) {
- print ' <span class="right icon icon-camera" title="afbeeldingen">📷</span>';
- }
if ($row->replycount) {
printf(' <span class=right>%s %d</span>',
'<span class="icon icon-comment" title="reacties">🗨</span>',
$row->replycount
);
}
if ($row->replycount) {
printf(' <span class=right>%s %d</span>',
'<span class="icon icon-comment" title="reacties">🗨</span>',
$row->replycount
);
}
+ if ($row->imagecount) {
+ print ' <span class="right icon icon-camera" title="afbeeldingen">📷</span>';
+ }
if (isset($row->assign)) {
print ' <em class="right">'.$row->assign.'</em>';
}
if (isset($row->assign)) {
print ' <em class="right">'.$row->assign.'</em>';
}