Current File : //home/quantums/bodyguardslosangeles.net/wp-content/themes/seosight/search.php |
<?php
/**
* The template for displaying search results pages.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
*
* @package Seosight
*/
get_header();
$layout = seosight_sidebar_conf();
$main_class = 'full' !== $layout['position'] ? 'site-main content-main-sidebar' : 'site-main content-main-full';
?>
<div id="primary" class="container">
<div class="row section-padding">
<div class="<?php echo esc_attr( $layout['content-classes'] ) ?>">
<main id="main" class="<?php echo esc_attr( $main_class ) ?>" >
<?php
if ( have_posts() ) :
if ( is_home() && ! is_front_page() ) : ?>
<?php
endif;
/* Start the Loop */
while ( have_posts() ) : the_post();
/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'post-format/post', 'search' );
endwhile;
seosight_paging_nav();
else :
get_template_part( 'template-parts/content', 'none' );
endif; ?>
</main><!-- #main -->
</div>
<?php if ( 'full' !== $layout['position'] ) { ?>
<div class="<?php echo esc_attr( $layout['sidebar-classes'] ) ?>">
<?php get_sidebar(); ?>
</div>
<?php } ?>
</div><!-- #row -->
</div><!-- #primary -->
<?php get_footer();