-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·42 lines (30 loc) · 812 Bytes
/
index.php
File metadata and controls
executable file
·42 lines (30 loc) · 812 Bytes
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
<?php
/*
Home/catch-all template
*/
get_header();
?>
<div class="content-wide" role="main">
<?php
if ( is_search() ) {
?><h1 class="post-title">Search Results for <span>'<?php print $_REQUEST["s"]; ?>'</span></h1><?php
} else {
?><h1 class="post-title">Our Blog</h1><?php
}
if ( have_posts() ) :
// Start the Loop.
while ( have_posts() ) : the_post();
?>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php the_excerpt(); ?>
<p class="quiet">Posted by <?php print get_the_author_link() ?> in <?php print get_the_category_list( ', ' ) ?>.</p>
<hr />
<?php
endwhile;
else :
print "<p>There are currently no posts to list here.</p>";
endif;
?>
<?php paginate(); ?>
</div><!-- #primary -->
<?php get_footer(); ?>