<?php get_header(); ?>

<?php echo rt_get_page_title() ?>

<?php if (rt_get_option('trip_archive_filter', true)): ?>
    <section class="site-filter has-global-padding">
        <div class="site-container">
            <?php rt_get_template_part('trip/trip-filter') ?>
        </div>
    </section>
<?php endif ?>

<section class="site-wrapper has-global-padding">
    <div class="site-container">

        <?php if (have_posts()) : ?>

            <div class="rt-posts">
                <div id="post_archive" class="grids grids-1 md:grids-3">
                    <?php while (have_posts()) : the_post(); ?>
                        <?php rt_get_template_part('trip/trip'); ?>
                    <?php endwhile ?>
                </div>

                <?php echo rt_get_pagination(); ?>

                <?php wp_reset_postdata(); ?>

            </div>
        <?php else : ?>
            <?php echo __('Trip not found', 'jelajah-text') ?>
        <?php endif ?>

    </div>
</section>

<?php get_footer(); ?>