aboutsummaryrefslogtreecommitdiffstats
path: root/theme/admin/html/page
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-13 19:46:34 +0200
committerThomas Lange <code@nerdmind.de>2021-06-13 19:46:34 +0200
commitd3b109fae0e246d01b0c73afd828347bcf5d2e86 (patch)
tree00e9aaef44b0c49c9695dfa7357ef59a75ada60c /theme/admin/html/page
parentb3fea3b92240a0ce51437ff84d933dd7a942a1b8 (diff)
downloadblog-d3b109fae0e246d01b0c73afd828347bcf5d2e86.tar.gz
blog-d3b109fae0e246d01b0c73afd828347bcf5d2e86.tar.xz
blog-d3b109fae0e246d01b0c73afd828347bcf5d2e86.zip
Use grid layout for items in administration area
Introduce a new 1/2/3-column CSS grid layout in the administration area for items on overview pages and in the search results. The column count of the grid depends on the users viewport width. In addition, the default value of the following configuration settings has been changed to 12 because 12 can also be divided by 2 and 3 which is useful for the 1/2/3-column grid layout. ADMIN.PAGE.LIST_SIZE = 12 ADMIN.POST.LIST_SIZE = 12
Diffstat (limited to 'theme/admin/html/page')
-rw-r--r--theme/admin/html/page/delete.php4
-rw-r--r--theme/admin/html/page/index.php6
-rw-r--r--theme/admin/html/page/insert.php4
-rw-r--r--theme/admin/html/page/search.php4
-rw-r--r--theme/admin/html/page/update.php4
5 files changed, 16 insertions, 6 deletions
diff --git a/theme/admin/html/page/delete.php b/theme/admin/html/page/delete.php
index ccc569f..006090e 100644
--- a/theme/admin/html/page/delete.php
+++ b/theme/admin/html/page/delete.php
@@ -1,4 +1,6 @@
+<main id="main-content">
<h1><i class="fa fa-trash-o"></i><?=$Language->text('delete_page')?></h1>
<p><?=$Language->text('delete_page_desc')?></p>
-<?=$HTML?> \ No newline at end of file
+<?=$HTML?>
+</main>
diff --git a/theme/admin/html/page/index.php b/theme/admin/html/page/index.php
index 7067c40..bdc7f94 100644
--- a/theme/admin/html/page/index.php
+++ b/theme/admin/html/page/index.php
@@ -1,3 +1,4 @@
+<main id="main-content" class="wide">
<h1><i class="fa fa-file-text-o"></i><?=$Language->text('page_overview')?></h1>
<p class="actions-before"><?=$Language->text('overview_page_desc')?></p>
<ul class="actions">
@@ -5,10 +6,11 @@
<li><a href="<?=Application::getAdminURL('page/search.php')?>" title="<?=$Language->text('search_page')?>"><i class="fa fa-search"></i><?=$Language->text('search')?></a></li>
</ul>
-<div class="item-container page">
+<div class="item-container page grid">
<?php foreach($LIST['PAGES'] as $page): ?>
<?php echo $page; ?>
<?php endforeach; ?>
</div>
-<?=$PAGINATION['HTML']?> \ No newline at end of file
+<?=$PAGINATION['HTML']?>
+</main>
diff --git a/theme/admin/html/page/insert.php b/theme/admin/html/page/insert.php
index 7442200..a77e47f 100644
--- a/theme/admin/html/page/insert.php
+++ b/theme/admin/html/page/insert.php
@@ -1,4 +1,6 @@
+<main id="main-content">
<h1><i class="fa fa-pencil-square-o"></i><?=$Language->text('insert_page')?></h1>
<p><?=$Language->text('insert_page_desc')?></p>
-<?=$HTML?> \ No newline at end of file
+<?=$HTML?>
+</main>
diff --git a/theme/admin/html/page/search.php b/theme/admin/html/page/search.php
index 6506d34..145b0f9 100644
--- a/theme/admin/html/page/search.php
+++ b/theme/admin/html/page/search.php
@@ -1,3 +1,4 @@
+<main id="main-content" <?=!$PAGES ?: 'class="wide"'?>>
<h1><i class="fa fa-search"></i><?=$Language->text('title_page_search')?></h1>
<p><?=$Language->text('search_page_desc')?></p>
@@ -10,8 +11,9 @@
</div>
</form>
-<div class="item-container post">
+<div class="item-container post grid">
<?php foreach($PAGES as $page): ?>
<?php echo $page; ?>
<?php endforeach; ?>
</div>
+</main>
diff --git a/theme/admin/html/page/update.php b/theme/admin/html/page/update.php
index 77a7eb2..ce51d2a 100644
--- a/theme/admin/html/page/update.php
+++ b/theme/admin/html/page/update.php
@@ -1,4 +1,6 @@
+<main id="main-content">
<h1><i class="fa fa-pencil-square-o"></i><?=$Language->text('update_page')?></h1>
<p><?=$Language->text('update_page_desc')?></p>
-<?=$HTML?> \ No newline at end of file
+<?=$HTML?>
+</main>