-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
57 lines (35 loc) · 1.33 KB
/
index.php
File metadata and controls
57 lines (35 loc) · 1.33 KB
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
52
53
54
55
56
57
<?php get_header(); ?>
<!-- index.php -->
<div class="row">
<div class="primary">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?>>
<?php if (has_post_thumbnail( $post->ID )) : ?>
<figure class="feature"><?php the_post_thumbnail( 'blog-thumb' );?></figure>
<?php endif; ?>
<article>
<header>
<h2 class="entry-title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<p class="meta time"><?php the_time('F jS Y'); ?></p>
<p class="meta comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'comments-link', ''); ?></p>
</header>
<div class="entry-content"><?php the_content(); ?></div><!-- entry-content -->
<?php if( has_category() ) : ?>
<footer class="meta">
<p class="category">Posted in <?php the_category(', ') ?></p>
</footer>
<?php endif; ?>
</article>
</div><!-- post -->
<?php endwhile; ?>
<div class="postnav">
<div class="next-posts"><?php next_posts_link('← Older Entries') ?></div>
<div class="prev-posts"><?php previous_posts_link('Newer Entries →') ?></div>
</div><!-- postnav -->
<?php else : ?>
<h2>Not Found</h2>
<?php endif; ?>
</div><!-- primary -->
<?php get_sidebar(); ?>
</div><!-- row -->
<?php get_footer(); ?>