<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package BuddyBoss_Theme
*/
get_header();
$featured_img_style = buddyboss_theme_get_option( 'blog_featured_img' );
?>
<?php
$share_box = buddyboss_theme_get_option( 'blog_share_box' );
if ( !empty( $share_box ) && is_singular('post') ) :
get_template_part( 'template-parts/share' );
endif;
?>
<div id="primary" class="content-area">
<main id="main" class="site-main">
<?php
if ( have_posts() ) :
do_action( THEME_HOOK_PREFIX . '_template_parts_content_top' );
while ( have_posts() ) :
the_post();
do_action( THEME_HOOK_PREFIX . '_single_template_part_content', get_post_type() );
endwhile; // End of the loop.
endif;
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php
get_footer();