Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
44afed53bd
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
110 lines (93 sloc) 2.73 KB
<?php
/*
Template Name: Archives
*/
?>
<?php get_header();?>
<div class="holdit">
<section id="content-hold" class="container content">
<!-- =========== Archives ============ -->
<section id="archive">
<div id="home-interior">
<div class="row" id="row1">
<section id="archive-inner" class="archive-page row-fluid">
<!-- Results Side Bar -->
<div class="page-title clear">
<h1>Search Results</h1>
</div>
<div class="interior-hero clear">
</div>
<div class="no-hero"></div>
<div class="span12">
<div class="row-fluid search-results-search">
<!-- Search Bar -->
<?php get_search_form(); ?>
<!-- <section class="cate-hold">
<!-- Genres -->
<!-- <div class="cate-inner">
<ul>
<?php wp_list_categories(array(
'title_li' => __( '<h1>Search by Categories</h1>' )
)); ?>
</ul>
</div>
</section>
<section class="dates-hold">
<!-- Dates -->
<!--<div class="dates-inner">
<h1>Search by Month</h1>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</div>
</section> -->
</div>
<!-- End -->
<!-- Prosepctive content ---->
<h3 class="search-header clear">Search Results&nbsp;<span class="unbolding">for &ldquo;<?php the_search_query(); ?>&rdquo;</span></h3>
<!-- Start of Search Results -->
<!-- One Single Search Result -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="result"> <a href="<?php the_permalink(); ?>">
<h5 class="result-header">
<?php the_title(); ?>
</h5>
</a> <span class="result-details">
<span><a href="<?php the_permalink(); ?>">
</a></span> <em><a href="#">
<!-- <?php $cats = get_the_category();
if(!empty($cats)) {
$first = $cats[0];
//echo $first->name;
$singleCat = single_cat_title('', false);//false to surpress echo
echo (empty($singleCat)?$first->name:$singleCat);
} ?> -->
</a></em> </span> <br class="search-br" /><span class="result-info">
<?php the_excerpt();?>
</span> <a href="<?php the_permalink(); ?>"><em class="readmore"> Read More &raquo; </em></a> </div>
<?php endwhile; else: ?>
<p>
<?php _e('Sorry, no content matched your criteria.'); ?>
</p>
<?php endif; ?>
<!-- End of single search result -->
<div class="navigation">
<?php
global $wp_query;
$big = 999999999; // need an unlikely integer
echo paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'show_all' => 'true',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages
) );
?>
</div>
</div>
</div>
</section>
</section>
</section>
</div></div></div>
<?php get_footer();?>