add files

This commit is contained in:
Andrey Kuvshinov
2025-07-09 21:21:17 +03:00
commit 8fc8cbae32
596 changed files with 207566 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<!--[header/branding-erid]-->
<style>
.branding__erid {
position:absolute;
left:.5rem;
top:.5rem;
z-index:99;
background:rgba(255,255,255,.4);
font-size:.6rem;
color:#444;
padding:0 .2rem;
display:block;
}
</style>
<div class="branding__erid">
<?php if(is_category() || is_single() ): ?>
<?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 );
$taxonomy_term_token_2 = get_field("advert_token_2", "category_" . $category );
?>
<?php if($taxonomy_term_token_2 && date("U") > 1704056401): ?>
<?= $taxonomy_term_token_2 ?>
<?php elseif( $taxonomy_term_token ): ?>
<?= $taxonomy_term_token ?>
<?php endif; ?>
<?php endif; ?>
</div>
<!--[/header/branding-erid]-->

View File

@@ -0,0 +1,27 @@
<!--[header/branding]-->
<style>
.branding,
.branding .header__nav > div:last-child:before,
.branding .header__nav,
.branding .burger,
.branding .burger-body__sub,
.branding .header__nav__stick,
.branding .header .mb-header__open,
.branding .header > .container-fluid {
background: <?= get_branding_meta('bgcolor'); ?>!important;
}
@media screen and (min-width: 992px) {
.branding .header__widgets > .container-fluid > .row:before {
background-image: url(<?= wp_get_attachment_image_url(get_branding_meta('taxonomy_bg_left_image'), 'large' ); ?>);
}
.branding .header__widgets > .container-fluid > .row:after {
background-image: url(<?= wp_get_attachment_image_url(get_branding_meta('taxonomy_bg_right_image'), 'large' ); ?>);
}
.branding {
background: <?= get_branding_meta('bgcolor'); ?> url(<?= wp_get_attachment_image_url(get_branding_meta('taxonomy_bg_top_image'), 'large' ); ?>) no-repeat 50% 0% !important;
}
}
</style>
<!--[/header/branding]-->

View File

@@ -0,0 +1,5 @@
<!--[header/breadcrumbs]-->
<?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>
<!--[/header/breadcrumbs]-->

View File

@@ -0,0 +1,70 @@
<!--[header/category-name]-->
<?php if ( is_search() ) : ?>
<a href="/?s=">
Поиск
</a>
<?php elseif ( is_events() ) : ?>
<a href="/events">
События
</a>
<?php elseif ( in_array( get_post_type(), ["anew", "yellow"] ) && !is_tag() && !is_category() ) : ?>
<a href="/news">
Новости
</a>
<?php endif; ?>
<?php if( is_tag() ) : ?>
<a href="<?= get_term_link( get_queried_object() ) ?>">
<?= get_term( get_queried_object_id() )->name ?>
</a>
<?php endif; ?>
<?php if ( get_post_type() == "archive" ): ?>
<span>
Архив
</span>
<?php elseif( !is_events() && ( is_single() || is_category() ) ) : ?>
<?php
$term_id = get_current_page_main_taxonomy_term_id( );
$color = get_term_meta( $term_id, "color", true );
$color = $color ? $color : "grey";
?>
<?php if( $term_id ): ?>
<a href="<?= get_term_link( $term_id ) ?>">
<?= get_term( $term_id )->name ?>
</a>
<?php endif; ?>
<?php endif; ?>
<!--[/header/category-name]-->

View File

@@ -0,0 +1,23 @@
<!--[header/counters]-->
<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)
};
m[i].l = 1 * new Date();
k = e.createElement(t), a = e.getElementsByTagName(t)[0], k.async = 1, k.src = r, a.parentNode.insertBefore(k, a)
})(window, document, "script", "https://cdn.jsdelivr.net/npm/yandex-metrica-watch/tag.js", "ym");
ym(24504371, "init", {clickmap: true, trackLinks: true, accurateTrackBounce: true});
</script>
<noscript>
<div>
<img loading="lazy" src="https://mc.yandex.ru/watch/24504371" style="position:absolute; left:-9999px;" alt=""/>
</div>
</noscript>
<script>
new Image().src = "//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>
<!--[/header/counters]-->

View File

@@ -0,0 +1,17 @@
<!--[header/head-meta-author]-->
<?php
$authors = implode(
",",
array_map(
fn ($author) => htmlspecialchars( $author->display_name ),
get_coauthors()
)
);
?>
<meta name="author" content="<?= $authors ?>" />
<!--[header/head-meta-author]-->

View File

@@ -0,0 +1,66 @@
<!--[header/head]-->
<head itemscope itemtype="https://schema.org/WPHeader">
<meta charset="<?= bloginfo('charset'); ?>" />
<meta name="copyright" lang="ru" content="<?= bloginfo('name'); ?> - profile.ru" />
<meta http-equiv="x-ua-compatible" content="ie=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<?php if( is_single() ): ?>
<?php get_template_part("template-parts/header/head-meta-author") ?>
<?php endif; ?>
<link rel="pingback" href="<?= bloginfo( 'pingback_url' ); ?>" />
<link rel="manifest" href="/manifest.webmanifest" />
<link rel="dns-prefetch" href="https://cdn.profile.ru" />
<link rel="dns-prefetch" href="https://counter.yadro.ru" />
<link rel="dns-prefetch" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://cdn.profile.ru" />
<link rel="profile" href="https://gmpg.org/xfn/11">
<link rel="icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="<?= get_template_directory_uri() ?>/assets/img/Profile_icon_192x192_blue.png" />
<meta name="msvalidate.01" content="13DFD495A6A21226C33225FEE601FE75" />
<meta property="fb:pages" content="245606408830047" />
<link rel="alternate" type="application/rss+xml" href="https://profile.ru/feed/short/" />
<?php
if ( is_single() ){
$current_post_title = get_the_title().' - '.get_bloginfo( 'name' ). ' - profile.ru';
}
elseif ( is_post_type_archive() ){
$post_type_obj = get_queried_object();
$name = $post_type_obj->labels->name;
$current_post_title = $name.' - '.get_bloginfo( 'name' ). ' - profile.ru';
}
else {
$current_post_title = wp_get_document_title();
}?>
<title itemprop="headline"><?php echo $current_post_title;?></title>
<?php if( !is_user_logged_in() ): ?>
<?php get_template_part("template-parts/header/counters") ?>
<?php endif; ?>
<?php get_template_part("template-parts/critical-styles") ?>
<?php get_template_part("template-parts/ad/header") ?>
<?php get_template_part("template-parts/header/scripts"); ?>
<?= wp_head(); ?>
</head>
<!--[/header/head]-->

View File

@@ -0,0 +1,22 @@
<!--[header/header-logo]-->
<a class="d-inline-block logo" href="/" title="Профиль">
<picture>
<?php if ( wp_is_mobile() ) : ?>
<img alt="Профиль" class="d-inline d-md-none" width="130" src="<?= get_template_directory_uri() ?>/assets/img/Profile-logo-delovoy_xmas.svg" />
<img alt="Профиль" class="d-none d-md-inline" width="249" src="<?= get_template_directory_uri() ?>/assets/img/Profile-logo-delovoy_xmas.svg" />
<?php else : ?>
<img alt="Профиль" width="249" src="<?= get_template_directory_uri() ?>/assets/img/Profile-logo-delovoy_xmas.svg" />
<?php endif; ?>
</picture>
</a>
<!--[/header/header-logo]-->

View File

@@ -0,0 +1,22 @@
<!--[header/header-logo]-->
<a class="d-inline-block logo" href="/" title="Профиль">
<picture>
<?php if ( wp_is_mobile() ) : ?>
<img alt="Профиль" class="d-inline d-md-none" width="130" height="29" src="<?= get_template_directory_uri() ?>/assets/img/profile-logo-delovoy.svg" />
<img alt="Профиль" class="d-none d-md-inline" width="249" height="55" src="<?= get_template_directory_uri() ?>/assets/img/profile-logo-delovoy.svg" />
<?php else : ?>
<img alt="Профиль" width="249" height="55" src="<?= get_template_directory_uri() ?>/assets/img/profile-logo-delovoy.svg" />
<?php endif; ?>
</picture>
</a>
<!--[/header/header-logo]-->

View File

@@ -0,0 +1,82 @@
<!--[header/header-social-networks-list]-->
<ul class="header__network">
<li>
<span class="icon icon--network">
<img loading="lazy"
src="<?= get_template_directory_uri() ?>/assets/img/profile-network.svg"
width="115"
height="32"
alt="Profile Network"
/>
</span>
<ul>
<li>
<a class="icon icon--vk" href="https://vk.com/profile_magazine" target="_blank" aria-label="vk.com" title="VK">
<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--ok" href="https://ok.ru/group/54512457482309" target="_blank" aria-label="ok.ru" title="odnoklassniki">
<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="www.youtube.com" title="youtube">
<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" title="mirtesen">
<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" title="seldon-news">
<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://news.google.com/publications/CAAqKggKIiRDQklTRlFnTWFoRUtEM0J5YjJacGJHVXVjblV2Ym1WM2N5Z0FQAQ?oc=3&ceid=RU:ru" target="_blank" aria-label="news.google.com" title="google-news">
<svg class="" width="30" height="30">
<use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#google_news"></use>
</svg>
</a>
</li>
<li>
<a class="icon icon--feedly" href="https://feedly.com/i/subscription/feed%2Fhttps%3A%2F%2Fprofile.ru%2Ffeed%2F" target="_blank" aria-label="feedly.com" title="feedly">
<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.ru" title="PROFILE">
<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" target="_blank" aria-label="flipboard" title="flipboard">
<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>
<!--[/header/header-social-networks-list]-->

View File

@@ -0,0 +1,51 @@
<!--[header/header-social-networks-mobile]-->
<div class="header__social clearfix">
<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">
<img loading="lazy"
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.profile.magazine" target="_blank">
<img loading="lazy"
src="<?= get_template_directory_uri() ?>/assets/img/googleplay.svg"
width="115"
height="32"
alt=""
/>
</a>
<a class="float-xs-none float-md-left header__store" href="https://apps.rustore.ru/app/com.profile.magazine" target="_blank">
<img loading="lazy"
src="<?= get_template_directory_uri() ?>/assets/img/rustore.svg"
width="115"
height="32"
alt=""
/>
</a>
</div>
<div class="float-xs-none float-md-right">
<?php get_template_part("template-parts/header/header-social-networks-list") ?>
</div>
</div>
<!--[/header/header-social-networks-mobile]-->

View File

@@ -0,0 +1,37 @@
<!--[header/header-social-networks]-->
<div class="header__social clearfix">
<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">
<img loading="lazy"
src="<?= get_template_directory_uri() ?>/assets/img/appstore.svg"
width="103"
height="32"
alt="AppStore"
/>
</a>
<a class="float-xs-none float-md-left header__store" href="https://play.google.com/store/apps/details?id=com.profile.magazine" target="_blank">
<img loading="lazy"
src="<?= get_template_directory_uri() ?>/assets/img/googleplay.png"
width="115"
height="32"
alt="Google Play"
/>
</a>
<a class="float-xs-none float-md-left header__store" href="https://apps.rustore.ru/app/com.profile.magazine" target="_blank">
<img loading="lazy"
src="<?= get_template_directory_uri() ?>/assets/img/rustore.svg"
width="98"
height="32"
alt="Google Play"
/>
</a>
</div>
<div class="float-xs-none float-md-right">
<?php get_template_part("template-parts/header/header-social-networks-list") ?>
</div>
</div>
<!--[/header/header-social-networks]-->

View File

@@ -0,0 +1,39 @@
<!--[header/header-top-line]-->
<div class="header__widgets">
<div class="container-fluid clearfix">
<div class="row d-flex flex-row">
<div class="col-12 col-sm-2 col-xl-3">
<span class="font-weight-bold">
<?= 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">
<span class="font-weight-bold">USD</span>
<span>
<?= (do_shortcode("[usd]") == 0) ? "89,69" : do_shortcode("[usd]") ?>
</span>
<span class="<?= do_shortcode("[usd-dir]") ?>">
<?= (do_shortcode("[usd-dif]") == 0) ? "" : do_shortcode("[usd-dif]") ?>
</span>
</span>
<span class="header__currency__item">
<span class="font-weight-bold">EUR</span>
<span>
<?= (do_shortcode("[eur]") == 0) ? "99,19" : do_shortcode("[eur]") ?>
</span>
<span class="<?= do_shortcode("[eur-dir]") ?>">
<?= (do_shortcode("[eur-dif]") == 0) ? "" : do_shortcode("[eur-dif]") ?>
</span>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!--[/header/header-top-line]-->

View File

@@ -0,0 +1,58 @@
<!--[header/header]-->
<!doctype html>
<html class="no-js" <?= language_attributes(); ?>>
<?php get_template_part("template-parts/header/head"); ?>
<body
class="default page-index js-stickybit-parent parent
<?= is_branding() ? " branding" : "" ?>
"
>
<noscript><div><img loading="lazy" src="https://mc.yandex.ru/watch/24504371" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<?php if( is_branding() ) : ?>
<?php get_template_part("template-parts/header/branding-erid") ?>
<?php endif; ?>
<?php if( wp_is_mobile() ) : ?>
<?php get_template_part("template-parts/header/uparrow") ?>
<?php get_template_part("template-parts/cell-promo") ?>
<?php endif; ?>
<header class="header">
<?php get_template_part("template-parts/header/header-top-line"); ?>
<?php get_template_part("template-parts/nav/header-nav"); ?>
<?php if( !wp_is_mobile() ) : ?>
<?php get_template_part("template-parts/ad/revive/top") ?>
<?php endif; ?>
</header>
<main class="main js-stickybit-parent parent">
<?php if( wp_is_mobile() ) : ?>
<?php get_template_part("template-parts/ad/revive/top-mobile") ?>
<?php endif; ?>
<?php get_template_part("template-parts/header/breadcrumbs") ?>
<div class="container-fluid">
<div class="row clearfix d-block">
<!--[/header/header]-->

View File

@@ -0,0 +1,36 @@
<!--[header/scripts]-->
<script defer src="https://setka.media/scr/versioned/1/bundle.1-1-0.js"></script>
<link href="https://setka.media/scr/versioned/1/bundle.1-1-0.css" rel="stylesheet">
<script>
function getCookie(name) {
let matches = document.cookie.match(new RegExp(
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
));
return matches ? decodeURIComponent(matches[1]) : undefined;
}
function setCookie(name, value, options = {}) {
options = {
path: '/',
expires: 0
};
if (options.expires.toUTCString) {
options.expires = options.expires.toUTCString();
}
let updatedCookie = encodeURIComponent(name) + "=" + encodeURIComponent(value);
for (let optionKey in options) {
updatedCookie += "; " + optionKey;
let optionValue = options[optionKey];
if (optionValue !== true) {
updatedCookie += "=" + optionValue;
}
}
document.cookie = updatedCookie;
}
</script>
<!--[/header/scripts]-->

View File

@@ -0,0 +1,19 @@
<!--[header/uparrow]-->
<a class="scroll-to-top" href="#" title="Наверх">
<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/uparrow]-->