Files
vij/header.php
2023-03-23 13:18:58 +03:00

143 lines
5.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="ru">
<head>
<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="yandex-verification" content="22f98955910722f8" />
<title><?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?></title>
<?if (defined('TESTMODE') and TESTMODE == 1):?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/style-test.css?ver=3">
<?else:?>
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=355">
<?endif?>
<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">-->
<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>
<meta property="og:title" content="<?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?>" />
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<link type="image/x-icon" href="https://vetandlife.ru/favicon.ico" rel="shortcut icon">
<link type="Image/x-icon" href="https://vetandlife.ru/favicon.ico" rel="icon">
<?if (isset($post->ID)):?>
<meta property="og:description" content="<?=strip_tags(get_the_excerpt( $post->ID ))?>" />
<?if( has_post_thumbnail()):
$thumb_id = get_post_thumbnail_id($post->ID);
$thumb_url = wp_get_attachment_image_src($thumb_id,'large', false);?>
<meta property="og:image" content="<?=$thumb_url[0]?>">
<?endif?>
<?endif?>
<?php wp_head();?>
</head>
<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):?>
<style>
#testbanner{
width: 100%;
display: block;
padding: 10px;
}
#testbanner img {
display: block;
width: 100%;
max-width: 554px;
height: 86px;
margin: auto;
border: 1px solid black;
background-color: gray;
text-align: center;
}
</style>
<div id="testbanner">
<img />
</div>
<?else:?>
<div id="mainbanner">
<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 id="mobmainbanner">
<a href=" https://vetandlife.ru/reklama-specialу"><img src =" https://vetandlife.ru/wp-content/uploads/2022/04/554x86.gif?ver=2" /></a>
</div>
<?endif?>
<? $lang_version = lang_version();
if ($lang_version == 'en'){
$mainmenu = 'topenmenu';
$mob_main_menu = 'topmobmenu';
}
else {
$mainmenu = 'topmenu';
$mob_main_menu = 'mob_rubrics';
}
define('LANG_VERSION', $lang_version);
?>
<?php include TEMPLATEPATH.'/blocks/header.php';
//get_template_part( '/blocks/header.php');?>
<?php //include VIJ_CACHE.'header.html'?>
<?php $subclass = ''; ?>
<div id="main">
<div id="vert-title">
<?if (is_front_page()):?>
<div id="main-arrow"></div>
<?endif?>
<!--<div>Главное</div>-->
</div>