Initial commit
This commit is contained in:
37
content-category-events-post.php
Normal file
37
content-category-events-post.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<? while ($posts->have_posts()) :
|
||||
$posts->the_post();
|
||||
?>
|
||||
<div class="event-item">
|
||||
<a href="<?= the_permalink() ?>">
|
||||
<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>
|
||||
</a>
|
||||
<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"><? the_excerpt(); ?></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>
|
||||
</div>
|
||||
<? endwhile; ?>
|
||||
Reference in New Issue
Block a user