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/admin/html/post | |
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/admin/html/post')
-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 |
3 files changed, 12 insertions, 12 deletions
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> |