aboutsummaryrefslogtreecommitdiffstats
path: root/theme/admin/html/home.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-17 22:00:39 +0200
committerThomas Lange <code@nerdmind.de>2021-06-17 22:00:39 +0200
commit5555624546ea48d6327700f32b80848e0662dc90 (patch)
tree47d61fb756a6cb008aaf33586d292fcfe43da2a1 /theme/admin/html/home.php
parent91d8a28c664afa5378735bcd0efe068dd74d589f (diff)
parent0a2614cb69fc732c2115ef2f0c356f39f602d311 (diff)
downloadblog-optimization.tar.gz
blog-optimization.tar.xz
blog-optimization.zip
Merge branch 'master' into 'optimization'optimization
Diffstat (limited to 'theme/admin/html/home.php')
-rw-r--r--theme/admin/html/home.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/theme/admin/html/home.php b/theme/admin/html/home.php
new file mode 100644
index 0000000..5331fa8
--- /dev/null
+++ b/theme/admin/html/home.php
@@ -0,0 +1,47 @@
+<main id="main-content">
+<h1><i class="fa fa-dashboard"></i><?=$Language->text('overview_dashboard_text')?></h1>
+<p><?=$Language->text('overview_dashboard_desc')?></p>
+
+<h2><i class="fa fa-newspaper-o"></i><?=$Language->text('last_post')?></h2>
+<p>
+ <strong><?=$Language->text('posts')?>:</strong> <?=$COUNT['POST']?>
+ | <a href="<?=Application::getAdminURL('post/insert.php')?>"><?=$Language->text('insert')?></a>
+ | <a href="<?=Application::getAdminURL('post/search.php')?>"><?=$Language->text('search')?></a>
+</p>
+<?php if(!empty($LAST['POST'])): ?>
+ <div class="item-container post">
+ <?=$LAST['POST']?>
+ </div>
+<?php else: ?>
+ <p><em><?=$Language->text('home_no_posts')?></em></p>
+<?php endif; ?>
+
+<h2><i class="fa fa-file-text-o"></i><?=$Language->text('last_page')?></h2>
+<p>
+ <strong><?=$Language->text('pages')?>:</strong> <?=$COUNT['PAGE']?>
+ | <a href="<?=Application::getAdminURL('page/insert.php')?>"><?=$Language->text('insert')?></a>
+ | <a href="<?=Application::getAdminURL('page/search.php')?>"><?=$Language->text('search')?></a>
+</p>
+
+<?php if(!empty($LAST['PAGE'])): ?>
+ <div class="item-container page">
+ <?=$LAST['PAGE']?>
+ </div>
+<?php else: ?>
+ <p><em><?=$Language->text('home_no_pages')?></em></p>
+<?php endif; ?>
+
+<h2><i class="fa fa-user"></i><?=$Language->text('last_user')?></h2>
+<p>
+ <strong><?=$Language->text('users')?>:</strong> <?=$COUNT['USER']?>
+ | <a href="<?=Application::getAdminURL('user/insert.php')?>"><?=$Language->text('insert')?></a>
+</p>
+
+<?php if(!empty($LAST['USER'])): ?>
+ <div class="item-container user">
+ <?=$LAST['USER']?>
+ </div>
+<?php else: ?>
+ <p><em><?=$Language->text('home_no_users')?></em></p>
+<?php endif; ?>
+</main>