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/index.php

<?php
get_header();
$options = get_option('imic_options');
imic_sidebar_position_module();
//Template Banner Functionality
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');
}
elseif ($page_header == 6)
{
    get_template_part('pages', 'layer');
}
else
{
    get_template_part('pages', 'banner');
}
$pageSidebarGet = get_post_meta($id, 'imic_select_sidebar_from_list', true);
$pageSidebarStrictNo = get_post_meta($id, 'imic_strict_no_sidebar', true);
$pageSidebarOpt = (isset($options['archive_sidebar'])) ? $options['archive_sidebar'] : '';
if ($pageSidebarGet != '')
{
    $pageSidebar = $pageSidebarGet;
}
elseif ($pageSidebarOpt != '')
{
    $pageSidebar = $pageSidebarOpt;
}
else
{
    $pageSidebar = '';
}
if ($pageSidebarStrictNo == 1)
{
    $pageSidebar = '';
}
$sidebar_column = get_post_meta($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('main-sidebar'))
{
    $pageSidebar = 'main-sidebar';
    $class = 9;
    $sidebar_column = 3;
}
$blog_masonry = 0;
$bloglayout = (isset($options['use_grid_layout'])) ? $options['use_grid_layout'] : 0;
?>
<!-- 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">
                <?php if ($bloglayout == 1)
{
    $blog_masonry = 1;
    $grid_column = (isset($options['use_grid_column'])) ? $options['use_grid_column'] : 4;
?>
                <div class="row">
                    <ul class="isotope-grid">
                        <?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');
    endif; ?>
                    </ul>
                    </div>
                <?php
}
else
{ ?>
					<div class="posts-listing">
						<?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');
    endif; ?>
						<?php wp_link_pages(array(
        'before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'framework') . '</span>',
        'after' => '</div>',
        'link_before' => '<span>',
        'link_after' => '</span>',
    )); ?>
					</div>
                <?php
} ?>
					<!-- Pagination -->
					<?php if (function_exists('imic_pagination'))
{
    imic_pagination();
}
else
{
    next_posts_link('Older Entries');
    previous_posts_link('Newer Entries');
} ?>
				</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