From 01a6042468ea07edd70809aa251ba23ec75fa567 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sun, 6 Aug 2017 09:36:54 +0200 Subject: [PATCH] Add blog param utime to mark the entry as updated Add utime => strtotime() 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. --- blog.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/blog.php b/blog.php index 7b6083c..6da8382 100644 --- a/blog.php +++ b/blog.php @@ -110,7 +110,14 @@ } echo ""; //echo '

permalink\">$blogentry->title

' . date("l, F jS Y, H:i", $blogentry->ctime) . "
"; - echo '' . $blogentry->author . ' | ' . date("l, F jS Y, H:i", $blogentry->ctime) . ""; + echo '' . $blogentry->author . ' | 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 ""; + } return $renderIt;