This repository has been archived by the owner on Feb 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·40 lines (31 loc) · 1.76 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
35
36
37
38
39
40
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php // Post dates off by default the_date('','<h2>','</h2>'); ?>
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if (is_page()) { ?>
<div class="meta"><?php printf(__('Written by %s', 'journalist'), the_author('', false));?> <?php _e('on', 'journalist') ?> <?php the_time(__('F jS, Y', 'journalist'));?> <?php edit_post_link(__('Edit', 'journalist') );?></div>
<?php } else { ?>
<div class="meta"><?php printf(__('Posted in %s by', 'journalist'), get_the_category_list(','));?> <?php the_author() ?> <?php _e('on', 'journalist') ?> <?php the_time('F jS, Y', 'journalist') ?> <?php edit_post_link(__('Edit This', 'journalist')); ?></div>
<?php } ?>
<div class="main">
<?php the_content(__('Read the rest of this entry »', 'journalist'));?>
</div>
<div class="tags">
<?php the_tags( '<p>' . __('Tags:', 'journalist') . ' ', ', ', '</p>'); ?>
</div>
<div class="comments">
<?php wp_link_pages(); ?>
<a href="<?php comments_link(); ?>"><?php comments_number(__('without comments', 'journalist'),__('with one comment', 'journalist'),__('with % comments', 'journalist') );?>
</div>
<?php if ( comments_open() ) comments_template('', true); ?>
<?php endwhile; else: ?>
<div class="warning">
<p><?php _e('Apologies, but we were unable to find what you were looking for. Perhaps searching will help.', 'journalist'); ?></p>
</div>
<?php endif; ?>
<div id="postnav"><?php posts_nav_link(' — ', __('« Previous Page', 'journalist'), __('Next Page »', 'journalist')); ?></div>
</div> <!-- End content -->
<?php get_sidebar(); ?>
<div class="clearleft"></div>
<?php get_footer(); ?>