File: /var/www/Application/wp-content/themes/zoomy/search.php
<?php
/**
* The main template file
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package zoomy
*/
get_header();
$opt = get_option( 'zoomy_opt' );
$is_sticky_header = ! empty( $opt['is_sticky_header'] ) ? $opt['is_sticky_header'] : '';
$is_sticky_class = $is_sticky_header == '1' ? 'mt-98' : '';
?>
<section class="blog-area no-results not-found <?php echo esc_attr($is_sticky_class); ?>">
<div class="blog-bg pt-90 pb-90">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="section-title text-center">
<h2 class="mb-90">
<?php Zoomy_helper()->blog_title() ?>
</h2>
</div>
</div>
</div>
<div class="row">
<?php
if ( have_posts() ) {
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/contents/content', get_post_format() );
endwhile;
?>
<div class="pagination-area col-lg-12 text-center mt-50 mb-10 justify-content-center d-flex">
<?php Zoomy_helper()->pagination(); ?>
</div>
<?php
} else {
get_template_part( 'template-parts/contents/content', 'none' );
}
?>
</div>
<?php wp_reset_postdata(); ?>
</div>
</div>
</section>
<?php
get_footer();