Skip to content

Commit e7d9d60

Browse files
authored
Merge pull request #6 from LiMingYuGuang/canary
Master merge Canary 3.0.3
2 parents 0f08335 + cd91c26 commit e7d9d60

16 files changed

+84
-1538
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
- Author 作者:Viosey
2222
- Maintainer 维护者:黎明余光
23-
- Version 版本:3.0.1
23+
- Version 版本:3.0.3
2424
- Compatibility 兼容:PHP 5.4+, MySQL, Typecho 1.0
2525

2626
## Feature 特性

archive.php

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,7 @@
4343
<?php $this->excerpt(80, '...'); ?> &nbsp;&nbsp;&nbsp;
4444
<span>
4545
<a href="<?php $this->permalink(); ?>" target="_self">
46-
<?php if ($this->options->langis == '0'): ?>
47-
Continue Reading
48-
<?php elseif ($this->options->langis == '1'): ?>
49-
继续阅读
50-
<?php elseif ($this->options->langis == '2'): ?>
51-
繼續閱讀
52-
<?php endif; ?>
46+
<?php echo tranMsg("Continue Reading", "继续阅读", $this->options->langis) ?>
5347
</a>
5448
</span>
5549
</div>
@@ -76,7 +70,7 @@
7670
</span>
7771
</div>
7872
</div>
79-
73+
8074
<div id="post_entry-right-info" style="color:<?php $this->options->alinkcolor(); ?>">
8175
<span class="post_entry-category">
8276
<?php $this->category(', '); ?> |
@@ -96,11 +90,11 @@
9690
<?php $this->pageLink(
9791
'<button class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon"><i class="material-icons" role="presentation">arrow_back</i></button>'); ?>
9892
<span class="page-number current"><?php if ($this->_currentPage>1) {
99-
echo $this->_currentPage;
100-
} else {
101-
echo 1;
102-
}?> of <?php echo ceil($this->getTotal() / $this->parameter->pageSize); ?></span>
103-
93+
echo $this->_currentPage;
94+
} else {
95+
echo 1;
96+
}?> of <?php echo ceil($this->getTotal() / $this->parameter->pageSize); ?></span>
97+
10498
<?php $this->pageLink(
10599
'<button class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon"><i class="material-icons" role="presentation">arrow_forward</i></button>', 'next'); ?>
106100
</nav>

comments.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@
7070
<?php $comments->threadedComments($options); ?>
7171
<!--嵌套评论所有内容-->
7272
</div>
73-
<?php
73+
<?php
7474
} ?>
7575
<!--是否嵌套评论判断结束-->
7676
</div>
7777

7878
</div>
7979

80-
<?php
80+
<?php
8181
} ?>
8282

8383
<!-- 使用原生评论 -->
@@ -150,7 +150,7 @@
150150

151151
<!-- Input comment content -->
152152
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label" id="comment-input-div">
153-
<textarea name="text" rows="1" id="comment" class="mdl-textfield__input"></textarea>
153+
<textarea name="text" rows="<?php $this->options->CommentRows() ?>" id="comment" class="mdl-textfield__input"></textarea>
154154
<label for="comment" class="mdl-textfield__label">
155155
<?php if ($this->options->langis == '0'): ?>
156156
Join the discussion
@@ -165,7 +165,6 @@
165165
<button id="comment-button" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon">
166166
<i class="material-icons" role="presentation">check</i><span class="visuallyhidden">add comment</span>
167167
</button>'); ?>
168-
<div class="mdl-tooltip" for="comment-button">Submit</div>
169168

170169
</form>
171170
</div>
@@ -176,7 +175,7 @@
176175
<?php else: ?>
177176

178177
<div class="comments__closed">
179-
<span id="commentCount">评论已关闭</span>
178+
<span id="commentCount"><?php echo tranMsg("Comment has been closed", "评论已关闭", $this->options->langis) ?></span>
180179
</div>
181180

182181
<?php endif; ?>

0 commit comments

Comments
 (0)