diff options
author | Thomas Lange <code@nerdmind.de> | 2017-09-14 23:51:36 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-09-14 23:51:36 +0200 |
commit | 3180d399f20d6e7bec41cf986cfbf8e1aafa3587 (patch) | |
tree | 24ddabcc6f140a6d006e940edcbf56b5814829f3 /template/admin/html/user | |
parent | a2556505e5f2d528a6c93958a8c7c9beaf4e002a (diff) | |
download | blog-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/user')
-rw-r--r-- | template/admin/html/user/index.php | 4 | ||||
-rw-r--r-- | template/admin/html/user/item.php | 4 |
2 files changed, 4 insertions, 4 deletions
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 |