Skip to content

Commit

Permalink
修复#5 问题,修复底部分门别类 文章数溢出错位问题顺便更新了版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
Xingr committed Jan 15, 2019
1 parent 39efca6 commit c51041b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion css/style.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<aside>
<?php if ($this->options->random == 'able'): ?>
<div class="aside-left sidebar">

<h3>随机文章</h3>
<?php theme_random_posts();?>
<div class="clear">
</div>

</div>

<div class="aside-right sidebar">
<h3>分门别类</h3>
<ul>
<?php $this->widget('Widget_Metas_Category_List')->parse('<li><a href="{permalink}" class="">{name}<span> {count}篇</span></a></li>'); ?>
</ul>
</div>
<?php endif; ?>
</aside><footer><span>© 2018 <?php $this->options->title(); ?> - <a href="<?php $this->options->feedUrl();?>"><?php Typecho_Widget::widget('Widget_Stat')->to($stat); ?><?php $stat->publishedPostsNum() ?> Posts crafted</a></span><span><a href="https://blog.shuiba.co/bitcron-theme-hello">Hello</a> & <a href="https://github.com/PCDotFan/Aragaki">Aragaki</a> By <a href="https://www.xde.io/typecho/fantasy.html">Xingr</a></span>
<div class="powered_by">
<span>Proudly published with</span>
Expand Down
6 changes: 6 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ function themeConfig($form) {
),
'disable', _t('阅读视觉优化'), _t('默认禁止,启用则使用视觉阅读优化'));
$form->addInput($fontshow);
$random = new Typecho_Widget_Helper_Form_Element_Radio('random',
array('able' => _t('启用'),
'disable' => _t('禁止'),
),
'disable', _t('随机文章'), _t('默认禁止,启用则不显示底部随机文章和分类'));
$form->addInput($random);

}

Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 又改名为Fantasy取义“清梦”源自“ 醉后不知天在水,满船清梦压星河。” 意图用来描绘现状。
* @package Fantasy Theme
* @author Intern
* @version 1.0.0
* @version 1.2.0
* @link https://wwww.xde.io/
*/

Expand Down

0 comments on commit c51041b

Please sign in to comment.