forked from alliswell/min-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
27 lines (27 loc) · 1.41 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
<?php get_header(); ?>
<div id="content">
<div id="main-content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<span class="date">by <?php the_author(); ?> on <?php the_time(__('m/j/Y','min')) ?></span>
<div class="clearfix"></div>
<div class="entry">
<?php the_content(__('Continue Reading','min').' »'); ?>
</div>
<span class="number-of-comments"><a href="<?php the_permalink() ?>#comments" title="title"><?php comments_number(__('No Comments','min'), __('1 Comment','min'), __('% Comments','min'));?></a></span>
</div><!-- close:post -->
<?php endwhile; ?>
<div class="pagination clearfix">
<div class="prev"><?php next_posts_link('« '.__('Previous posts','min')) ?></div>
<div class="next"><?php previous_posts_link(__('Newer posts','min').' »') ?></div>
</div>
<?php else : ?>
<p class="string"><?php _e('You broke the interwebs... wow... way to go.. no really you may want to call someone to take a look at it..','min'); ?></p>
<a href="<?php echo get_option('home'); ?>/" class="back"><?php _e('Back home','min'); ?></a>
<?php endif; ?>
</div><!-- close:main-content -->
<?php get_sidebar(); ?>
</div><!-- close:content -->
<?php get_footer(); ?>