aboutsummaryrefslogtreecommitdiffstats
path: root/template/standard/html/page
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/standard/html/page
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/standard/html/page')
-rw-r--r--template/standard/html/page/item.php4
-rw-r--r--template/standard/html/page/list.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/template/standard/html/page/item.php b/template/standard/html/page/item.php
index 81f6c8c..f2803fa 100644
--- a/template/standard/html/page/item.php
+++ b/template/standard/html/page/item.php
@@ -7,7 +7,7 @@
# #
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
?>
-<li class="item-list-li page">
+<article class="item">
<header>
<h2>
<a title="<?=$Language->text('select_page')?>: »<?=escapeHTML($PAGE['ATTR']['NAME'])?>«" href="<?=$PAGE['URL']?>"><?=escapeHTML($PAGE['ATTR']['NAME'])?></a>
@@ -17,4 +17,4 @@
<blockquote cite="<?=$PAGE['URL']?>">
<p><?=excerpt($PAGE['BODY']['HTML'](), 600)?></p>
</blockquote>
-</li> \ No newline at end of file
+</article> \ No newline at end of file
diff --git a/template/standard/html/page/list.php b/template/standard/html/page/list.php
index da75330..b2361bf 100644
--- a/template/standard/html/page/list.php
+++ b/template/standard/html/page/list.php
@@ -10,10 +10,10 @@
<h1><i class="fa fa-file-text-o"></i><?=$Language->text('page_overview')?><span class="head-link brackets"><i class="fa fa-rss"></i><a href="<?=Application::getURL('feed/page/')?>" title="<?=$Language->text('feed_name_pages', escapeHTML($BLOGMETA['NAME']))?>">Feed</a></span></h1>
<p><?=$Language->text('page_overview_heading_desc', $PAGINATION['THIS'])?></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