File: /var/www/html/wptrinityconsulting/wp-content/themes/finbuzz/search.php
<?php
/**
* @author RadiusTheme
* @since 1.0
* @version 1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
// Layout class
if ( FinbuzzTheme::$layout == 'full-width' ) {
$finbuzz_layout_class = 'col-sm-12 col-12';
} else {
$finbuzz_layout_class = FinbuzzTheme_Helper::has_active_widget();
}
?>
<?php get_header(); ?>
<div id="primary" class="content-area">
<div class="container">
<div class="row">
<?php
if ( FinbuzzTheme::$layout == 'left-sidebar' ) {
get_sidebar();
}
?>
<div class="<?php echo esc_attr( $finbuzz_layout_class );?>">
<main id="main" class="site-main">
<div class="rt-search-post">
<?php if ( have_posts() ) :?>
<?php while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content-search', 'search' );
?>
<?php endwhile; ?>
<?php else:?>
<?php get_template_part( 'template-parts/content', 'none' );?>
<?php endif;?>
</div>
<?php FinbuzzTheme_Helper::pagination();?>
</main>
</div>
<?php
if ( FinbuzzTheme::$layout == 'right-sidebar' ) {
get_sidebar();
}
?>
</div>
</div>
</div>
<?php get_footer(); ?>