File: //var/www/bharti-foundation.stgviitor.com/wp-content/themes/lifeline/single.php
<?php
get_header();
$opt = lifeline()->options();
// Get post meta
$single_meta = lifeline()->meta(get_the_ID());
// Get the per-post or global value for source type
$source_type = lifeline_get($single_meta, 'singple_post_source_type', lifeline_get($opt, 'singple_post_src_type', 'default'));
$elementor_template = lifeline_get($single_meta, 'single_post_elementor_template', lifeline_get($opt, 'sngl_post_elementor_template', ''));
$meta = lifeline()->page()->args;
$layout = lifeline_get($meta, 'sidebar_position', 'left');
$style = lifeline_get($opt, 'post_detail_style');
$style = lifeline_get($single_meta, 'post_detail_style', lifeline_get($opt, 'post_detail_style', 'style1'));
$sidebar = lifeline_get($meta, 'sidebar', 'sidebar-1');
$col = ($layout != 'full') ? '9' : '12'; // phpcs:ignore WordPress
$col = apply_filters('lifeline/post/life_signle/content/classes', "col-md-12 col-sm-12 col-lg-{$col}");
?>
<section class="py-110">
<div id="post-<?php the_ID(); ?>" <?php post_class('py-80 bg-gray position-relative w-100'); ?>>
<?php
if ($source_type == 'default') {
?>
<div class="container">
<div class="row">
<?php if ($layout == 'left') do_action('lifeline/post/sidebar', $sidebar); ?>
<?php while (have_posts()) {
the_post(); ?>
<div class="<?php echo esc_attr($col); ?>">
<?php lifeline_template_load('templates/blog-details/' . $style . '.php'); ?>
</div>
<?php } ?>
<?php if ($layout == 'right') do_action('lifeline/post/sidebar', $sidebar); ?>
<?php
} else {
lifeline_el_tpl($elementor_template); ?>
<div class="lif_content">
<?php the_content(); ?>
</div>
<?php }
if (comments_open() || get_comments_number()) {
comments_template();
}
?>
</div>
</div>
</div>
<ul>
</section>
<?php get_footer(); ?>