/
index.php
executable file
·31 lines (30 loc) · 986 Bytes
/
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
<?php get_header(); ?>
<?php if ( is_home() && get_option( 'page_for_posts' ) ) : ?>
<header class="entry-header">
<h1 class="entry-title"><?php echo apply_filters( 'the_title',
get_page( get_option( 'page_for_posts' ) )->post_title ); ?></h1>
</header>
<?php endif; ?>
<div class="blog-container">
<div class="entries">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php if ( has_post_thumbnail() ): ?>
<a href="<?php the_permalink() ?>"><?php echo the_post_thumbnail( 'thumbnail' ) ?></a>
<?php endif; ?>
<div>
<?php the_excerpt(); ?>
</div>
</div>
</div>
<?php endwhile; ?>
<?php include( TEMPLATEPATH . '/inc/nav.php' ); ?>
<?php else : ?>
<h2>Not Found</h2>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>