117 lines
3.7 KiB
PHP
117 lines
3.7 KiB
PHP
<!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">
|
|
|
|
<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=274">
|
|
<?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 type="image/x-icon" href="/favicon. ico" rel="shortcut icon">
|
|
<link type="Image/x-icon" href="/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>
|
|
|
|
|
|
<?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-na-site/"><img src ="https://vetandlife.ru/wp-content/uploads/2022/04/2000x125_64c.gif" /></a>
|
|
</div>
|
|
|
|
<div id="mobmainbanner">
|
|
<a href="https://vetandlife.ru/reklama-na-site/"><img src =" https://vetandlife.ru/wp-content/uploads/2022/04/554x86.gif" /></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>
|
|
|