-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
34 lines (34 loc) · 1.59 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
<?php get_header(); ?>
<section class="content">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article <?php post_class(); ?>>
<header class="post-header">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" ><?php the_title(); ?></a></h2>
<p class="post-time"><small>Posted on <time datetime="<?php the_time('c'); ?>"><?php the_time('F j, Y \a\t g:ia'); ?></time>.</small></p>
</header>
<section class="entry">
<?php the_content(); ?>
</section>
<div class="clearfix"> </div>
<footer class="post-footer">
<p class="post-metadata"><small>Tagged: <?php the_category(', '); ?></small></p>
</footer>
</article>
<?php endwhile; else: ?>
<p>Sorry, no posts!</p>
<?php endif; ?>
<footer class="index-footer">
<div class="previous-link">
<?php if ( !is_null(get_previous_posts_link() ) ) {
echo '<div class="post-direction-indicator">«</div>' . get_previous_posts_link(' Newer Entries');
} ?>
</div>
<div class="next-link">
<?php if ( !is_null(get_next_posts_link() ) ) {
echo get_next_posts_link('Older Entries ') . '<div class="post-direction-indicator">»</div>';
} ?>
</div>
</footer>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>