diff options
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/modelrender.php | 3 | ||||
-rw-r--r-- | app/class/optlist.php | 11 |
2 files changed, 14 insertions, 0 deletions
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 .= '<code>' . $page->date('pdate') . '</code>' . PHP_EOL; } + if($optlist->time()) { + $content .= '<code>' . $page->date('ptime') . '</code>' . 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); |