mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Create gallery::date_time(), gallery::date() and gallery::time()
functions that format a unix timestamp into a date+time/date/time string. Partial fix for ticket #347.
This commit is contained in:
@@ -8,8 +8,9 @@
|
||||
width="40"
|
||||
height="40" />
|
||||
</a>
|
||||
<?= t("on ") . date("Y-M-d H:i:s", $comment->created) ?>
|
||||
<a href="#"><?= p::clean($comment->author_name()) ?></a> <?= t("said") ?>
|
||||
<?= t("on %date_time, %author_name said",
|
||||
array("date_time" => gallery::date_time($comment->created),
|
||||
"author_name" => p::clean($comment->author_name()))) ?>
|
||||
</p>
|
||||
<div>
|
||||
<?= p::clean($comment->text) ?>
|
||||
|
||||
Reference in New Issue
Block a user