aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-07-04 14:41:47 +0200
committerThomas Lange <code@nerdmind.de>2021-07-04 14:41:47 +0200
commit347b9a7ba86016a12c0b0c05b6edd24f0d381bda (patch)
tree21fc8aaebc2824f935778033a53ed9bd7774c19d
parent1a483f43f06f287ca97ff9543c396f74f5f72077 (diff)
downloadblog-347b9a7ba86016a12c0b0c05b6edd24f0d381bda.tar.gz
blog-347b9a7ba86016a12c0b0c05b6edd24f0d381bda.tar.xz
blog-347b9a7ba86016a12c0b0c05b6edd24f0d381bda.zip
Move ID into heading element and remove brackets
-rw-r--r--theme/admin/html/category/item.php6
-rw-r--r--theme/admin/html/page/item.php6
-rw-r--r--theme/admin/html/post/item.php6
-rw-r--r--theme/admin/html/user/item.php6
-rw-r--r--theme/admin/rsrc/css/main.css2
-rw-r--r--theme/admin/rsrc/css/main.scss2
6 files changed, 20 insertions, 8 deletions
diff --git a/theme/admin/html/category/item.php b/theme/admin/html/category/item.php
index 05212e7..f8e7223 100644
--- a/theme/admin/html/category/item.php
+++ b/theme/admin/html/category/item.php
@@ -1,8 +1,10 @@
<article class="item">
<header>
- <h2><i class="fa fa-tag"></i><?=escapeHTML($CATEGORY['ATTR']['NAME'])?></h2>
+ <h2>
+ <i class="fa fa-tag"></i><?=escapeHTML($CATEGORY['ATTR']['NAME'])?>
+ <span class="item-id">#<?=$CATEGORY['ATTR']['ID']?></span>
+ </h2>
<div>
- <span class="brackets item-id">#<?=$CATEGORY['ATTR']['ID']?></span>
<time class="brackets" datetime="<?=$CATEGORY['ATTR']['TIME_INSERT']?>"><?=parseDatetime($CATEGORY['ATTR']['TIME_INSERT'], $Language->text('date_format'))?></time>
<span class="brackets"><?=$Language->text('posts')?>: <?=$COUNT['POST']?></span>
<span class="brackets"><?=$Language->text('categories')?>: <?=$COUNT['CHILDREN']?></span>
diff --git a/theme/admin/html/page/item.php b/theme/admin/html/page/item.php
index c61984c..267416a 100644
--- a/theme/admin/html/page/item.php
+++ b/theme/admin/html/page/item.php
@@ -1,8 +1,10 @@
<article class="item">
<header>
- <h2><i class="fa fa-file-text-o"></i><?=escapeHTML($PAGE['ATTR']['NAME'])?></h2>
+ <h2>
+ <i class="fa fa-file-text-o"></i><?=escapeHTML($PAGE['ATTR']['NAME'])?>
+ <span class="item-id">#<?=$PAGE['ATTR']['ID']?></span>
+ </h2>
<div>
- <span class="brackets item-id">#<?=$PAGE['ATTR']['ID']?></span>
<a class="brackets" href="<?=Application::getAdminURL("user/update.php?id={$USER['ATTR']['ID']}")?>" title="<?=$Language->text('update_user')?>"><?=escapeHTML($USER['ATTR']['FULLNAME'])?></a>
<time class="brackets" datetime="<?=$PAGE['ATTR']['TIME_INSERT']?>"><?=parseDatetime($PAGE['ATTR']['TIME_INSERT'], $Language->text('date_format'))?></time>
</div>
diff --git a/theme/admin/html/post/item.php b/theme/admin/html/post/item.php
index 41991d5..330e682 100644
--- a/theme/admin/html/post/item.php
+++ b/theme/admin/html/post/item.php
@@ -1,8 +1,10 @@
<article class="item">
<header>
- <h2><i class="fa fa-newspaper-o"></i><?=escapeHTML($POST['ATTR']['NAME'])?></h2>
+ <h2>
+ <i class="fa fa-newspaper-o"></i><?=escapeHTML($POST['ATTR']['NAME'])?>
+ <span class="item-id">#<?=$POST['ATTR']['ID']?></span>
+ </h2>
<div>
- <span class="brackets item-id">#<?=$POST['ATTR']['ID']?></span>
<a class="brackets" href="<?=Application::getAdminURL("user/update.php?id={$USER['ATTR']['ID']}")?>" title="<?=$Language->text('update_user')?>"><?=escapeHTML($USER['ATTR']['FULLNAME'])?></a>
<?php if($CATEGORY): ?>
<a class="brackets" href="<?=Application::getAdminURL("category/update.php?id={$CATEGORY['ATTR']['ID']}")?>" title="<?=$Language->text('update_category')?>"><?=escapeHTML($CATEGORY['ATTR']['NAME'])?></a>
diff --git a/theme/admin/html/user/item.php b/theme/admin/html/user/item.php
index ae16637..80edd3b 100644
--- a/theme/admin/html/user/item.php
+++ b/theme/admin/html/user/item.php
@@ -1,8 +1,10 @@
<article class="item">
<header>
- <h2><i class="fa fa-user"></i><?=escapeHTML($USER['ATTR']['FULLNAME'])?></h2>
+ <h2>
+ <i class="fa fa-user"></i><?=escapeHTML($USER['ATTR']['FULLNAME'])?>
+ <span class="item-id">#<?=$USER['ATTR']['ID']?></span>
+ </h2>
<div>
- <span class="brackets item-id">#<?=$USER['ATTR']['ID']?></span>
<time class="brackets" datetime="<?=$USER['ATTR']['TIME_INSERT']?>"><?=parseDatetime($USER['ATTR']['TIME_INSERT'], $Language->text('date_format'))?></time>
</div>
</header>
diff --git a/theme/admin/rsrc/css/main.css b/theme/admin/rsrc/css/main.css
index d227c31..63c9dd0 100644
--- a/theme/admin/rsrc/css/main.css
+++ b/theme/admin/rsrc/css/main.css
@@ -454,6 +454,8 @@ table, td {
.item-id {
float: right;
color: #666;
+ font-size: 0.7rem;
+ font-weight: normal;
}
.item-image {
float: left;
diff --git a/theme/admin/rsrc/css/main.scss b/theme/admin/rsrc/css/main.scss
index 9eff371..e8944ea 100644
--- a/theme/admin/rsrc/css/main.scss
+++ b/theme/admin/rsrc/css/main.scss
@@ -503,6 +503,8 @@ table, td {
&-id {
float: right;
color: #666;
+ font-size: 0.7rem;
+ font-weight: normal;
}
&-image {