File: /var/www/html/wptrinityconsulting/wp-content/themes/finbuzz/single.php
<?php
/**
* @author RadiusTheme
* @since 1.0
* @version 1.0
*/
// 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">
<?php if ( FinbuzzTheme::$options['post_style'] == 'style1' ) { ?>
<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-sidebar-sapcer">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content-single', get_post_format() );?>
<?php endwhile; ?>
</div>
</main>
</div>
<?php if ( FinbuzzTheme::$layout == 'right-sidebar' ) { get_sidebar(); } ?>
</div>
</div>
<?php } else if ( FinbuzzTheme::$options['post_style'] == 'style2' ) { ?>
<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-sidebar-sapcer">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content-single-2', get_post_format() );?>
<?php endwhile; ?>
</div>
</main>
</div>
<?php if ( FinbuzzTheme::$layout == 'right-sidebar' ) { get_sidebar(); } ?>
</div>
</div>
<?php } ?>
</div>
<?php get_footer(); ?>