<?php
$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 moment_left_inner">
                <?php dynamic_sidebar( 'moment-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="moment-push-form">
                <?php echo moment_banner_info(); ?>
                <?php
                if ($args['catid'] == 0) {
                    echo moment_rec_cat();
                    echo mos_notice_bar();
                }
                ?>
                <?php get_template_part('inc/layouts/moment', 'form'); ?>
            </div>

            <div class="moment-cat-filter">
                <?php echo moment_cat_filter(); ?>
            </div>

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

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

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

</div>
