diff options
author | Thomas Lange <code@nerdmind.de> | 2017-08-11 03:24:07 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-08-11 03:24:07 +0200 |
commit | a9684792106e4de3aa622d33a0ed7780cbd67ad0 (patch) | |
tree | 4051a0a99e2b4388bd919d3c90444d6b612a0400 /template/admin/html/main.php | |
parent | 6c550895ef0f27bf84b8a5d7917eeee3e3122f67 (diff) | |
download | blog-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/main.php')
-rw-r--r-- | template/admin/html/main.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/template/admin/html/main.php b/template/admin/html/main.php index d7b6148..fafc8d0 100644 --- a/template/admin/html/main.php +++ b/template/admin/html/main.php @@ -22,18 +22,18 @@ <nav id="main-navi"> <?php if(Application::isAuthenticated()): ?> <ul> - <li><a href="<?=Application::getAdminURL()?>" title="<?=$Language->template('overview_dashboard_text')?>"><i class="fa fa-dashboard"></i><span>Dashboard</span></a></li> + <li><a href="<?=Application::getAdminURL()?>" title="<?=$Language->text('overview_dashboard_text')?>"><i class="fa fa-dashboard"></i><span>Dashboard</span></a></li> <li><a href="<?=Application::getAdminURL('post/')?>" title="<?=$Language->text('post_overview')?>"><i class="fa fa-newspaper-o"></i><span><?=$Language->text('posts')?></span></a></li> <li><a href="<?=Application::getAdminURL('page/')?>" title="<?=$Language->text('page_overview')?>"><i class="fa fa-file-text-o"></i><span><?=$Language->text('pages')?></span></a></li> <li><a href="<?=Application::getAdminURL('user/')?>" title="<?=$Language->text('user_overview')?>"><i class="fa fa-user"></i><span><?=$Language->text('users')?></span></a></li> - <li><a href="<?=Application::getAdminURL('database.php')?>" title="<?=$Language->template('overview_database_text')?>"><i class="fa fa-database"></i><span><?=$Language->template('overview_database_text')?></span></a></li> + <li><a href="<?=Application::getAdminURL('database.php')?>" title="<?=$Language->text('overview_database_text')?>"><i class="fa fa-database"></i><span><?=$Language->text('overview_database_text')?></span></a></li> </ul> <ul> - <li><a href="<?=Application::getAdminURL('auth.php?action=logout&token='.Application::getSecurityToken())?>"><i class="fa fa-sign-out"></i><span>Logout</span></a></li> + <li><a href="<?=Application::getAdminURL('auth.php?action=logout&token='.Application::getSecurityToken())?>"><i class="fa fa-sign-out"></i><span><?=$Language->text('logout')?></span></a></li> </ul> <?php else: ?> <ul> - <li><a href="<?=Application::getAdminURL('auth.php')?>"><i class="fa fa-sign-in"></i><span>Login</span></a></li> + <li><a href="<?=Application::getAdminURL('auth.php')?>"><i class="fa fa-sign-in"></i><span><?=$Language->text('login')?></span></a></li> </ul> <?php endif; ?> </nav> |