vagrant-wordpress-bintz/themes/Barebones/search.php

15 lines
778 B
PHP
Raw Normal View History

2015-04-30 13:54:25 +00:00
<?php get_header(); ?>
<?php if ( have_posts() ) : ?>
<article role="main" class="page-content search-content">
<h1><?php printf( __( 'Search Results for: %s' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
<?php get_template_part( 'loop', 'search' ); ?>
<?php else : ?>
<h1 class="entry-title"><?php _e( 'Nothing Found' ); ?></h1>
<article class="entry-content">
<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.' ); ?></p>
<?php /*?><?php get_search_form(); ?><?php */?>
</article><!-- .entry-content -->
<?php endif; ?>
</article>
<?php get_footer('no-sidebar'); // will include footer-no-sidebar.php; ?>