-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.php
48 lines (48 loc) · 1.33 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
<?php get_header();?>
<?php
$option=get_option('erlsimple_theme_options');
if($option['if_bg_on']==1):
?>
<style>
.nav-bar{ display:none;}
</style>
<header class="site-header-container">
<div 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>
</div>
</header>
<?php endif;?>
<div class="container">
<div class="main">
<div class="content">
<section class="posts">
<div class="posts-inner">
<?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;?>
</div>
</section>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>