Sindbad~EG File Manager

Current Path : /home/copmadinaarea/www/wp-content__80fcb17/themes/AdoreChurch/
Upload File :
Current File : /home/copmadinaarea/www/wp-content__80fcb17/themes/AdoreChurch/single.php

<?php
get_header();
imic_sidebar_position_module();
$options = get_option('imic_options');
if (is_home())
{
    $id = get_option('page_for_posts');
}
else
{
    $id = get_the_ID();
}
$page_header = get_post_meta($id, 'imic_pages_Choose_slider_display', true);
if ($page_header == 3)
{
    get_template_part('pages', 'flex');
}
elseif ($page_header == 4)
{
    get_template_part('pages', 'nivo');
}
elseif ($page_header == 5)
{
    get_template_part('pages', 'revolution');
}
else
{
    get_template_part('pages', 'banner');
}
$pageSidebarGet = get_post_meta(get_the_ID() , 'imic_select_sidebar_from_list', true);
$pageSidebarStrictNo = get_post_meta(get_the_ID() , 'imic_strict_no_sidebar', true);
$pageSidebarOpt = (isset($options['posts_sidebar'])) ? $options['posts_sidebar'] : '';
if ($pageSidebarGet != '')
{
    $pageSidebar = $pageSidebarGet;
}
elseif ($pageSidebarOpt != '')
{
    $pageSidebar = $pageSidebarOpt;
}
else
{
    $pageSidebar = '';
}
if ($pageSidebarStrictNo == 1)
{
    $pageSidebar = '';
}
$sidebar_column = get_post_meta(get_the_ID() , 'imic_sidebar_columns_layout', true);
if (!empty($pageSidebar) && is_active_sidebar($pageSidebar))
{
    $left_col = 12 - intval($sidebar_column);
    $class = $left_col;
}
else
{
    $class = 12;
}
if (!defined('ADORECHURCH_CORE__PLUGIN_URL') && is_active_sidebar('post-sidebar'))
{
    $pageSidebar = 'post-sidebar';
    $class = 9;
    $sidebar_column = 3;
}
$blog_masonry = 2;
$post_author_id = get_post_field('post_author', get_the_ID());
?>
<!-- Start Body Content -->
  	<div class="main" role="main">
    	<div id="content" class="content full">
        	<div class="container">
                <div class="row">
                	<div class="col-md-<?php echo esc_attr($class); ?>" id="content-col">
                        <article class="single-post format-standard">
                      			<?php if (have_posts()):
    while (have_posts()):
        the_post();
        $post_format = get_post_format();
        $post_format = ($post_format == "") ? "image" : $post_format;
        get_template_part('content', $post_format);
    endwhile;
else:
    get_template_part('content', 'none');
    echo '<div class="clearfix"></div>';
endif; ?>
                            <?php if ((isset($options['switch_sharing']) && $options['switch_sharing'] == 1) && $options['share_post_types']['1'] == '1')
{ ?>
								<?php imic_share_buttons(); ?>
                            <?php
} ?>
                        </article>
                        <!-- Post Comments -->
                        <?php if (comments_open())
{
    comments_template('', true);
} ?> 
                    </div>
                    	<?php if (is_active_sidebar($pageSidebar))
{ ?>
                    <!-- Sidebar -->
                    <div class="col-md-<?php echo esc_attr($sidebar_column); ?>" id="sidebar-col">
                    	<?php dynamic_sidebar($pageSidebar); ?>
                    </div>
                    <?php
} ?>
                        </div>
                    </div>
                </div>
         	</div>
    <!-- End Body Content -->
<?php get_footer(); ?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists