File: /home/zwafgyp/coolswim/wp-content/themes/liftsupply/single.php
<?php
/**
* The Template for displaying all single posts
*
* @package WpOpal
* @subpackage Liftsupply
* @since Liftsupply 1.0
*/
$liftsupply_page_layouts = apply_filters( 'liftsupply_fnc_get_single_sidebar_configs', null );
get_header( apply_filters( 'liftsupply_fnc_get_header_layout', null ) );
?>
<?php do_action( 'liftsupply_template_main_before' ); ?>
<section id="main-container" class="container <?php echo apply_filters( 'liftsupply_template_main_content_class', liftsupply_fnc_theme_options('blog-single-layout') ); ?>">
<div class="row">
<?php if( isset($liftsupply_page_layouts['sidebars']) && !empty($liftsupply_page_layouts['sidebars']) ) : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
<div id="main-content" class="main-content col-sm-12 <?php echo esc_attr($liftsupply_page_layouts['main']['class']); ?>">
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php
// Start the Loop.
while ( have_posts() ) : the_post();
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
if( liftsupply_fnc_theme_options('blog-show-share-post', true) ){
get_template_part( 'page-templates/parts/sharebox' );
}
// Previous/next post navigation.
liftsupply_fnc_post_nav();
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
if( liftsupply_fnc_theme_options('blog-show-related-post', true) ): ?>
<div class="related-posts">
<?php
liftsupply_fnc_related_post( 12 , 'post', 'category');
?>
</div>
<?php endif; ?>
<?php
endwhile;
?>
</div><!-- #content -->
</div><!-- #primary -->
</div>
</div>
</section>
<?php
get_footer();