rus locale date events
This commit is contained in:
@@ -27,8 +27,10 @@ if( $more_posts ):
|
|||||||
<?$imgurl = IMGSERVER.'news/512x340/'.str_replace('https://vetandlife.ru/wp-content/uploads/', '', get_the_post_thumbnail_url($post, 'full'))?>
|
<?$imgurl = IMGSERVER.'news/512x340/'.str_replace('https://vetandlife.ru/wp-content/uploads/', '', get_the_post_thumbnail_url($post, 'full'))?>
|
||||||
<img src="<?php echo $imgurl;?>" alt="<?the_title();?>">
|
<img src="<?php echo $imgurl;?>" alt="<?the_title();?>">
|
||||||
<div class="moread_title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></div>
|
<div class="moread_title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></div>
|
||||||
<div class="moread_date"><?=date('j F Y', strtotime( get_post_meta($post->ID, 'startevent', true) ) );
|
<?setlocale(LC_TIME, 'ru_RU.utf8');?>
|
||||||
?></div>
|
<?$startevent = strtotime( get_post_meta($post->ID, 'startevent', true) );?>
|
||||||
|
<div class="moread_date"><?=date_i18n( 'j F Y', $startevent );?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php endforeach;?>
|
<?php endforeach;?>
|
||||||
|
|||||||
Reference in New Issue
Block a user