2021-12-09 00:16:01 +03:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* The main template file.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
get_header();
|
|
|
|
|
$nn = 0;?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
|
|
|
|
|
|
<ul id="nav_content">
|
|
|
|
|
<li><a href="<?=get_home_url()?>/en">English version</a></li>
|
|
|
|
|
<li> - <?single_cat_title()?></li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<h1 class="my-4"><?single_cat_title()?></h1>
|
|
|
|
|
|
|
|
|
|
<?php if(have_posts()) : while(have_posts()) : the_post();?>
|
|
|
|
|
|
|
|
|
|
<?$nn++;?>
|
|
|
|
|
|
|
|
|
|
<?if ($nn == 1):?>
|
|
|
|
|
|
|
|
|
|
<div class="main-card">
|
|
|
|
|
<?if ( has_post_thumbnail() ) :?>
|
|
|
|
|
<div class="card-img-top">
|
|
|
|
|
<a href="<?the_permalink();?>"><img class="card-img-top" src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>" alt="<?the_title();?>"></a>
|
|
|
|
|
</div>
|
|
|
|
|
<?endif?>
|
|
|
|
|
<h2 class="main-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2>
|
|
|
|
|
<div class="main-card-body">
|
|
|
|
|
<div class="main-card-text"><a href="<?the_permalink();?>"><?the_excerpt();?></a></div>
|
2021-12-09 22:29:24 +03:00
|
|
|
<div class="news_date"><?echo mysql2date( 'j F Y, H:i', $post->post_date, false );?></div>
|
2021-12-09 00:16:01 +03:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?elseif ($nn == 2):?>
|
|
|
|
|
<div class="mini-card-block">
|
|
|
|
|
<?endif?>
|
|
|
|
|
|
|
|
|
|
<?if ($nn > 1):?>
|
|
|
|
|
|
|
|
|
|
<div class="mini-card">
|
|
|
|
|
<?if ( has_post_thumbnail() ) :?>
|
|
|
|
|
<div class="mini-card-img">
|
|
|
|
|
<a href="<?the_permalink();?>"><img class="mini-card-img" src="<?php echo get_the_post_thumbnail_url(null, 'large'); ?>" alt="<?the_title();?>"></a>
|
|
|
|
|
<?if( has_tag( 'видео' ) ):?>
|
|
|
|
|
<span class="play-card"></span>
|
|
|
|
|
<?endif?>
|
|
|
|
|
</div>
|
|
|
|
|
<?endif?>
|
|
|
|
|
<h2 class="mini-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2>
|
|
|
|
|
<div class="mini-card-body">
|
2021-12-09 22:29:24 +03:00
|
|
|
<div class="news_date"><?echo mysql2date( 'j F Y, H:i', $post->post_date, false );?></div>
|
2021-12-09 00:16:01 +03:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?endif?>
|
|
|
|
|
|
|
|
|
|
<?php endwhile;?>
|
|
|
|
|
|
|
|
|
|
</div> <!--//end minicard block -->
|
|
|
|
|
|
|
|
|
|
<?else:?>
|
|
|
|
|
|
|
|
|
|
Здесь пока нет публикаций
|
|
|
|
|
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
|
2022-10-14 16:50:33 +03:00
|
|
|
<?php if ( $wp_query->max_num_pages > 1 ) : ?><div class="pagination-wrapper"><?php the_posts_pagination( array(
|
|
|
|
|
'base' => 'http://vetandlife.ru/category/en/%_%',
|
|
|
|
|
'prev_text' => __( '< '.vij_lang('prev', LANG_VERSION), 'quidus' ),
|
|
|
|
|
'next_text' => __( vij_lang('next', LANG_VERSION).' >', 'quidus' ),
|
|
|
|
|
'end_size' => 2,
|
|
|
|
|
'mid_size' => 3,
|
|
|
|
|
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'quidus' ) . ' </span>',
|
|
|
|
|
) );
|
|
|
|
|
?></div><?php endif;?>
|
2021-12-09 00:16:01 +03:00
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php get_footer(); ?>
|