-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.php
44 lines (43 loc) · 1.59 KB
/
category.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php get_header();
?>
<?php
$option=get_option('erlsimple_theme_options');
/* 显示第二页以及之后页面时,is_paged()返回TRUE */
if($option['if_catbg']==1 && !is_paged()):
?>
<style>
.nav-bar{ display:none;}
</style>
<header class="site-header" style=" height:50%;">
<div class="site-header-inner" style="
animation: bgcolor 5s;
-moz-animation: bgcolor 5s;
-webkit-animation: bgcolor 5s;
-o-animation: bgcolor 5s;
background-color: rgba(0,0,0,0.1);">
<h1 style=" color:#fff;" class="animated fadeInDown"><i style=" margin-right:15px;" class="fa fa-bars"></i><?php single_cat_title();?></h1>
<h2 class="animated fadeInUp"><?php echo category_description();?></h2>
</div><!-- /.site-header-inner -->
</header>
<?php endif;?>
<div class="main">
<div class="content">
<?php if (have_posts()) : ?>
<div class="crumbs_patch">
<?php if(function_exists('cmp_breadcrumbs')) cmp_breadcrumbs();?>
</div> <section class="posts">
<div class="posts-inner">
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() );?>
<?php endwhile; ?>
<?php paging_nav(); ?>
</div></section>
<?php else:?>
<h3 style="margin-top:75px; text-align:center"><i class="fa fa-exclamation-triangle"></i> 暂无文章发表!</h3>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<div class="clear"></div>
<a href="#" id="top" tilte="返回顶部"> <i class="fa fa-chevron-up fa-2x"> </i></a>
</div>
<?php get_footer(); ?>