summaryrefslogtreecommitdiffstats
path: root/template/standard/html/page
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/standard/html/page
parent6c550895ef0f27bf84b8a5d7917eeee3e3122f67 (diff)
downloadblog-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/page')
-rw-r--r--template/standard/html/page/item.php2
-rw-r--r--template/standard/html/page/list.php2
-rw-r--r--template/standard/html/page/main.php4
3 files changed, 4 insertions, 4 deletions
diff --git a/template/standard/html/page/item.php b/template/standard/html/page/item.php
index 6065354..3199a39 100644
--- a/template/standard/html/page/item.php
+++ b/template/standard/html/page/item.php
@@ -11,7 +11,7 @@
<header>
<h2>
<a href="<?=$PAGE['URL']?>"><?=escapeHTML($PAGE['ATTR']['NAME'])?></a>
- <time class="brackets info" datetime="<?=$PAGE['ATTR']['TIME_INSERT']?>"><?=parseDatetime($PAGE['ATTR']['TIME_INSERT'], $Language->template('date_format'))?></time>
+ <time class="brackets info" datetime="<?=$PAGE['ATTR']['TIME_INSERT']?>"><?=parseDatetime($PAGE['ATTR']['TIME_INSERT'], $Language->text('date_format'))?></time>
</h2>
</header>
<blockquote cite="<?=$PAGE['URL']?>">
diff --git a/template/standard/html/page/list.php b/template/standard/html/page/list.php
index 2bc71a4..da75330 100644
--- a/template/standard/html/page/list.php
+++ b/template/standard/html/page/list.php
@@ -8,7 +8,7 @@
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
?>
<h1><i class="fa fa-file-text-o"></i><?=$Language->text('page_overview')?><span class="head-link brackets"><i class="fa fa-rss"></i><a href="<?=Application::getURL('feed/page/')?>" title="<?=$Language->text('feed_name_pages', escapeHTML($BLOGMETA['NAME']))?>">Feed</a></span></h1>
-<p><?=$Language->template('page_overview_heading_desc', $PAGINATION['THIS'])?></p>
+<p><?=$Language->text('page_overview_heading_desc', $PAGINATION['THIS'])?></p>
<ul class="item-list page">
<?php foreach($LIST['PAGES'] as $page): ?>
diff --git a/template/standard/html/page/main.php b/template/standard/html/page/main.php
index 3b62571..cfe26fd 100644
--- a/template/standard/html/page/main.php
+++ b/template/standard/html/page/main.php
@@ -8,10 +8,10 @@
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
$user = "<a href=\"{$USER['URL']}\" title=\"alias »{$USER['ATTR']['USERNAME']}«\">{$USER['ATTR']['FULLNAME']}</a>";
-$time = "<time datetime=\"{$PAGE['ATTR']['TIME_INSERT']}\" title=\"".parseDatetime($PAGE['ATTR']['TIME_INSERT'], '[W]')."\">".parseDatetime($PAGE['ATTR']['TIME_INSERT'], $Language->template('date_format'))."</time>";
+$time = "<time datetime=\"{$PAGE['ATTR']['TIME_INSERT']}\" title=\"".parseDatetime($PAGE['ATTR']['TIME_INSERT'], '[W]')."\">".parseDatetime($PAGE['ATTR']['TIME_INSERT'], $Language->text('date_format'))."</time>";
?>
<h1><i class="fa fa-file-text-o"></i><?=escapeHTML($PAGE['ATTR']['NAME'])?></h1>
-<p><?=$Language->template('page_main_heading_desc', [$user, $time])?></p>
+<p><?=$Language->text('page_main_heading_desc', [$user, $time])?></p>
<section id="content" class="page">
<?=$PAGE['BODY']['HTML']()?>