Add blog param utime to mark the entry as updated

Add utime => strtotime(<date>) to the $blogentry header to enable
the feature for the post. It will still be sorted by ctime, but the post
will show the utime with an updated note in the date field instead.
This commit is contained in:
Markus Koch 2017-08-06 09:36:54 +02:00
parent c5485ea9f8
commit 01a6042468

View File

@ -110,7 +110,14 @@
}
echo "<blogheading><table><tr><td><h1><a href=\"$blogentry->permalink\">$blogentry->title</a></h1></td>";
//echo '<td class="date">' . date("l, F jS Y, H:i", $blogentry->ctime) . "</td></tr></table></blogheading>";
echo '<td class="head"><span class="author">' . $blogentry->author . '</span> | <span class="date">' . date("l, F jS Y, H:i", $blogentry->ctime) . "</span></td></tr></table></blogheading>";
echo '<td class="head"><span class="author">' . $blogentry->author . '</span> | <span title="Original release: ' . date("l, F jS Y, H:i", $blogentry->ctime) . '" class="date">';
if (isset($blogentry->utime)) {
echo "Updated " . date("l, F jS Y, H:i", $blogentry->utime);
} else {
echo date("l, F jS Y, H:i", $blogentry->ctime);
}
echo "</span></td></tr></table></blogheading>";
}
return $renderIt;