add eng version

This commit is contained in:
arlemp@selectel.ru
2021-12-09 22:29:24 +03:00
parent aba07a8e1b
commit acde7f0e8b
9 changed files with 141 additions and 54 deletions

View File

@@ -25,7 +25,7 @@
<div class="post_info">
<div class="post_info_sub">
<span class="post_link_category"><a href="<?=$category_link?>"><?=$category['0']->name;?></a></span>, <? echo mysql2date( 'j F Y H:i', $post->post_date, false );?>
<span class="post_link_category"><a href="<?=$category_link?>"><?=$category['0']->name;?></a></span>, <? echo mysql2date( 'j M Y H:i', $post->post_date, false );?>
</div>
<div class="post_info_sub post_info_social"
<?php include get_template_directory().'/blocks/social-share.php';?>
@@ -35,10 +35,15 @@
<?$author = get_the_author();
if ( ! empty ( $author ) AND $author !== 'vetandlife.ru'):?>
<div class="post_author">
By <?php the_author(); ?>
By <?php the_author(); ?><?=find_perevod($post->ID)?>
</div>
<?endif?>
<div class="publ_expert"><?php the_excerpt();?></div>
<?if ( has_post_thumbnail() ) :?>
<div id="post-img">
@@ -61,18 +66,18 @@
<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 echo mysql2date( 'j F Y H:i', $post->post_date, false );?>
<span class="post_link_category"><a href="<?=$category_link?>"><?=$category['0']->name;?></a></span>, <?php echo mysql2date( 'j M Y H:i', $post->post_date, false );?>
</div>
<div class="post_panel_info_sub">
<!--Поделиться <i class="fas fa-share-square btn_soc_post"></i>--> <?php include get_template_directory().'/blocks/social-share.php';?>
</div>
</div>
<?php include get_template_directory().'/blocks/moread.php';?>
<?php //include get_template_directory().'/blocks/moread.php';?>
<div class="publ-to-main">
<button class="more_button" onclick="location.href='<?=get_site_url()?>/page/2'" type="button">
На главную</button>
<button class="more_button" onclick="location.href='<?=get_site_url()?>/en'" type="button">
Mainpage</button>
</div>