correct simbol eng version

This commit is contained in:
2022-01-11 23:06:02 +03:00
parent 4d88d4133f
commit f89bd9d939
11 changed files with 77 additions and 12 deletions

View File

@@ -77,10 +77,11 @@
</div> </div>
<div class="right-info"> <div class="right-info">
<a href="https://vetandlife.ru/parthers/v-fgbu-vgnki-razrabotan-metod-odnovremennogo-opredeleniya-v-kormah-bolee-120-lekarstvennyh-sredstv-primenyaemyh-v-zhivotnovodstve-antibiotikov-i-antiprotozojnyh-preparatov/"> <a href="https://vetandlife.ru/parthers/fgbu-vgnki-provodit-mezhlaboratornye-slichitelnye-ispytaniya-msi-v-oblasti-pokazatelej-kachestva-i-bezopasnosti-pishhevyh-produktov-rastitelnogo-i-zhivotnogo-proishozhdeniya-kormov-i-kormovyh-sredstv/">
<img src="https://vetandlife.ru/wp-content/uploads/2021/12/vgnki_dec_240x400-1.jpg" width="240" height="400" /> <img src="https://vetandlife.ru/wp-content/uploads/2022/01/vgnki_240x400_january.jpg" width="240" height="400" />
</a> </a>
</div> </div>
<?endif?> <?endif?>
@@ -101,8 +102,20 @@
<?else:?> <?else:?>
<?get_template_part( '/blocks/mosts', null, ['subclass' => '']);?> <?get_template_part( '/blocks/mosts', null, ['subclass' => '']);?>
<?get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?> <?get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?>
<?endif?>
<?if (LANG_VERSION == 'ru'):?>
<div class="right-info">
<a href="https://vetandlife.ru/без-рубрики/veterinariya-i-zhizn-obyavlyaet-o-novom-fotokonkurse-sovremennoe-zhivotnovodstvo-i-veterinariya/">
<img src="https://vetandlife.ru/wp-content/uploads/2022/01/new_comp_240x400.jpg" width="240" height="400" />
</a>
</div>
<?endif?> <?endif?>
<?//php include VIJ_CACHE.'mosts.html';?> <?//php include VIJ_CACHE.'mosts.html';?>
</div> </div>
</div><!-- end main --> </div><!-- end main -->
@@ -133,10 +146,17 @@
<?if (LANG_VERSION == 'ru'):?> <?if (LANG_VERSION == 'ru'):?>
<div class="mobile-info"> <div class="mobile-info">
<a href="https://vetandlife.ru/parthers/v-fgbu-vgnki-razrabotan-metod-odnovremennogo-opredeleniya-v-kormah-bolee-120-lekarstvennyh-sredstv-primenyaemyh-v-zhivotnovodstve-antibiotikov-i-antiprotozojnyh-preparatov/" target="_blank"> <a href="https://vetandlife.ru/parthers/fgbu-vgnki-provodit-mezhlaboratornye-slichitelnye-ispytaniya-msi-v-oblasti-pokazatelej-kachestva-i-bezopasnosti-pishhevyh-produktov-rastitelnogo-i-zhivotnogo-proishozhdeniya-kormov-i-kormovyh-sredstv/" target="_blank">
<img src="https://vetandlife.ru/wp-content/uploads/2021/12/vgnki_240x200.jpg" width="240" height="200" /> <img src="https://vetandlife.ru/wp-content/uploads/2022/01/vgnki_240x200_january.jpg" width="240" height="200" />
</a> </a>
</div> </div>
<div class="mobile-info">
<a href="https://vetandlife.ru/без-рубрики/veterinariya-i-zhizn-obyavlyaet-o-novom-fotokonkurse-sovremennoe-zhivotnovodstvo-i-veterinariya/">
<img src="https://vetandlife.ru/wp-content/uploads/2022/01/new_comp_240x200.jpg" width="240" height="200" />
</a>
</div>
<?endif?> <?endif?>
<?php include get_template_directory().'/blocks/mobile-subscript.php';?> <?php include get_template_directory().'/blocks/mobile-subscript.php';?>

View File

@@ -628,3 +628,4 @@ add_action( 'pre_get_posts', function ($query) {
}); });

View File

@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title><?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?></title> <title><?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?></title>
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=137"> <link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=145">
<link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet"> <link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet">
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/jquery-3.6.0.min.js"></script> <script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/jquery-3.6.0.min.js"></script>
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/golos.js"></script> <script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/golos.js"></script>

View File

@@ -17,6 +17,7 @@ $nn = 0;?>
array( array(
'category__in' => array(2), 'category__in' => array(2),
'post__not_in' => array($mainpost_id), 'post__not_in' => array($mainpost_id),
'posts_per_page' => 21,
'meta_query' => array( 'meta_query' => array(
array( array(
'key' => '_thumbnail_id', 'key' => '_thumbnail_id',
@@ -34,7 +35,25 @@ $nn = 0;?>
<?php while($query->have_posts()) : $query->the_post();?> <?php while($query->have_posts()) : $query->the_post();?>
<?//$nn++?> <?$nn++?>
<?if ($nn == 10):?>
<div class="mini-card">
<?$block_href = "https://vetandlife.ru/sobytiya/veterinariya-i-zhizn-obyavlyaet-o-novom-fotokonkurse-sovremennoe-zhivotnovodstvo-i-veterinariya/";?>
<div class="mini-card-img">
<a href="<?=$block_href?>">
<img class="mini-card-img" src="https://vetandlife.ru/wp-content/uploads/2022/01/Nikola-Stojadinovic-iStock.jpg" alt="«Ветеринария и жизнь» объявляет о новом фотоконкурсе «Современное животноводство и ветеринария»">
</a>
</div>
<h2 class="mini-card-title"><a href="<?=$block_href?>">«Ветеринария и жизнь» объявляет о новом фотоконкурсе «Современное животноводство и ветеринария»</a></h2>
<div class="mini-card-body">
<div class="news_date">до 31 марта 2022 года</div>
</div>
</div>
<?endif?>
<div class="mini-card"> <div class="mini-card">
<?if ( has_post_thumbnail() ) :?> <?if ( has_post_thumbnail() ) :?>

View File

@@ -15,7 +15,7 @@ function filterHtml($html) {
date_default_timezone_set('Europe/Moscow'); date_default_timezone_set('Europe/Moscow');
$posts = get_posts( array( $posts = get_posts( array(
'numberposts' => 25, 'numberposts' => 20,
'category' => 2, 'category' => 2,
'orderby' => 'date', 'orderby' => 'date',
'order' => 'DESC', 'order' => 'DESC',

View File

@@ -28,6 +28,10 @@
<i class="fab fa-vk btn_soc_post"></i> <i class="fab fa-facebook-square btn_soc_post"></i> <i class="fab fa-telegram-plane btn_soc_post"></i> <i class="fab fa-vk btn_soc_post"></i> <i class="fab fa-facebook-square btn_soc_post"></i> <i class="fab fa-telegram-plane btn_soc_post"></i>
</div> </div>
</div> </div>
<div id="fulltext">
<h1 class="post-h1"><?php wp_title('');?></h1> <h1 class="post-h1"><?php wp_title('');?></h1>
<?$author = get_the_author(); <?$author = get_the_author();
if ( ! empty ( $author ) AND $author !== 'vetandlife.ru'):?> if ( ! empty ( $author ) AND $author !== 'vetandlife.ru'):?>
@@ -40,6 +44,8 @@
<!--<p><small class="text-muted"><?php the_tags('');?></small></p> --> <!--<p><small class="text-muted"><?php the_tags('');?></small></p> -->
<?//endwhile;?> <?//endwhile;?>
</div>
<?php include get_template_directory().'/blocks/yets.php';?> <?php include get_template_directory().'/blocks/yets.php';?>
<div id="tags"> <div id="tags">

View File

@@ -13,6 +13,11 @@
$category_id = $category[0]->term_id; $category_id = $category[0]->term_id;
$category_link = get_category_link($category_id); $category_link = get_category_link($category_id);
$post_id = get_the_ID(); $post_id = get_the_ID();
remove_filter('the_content', 'wptexturize');
remove_filter('the_title', 'wptexturize');
remove_filter('the_excerpt', 'wptexturize');
?> ?>
<ul id="nav_content"> <ul id="nav_content">

View File

@@ -28,6 +28,9 @@
<i class="fab fa-vk btn_soc_post"></i> <i class="fab fa-facebook-square btn_soc_post"></i> <i class="fab fa-telegram-plane btn_soc_post"></i> <i class="fab fa-vk btn_soc_post"></i> <i class="fab fa-facebook-square btn_soc_post"></i> <i class="fab fa-telegram-plane btn_soc_post"></i>
</div> </div>
</div> </div>
<div id="fulltext">
<h1 class="post-h1"><?php wp_title('');?></h1> <h1 class="post-h1"><?php wp_title('');?></h1>
<?$author = get_the_author(); <?$author = get_the_author();
if ( ! empty ( $author ) AND $author !== 'vetandlife.ru'):?> if ( ! empty ( $author ) AND $author !== 'vetandlife.ru'):?>
@@ -45,6 +48,8 @@
<!--<p><small class="text-muted"><?php the_tags('');?></small></p> --> <!--<p><small class="text-muted"><?php the_tags('');?></small></p> -->
<?//endwhile;?> <?//endwhile;?>
</div>
<?php include get_template_directory().'/blocks/yets.php';?> <?php include get_template_directory().'/blocks/yets.php';?>
<div id="tags"> <div id="tags">

View File

@@ -31,6 +31,7 @@
<?php include get_template_directory().'/blocks/social-share.php';?> <?php include get_template_directory().'/blocks/social-share.php';?>
</div> </div>
</div> </div>
<div id="fulltext">
<h1 class="post-h1"><?php wp_title('');?></h1> <h1 class="post-h1"><?php wp_title('');?></h1>
<?$author = get_the_author(); <?$author = get_the_author();
if ( ! empty ( $author ) AND $author !== 'vetandlife.ru'):?> if ( ! empty ( $author ) AND $author !== 'vetandlife.ru'):?>
@@ -71,6 +72,8 @@
</div> </div>
</div> </div>
</div>
<?php include get_template_directory().'/blocks/moread.php';?> <?php include get_template_directory().'/blocks/moread.php';?>
<div class="publ-to-main"> <div class="publ-to-main">

View File

@@ -63,7 +63,7 @@ dd {
margin: 0; margin: 0;
} }
ul, ol { ul {
list-style: none; list-style: none;
} }
@@ -951,6 +951,14 @@ a{
} }
#fulltext ul{
list-style-type: square;
}
#content ul li{
padding: 4px 0 4px 0;
}
.promo-agregators{ .promo-agregators{
margin-top: 28px; margin-top: 28px;
padding: 32px 28px 32px 28px; padding: 32px 28px 32px 28px;
@@ -1220,6 +1228,7 @@ a{
#nav_content{ #nav_content{
display: flex; display: flex;
list-style-type: none;
padding:0; padding:0;
padding-bottom: 18px; padding-bottom: 18px;
margin-top: 28px; margin-top: 28px;

View File

@@ -19,10 +19,7 @@
<enclosure url="<?=get_the_post_thumbnail_url($post->ID)?>" type="image/jpeg"/> <enclosure url="<?=get_the_post_thumbnail_url($post->ID)?>" type="image/jpeg"/>
<?endif?> <?endif?>
<pubDate><?=_U2RFC822($post->post_date)?></pubDate> <pubDate><?=_U2RFC822($post->post_date)?></pubDate>
<yandex:full-text><![CDATA[ <yandex:full-text><![CDATA[<?=strip_tags($post->post_content)?>]]></yandex:full-text>
<?=filterHtml($post->post_content)?>
]]>
</yandex:full-text>
</item> </item>
<?endforeach?> <?endforeach?>
</channel> </channel>