2021-11-22 22:22:04 +03:00
|
|
|
<?php
|
|
|
|
|
|
2021-12-23 23:10:26 +03:00
|
|
|
$gposts = get_posts( array(
|
2021-11-22 22:22:04 +03:00
|
|
|
'numberposts' => 1,
|
|
|
|
|
'category' => 3, // 19 - архив газеты
|
|
|
|
|
'orderby' => 'date',
|
|
|
|
|
'order' => 'DESC',
|
|
|
|
|
'include' => array(),
|
|
|
|
|
'exclude' => array(),
|
|
|
|
|
'meta_key' => '',
|
|
|
|
|
'meta_value' =>'',
|
2021-12-23 23:10:26 +03:00
|
|
|
'post_type' => 'post'
|
2021-11-22 22:22:04 +03:00
|
|
|
) );
|
|
|
|
|
|
|
|
|
|
# вывод поста
|
2021-12-23 23:10:26 +03:00
|
|
|
if( $gposts ):
|
2021-11-22 22:22:04 +03:00
|
|
|
|
2021-12-23 23:10:26 +03:00
|
|
|
foreach($gposts as $gpost):
|
|
|
|
|
|
2021-11-22 22:22:04 +03:00
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<div class="mobile_archive">
|
2021-12-23 23:10:26 +03:00
|
|
|
<a href="<?php the_permalink($gpost->ID); ?>"><img width="91" class="mobile_archive_img" src="<?php echo get_the_post_thumbnail_url($gpost->ID, 'fil');?>" alt="<?the_title($gpost->ID);?>"></a>
|
2021-11-22 22:22:04 +03:00
|
|
|
<div class="mobile_archive_text">
|
2021-12-23 23:10:26 +03:00
|
|
|
<div><strong><a href="<?php the_permalink($gpost->ID); ?>"><?=vij_lang('gazeta', LANG_VERSION);?></a></strong></div>
|
2021-12-15 21:11:53 +03:00
|
|
|
<?if (LANG_VERSION == 'ru'):?>
|
2021-12-23 23:10:26 +03:00
|
|
|
<div class="mobile_archive_link"><a href="<?php the_permalink($gpost->ID); ?>"><?=the_title($gpost->ID);?></a></div>
|
2021-12-15 21:11:53 +03:00
|
|
|
<?endif?>
|
2021-11-22 22:22:04 +03:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php endforeach;
|
|
|
|
|
|
2021-12-23 23:10:26 +03:00
|
|
|
|
2021-11-22 22:22:04 +03:00
|
|
|
|
|
|
|
|
endif;?>
|
|
|
|
|
|
|
|
|
|
<div class="mob-subscript">
|
2021-12-21 15:44:24 +03:00
|
|
|
<div class="mob-block-button">
|
2021-12-15 21:11:53 +03:00
|
|
|
<a class="mob-sub-button" href="https://vetandlife.ru/subscripts"><?=vij_lang('subscript_btn', LANG_VERSION)?></a>
|
2021-11-22 22:22:04 +03:00
|
|
|
</div>
|
2021-12-21 15:44:24 +03:00
|
|
|
</div>
|