代码拉取完成,页面将自动刷新
同步操作将从 shrekuu/typecho-bootstrap-theme 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div class="col-xs-12 col-md-3 kit-hidden-tb" id="secondary" role="complementary">
<?php if (!empty($this->options->sidebarBlock) && in_array('ShowRecentPosts', $this->options->sidebarBlock)): ?>
<section class="panel panel-default widget">
<div class="panel-heading widget-title"><?php _e('最新文章'); ?></div>
<ul class="list-group widget-list">
<?php $this->widget('Widget_Contents_Post_Recent')
->parse('<li class="list-group-item"><a href="{permalink}">{title}</a></li>'); ?>
</ul>
</section>
<?php endif; ?>
<?php if (!empty($this->options->sidebarBlock) && in_array('ShowRecentComments', $this->options->sidebarBlock)): ?>
<section class="panel panel-default widget recent-comments">
<div class="panel-heading widget-title"><?php _e('最近回复'); ?></div>
<ul class="list-group widget-list">
<?php $this->widget('Widget_Comments_Recent')->to($comments); ?>
<?php while($comments->next()): ?>
<li class="list-group-item"><a href="<?php $comments->permalink(); ?>"><?php $comments->author(false); ?></a>: <?php $comments->excerpt(35, '...'); ?></li>
<?php endwhile; ?>
</ul>
</section>
<?php endif; ?>
<?php if (!empty($this->options->sidebarBlock) && in_array('ShowCategory', $this->options->sidebarBlock)): ?>
<section class="panel panel-default widget">
<div class="panel-heading widget-title"><?php _e('分类'); ?></div>
<?php $this->widget('Widget_Metas_Category_List')->listCategories('wrapClass=widget-list category-list'); ?>
</section>
<?php endif; ?>
<?php if (!empty($this->options->sidebarBlock) && in_array('ShowArchive', $this->options->sidebarBlock)): ?>
<section class="panel panel-default widget">
<div class="panel-heading widget-title"><?php _e('归档'); ?></div>
<ul class="list-group widget-list">
<?php $this->widget('Widget_Contents_Post_Date', 'type=month&format=F Y')
->parse('<li class="list-group-item"><a href="{permalink}">{date}</a></li>'); ?>
</ul>
</section>
<?php endif; ?>
<?php if (!empty($this->options->sidebarBlock) && in_array('ShowOther', $this->options->sidebarBlock)): ?>
<section class="panel panel-default widget">
<div class="panel-heading widget-title"><?php _e('其它'); ?></div>
<ul class="list-group widget-list">
<?php if($this->user->hasLogin()): ?>
<li class="list-group-item last"><a href="<?php $this->options->adminUrl(); ?>"><?php _e('进入后台'); ?> (<?php $this->user->screenName(); ?>)</a></li>
<li class="list-group-item"><a href="<?php $this->options->logoutUrl(); ?>"><?php _e('退出'); ?></a></li>
<?php else: ?>
<li class="list-group-item last"><a href="<?php $this->options->adminUrl('login.php'); ?>"><?php _e('登录'); ?></a></li>
<?php endif; ?>
<li class="list-group-item"><a href="<?php $this->options->feedUrl(); ?>"><?php _e('文章 RSS'); ?></a></li>
<li class="list-group-item"><a href="<?php $this->options->commentsFeedUrl(); ?>"><?php _e('评论 RSS'); ?></a></li>
<li class="list-group-item"><a href="http://www.typecho.org" target="_blank">Typecho</a></li>
</ul>
</section>
<?php endif; ?>
</div><!-- end #sidebar -->
<script>
$(function() {
// give category list same design; unable to this only in html class
$('.category-list').addClass('list-group').find('li').addClass('list-group-item');
});
</script>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。