Sindbad~EG File Manager
<?php
/*
* Security : blocking direct access
* Source : http://codex.wordpress.org/Theme_Development#Template_Files
*/
defined('ABSPATH') or die("Access Restricted");
get_header();
if (mwp_option('home-blog-style-archives') == 1 && mwp_option( 'home-blog-style') == 3 ) {
$content_id = '';
$content_class = ' content-width-full';
} else {
$content_id = 'id="content"';
$content_class = '';
}
if (mwp_option('home-blog-style-archives') == 1) {
$no_lazyload = mwp_option('home-blog-nolazyload');
$get_categories_vid = mwp_option('category-videos');
$get_categories_gal = mwp_option('category-gallery');
}
?>
<div <?php echo $content_id; ?> class="stick-content<?php echo $content_class; ?>">
<div class="theiaStickySidebar">
<div class="content-width archive-typography <?php echo mwp_csa_border_top(); ?>">
<?php mwp_display_breadcrumbs(); ?>
<?php if ( have_posts() ) : ?>
<?php if (is_day()) { ?>
<h1 class="title <?php echo mwp_csa_color(); ?>"><?php _e('Archive - ', MWP_TEXT_DOMAIN); ?><?php the_time('F j Y'); ?></h1>
<?php } elseif (is_month()) { ?>
<h1 class="title <?php echo mwp_csa_color(); ?>"><?php _e('Archive - ', MWP_TEXT_DOMAIN); ?><?php the_time('F Y'); ?></h1>
<?php } elseif (is_year()) { ?>
<h1 class="title <?php echo mwp_csa_color(); ?>"><?php _e('Archive - ', MWP_TEXT_DOMAIN); ?><?php the_time('Y'); ?></h1>
<?php } elseif ( is_post_type_archive() ) { ?>
<h1 class="title <?php echo mwp_csa_color(); ?>"><?php _e('Archive - ', MWP_TEXT_DOMAIN); ?><?php post_type_archive_title() ?></h1>
<?php } ?>
<?php
/*
* Blog Style For Archive
*
*/
if (mwp_option('home-blog-style-archives') == 1) {
if ( mwp_option( 'home-blog-style') == 1 ) {
require_once( get_template_directory() . '/includes/blog/blog-1.php' );
} elseif ( mwp_option( 'home-blog-style') == 2 ) {
require_once( get_template_directory() . '/includes/blog/blog-2.php' );
} elseif ( mwp_option( 'home-blog-style') == 3 ) {
require_once( get_template_directory() . '/includes/blog/blog-3.php' );
}
}
/*
* Default Style For Archive
*
*/
else {
require_once( get_template_directory() . '/includes/archives/archive.php' );
} ?>
<?php else : ?>
<p><?php _e( 'Sorry, no posts matched your criteria.', MWP_TEXT_DOMAIN ); ?></p>
<?php endif; ?>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
<?php
/*
* Blog Style 3
*
* No Sidebar if Blog Style Enabled for categories and archives
*
*/
if (mwp_option('home-blog-style-archives') == 1 && mwp_option( 'home-blog-style') == 3) {
// Nothing TO DO
} else {
/*
* Hide Sidebar in Mobile and Tablet
*
*/
if(mwp_option('sidebar-hide-small') == 1) {
$device_hide = ' screen-l';
} else {
$device_hide = '';
}
?>
<div id="sidebar" class="sidebar stick-sidebar<?php echo esc_attr($device_hide); ?>">
<div class="theiaStickySidebar">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('archive')) : else : ?>
<?php endif; ?>
</div>
</div>
<?php
}
/*
* Footer
*
*/
get_footer();
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists