update theme
This commit is contained in:
35
header.php
35
header.php
@@ -3,15 +3,9 @@
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600&display=swap" rel="stylesheet" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap" rel="stylesheet" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title><?php wp_title(); ?></title>
|
||||
<?php wp_head(); ?>
|
||||
<meta name="yandex-verification" content="209d13da5a697e41" />
|
||||
<!-- Yandex.Metrika counter -->
|
||||
<script type="text/javascript" >
|
||||
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
|
||||
@@ -40,19 +34,18 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<!-- End Google Tag Manager (noscript) -->
|
||||
</head>
|
||||
</head>
|
||||
|
||||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<div id="app">
|
||||
<?php $optionImageHeader = wp_is_mobile() ? get_field('banner_in_header_mobile', 'option') : get_field('banner_in_header', 'option');?>
|
||||
<?
|
||||
if (!empty($optionImageHeader['image_banner']) || !empty($optionImageHeader['link'])) : ?>
|
||||
<a href="<?= $optionImageHeader['link'] ?>">
|
||||
<div class="banner banner--header">
|
||||
<img src="<?= $optionImageHeader['image_banner']['url'] ?>" alt="">
|
||||
</div>
|
||||
</a>
|
||||
<? endif; ?>
|
||||
<div class="banner banner--header desktop">
|
||||
<?php if (function_exists('banners_conf_display')) banners_conf_display('header_banner_desktop'); ?>
|
||||
</div>
|
||||
<div class="banner banner--header mobile">
|
||||
<?php if (function_exists('banners_conf_display')) banners_conf_display('header_banner_mobile'); ?>
|
||||
</div>
|
||||
|
||||
<header class="header">
|
||||
<div class="container">
|
||||
<div class="header__inner">
|
||||
@@ -145,6 +138,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (!is_404() && !is_500()) : ?>
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<? if (!is_page('search') && !is_search() && !is_404()) : ?>
|
||||
@@ -152,13 +146,4 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<?php get_sidebar('left'); ?>
|
||||
</div>
|
||||
<? endif; ?>
|
||||
|
||||
<style>
|
||||
.banner--header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
<? endif; ?>
|
||||
Reference in New Issue
Block a user