aboutsummaryrefslogtreecommitdiffstats
path: root/theme/default/html
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2024-01-23 20:22:35 +0100
committerThomas Lange <code@nerdmind.de>2024-01-23 20:22:35 +0100
commit53c035918a4f34b826728e06d9b77e4bcb440517 (patch)
tree468f763d1fc4237e77b0c85771c20f69b3ac0ed2 /theme/default/html
parent09f52cfcc8ced8bed60e5c1702e6f35cf3fe1f29 (diff)
downloadblog-53c035918a4f34b826728e06d9b77e4bcb440517.tar.gz
blog-53c035918a4f34b826728e06d9b77e4bcb440517.tar.xz
blog-53c035918a4f34b826728e06d9b77e4bcb440517.zip
Remove trailing slash on void elements
The trailing slash on void elements (self-closing tags) doesn't have any effect, isn't required by HTML5 and it is recommended to not use it.
Diffstat (limited to 'theme/default/html')
-rw-r--r--theme/default/html/main.php28
-rw-r--r--theme/default/html/search/main.php4
-rw-r--r--theme/default/html/search/result.php4
3 files changed, 18 insertions, 18 deletions
diff --git a/theme/default/html/main.php b/theme/default/html/main.php
index 18d5d40..46dcc84 100644
--- a/theme/default/html/main.php
+++ b/theme/default/html/main.php
@@ -18,31 +18,31 @@ $BLOGMETA_DESC = escapeHTML($BLOGMETA['DESC']);
<!DOCTYPE html>
<html lang="<?=$BLOGMETA['LANG']?>">
<head>
- <meta charset="UTF-8" />
- <meta name="referrer" content="origin-when-crossorigin" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta charset="UTF-8">
+ <meta name="referrer" content="origin-when-crossorigin">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
<?php if(isset($HEAD_DESC)): ?>
- <meta name="description" content="<?=$HEAD_DESC?>" />
+ <meta name="description" content="<?=$HEAD_DESC?>">
<?php endif; ?>
<?php if(isset($HEAD['PERM'])): ?>
- <link rel="canonical" href="<?=$HEAD['PERM']?>" />
+ <link rel="canonical" href="<?=$HEAD['PERM']?>">
<?php endif; ?>
- <meta property="og:site_name" content="<?=$BLOGMETA_NAME?>" />
- <meta property="og:title" content="<?=$HEAD_NAME?>" />
- <meta property="og:image" content="<?=Application::getTemplateURL('rsrc/logo.png')?>" />
+ <meta property="og:site_name" content="<?=$BLOGMETA_NAME?>">
+ <meta property="og:title" content="<?=$HEAD_NAME?>">
+ <meta property="og:image" content="<?=Application::getTemplateURL('rsrc/logo.png')?>">
<?php if(isset($HEAD['OG_IMAGES'])): ?>
<?php foreach($HEAD['OG_IMAGES'] as $imageURL): ?>
- <meta property="og:image" content="<?=$imageURL?>" />
+ <meta property="og:image" content="<?=$imageURL?>">
<?php endforeach; ?>
<?php endif; ?>
- <link rel="icon" href="<?=Application::getTemplateURL('rsrc/favicon.ico')?>" />
- <link rel="stylesheet" href="<?=Application::getTemplateURL('rsrc/css/main.css')?>" title="<?=$BLOGMETA_NAME?>" />
- <link rel="alternate" type="application/rss+xml" title="<?=$BLOGMETA_NAME?>" href="<?=Application::getURL('feed/')?>" />
+ <link rel="icon" href="<?=Application::getTemplateURL('rsrc/favicon.ico')?>">
+ <link rel="stylesheet" href="<?=Application::getTemplateURL('rsrc/css/main.css')?>" title="<?=$BLOGMETA_NAME?>">
+ <link rel="alternate" type="application/rss+xml" title="<?=$BLOGMETA_NAME?>" href="<?=Application::getURL('feed/')?>">
<script defer src="<?=Application::getTemplateURL('rsrc/main.js')?>"></script>
@@ -53,12 +53,12 @@ $BLOGMETA_DESC = escapeHTML($BLOGMETA['DESC']);
<header id="main-header">
<div>
<a href="<?=Application::getURL()?>" title="<?="{$BLOGMETA_NAME} {$BLOGMETA_DESC}"?>">
- <img id="main-logo" src="<?=Application::getTemplateURL('rsrc/logo.png')?>" alt="<?=$BLOGMETA_NAME?>" />
+ <img id="main-logo" src="<?=Application::getTemplateURL('rsrc/logo.png')?>" alt="<?=$BLOGMETA_NAME?>">
</a>
</div>
<nav id="main-navi">
<label for="toogle-nav" id="toogle-nav-label" class="fa fa-bars"></label>
- <input type="checkbox" id="toogle-nav" />
+ <input type="checkbox" id="toogle-nav">
<ul>
<li>
<a href="<?=Application::getURL()?>" title="<?=$Language->text('navigation_home_desc', $BLOGMETA_NAME)?>">
diff --git a/theme/default/html/search/main.php b/theme/default/html/search/main.php
index e7522ff..336f49c 100644
--- a/theme/default/html/search/main.php
+++ b/theme/default/html/search/main.php
@@ -6,7 +6,7 @@
<?php endif; ?>
<form action="" method="GET">
- <input autofocus type="search" name="q" placeholder="<?=$Language->text('search_form_placeholder')?>" value="<?=escapeHTML($SEARCH['TEXT'])?>" />
+ <input autofocus type="search" name="q" placeholder="<?=$Language->text('search_form_placeholder')?>" value="<?=escapeHTML($SEARCH['TEXT'])?>">
<select name="d">
<option value=""><?=$Language->text('date_d')?></option>
@@ -30,5 +30,5 @@
<?php endforeach; ?>
</select>
- <input type="submit" value="<?=$Language->text('search')?>" />
+ <input type="submit" value="<?=$Language->text('search')?>">
</form>
diff --git a/theme/default/html/search/result.php b/theme/default/html/search/result.php
index 8de0e25..29ce9db 100644
--- a/theme/default/html/search/result.php
+++ b/theme/default/html/search/result.php
@@ -2,7 +2,7 @@
<p><?=$Language->text('search_result_heading_desc')?></p>
<form action="" method="GET">
- <input autofocus type="search" name="q" placeholder="<?=$Language->text('search_form_placeholder')?>" value="<?=escapeHTML($SEARCH['TEXT'])?>" />
+ <input autofocus type="search" name="q" placeholder="<?=$Language->text('search_form_placeholder')?>" value="<?=escapeHTML($SEARCH['TEXT'])?>">
<select name="d">
<option value=""><?=$Language->text('date_d')?></option>
@@ -26,7 +26,7 @@
<?php endforeach; ?>
</select>
- <input type="submit" value="<?=$Language->text('search')?>" />
+ <input type="submit" value="<?=$Language->text('search')?>">
</form>
<div class="item-container post">