aboutsummaryrefslogtreecommitdiffstats
path: root/template/admin/html
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-04-29 01:09:30 +0200
committerThomas Lange <code@nerdmind.de>2017-04-29 01:13:32 +0200
commit9626fb5c6a4d7451e88aa7bd7fa91306d3f3f1ea (patch)
treefd3a488d2f910781ef172b5447f3a476cdf0379e /template/admin/html
parent07eaab716f894b7668fd2aea6c3cbe81036efdf2 (diff)
downloadblog-9626fb5c6a4d7451e88aa7bd7fa91306d3f3f1ea.tar.gz
blog-9626fb5c6a4d7451e88aa7bd7fa91306d3f3f1ea.tar.xz
blog-9626fb5c6a4d7451e88aa7bd7fa91306d3f3f1ea.zip
Two changes have been made in this commit:
+ The method "Item::getArguments" has been optimized and checks now the syntax of the argument names (only A-Z, a-z, 0-9 and underscores are allowed). + The admin template has been changed and displays now the used arguments of an item within the list.
Diffstat (limited to 'template/admin/html')
-rw-r--r--template/admin/html/page/item.php9
-rw-r--r--template/admin/html/post/item.php9
-rw-r--r--template/admin/html/user/item.php9
3 files changed, 27 insertions, 0 deletions
diff --git a/template/admin/html/page/item.php b/template/admin/html/page/item.php
index 584a539..1a382bd 100644
--- a/template/admin/html/page/item.php
+++ b/template/admin/html/page/item.php
@@ -6,6 +6,15 @@
<blockquote cite="<?=$PAGE['URL']?>">
<p><?=excerpt($PAGE['BODY']['HTML'])?></p>
</blockquote>
+
+ <?php if($PAGE['ARGV']): ?>
+ <ul class="arguments">
+ <?php foreach($PAGE['ARGV'] as $argument => $value): ?>
+ <li><strong><?=$argument?></strong>: <span class="blue"><?=escapeHTML($value)?></span></li>
+ <?php endforeach; ?>
+ </ul>
+ <?php endif; ?>
+
<footer>
<ul>
<li><a href="<?=$PAGE['URL']?>" target="_blank" title="<?=$Language->text('select_page')?>"><i class="fa fa-external-link"></i></a></li>
diff --git a/template/admin/html/post/item.php b/template/admin/html/post/item.php
index 1808a6b..f84a2e2 100644
--- a/template/admin/html/post/item.php
+++ b/template/admin/html/post/item.php
@@ -6,6 +6,15 @@
<blockquote cite="<?=$POST['URL']?>">
<p><?=excerpt($POST['BODY']['HTML'])?></p>
</blockquote>
+
+ <?php if($POST['ARGV']): ?>
+ <ul class="arguments">
+ <?php foreach($POST['ARGV'] as $argument => $value): ?>
+ <li><strong><?=$argument?></strong>: <span class="blue"><?=escapeHTML($value)?></span></li>
+ <?php endforeach; ?>
+ </ul>
+ <?php endif; ?>
+
<footer>
<ul>
<li><a href="<?=$POST['URL']?>" target="_blank" title="<?=$Language->text('select_post')?>"><i class="fa fa-external-link"></i></a></li>
diff --git a/template/admin/html/user/item.php b/template/admin/html/user/item.php
index 8f0cba1..13ba4ae 100644
--- a/template/admin/html/user/item.php
+++ b/template/admin/html/user/item.php
@@ -5,6 +5,15 @@
<blockquote cite="<?=$USER['URL']?>">
<p><?=excerpt($USER['BODY']['HTML'])?></p>
</blockquote>
+
+ <?php if($USER['ARGV']): ?>
+ <ul class="arguments">
+ <?php foreach($USER['ARGV'] as $argument => $value): ?>
+ <li><strong><?=$argument?></strong>: <span class="blue"><?=escapeHTML($value)?></span></li>
+ <?php endforeach; ?>
+ </ul>
+ <?php endif; ?>
+
<footer>
<ul>
<li><a href="<?=$USER['URL']?>" target="_blank" title="<?=$Language->text('select_user')?>"><i class="fa fa-external-link"></i></a></li>