代码拉取完成,页面将自动刷新
<?php
/**
* File: content.php.
* User: LiuS
* Date: 2017/2/21
* Time: 15:10
* Index:http://www.waitig.com
* Theme:WBetter Theme
*/
$cat_id=1;
$right_cat_id=1;
if(is_category()){
/*$cat_ids = get_the_category();
$cat_id = $cat_ids[0]->cat_ID;*/
$cat_id=get_cat_ID( single_cat_title('',false) );
}
elseif(is_home()){
$cat_id = waitig_gopt('index_cat_id');
}
elseif(is_single()){
$categorys = get_the_category();
$category = $categorys[0];
$cat_id=$category->term_id;
}
$right_cat_id = waitig_gopt('right_cat_id');?>
<div class="container">
<?php echo deel_breadcrumbs(); ?>
<div class="row">
<div class="col-sm-8 col-md-8">
<div class="panel panel-default">
<div class="panel-heading">
《<?php $thiscat = get_category($cat_id); echo $thiscat ->name;?>》精彩介绍
<div class="bdsharebuttonbox" style="float:right"><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tieba" data-cmd="tieba" title="分享到百度贴吧"></a><a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="#" class="bds_more" data-cmd="more"></a><a class="bds_count" data-cmd="count"></a></div>
</div>
<div class="pannel-body info">
<div class="info1">
<img src="<?php echo waitig_gopt("cat_image_".$thiscat->term_id);?>" height="130" width="100" onerror="this.src='<?php echo waitig_gopt("cat_image_".$thiscat->term_id);?>'" /><br/><br/>
<a href="javascript:addBookmark('<?php echo $thiscat ->name;?>','<?php echo get_category_link( $thiscat->term_id )?>');" rel="nofollow" class="btn btn-danger">收藏本书</a><br/><br/>
<a href="<?php echo waitig_gopt("cat_download_url_".$thiscat->term_id);?>" class="btn btn-primary">TXT下载</a>
</div>
<div class="info2">
<h1 class="text-center"><?php echo $thiscat ->name;?></h1>
<h3 class="text-center">作者:<?php echo waitig_gopt("cat_author_".$thiscat->term_id);?></h3>
<div>
<p><!--关于--><?php /*$thiscat = get_category($cat_id); echo $thiscat ->name;:*/?> <?php echo $thiscat ->description;?>
</p>
<?php if(waitig_gopt("cat_novel_about_".$thiscat->term_id)&&(!wp_is_mobile())){echo '<div>作品相关:'.waitig_gopt("cat_novel_about_".$thiscat->term_id).'</div>';}?>
<?php if(waitig_gopt('waitig_tui')){echo '<div><font color="red">本站强推:</font>'.waitig_gopt('waitig_tui').'</div>';}?>
</div>
</div>
<div style="clear:both"></div>
</div>
<div class="panel-body text-center info3">
<p>小说类别:科幻小说 / 写作状态:连载中</p>
<p>最新章节:<?php query_posts("posts_per_page=1&cat=".$cat_id)?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink() ?>" target="_blank">
<?php the_title(); ?>
</a></p>
<p>最后更新:<font color="red"><?php the_time('Y年m月d日 H:i'); ?></font></p>
<?php endwhile;wp_reset_query(); ?>
</div>
</div>
</div>
<div class="col-md-4 col-sm-4 hidden-xs hidden-sm">
<div class="panel panel-default">
<div class="panel-heading">精彩小说推荐</div>
<div class="panel-body" >
<ul class="list-group list-group-ext">
<?php $thiscat = get_category($right_cat_id);?>
<div class="media" style="border:none;margin-bottom: 0;padding-bottom: 0">
<div class="media-left media-heading">
<a href="<?php echo get_category_link( $thiscat->term_id )?>" title='<?php echo $thiscat ->name;?>全文阅读' >
<img title='<?php echo $thiscat ->name;?>全文阅读' src="<?php echo waitig_gopt("cat_image_".$thiscat->term_id);?>" class="img" width="90" height="110" />
</a>
</div>
<div class="media-body">
<h4 class="media-heading book-title"><a href="<?php echo get_category_link( $thiscat->term_id )?>" title='<?php echo $thiscat ->name;?>全文阅读' ><?php echo $thiscat ->name;?></a></h4>
<p class="book_author">
全部文章数:<?php echo $thiscat ->count;?></p>
<p class='cat-book-intro'><?php echo deel_strimwidth($thiscat ->description, 0, 50, '...'); ?><a style="color:red" href="<?php echo get_category_link( $thiscat->term_id )?>">[点击阅读]</a></p>
</div>
</div>
<?php $args=array(
'orderby' => 'name',
'order' => 'ASC',
'hierarchical'=>0,
'child_of'=> 0,
'hide_empty'=> 1,
'taxonomy'=> 'category',
'number'=> '7',
'exclude'=>$right_cat_id
);
$categories=get_categories($args);
$number=2;
foreach($categories as $category) {
?>
<li class="list-group-item nowrap px13 ">
<span class="badge"><?php echo $category ->count;?></span>
<font class='id_sequence'><?php echo $number;$number+=1;?>.</font>
<a href="<?php echo get_category_link( $category->term_id )?>" title='<?php echo $category->name;?>全文阅读' ><?php echo $category->name;?> </a>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
</div>
<?php if(waitig_gopt("cat_other_novel_".$cat_id)){?>
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><?php echo waitig_gopt("cat_author_".$cat_id); ?> 大神的其他作品</div>
<div class="panel-body">
<ul class="list-group list-charts">
<?php echo waitig_gopt("cat_other_novel_".$cat_id); ?>
</ul>
</div>
</div>
</div>
</div>
<?php }?>
<div class="row">
<div class="col-sm-12 col-md-12">
<div>
<?php if(wp_is_mobile()){
echo waitig_gopt('waitig_ad_content2_mobile');
}
else{
echo waitig_gopt('waitig_ad_content2_pc');
}?>
</div>
<div class="panel panel-default">
<div class="panel-heading"><?php $thiscat = get_category($cat_id); echo $thiscat ->name;?> 最新章节</div>
<div class="panel-body">
<ul class="list-group list-charts">
<?php query_posts("posts_per_page=9&cat=".$cat_id."&order=DESC")?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" target="_blank">
<?php the_title(); ?>
</a></li>
<?php endwhile;wp_reset_query(); ?>
</ul>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-12">
<div>
<?php if(wp_is_mobile()){
echo waitig_gopt('waitig_ad_content1_mobile');
}
else{
echo waitig_gopt('waitig_ad_content1_pc');
}?>
</div>
<div class="panel panel-default">
<div class="panel-heading"><?php $thiscat = get_category($cat_id); echo $thiscat ->name;?>全部章节</div>
<div class="panel-body">
<ul class="list-group list-charts">
<?php query_posts("posts_per_page=-1&cat=".$cat_id."&order=ASC")?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" target="_blank">
<?php the_title(); ?>
</a></li>
<?php endwhile;wp_reset_query(); ?>
</ul>
</div>
</div>
<div>
<?php if(wp_is_mobile()){
echo waitig_gopt('waitig_ad_content_mobile');
}
else{
echo waitig_gopt('waitig_ad_content_pc');
}?>
</div>
</div>
</div>
<div class="row">
<!-- <div class="col-sm-12 col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<?php $thiscat = get_category($cat_id); echo $thiscat ->name;?>说明
</div>
<div class="panel-body book-ext-info">
1.<?php bloginfo('name');?>提供<?php $thiscat = get_category($cat_id); echo $thiscat ->name;?>无弹窗阅读,让读者享受干净,清静的阅读环境,我们的口号——“<?php bloginfo('name');?>真正的无弹窗小说网”<br/>
2.我们将日新月新更新本书,但如果您发现本小说《<?php echo $thiscat ->name;?>》最新章节,而<?php bloginfo('name');?>又没有更新,请通知<?php bloginfo('name');?>,您的支持是我们最大的动力。<br/>
3.读者在阅读中如发现内容有与法律抵触之处,请马上向本站举报。希望您多多支持本站,非常感谢您的支持!<br/>
4.本小说《<?php echo $thiscat ->name;?>》是本好看的小说,但其内容仅代表作者本人的观点,与<?php bloginfo('name');?>的立场无关。<br/>
5.如果如果读者在阅读《<?php echo $thiscat ->name;?>》时对作品内容、版权等方面有质疑,或对本站有意见建议请联系管理员处理。<br/>
6.《<?php echo $thiscat ->name;?>》是一本优秀小说,为了让作者:<?php echo waitig_gopt("cat_author_".$thiscat->term_id);?>能提供更多更好崭新的作品,请您购买本书的VIP或《<?php echo $thiscat ->name;?>》完本、全本、完结版实体小说及多多宣传本书和推荐,也是对作者的一种另种支持!小说的未来,是需要您我共同的努力!
</div>
</div>
</div> -->
<?php include "popcate.php";?>
<?php include "flink.php";?>
</div>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。