summaryrefslogtreecommitdiffstats
path: root/pagefile.php
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2020-07-15 00:18:04 +0800
committerBigCoke233 <hi@guhub.cn>2020-07-15 00:18:04 +0800
commit08e6e289626620abd5dea49c0485fa80dc011e79 (patch)
tree1bfb0f7746ca207bded81616f18782d5eb9871c9 /pagefile.php
parent0615f62964b26f5d2f54da3c9262a1ea17df41ce (diff)
:poop: Add: 初步实现多语言功能,并使用 hint.css 添加 tooltip
Diffstat (limited to 'pagefile.php')
-rw-r--r--pagefile.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/pagefile.php b/pagefile.php
index a24d2bb..d444708 100644
--- a/pagefile.php
+++ b/pagefile.php
@@ -13,7 +13,7 @@ $this->need('includes/header.php');
<div class="post-body">
<div class="post-content page-content">
<?php $this->widget('Widget_Metas_Tag_Cloud', 'sort=mid&ignoreZeroCount=1&desc=0&limit=30')->to($tags); ?>
- <h2>文章标签</h2>
+ <h2><?php gtecho('archivePageTexts','archiveTagTitle'); ?></h2>
<?php if($tags->have()): ?>
<ul class="tags-list">
<?php while ($tags->next()): ?>
@@ -22,14 +22,14 @@ $this->need('includes/header.php');
</ul>
<?php endif; ?>
<br />
- <h2>文章归档</h2>
+ <h2><?php gtecho('archivePageTexts','archivePostTitle'); ?></h2>
<ul class="archives-list"><?php
$archives = Contents::archives($this);
$number = 0;
foreach($archives as $year => $posts) {
$detailsOpen = ($number === 0) ? ' open' : NULL;
echo '<details'.$detailsOpen.'>';
- echo '<summary>'.$year.' 年<small class="archives-count">共 '.count($posts).' 篇文章</small></summary>';
+ echo '<summary>'.$year.' '.gt('archivePageTexts','archiveTimeYear').'<small class="archives-count">'.gta('archivePageTexts','archiveYearTotal',count($posts)).'</small></summary>';
foreach($posts as $created => $post) {
echo '<li><a href="'.$post['permalink'].'" class="no-line">
<span class="archives-date">'.date('m-d', $created).'</span>