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/standard/html/user | |
parent | 6c550895ef0f27bf84b8a5d7917eeee3e3122f67 (diff) | |
download | blog-d8af3c95848bf56eb82cda07463406a98fd6de30.tar.gz blog-d8af3c95848bf56eb82cda07463406a98fd6de30.tar.xz blog-d8af3c95848bf56eb82cda07463406a98fd6de30.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/standard/html/user')
-rw-r--r-- | template/standard/html/user/list.php | 2 | ||||
-rw-r--r-- | template/standard/html/user/main.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/template/standard/html/user/list.php b/template/standard/html/user/list.php index 5c8f6a6..d95bd0c 100644 --- a/template/standard/html/user/list.php +++ b/template/standard/html/user/list.php @@ -8,7 +8,7 @@ #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# ?> <h1><i class="fa fa-user"></i><?=$Language->text('user_overview')?></h1> -<p><?=$Language->template('user_overview_heading_desc', $PAGINATION['THIS'])?></p> +<p><?=$Language->text('user_overview_heading_desc', $PAGINATION['THIS'])?></p> <ul class="item-list user"> <?php foreach($LIST['USERS'] as $user): ?> diff --git a/template/standard/html/user/main.php b/template/standard/html/user/main.php index 473b00b..2a195a4 100644 --- a/template/standard/html/user/main.php +++ b/template/standard/html/user/main.php @@ -8,7 +8,7 @@ #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# ?> <h1><i class="fa fa-user"></i><?=escapeHTML($USER['ATTR']['FULLNAME'])?></h1> -<p><em><?=$Language->template('user_main_heading_desc', [escapeHTML($USER['ATTR']['USERNAME']), $COUNT['POST'], $COUNT['PAGE']])?></em></p> +<p><em><?=$Language->text('user_main_heading_desc', [escapeHTML($USER['ATTR']['USERNAME']), $COUNT['POST'], $COUNT['PAGE']])?></em></p> <section id="content" class="user"> <?=$USER['BODY']['HTML']()?> |