Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
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();?>
You can’t perform that action at this time.