mirror of
https://github.com/kennethreitz-archive/wp-krtheme.git
synced 2026-06-05 23:40:16 +00:00
36 lines
1.2 KiB
PHP
36 lines
1.2 KiB
PHP
<?php
|
|
/*
|
|
Template Name: Search
|
|
*/
|
|
get_header();
|
|
?>
|
|
|
|
<div class="contentBody">
|
|
<h1 class="contentTitle">Search Results</h1>
|
|
<?php if (have_posts()) : ?>
|
|
<?php get_search_form(); ?>
|
|
|
|
<div class="navigation">
|
|
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
|
|
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
|
|
</div>
|
|
|
|
<dl class="entryList">
|
|
<?php while (have_posts()) : the_post(); ?>
|
|
<dt id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></dt>
|
|
<dd class="postmetadata"><div class="asideBlock date"><?php the_time('F jS, Y') ?></div><?php the_excerpt() ?><?php the_tags('Tags: ', ', ', '<br />'); ?> </dd>
|
|
<?php endwhile; ?>
|
|
</dl>
|
|
|
|
<div class="navigation">
|
|
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
|
|
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
|
|
</div>
|
|
|
|
<?php else : ?>
|
|
<p>No posts found. Try a different search?</p>
|
|
<?php get_search_form(); ?>
|
|
|
|
<?php endif; ?>
|
|
</div><!-- /.contentBody -->
|
|
<?php get_footer(); ?>
|