Your IP : 216.73.216.95


Current Path : /var/www/ooareogundevinitiative/wp-content/themes/pain/
Upload File :
Current File : /var/www/ooareogundevinitiative/wp-content/themes/pain/single.php

<?php get_header(); ?>
<?php
$jwstheme_options = $GLOBALS['jwstheme_options'];
$tb_show_page_title = isset($jwstheme_options['tb_post_show_page_title']) ? $jwstheme_options['tb_post_show_page_title'] : 1;
$tb_show_page_breadcrumb = isset($jwstheme_options['tb_post_show_page_breadcrumb']) ? $jwstheme_options['tb_post_show_page_breadcrumb'] : 1;
jwstheme_title_bar($tb_show_page_title, $tb_show_page_breadcrumb);
$tb_post_show_post_nav = (int) isset($jwstheme_options['tb_post_show_post_nav']) ?  $jwstheme_options['tb_post_show_post_nav']: 1;
$tb_post_show_post_author = (int) isset($jwstheme_options['tb_post_show_post_author']) ? $jwstheme_options['tb_post_show_post_author'] : 1;
$tb_post_show_post_comment = (int) isset($jwstheme_options['tb_post_show_post_comment']) ?  $jwstheme_options['tb_post_show_post_comment']: 1;
$tb_single_blog_template = isset( $jwstheme_options['tb_single_blog_template'] ) ? $jwstheme_options['tb_single_blog_template'] : 'blog';
?>
	<div class="main-content jw-blog-article">
		<div class="row">
			<div class="container">
				<?php
				$tb_blog_layout = isset($jwstheme_options['tb_post_layout']) ? $jwstheme_options['tb_post_layout'] : '1cr';
            
				$cl_sb_left = isset($jwstheme_options['tb_post_left_sidebar_col']) ? $jwstheme_options['tb_post_left_sidebar_col'] : 'col-xs-12 col-sm-3 col-md-3 col-lg-3';
				$cl_content = (isset($jwstheme_options['tb_post_content_col']) && $tb_blog_layout != '1cl')  ? $jwstheme_options['tb_post_content_col'] :  'col-xs-12 col-sm-12 col-md-12 col-lg-12' ;
				if ( (!is_active_sidebar('jwstheme-main-sidebar') && !is_active_sidebar('jwstheme-left-sidebar') && !is_active_sidebar('jwstheme-left-sidebar')) || $tb_blog_layout == '1cl'  ) {
					$cl_content = 'col-xs-12 col-sm-12 col-md-12 col-lg-12 no-sidebar';
				}
				$cl_sb_right = isset($jwstheme_options['tb_post_right_siedebar_col']) ? $jwstheme_options['tb_post_right_siedebar_col'] : 'col-xs-12 col-sm-3 col-md-3 col-lg-3';
				?>
				<!-- Start Left Sidebar -->
				<?php if ( $tb_blog_layout == '2cl' && $tb_blog_layout != '1cl' ) { ?>
					<div class="<?php echo esc_attr($cl_sb_left) ?> sidebar-left">
						<?php if (is_active_sidebar('jwstheme-left-sidebar')) { dynamic_sidebar($sb_left); } else { dynamic_sidebar('jwstheme-main-sidebar'); } ?>
					</div>
				<?php } ?>
				<!-- End Left Sidebar -->
				<!-- Start Content -->
				<div class="<?php echo esc_attr($cl_content) ?> content jw-blog">
					<?php
					while ( have_posts() ) : the_post();
						get_template_part( 'framework/templates/' . $tb_single_blog_template . '/single/entry', get_post_format());
						setPostViews(get_the_ID());
						if($tb_post_show_post_nav ) jwstheme_post_nav();
						
						if ( $tb_post_show_post_author ) { 
							echo jwstheme_author_render(); 
							
							$extra_img = get_post_meta(get_the_ID(), 'tb_extra_img_url', true);
							if($extra_img) echo '<div class="ro-extra-img"><a href="#"><img alt="extra_img" src="'.esc_url($extra_img).'"></a></div>';
						}
						
						// If comments are open or we have at least one comment, load up the comment template.
						if ( (comments_open() && $tb_post_show_post_comment) || (get_comments_number() && $tb_post_show_post_comment) ) comments_template();
					endwhile;
					?>
				</div>
				<!-- End Content -->
				<!-- Start Right Sidebar -->
				<?php if ( $tb_blog_layout == '2cr' && $tb_blog_layout != '1cl' ) { ?>
					<div class="<?php echo esc_attr($cl_sb_right) ?> sidebar-right temp-<?php echo esc_attr( $tb_single_blog_template ); ?>">
						<?php if (is_active_sidebar('jwstheme-right-sidebar-post')) { dynamic_sidebar('jwstheme-right-sidebar-post'); } else { dynamic_sidebar('jwstheme-right-sidebar-post'); } ?>
					</div>
				<?php } ?>
				<!-- End Right Sidebar -->
			</div>
		</div>
	</div>
<?php get_footer(); ?>