Viewing File: /home/maglabs/riadlooma2/wp-content/themes/homey/index.php
<?php
/**
* @package Homey
* @since Homey 1.0
*/
get_header();
global $post, $homey_local, $homey_prefix;
$sticky_sidebar = homey_option('sticky_sidebar');
$default_sidebar = isset($sticky_sidebar['default_sidebar']) ? $sticky_sidebar['default_sidebar'] : 0;
$content_classes = "col-xs-12 col-sm-12 col-md-8 col-lg-8";
if(!is_active_sidebar('blog-sidebar')) {
$content_classes = "col-xs-12 col-sm-12 col-md-12 col-lg-12";
}
?>
<section class="main-content-area">
<div class="container">
<div class="row">
<div class="<?php echo esc_attr($content_classes); ?>">
<div class="blog-wrap">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'content', get_post_format() );
endwhile;
else :
// If no content, include the "No posts found" template.
get_template_part( 'content', 'none' );
endif;
?>
<hr>
<!--start pagination-->
<?php homey_pagination( $wp_query->max_num_pages ); ?>
<div class="mw-nav">
<?php the_posts_pagination(); ?>
</div>
<!--end pagination-->
</div><!-- grid-listing-page -->
</div><!-- col-xs-12 col-sm-12 col-md-8 col-lg-8 -->
<?php if(is_active_sidebar('blog-sidebar')) { ?>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 <?php if( $default_sidebar != 0 ){ echo ' homey_sticky'; } ?>">
<div class="sidebar">
<?php get_sidebar(); ?>
</div>
</div>
<?php } ?>
</div><!-- .row -->
</div> <!-- .container -->
<?php get_footer(); ?>
Back to Directory
File Manager