This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
hale/search.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
56 lines (41 sloc)
1.55 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Search Page | |
*/ | |
get_header(); ?> | |
<div class="row"> | |
<div class="span9 content posts"> | |
<?php if (have_posts()) : ?> | |
<h2 class="pagetitle">Search Results</h2> | |
<?php while (have_posts()) : the_post(); ?> | |
<div class="post clearfix"> | |
<div class="post-header"> | |
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> | |
</div> | |
<div class="post-content clearfix"> | |
<?php the_excerpt(); ?> | |
</div> | |
<div class="post-meta"> | |
<?php the_date( 'F j, Y', '<span class="post-date"><i class="icon-calendar"></i>', '</span>' ); ?> | |
<span class="post-author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><i class="icon-user"></i><?php the_author_meta( 'display_name' ); ?></a></span> | |
<?php | |
// PHP Request: If the_tags is empty, do not generate the HTML. I don't want the labels and markup making empty space when there are no tags. | |
the_tags( '<span class="post-tags"><i class="icon-tags"></i>', ', ', '</span>' ); | |
?> | |
</div> | |
</div> | |
<?php endwhile; ?> | |
<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 : ?> | |
<h2 class="center">No posts found. Try a different search?</h2> | |
<?php get_search_form(); ?> | |
<?php endif; ?> | |
</div> | |
<div class="span3"> | |
<?php get_sidebar('Sidebar'); ?> | |
</div> | |
</div> | |
<?php get_footer(); ?> |