diff options
author | Thomas Lange <code@nerdmind.de> | 2024-01-23 20:22:35 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2024-01-23 20:22:35 +0100 |
commit | 53c035918a4f34b826728e06d9b77e4bcb440517 (patch) | |
tree | 468f763d1fc4237e77b0c85771c20f69b3ac0ed2 /theme | |
parent | 09f52cfcc8ced8bed60e5c1702e6f35cf3fe1f29 (diff) | |
download | blog-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')
-rw-r--r-- | theme/admin/html/auth.php | 8 | ||||
-rw-r--r-- | theme/admin/html/category/form.php | 18 | ||||
-rw-r--r-- | theme/admin/html/category/item.php | 2 | ||||
-rw-r--r-- | theme/admin/html/database.php | 4 | ||||
-rw-r--r-- | theme/admin/html/main.php | 10 | ||||
-rw-r--r-- | theme/admin/html/migration.php | 12 | ||||
-rw-r--r-- | theme/admin/html/page/form.php | 18 | ||||
-rw-r--r-- | theme/admin/html/page/item.php | 2 | ||||
-rw-r--r-- | theme/admin/html/page/search.php | 4 | ||||
-rw-r--r-- | theme/admin/html/post/form.php | 18 | ||||
-rw-r--r-- | theme/admin/html/post/item.php | 2 | ||||
-rw-r--r-- | theme/admin/html/post/search.php | 4 | ||||
-rw-r--r-- | theme/admin/html/user/form.php | 24 | ||||
-rw-r--r-- | theme/admin/html/user/item.php | 2 | ||||
-rw-r--r-- | theme/default/html/main.php | 28 | ||||
-rw-r--r-- | theme/default/html/search/main.php | 4 | ||||
-rw-r--r-- | theme/default/html/search/result.php | 4 |
17 files changed, 82 insertions, 82 deletions
diff --git a/theme/admin/html/auth.php b/theme/admin/html/auth.php index efc402e..89bd224 100644 --- a/theme/admin/html/auth.php +++ b/theme/admin/html/auth.php @@ -13,26 +13,26 @@ <?php endif ?> <form action="" method="POST"> - <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>" /> + <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>"> <div class="form-grid two-columns"> <label for="form_username"> <i class="fa fa-user-secret"></i><?=$Language->text('label_username')?></label> <div class="form-grid-item"> - <input id="form_username" name="username" value="<?=escapeHTML($FORM['DATA']['USERNAME'])?>" required autofocus /> + <input id="form_username" name="username" value="<?=escapeHTML($FORM['DATA']['USERNAME'])?>" required autofocus> </div> <label for="form_password"> <i class="fa fa-key"></i><?=$Language->text('label_password')?></label> <div class="form-grid-item"> - <input type="password" id="form_password" name="password" required /> + <input type="password" id="form_password" name="password" required> </div> </div> <div class="form-border-box background padding nobordertop"> - <input type="submit" name="auth" value="<?=$Language->text('login')?>" /> + <input type="submit" name="auth" value="<?=$Language->text('login')?>"> </div> </form> </main> diff --git a/theme/admin/html/category/form.php b/theme/admin/html/category/form.php index b358233..46f056e 100644 --- a/theme/admin/html/category/form.php +++ b/theme/admin/html/category/form.php @@ -25,7 +25,7 @@ function categorySelectList($category_tree, $selected = NULL, $current = NULL, $ <?php endif ?> <form action="" method="POST"> - <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>" /> + <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>"> <?php if($FORM['TYPE'] !== 'DELETE'): ?> <div class="form-grid"> @@ -33,14 +33,14 @@ function categorySelectList($category_tree, $selected = NULL, $current = NULL, $ <i class="fa fa-tag"></i><?=$Language->text('label_name')?></label> <div class="form-grid-item first"> - <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" required autofocus /> + <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" required autofocus> </div> <label for="form_slug"> <i class="fa fa-link"></i><?=$Language->text('label_slug')?></label> <div class="form-grid-item"> - <input id="form_slug" name="slug" value="<?=escapeHTML($FORM['DATA']['SLUG'])?>" /> + <input id="form_slug" name="slug" value="<?=escapeHTML($FORM['DATA']['SLUG'])?>"> </div> <label for="form_category_parent"> @@ -57,14 +57,14 @@ function categorySelectList($category_tree, $selected = NULL, $current = NULL, $ <i class="fa fa-clock-o"></i><?=$Language->text('label_insert')?></label> <div class="form-grid-item"> - <input id="form_time_insert" name="time_insert" placeholder="YYYY-MM-DD HH:II:SS" value="<?=escapeHTML($FORM['DATA']['TIME_INSERT'])?>" /> + <input id="form_time_insert" name="time_insert" placeholder="YYYY-MM-DD HH:II:SS" value="<?=escapeHTML($FORM['DATA']['TIME_INSERT'])?>"> </div> <label for="form_time_update"> <i class="fa fa-pencil"></i><?=$Language->text('label_update')?></label> <div class="form-grid-item"> - <input id="form_time_update" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ?: 'CURRENT_TIMESTAMP')?>" value="" /> + <input id="form_time_update" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ?: 'CURRENT_TIMESTAMP')?>" value=""> </div> </div> @@ -92,7 +92,7 @@ function categorySelectList($category_tree, $selected = NULL, $current = NULL, $ </ul> </div> <div class="form-border-box background padding"> - <input id="form_argv" name="argv" maxlength="250" placeholder="[ARGUMENT_ONE=foo|ARGUMENT_TWO=bar …]" value="<?=escapeHTML($FORM['DATA']['ARGV'])?>" /> + <input id="form_argv" name="argv" maxlength="250" placeholder="[ARGUMENT_ONE=foo|ARGUMENT_TWO=bar …]" value="<?=escapeHTML($FORM['DATA']['ARGV'])?>"> </div> <?php else: ?> <div class="form-border-box background padding"> @@ -102,11 +102,11 @@ function categorySelectList($category_tree, $selected = NULL, $current = NULL, $ <div class="form-border-box background padding"> <?php if($FORM['TYPE'] === 'INSERT'): ?> - <input id="insert-button" type="submit" name="insert" value="<?=$Language->text('insert')?>" /> + <input id="insert-button" type="submit" name="insert" value="<?=$Language->text('insert')?>"> <?php elseif($FORM['TYPE'] === 'UPDATE'): ?> - <input id="update-button" type="submit" name="update" value="<?=$Language->text('update')?>" /> + <input id="update-button" type="submit" name="update" value="<?=$Language->text('update')?>"> <?php elseif($FORM['TYPE'] === 'DELETE'): ?> - <input id="delete-button" type="submit" name="delete" value="<?=$Language->text('delete')?>" data-text="<?=$Language->text('sure')?>" /> + <input id="delete-button" type="submit" name="delete" value="<?=$Language->text('delete')?>" data-text="<?=$Language->text('sure')?>"> <?php endif; ?> </div> </form> diff --git a/theme/admin/html/category/item.php b/theme/admin/html/category/item.php index ea98c02..dacabdc 100644 --- a/theme/admin/html/category/item.php +++ b/theme/admin/html/category/item.php @@ -21,7 +21,7 @@ </header> <blockquote cite="<?=$CATEGORY['URL']?>"> <?php if(isset($CATEGORY['FILE']['LIST'][0])): ?> - <img class="item-image" src="<?=$CATEGORY['FILE']['LIST'][0]?>" alt="" /> + <img class="item-image" src="<?=$CATEGORY['FILE']['LIST'][0]?>" alt=""> <?php endif; ?> <p><?=excerpt($CATEGORY['BODY']['HTML']())?></p> </blockquote> diff --git a/theme/admin/html/database.php b/theme/admin/html/database.php index 1ba7adc..e0ca09b 100644 --- a/theme/admin/html/database.php +++ b/theme/admin/html/database.php @@ -13,7 +13,7 @@ <?php endif ?> <form action="" method="POST"> - <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>" /> + <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>"> <div class="form-border-box"> <textarea id="content-editor" placeholder="<?=$Language->text('database_warning')?>" name="command" required autofocus><?=escapeHTML($FORM['COMMAND'])?></textarea> @@ -26,7 +26,7 @@ <?php endif; ?> <div class="form-border-box background padding"> - <input id="insert-button" type="submit" name="execute" value="Execute" /> + <input id="insert-button" type="submit" name="execute" value="Execute"> </div> </form> </main> diff --git a/theme/admin/html/main.php b/theme/admin/html/main.php index 82dd407..2035b47 100644 --- a/theme/admin/html/main.php +++ b/theme/admin/html/main.php @@ -16,10 +16,10 @@ $theme = isset($_COOKIE['dark_mode']) ? 'dark' : 'bright'; <!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" /> - <link rel="stylesheet" href="<?=Application::getTemplateURL("rsrc/css/$theme.css")?>" /> + <meta charset="UTF-8"> + <meta name="referrer" content="origin-when-crossorigin"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="<?=Application::getTemplateURL("rsrc/css/$theme.css")?>"> <script defer src="<?=Application::getTemplateURL('rsrc/main.js')?>"></script> <title><?=escapeHTML($NAME)?> | Administration</title> </head> @@ -28,7 +28,7 @@ $theme = isset($_COOKIE['dark_mode']) ? 'dark' : 'bright'; <div class="header-line background"> <div class="header-content"> <a href="<?=Application::getURL()?>"> - <img id="header-logo" src="<?=Application::getTemplateURL('rsrc/icon-public-domain.svg')?>" alt="Administration" /> + <img id="header-logo" src="<?=Application::getTemplateURL('rsrc/icon-public-domain.svg')?>" alt="Administration"> </a> <div id="header-text"><?=escapeHTML($BLOGMETA['NAME'])?></div> <div id="header-desc"><?=escapeHTML($BLOGMETA['DESC'])?></div> diff --git a/theme/admin/html/migration.php b/theme/admin/html/migration.php index 082b95b..921b006 100644 --- a/theme/admin/html/migration.php +++ b/theme/admin/html/migration.php @@ -2,17 +2,17 @@ <!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" /> - <link rel="stylesheet" href="<?=Application::getTemplateURL("rsrc/css/$theme.css")?>" /> + <meta charset="UTF-8"> + <meta name="referrer" content="origin-when-crossorigin"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="<?=Application::getTemplateURL("rsrc/css/$theme.css")?>"> <title><?=$Language->text('maintenance_mode')?></title> </head> <body> <header id="main-header"> <div class="header-line background"> <div class="header-content"> - <img id="header-logo" src="<?=Application::getTemplateURL('rsrc/icon-public-domain.svg')?>" alt="Administration" /> + <img id="header-logo" src="<?=Application::getTemplateURL('rsrc/icon-public-domain.svg')?>" alt="Administration"> <div id="header-text"><?=escapeHTML($BLOGMETA['NAME'])?></div> <div id="header-desc"><?=$Language->text('maintenance_mode')?></div> </div> @@ -45,7 +45,7 @@ $codebase_schema = $MIGRATION['SCHEMA_VERSION']['CODEBASE']; <?php endforeach ?> </ul> <input type="hidden" name="token" value="<?=Application::getSecurityToken()?>" ?> - <input type="submit" name="run" value="<?=$Language->text('migration_submit')?>" id="delete-button" /> + <input type="submit" name="run" value="<?=$Language->text('migration_submit')?>" id="delete-button"> </form> <?php endif ?> </main> diff --git a/theme/admin/html/page/form.php b/theme/admin/html/page/form.php index f4655da..afcb8aa 100644 --- a/theme/admin/html/page/form.php +++ b/theme/admin/html/page/form.php @@ -9,7 +9,7 @@ <?php endif ?> <form action="" method="POST"> - <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>" /> + <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>"> <?php if($FORM['TYPE'] !== 'DELETE'): ?> <div class="form-grid"> @@ -17,14 +17,14 @@ <i class="fa fa-file-text-o"></i><?=$Language->text('label_name')?></label> <div class="form-grid-item first"> - <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" required autofocus /> + <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" required autofocus> </div> <label for="form_slug"> <i class="fa fa-link"></i><?=$Language->text('label_slug')?></label> <div class="form-grid-item"> - <input id="form_slug" name="slug" value="<?=escapeHTML($FORM['DATA']['SLUG'])?>" /> + <input id="form_slug" name="slug" value="<?=escapeHTML($FORM['DATA']['SLUG'])?>"> </div> <label for="form_user"> @@ -43,14 +43,14 @@ <i class="fa fa-clock-o"></i><?=$Language->text('label_insert')?></label> <div class="form-grid-item"> - <input id="form_time_insert" name="time_insert" placeholder="YYYY-MM-DD HH:II:SS" value="<?=escapeHTML($FORM['DATA']['TIME_INSERT'])?>" /> + <input id="form_time_insert" name="time_insert" placeholder="YYYY-MM-DD HH:II:SS" value="<?=escapeHTML($FORM['DATA']['TIME_INSERT'])?>"> </div> <label for="form_time_update"> <i class="fa fa-pencil"></i><?=$Language->text('label_update')?></label> <div class="form-grid-item"> - <input id="form_time_update" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ?: 'CURRENT_TIMESTAMP')?>" value="" /> + <input id="form_time_update" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ?: 'CURRENT_TIMESTAMP')?>" value=""> </div> </div> @@ -78,7 +78,7 @@ </ul> </div> <div class="form-border-box background padding"> - <input id="form_argv" name="argv" maxlength="250" placeholder="[ARGUMENT_ONE=foo|ARGUMENT_TWO=bar …]" value="<?=escapeHTML($FORM['DATA']['ARGV'])?>" /> + <input id="form_argv" name="argv" maxlength="250" placeholder="[ARGUMENT_ONE=foo|ARGUMENT_TWO=bar …]" value="<?=escapeHTML($FORM['DATA']['ARGV'])?>"> </div> <?php else: ?> <div class="form-border-box background padding"> @@ -88,11 +88,11 @@ <div class="form-border-box background padding"> <?php if($FORM['TYPE'] === 'INSERT'): ?> - <input id="insert-button" type="submit" name="insert" value="<?=$Language->text('insert')?>" /> + <input id="insert-button" type="submit" name="insert" value="<?=$Language->text('insert')?>"> <?php elseif($FORM['TYPE'] === 'UPDATE'): ?> - <input id="update-button" type="submit" name="update" value="<?=$Language->text('update')?>" /> + <input id="update-button" type="submit" name="update" value="<?=$Language->text('update')?>"> <?php elseif($FORM['TYPE'] === 'DELETE'): ?> - <input id="delete-button" type="submit" name="delete" value="<?=$Language->text('delete')?>" data-text="<?=$Language->text('sure')?>" /> + <input id="delete-button" type="submit" name="delete" value="<?=$Language->text('delete')?>" data-text="<?=$Language->text('sure')?>"> <?php endif; ?> </div> </form> diff --git a/theme/admin/html/page/item.php b/theme/admin/html/page/item.php index 6e394bb..3cbcf79 100644 --- a/theme/admin/html/page/item.php +++ b/theme/admin/html/page/item.php @@ -17,7 +17,7 @@ </header> <blockquote cite="<?=$PAGE['URL']?>"> <?php if(isset($PAGE['FILE']['LIST'][0])): ?> - <img class="item-image" src="<?=$PAGE['FILE']['LIST'][0]?>" alt="" /> + <img class="item-image" src="<?=$PAGE['FILE']['LIST'][0]?>" alt=""> <?php endif; ?> <p><?=excerpt($PAGE['BODY']['HTML']())?></p> </blockquote> diff --git a/theme/admin/html/page/search.php b/theme/admin/html/page/search.php index 7d53e3a..0fc110f 100644 --- a/theme/admin/html/page/search.php +++ b/theme/admin/html/page/search.php @@ -18,11 +18,11 @@ <i class="fa fa-search"></i><?=$Language->text('search')?></label> <div class="form-grid-item first"> - <input id="form_query" type="search" name="q" placeholder="<?=$Language->text('placeholder_search')?>" value="<?=escapeHTML($QUERY)?>" required autofocus /> + <input id="form_query" type="search" name="q" placeholder="<?=$Language->text('placeholder_search')?>" value="<?=escapeHTML($QUERY)?>" required autofocus> </div> </div> <div class="form-border-box background padding"> - <input id="update-button" type="submit" value="<?=$Language->text('search')?>" /> + <input id="update-button" type="submit" value="<?=$Language->text('search')?>"> </div> </form> diff --git a/theme/admin/html/post/form.php b/theme/admin/html/post/form.php index d2a22eb..8ad514a 100644 --- a/theme/admin/html/post/form.php +++ b/theme/admin/html/post/form.php @@ -24,7 +24,7 @@ function categorySelectList($category_tree, $selected = NULL, $prefix = '') { <?php endif ?> <form action="" method="POST"> - <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>" /> + <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>"> <?php if($FORM['TYPE'] !== 'DELETE'): ?> <div class="form-grid"> @@ -32,14 +32,14 @@ function categorySelectList($category_tree, $selected = NULL, $prefix = '') { <i class="fa fa-newspaper-o"></i><?=$Language->text('label_name')?></label> <div class="form-grid-item"> - <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" required autofocus /> + <input id="form_name" name="name" value="<?=escapeHTML($FORM['DATA']['NAME'])?>" required autofocus> </div> <label for="form_slug"> <i class="fa fa-link"></i><?=$Language->text('label_slug')?></label> <div class="form-grid-item"> - <input id="form_slug" name="slug" value="<?=escapeHTML($FORM['DATA']['SLUG'])?>" /> + <input id="form_slug" name="slug" value="<?=escapeHTML($FORM['DATA']['SLUG'])?>"> </div> <label for="form_category"> @@ -68,14 +68,14 @@ function categorySelectList($category_tree, $selected = NULL, $prefix = '') { <i class="fa fa-clock-o"></i><?=$Language->text('label_insert')?></label> <div class="form-grid-item"> - <input id="form_time_insert" name="time_insert" placeholder="YYYY-MM-DD HH:II:SS" value="<?=escapeHTML($FORM['DATA']['TIME_INSERT'])?>" /> + <input id="form_time_insert" name="time_insert" placeholder="YYYY-MM-DD HH:II:SS" value="<?=escapeHTML($FORM['DATA']['TIME_INSERT'])?>"> </div> <label for="form_time_update"> <i class="fa fa-pencil"></i><?=$Language->text('label_update')?></label> <div class="form-grid-item"> - <input id="form_time_update" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ?: 'CURRENT_TIMESTAMP')?>" value="" /> + <input id="form_time_update" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ?: 'CURRENT_TIMESTAMP')?>" value=""> </div> </div> @@ -103,7 +103,7 @@ function categorySelectList($category_tree, $selected = NULL, $prefix = '') { </ul> </div> <div class="form-border-box background padding"> - <input id="form_argv" name="argv" maxlength="250" placeholder="[ARGUMENT_ONE=foo|ARGUMENT_TWO=bar …]" value="<?=escapeHTML($FORM['DATA']['ARGV'])?>" /> + <input id="form_argv" name="argv" maxlength="250" placeholder="[ARGUMENT_ONE=foo|ARGUMENT_TWO=bar …]" value="<?=escapeHTML($FORM['DATA']['ARGV'])?>"> </div> <?php else: ?> <div class="form-border-box background padding"> @@ -113,11 +113,11 @@ function categorySelectList($category_tree, $selected = NULL, $prefix = '') { <div class="form-border-box background padding"> <?php if($FORM['TYPE'] === 'INSERT'): ?> - <input id="insert-button" type="submit" name="insert" value="<?=$Language->text('insert')?>" /> + <input id="insert-button" type="submit" name="insert" value="<?=$Language->text('insert')?>"> <?php elseif($FORM['TYPE'] === 'UPDATE'): ?> - <input id="update-button" type="submit" name="update" value="<?=$Language->text('update')?>" /> + <input id="update-button" type="submit" name="update" value="<?=$Language->text('update')?>"> <?php elseif($FORM['TYPE'] === 'DELETE'): ?> - <input id="delete-button" type="submit" name="delete" value="<?=$Language->text('delete')?>" data-text="<?=$Language->text('sure')?>" /> + <input id="delete-button" type="submit" name="delete" value="<?=$Language->text('delete')?>" data-text="<?=$Language->text('sure')?>"> <?php endif; ?> </div> </form> diff --git a/theme/admin/html/post/item.php b/theme/admin/html/post/item.php index e4b2bec..14f2813 100644 --- a/theme/admin/html/post/item.php +++ b/theme/admin/html/post/item.php @@ -23,7 +23,7 @@ </header> <blockquote cite="<?=$POST['URL']?>"> <?php if(isset($POST['FILE']['LIST'][0])): ?> - <img class="item-image" src="<?=$POST['FILE']['LIST'][0]?>" alt="" /> + <img class="item-image" src="<?=$POST['FILE']['LIST'][0]?>" alt=""> <?php endif; ?> <p><?=excerpt($POST['BODY']['HTML']())?></p> </blockquote> diff --git a/theme/admin/html/post/search.php b/theme/admin/html/post/search.php index dff8dfb..0a0d959 100644 --- a/theme/admin/html/post/search.php +++ b/theme/admin/html/post/search.php @@ -33,7 +33,7 @@ function categorySelectList($category_tree, $selected = NULL, $prefix = '') { <i class="fa fa-search"></i><?=$Language->text('search')?></label> <div class="form-grid-item first"> - <input id="form_query" type="search" name="q" placeholder="<?=$Language->text('placeholder_search')?>" value="<?=escapeHTML($QUERY)?>" required autofocus /> + <input id="form_query" type="search" name="q" placeholder="<?=$Language->text('placeholder_search')?>" value="<?=escapeHTML($QUERY)?>" required autofocus> </div> <label for="form_category"> @@ -59,7 +59,7 @@ function categorySelectList($category_tree, $selected = NULL, $prefix = '') { </div> </div> <div class="form-border-box background padding"> - <input id="update-button" type="submit" value="<?=$Language->text('search')?>" /> + <input id="update-button" type="submit" value="<?=$Language->text('search')?>"> </div> </form> diff --git a/theme/admin/html/user/form.php b/theme/admin/html/user/form.php index 2806598..7d033f1 100644 --- a/theme/admin/html/user/form.php +++ b/theme/admin/html/user/form.php @@ -9,7 +9,7 @@ <?php endif ?> <form action="" method="POST"> - <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>" /> + <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>"> <?php if($FORM['TYPE'] !== 'DELETE'): ?> <div class="form-grid"> @@ -17,49 +17,49 @@ <i class="fa fa-user"></i><?=$Language->text('label_fullname')?></label> <div class="form-grid-item first"> - <input id="form_fullname" name="fullname" value="<?=escapeHTML($FORM['DATA']['FULLNAME'])?>" required autofocus /> + <input id="form_fullname" name="fullname" value="<?=escapeHTML($FORM['DATA']['FULLNAME'])?>" required autofocus> </div> <label for="form_username"> <i class="fa fa-user-secret"></i><?=$Language->text('label_username')?></label> <div class="form-grid-item"> - <input id="form_username" name="username" value="<?=escapeHTML($FORM['DATA']['USERNAME'])?>" required /> + <input id="form_username" name="username" value="<?=escapeHTML($FORM['DATA']['USERNAME'])?>" required> </div> <label for="form_password"> <i class="fa fa-key"></i><?=$Language->text('label_password')?></label> <div class="form-grid-item"> - <input id="form_password" name="password" placeholder="NO CHANGE" type="password" /> + <input id="form_password" name="password" placeholder="NO CHANGE" type="password"> </div> <label for="form_mailaddr"> <i class="fa fa-envelope-o"></i><?=$Language->text('label_mailaddr')?></label> <div class="form-grid-item"> - <input id="form_mailaddr" name="mailaddr" value="<?=escapeHTML($FORM['DATA']['MAILADDR'])?>" required /> + <input id="form_mailaddr" name="mailaddr" value="<?=escapeHTML($FORM['DATA']['MAILADDR'])?>" required> </div> <label for="form_slug"> <i class="fa fa-link"></i><?=$Language->text('label_slug')?></label> <div class="form-grid-item"> - <input id="form_slug" name="slug" value="<?=escapeHTML($FORM['DATA']['SLUG'])?>" /> + <input id="form_slug" name="slug" value="<?=escapeHTML($FORM['DATA']['SLUG'])?>"> </div> <label for="form_time_insert"> <i class="fa fa-clock-o"></i><?=$Language->text('label_insert')?></label> <div class="form-grid-item"> - <input id="form_time_insert" name="time_insert" placeholder="YYYY-MM-DD HH:II:SS" value="<?=escapeHTML($FORM['DATA']['TIME_INSERT'])?>" /> + <input id="form_time_insert" name="time_insert" placeholder="YYYY-MM-DD HH:II:SS" value="<?=escapeHTML($FORM['DATA']['TIME_INSERT'])?>"> </div> <label for="form_time_update"> <i class="fa fa-pencil"></i><?=$Language->text('label_update')?></label> <div class="form-grid-item"> - <input id="form_time_update" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ?: 'CURRENT_TIMESTAMP')?>" value="" /> + <input id="form_time_update" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ?: 'CURRENT_TIMESTAMP')?>" value=""> </div> </div> @@ -87,7 +87,7 @@ </ul> </div> <div class="form-border-box background padding"> - <input id="form_argv" name="argv" maxlength="250" placeholder="[ARGUMENT_ONE=foo|ARGUMENT_TWO=bar …]" value="<?=escapeHTML($FORM['DATA']['ARGV'])?>" /> + <input id="form_argv" name="argv" maxlength="250" placeholder="[ARGUMENT_ONE=foo|ARGUMENT_TWO=bar …]" value="<?=escapeHTML($FORM['DATA']['ARGV'])?>"> </div> <?php else: ?> <div class="form-border-box background padding"> @@ -97,11 +97,11 @@ <div class="form-border-box background padding"> <?php if($FORM['TYPE'] === 'INSERT'): ?> - <input id="insert-button" type="submit" name="insert" value="<?=$Language->text('insert')?>" /> + <input id="insert-button" type="submit" name="insert" value="<?=$Language->text('insert')?>"> <?php elseif($FORM['TYPE'] === 'UPDATE'): ?> - <input id="update-button" type="submit" name="update" value="<?=$Language->text('update')?>" /> + <input id="update-button" type="submit" name="update" value="<?=$Language->text('update')?>"> <?php elseif($FORM['TYPE'] === 'DELETE'): ?> - <input id="delete-button" type="submit" name="delete" value="<?=$Language->text('delete')?>" data-text="<?=$Language->text('sure')?>" /> + <input id="delete-button" type="submit" name="delete" value="<?=$Language->text('delete')?>" data-text="<?=$Language->text('sure')?>"> <?php endif; ?> </div> </form> diff --git a/theme/admin/html/user/item.php b/theme/admin/html/user/item.php index 3a9ecb6..bb8c48a 100644 --- a/theme/admin/html/user/item.php +++ b/theme/admin/html/user/item.php @@ -21,7 +21,7 @@ </header> <blockquote cite="<?=$USER['URL']?>"> <?php if(isset($USER['FILE']['LIST'][0])): ?> - <img class="item-image" src="<?=$USER['FILE']['LIST'][0]?>" alt="" /> + <img class="item-image" src="<?=$USER['FILE']['LIST'][0]?>" alt=""> <?php endif; ?> <p><?=excerpt($USER['BODY']['HTML']())?></p> </blockquote> 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"> |