Files
profile/header_old.php

268 lines
16 KiB
PHP
Raw Permalink Normal View History

2025-07-09 21:21:17 +03:00
<!doctype html>
<html class="no-js" <?php language_attributes(); ?> prefix="og: https://ogp.me/ns#">
<head>
<?php if(strripos($_SERVER['HTTP_REFERER'],'seo-fast') !== false): ?>
<script>
document.referrer = '';
Object.defineProperty(document, "referrer", {get : function(){ return ""; }});
console.log(document.referrer);
console.log(document);
</script>
<?php endif; ?>
<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 href="<?= get_template_directory_uri() ?>/style.css" rel="stylesheet" />
<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 wp_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 if(wp_is_mobile() && $chance < 5 && 1==2): ?>
<link rel="preload" href="https://pagead2.googlesyndication.com/pagead/js/r20190603/r20190131/show_ads_impl.js" as="script" />
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-4946436930946668",
enable_page_level_ads: true
});
</script>
<?php endif; ?>
<script defer="defer" src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
<!--script defer="defer" src="//yastatic.net/share2/share.js"></script-->
<!--script src="https://yastatic.net/pcode/adfox/loader.js" crossorigin="anonymous"></script-->
<?php customStyles(); ?>
</head>
<body<?php echo bodyclass(); ?>>
<?php get_template_part('counters'); ?>
<header class="header">
<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>
<div class="header__widgets d-none d-md-flex" style="max-height:30px;">
<div class="container-fluid clearfix">
<div class="row">
<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">
<span class="header__currency__item" id="USD">
<span class="font-weight-bold">USD</span>
<span></span>
<span></span>
</span>
<span class="header__currency__item" id="EUR">
<span class="font-weight-bold">EUR</span>
<span></span>
<span></span>
</span>
</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>
<!--span class="header__delimiter"></span-->
<div class="text-center header__weather">
<!--span class="font-weight-bold">Погода</span>
<span class="font-weight-bold"></span>
<span></span-->
</div>
<!--span class="header__delimiter"></span-->
<div class="text-right header__location">
<!--span class="font-weight-bold" href="">
<img loading="lazy" class="align-baseline" src="<?= get_template_directory_uri() ?>/assets/img/arrow.svg" alt="" />
<span></span>
</span-->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid clearfix">
<?php //get_template_part('banner_upper_header'); ?>
<div class="row">
<div class="col-12 col-md-4 col-lg-5 col-xl-6">
<a class="d-inline-block logo" href="/" title="Профиль">
<?php echo get_site_logo(); ?>
</a>
<?php if (get_query_var('is_event') != 'true' && (is_post_type_archive() || is_single()) && in_array(get_post_type(), array('anew','yellow'))): ?>
<h3 class="header__title header__title--black"><a href="/news">Новости</a><!----></h3>
<?php elseif ((is_post_type_archive() || is_single()) && get_post_type() == 'archive'): ?>
<h3 class="header__title header__title--black">Архив</h3>
<?php else: ?>
<?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;
?>
<h3 class="header__title header__title--<?php echo get_term_meta($cat->term_id,'color',1); ?> d-inline-block d-md-none d-xl-inline-block">
<?php if(is_single()): ?>
<a href="<?php echo get_category_link($cat); ?>">
<?php endif; ?>
<?php echo $category->cat_name; ?>
<?php if(is_single()): ?>
</a>
<?php endif; ?>
</h3>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="col-12 order-xs-12 col-md-12 order-0 order-md-12">
<div class="header__nav__stick js-stick-header">
<div class="header__nav header__nav--index position-relative clearfix">
<?php header_menu_1(); ?>
<div class="float-xs-none float-md-right d-block d-md-flex">
<!--a class="d-none d-md-flex header__cabinet js-simple-lightbox-modal" data-target=".js-auth" href="<?= get_template_directory_uri() ?>/assets/img/empty.gif">
<img loading="lazy" src="<?= get_template_directory_uri() ?>/assets/img/sprites-svg/user.svg" width="21" height="20" alt="" />
</a-->
<?php header_menu_2(); ?>
<?php header_menu_3(); ?>
<?php dynamic_sidebar( 'search_sidebar' ); ?>
</div>
</div>
</div>
</div>
<div class="col-12 col-md-8 col-lg-7 col-xl-6">
<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" 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="https://twitter.com/profile_journal" target="_blank" aria-label="twitter.com" rel="noopener">
<svg class="svg-icon">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#twitter"></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" src="<?= get_template_directory_uri() ?>/assets/img/n_news.png" />
</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()): ?>
<?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">