<?php
/**
 * PIX经典首页 - 博客
 *
 */

$nav_h = cls_nav_height();
$sidebar = pix_sidebar();

?>

<div class="uk-flex-center uk-grid-collapse" uk-grid>

    <?php if ($sidebar['left']): ?>
        <div class="left left-widget">
            
            <div class="widget_inner blog_left_inner">
                <?php dynamic_sidebar( 'blog-left' ); ?>        
            </div>
        </div>
    <?php endif; ?>

    <div class="center-content <?php
        if (!$sidebar['left'] && !$sidebar['right']) echo ' uk-width-expand';
        elseif (!$sidebar['left'] || !$sidebar['right']) echo ' center-half';
    ?>">
        <div id="primary" class="site-main">

            <div class="cls-banner">
                <?php echo Classic_mod::banner_info(); ?>
                <img data-src="<?php echo esc_url(Classic_mod::banner_image()); ?>" uk-img="loading: lazy">
            </div>

            <div class="home-blog-content cls-content">
                <?php get_template_part('inc/layouts/cls', 'blog'); ?>
            </div>

        </div><!-- #main -->
    </div>

    <?php if ($sidebar['right']): ?>
        <div class="right right-widget">
            <div class="widget_inner blog_right_inner">
                <?php dynamic_sidebar( 'blog-right' ); ?>
            </div>
        </div>
    <?php endif; ?>

</div>
