new paginator en

This commit is contained in:
2022-10-14 16:50:33 +03:00
parent 03945b7563
commit a5263b7385
5 changed files with 26 additions and 26 deletions

View File

@@ -80,12 +80,12 @@ function arriah_parser(){
if ($result) {
//echo "Y: $title: $mysqldate\n";
echo "Y: $title: $mysqldate\n";
continue;
}
//echo "N: $slug\n";
continue;
echo "N: $slug\n";
// continue;
$my_post = [
'post_title' => $title,

View File

@@ -70,7 +70,15 @@ $nn = 0;?>
<?php endif;?>
<?get_template_part( '/blocks/paginator');?>
<?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' => __( '<&nbsp;&nbsp;'.vij_lang('prev', LANG_VERSION), 'quidus' ),
'next_text' => __( vij_lang('next', LANG_VERSION).'&nbsp;&nbsp;>', 'quidus' ),
'end_size' => 2,
'mid_size' => 3,
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'quidus' ) . ' </span>',
) );
?></div><?php endif;?>
</div>

View File

@@ -27,12 +27,7 @@
</a>
</div>
<div class="right-info">
<a href="https://seafoodexporussia.com/?utm_source=website&utm_medium=banner&utm_campaign=vetandlife_main" target="_blank">
<img src="https://vetandlife.ru/wp-content/uploads/2022/07/240х400_2022.gif" width="240" height="400" />
</a>
</div>
<?endif?>
@@ -84,8 +79,8 @@
<div class="right-info">
<a href="https://vetandlife.ru/parthers/fgbu-vgnki-provodit-polnyj-spektr-neobhodimyh-dlya-registracii-doklinicheskih-toksikologicheskih-issledovanij-lekarstvennyh-sredstv-dlya-veterinarnogo-primeneniya-i-kormovyh-dobavok/">
<img src="https://vetandlife.ru/wp-content/uploads/2022/07/vgnki_240x400_july.jpg" width="240" height="400" />
<a href=" https://vetandlife.ru/parthers/fgbu-vgnki-okazyvaet-uslugi-po-razrabotke-meropriyatij-po-sanacii-zhivotnovodcheskih-i-pticevodcheskih-hozyajstv-ot-bakterialnyh-infekcij-posredstvom-provedeniya-laboratorno-diagnosticheskih-issledova/">
<img src="https://vetandlife.ru/wp-content/uploads/2022/10/vgnki_240x400_october-2.jpg" width="240" height="400" />
</a>
</div>
@@ -135,13 +130,6 @@
</a>
</div>
<div class="mobile-info">
<a href="https://seafoodexporussia.com/?utm_source=website&utm_medium=banner&utm_campaign=vetandlife_main" target="_blank">
<img src="https://vetandlife.ru/wp-content/uploads/2022/07/240х200.gif" width="240" height="200" />
</a>
</div>
<?get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?>
<div class="mobile-info">
@@ -157,8 +145,8 @@
<?if (LANG_VERSION == 'ru'):?>
<div class="mobile-info">
<a href="https://vetandlife.ru/parthers/fgbu-vgnki-provodit-polnyj-spektr-neobhodimyh-dlya-registracii-doklinicheskih-toksikologicheskih-issledovanij-lekarstvennyh-sredstv-dlya-veterinarnogo-primeneniya-i-kormovyh-dobavok/" target="_blank">
<img src="https://vetandlife.ru/wp-content/uploads/2022/07/vgnki_240x200_july.jpg" width="240" height="200" />
<a href="https://vetandlife.ru/parthers/fgbu-vgnki-okazyvaet-uslugi-po-razrabotke-meropriyatij-po-sanacii-zhivotnovodcheskih-i-pticevodcheskih-hozyajstv-ot-bakterialnyh-infekcij-posredstvom-provedeniya-laboratorno-diagnosticheskih-issledova/" target="_blank">
<img src="https://vetandlife.ru/wp-content/uploads/2022/10/vgnki_240x200_october-2.jpg" width="240" height="200" />
</a>
</div>

View File

@@ -38,9 +38,11 @@ $nn = 0;?>
<?$nn++?>
<?//?if ($nn == 10){
//card_post_id(20427, 'до 13 апреля 2022 года');
//endif?>
<?if ($nn == 10):?>
<?card_post_id(23364, 'до 15 ноября 2022 года');?>
<?endif?>
<?if ($nn < 24):?>
<div class="mini-card">
<?if ( has_post_thumbnail() ) :?>
@@ -57,7 +59,9 @@ $nn = 0;?>
<div class="mini-card-body">
<div class="news_date"><?the_time('j F Y, G:i');?></div>
</div>
</div>
</div>
<?endif?>
<?php endwhile;?>

View File

@@ -51,7 +51,7 @@ function vij_lang($name, $lan){
'svid_smi' => 'Media Registration Certificate',
'copyright_text' => 'It is required to provide a valid URL when reprinting and using information from the Veterinary Medicine and Life website. When using materials in print media, indicate the source - Veterinary Medicine and Life',
'email_btn' => 'Sign up',
'email_title' => 'Sign up to our newsletters to get the latest on your favourite topics from the Veterinary Medicine and Life',
'email_title' => 'Sign up to our newsletter to get the latest updates on your favourite topics from the Veterinary Medicine and Life',
'your_mail' => 'Your email',
'gazeta' => 'Veterinary Medicine and Life newspaper',
'up_bth' => 'UP',