-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
39 lines (32 loc) · 949 Bytes
/
index.php
File metadata and controls
39 lines (32 loc) · 949 Bytes
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
<?php
get_header(); ?>
<?php $options = get_option('Readd_options');?>
<div id="picture">
<?php
if ( $options['face'] ){
echo '<img src="' .$options['face']. '" />';
}else{
echo '<img src="' .get_bloginfo('template_url'). '/images/picture.jpg" />';
}
?>
</div>
<nav id="cate-nav">
<?php wp_nav_menu( array( 'theme_location' => 'second', 'menu_class' => 'nav-menu' ) ); ?>
</nav>
</header><!--header-->
<?php
if ( $options['news'] ){
echo '<div id="news">';
echo $options['news'] ;
echo '</div>';
} ?><!--news-->
<div id="content">
<?php if ( have_posts() ) : ?>
<?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php pagenavi(); ?>
<?php endif; ?>
</div><!--content-->
<?php get_footer(); ?>