-
Notifications
You must be signed in to change notification settings - Fork 40
/
index.php
executable file
·37 lines (28 loc) · 1008 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
32
33
34
35
36
37
<?php get_header(); ?>
<main id="content" class="clearfix" role="main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<?php if ( has_post_thumbnail() ) : ?>
<figure>
<?php the_post_thumbnail(); ?>
</figure>
<?php endif; ?>
<h1 class="entry-title">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h1>
<?php get_template_part( 'inc/meta' ); ?>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div>
<?php get_template_part( 'inc/entry-footer' ); ?>
</article>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'inc/error-msg' ); ?>
<?php endif; ?>
<?php get_template_part( 'inc/pagination-posts' ); ?>
</main>
<?php get_template_part( 'inc/widget-sidebar' ); ?>
<?php get_footer(); ?>