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) { if ($result) {
//echo "Y: $title: $mysqldate\n"; echo "Y: $title: $mysqldate\n";
continue; continue;
} }
//echo "N: $slug\n"; echo "N: $slug\n";
continue; // continue;
$my_post = [ $my_post = [
'post_title' => $title, 'post_title' => $title,

View File

@@ -70,7 +70,15 @@ $nn = 0;?>
<?php endif;?> <?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> </div>

View File

@@ -27,12 +27,7 @@
</a> </a>
</div> </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?> <?endif?>
@@ -84,8 +79,8 @@
<div class="right-info"> <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/"> <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/07/vgnki_240x400_july.jpg" width="240" height="400" /> <img src="https://vetandlife.ru/wp-content/uploads/2022/10/vgnki_240x400_october-2.jpg" width="240" height="400" />
</a> </a>
</div> </div>
@@ -135,13 +130,6 @@
</a> </a>
</div> </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']);?> <?get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?>
<div class="mobile-info"> <div class="mobile-info">
@@ -157,8 +145,8 @@
<?if (LANG_VERSION == 'ru'):?> <?if (LANG_VERSION == 'ru'):?>
<div class="mobile-info"> <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"> <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/07/vgnki_240x200_july.jpg" width="240" height="200" /> <img src="https://vetandlife.ru/wp-content/uploads/2022/10/vgnki_240x200_october-2.jpg" width="240" height="200" />
</a> </a>
</div> </div>

View File

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

View File

@@ -51,7 +51,7 @@ function vij_lang($name, $lan){
'svid_smi' => 'Media Registration Certificate', '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', '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_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', 'your_mail' => 'Your email',
'gazeta' => 'Veterinary Medicine and Life newspaper', 'gazeta' => 'Veterinary Medicine and Life newspaper',
'up_bth' => 'UP', 'up_bth' => 'UP',