<?php get_header() ?>
<section class="sas-row page-search">
    <div class="container mt-5">
        <header>
            <h2 class="sas-title"><?php echo __('Search Results') ?></h2>
        </header>
        <div class="search-container">
            <?php while (have_posts()): ?>
                <?php the_post(); ?>
                <a class="search-item" href="<?php the_permalink(); ?>">
                    <?php
                    if (!has_post_thumbnail()) {
                        echo "<img src='" . get_template_directory_uri() . "/assets/images/1920x795.png' />";
                    } else {
                        the_post_thumbnail();
                    }
                    ?>
                    <div class="search-item-body">
                        <h3><?php the_title(); ?></h3>
                        <p>
                            <?php the_excerpt(); ?>
                        </p>
                    </div>
                </a>
            <?php endwhile; ?>
        </div>
    </div>
</section>
<?php get_footer() ?>