2021-09-30 13:51:38 +03:00
|
|
|
|
<?php get_header();?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
|
|
|
|
|
|
|
|
<?//while(have_posts()):?>
|
|
|
|
|
|
<?the_post();?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php $category = get_the_category();
|
|
|
|
|
|
$category_id = $category[0]->term_id;
|
|
|
|
|
|
$category_link = get_category_link($category_id);
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
<ul id="nav_content">
|
2021-11-18 14:25:24 +03:00
|
|
|
|
<li><a href="https://vetandlife.ru">Главная</li>
|
2021-09-30 13:51:38 +03:00
|
|
|
|
<li>-<li>
|
|
|
|
|
|
<li><a href="<?=$category_link?>"><?=$category['0']->name;?></a></li>
|
|
|
|
|
|
<li>-<li>
|
|
|
|
|
|
<li><?=mb_substr(get_the_title(), 0, 50);?>...</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="post_info">
|
|
|
|
|
|
<div class="post_info_sub">
|
2021-11-12 11:40:02 +03:00
|
|
|
|
<span class="post_link_category"><a href="<?=$category_link?>"><?=$category['0']->name;?></a></span>
|
2021-09-30 13:51:38 +03:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="post_info_sub post_info_social">
|
2022-10-30 01:46:41 +03:00
|
|
|
|
<?php include get_template_directory().'/blocks/social-share.php';?>
|
2021-09-30 13:51:38 +03:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2022-01-11 23:06:02 +03:00
|
|
|
|
|
|
|
|
|
|
<div id="fulltext">
|
2024-05-29 10:19:39 +03:00
|
|
|
|
|
|
|
|
|
|
<?// Получаем значение метаполя "completed" для текущей записи
|
|
|
|
|
|
$post_id = get_the_ID();
|
|
|
|
|
|
|
|
|
|
|
|
if ( metadata_exists( 'post', $post_id, 'completed' ) ) {
|
|
|
|
|
|
$completed = get_post_meta($post_id, 'completed', true);
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$completed = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Проверяем, установлена ли галочка "Завершено"
|
|
|
|
|
|
if ($completed === 'yes') {
|
|
|
|
|
|
echo '<h1 class="post-h1">'.get_the_title().'</h1>
|
|
|
|
|
|
<p>Мероприятие завершено. Посмотрите <span class="post_link_category"><a href="/category/vystavki-i-konferenitsii">актуальные мероприятия</a></span> или воспользуйтесь нашим поиском.</p>';
|
|
|
|
|
|
} else { ?>
|
2022-01-11 23:06:02 +03:00
|
|
|
|
|
2021-09-30 13:51:38 +03:00
|
|
|
|
<h1 class="post-h1"><?php wp_title('');?></h1>
|
2024-05-29 10:19:39 +03:00
|
|
|
|
|
2021-09-30 13:51:38 +03:00
|
|
|
|
<?$author = get_the_author();
|
2024-05-29 10:19:39 +03:00
|
|
|
|
|
2021-09-30 13:51:38 +03:00
|
|
|
|
if ( ! empty ( $author ) AND $author !== 'vetandlife.ru'):?>
|
|
|
|
|
|
<div class="post_author">
|
|
|
|
|
|
Автор: <?php the_author(); ?>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<?endif?>
|
|
|
|
|
|
|
|
|
|
|
|
<?if ( has_post_thumbnail() ) :?>
|
|
|
|
|
|
<div id="event-img">
|
2022-02-17 18:41:20 +03:00
|
|
|
|
<img class="img-fluid rounded" width="198" src="<?php echo get_the_post_thumbnail_url(null, 'full');?>" alt="<?the_title();?>">
|
2021-09-30 13:51:38 +03:00
|
|
|
|
</div>
|
|
|
|
|
|
<?endif?>
|
2021-10-31 13:01:31 +03:00
|
|
|
|
<div class="fulltext"><?the_content();?></div>
|
2021-09-30 13:51:38 +03:00
|
|
|
|
<!--<p><small class="text-muted"><?php the_tags('');?></small></p> -->
|
|
|
|
|
|
<?//endwhile;?>
|
|
|
|
|
|
|
2024-05-29 10:19:39 +03:00
|
|
|
|
<?}?>
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-11 23:06:02 +03:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2023-03-27 23:26:09 +03:00
|
|
|
|
<?php include get_template_directory().'/blocks/moread_events.php';?>
|
|
|
|
|
|
|
|
|
|
|
|
<?php // include get_template_directory().'/blocks/yets.php';?>
|
2021-09-30 13:51:38 +03:00
|
|
|
|
|
|
|
|
|
|
<div id="tags">
|
|
|
|
|
|
<?php the_tags();?>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="post_panel_info">
|
|
|
|
|
|
<div class="post_panel_info_sub">
|
|
|
|
|
|
<span class="post_link_category"><a href="<?=$category_link?>"><?=$category['0']->name;?></a></span>, <?php the_time('j F Y, G:i');?>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="post_panel_info_sub">
|
2022-10-30 01:46:41 +03:00
|
|
|
|
<!--Поделиться <i class="fas fa-share-square btn_soc_post"></i>--> <?php include get_template_directory().'/blocks/social-share.php';?>
|
2021-09-30 13:51:38 +03:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2023-03-23 13:18:58 +03:00
|
|
|
|
<div class="publ-to-main"><a href="https://vetandlife.ru"> <span class="arrow-go-main"><</span> <span class="go-to-main">На главную</span></a></div>
|
2021-09-30 13:51:38 +03:00
|
|
|
|
|
2024-05-29 10:19:39 +03:00
|
|
|
|
|
2021-09-30 13:51:38 +03:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php get_footer();?>
|