add liveinternet
This commit is contained in:
12
blocks/card_post_happy.php
Normal file
12
blocks/card_post_happy.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?$happyurl = 'https://vetandlife.ru/video/kollektiv-veterinarii-i-zhizni-pozdravlyaet-s-novym-godom/';?>
|
||||||
|
<div class="mini-card">
|
||||||
|
<div class="mini-card-img">
|
||||||
|
<a href="<?=$happyurl?>">
|
||||||
|
<img class="mini-card-img" src="https://img.vetandlife.ru/news/512x340/2023/01/happy_video_1.jpg" alt="Коллектив «Ветеринарии и жизни» поздравляет с Новым годом!">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<h2 class="mini-card-title"><a href="<?=$happyurl?>">Коллектив «Ветеринарии и жизни» поздравляет с Новым годом!</a></h2>
|
||||||
|
<div class="mini-card-body">
|
||||||
|
<div class="news_date">31 декабря 2022</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
<div id="parent_subscript_win"></div>
|
<!--<div id="parent_subscript_win"></div> -->
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ function getWinVij(){
|
|||||||
'</div>';
|
'</div>';
|
||||||
|
|
||||||
subscript_win.style.display='block';
|
subscript_win.style.display='block';
|
||||||
document.cookie = vij_win_cookie + " = 1; max-age =" + 7 * 24 * 60 * 60 + "; path=/";
|
document.cookie = vij_win_cookie + " = 1; max-age =" + 3 * 24 * 60 * 60 + "; path=/";
|
||||||
|
|
||||||
setTimeout("subscript_win.style.display='none'", delay_popup);
|
setTimeout("subscript_win.style.display='none'", delay_popup);
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
<a href="http://vk.com/share.php?url=<?=get_permalink()?>&<?=get_the_title()?>" target="_blank"><i class="fab fa-vk btn_soc_post"></i></a> <a href="https://telegram.me/share/url?url=<?=get_permalink()?>"> <i class="fab fa-whatsapp btn_soc_post"></i><i class="fab fa-telegram-plane btn_soc_post"></i></a>
|
<a href="http://vk.com/share.php?url=<?=get_permalink()?>&<?=get_the_title()?>" target="_blank"><i class="fab fa-vk btn_soc_post"></i></a>
|
||||||
|
<a href="whatsapp://send?text=<?=get_permalink()?>"><i class="fab fa-whatsapp btn_soc_post"></i></a>
|
||||||
|
<a href="https://telegram.me/share/url?url=<?=get_permalink()?>"><i class="fab fa-telegram-plane btn_soc_post"></i></a>
|
||||||
51
footer.php
51
footer.php
@@ -71,14 +71,14 @@
|
|||||||
<?if (LANG_VERSION == 'ru'):?>
|
<?if (LANG_VERSION == 'ru'):?>
|
||||||
|
|
||||||
<div class="right-info">
|
<div class="right-info">
|
||||||
<a href="https://vetandlife.ru/tag/конкурс-пресс-служб/">
|
<a href="https://vetandlife.ru/parthers/kliniko-diagnosticheskij-centr-fgbu-vgnki-okazyvaet-polnyj-spektr-uslug-po-podgotovke-pitomca-dlya-puteshestviya-za-granicu/">
|
||||||
<img src="https://vetandlife.ru/wp-content/uploads/2022/12/press_compete_240x400_3.jpg" width="240" height="400" />
|
<img src="https://vetandlife.ru/wp-content/uploads/2023/03/vgnki_240x400_march23.jpg" width="240" height="400" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="right-info">
|
<div class="right-info">
|
||||||
<a href=" https://vetandlife.ru/parthers/fgbu-vgnki-okazyvaet-uslugi-po-issledovaniju-kormov-i-kormovyh-dobavok/">
|
<a href="https://roskachestvo.gov.ru/organic/contest/" target="_blank">
|
||||||
<img src="https://vetandlife.ru/wp-content/uploads/2022/12/vgnki_240x400_december.jpg" width="240" height="400" />
|
<img src="https://vetandlife.ru/wp-content/uploads/2023/01/rop.png" width="240" height="97" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -96,6 +96,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php //include VIJ_CACHE.'zakons.html';?>
|
<?php //include VIJ_CACHE.'zakons.html';?>
|
||||||
|
|
||||||
<?if (LANG_VERSION == 'en'):?>
|
<?if (LANG_VERSION == 'en'):?>
|
||||||
@@ -130,12 +132,6 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mobile-info">
|
|
||||||
<a href="https://vetandlife.ru/tag/конкурс-пресс-служб/">
|
|
||||||
<img src="https://vetandlife.ru/wp-content/uploads/2022/12/press_compete_240x200_3.jpg" width="240" height="200" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?//get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?>
|
<?//get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?>
|
||||||
<?include VIJ_CACHE.'top_mob.html'?>
|
<?include VIJ_CACHE.'top_mob.html'?>
|
||||||
<?get_template_part( '/blocks/enmosts', null, ['subclass' => 'mob-lite']);?>
|
<?get_template_part( '/blocks/enmosts', null, ['subclass' => 'mob-lite']);?>
|
||||||
@@ -150,11 +146,16 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="mobile-info">
|
<div class="mobile-info">
|
||||||
<a href=" https://vetandlife.ru/parthers/fgbu-vgnki-okazyvaet-uslugi-po-issledovaniju-kormov-i-kormovyh-dobavok/" target="_blank">
|
<a href="https://vetandlife.ru/parthers/kliniko-diagnosticheskij-centr-fgbu-vgnki-okazyvaet-polnyj-spektr-uslug-po-podgotovke-pitomca-dlya-puteshestviya-za-granicu/">
|
||||||
<img src="https://vetandlife.ru/wp-content/uploads/2022/12/vgnki_240x200_december.jpg" width="240" height="200" />
|
<img src="https://vetandlife.ru/wp-content/uploads/2023/03/vgnki_240x200_march23.jpg" width="240" height="200" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="mobile-info">
|
||||||
|
<a href="https://roskachestvo.gov.ru/organic/contest/" target="_blank">
|
||||||
|
<img src="https://vetandlife.ru/wp-content/uploads/2023/01/rop.png" width="240" height="97" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -232,6 +233,14 @@
|
|||||||
|
|
||||||
<div id="footer_2">
|
<div id="footer_2">
|
||||||
<div id="copy">© <?=vij_lang('copyright', LANG_VERSION);?> <?=date('Y')?></div>
|
<div id="copy">© <?=vij_lang('copyright', LANG_VERSION);?> <?=date('Y')?></div>
|
||||||
|
<div>
|
||||||
|
<?if (is_page(20548)):?>
|
||||||
|
|
||||||
|
|
||||||
|
<?endif?>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
<ul id="svid">
|
<ul id="svid">
|
||||||
<li><a href="https://vetandlife.ru/rss/news.xml" target="_blank">RSS</a></li>
|
<li><a href="https://vetandlife.ru/rss/news.xml" target="_blank">RSS</a></li>
|
||||||
<li><a href="https://vetandlife.ru/wp-content/uploads/2021/11/vij-roskomnadzor.pdf" target="_blank"><?=vij_lang('svid_smi', LANG_VERSION);?></a></li>
|
<li><a href="https://vetandlife.ru/wp-content/uploads/2021/11/vij-roskomnadzor.pdf" target="_blank"><?=vij_lang('svid_smi', LANG_VERSION);?></a></li>
|
||||||
@@ -241,7 +250,23 @@
|
|||||||
|
|
||||||
<div id="footer_3">
|
<div id="footer_3">
|
||||||
<div class="rating">12+</div>
|
<div class="rating">12+</div>
|
||||||
<div id="pere"><?=vij_lang('copyright_text', LANG_VERSION);?></div>
|
<div id="pere">
|
||||||
|
<?=vij_lang('copyright_text', LANG_VERSION);?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div><!--LiveInternet logo--><a href="https://www.liveinternet.ru/click"
|
||||||
|
target="_blank"><img src="https://counter.yadro.ru/logo?27.1"
|
||||||
|
title="LiveInternet: number of visitors and pageviews is shown"
|
||||||
|
alt="" style="border:0" width="88" height="120"/></a><!--/LiveInternet--></div>
|
||||||
|
|
||||||
|
<?if (is_page(20548)):?>
|
||||||
|
<div style="margin-left: 12px;">
|
||||||
|
<!-- Yandex.Metrika informer -->
|
||||||
|
<a href="https://metrika.yandex.ru/stat/?id=56480275&from=informer"
|
||||||
|
target="_blank" rel="nofollow"><img src="https://informer.yandex.ru/informer/56480275/3_1_FFFFFFFF_EFEFEFFF_0_pageviews"
|
||||||
|
style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" class="ym-advanced-informer" data-cid="56480275" data-lang="ru" /></a>
|
||||||
|
<!-- /Yandex.Metrika informer --></div>
|
||||||
|
<?endif?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -85,9 +85,9 @@ register_nav_menus(array(
|
|||||||
add_theme_support('post-thumbnails');
|
add_theme_support('post-thumbnails');
|
||||||
|
|
||||||
# регистрируем размеры миниатюр
|
# регистрируем размеры миниатюр
|
||||||
add_image_size( 'left-thumb', 95, 84, true ); # для левой колонки
|
//add_image_size( 'left-thumb', 95, 84, true ); # для левой колонки
|
||||||
add_image_size( 'moread', 372, 216, true ); # читайте также
|
//add_image_size( 'moread', 372, 216, true ); # читайте также
|
||||||
add_image_size( 'subscripts', 198, 145, true ); # рассылка
|
//add_image_size( 'subscripts', 198, 145, true ); # рассылка
|
||||||
|
|
||||||
|
|
||||||
#add scripts
|
#add scripts
|
||||||
@@ -780,6 +780,10 @@ return find_youtube($str);
|
|||||||
|
|
||||||
function find_youtube($str) {
|
function find_youtube($str) {
|
||||||
|
|
||||||
|
if( is_single( 11734 ) or is_single( 8136 ) ) {
|
||||||
|
return $str;
|
||||||
|
}
|
||||||
|
|
||||||
$result = $str;
|
$result = $str;
|
||||||
|
|
||||||
$pos1 = strpos($str, '<iframe');
|
$pos1 = strpos($str, '<iframe');
|
||||||
|
|||||||
19
header.php
19
header.php
@@ -3,14 +3,13 @@
|
|||||||
<head>
|
<head>
|
||||||
<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.0, maximum-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||||
<meta name="yandex-verification" content="257783249ab3fa7e" />
|
<meta name="yandex-verification" content="22f98955910722f8" />
|
||||||
|
|
||||||
<title><?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?></title>
|
<title><?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?></title>
|
||||||
|
|
||||||
<?if (defined('TESTMODE') and TESTMODE == 1):?>
|
<?if (defined('TESTMODE') and TESTMODE == 1):?>
|
||||||
<link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/style-test.css?ver=3">
|
<link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/style-test.css?ver=3">
|
||||||
<?else:?>
|
<?else:?>
|
||||||
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=352">
|
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=355">
|
||||||
<?endif?>
|
<?endif?>
|
||||||
<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">
|
||||||
<!--<link href="<?php echo get_stylesheet_directory_uri()?>/pub/fontawesome.css" rel="stylesheet">-->
|
<!--<link href="<?php echo get_stylesheet_directory_uri()?>/pub/fontawesome.css" rel="stylesheet">-->
|
||||||
@@ -50,6 +49,16 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<!--LiveInternet counter--><script>
|
||||||
|
new Image().src = "https://counter.yadro.ru/hit?r"+
|
||||||
|
escape(document.referrer)+((typeof(screen)=="undefined")?"":
|
||||||
|
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
|
||||||
|
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
|
||||||
|
";h"+escape(document.title.substring(0,150))+
|
||||||
|
";"+Math.random();</script><!--/LiveInternet-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?if (defined('TESTMODE') and TESTMODE == 1):?>
|
<?if (defined('TESTMODE') and TESTMODE == 1):?>
|
||||||
<style>
|
<style>
|
||||||
@@ -81,11 +90,11 @@
|
|||||||
<?else:?>
|
<?else:?>
|
||||||
|
|
||||||
<div id="mainbanner">
|
<div id="mainbanner">
|
||||||
<a href="https://vetandlife.ru/reklama-na-site/"><img src ="https://vetandlife.ru/wp-content/uploads/2022/04/2000x125_64c.gif" /></a>
|
<a href=" https://vetandlife.ru/reklama-special/"><img src ="https://vetandlife.ru/wp-content/uploads/2022/04/2000x125_64c.gif?ver=2" /></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="mobmainbanner">
|
<div id="mobmainbanner">
|
||||||
<a href="https://vetandlife.ru/reklama-na-site/"><img src =" https://vetandlife.ru/wp-content/uploads/2022/04/554x86.gif" /></a>
|
<a href=" https://vetandlife.ru/reklama-specialу"><img src =" https://vetandlife.ru/wp-content/uploads/2022/04/554x86.gif?ver=2" /></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
15
index.php
15
index.php
@@ -13,6 +13,9 @@ $nn = 0;?>
|
|||||||
<h1 id="mainpage-title">Главное</h1>
|
<h1 id="mainpage-title">Главное</h1>
|
||||||
|
|
||||||
<?include(get_template_directory().'/blocks/mainnews.php');?>
|
<?include(get_template_directory().'/blocks/mainnews.php');?>
|
||||||
|
<?//include(get_template_directory().'/blocks/mainnews_happy.php');?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php $query = new WP_Query(
|
<?php $query = new WP_Query(
|
||||||
array(
|
array(
|
||||||
@@ -38,11 +41,12 @@ $nn = 0;?>
|
|||||||
|
|
||||||
<?$nn++?>
|
<?$nn++?>
|
||||||
|
|
||||||
<?if ($nn == 5):?>
|
<?//if ($nn == 5):
|
||||||
<?card_post_id(25830, '');?>
|
// card_post_id(25830, '');
|
||||||
<?endif?>
|
// include get_template_directory().'/blocks/card_post_happy.php';
|
||||||
|
//endif?>
|
||||||
|
|
||||||
<?if ($nn < 24):?>
|
<?if ($nn < 25):?>
|
||||||
|
|
||||||
<div class="mini-card">
|
<div class="mini-card">
|
||||||
<?if ( has_post_thumbnail() ) :?>
|
<?if ( has_post_thumbnail() ) :?>
|
||||||
@@ -88,7 +92,10 @@ $nn = 0;?>
|
|||||||
<?get_template_part( '/blocks/citats', null, ['subclass' => 'mob-lite']);?>
|
<?get_template_part( '/blocks/citats', null, ['subclass' => 'mob-lite']);?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div> <!-- end content -->
|
</div> <!-- end content -->
|
||||||
|
|
||||||
|
<?php //include get_template_directory().'/blocks/popunder.php';?>
|
||||||
|
|
||||||
<?php get_footer(); ?>
|
<?php get_footer(); ?>
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
|
|
||||||
<?php include get_template_directory().'/blocks/moread.php';?>
|
<?php include get_template_directory().'/blocks/moread.php';?>
|
||||||
|
|
||||||
<div class="publ-to-main"><a href="http://beta.vetandlife.ru"> <span class="arrow-go-main"><</span> <span class="go-to-main">На главную</span></a></div>
|
<div class="publ-to-main"><a href="https://vetandlife.ru"> <span class="arrow-go-main"><</span> <span class="go-to-main">На главную</span></a></div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
|
|
||||||
<?php include get_template_directory().'/blocks/moread.php';?>
|
<?php include get_template_directory().'/blocks/moread.php';?>
|
||||||
|
|
||||||
<div class="publ-to-main"><a href="http://beta.vetandlife.ru"> <span class="arrow-go-main"><</span> <span class="go-to-main">На главную</span></a></div>
|
<div class="publ-to-main"><a href="https://vetandlife.ru"> <span class="arrow-go-main"><</span> <span class="go-to-main">На главную</span></a></div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -74,8 +74,6 @@
|
|||||||
|
|
||||||
<?php include get_template_directory().'/blocks/yets.php';?>
|
<?php include get_template_directory().'/blocks/yets.php';?>
|
||||||
|
|
||||||
<?php include get_template_directory().'/blocks/popunder.php';?>
|
|
||||||
|
|
||||||
<div id="tags">
|
<div id="tags">
|
||||||
<?php the_tags();?>
|
<?php the_tags();?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user