<?php

/**
 * wp-luxury WordPress Theme, ordasvit.com
 * wp-luxury is distributed under the terms of the GNU GPL
 * Copyright: OrdaSvit, Andrey Kvasnevskiy, ordasvit.com
 */
?>
<?php wp_luxury_show_position_preview("main_content"); ?>

<div class="row">
    <?php

    if (have_posts()) {
        while (have_posts()) {
            the_post(); ?>
            <div class=" col-lg-4 col-md-6 col-sm-12 col-xs-12 wrapper-short-post">
                <div class="wrapper-inner-short-post">
                    <div class="wrapper-short-post-img">
                        <a href="<?php the_permalink() ?>">
                            <?php the_post_thumbnail(array(400, 400)); ?>
                        </a>
                    </div>
                    <div class="wrapper-short-post-info">
                        <h3 class="wrapper-short-post-title">
                            <a href="<?php the_permalink() ?>">
                                <?php the_title(); ?>
                            </a>
                        </h3>
                        <div class="wrapper-short-post-date">
                            <?php echo get_the_date(); ?>
                        </div>
                        <p class="wrapper-short-post-desc">
                            <?php the_excerpt(); ?>
                        </p>
                        <div class="wrapper-short-post-details">
                            <a href="<?php the_permalink() ?>">
                                <?php esc_html_e('Detalis', 'wp-luxury') ?></a>
                        </div>
                    </div>
                </div>
            </div>
        <?php }

        ?>
        <div class="wrapper-pagination">
            <?php
            wp_luxury_the_posts_navigation();
            ?>
        </div>
    <?php
    } else { ?>
        <div class=" col-lg-12 col-md-12 col-sm-12 col-xs-12 wrapper-not-found">
            <h2>
                <?php _e('NOT FOUND', 'wp-luxury'); ?>
            </h2>
        </div>
    <?php
    }

    ?>

</div>