summaryrefslogtreecommitdiffstats
path: root/template/admin/html/home.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-08-11 03:24:07 +0200
committerThomas Lange <code@nerdmind.de>2017-08-11 03:24:07 +0200
commita9684792106e4de3aa622d33a0ed7780cbd67ad0 (patch)
tree4051a0a99e2b4388bd919d3c90444d6b612a0400 /template/admin/html/home.php
parent6c550895ef0f27bf84b8a5d7917eeee3e3122f67 (diff)
downloadblog-a9684792106e4de3aa622d33a0ed7780cbd67ad0.tar.gz
blog-a9684792106e4de3aa622d33a0ed7780cbd67ad0.tar.xz
blog-a9684792106e4de3aa622d33a0ed7780cbd67ad0.zip
Several changes have been made in this commit, which together with the previous commits result in version 2.3:v2.3
+ Optimization: Originally, the core and template languages were completely separated in the logic of the Language class and you had to use "$Language->text()" to get a core language string and "$Language->template()" to get a template language string. Since this commit, the core and template language strings are still located in different files, but you now have to use "$Language->text()" for core and template language strings both. Thus, you can now even overwrite a core language string from the language file of a template if the core language string does not satisfy you. + Deprecated: The method "$Language->template()" was marked as deprecated and will be removed in further versions (currently, it's just an alias for "$Language->text()"). Template upgrade to version 2.3 (only for customized templates): SEARCH: $Language->template REPLACE: $Language->text
Diffstat (limited to 'template/admin/html/home.php')
-rw-r--r--template/admin/html/home.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/template/admin/html/home.php b/template/admin/html/home.php
index 6701f35..6ade82d 100644
--- a/template/admin/html/home.php
+++ b/template/admin/html/home.php
@@ -1,17 +1,17 @@
-<h1><i class="fa fa-dashboard"></i><?=$Language->template('overview_dashboard_text')?></h1>
-<p><?=$Language->template('overview_dashboard_desc')?></p>
+<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->template('last_post')?></h2>
+<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/')?>"><?=$Language->text('post_overview')?></a> | <a href="<?=Application::getAdminURL('post/insert.php')?>"><?=$Language->text('insert')?></a></p>
<?php if(!empty($LAST['POST'])): ?>
<ul class="item-list">
<?=$LAST['POST']?>
</ul>
<?php else: ?>
- <p><em><?=$Language->template('home_no_posts')?></em></p>
+ <p><em><?=$Language->text('home_no_posts')?></em></p>
<?php endif; ?>
-<h2><i class="fa fa-file-text-o"></i><?=$Language->template('last_page')?></h2>
+<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/')?>"><?=$Language->text('page_overview')?></a> | <a href="<?=Application::getAdminURL('page/insert.php')?>"><?=$Language->text('insert')?></a></p>
<?php if(!empty($LAST['PAGE'])): ?>
@@ -19,10 +19,10 @@
<?=$LAST['PAGE']?>
</ul>
<?php else: ?>
- <p><em><?=$Language->template('home_no_pages')?></em></p>
+ <p><em><?=$Language->text('home_no_pages')?></em></p>
<?php endif; ?>
-<h2><i class="fa fa-user"></i><?=$Language->template('last_user')?></h2>
+<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/')?>"><?=$Language->text('user_overview')?></a> | <a href="<?=Application::getAdminURL('user/insert.php')?>"><?=$Language->text('insert')?></a></p>
<?php if(!empty($LAST['USER'])): ?>
@@ -30,5 +30,5 @@
<?=$LAST['USER']?>
</ul>
<?php else: ?>
- <p><em><?=$Language->template('home_no_users')?></em></p>
+ <p><em><?=$Language->text('home_no_users')?></em></p>
<?php endif; ?>