aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-09-02 15:37:19 +0200
committerThomas Lange <code@nerdmind.de>2017-09-02 15:37:19 +0200
commit4addfb603e88642674003469c147eb8d5debbd96 (patch)
treeabae2ac6055699228dac09b7555a8cd91fb53aa1
parentc503f83d169fe15e10e2d97fd4ece9cdc884e436 (diff)
downloadblog-4addfb603e88642674003469c147eb8d5debbd96.tar.gz
blog-4addfb603e88642674003469c147eb8d5debbd96.tar.xz
blog-4addfb603e88642674003469c147eb8d5debbd96.zip
Multiple <section> elements were replaced by simple <div> elements. If a container element is only used for the CSS and has no semantic meaning, then a <section> element is definitely wrong for this purpose.
-rw-r--r--template/admin/html/main.php12
-rw-r--r--template/standard/html/main.php8
-rw-r--r--template/standard/html/page/main.php4
-rw-r--r--template/standard/html/post/main.php4
-rw-r--r--template/standard/html/user/main.php4
-rw-r--r--template/standard/rsrc/main.css6
6 files changed, 19 insertions, 19 deletions
diff --git a/template/admin/html/main.php b/template/admin/html/main.php
index fafc8d0..572ce4f 100644
--- a/template/admin/html/main.php
+++ b/template/admin/html/main.php
@@ -10,14 +10,14 @@
</head>
<body>
<header id="main-header">
- <section class="header-line">
+ <div class="header-line">
<div class="header-content">
<a href="<?=Application::getAdminURL()?>"><img id="header-logo" src="<?=Application::getTemplateURL('rsrc/icon-public-domain.svg')?>" alt="Administration" /></a>
<div id="header-text">Administration</div>
<div id="header-desc">PHP7 blogging application by <span>Nerdmind</span>!</div>
</div>
- </section>
- <section class="header-line">
+ </div>
+ <div class="header-line">
<div class="header-content">
<nav id="main-navi">
<?php if(Application::isAuthenticated()): ?>
@@ -38,9 +38,9 @@
<?php endif; ?>
</nav>
</div>
- </section>
+ </div>
</header>
- <section id="main-content">
+ <div id="main-content">
<main>
<?=$HTML?>
</main>
@@ -51,6 +51,6 @@
<li><i class="fa fa-bug"></i><a href="mailto:Thomas Lange <code@nerdmind.de>">Bugreport</a></li>
</ul>
</footer>
- </section>
+ </div>
</body>
</html> \ No newline at end of file
diff --git a/template/standard/html/main.php b/template/standard/html/main.php
index 12364e5..19eceec 100644
--- a/template/standard/html/main.php
+++ b/template/standard/html/main.php
@@ -52,13 +52,13 @@ $BLOGMETA_DESC = escapeHTML($BLOGMETA['DESC']);
<title><?="{$HEAD_NAME} | {$BLOGMETA_NAME} {$BLOGMETA_DESC}"?></title>
</head>
<body>
- <section id="container">
+ <div id="container">
<header id="main-header">
- <section>
+ <div>
<a href="<?=Application::getURL()?>" title="<?="{$BLOGMETA_NAME} {$BLOGMETA_DESC}"?>">
<img id="main-logo" src="<?=Application::getTemplateURL('rsrc/logo.png')?>" alt="<?=$BLOGMETA_NAME?>" />
</a>
- </section>
+ </div>
<nav id="main-navi">
<label for="toogle-nav" id="toogle-nav-label" class="fa fa-bars"></label>
<input type="checkbox" id="toogle-nav" />
@@ -97,6 +97,6 @@ $BLOGMETA_DESC = escapeHTML($BLOGMETA['DESC']);
<footer id="main-footer">
&copy; <?=$BLOGMETA_NAME?>
</footer>
- </section>
+ </div>
</body>
</html> \ No newline at end of file
diff --git a/template/standard/html/page/main.php b/template/standard/html/page/main.php
index cfe26fd..aa2a5a0 100644
--- a/template/standard/html/page/main.php
+++ b/template/standard/html/page/main.php
@@ -13,9 +13,9 @@ $time = "<time datetime=\"{$PAGE['ATTR']['TIME_INSERT']}\" title=\"".parseDateti
<h1><i class="fa fa-file-text-o"></i><?=escapeHTML($PAGE['ATTR']['NAME'])?></h1>
<p><?=$Language->text('page_main_heading_desc', [$user, $time])?></p>
-<section id="content" class="page">
+<div id="content" class="page">
<?=$PAGE['BODY']['HTML']()?>
-</section>
+</div>
<section id="site-navi">
diff --git a/template/standard/html/post/main.php b/template/standard/html/post/main.php
index 709e719..e91fa4e 100644
--- a/template/standard/html/post/main.php
+++ b/template/standard/html/post/main.php
@@ -13,9 +13,9 @@ $time = "<time datetime=\"{$POST['ATTR']['TIME_INSERT']}\" title=\"".parseDateti
<h1><i class="fa fa-newspaper-o"></i><?=escapeHTML($POST['ATTR']['NAME'])?></h1>
<p><?=$Language->text('post_main_heading_desc', [$user, $time])?></p>
-<section id="content" class="post">
+<div id="content" class="post">
<?=$POST['BODY']['HTML']()?>
-</section>
+</div>
<section id="site-navi">
diff --git a/template/standard/html/user/main.php b/template/standard/html/user/main.php
index 2a195a4..c72d53e 100644
--- a/template/standard/html/user/main.php
+++ b/template/standard/html/user/main.php
@@ -10,9 +10,9 @@
<h1><i class="fa fa-user"></i><?=escapeHTML($USER['ATTR']['FULLNAME'])?></h1>
<p><em><?=$Language->text('user_main_heading_desc', [escapeHTML($USER['ATTR']['USERNAME']), $COUNT['POST'], $COUNT['PAGE']])?></em></p>
-<section id="content" class="user">
+<div id="content" class="user">
<?=$USER['BODY']['HTML']()?>
-</section>
+</div>
<section id="site-navi">
diff --git a/template/standard/rsrc/main.css b/template/standard/rsrc/main.css
index ed50b9b..ea13a11 100644
--- a/template/standard/rsrc/main.css
+++ b/template/standard/rsrc/main.css
@@ -25,12 +25,12 @@ body{font-family:Ruda,sans-serif;font-size:0.7rem;line-height:1.2rem;}
#container{max-width:45rem;margin:1rem auto;border:0.05rem solid #AAA;background:#FFF;}
-main,#main-header > section{padding:1rem;box-sizing:border-box;}
+main,#main-header > div{padding:1rem;box-sizing:border-box;}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* Header
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
-#main-header > section{overflow:hidden;}
+#main-header > div{overflow:hidden;}
#main-logo{height:1.75rem;display:block;}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
@@ -152,7 +152,7 @@ thead > tr > td, th > td{text-align:center;}
/* Responsive Level #2
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
@media only screen and (max-width:37.5rem) {
- main,#main-header > section{padding:1rem;}
+ main,#main-header > div{padding:1rem;}
#main-navi{padding:0.25rem 1rem;}
#main-navi a{border:0.05rem solid transparent;}
#main-navi a:hover, #main-navi a:focus{border:0.05rem solid #BBB;}