summaryrefslogtreecommitdiffstats
path: root/template/admin/html
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-09-14 23:51:36 +0200
committerThomas Lange <code@nerdmind.de>2017-09-14 23:51:36 +0200
commit3180d399f20d6e7bec41cf986cfbf8e1aafa3587 (patch)
tree24ddabcc6f140a6d006e940edcbf56b5814829f3 /template/admin/html
parenta2556505e5f2d528a6c93958a8c7c9beaf4e002a (diff)
downloadblog-3180d399f20d6e7bec41cf986cfbf8e1aafa3587.tar.gz
blog-3180d399f20d6e7bec41cf986cfbf8e1aafa3587.tar.xz
blog-3180d399f20d6e7bec41cf986cfbf8e1aafa3587.zip
Some markup optimizations has been made to both templates (the HTML5 <article> element is more correct for the purpose of an item list, because real lists should only be used if the order of the items would change the meaning. This is not the case, because each item is a self-contained area which has nothing to do with the other items).
Diffstat (limited to 'template/admin/html')
-rw-r--r--template/admin/html/home.php12
-rw-r--r--template/admin/html/page/index.php4
-rw-r--r--template/admin/html/page/item.php4
-rw-r--r--template/admin/html/post/index.php4
-rw-r--r--template/admin/html/post/item.php4
-rw-r--r--template/admin/html/user/index.php4
-rw-r--r--template/admin/html/user/item.php4
7 files changed, 18 insertions, 18 deletions
diff --git a/template/admin/html/home.php b/template/admin/html/home.php
index 6ade82d..f8a45c5 100644
--- a/template/admin/html/home.php
+++ b/template/admin/html/home.php
@@ -4,9 +4,9 @@
<h2><i class="fa fa-newspaper-o"></i><?=$Language->text('last_post')?></h2>
<p><strong><?=$Language->text('posts')?>:</strong> <?=$COUNT['POST']?> | <a href="<?=Application::getAdminURL('post/')?>"><?=$Language->text('post_overview')?></a> | <a href="<?=Application::getAdminURL('post/insert.php')?>"><?=$Language->text('insert')?></a></p>
<?php if(!empty($LAST['POST'])): ?>
- <ul class="item-list">
+ <div class="item-container post">
<?=$LAST['POST']?>
- </ul>
+ </div>
<?php else: ?>
<p><em><?=$Language->text('home_no_posts')?></em></p>
<?php endif; ?>
@@ -15,9 +15,9 @@
<p><strong><?=$Language->text('pages')?>:</strong> <?=$COUNT['PAGE']?> | <a href="<?=Application::getAdminURL('page/')?>"><?=$Language->text('page_overview')?></a> | <a href="<?=Application::getAdminURL('page/insert.php')?>"><?=$Language->text('insert')?></a></p>
<?php if(!empty($LAST['PAGE'])): ?>
- <ul class="item-list">
+ <div class="item-container page">
<?=$LAST['PAGE']?>
- </ul>
+ </div>
<?php else: ?>
<p><em><?=$Language->text('home_no_pages')?></em></p>
<?php endif; ?>
@@ -26,9 +26,9 @@
<p><strong><?=$Language->text('users')?>:</strong> <?=$COUNT['USER']?> | <a href="<?=Application::getAdminURL('user/')?>"><?=$Language->text('user_overview')?></a> | <a href="<?=Application::getAdminURL('user/insert.php')?>"><?=$Language->text('insert')?></a></p>
<?php if(!empty($LAST['USER'])): ?>
- <ul class="item-list">
+ <div class="item-container user">
<?=$LAST['USER']?>
- </ul>
+ </div>
<?php else: ?>
<p><em><?=$Language->text('home_no_users')?></em></p>
<?php endif; ?>
diff --git a/template/admin/html/page/index.php b/template/admin/html/page/index.php
index 0989796..dbd5144 100644
--- a/template/admin/html/page/index.php
+++ b/template/admin/html/page/index.php
@@ -1,10 +1,10 @@
<h1><i class="fa fa-file-text-o"></i><?=$Language->text('page_overview')?><a class="brackets" href="<?=Application::getAdminURL("page/insert.php")?>"><?=$Language->text('insert')?></a></h1>
<p><?=$Language->text('overview_page_desc')?></p>
-<ul class="item-list page">
+<div class="item-container page">
<?php foreach($LIST['PAGES'] as $page): ?>
<?php echo $page; ?>
<?php endforeach; ?>
-</ul>
+</div>
<?=$PAGINATION['HTML']?> \ No newline at end of file
diff --git a/template/admin/html/page/item.php b/template/admin/html/page/item.php
index 4f0f884..156824b 100644
--- a/template/admin/html/page/item.php
+++ b/template/admin/html/page/item.php
@@ -1,4 +1,4 @@
-<li class="item-list-li page">
+<article class="item">
<header>
<h2><i class="fa fa-file-text-o"></i><?=escapeHTML($PAGE['ATTR']['NAME'])?><span>#<?=$PAGE['ATTR']['ID']?></span></h2>
<div>
@@ -25,4 +25,4 @@
<li><a href="<?=Application::getAdminURL("page/delete.php?id={$PAGE['ATTR']['ID']}")?>" title="<?=$Language->text('delete_page')?>"><i class="fa fa-trash-o"></i></a></li>
</ul>
</footer>
-</li> \ No newline at end of file
+</article> \ No newline at end of file
diff --git a/template/admin/html/post/index.php b/template/admin/html/post/index.php
index 124d39b..a78076e 100644
--- a/template/admin/html/post/index.php
+++ b/template/admin/html/post/index.php
@@ -1,10 +1,10 @@
<h1><i class="fa fa-newspaper-o"></i><?=$Language->text('post_overview')?><a class="brackets" href="<?=Application::getAdminURL("post/insert.php")?>"><?=$Language->text('insert')?></a></h1>
<p><?=$Language->text('overview_post_desc')?></p>
-<ul class="item-list post">
+<div class="item-container post">
<?php foreach($LIST['POSTS'] as $post): ?>
<?php echo $post; ?>
<?php endforeach; ?>
-</ul>
+</div>
<?=$PAGINATION['HTML']?> \ No newline at end of file
diff --git a/template/admin/html/post/item.php b/template/admin/html/post/item.php
index 19b81c1..6707e81 100644
--- a/template/admin/html/post/item.php
+++ b/template/admin/html/post/item.php
@@ -1,4 +1,4 @@
-<li class="item-list-li post">
+<article class="item">
<header>
<h2><i class="fa fa-newspaper-o"></i><?=escapeHTML($POST['ATTR']['NAME'])?><span>#<?=$POST['ATTR']['ID']?></span></h2>
<div>
@@ -25,4 +25,4 @@
<li><a href="<?=Application::getAdminURL("post/delete.php?id={$POST['ATTR']['ID']}")?>" title="<?=$Language->text('delete_post')?>"><i class="fa fa-trash-o"></i></a></li>
</ul>
</footer>
-</li> \ No newline at end of file
+</article> \ No newline at end of file
diff --git a/template/admin/html/user/index.php b/template/admin/html/user/index.php
index bc34402..b1b4463 100644
--- a/template/admin/html/user/index.php
+++ b/template/admin/html/user/index.php
@@ -1,10 +1,10 @@
<h1><i class="fa fa-user"></i><?=$Language->text('user_overview')?><a class="brackets" href="<?=Application::getAdminURL("user/insert.php")?>"><?=$Language->text('insert')?></a></h1>
<p><?=$Language->text('overview_user_desc')?></p>
-<ul class="item-list user">
+<div class="item-container user">
<?php foreach($LIST['USERS'] as $user): ?>
<?php echo $user; ?>
<?php endforeach; ?>
-</ul>
+</div>
<?=$PAGINATION['HTML']?> \ No newline at end of file
diff --git a/template/admin/html/user/item.php b/template/admin/html/user/item.php
index 6cb9e7a..1575bf7 100644
--- a/template/admin/html/user/item.php
+++ b/template/admin/html/user/item.php
@@ -1,4 +1,4 @@
-<li class="item-list-li user">
+<article class="item">
<header>
<h2><i class="fa fa-user"></i><?=escapeHTML($USER['ATTR']['FULLNAME'])?><span>#<?=$USER['ATTR']['ID']?></span></h2>
<div>
@@ -24,4 +24,4 @@
<li><a href="<?=Application::getAdminURL("user/delete.php?id={$USER['ATTR']['ID']}")?>" title="<?=$Language->text('delete_user')?>"><i class="fa fa-trash-o"></i></a></li>
</ul>
</footer>
-</li> \ No newline at end of file
+</article> \ No newline at end of file