<?php get_header(); ?>

<?php
$categoryLink = get_queried_object()->slug;
?>
<div class="content-middle articles-wrapper">
    <?php get_template_part('partials/rubrics-mobile'); ?>
    <div class="section-title no-mobile-border">
        <h1 class="section-title__title"><a href="<?= the_permalink(); ?>"></a><?= $post->post_title ?></a></h1>
    </div>
    <div class="event-single">
        <div class="event-item__text">
            <div class="event-item__description-block">
                <h3 class="event-item__description-header subtitle-13">Организатор</h3>
                <p class="event-item__description-text text-13"><?= get_field('organizer') ?></p>
            </div>
            <!--<div class="event-item__description-block">
                <h3 class="event-item__description-header subtitle-13">Дата</h3>
                <p class="event-item__description-text  text-13"><?= get_field('event_date') ?></p>
            </div>-->
            <div class="event-item__description-block">
                <h3 class="event-item__description-header subtitle-13">Место проведения</h3>
                <p class="event-item__description-text text-13"><?= get_field('location') ?></p>
            </div>

            <div class="event-item__description-block">
                <h3 class="event-item__description-header subtitle-13">Телефон</h3>
                <p class="event-item__description-text text-13"><?= get_field('phone') ?></p>
            </div>

            <div class="event-item__description-block">
                <h3 class="event-item__description-header subtitle-13">О мероприятии</h3>
                <p class="event-item__description-text text-13"><? the_content(); ?></p>
            </div>
        </div>

        <!--<div class="event-item__image-container">
            <?//= show_post_image(); ?>
            <div class="event-item__heading">
                <h2 class="event-item__title"><?= the_title() ?></h2>
                <? if (!empty(get_field('subtitle'))) : ?><p class="event-item__subtitle"><?= get_field('subtitle') ?></p><? endif; ?>
            </div>
        </div>-->

    </div>
    <a href="/events/" class="articles-preview__show-next">Все мероприятия</a>
    <div class="articles__spacer-container">
        <div class="articles__spacer"></div>
        <div class="articles__spacer"></div>
    </div>
</div>


<?php
get_footer(); ?>