summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-04-30 19:06:11 +0200
committerThomas Lange <code@nerdmind.de>2017-04-30 19:06:11 +0200
commit37bb37f5a96dffa898b341c5ecf1231f1874fef1 (patch)
tree101e1af73f4c028e2c1a256466446cd01f07e5c5 /template
parent22477a3bfb3f31e2f52775cf298628405e1ff899 (diff)
downloadblog-37bb37f5a96dffa898b341c5ecf1231f1874fef1.tar.gz
blog-37bb37f5a96dffa898b341c5ecf1231f1874fef1.tar.xz
blog-37bb37f5a96dffa898b341c5ecf1231f1874fef1.zip
The date of publication is now displayed in the lists.
Diffstat (limited to 'template')
-rw-r--r--template/admin/html/page/item.php5
-rw-r--r--template/admin/html/post/item.php5
-rw-r--r--template/admin/html/user/item.php3
-rw-r--r--template/admin/lang/de.php5
-rw-r--r--template/admin/lang/en.php5
5 files changed, 21 insertions, 2 deletions
diff --git a/template/admin/html/page/item.php b/template/admin/html/page/item.php
index 1a382bd..a19afa9 100644
--- a/template/admin/html/page/item.php
+++ b/template/admin/html/page/item.php
@@ -1,7 +1,10 @@
<li class="item-list-li page">
<header>
<h2><i class="fa fa-file-text-o"></i><?=escapeHTML($PAGE['ATTR']['NAME'])?><span>#<?=$PAGE['ID']?></span></h2>
- <div><a class="brackets" href="<?=Application::getAdminURL("user/update.php?id={$USER['ID']}")?>"><?=escapeHTML($USER['ATTR']['FULLNAME'])?></a></div>
+ <div>
+ <a class="brackets" href="<?=Application::getAdminURL("user/update.php?id={$USER['ID']}")?>"><?=escapeHTML($USER['ATTR']['FULLNAME'])?></a>
+ <time class="brackets" datetime="<?=$PAGE['ATTR']['TIME_INSERT']?>"><?=parseDatetime($PAGE['ATTR']['TIME_INSERT'], $Language->template('date_format'))?></time>
+ </div>
</header>
<blockquote cite="<?=$PAGE['URL']?>">
<p><?=excerpt($PAGE['BODY']['HTML'])?></p>
diff --git a/template/admin/html/post/item.php b/template/admin/html/post/item.php
index f84a2e2..750b03d 100644
--- a/template/admin/html/post/item.php
+++ b/template/admin/html/post/item.php
@@ -1,7 +1,10 @@
<li class="item-list-li post">
<header>
<h2><i class="fa fa-newspaper-o"></i><?=escapeHTML($POST['ATTR']['NAME'])?><span>#<?=$POST['ID']?></span></h2>
- <div><a class="brackets" href="<?=Application::getAdminURL("user/update.php?id={$USER['ID']}")?>"><?=escapeHTML($USER['ATTR']['FULLNAME'])?></a></div>
+ <div>
+ <a class="brackets" href="<?=Application::getAdminURL("user/update.php?id={$USER['ID']}")?>"><?=escapeHTML($USER['ATTR']['FULLNAME'])?></a>
+ <time class="brackets" datetime="<?=$POST['ATTR']['TIME_INSERT']?>"><?=parseDatetime($POST['ATTR']['TIME_INSERT'], $Language->template('date_format'))?></time>
+ </div>
</header>
<blockquote cite="<?=$POST['URL']?>">
<p><?=excerpt($POST['BODY']['HTML'])?></p>
diff --git a/template/admin/html/user/item.php b/template/admin/html/user/item.php
index 13ba4ae..439916e 100644
--- a/template/admin/html/user/item.php
+++ b/template/admin/html/user/item.php
@@ -1,6 +1,9 @@
<li class="item-list-li user">
<header>
<h2><i class="fa fa-user"></i><?=escapeHTML($USER['ATTR']['FULLNAME'])?><span>#<?=$USER['ID']?></span></h2>
+ <div>
+ <time class="brackets" datetime="<?=$USER['ATTR']['TIME_INSERT']?>"><?=parseDatetime($USER['ATTR']['TIME_INSERT'], $Language->template('date_format'))?></time>
+ </div>
</header>
<blockquote cite="<?=$USER['URL']?>">
<p><?=excerpt($USER['BODY']['HTML'])?></p>
diff --git a/template/admin/lang/de.php b/template/admin/lang/de.php
index 1c5233c..7ab1faf 100644
--- a/template/admin/lang/de.php
+++ b/template/admin/lang/de.php
@@ -9,6 +9,11 @@
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
#===============================================================================
+# Date format
+#===============================================================================
+$LANGUAGE['date_format'] = '[D].[M].[Y]';
+
+#===============================================================================
# Item last text
#===============================================================================
$LANGUAGE['last_post'] = 'Letzter Post';
diff --git a/template/admin/lang/en.php b/template/admin/lang/en.php
index 5ac8066..a48ec5c 100644
--- a/template/admin/lang/en.php
+++ b/template/admin/lang/en.php
@@ -9,6 +9,11 @@
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
#===============================================================================
+# Date format
+#===============================================================================
+$LANGUAGE['date_format'] = '[Y]-[M]-[D]';
+
+#===============================================================================
# Item last text
#===============================================================================
$LANGUAGE['last_post'] = 'Last post';