Files
profile/header-old.php
Andrey Kuvshinov 8fc8cbae32 add files
2025-07-09 21:21:17 +03:00

751 lines
49 KiB
PHP

<!doctype html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="fb:pages" content="245606408830047" />
<meta name="copyright" lang="ru" content="«Профиль»" />
<link rel="manifest" href="/manifest.webmanifest" />
<link rel="dns-prefetch" href="https://cdn.profile.ru" />
<link rel="preconnect" href="https://cdn.profile.ru" />
<link rel="dns-prefetch" href="//www.google-analytics.com" />
<link rel="preconnect" href="//www.google-analytics.com" />
<link rel="dns-prefetch" href="//www.googletagmanager.com" />
<link rel="preconnect" href="//www.googletagmanager.com" />
<link rel="dns-prefetch" href="//counter.yadro.ru" />
<link rel="preconnect" href="//counter.yadro.ru" />
<?php if(wp_is_mobile()): ?>
<link rel="preload" as="image" href="<?= get_template_directory_uri() ?>/assets/img/Profile_lazyload_m.webp" />
<link rel="preload" as="image" href="<?= get_template_directory_uri() ?>/assets/img/profil-logo.png" />
<?php endif; ?>
<link rel="apple-touch-icon" href="<?= get_template_directory_uri() ?>/assets/img/Profile_icon_192x192_blue.png" />
<meta name="theme-color" content="#222" />
<?php
if(wp_is_mobile() && (is_single() /*|| get_queried_object_id() == 3360*/ || is_front_page() || is_home() || is_author() || is_category() || is_archive() || is_tag() || is_search() || is_post_type_archive() )){
get_template_part('article', 'styles');
}
?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="profile" href="https://gmpg.org/xfn/11">
<link rel="icon" href="/favicon.ico" />
<meta name="msvalidate.01" content="13DFD495A6A21226C33225FEE601FE75" />
<?php if($_SERVER['HTTP_SIDE'] === 'gprofile'): ?>
<?php if(wp_is_mobile()): ?>
<script>
window.googletag = window.googletag || {cmd: []};
googletag.cmd.push(function() {
googletag.defineSlot('/176990977/profile_ru/mobile_inread-2', [[300, 500], [300, 250], [336, 280], [300, 400], [300, 300], [300, 600]], 'div-gpt-ad-1670425550124-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.pubads().collapseEmptyDivs();
googletag.enableServices();
});
</script>
<script>
window.googletag = window.googletag || {cmd: []};
googletag.cmd.push(function() {
googletag.defineSlot('/176990977/profile_ru/mobile_sticky', [[320, 50], [300, 100], [320, 100]], 'div-gpt-ad-1670425473184-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.pubads().collapseEmptyDivs();
googletag.enableServices();
});
</script>
<script>
window.googletag = window.googletag || {cmd: []};
googletag.cmd.push(function() {
googletag.defineSlot('/176990977/profile_ru/mobile_inread-1', [[300, 250], [300, 500], [336, 280], [300, 400], [300, 600], [300, 300]], 'div-gpt-ad-1670423201900-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.pubads().collapseEmptyDivs();
googletag.enableServices();
});
</script>
<script>
window.googletag = window.googletag || {cmd: []};
googletag.cmd.push(function() {
googletag.defineSlot('/176990977/profile_ru/mobile_list1', [[320, 480], [300, 600], [320, 300], [336, 280], [300, 500], [320, 250], [300, 250], [300, 300], [300, 400]], 'div-gpt-ad-1672142322541-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
<?php endif; ?>
<?php else: ?>
<script>window.yaContextCb = window.yaContextCb || []</script>
<?php endif; ?>
<?php
ob_start();
wp_head();
$head = ob_get_clean();
if(is_single()){
if(get_post_meta(get_queried_object_id(), '_k_label', true) == 1){
//$head = str_replace('index, follow', 'noindex, nofollow', $head);
}
}
echo $head;
?>
<link rel="alternate" type="application/rss+xml" href="https://profile.ru/feed/short/" />
<title><?php wp_title(); ?></title>
<?php $chance = rand(0,100); ?>
<?php /*Тут был HB!
<link rel="dns-prefetch" href="//static.criteo.net">
<link rel="dns-prefetch" href="//bidder.criteo.com">
<link rel="preload" href="//static.criteo.net/js/ld/publishertag.js" as="script" crossorigin="anonymous">
<script type='text/javascript' src='https://static.criteo.net/js/ld/publishertag.js'></script>
<script>
window.Criteo = window.Criteo || {};
window.Criteo.events = window.Criteo.events || [];
</script>
<link rel="preconnect" href="https://ads.betweendigital.com" crossorigin>
<script src="https://yastatic.net/pcode/adfox/header-bidding.js"></script>
<script>
var adfoxBiddersMap = {
"criteo": "894022",
"myTarget": "772378",
"betweenDigital": "1048605",
"alfasense": "1123433",
"rtbhouse": "1119632",
"adriver": "1048606"
};
var adUnits = new Array();
var userTimeout = 1000;
window.YaHeaderBiddingSettings = {
biddersMap: adfoxBiddersMap,
adUnits: adUnits,
timeout: userTimeout
};
</script>
*/ ?>
<?php customStyles(); ?>
<?php if(is_user_logged_in()): ?>
<?php get_template_part('admin', 'header'); ?>
<?php endif; ?>
<?php
if(wp_is_mobile() && (is_single() /*|| get_queried_object_id() == 3360*/ || is_front_page() || is_home() || is_author() || is_category() || is_archive() || is_tag() || is_search() || is_post_type_archive() )){}else{
?>
<script src="https://player.panda.video/loadCluster.js"></script>
<script>
function isScrolledIntoView(elem) {
var docViewTop = jQuery(window).scrollTop();
var docViewBottom = docViewTop + jQuery(window).height();
var elemTop = jQuery(elem).offset().top;
var elemBottom = elemTop + jQuery(elem).height();
return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));
}
</script>
<?php } ?>
<?php if(test_ad()): ?>
<script src="https://a.adwolf.ru/profile_lib.js" ></script>
<?php endif; ?>
<?php if(get_queried_object_id() != 901869 && 1==2): ?>
<script defer src="https://cdn.unblockia.com/h.js"></script>
<?php endif; ?>
<?php if(wp_is_mobile() && get_queried_object_id() == 104418): ?>
<style>
html, body, header {
max-width:100vw!important;
overflow-x:hidden!important;
}
</style>
<?php endif; ?>
<style>
html.js .hide-if-js {
display:none!important;
}
.nav-link.nav-link--red {
color:#dc3545!important;
}
</style>
<?php if(get_current_user_id() == 1): ?>
<?php ?>
<?php endif; ?>
<?php if(wp_is_mobile()): ?>
<style>
@media (max-width: 992px) {
.header.isSticky .nav .nav-item:first-child {
margin-right: 0!important;
}
}
@media (min-width: 992px) {
.header__nav .nav {
flex-wrap: nowrap;
}
.header__nav .nav-link {
white-space: nowrap;
padding-left: .5rem;
padding-right: .5rem;
}
.header__nav__stick.js-stick-header {
overflow: hidden;
max-height:56px;
}
/*.header__nav__stick.js-stick-header .header__nav.header__nav--index {
overflow-x: scroll;
overflow-y: hidden;
height:4rem;
}*/
.article__data {
color:#fff;
}
.header.isSticky .logo {
background:#fff;
}
.page-index .main > .container-fluid > .row.clearfix .col-12:nth-child(9) {
display:none;
}
}
</style>
<?php endif; ?>
</head>
<body<?php echo bodyclass(); ?>>
<?php if( 1==1 || !is_user_logged_in() && show_counters()): ?>
<!--counters-->
<?php get_template_part('counters'); ?>
<!--/counters-->
<?php endif; ?>
<?php
if(show_counters()) {
//get_template_part('counters');
}
?>
<!-- [Adfox Top] -->
<!--div id="header-wrap">
<div id="adfox_158799437745763211" class="adfox-top"></div>
</div-->
<!-- [class="index default"] -->
<a class="scroll-to-top" href="">
<svg width="40" height="40" class="align-baseline svg-icon">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#scroll-to-top"></use>
</svg>
<span>Наверх</span>
</a>
<header class="header"
<?php if(!wp_is_mobile()): ?>
style="height: 195.469px;"
<?php endif; ?>
>
<div class="header__widgets d-none d-md-flex sticky-element-is-a-child-of-parent">
<div class="container-fluid clearfix">
<div class="row">
<?php if((is_branding() || is_branding_page()) && has_branding_link()): ?>
<a href="<?php echo get_branding_link(); ?>" target="_blank" class="before"></a>
<?php endif; ?>
<div class="col-12 col-sm-2 col-xl-3">
<span class="font-weight-bold">
<?php echo date_i18n('j F Y'); ?>
</span>
</div>
<div class="col-12 col-sm-10 col-xl-9">
<div class="d-flex justify-content-between">
<!--div class="header__currency">
<a class="header__currency__item" id="USD">
<span class="font-weight-bold">USD</span>
<span></span>
<span></span>
</a>
<a class="header__currency__item" id="EUR">
<span class="font-weight-bold">EUR</span>
<span></span>
<span></span>
</a>
</div-->
<div class="header__currency">
<span class="header__currency__item">
<span class="font-weight-bold">USD</span>
<span>82.64</span>
<span class="up">+0,54</span>
</span>
<span class="header__currency__item">
<span class="font-weight-bold">EUR</span>
<span>89,01</span>
<span class="up">+0,96</span>
</span><!--
<span class="header__currency__item">
<span class="font-weight-bold">НЕФТЬ</span>
<span>84,84</span>
<span class="up">+1,24%</span>
</span>-->
</div>
</div>
</div>
<?php if((is_branding() || is_branding_page()) && has_branding_link()): ?>
<a href="<?php echo get_branding_link(); ?>" target="_blank" class="after"></a>
<?php endif; ?>
</div>
</div>
</div>
<!-- [ js-stick-header js-is-sticky ] -->
<div class="container-fluid clearfix">
<div class="row overflow-visible">
<div class="col-12 col-md-4 col-lg-5 col-xl-7">
<div class="d-flex <?php if(wp_is_mobile()): ?>justify-content-between<?php endif; ?> align-items-center">
<div class="d-flex d-md-block <?php if(wp_is_mobile()): ?>flex align-items-center<?php endif; ?> position-relative">
<!--[mobile menu]-->
<div class="d-block d-md-none">
<a class="burger-menu collapsed" href="#burger-menu" data-target="#burger-menu" data-toggle="collapse" aria-expanded="false"><span></span></a>
<div id="burger-menu" class="burger-menu__dd collapse">
<div class="burger-menu__body">
<!--[menu-1]-->
<?php burger_mobile_menu('burger_menu_1'); ?>
<?php burger_mobile_menu('burger_menu_2'); ?>
</div>
<div class="">
<a class="logo" href="/" title="Профиль">
<?php if(wp_is_mobile()): ?>
<img loading="lazy" class="lazyload" src="<?= get_template_directory_uri() ?>/assets/img/px.gif" data-src="<?= get_template_directory_uri() ?>/assets/img/profil-logo.webp" width="249" height="55" alt="">
<?php else: ?>
<img loading="lazy" src="<?= get_template_directory_uri() ?>/assets/img/profil-logo.webp" width="249" height="55" alt="">
<?php endif; ?>
</a>
<div class="header__social clearfix">
<?php if(wp_is_mobile()): ?>
<div class="float-xs-none float-md-left">
<a class="float-xs-none float-md-left header__store" href="https://apps.apple.com/ru/app/id6476872853" target="_blank" rel="noopener">
<img loading="lazy" class="lazyload" src="<?= get_template_directory_uri() ?>/assets/img/px.gif" data-src="<?= get_template_directory_uri() ?>/assets/img/appstore.svg" width="90" height="29" alt="" />
</a>
<a class="float-xs-none float-md-left header__store" href="https://play.google.com/store/apps/details?id=com.quazarteam.Profile" target="_blank" rel="noopener">
<img loading="lazy" class="lazyload" src="<?= get_template_directory_uri() ?>/assets/img/px.gif" data-src="<?= get_template_directory_uri() ?>/assets/img/googleplay.svg" height="29" alt="" />
</a>
</div>
<div class="float-xs-none float-md-left">
<a class="float-xs-none float-md-left header__store" href="https://apps.rustore.ru/app/com.quazarteam.Profile" target="_blank" rel="noopener">
<img loading="lazy" class="lazyload" src="<?= get_template_directory_uri() ?>/assets/img/px.gif" data-src="https://cdn.profile.ru/wp-content/uploads/2022/11/513fbaa28f2495d055016d286c270681.png" height="29" alt="" />
</a>
<a class="float-xs-none float-md-left header__store" href="https://profile.ru/app-profile-magazine-ver-6.1.2.apk" target="_blank" rel="noopener">
<img loading="lazy" class="lazyload" src="<?= get_template_directory_uri() ?>/assets/img/px.gif" data-src="https://cdn.profile.ru/wp-content/uploads/2022/10/Download-APK.png" height="29" alt="" />
</a>
</div>
<?php else: ?>
<div class="float-xs-none float-md-left">
<a class="float-xs-none float-md-left header__store" href="https://apps.apple.com/ru/app/id6476872853" target="_blank" rel="noopener">
<img loading="lazy" class="lazyload" src="<?= get_template_directory_uri() ?>/assets/img/appstore.svg" width="103" height="32" alt="" />
</a>
<!--a class="float-xs-none float-md-left header__store" href="https://play.google.com/store/apps/details?id=com.quazarteam.Profile" target="_blank" rel="noopener">
<img loading="lazy" class="lazyload" src="<?= get_template_directory_uri() ?>/assets/img/googleplay.svg" width="115" height="32" alt="" />
</a-->
</div>
<?php endif; ?>
<div class="float-xs-none float-md-right">
<?php if(wp_is_mobile()): ?>
<ul class="header__network">
<li>
<span class="icon icon--network">
<!--img class="lazyload" src="<?= get_template_directory_uri() ?>/assets/img/px.gif" class="lazyload" data-src="<?= get_template_directory_uri() ?>/assets/img/profile-network.png" alt="" /-->
</span>
<ul>
<li>
<a class="icon icon--vk" href="https://vk.com/profile_magazine" target="_blank" aria-label="vk.com" rel="noopener">
<svg class="svg-icon">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#vk"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--twitter" href="tg://resolve?domain=profile_newzzz" target="_blank" aria-label="t.me">
<svg class="svg-icon">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#telegram"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--ok" href="https://ok.ru/profilejournal" target="_blank" aria-label="ok.ru" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#ok"></use>
</svg>
</a>
</li>
<!--li>
<a class="icon icon--youtube" href="https://www.youtube.com/channel/UC9guqBrNYZd1uDNFHzG3UUA" target="_blank" aria-label="youtube.com" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#youtube"></use>
</svg>
</a>
</li-->
<li>
<a class="icon icon--mt" href="https://mirtesen.profile.ru/" target="_blank" aria-label="mirtesen.profile.ru" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#mt"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--seldon-news" href="https://news.myseldon.com/ru/source/4347477" target="_blank" aria-label="news.myseldon.com" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#seldon-news"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--google-news" href="https://yandex.ru/chat/#/join/df469fa7-6518-4783-a545-4eed75d1649f" target="_blank" aria-label="Яндекс.Мессенджер" rel="noopener">
<img loading="lazy" class="lazyload" src="<?= get_template_directory_uri() ?>/assets/img/px.gif" data-src="<?= get_template_directory_uri() ?>/assets/img/Yandex_messanger.png" width="30" height="30" alt="Яндекс.Мессенджер" />
</a>
</li>
<li>
<a class="icon icon--feedly" href="https://feedly.com/i/subscription/feed%2Fhttp%3A%2F%2Fwww.profile.ru%2Frss%2Farticles%2Fall" target="_blank" aria-label="feedly.com" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#feedly"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--mobilnye-prilozheniya" href="https://profile.ru/mobilnye-prilozheniya" target="_blank" aria-label="Profile App">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#profil_app_icon"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--flipboard" href="https://flipboard.com/@profile_ru/profile-ru-o8ldu3sly?from=share" target="_blank" aria-label="flipboard.com" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#flipboard"></use>
</svg>
</a>
</li>
</ul>
</li>
</ul>
<ul class="header__network">
<li>
<?php if(is_category() || is_single() ): ?>
<p>
<?php
$category = is_category() ? get_queried_object_id() : (get_the_category( get_queried_object_id() ))[0]->term_id;
$taxonomy_term_token = get_field("advert_token", "category_" . $category );
$post_token = get_field("advert_token", get_queried_object_id() );
?>
<?php if($taxonomy_term_token): ?>
<p>erid: <?= $taxonomy_term_token ?></p>
<?php endif; ?>
<?php if($post_token): ?>
<p>erid: <?= $post_token ?></p>
<?php endif; ?>
</p>
<?php endif; ?>
</li>
</ul>
<?php else: ?>
<ul class="header__network">
<li>
<span class="icon icon--network">
<img loading="lazy" class="lazyload" src="<?= get_template_directory_uri() ?>/assets/img/px.gif" width="111px" height="33px" data-src="<?= get_template_directory_uri() ?>/assets/img/profile-network.png" alt="" />
</span>
<ul>
<li>
<a class="icon icon--vk" href="https://vk.com/profile_magazine" target="_blank" aria-label="vk.com" rel="noopener">
<svg class="svg-icon">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#vk"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--twitter" href="tg://resolve?domain=profile_newzzz" target="_blank" aria-label="t.me">
<svg class="svg-icon">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#telegram"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--ok" href="https://ok.ru/profilejournal" target="_blank" aria-label="ok.ru" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#ok"></use>
</svg>
</a>
</li>
<!--li>
<a class="icon icon--youtube" href="https://www.youtube.com/channel/UC9guqBrNYZd1uDNFHzG3UUA" target="_blank" aria-label="youtube.com" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#youtube"></use>
</svg>
</a>
</li-->
<li>
<a class="icon icon--mt" href="https://mirtesen.profile.ru/" target="_blank" aria-label="mirtesen.profile.ru" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#mt"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--seldon-news" href="https://news.myseldon.com/ru/source/4347477" target="_blank" aria-label="news.myseldon.com" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#seldon-news"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--google-news" href="https://yandex.ru/chat/#/join/df469fa7-6518-4783-a545-4eed75d1649f" target="_blank" aria-label="Яндекс.Мессенджер" rel="noopener">
<img loading="lazy" class="lazyload" src="<?= get_template_directory_uri() ?>/assets/img/px.gif" data-src="<?= get_template_directory_uri() ?>/assets/img/Yandex_messanger.png" alt="Яндекс.Мессенджер" />
</a>
</li>
<li>
<a class="icon icon--feedly" href="https://feedly.com/i/subscription/feed%2Fhttp%3A%2F%2Fwww.profile.ru%2Frss%2Farticles%2Fall" target="_blank" aria-label="feedly.com" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#feedly"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--mobilnye-prilozheniya" href="https://profile.ru/mobilnye-prilozheniya" target="_blank" aria-label="Profile App">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#profil_app_icon"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--flipboard" href="https://flipboard.com/@profile_ru/profile-ru-o8ldu3sly?from=share" target="_blank" aria-label="flipboard.com" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#flipboard"></use>
</svg>
</a>
</li>
</ul>
</li>
</ul>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<!--[/mobile menu]-->
<a class="d-inline-block logo" href="/" title="Профиль">
<?php echo get_site_logo(); ?>
</a>
</div>
<?php if(!wp_is_mobile()): ?>
<?php if((is_archive() || is_category() || is_single()) && !is_post_type_archive() && !is_author() &&!is_tag()):
$cat = (is_archive()) ? get_category(get_query_var('cat')) : get_category(get_post_primary_category(get_the_ID())['primary_category']);
$category = $cat;
$menus = wp_get_nav_menus();
foreach($menus as $item) {
$menu_id = $item->term_id;
$menu = wp_get_nav_menu_items($menu_id, array(
'posts_per_page' => -1,
'meta_key' => '_menu_item_object_id',
'meta_value' => get_queried_object_id() // the currently displayed post
));
if(count($menu) > 0){
break;
}
}
$className = get_post_meta($menu[0]->ID, '_menu_item_color', true);
$className = empty($className) ? "black" : $className;
?>
<?php if (get_query_var('is_event') != 'true' && (is_post_type_archive() || is_single()) && in_array(get_post_type(), array('anew','yellow'))): ?>
<div class="header__title header__title--black font-weight-bold"><a href="/news">Новости</a> | <a href="<?php echo get_category_link($cat); ?>"><?php echo $category->cat_name; ?></a></div>
<?php elseif ((is_post_type_archive() || is_single()) && get_post_type() == 'archive'): ?>
<div class="header__title header__title--black font-weight-bold">Архив</div>
<?php else: ?>
<div class="font-weight-bold header__title header__title--<?php echo $className; ?> d-inline-block d-md-none d-xl-inline-block">
<?php if(is_single()): ?>
<a href="<?php echo get_category_link($cat); ?>">
<?php echo $category->cat_name; ?>
</a>
<?php else: ?>
<?php if(is_archive()): ?>
<h1>
<?php echo $category->cat_name; ?>
</h1>
<?php else: ?>
<?php echo $category->cat_name; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php if(wp_is_mobile()): ?>
<div class="d-block d-md-none">
<a class="nav-link nav-link--feedback" href="/news">Новости</a>
</div>
<?php endif; ?>
</div>
</div>
<div class="col-12 order-xs-12 col-md-12 order-0 order-md-12">
<!--[dt menu]-->
<div class="header__nav__stick js-stick-header js-is-sticky sticky-element-is-a-child-of-parent d-none d-md-block">
<div class="header__nav header__nav--index position-relative clearfix">
<?php if(wp_is_mobile()): ?>
<a class="tablet--logo" href="/" title="Профиль">
<?php echo get_site_logo(); ?>
</a>
<?php endif; ?>
<div class="float-xs-none float-md-left">
<ul class="nav d-block d-md-flex">
<li class="nav-item">
<a class="burger-menu collapsed" href="#burger-menu" data-target="#burger-menu" data-toggle="collapse" aria-expanded="false"><span></span></a>
<div id="burger-menu" class="burger-menu__dd collapse">
<div class="burger-menu__body">
<?php burger_dt_menu('burger_menu_1'); ?>
<?php burger_dt_menu('burger_menu_2'); ?>
</div>
<div class="burger-menu__body">
</div>
</div>
</li>
<?php dt_main_menu('header_menu'); ?>
</ul>
</div>
<div class="float-xs-none float-md-right d-block d-md-flex"></div>
</div>
</div>
<!--[/dt menu]-->
</div>
<div class="col-12 col-md-8 col-lg-7 col-xl-5">
<div class="header__social clearfix">
<div class="float-xs-none float-md-left">
<a rel="noopener" class="float-xs-none float-md-left header__store" href="https://apps.apple.com/ru/app/id6476872853" target="_blank">
<img loading="lazy" src="<?= get_template_directory_uri() ?>/assets/img/px.gif" class="lazyload" data-src="<?= get_template_directory_uri() ?>/assets/img/appstore.png" width="103" height="32" alt="" />
</a>
<a rel="noopener" class="float-xs-none float-md-left header__store" href="https://play.google.com/store/apps/details?id=com.quazarteam.Profile" target="_blank">
<img loading="lazy" src="<?= get_template_directory_uri() ?>/assets/img/px.gif" class="lazyload" data-src="<?= get_template_directory_uri() ?>/assets/img/googleplay.png" width="115" height="32" alt="" />
</a>
</div>
<div class="float-xs-none float-md-right">
<ul class="header__network">
<li>
<span class="icon icon--network">
<img loading="lazy" class="lazyload" src="<?= get_template_directory_uri() ?>/assets/img/px.gif" width="111px" height="33px" data-src="<?= get_template_directory_uri() ?>/assets/img/profile-network.png" alt="" />
</span>
<ul>
<li>
<a class="icon icon--vk" href="https://vk.com/profile_magazine" target="_blank" aria-label="vk.com" rel="noopener">
<svg class="svg-icon">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#vk"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--twitter" href="https://t.me/profilejournal" target="_blank" aria-label="tlgg.ru" rel="noopener">
<svg class="svg-icon">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#telegram"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--ok" href="https://ok.ru/group/54512457482309" target="_blank" aria-label="ok.ru" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#ok"></use>
</svg>
</a>
</li>
<!--li>
<a class="icon icon--youtube" href="https://www.youtube.com/channel/UC9guqBrNYZd1uDNFHzG3UUA" target="_blank" aria-label="youtube.com" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#youtube"></use>
</svg>
</a>
</li-->
<li>
<a class="icon icon--mt" href="https://mirtesen.profile.ru/" target="_blank" aria-label="mirtesen.profile.ru" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#mt"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--seldon-news" href="https://news.myseldon.com/ru/source/4347477" target="_blank" aria-label="news.myseldon.com" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#seldon-news"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--google-news" href="/news/">
<img loading="lazy" class="lazyload" src="<?= get_template_directory_uri() ?>/assets/img/px.gif" data-src="<?= get_template_directory_uri() ?>/assets/img/n_news.png" width="30px" height="30px" />
</a>
</li>
<li>
<a class="icon icon--feedly" href="https://feedly.com/i/subscription/feed%2Fhttp%3A%2F%2Fwww.profile.ru%2Frss%2Farticles%2Fall" target="_blank" aria-label="feedly.com" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#feedly"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--mobilnye-prilozheniya" href="https://profile.ru/mobilnye-prilozheniya" target="_blank" aria-label="Profile App">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#profil_app_icon"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--flipboard" href="https://flipboard.com/@profile_ru/profile-ru-o8ldu3sly?from=share" target="_blank" aria-label="flipboard.com" rel="noopener">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#flipboard"></use>
</svg>
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</header>
<main class="main">
<?php if(!wp_is_mobile() && !is_branding() && 1==2): ?>
<?php
if (!defined('MAX_PATH')){
define('MAX_PATH', '/var/www/revive');
}
if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
if (!isset($phpAds_context)) {
$phpAds_context = array();
}
$phpAds_raw = view_local('', 48, 0, 0, '', '', '0', $phpAds_context, '');
echo $phpAds_raw['html'];
}
?>
<?php endif; ?>
<?php dynamic_sidebar( 'top_sidebar' ); ?>
<div class="container-fluid">
<?php if(wp_is_mobile()): ?>
<style>
.tablet--logo {display:none;}
@media (min-width: 992px) {
.header.isSticky .logo {
display:none!important;
}
.header.isSticky .tablet--logo {
display:inline-block;
position:absolute;
left:60px;
top:13px;
z-index:100;
}
.alm-reveal .row .col-12 {
width:100%!important;
}
div[id*="adfox_"] {
overflow:hidden;
display:none!important;
}
}
</style>
<?php endif; ?>