-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
51 lines (51 loc) · 1.44 KB
/
index.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
45
46
47
48
49
50
51
<?php
get_header();
?>
<?php
$option=get_option('erlsimple_theme_options');
/* 显示第二页以及之后页面时,is_paged()返回TRUE */
if($option['if_bg_on']==1 && !is_paged()):
?>
<style>
.nav-bar{ display:none;}
</style>
<header class="site-header">
<div class="site-header-inner">
<a href="<?php bloginfo('siteurl'); ?>" rel="home" >
<h1>
<?php if($option['homelogo']):?>
<img src="<?php echo $option['homelogo'];?>" id="logo" class="animated fadeInDown" />
<?php elseif($option['logoimg']):?>
<img src="<?php echo $option['logoimg'];?>" id="logo" class="animated fadeInDown" />
<?php else:
echo get_bloginfo('name');
endif;
?>
</h1></a>
<h2 class="animated fadeInUp"><?php echo get_bloginfo('description');?></h2>
</div>
</header>
<?php endif;?>
<div class="container">
<div class="main">
<div class="content">
<div class="posts-inner">
<section class="posts">
<?php
if (have_posts()) :
while (have_posts()) : the_post();
get_template_part( 'content');
endwhile;
paging_nav();
else:?>
<h3 style="margin-top:45px; text-align:center"><i class="fa fa-exclamation-triangle"></i> 暂无文章发表!</h3>
<?php endif;?>
</section>
</div><!-- /.posts-inner -->
</div>
</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(); ?>