Files
vij/single.php

67 lines
2.3 KiB
PHP
Raw Normal View History

2021-09-16 12:14:35 +03:00
<?php get_header();?>
2021-09-18 01:30:09 +03:00
2021-09-20 01:07:53 +03:00
2021-09-18 01:30:09 +03:00
<div>
<?//while(have_posts()):?>
<?php $category = get_the_category();
$category_id = $category[0]->term_id;
$category_link = get_category_link($category_id);
?>
<div class="post_info">
2021-09-20 01:07:53 +03:00
<div class="post_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_info_sub">
<i class="fab fa-vk btn_soc_post"></i> <i class="fab fa-facebook-square btn_soc_post"></i> <i class="fab fa-telegram-plane btn_soc_post"></i>
</div>
2021-09-18 01:30:09 +03:00
</div>
<h1 class="my-4"><?php wp_title('');?></h1>
2021-09-20 01:07:53 +03:00
<?$author = the_author();
if ( ! empty ( $author ) ):?>
<div class="post_author">
Автор: <?php $author; ?>
</div>
<?endif?>
2021-09-18 01:30:09 +03:00
<div class="publ_expert"><?php the_excerpt();?></div>
<img class="img-fluid rounded" src="<?php echo get_the_post_thumbnail_url(null, 'full');?>" alt="<?the_title();?>">
<div class="post_img_title"><?the_post_thumbnail_caption()?></div>
<?the_content();?>
<!--<p><small class="text-muted"><?php the_tags('');?></small></p> -->
2021-09-20 01:07:53 +03:00
<?//endwhile;?>
2021-09-18 01:30:09 +03:00
2021-09-20 01:07:53 +03:00
<?php include get_template_directory().'/blocks/yets.php';?>
2021-09-18 01:30:09 +03:00
<div class="post_panel_info">
2021-09-20 01:07:53 +03:00
<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">
Поделиться <i class="fas fa-share-square btn_soc_post"></i> <i class="fab fa-vk btn_soc_post"></i> <i class="fab fa-facebook-square btn_soc_post"></i> <i class="fab fa-telegram-plane btn_soc_post"></i>
</div>
2021-09-18 01:30:09 +03:00
</div>
<?php include get_template_directory().'/blocks/moread.php';?>
2021-09-20 01:07:53 +03:00
<div class="publ-to-main"><a href="http://beta.vetandlife.ru"> <span class="arrow-go-main"><</span>&nbsp;&nbsp;&nbsp;<span class="go-to-main">На главную</span></a></div>
2021-09-18 01:30:09 +03:00
</div>
2021-09-20 01:07:53 +03:00
2021-09-18 01:30:09 +03:00
<?php get_footer();?>