From cab6c37b88830a0b3b6dcbdcb40c240b334c3b8f Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 25 Sep 2019 20:26:38 +0200 Subject: add time for optlist filter --- app/class/modelrender.php | 3 +++ app/class/optlist.php | 11 +++++++++++ 2 files changed, 14 insertions(+) (limited to 'app/class') diff --git a/app/class/modelrender.php b/app/class/modelrender.php index f76a922..d0be54c 100644 --- a/app/class/modelrender.php +++ b/app/class/modelrender.php @@ -618,6 +618,9 @@ class Modelrender extends Modelart if($optlist->date()) { $content .= '' . $page->date('pdate') . '' . PHP_EOL; } + if($optlist->time()) { + $content .= '' . $page->date('ptime') . '' . PHP_EOL; + } if($optlist->author()) { $content .= $page->authors('string') . PHP_EOL; } diff --git a/app/class/optlist.php b/app/class/optlist.php index 1fed661..e21e421 100644 --- a/app/class/optlist.php +++ b/app/class/optlist.php @@ -6,6 +6,7 @@ class Optlist extends Opt protected $description = 0; protected $thumbnail = 0; protected $date = 0; + protected $time = 0; protected $author = 0; protected $style = 0; @@ -53,6 +54,11 @@ class Optlist extends Opt return $this->date; } + public function time() + { + return $this->time; + } + public function author() { return $this->author; @@ -86,6 +92,11 @@ class Optlist extends Opt $this->date = intval($date); } + public function settime($time) + { + $this->time = intval($time); + } + public function setauthor($author) { $this->author = intval($author); -- cgit v1.2.3