<?php
$formatted_date = format_event_date();
?>
<div class="article-item-wrapper__rfo">
    <div class="article-item-main__rfo">
        <div class="article-main-content">
            <div class="article-main-images">
                <a href="<?php the_permalink(); ?>">
                    <?=render_webp_picture_by_post( null, ''); ?>
                </a>
            </div>    
            <div class="article-main-text">
                <div class="article-time">
                    <img src="<?= get_asset('/icons/time.svg'); ?>" alt="" /><?php echo $formatted_date; ?>
                </div>
                <a href="<?php the_permalink(); ?>" class="subtitle-16 article-item__link"><?php the_title(); ?></a>
                <p class="article-item__descr text-13"><?php the_excerpt(); ?></p>
            </div>
        </div>    
        <div class="article-rfo-details">
            <div class="article-rfo-details-text"><a href="<?php the_permalink();?>">Подробнее</a></div>
            <div class="article-rfo-details-icon"></div>
        </div>        
    </div>    
</div>