-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
51 lines (34 loc) · 1.2 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
41
42
43
44
45
46
47
48
49
50
51
<!-- START INDEX -->
<?php get_header(); ?>
<div class="main">
<?php if (have_posts()) : ?><?php $first = 1; while (have_posts()) : the_post(); ?>
<div class="post">
<h1 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1>
<div class="post-content">
<?php $continue_text = 'Continue reading...';
if ( 1 == $first && is_home() && !is_paged() ) {
the_content($continue_text);
$first = 0;
} else {
the_content($continue_text);
} ?>
</div>
<p class="post-meta"><?php the_time(__('F jS, Y')) ?> (<?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?>)<br />
Category: <?php the_category(', ') ?><br />
Tags: <?php the_tags('', ', ', ''); ?></p>
</div>
<hr>
<?php endwhile; ?>
<div>
<div><?php posts_nav_link('','',__('Previous','')) ?> | <?php posts_nav_link('',__('Next',''),'') ?></div>
</div>
<?php else : ?>
<h2 class="center"><?php _e('No content found.'); ?></h2>
<p class="center"><?php _e("Would you care to search the site?"); ?></p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
<!-- END INDEX -->