57 lines
1.6 KiB
PHP
57 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* The template for displaying Search Results pages
|
|
*
|
|
* @package WordPress
|
|
* @since Pluto 1.0
|
|
*/
|
|
|
|
get_header(); ?>
|
|
|
|
<div class="main-content-w">
|
|
<div class="main-content-m">
|
|
<?php os_the_primary_sidebar('left'); ?>
|
|
<div class="main-content-i">
|
|
<?php
|
|
if ( have_posts() ) : ?>
|
|
|
|
<header class="search-results-header">
|
|
<h3><?php printf( __( 'Search Results for: %s', 'pluto' ), get_search_query() ); ?></h3>
|
|
</header><!-- .page-header -->
|
|
<?php require_once(get_template_directory() . '/inc/set-layout-vars.php') ?>
|
|
<div class="content side-padded-content">
|
|
<div class="index-isotope <?php echo $isotope_class; ?>" data-layout-mode="<?php echo $layout_mode; ?>">
|
|
<?php
|
|
$os_current_box_counter = 1; $os_ad_block_counter = 0;
|
|
// Start the Loop.
|
|
while ( have_posts() ) : the_post();
|
|
|
|
/*
|
|
* Include the post format-specific template for the content. If you want to
|
|
* use this in a child theme, then include a file called called content-___.php
|
|
* (where ___ is the post format) and that will be used instead.
|
|
*/
|
|
get_template_part( $template_part, get_post_format() );
|
|
|
|
os_ad_between_posts();
|
|
|
|
endwhile; ?>
|
|
</div>
|
|
<?php require_once(get_template_directory() . '/inc/isotope-navigation.php') ?>
|
|
</div>
|
|
<?php
|
|
|
|
else :
|
|
// If no content, include the "No posts found" template.
|
|
get_template_part( 'content', 'none' );
|
|
|
|
endif; ?>
|
|
</div>
|
|
<?php os_the_primary_sidebar('right'); ?>
|
|
</div>
|
|
<?php os_footer(); ?>
|
|
</div>
|
|
|
|
<?php
|
|
get_footer();
|