Sindbad~EG File Manager
<?php
get_header();
$options = get_option('imic_options');
$cat_image = (isset($options['header_image'])) ? $options['header_image']['url'] : '';
$term_image = ($cat_image != '') ? $cat_image : '';
$pageSidebar = (isset($options['archive_sidebar'])) ? $options['archive_sidebar'] : '';
$blog_masonry = 0;
$bloglayout = (isset($options['use_grid_layout'])) ? $options['use_grid_layout'] : 0;
?>
<div class="page-header parallax clearfix" style="background-image:url(<?php echo esc_url($term_image); ?>)">
<div class="title-subtitle-holder">
<div class="title-subtitle-holder-inner">
<h2><?php single_cat_title(); ?></h2>
</div>
</div>
</div>
<!-- End Page Header -->
<!-- Breadcrumbs -->
<div class="lgray-bg breadcrumb-cont">
<div class="container">
<?php if (function_exists('bcn_display'))
{ ?>
<ol class="breadcrumb">
<?php bcn_display(); ?>
</ol>
<?php
} ?>
</div>
</div>
<!-- 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 if (is_active_sidebar($pageSidebar)){ ?>8<?php } else { ?>12<?php } ?>" 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-4" 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