diff options
author | Thomas Lange <code@nerdmind.de> | 2021-06-13 19:46:34 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-06-13 19:46:34 +0200 |
commit | d3b109fae0e246d01b0c73afd828347bcf5d2e86 (patch) | |
tree | 00e9aaef44b0c49c9695dfa7357ef59a75ada60c /theme/admin/html/post | |
parent | b3fea3b92240a0ce51437ff84d933dd7a942a1b8 (diff) | |
download | blog-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/post')
-rw-r--r-- | theme/admin/html/post/delete.php | 4 | ||||
-rw-r--r-- | theme/admin/html/post/index.php | 6 | ||||
-rw-r--r-- | theme/admin/html/post/insert.php | 4 | ||||
-rw-r--r-- | theme/admin/html/post/search.php | 4 | ||||
-rw-r--r-- | theme/admin/html/post/update.php | 4 |
5 files changed, 16 insertions, 6 deletions
diff --git a/theme/admin/html/post/delete.php b/theme/admin/html/post/delete.php index 6654377..ed82197 100644 --- a/theme/admin/html/post/delete.php +++ b/theme/admin/html/post/delete.php @@ -1,4 +1,6 @@ +<main id="main-content"> <h1><i class="fa fa-trash-o"></i><?=$Language->text('delete_post')?></h1> <p><?=$Language->text('delete_post_desc')?></p> -<?=$HTML?>
\ No newline at end of file +<?=$HTML?> +</main> diff --git a/theme/admin/html/post/index.php b/theme/admin/html/post/index.php index f884b05..83dd5dc 100644 --- a/theme/admin/html/post/index.php +++ b/theme/admin/html/post/index.php @@ -1,3 +1,4 @@ +<main id="main-content" class="wide"> <h1><i class="fa fa-newspaper-o"></i><?=$Language->text('post_overview')?></h1> <p class="actions-before"><?=$Language->text('overview_post_desc')?></p> <ul class="actions"> @@ -5,10 +6,11 @@ <li><a href="<?=Application::getAdminURL('post/search.php')?>" title="<?=$Language->text('search_post')?>"><i class="fa fa-search"></i><?=$Language->text('search')?></a></li> </ul> -<div class="item-container post"> +<div class="item-container post grid"> <?php foreach($LIST['POSTS'] as $post): ?> <?php echo $post; ?> <?php endforeach; ?> </div> -<?=$PAGINATION['HTML']?>
\ No newline at end of file +<?=$PAGINATION['HTML']?> +</main> diff --git a/theme/admin/html/post/insert.php b/theme/admin/html/post/insert.php index dc32c24..9b7c588 100644 --- a/theme/admin/html/post/insert.php +++ b/theme/admin/html/post/insert.php @@ -1,4 +1,6 @@ +<main id="main-content"> <h1><i class="fa fa-pencil-square-o"></i><?=$Language->text('insert_post')?></h1> <p><?=$Language->text('insert_post_desc')?></p> -<?=$HTML?>
\ No newline at end of file +<?=$HTML?> +</main> diff --git a/theme/admin/html/post/search.php b/theme/admin/html/post/search.php index 1289879..00bd016 100644 --- a/theme/admin/html/post/search.php +++ b/theme/admin/html/post/search.php @@ -1,3 +1,4 @@ +<main id="main-content" <?=!$POSTS ?: 'class="wide"'?>> <h1><i class="fa fa-search"></i><?=$Language->text('title_post_search')?></h1> <p><?=$Language->text('search_post_desc')?></p> @@ -10,8 +11,9 @@ </div> </form> -<div class="item-container post"> +<div class="item-container post grid"> <?php foreach($POSTS as $post): ?> <?php echo $post; ?> <?php endforeach; ?> </div> +</main> diff --git a/theme/admin/html/post/update.php b/theme/admin/html/post/update.php index a577bec..aa3835d 100644 --- a/theme/admin/html/post/update.php +++ b/theme/admin/html/post/update.php @@ -1,4 +1,6 @@ +<main id="main-content"> <h1><i class="fa fa-pencil-square-o"></i><?=$Language->text('update_post')?></h1> <p><?=$Language->text('update_post_desc')?></p> -<?=$HTML?>
\ No newline at end of file +<?=$HTML?> +</main> |