<?php global $post ?>
<div class="col mb-3 home-news-card">
    <div class="card h-100 news-card">
        <div>
            <?php if (has_post_thumbnail($post->ID)) :
                $imageInfo = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'single-post-thumbnail');
                $imageUrl = $imageInfo[0]; ?>

                <img src="<?php echo $imageUrl ?>" class="" alt="...">
            <?php
            else:
                ?>
                <img src="<?php echo get_site_url(); ?>/wp-content/uploads/2024/07/2023052502551c6a8ee2-slider-security-1024x541-1.jpg"
                     class="" alt="...">
            <?php
            endif;
            ?>

        </div>
        <div class="py-3 px-2">
            <div class="mt-0 mb-3 "><span
                        class="upcoming-event-date-time py-1 px-2"><?php the_time('j M, Y'); ?></span>
            </div>
            <a class="stretched-link upcoming-event-link"
               href="<?php echo get_the_content(); ?>"><?php the_title(); ?> </a>
        </div>
    </div>
</div>