<?php
/**
 * Template part for displaying results in search pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package CyyWordpress
 */

?>

<div id="post-<?php the_ID(); ?>" class="card"  style=" margin-bottom: 25px;">
    <div class="card-content">
        <div class="media">
            <div class="media-content">

                <?php the_title( sprintf( '<h2 class="title is-4"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>

                <?php if ( 'post' === get_post_type() ) : ?>
                    <div class="entry-meta">
                        <?php
                        cyywordpress_posted_on();
                        cyywordpress_posted_by();
                        ?>
                    </div><!-- .entry-meta -->
                <?php endif; ?>

                <?php cyywordpress_post_thumbnail(); ?>

            </div>
        </div>

        <div class="content">
            <div class="entry-summary">
                <?php the_excerpt(); ?>
            </div><!-- .entry-summary -->

            <footer class="entry-footer">
                <?php cyywordpress_entry_footer(); ?>
            </footer><!-- .entry-footer -->
        </div>
    </div>

</div><!-- #post-<?php the_ID(); ?> -->
