File: /home/dpknvn09897v/public_html/golz.in/wp-content/themes/nutritius/search.php
<?php
use peaceful\nutritius\Helper;
/**
* The template for displaying search results pages
*
* @package WordPress
* @subpackage nutritius
* @since nutritius 1.0
*/
get_header(); ?>
<div class="peacefulthemes-contain-area">
<div id="primary" class="content-area">
<main id="main" class="site-main">
<div class="container">
<div class="row">
<?php if ( ! is_active_sidebar('sidebar-1') ) { ?>
<div class="col-md-12 col-sm-12">
<?php } else{ ?>
<div class="col-md-8 col-sm-12">
<?php } ?>
<?php
if ( have_posts() ) : ?>
<?php
/* 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( 'template-parts/post/content', get_post_format() );
endwhile;
Helper::instance()->pagination();
else :
get_template_part( 'template-parts/post/content', 'none' );
endif; ?>
</div>
<?php if ( is_active_sidebar('sidebar-1') ) { ?>
<div class="col-md-4 col-sm-12">
<?php get_sidebar(); ?>
</div>
<?php } ?>
</div>
</div><!-- container -->
</main><!-- #main -->
</div><!-- #primary -->
</main>
<?php get_footer(); ?>