代码拉取完成,页面将自动刷新
同步操作将从 唐杰/JieStyle Two 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php get_header(); ?>
<div id="main">
<?php while ( have_posts() ) : the_post(); ?>
<article class="col-md-8 col-md-offset-2 view clearfix">
<h1 class="view-title"><?php the_title(); ?></h1>
<div class="view-meta">
<span>作者: <?php the_author() ?></span>
<span>分类: <?php the_category(',') ?></span>
<span>发布时间: <?php the_time('Y-m-d H:i') ?></span>
<span><?php edit_post_link('<i class="fa fa-pencil-square-o" aria-hidden="true"></i> 编辑'); ?></span>
</div>
<div class="view-content">
<?php the_content(); ?>
</div>
<section class="view-tag">
<div class="pull-left"><i class="fa fa-tags"></i> <?php the_tags('',''); ?></div>
</section>
<?php if (get_option('tang_dashang') == '启用') { ?>
<section class="support-author">
<p><?php echo stripslashes(get_option('tang_dashang_info')); ?></p>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal"><i class="fa fa-cny" aria-hidden="true"></i> 打赏支持</button>
</section>
<?php } ?>
<section id="comments">
<?php comments_template(); ?>
</section>
</article>
<?php endwhile; ?>
<section class="col-md-8 col-md-offset-2 clearfix">
<div class="read">
<div class="read-head"> <i class="fa fa-book"></i> 更多阅读 </div>
<div class="read-list row">
<div class="col-md-6">
<ul>
<?php tangstyle_get_most_viewed(); ?>
</ul>
</div>
<div class="col-md-6">
<ul>
<?php $rand_posts = get_posts('numberposts=10&orderby=rand'); foreach( $rand_posts as $post ) : ?>
<li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
<div class="read">
<div class="read-head"> <i class="fa fa-tags"></i> 标签云 </div>
<div class="read-list">
<?php wp_tag_cloud();?>
</div>
</div>
</section>
</div>
<!--modal-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content single-dashang">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel"><i class="fa fa-cny" aria-hidden="true"></i> 打赏支持</h4>
</div>
<div class="modal-body text-center">
<p><img border="0" src="<?php echo stripslashes(get_option('tang_dashang_alipay')); ?>"><img border="0" src="<?php echo stripslashes(get_option('tang_dashang_wechat')); ?>"></p>
<p>扫描二维码,输入您要打赏的金额</p>
</div>
</div>
</div>
</div>
<!--modal-->
<?php get_footer(); ?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。