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,35 @@
<!--[cell-promo]-->
<div class="cell__promo d-none">
<input class="cell__promo__close" type="checkbox" id="promo__close">
<label class="cell__promo__close" for="promo__close">
<span></span>
</label>
<input class="cell__promo__closed" type="checkbox" id="promo__closed">
<label class="cell__promo__closed" for="promo__closed">
<span></span>
</label>
<div class="cell__promo__body">
<?php get_template_part("template-parts/ad/revive/sticky-mobile") ?>
<div class="ad__close">
<?php get_template_part("template-parts/ad/adfox/ad-sticky") ?>
</div>
</div>
</div>
<!--[/cell-promo]-->

View File

@@ -0,0 +1,543 @@
<!--[ad/ad-app]-->
<style>
.cell__promo.show .ad__close__anim-one {
-webkit-animation-name: playprofile;
animation-name: playprofile;
z-index: 3
}
.cell__promo.show .ad__close__anim-two {
-webkit-animation-name: playprofile;
animation-name: playprofile;
z-index: 3
}
.cell__promo.show .ad__close__anim-three {
-webkit-animation-name: playprofile;
animation-name: playprofile;
z-index: 3
}
.ad__close {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
height: 70px;
background: -webkit-gradient(linear,left top,left bottom,from(#292a2d),to(#46474a));
background: linear-gradient(#292a2d,#46474a);
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
position: relative;
padding-bottom: 5px;
color: #fff;
font-weight: 500;
font-size: 17px;
line-height: 1.1;
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
overflow: hidden;
z-index: 3
}
.ad__close__anim-one {
-webkit-animation-delay: -2s;
animation-delay: -2s;
-webkit-animation-duration: 8s;
animation-duration: 8s;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
z-index: 3
}
.ad__close__anim-two {
-webkit-animation-delay: .7s;
animation-delay: .7s;
-webkit-animation-duration: 8s;
animation-duration: 8s;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
z-index: 3
}
.ad__close__anim-three {
-webkit-animation-delay: 3.4s;
animation-delay: 3.4s;
-webkit-animation-duration: 8s;
animation-duration: 8s;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
z-index: 3
}
.ad__close__body {
position: absolute;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
color: #fff;
font-family: Roboto,sans-serif;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-justify-content: space-around;
-ms-flex-pack: distribute;
justify-content: space-around;
height: 100%;
-webkit-transform: translate(0,-120%);
-ms-transform: translate(0,-120%);
transform: translate(0,-120%);
top: 0;
right: 0;
left: 0;
bottom: 0
}
.ad__close__body-normal {
width: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
font-size: 17px;
font-weight: 700;
line-height: 1.2;
margin: 0 15px
}
.ad__close__body-logo_full {
position: relative;
background: #be5000;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
width: 100%;
max-width: 118px;
height: 100%
}
.ad__close__body-upper {
font-size: 26px;
font-weight: 500
}
.ad__close__body-arrow {
border: solid #fff;
border-radius: 3px;
border-width: 0 3px 3px 0;
display: inline-block;
padding: 12px;
-webkit-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
transform: rotate(-45deg)
}
.ad__close__body-social {
width: 100%;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between
}
#promo__close:checked~.cell__promo__close {
display: none
}
#promo__close:checked~.cell__promo__closed {
display: inline-block
}
#promo__close:checked~#promo__close {
opacity: 0!important
}
#promo__close:checked~#promo__closed {
opacity: 0!important
}
input#promo__close {
-webkit-transform: scale(0);
-ms-transform: scale(0);
transform: scale(0)
}
#promo__closed:checked~.cell__promo__body {
-webkit-animation: remove .5s linear 0s 1 normal forwards;
animation: remove .5s linear 0s 1 normal forwards
}
#promo__closed:checked~.cell__promo__closed {
-webkit-animation: btn_close .2s linear 0s 1 normal forwards;
animation: btn_close .2s linear 0s 1 normal forwards
}
@-webkit-keyframes btn_close {
0% {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0)
}
100% {
opacity: 0;
-webkit-transform: translateY(25px);
transform: translateY(25px)
}
}
@keyframes btn_close {
0% {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0)
}
100% {
opacity: 0;
-webkit-transform: translateY(25px);
transform: translateY(25px)
}
}
@-webkit-keyframes btn_closed {
0% {
-webkit-transform: scale(0);
transform: scale(0);
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%
}
100% {
-webkit-transform: scale(0);
transform: scale(0);
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%
}
}
@keyframes btn_closed {
0% {
-webkit-transform: scale(0);
transform: scale(0);
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%
}
100% {
-webkit-transform: scale(0);
transform: scale(0);
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%
}
}
@-webkit-keyframes btn_open {
50% {
opacity: 1
}
}
@keyframes btn_open {
50% {
opacity: 1
}
}
@-webkit-keyframes remove {
0% {
opacity: 1;
max-height: 200px
}
50% {
opacity: 0;
max-height: 50px;
padding: 0 100px
}
100% {
opacity: 0;
max-height: 0;
padding: 0 0
}
}
@keyframes remove {
0% {
opacity: 1;
max-height: 200px
}
50% {
opacity: 0;
max-height: 50px;
padding: 0 100px
}
100% {
opacity: 0;
max-height: 0;
padding: 0 0
}
}
.my-05 {
margin: 2px 0
}
@-webkit-keyframes playlogo {
from {
-webkit-transform: translate(0,-120%);
transform: translate(0,-120%)
}
35% {
-webkit-transform: translate(0,32%);
transform: translate(0,32%)
}
70% {
-webkit-transform: translate(0,-12%);
transform: translate(0,-12%)
}
to {
-webkit-transform: translate(0,0);
transform: translate(0,0)
}
}
@keyframes playlogo {
from {
-webkit-transform: translate(0,-120%);
transform: translate(0,-120%)
}
35% {
-webkit-transform: translate(0,32%);
transform: translate(0,32%)
}
70% {
-webkit-transform: translate(0,-12%);
transform: translate(0,-12%)
}
to {
-webkit-transform: translate(0,0);
transform: translate(0,0)
}
}
@-webkit-keyframes playtelegram {
0% {
-webkit-transform: translate(0,-130%);
transform: translate(0,-130%)
}
15% {
-webkit-transform: translate(0,-130%);
transform: translate(0,-130%)
}
25% {
-webkit-transform: translate(0,-125%);
transform: translate(0,-125%)
}
50% {
-webkit-transform: translate(0,0);
transform: translate(0,0)
}
75% {
-webkit-transform: translate(0,125%);
transform: translate(0,125%)
}
85% {
-webkit-transform: translate(0,130%);
transform: translate(0,130%)
}
100% {
-webkit-transform: translate(0,130%);
transform: translate(0,130%)
}
}
@keyframes playtelegram {
0% {
-webkit-transform: translate(0,-130%);
transform: translate(0,-130%)
}
15% {
-webkit-transform: translate(0,-130%);
transform: translate(0,-130%)
}
25% {
-webkit-transform: translate(0,-125%);
transform: translate(0,-125%)
}
50% {
-webkit-transform: translate(0,0);
transform: translate(0,0)
}
75% {
-webkit-transform: translate(0,125%);
transform: translate(0,125%)
}
85% {
-webkit-transform: translate(0,130%);
transform: translate(0,130%)
}
100% {
-webkit-transform: translate(0,130%);
transform: translate(0,130%)
}
}
@-webkit-keyframes playprofile {
0% {
-webkit-transform: translate(0,-120%);
transform: translate(0,-120%)
}
15% {
-webkit-transform: translate(0,-120%);
transform: translate(0,-120%)
}
25% {
-webkit-transform: translate(0,-110%);
transform: translate(0,-110%)
}
50% {
-webkit-transform: translate(0,0);
transform: translate(0,0)
}
75% {
-webkit-transform: translate(0,110%);
transform: translate(0,110%)
}
85% {
-webkit-transform: translate(0,120%);
transform: translate(0,120%)
}
100% {
-webkit-transform: translate(0,120%);
transform: translate(0,120%)
}
}
@keyframes playprofile {
0% {
-webkit-transform: translate(0,-120%);
transform: translate(0,-120%)
}
15% {
-webkit-transform: translate(0,-120%);
transform: translate(0,-120%)
}
25% {
-webkit-transform: translate(0,-110%);
transform: translate(0,-110%)
}
50% {
-webkit-transform: translate(0,0);
transform: translate(0,0)
}
75% {
-webkit-transform: translate(0,110%);
transform: translate(0,110%)
}
85% {
-webkit-transform: translate(0,120%);
transform: translate(0,120%)
}
100% {
-webkit-transform: translate(0,120%);
transform: translate(0,120%)
}
}
</style>
<div class="ad__close__body ad__close__anim-one">
<a href="https://profile.ru/mobilnye-prilozheniya/" class="ad__close__body-logo_full">
<img src="<?= get_template_directory_uri() ?>/assets/img/profil-logo-footer.png" width="100" height="22" alt="">
</a>
<span class="ad__close__body-normal">Новое бесплатное мобильное приложение </span>
</div>
<div class="ad__close__body ad__close__anim-two">
<a href="https://profile.ru/mobilnye-prilozheniya/">
<img class="ad__close__body-logo-mini" src="<?= get_template_directory_uri() ?>/assets/img/red-logo.png" width="50" height="50" alt="">
</a>
<span class="ad__close__body-upper">СКАЧАЙ И ЧИТАЙ</span>
<span class="ad__close__body-arrow"></span>
</div>
<div class="ad__close__body ad__close__anim-three">
<a href="https://profile.ru/mobilnye-prilozheniya/"><img src="<?= get_template_directory_uri() ?>/assets/img/red-logo.png" width="50" height="50" alt="" class="ad__close__body-logo-mini"></a>
<a target="_blank" href="https://apps.apple.com/ru/app/%D0%B6%D1%83%D1%80%D0%BD%D0%B0%D0%BB-%D0%BF%D1%80%D0%BE%D1%84%D0%B8%D0%BB%D1%8C/id6476872853"><img src="<?= get_template_directory_uri() ?>/assets/img/appstore.png" width="116" height="38" alt=""></a>
<a target="_blank" href="https://play.google.com/store/apps/details?id=com.profile.magazine"><img src="<?= get_template_directory_uri() ?>/assets/img/googleplay.png" width="116" height="38" alt=""></a>
</div>
<!--[ad/ad-app]-->

View File

@@ -0,0 +1,35 @@
<!--[ad/ad-telegram]-->
<a class="d-flex justify-content-between telegram__close" href="https://t.me/+UWaoZHn10B7DD94T" target="_blank">
<span class="cell__promo__logo">
<img loading="lazy" src="<?= get_template_directory_uri() ?>/assets/img/sprites-svg/profile-news.svg" width="47" height="52" alt="" />
</span>
<div class="cell__promo__text">
<p>
Наш Telegram-канал - новости, которые нельзя пропустить (без рекламы)
</p>
<div class="cell__promo__telegram">
<img loading="lazy" src="<?= get_template_directory_uri() ?>/assets/img/sprites-svg/telegram-white.svg" width="40" height="40" alt="" />
<span class="flex">
ПОДПИСАТЬСЯ
</span>
</div>
</div>
</a>
<!--[ad/ad-telegram]-->

View File

@@ -0,0 +1,57 @@
<!--[ad/adfox/ad-inlist-1]-->
<?php if(wp_is_mobile()): ?>
<?php if((int)get_option('show_ad') == 1): ?>
<?php if($_SERVER['HTTP_SIDE'] === 'gprofile'): ?>
<!-- /176990977/profile_ru/mobile_list1 -->
<div id='div-gpt-ad-1672142322541-0' style='min-width: 300px; min-height: 250px;'>
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1672142322541-0'); });
</script>
</div>
<?php else: ?>
<?php $rand = rand() . date("U"); ?>
<div class="d-block d-md-none col-12 col-md-4 col-xl-3 pb-4 float-left" data-typeitem="ad">
<!--montemedia-->
<!--Площадка: profile.ru / mobile / mobile_list1-->
<!--Категория: <не задана>-->
<!--Тип баннера: 300x250--new-->
<div id="adfox_163361799690442230_<?=$rand?>"></div>
<script>
window.yaContextCb.push(() => {
Ya.adfoxCode.create({
ownerId: 242477,
containerId: 'adfox_163361799690442230_<?=$rand?>',
params: {
p1: 'cgvgl',
p2: 'gket'
}
})
})
</script>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<!--[/ad/adfox/ad-inlist-1]-->

View File

@@ -0,0 +1,57 @@
<!--[ad/adfox/ad-inlist-2]-->
<?php if(wp_is_mobile()): ?>
<?php if((int)get_option('show_ad') == 1): ?>
<?php if($_SERVER['HTTP_SIDE'] === 'gprofile'): ?>
<!-- /176990977/profile_ru/mobile_list1 -->
<div id='div-gpt-ad-1672142322541-0' style='min-width: 300px; min-height: 250px;'>
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1672142322541-0'); });
</script>
</div>
<?php else: ?>
<?php $rand = rand() . date("U"); ?>
<div class="d-block d-md-none col-12 col-md-4 col-xl-3 pb-4" data-typeitem="ad">
<!--montemedia-->
<!--Площадка: profile.ru / mobile / mobile_list2-->
<!--Категория: <не задана>-->
<!--Тип баннера: 300x250--new-->
<div id="adfox_163361803623368908_<?=$rand?>"></div>
<script>
window.yaContextCb.push(() => {
Ya.adfoxCode.create({
ownerId: 242477,
containerId: 'adfox_163361803623368908_<?=$rand?>',
params: {
p1: 'cgvgm',
p2: 'gket'
}
})
})
</script>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<!--[/ad/adfox/ad-inlist-2]-->

View File

@@ -0,0 +1,57 @@
<!--[ad/adfox/ad-inlist-3]-->
<?php if(wp_is_mobile()): ?>
<?php if((int)get_option('show_ad') == 1): ?>
<?php if($_SERVER['HTTP_SIDE'] === 'gprofile'): ?>
<!-- /176990977/profile_ru/mobile_list1 -->
<div id='div-gpt-ad-1672142322541-0' style='min-width: 300px; min-height: 250px;'>
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1672142322541-0'); });
</script>
</div>
<?php else: ?>
<?php $rand = rand() . date("U"); ?>
<div class="d-block d-md-none col-12 col-md-4 col-xl-3 pb-4 float-left" data-typeitem="ad">
<!--montemedia-->
<!--Площадка: profile.ru / mobile / mobile_list3-->
<!--Категория: <не задана>-->
<!--Тип баннера: 300x250--new-->
<div id="adfox_163361811589116320_<?=$rand?>"></div>
<script>
window.yaContextCb.push(() => {
Ya.adfoxCode.create({
ownerId: 242477,
containerId: 'adfox_163361811589116320_<?=$rand?>',
params: {
p1: 'cgvgn',
p2: 'gket'
}
})
})
</script>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<!--[/ad/adfox/ad-inlist-3]-->

View File

@@ -0,0 +1,57 @@
<!--[ad/adfox/ad-inread-1]-->
<?php if(wp_is_mobile()): ?>
<?php if((int)get_option('show_ad') == 1): ?>
<?php if($_SERVER['HTTP_SIDE'] === 'gprofile'): ?>
<!-- /176990977/profile_ru/mobile_inread-1 -->
<div id='div-gpt-ad-1670423201900-0' style='min-width: 300px; min-height: 250px;'>
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1670423201900-0'); });
</script>
</div>
<?php else: ?>
<div class="d-block d-md-none">
<?php $rand = rand() . date("U"); ?>
<!--montemedia-->
<!--Площадка: profile.ru / mobile / mobile_inread1-->
<!--Категория: <не задана>-->
<!--Тип баннера: 300x250--new-->
<div id="adfox_163361814963248588_<?=$rand?>"></div>
<script>
window.yaContextCb.push(() => {
Ya.adfoxCode.create({
ownerId: 242477,
containerId: 'adfox_163361814963248588_<?=$rand?>',
params: {
p1: 'cgvtf',
p2: 'gket'
}
})
})
</script>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<!--[/ad/adfox/ad-inread-1]-->

View File

@@ -0,0 +1,57 @@
<!--[ad/adfox/ad-inread-2]-->
<?php if(wp_is_mobile()): ?>
<?php if((int)get_option('show_ad') == 1): ?>
<?php if($_SERVER['HTTP_SIDE'] === 'gprofile'): ?>
<!-- /176990977/profile_ru/mobile_inread-2 -->
<div id='div-gpt-ad-1670425550124-0' style='min-width: 300px; min-height: 250px;'>
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1670425550124-0'); });
</script>
</div>
<?php else: ?>
<div class="d-block d-md-none">
<?php $rand = rand() . date("U"); ?>
<!--montemedia-->
<!--Площадка: profile.ru / mobile / mobile_inread2-->
<!--Категория: <не задана>-->
<!--Тип баннера: 300x250--new-->
<div id="adfox_163361817982441077_<?=$rand?>"></div>
<script>
window.yaContextCb.push(()=>{
Ya.adfoxCode.create({
ownerId: 242477,
containerId: 'adfox_163361817982441077_<?=$rand?>',
params: {
p1: 'cgvth',
p2: 'gket'
}
})
})
</script>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<!--[/ad/adfox/ad-inread-2]-->

View File

@@ -0,0 +1,57 @@
<!--[ad/adfox/ad-inread-3]-->
<?php if(wp_is_mobile()): ?>
<?php if((int)get_option('show_ad') == 1): ?>
<?php if($_SERVER['HTTP_SIDE'] === 'gprofile'): ?>
<!-- /176990977/profile_ru/mobile_inread-2 -->
<div id='div-gpt-ad-1670425550124-0' style='min-width: 300px; min-height: 250px;'>
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1670425550124-0'); });
</script>
</div>
<?php else: ?>
<div class="d-block d-md-none">
<?php $rand = rand() . date("U"); ?>
<!--montemedia-->
<!--Площадка: profile.ru / mobile / mobile_inread2-->
<!--Категория: <не задана>-->
<!--Тип баннера: 300x250--new-->
<div id="adfox_163361817982441077_<?=$rand?>"></div>
<script>
window.yaContextCb.push(()=>{
Ya.adfoxCode.create({
ownerId: 242477,
containerId: 'adfox_163361817982441077_<?=$rand?>',
params: {
p1: 'cgvth',
p2: 'gket'
}
})
})
</script>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<!--[/ad/adfox/ad-inread-3]-->

View File

@@ -0,0 +1,33 @@
<!--[ad/adfox/ad-sticky]-->
<?php if( wp_is_mobile() ) : ?>
<?php if((int)get_option('show_ad') == 1): ?>
<!--montemedia-->
<!--Площадка: profile.ru / mobile / mobile top-->
<!--Категория: <не задана>-->
<!--Тип баннера: Перетяжка 100%-->
<div id="adfox_163361795989236806"></div>
<script>
window.yaContextCb.push(()=>{
Ya.adfoxCode.create({
ownerId: 242477,
containerId: 'adfox_163361795989236806',
params: {
p1: 'cmatl',
p2: 'y'
}
})
})
</script>
<?php endif; ?>
<?php endif; ?>
<!--[/ad/adfox/ad-sticky]-->

View File

@@ -0,0 +1,5 @@
<!--[ad/adfox/header]-->
<script>window.yaContextCb = window.yaContextCb || []</script>
<!--[/ad/adfox/header]-->

View File

@@ -0,0 +1,33 @@
<!--[ad/google/header]-->
<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();
});
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();
});
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();
});
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>
<!--[ad/google/header]-->

View File

@@ -0,0 +1,13 @@
<!--[ad/header]-->
<?php if($_SERVER['HTTP_SIDE'] === 'gprofile'): ?>
<?php get_template_part("template-parts/ad/google/header") ?>
<?php else: ?>
<?php get_template_part("template-parts/ad/adfox/header") ?>
<?php endif; ?>
<!--[/ad/header]-->

View File

@@ -0,0 +1,9 @@
<!--[ad/revive/ad(zone => <?= $args["zone"] ?>)]-->
<?php
$show_on_mobile = is_null($args["show_on_mobile"]) ? false : $args["show_on_mobile"];
?>
<?= get_banner_by_zone_id($args["zone"], $show_on_mobile) ?>
<!--[/ad/revive/ad(zone => <?= $args["zone"] ?>)]-->

View File

@@ -0,0 +1,30 @@
<!--[ad/revive/sticky-mobile]-->
<?php
$html = load_template_part("template-parts/ad/revive/ad", "", [ "zone" => 13, "show_on_mobile" => true ]);
?>
<?php if( mb_strlen( $html ) !== 0 && substr_count( $html, "<img") > 1 ) : ?>
<div class="container-fluid clearfix position-relative text-center pt-0 pb-3">
<div class="position-relative mx-auto" style="max-width:1040px">
<?= $html ?>
</div>
</div>
<?php else: ?>
<?php get_template_part("template-parts/ad/ad-app") ?>
<?php endif; ?>
<!--[/ad/revive/sticky-mobile]-->

View File

@@ -0,0 +1,24 @@
<!--[ad/revive/top-mobile]-->
<?php
$html = load_template_part("template-parts/ad/revive/ad", "", [ "zone" => 11, "show_on_mobile" => true ]);
?>
<?php if( mb_strlen( $html ) !== 0 && substr_count( $html, "<img") > 1 ) : ?>
<div class="container-fluid clearfix position-relative text-center pt-0 pb-3">
<div class="position-relative mx-auto" style="max-width:1040px">
<?= $html ?>
</div>
</div>
<?php endif; ?>
<!--[/ad/revive/top-mobile]-->

View File

@@ -0,0 +1,24 @@
<!--[ad/revive/top]-->
<?php
$html = load_template_part("template-parts/ad/revive/ad", "", [ "zone" => 11, "show_on_mobile" => false ]);
?>
<?php if( mb_strlen( $html ) !== 0 && substr_count( $html, "<img") > 1 ) : ?>
<div class="container-fluid clearfix position-relative text-center pt-0">
<div class="position-relative mx-auto" style="max-width:1040px">
<?= $html ?>
</div>
</div>
<?php endif; ?>
<!--[/ad/revive/top]-->

View File

@@ -0,0 +1,22 @@
<!--[archive/ajax-load-more]-->
<?php if( is_post_type_archive() ) : ?>
<?php get_template_part( "template-parts/archive/ajax-load-more/post-type" ) ?>
<?php elseif( is_tag() ) : ?>
<?php get_template_part( "template-parts/archive/ajax-load-more/tag" ) ?>
<?php elseif( is_author() ) : ?>
<?php get_template_part( "template-parts/archive/ajax-load-more/author" ) ?>
<?php elseif( is_category() && !is_events() ): ?>
<?php get_template_part( "template-parts/archive/ajax-load-more/category" ) ?>
<?php endif; ?>
<!--[/archive/ajax-load-more]-->

View File

@@ -0,0 +1,57 @@
<!--[archive/ajax-load-more/author]-->
<?php
$author = get_coauthors()[0];
$terms = [
get_term_by( 'slug', 'cap-' . $author->user_nicename, "author" )->slug,
get_term_by( 'slug', 'cap-' . $author->linked_account, "author" )->slug
];
$terms = array_filter($terms);
$taxonomy = implode (
":",
array_map(
fn ($node) => "author",
$terms
)
);
$operator = implode (
":",
array_map(
fn ($node) => "IN",
$terms
)
);
$terms = implode(
":",
$terms
);
$index_alm_shortcode = '
[ajax_load_more
cache="true"
cache_id="' . get_alm_cache_id() . date("U") . '"
container_type="div"
css_classes="row"
post_type="profile_article,anew,yellow"
repeater="template_23"
posts_per_page="10"
post_format="standard"
offset="8"
id="archive"
taxonomy="' . $taxonomy . '"
taxonomy_terms="' . $terms . '"
taxonomy_operator="' . $operator . '"
taxonomy_relation="OR"
]';
echo do_shortcode( $index_alm_shortcode );
?>
<!--[/archive/ajax-load-more/author]-->

View File

@@ -0,0 +1,24 @@
<!--[archive/ajax-load-more/category]-->
<?php
$index_alm_shortcode = '
[ajax_load_more
cache="true"
cache_id="' . get_alm_cache_id( get_queried_object()->term_id ) . '"
container_type="div"
css_classes="row"
post_type="profile_article,anew,yellow"
repeater="template_23"
posts_per_page="10"
post_format="standard"
offset="8"
id="archive"
category="' . get_queried_object()->slug . '"
]';
echo do_shortcode( $index_alm_shortcode );
?>
<!--[/archive/ajax-load-more/category]-->

View File

@@ -0,0 +1,3 @@
<!--[archive/ajax-load-more/event]-->
<!--TODO:это потом-->
<!--[/archive/ajax-load-more/event]-->

View File

@@ -0,0 +1,23 @@
<!--[archive/ajax-load-more/post-type-grid]-->
<?php
$index_alm_shortcode = '
[ajax_load_more
cache="true"
cache_id="' . get_alm_cache_id( 23 ) . '"
container_type="div"
css_classes="row"
post_type="profile_article"
repeater="template_23"
posts_per_page="10"
post_format="standard"
offset="8"
id="archive"
]';
echo do_shortcode( $index_alm_shortcode );
?>
<!--[/archive/ajax-load-more/post-type-grid]-->

View File

@@ -0,0 +1,22 @@
<!--[archive/ajax-load-more/post-type-list]-->
<?php
$index_alm_shortcode = '
[ajax_load_more
cache="true"
cache_id="' . get_alm_cache_id( 24 ) . '"
container_type="div"
post_type="anew,yellow"
repeater="template_24"
posts_per_page="10"
post_format="standard"
offset="8"
id="archive"
]';
echo do_shortcode( $index_alm_shortcode );
?>
<!--[/archive/ajax-load-more/post-type-list]-->

View File

@@ -0,0 +1,13 @@
<!--[archive/ajax-load-more/post-type]-->
<?php if( get_post_type() === "profile_article" ) : ?>
<?php get_template_part("template-parts/archive/ajax-load-more/post-type-grid") ?>
<?php else : ?>
<?php get_template_part("template-parts/archive/ajax-load-more/post-type-list") ?>
<?php endif; ?>
<!--[/archive/ajax-load-more/post-type]-->

View File

@@ -0,0 +1,24 @@
<!--[archive/ajax-load-more/tag]-->
<?php
$index_alm_shortcode = '
[ajax_load_more
cache="true"
cache_id="' . get_alm_cache_id() . '"
container_type="div"
css_classes="row"
post_type="profile_article,anew,yellow"
repeater="template_23"
posts_per_page="10"
post_format="standard"
offset="8"
id="archive"
tag="' . get_queried_object()->slug . '"
]';
echo do_shortcode( $index_alm_shortcode );
?>
<!--[/archive/ajax-load-more/tag]-->

View File

@@ -0,0 +1,19 @@
<!--[archive/cell-image]-->
<?php if( has_post_thumbnail() ) : ?>
<img loading="lazy"
src="<?= the_post_thumbnail_url($args["wide"] && !wp_is_mobile() ? "large" : "post-thumbnail"); ?>"
alt="<?= htmlspecialchars( get_the_title() ) ?>"
/>
<?php else : ?>
<img loading="lazy"
src="<?= wp_get_attachment_image_url( 1357368, $args["wide"] && !wp_is_mobile() ? "large" : "post-thumbnail"); ?>"
alt="<?= htmlspecialchars( get_the_title() ) ?>"
/>
<?php endif; ?>
<!--[archive/cell-image]-->

View File

@@ -0,0 +1,45 @@
<!--[archive/cell(wide => <?= $args["wide"] ?>)]-->
<?php global $wp_query; ?>
<div class="col-12 col-md-4 col-xl-<?= $args["wide"] ? 8 : 4 ?> float-left">
<?php //get_template_part("template-parts/micro/post"); ?>
<div class="article cell">
<a class="article__frame <?= $args["wide"] ? "article__frame--wide" : "" ?>" href="<?= the_permalink() ?>">
<?php get_template_part("template-parts/archive/cell-image"); ?>
</a>
<?php get_template_part("template-parts/post/cell-sticker"); ?>
<div class="article__body">
<?php get_template_part("template-parts/post/cell-date"); ?>
<h2>
<a class="article__title" href="<?= the_permalink() ?>">
<?= the_title() ?>
</a>
</h2>
<div class="article__detail">
<?php get_template_part("template-parts/post/cell-author"); ?>
</div>
</div>
</div>
</div>
<!--[/archive/cell(wide => <?= $args["wide"] ?>)]-->

View File

@@ -0,0 +1,50 @@
<!--[archive/event-cell(wide => <?= $args["wide"] ?>)]-->
<div class="col-12 col-md-4 col-xl-<?= $args["wide"] ? 8 : 4 ?> float-left"
itemscope
<?php if( get_post_type() == "profile_article"): ?>
itemtype="https://schema.org/Article"
<?php else: ?>
itemtype="https://schema.org/NewsArticle"
<?php endif; ?>
>
<?php get_template_part("template-parts/micro/post"); ?>
<div class="article cell">
<a class="article__frame <?= $args["wide"] ? "article__frame--wide" : "" ?>" href="<?= the_permalink() ?>">
<img loading="lazy"
itemprop="image"
src="<?= the_post_thumbnail_url($args["wide"] && !wp_is_mobile() ? "large" : "post-thumbnail"); ?>"
alt="<?= htmlspecialchars( get_the_title() ) ?>"
/>
</a>
<?php get_template_part("template-parts/post/cell-sticker"); ?>
<div class="article__body">
<?php get_template_part("template-parts/post/event-cell-date"); ?>
<a class="article__title" href="<?= the_permalink() ?>">
<?= the_title() ?>
</a>
<div class="article__detail">
<?php get_template_part("template-parts/post/cell-author"); ?>
</div>
</div>
</div>
</div>
<!--[archive/event-cell(wide => <?= $args["wide"] ?>)]-->

View File

@@ -0,0 +1,47 @@
<!--[archive/grid]-->
<div class="row clearfix d-block">
<?php global $wp_query; ?>
<!--
<?= $wp_query->request ?>
-->
<?php if( have_posts() ) : ?>
<?php while( have_posts() ) : ?>
<?php the_post(); ?>
<?php if( is_events() ) : ?>
<?php get_template_part("template-parts/archive/event-cell", "", ["wide" => in_array( $wp_query->current_post, [ 4, 8, 14 ] ) ]); ?>
<?php else : ?>
<?php get_template_part("template-parts/archive/cell", "", ["wide" => in_array( $wp_query->current_post, [ 4, 8, 14 ] ) ]); ?>
<?php if ( wp_is_mobile() && $wp_query->current_post%3 === 0 ) : ?>
<?php get_template_part("template-parts/ad/adfox/ad-inlist-1"); ?>
<?php endif; ?>
<?php endif; ?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part("template-parts/no-posts"); ?>
<?php endif; ?>
</div>
<!--[/archive/grid]-->

View File

@@ -0,0 +1,33 @@
<!--[archive/header]-->
<?php if( is_events() ) : ?>
<?php get_template_part( "template-parts/archive/header/event" ) ?>
<?php elseif( is_branding() ) : ?>
<?php get_template_part( "template-parts/archive/header/special/branding" ) ?>
<?php elseif( (is_special()) ) : ?>
<?php get_template_part( "template-parts/archive/header/special/", get_special_slug() ) ?>
<?php elseif( is_post_type_archive() ) : ?>
<?php get_template_part( "template-parts/archive/header/post-type" ) ?>
<?php elseif( is_tag() ) : ?>
<?php get_template_part( "template-parts/archive/header/tag" ) ?>
<?php elseif( is_author() ) : ?>
<?php get_template_part( "template-parts/archive/header/author" ) ?>
<?php else: ?>
<?php get_template_part( "template-parts/archive/header/category" ) ?>
<?php endif; ?>
<!--[/archive/header]-->

View File

@@ -0,0 +1,83 @@
<!--[archive/header/author]-->
<?php
$email = str_replace("-", ".", get_post_meta(get_queried_object_id(), 'cap-user_login', true))."@news-profile.ru";
?>
<?php if( get_post_meta( get_queried_object_id() , 'show_data', true) == 1 ) : ?>
<div class="author position-relative">
<div class="position-relative d-flex flex-column flex-md-row" itemscope="" itemtype="https://schema.org/Person">
<div class="text-center text-md-left">
<?= get_the_post_thumbnail( get_queried_object() ) ?>
</div>
<div class="d-flex flex flex-column align-items-center align-items-md-start justify-content-between">
<div class="author__body d-flex flex flex-column align-items-center align-items-md-start justify-content-center">
<h1 class="author__title mt-3 mt-md-0 mb-2 mb-md-2" itemprop="name" lang="ru">
<?= get_queried_object()->display_name ?>
</h1>
<div class="author__post text-center text-md-left py-1 py-md-0 mb-4 mb-md-0">
<a href="mailto:<?= $email ?>" itemprop="email">
<?= $email ?>
</a>
</div>
<div class="author__post text-center text-md-left py-1 py-md-0 mb-4 mb-md-0" itemprop="description">
<div style="margin-top: 8px;"><?= wpautop( get_queried_object()->description ); ?></div>
</div>
<div class="author__post text-center text-md-left py-1 py-md-0 mb-4 mb-md-0" itemprop="url">
<?php echo get_profile_website_link( get_queried_object()->website );?>
</div>
</div>
</div>
</div>
</div>
<?php else: ?>
<div class="position-relative d-flex flex-column flex-md-row mb-4" itemscope itemtype="https://schema.org/Person">
<div class="d-flex flex flex-column align-items-center align-items-md-start justify-content-between">
<div class="author__body d-flex flex flex-column align-items-center align-items-md-start justify-content-center">
<h1 class="author__title mt-3 mt-md-0 mb-2 mb-md-2" itemprop="name" lang="ru">
<?= get_queried_object()->display_name ?>
</h1>
</div>
</div>
</div>
<?php endif; ?>
<!--[/archive/header/author]-->

View File

@@ -0,0 +1,44 @@
<!--[archive/header/category]-->
<?php if( !is_in_dk() ) : ?>
<div class="mb-4 position-relative">
<?php get_template_part("template-parts/ad/revive/ad", "", [ "zone" => 12 ]) ?>
</div>
<?php endif; ?>
<?php if( wp_is_mobile() ) : ?>
<?php
$term_id = get_current_page_main_taxonomy_term_id( );
$color = get_term_meta( $term_id, "color", true );
$color = $color ? $color : "grey";
?>
<div class="col-12 col-md-6 col-xl-4 float-left">
<div class="section__title section__title--<?= $color ?> d-block d-md-none mb-3">
<?= get_term( get_queried_object_id() )->name ?>
</div>
</div>
<?php else : ?>
<div class="col-12 col-md-6 col-xl-4 float-left">
<?= str_replace("<p></p>", "", term_description( get_queried_object()->term_id )); ?>
</div>
<?php endif; ?>
<!--[/archive/header/category]-->

View File

@@ -0,0 +1,13 @@
<!--[archive/header/event]-->
<div class="d-flex justify-content-start align-items-center mb-3">
<h1 class="fs-32 font-weight-bold">
Календарь событий
</h1>
</div>
<!--[/archive/header/event]-->

View File

@@ -0,0 +1,17 @@
<!--[archive/header/post-type]-->
<?php if ( wp_is_mobile() || 1==1 ) : ?>
<div class="col-12 d-block d-md-none mb-3">
<div class="section__title section__title--orange">
<?= get_queried_object()->label ?>
</div>
</div>
<?php endif; ?>
<!--[/archive/header/post-type]-->

View File

@@ -0,0 +1,9 @@
<!--[archive/header/special/branding]-->
<div class="col-12">
<?= str_replace("<p></p>", "", term_description( get_queried_object()->term_id )); ?>
</div>
<!--[/archive/header/special/branding]-->

View File

@@ -0,0 +1,3 @@
<!--[archive/header/special/special-mamleev]-->
<!--TODO:Проверить, надо ли и сделать, если надо-->
<!--[/archive/header/special/special-mamleev]-->

View File

@@ -0,0 +1,92 @@
<!--[archive/header/tag]-->
<?php
$thumbnail_id = get_term_meta( get_queried_object_id(), "term_thumbnail", true );
$term_description = term_description( get_queried_object_id() );
$rkn_meta = get_term_meta( get_queried_object_id(), "rkn_disclaimer", true );
?>
<?php if( $thumbnail_id ): ?>
<div class="tag">
<div class="tag__body position-relative">
<?= wp_get_attachment_image_html($thumbnail_id, false, false, 1200); ?>
<div class="tag-main">
<h1 class="tag__body__title">
<img loading="lazy" src="/wp-content/themes/profile/assets/img/news/item/subtract.svg" alt="">
<?= get_term( get_queried_object_id() )->name ?>
</h1>
<?php if ( $term_description ) : ?>
<div class="tag__body__text d-none d-md-block">
<?= $term_description; ?>
</div>
<?php endif; ?>
</div>
</div>
<?php if ( $term_description ) : ?>
<div class="container-fluid tag-mobile__text tag__body__text d-md-none">
<?= $term_description; ?>
</div>
<?php endif; ?>
</div>
<?php else : ?>
<div class="profile_onenews mb-4">
<div class="profile_onenews__title h2">
<svg class="align-baseline svg-icon" width="36" height="37"><use xlink:href="/wp-content/themes/profile/assets/img/sprites-svg/dist/sprite.svg#tag"></use></svg>
<?= get_term( get_queried_object_id() )->name ?>
</div>
<?php if ( $term_description ) : ?>
<div class="newstag__body__text d-none d-md-block">
<?= $term_description; ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if($rkn_meta): ?>
<div class="mt-2 mb-4 col-12">
<em>
<?= get_rkn_disclaimer_for_tags($rkn_meta, get_term( get_queried_object_id() )->name); ?>
</em>
</div>
<?php endif; ?>
<!--[/archive/header/tag]-->

View File

@@ -0,0 +1,59 @@
<!--[archive/list-item]-->
<?php global $wp_query; ?>
<div class="newslist__item">
<?php //get_template_part("template-parts/micro/post"); ?>
<div class="d-flex">
<?php if ( has_post_thumbnail() && show_post_thumbnail() ) : ?>
<a class="newslist__frame" href="<?= the_permalink() ?>">
<img loading="lazy"
src="<?= the_post_thumbnail_url("thumb-320"); ?>"
alt="<?= htmlspecialchars( get_the_title() ) ?>"
width="224"
height="138" />
</a>
<?php endif; ?>
<div>
<div class="newslist__body">
<h2 class="newslist__title" style="font-weight:700">
<a href="<?= the_permalink() ?>">
<?= the_title() ?>
</a>
</h2>
<a href="<?= the_permalink() ?>" class="d-none d-md-block mb-4">
<?= get_first_paragraph() ?>
</a>
</div>
<div class="publication__data">
<?php get_template_part("template-parts/post/list-item-date") ?>
<?php get_template_part("template-parts/post/list-item-author") ?>
</div>
</div>
</div>
</div>
<!--[/archive/list-item]-->

View File

@@ -0,0 +1,54 @@
<!--[archive/list]-->
<?php global $wp_query; ?>
<?php if( have_posts() ) : ?>
<?php
$counter = 0;
while( have_posts() ) :
$counter++;
?>
<?php the_post(); ?>
<?php get_template_part("template-parts/archive/list-item", "", ["counter" => $counter]); ?>
<?php if ( wp_is_mobile() && $wp_query->current_post%3 ) : ?>
<div class="newslist__item clearfix">
<?php get_template_part("template-parts/ad/adfox/ad-inlist-2"); ?>
</div>
<?php endif; ?>
<?php endwhile; ?>
<div class="pagination">
<?php
echo paginate_links(array(
'base' => str_replace(999999999, '%#%', esc_url(get_pagenum_link(999999999))),
'format' => '?paged=%#%',
'current' => max(1, get_query_var('paged')),
'total' => $wp_query->max_num_pages,
'prev_text' => '&laquo;',
'next_text' => '&raquo;',
'type' => 'plain',
'add_args' => false,
'add_fragment' => '',
));
?>
</div>
<?php else : ?>
<?php get_template_part("template-parts/no-posts"); ?>
<?php endif; ?>
<!--[/archive/list]-->

View File

@@ -0,0 +1,41 @@
<!--[cell-promo]-->
<div class="cell__promo d-none">
<input class="cell__promo__close" type="checkbox" id="promo__close">
<label class="cell__promo__close" for="promo__close">
<span></span>
</label>
<input class="cell__promo__closed" type="checkbox" id="promo__closed">
<label class="cell__promo__closed" for="promo__closed">
<span></span>
</label>
<div class="cell__promo__body">
<div class="ad__close">
<?php get_template_part("template-parts/ad/revive/sticky-mobile") ?>
</div>
<div class="ad__close">
<?php get_template_part("template-parts/ad/adfox/ad-sticky") ?>
</div>
</div>
</div>
<!--[/cell-promo]-->
<style>
#promo__close:checked ~ .cell__promo__body > .ad__close:first-child {
-webkit-animation: remove .5s linear 0s 1 normal forwards;
animation: remove .5s linear 0s 1 normal forwards
}
#promo__closed:checked ~ .cell__promo__body > .ad__close:last-child {
-webkit-animation: remove .5s linear 0s 1 normal forwards;
animation: remove .5s linear 0s 1 normal forwards
}
</style>

View File

@@ -0,0 +1,53 @@
<!--[critical-styles]-->
<?php get_template_part("template-parts/critical-styles/styles-default") ?>
<?php if( 1==1 || !wp_is_mobile() ) : ?>
<?php get_template_part("template-parts/critical-styles/styles-default-desktop") ?>
<?php endif; ?>
<?php get_template_part("template-parts/critical-styles/styles-default-mobile") ?>
<?php get_template_part("template-parts/critical-styles/styles-header") ?>
<?php if( 1==1 || is_author() ) : ?>
<?php get_template_part("template-parts/critical-styles/styles-author") ?>
<?php endif; ?>
<?php if( 1==1 || is_front_page() ) : ?>
<?php get_template_part("template-parts/critical-styles/styles-home") ?>
<?php endif; ?>
<?php if( 1==1 || is_search() ) : ?>
<?php get_template_part("template-parts/critical-styles/styles-search") ?>
<?php endif; ?>
<?php if( 1==1 || is_single() ) : ?>
<?php get_template_part("template-parts/critical-styles/styles-single") ?>
<!--TODO: когда сделаю галерею, ксску выводить только если галерея есть в посте-->
<?php get_template_part("template-parts/critical-styles/styles-single-gallery") ?>
<?php endif; ?>
<?php if( 1==1 || is_tag() ) : ?>
<?php get_template_part("template-parts/critical-styles/styles-tag") ?>
<?php endif; ?>
<!--[/critical-styles]-->

View File

@@ -0,0 +1,94 @@
<!--[critical-styles/styles-404]-->
<style>
.error-404 .searchform {
max-width: 29.25rem;
margin-left: auto;
margin-right: auto;
position: relative;
}
.error-404 .searchform input[type="text"],
.error-404 .searchform input[type="search"] {
height: 2rem;
border-width: 1px;
padding: 0.3125rem 0.625rem;
}
input[type="text"],
input[type="search"] {
background: #fff;
width: 100%;
font-size: 0.75rem;
color:#505258;
border: solid #C0C0C0;
border-width: 1px 0;
padding: 0.3125rem 0;
height: 2rem;
}
.searchform {
position: absolute;
top: 0;
left: 0;
right: 0;
margin: .6875rem 0 0
}
.searchform__btn {
background: 0 0;
position: absolute;
right: 0;
border: 0 none;
padding: .3125rem;
width: 1.875rem;
height: 1.875rem;
line-height: 2.3125rem;
display: flex;
justify-content: center;
align-items: center;
z-index: 2
}
.searchform__btn svg {
flex: 1 0 auto;
}
.searchform input[type=search] {
z-index: 1
}
.searchform__btn svg:first-child {
display: none;
}
.searchform__btn svg:last-child {
display: block;
}
.searchform__btn svg:first-child:last-child {
display: block;
}
.error-404 {
max-width: 37.5rem;
text-align: center;
font-size: 1.125rem;
margin-left: auto;
margin-right: auto;
margin-bottom: 5rem;
}
.error-404__content {
margin: 1.625rem 0 0;
}
.error-404__content p {
margin: 0 0 1.25rem;
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
.searchform input[type=search] {
font-size: 1rem
}
}
@media (min-width: 768px) and (max-width: 992px) {
.searchform {
position: relative;
margin: 0.4375rem 0 0;
}
}
</style>
<!--[/critical-styles/styles-404]-->

View File

@@ -0,0 +1,31 @@
<!--[critical-styles/styles-author]-->
<style>
.author .profile_onenews__picture img {
max-width: 196px;
width: 196px;
max-height: 196px;
height: 196px;
}
@media (min-width: 768px) and (max-width: 992px) {
.author__img {
margin-right: 30px;
}
}
@media (min-width: 768px) {
.author .profile_onenews__picture img {
margin-right: 30px;
}
}
@media (max-width: 767.98px) {
.author .profile_onenews__picture img {
margin-left: auto;
margin-right: auto;
}
.author__footer a {
margin: 0 auto;
}
}
</style>
<!--[critical-styles/styles-author]-->

View File

@@ -0,0 +1,140 @@
<!--[critical-styles/styles-default-desktop]-->
<style>
.profile_onenews p, .profile_onenews li, .profile_onenews td {
font-size: 1.125rem;
line-height: 1.6;
}
.profile_onenews ul {
margin-top: 1rem;
}
.profile_onenews ul li {
margin-bottom: 1rem;
}
.attention {
list-style: none;
border-left: 2px solid #B51D1D;
margin: 0 0 8px 0!important;
padding: 0 0 0 8px;
line-height: 1.2;
font-size: 12px!important;
font-style: italic;
}
figure figcaption p {
font-size: 0.875rem!important;
}
figure figcaption span {
line-height: 1.6;
}
.header .logo {
width: 15.5625rem;
}
.header__widgets {
background: #303030;
padding: 0.4375rem 0;
white-space: nowrap;
z-index: 100;
}
.header__widgets,
.header__widgets a {
color: #fff;
}
.header__widgets > .row > .col-12 {
transition: all 0.35s;
}
.header__currency .up {
color: #45C707;
}
.header__currency .down {
color: #B61D1D;
}
.header__currency__item > span + .header__currency__item > span {
margin-left: 0.3125rem;
}
.header__currency__item > span:first-child {
margin-right: 0.625rem;
}
.header__weather > span {
margin: 0 0.3125rem;
}
.header__delimiter {
border-width: 0 1px 0 0;
border-style: solid;
}
@media (min-width: 992px) {
.profile_onenews {
padding: 0 4.375rem 0 0;
}
}
@media (min-width: 768px) {
div.profile_onenews {
line-height: 1.6;
}
.header__network {
position: relative;
width: 6.625rem;
max-width: 6.625rem;
padding-left: 10px;
display: inline-table;
border-radius: 5px;
transform-style: preserve-3d;
perspective: 200px;
z-index: 4;
}
.header__network .icon {
display: block;
}
.header__network .icon--network {
min-width: 111px;
}
.header__network > li {
cursor: pointer;
list-style: none;
}
.header__network > li:hover > ul {
transition:all 200ms ease-in-out 0ms;
transform:rotateX(0deg);
box-shadow: 4px 6px 10px rgba(0, 0, 0, 0.1);
opacity: 1.0;
}
.header__network ul {
background: #ececec;
position: absolute;
right: 0;
width: 9.375rem;
max-width: 9.375rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
opacity: 0.0;
z-index: 10;
padding: 0.4375rem 0.5625rem 0.625rem;
transition: all 200ms ease-in-out 200ms;
transform: rotateX(-90deg);
transform-origin: 0% 0%;
backface-visibility: hidden;
box-shadow: 0 -50px 250px rgba(0, 0, 0, 0);
}
.header__network ul li {
display: flex;
justify-content: center;
margin: 0 7px 0;
}
.header__network ul li .icon {
margin: 0.5rem 0 0.4375rem;
}
.header .isSticky .logo {
width: 144px;
height: auto;
position: absolute;
left: 60px;
bottom: -75px;
max-width: none;
}
}
</style>
<!--[/critical-styles/styles-default-desktop]-->

View File

@@ -0,0 +1,888 @@
<!--[critical-styles/styles-default-ьщишду]-->
<style>
@media (min-width: 768px) and (max-width: 992px){
.header__network {
margin-bottom: 12px;
}
.logo {
height: 60px;
}
.header > .container-fluid {
padding-top: 10px;
}
#menuD:checked~.toggle-menu span, #menuM:checked~.toggle-menu span {
top: 23px;
left: 12px;
}
#sub_burgerD:checked ~ .burger-body__sub {
display: block;
position: absolute;
top: -445px;
left: 260px;
background: #f6f6f6;
}
}
#readanother {
padding: 0 10px 0;
}
#readanother strong {
font-family: 'Roboto';
font-size: 14px;
line-height: 1;
color: #B51D1D;
text-transform: uppercase;
margin: 0 0 12px 0;
}
#readanother ul {
padding-left: 0;
}
#readanother li {
list-style: none;
border-left: 6px solid #B51D1D;
margin: 0 0 20px 0;
padding: 0 0 0 10px;
line-height: 0;
}
#readanother li a {
font-family: 'Roboto';
font-weight: bold;
font-size: 14px;
line-height: 1.2;
color: #000000;
text-decoration: none;
}
.mr-3 a {
display: inline-block;
padding: 0.4375rem 0.5rem;
margin-bottom: 0.9375rem;
background: #ececec;
border: 0 none;
border-radius: 2px;
font-family: "Roboto", sans-serif;
font-size: .75rem;
line-height: 1;
font-weight: 700;
}
#menuM:checked ~ .background_checked {
width: 200%;
display: block;
height: 49px;
background: #f6f6f6;
position: absolute;
z-index: 10;
}
.cell__promo {
position: fixed;
bottom: 0;
left: 0;
right: 0;
max-height: 100%;
z-index: 999;
transition: all 0.65s;
transform: translate(0, 150%);
}
.blog {
background: #ECECEC;
flex: 1;
display: flex;
min-height: 9.875rem;
margin: 0 0 1.875rem;
border-radius: 6px;
}
.blog__frame> img {
display: block;
height: 100%;
max-height: 9.875rem;
width: auto;
max-width: none;
position: relative;
}
.publication__data {
display: flex;
line-height: 1.1;
color:#505258;
}
.profile_onenews {
margin: 0 0 1.875rem;
}
.tags-list {
font-size: 0.875rem;
}
.tags-list {
font-size: 0.875rem;
}
@media (min-width: 576px) {
.tab-pane {
max-width: unset!important;
margin: 0!important;
}
}
@media (max-width: 767.98px) {
.profile_onenews .profile_onenews__title {
font-size: 1.4375rem!important;
}
figure figcaption p {
font-size: 0.75rem!important;
color:#505258!important;
line-height: 1.2!important;
}
.burger {
position: fixed!important;
padding: 50px 40px 0 16px;
border: none;
box-shadow: none;
width: 100%;
height: 100%;
overflow: scroll;
}
.right-side{
display: none;
}
.blog__detail {
margin-top: 0.625rem;
color: #000;
}
.news__body, .news__body__inner, .news__body>div {
height: 100%!important;
max-height: 100%!important;
}
.news__tabs .nav-item:last-child {
display: none;
}
.news__tabs .nav-item:first-child {
width: 100%;
}
.news__tabs .nav-item:first-child .nav-link {
border-radius: 6px 6px 0 0!important;
}
.toggle-menu:after, .news__body:after {
display: none;
}
.header__network .icon--network {
display: none;
}
.header__widgets {
display: none;
}
.burger::-webkit-scrollbar {
display: none
}
.article.cell--main {
border: 0;
margin: 0
}
.col-12 .d-flex .d-flex .d-block {
width: 42px;
height: 49px;
}
.cell,
.cell--main {
height: auto!important;
max-height: none!important;
}
.cell {
margin: 0 0 1.25rem!important;
min-height: 264px;
}
.article.cell:not(.cell--main) {
border-radius: 0;
border-bottom: 1px solid #C0C0C0;
}
.article.cell.cell--main {
border: 0;
margin: 0!important;
}
.article a,
.article a.sticker--white {
color: #000;
}
.article a.sticker:not(.sticker--white) {
color: #FFF;
}
.article--main .article__title {
font-size: 1.25rem;
font-weight: 700;
line-height: 1.2;
}
.article__data {
font-size: 0.75rem;
font-weight: 400;
color: #000;
}
.article .article__author {
font-size: 0.75rem;
font-weight: 400;
margin-top: 0;
margin-right: 8px;
}
.article__body {
position: relative;
background: transparent;
padding: 0.4375rem 0 1.25rem 0;
}
.article__frame{
border-radius: 6px;
overflow: hidden;
}
.article__frame > img {
width: 100%;
max-width: 100%;
min-width: 100%;
min-height: 100%;
height: auto;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.article__frame--wide > img {
transform: translate(-50%, -50%);
}
.article__frame:before {
content: '';
display: block;
padding-top: 56%;
}
.article__frame > img {
position: absolute;
}
.footer__copyright {
display: block;
text-align: center;
margin: 15px 0 0;
}
.nav-footer{
display: block;
}
.nav-footer-item{
margin-bottom: 8px;
line-height: 1.8;
font-size: 18px;
}
.blog {
flex-direction: column;
}
.blog__frame {
margin: 20px auto auto;
}
.blog__frame > img {
max-height: none;
min-width: 100%;
height: auto;
border-radius: 6px;
max-width: 100%;
}
.blog__title {
padding-bottom: 0!important;
}
.blog__body {
padding: 0.9375rem;
}
.separator_line {
width: 100%;
}
.arrow {
border: solid black;
border-width: 0 2px 2px 0;
display: inline-block;
padding: 5px;
position: absolute;
top: 17px;
right: 10px;
transform: rotate(45deg);
transition: .25s;
}
.burger-body__sub a {
border-bottom: none;
border-left: none;
display: block;
padding: 0.75rem 0.875rem;
transition: all .25s;
color: #505050;
}
.burger-menu a, .burger-menu label span:first-child {
font-size: 1.25rem;
}
.toggle-menu span {
z-index: 10;
}
.main {
padding-top: 3.9375rem;
}
.header__store {
max-width: 5.625rem;
max-height: 1.625rem;
margin: 0 0 1.75rem;
}
.header__store:last-child {
max-width: 6rem;
}
.header__network {
margin-bottom: 3.125rem;
}
.header__network ul {
display: flex;
flex-wrap: wrap;
}
.header__network ul li {
margin:0 1.5625rem 0.9375rem 0;
}
.header .header__nav .float-md-left {
flex: 1;
overflow: hidden;
}
.header .header__nav .float-md-right {
display: none!important;
}
.header .header__nav .nav {
font-size: 0;
height: 3.75rem;
white-space: nowrap;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.header .header__nav .nav .nav-link {
font-size: 0.875rem;
font-weight: 500;
line-height: 1.2;
padding: 0.9375rem 1.5625rem 0.9375rem 0;
}
.header .header__nav .nav .nav-item {
display: inline-block;
vertical-align: middle;
}
.header {
background: white;
position: fixed!important;
top: 0;
left: 0;
right: 0;
}
.header .row {
display: block;
margin: 0 -1.875rem;
}
.header .logo {
margin-top: 0;
margin-bottom: 0;
}
.header .row > .col-12:nth-child(2) {
border-top: 1px solid #C0C0C0;
border-width: 1px 0 0;
}
.header .row > .col-12:last-child,
.header .rubric,
.header .searchform {
display: none!important;
}
.header .header__nav {
padding-top: 0;
height: 3.125rem;
overflow: hidden;
}
.logo {
max-width: 8.125rem;
max-height: 1.75rem;
z-index: 12;
}
.special {
padding: 1.875rem 0 0;
}
.partners__item.d-flex .partners__item__title {
margin: 0 0 1.25rem 1.25rem;
font-size: 1rem;
}
.partners__item.d-flex .partners__frame {
position: relative;
overflow: hidden;
min-width: 80px;
width: 80px;
height: 80px;
}
.partners__item.d-flex .partners__frame img {
position: relative;
max-width: none;
min-width: auto;
height: 100%;
width: auto;
left: 50%;
transform: translate(-50%, 0%);
}
.profile_onenews {
display: block;
margin: 0.5rem 0 0.9375rem;
}
.profile_onenews .stick .ya-share2__item {
margin: 0 0.9375rem 0.625rem 0;
}
.profile_onenews .stick:before {
content: "Поделиться:";
font-size: 0.5625rem;
color: #C0C0C0;
display: block;
margin: 0.1875rem 0;
}
.author:before {
top: 104px;
left: 0;
}
aside.aside-img {
float: none;
font-size: 1rem;
margin: 0.625rem 0;
width: 100%;
}
.newslist__body a {
margin: 0 0 1.6875rem!important;
}
.newslist__item .d-flex {
flex-direction: column;
}
.newslist__frame {
min-width: 100%;
height: auto;
max-height: none;
margin-bottom: 1.25rem;
border-radius: 6px;
overflow: hidden;
}
.newslist__frame img {
width: 100%;
}
.newslist__frame {
min-width: 100%;
height: auto;
max-height: none;
margin-bottom: 1.25rem;
border-radius: 6px;
overflow: hidden;
}
.newslist__result {
margin: 0 0 1.875rem;
}
.newslist__item {
padding: 1.0625rem 0 0.625rem;
}
.newslist__item+.newslist__item {
margin: 0;
padding: 1.0625rem 0 0.625rem;
}
.footer__copyright p {
display: block;
text-align: center;
}
.footer__delimiter,
.footer-logo-top,
.footer__logo,
.OOO_IDR {
display: none;
}
.special:before {
content: "Реклама";
font-size: 0.625rem;
color: #C0C0C0;
position: absolute;
top: 0.4375rem;
left: 50%;
transform: translate(-50%, 0);
}
.story .story__title {
font-size: 1.125rem;
font-weight: 500;
margin: 0 0 0.625rem;
}
.story img {
min-width: 100%;
width: 100%;
height: auto;
float: left;
transform: translate(0, 0);
}
.story__frame {
margin: 0 0 0.625rem;
}
#menuM:checked ~ .burger,
#menuM:checked ~ .burger-body {
display: block;
}
#menuM:checked ~ .toggle-menu::after {
top: 0;
left: 0;
background: #f6f6f6;
width: 100%;
height: 49px;
right: unset;
border: none;
z-index: 8;
}
#sub_burgerM:checked ~ .burger-body__sub {
display: block;
}
#sub_burgerM:checked ~ .toggleSubmenu .arrow {
transform: rotate(-135deg);
}
.partners__frame figure {
height: 100%;
}
}
@media (max-width: 992px) {
.right-side{
display: none;
}
.news__body:after {
position: fixed;
height: 5rem;
}
.news__body > div {
height: calc(100vh - 113px);
max-height: calc(100vh - 113px);
}
.news__body > div {
height: 516px;
max-height: 516px;
}
.header__currency__item + .header__currency__item {
margin-left: 0.625rem;
}
.footer__delimiter,
.footer-logo-top,
.footer__logo,
.OOO_IDR {
display: none;
}
.partners__item.d-flex {
height: 100%;
max-width: none;
margin: 0;
padding: 0 0 1.25rem;
}
.main {
position: relative;
z-index: 1;
flex: 1;
align-self: center;
}
.author {
padding: 0 1.25rem 1.25rem;
margin-top: 2.8125rem;
}
.author__title {
line-height: 1.25;
}
.author__post {
line-height: 1.1;
}
.ya-share2__list {
display: inline-flex;
flex-wrap: wrap;
}
.ya-share2__icon {
background-size: 1.875rem;
width: 1.875rem;
height: 1.875rem;
}
}
@media (max-width: 992px) {
body {
font-size: 0.875rem;
}
.scroll-to-top {
padding: 0.3125rem 0.3125rem 0;
border-radius: 45px 45px 4px 4px;
right: 10px;
top: 60px;
transform: translate(0, 0) scale(0);
stroke: #808080;
color:#505258;
font-size: 9px;
}
.scroll-to-top.active {
background: rgba(255, 255, 255, 0.75);
transform: translate(0, 0) scale(1);
opacity: 1;
box-shadow: 0 1px 5px 1px rgba(0, 0, 0, 0.1);
}
.scroll-to-top svg {
max-width: 30px;
max-height: 30px;
margin-bottom: 5px;
}
.news__date {
font-size: 0.75rem;
margin: 0 0 0.625rem;
}
.news__time {
font-size: 0.875rem;
line-height: 1.55;
font-weight: 500;
min-width: 3.125rem;
}
.news__name {
font-size: 1rem;
}
.sticker {
font-size: 0.625rem;
font-weight: 500;
}
.header {
z-index: 200;
position: relative;
}
.header > .container-fluid {
padding-left: 15px;
padding-right: 15px;
}
.header > .row {
padding-left: -15px;
padding-right: -15px;
}
.header__social {
float: right;
padding-top: 0.9375rem;
}
.header__widgets {
font-size: 12px;
line-height: 1.5;
}
.header__nav .nav-link {
text-align: left;
color: #000;
font-size: 0.75rem;
padding-left: 0.25rem;
padding-right: 0.25rem;
}
.searchform__btn {
padding: 0.625rem;
width: 3.375rem;
height: 3.375rem;
line-height: 1.875rem;
}
.searchform input[type="search"] {
height: 3.375rem;
}
/*.icon {
line-height: 1.9;
}*/
.main {
padding-bottom: 1.875rem;
}
.popup-special {
margin: 0 1.5rem 3.25rem 0;
}
.popup-special__inner {
width: 5.625rem;
height: 5.625rem;
padding: 0.4375rem;
}
.special {
padding: 0;
margin-bottom: 1.25rem;
}
.special--gray {
background: transparent;
}
.waypoint:before {
width: auto;
left: -0.9375rem;
right: -0.9375rem;
transform: translate(0, 0);
}
.load-btn {
display: none;
}
.related-links {
margin: 1.875rem 0 1.875rem;
}
.related-links .related-links__title {
font-size: 1rem;
}
.related-links__item-name {
font-size: 1.0625rem;
}
.profile_onenews {
font-size: 1rem;
line-height: 1.6;
}
.profile_onenews p {
margin: 0 0 1.3125rem;
}
.profile_onenews blockquote p {
margin: 0;
}
.profile_onenews .profile_onenews__title {
font-size: 2.375rem;
line-height: 1.2;
margin: 0 0 0.5rem;
}
.profile_onenews__subtitle {
font-size: 1.5rem;
line-height: 1.5;
}
.profile_onenews__body {
margin: 0;
}
.mobile-only {
display: inline-block;
}
.publication__data {
font-size: 0.75rem;
margin-bottom: 0.625rem;
}
.publication__author {
font-size: 0.75rem;
padding-left: 0.5rem;
margin-left: 0.5rem;
text-decoration: underline;
}
figure figcaption p {
font-size: 0.75rem;
line-height: 1.2;
color:#505258;
text-transform: none;
margin: 0.1875rem 0 0.3125rem!important;
}
figure figcaption {
font-size: 0.75rem;
color:#505258;
font-style: normal;
text-transform: uppercase;
padding: 0.375rem 0 0.5rem;
}
blockquote {
font-size: 1.125rem;
line-height: 25px;
margin: 2.125rem 0 1rem!important;
padding: 1.25rem 0 1.25rem 2.5rem;
}
blockquote.blockquote-img figure {
min-width: 100%;
margin: 0;
}
blockquote.blockquote-img figcaption {
font-size: 0.875rem;
}
.alignleft {
margin-right: 0;
float: none;
}
.ya-share2__list {
display: inline-flex;
flex-wrap: wrap;
}
.ya-share2__icon {
background-size: 1.875rem;
width: 1.875rem;
height: 1.875rem;
}
.search__result {
margin: 0 0 1.875rem;
}
.search__item {
padding: 1.0625rem 0 0.625rem;
}
.search__item + .search__item {
padding: 1.0625rem 0 0.625rem;
}
.section__title {
border-left: 3px solid;
padding-left: 0.625rem;
font-size: 1.25rem;
font-weight: 900;
line-height: 1.0;
}
body.branding .main {
position: relative;
}
}
@media (max-width: 1200px) {
body .main,
body .footer__inner {
max-width: 100%;
}
.read-yzd.read-yzd__bg {
background-color: #ECECEC;
margin: 0 -0.9375rem;
padding: 0.9375rem;
display: block;
}
aside.aside-img {
font-size: 1rem;
margin: 0.625rem 0;
}
.story img {
min-width: 550px;
width: 550px;
height: auto;
float: right;
}
.story__frame {
margin: 0 0 0.625rem;
}
body.branding .header__widgets {
max-width: 882px;
}
}
@media (min-width: 576px) and (max-width: 768px) {
.container-fluid {
max-width: 100%
}
}
@media (min-width: 768px) and (max-width: 992px) {
.news__date {
margin: 0 0 0.3125rem
}
.header__nav > div:first-child {
height: 3.3125rem
}
.header__nav > div:first-child .nav {
white-space: nowrap
}
.header__nav > div:first-child .nav .nav-item {
display: inline-block
}
.header > .container-fluid {
padding-left: 15px;
padding-right: 15px
}
.header .nav {
flex-wrap: nowrap
}
}
@media (min-width: 576px) and (max-width: 1200px) {
#sub_burgerD {
opacity: 0;
}
.header__nav .nav-item:first-child {
width: 42px;
}
.arrow {
border: solid black;
border-width: 0 2px 2px 0;
display: inline-block;
padding: 4px;
position: absolute;
top: 16px;
right: 4px ;
transform: rotate(-45deg);
transition: .25s;
}
}
</style>
<!--[critical-styles/styles-default-desktop]-->

View File

@@ -0,0 +1,962 @@
<!--[critical-styles/styles-default]-->
<style>
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: left;
background-color: #fff;
}
article, aside, figcaption,
figure, footer, header,
hgroup, main, nav, section {
display: block;
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
a:not([href]):not([tabindex]) {
color: inherit;
text-decoration: none;
}
img {
vertical-align: middle;
border-style: none;
}
svg {
overflow: hidden;
vertical-align: middle;
}
button,
input {
overflow: visible;
}
input[type="radio"],
input[type="checkbox"] {
box-sizing: border-box;
padding: 0;
}
input[type="checkbox"] {
-webkit-appearance: none;
opacity: 0;
position: absolute;
}
a {
color: #212529;
text-decoration: none;
background-color: transparent;
}
body {
margin: 0;
}
body,
html {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-touch-callout: none;
min-height: 100%;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
}
.col-12,
.col-sm-2,
.col-xl-3 {
position: relative;
width: 100%;
padding-right: 15px;
padding-left: 15px;
}
.row {
display: flex;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}
body {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: space-between;
}
body .footer__inner,
body .main {
width: 100%;
max-width: 1200px;
margin: auto;
}
.col-12 {
min-height: auto;
}
.d-none {
display: none !important;
}
.d-inline-block {
display: inline-block !important;
}
.d-block {
display: block !important;
}
.d-flex {
display: flex !important;
}
.flex-column {
flex-direction: column;
}
.justify-content-center {
justify-content: center !important;
}
.justify-content-between {
justify-content: space-between !important;
}
.align-items-center {
align-items: center !important;
}
.position-relative {
position: relative;
}
.text-center {
text-align: center !important;
}
.align-baseline {
vertical-align: baseline !important;
}
h1 {
font-size: 1.25rem;
line-height: 1.1;
margin: 0.375rem 0 0.375rem;
}
h1:first-child {
margin: 0 0 0.25rem;
}
h2 {
font-size: 1.25rem;
line-height: 1.1;
margin: 0.375rem 0 0.375rem;
}
h2:first-child {
margin: 0 0 0.25rem;
}
h3 {
font-size: 1.125rem;
line-height: 1.1;
font-weight: 700;
margin: 0.375rem 0 0.375rem;
}
h4 {
font-size: 1.25rem;
line-height: 1.5;
font-weight: 700;
margin: 0.375rem 0 0.375rem;
}
h4:first-child {
margin: 0 0 0.25rem;
}
h5,h6 {
font-size: 1.125rem;
line-height: 1.5;
font-weight: 700;
margin: 0.375rem 0 0.5rem;
}
h5, h6:first-child {
margin: 0 0 0.25rem;
}
.w-100 {
width: 100% !important;
}
*,::after,::before {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
border-color: #dee2e6 #dee2e6 #dee2e6!important;
}
.nav-tabs .nav-link {
margin-bottom: -1px;
background-color: #ececec!important;
border-top-left-radius: 0.25rem;
border-top-right-radius: 0.25rem;
}
.nav-tabs .nav-link.active, .nav-tabs .nav-link.active + a {
margin-bottom: -1px;
background-color: #fff!important;
border-top-left-radius: 0.25rem;
border-top-right-radius: 0.25rem;
}
/*.col-12 {
z-index: 10;
}*/
.header__nav {
background: #fff;
}
.header__nav__stick {
z-index: 15!important;
}
.header__widgets {
max-height: 30px;
}
.logo {
width: 15.5625rem;
max-width: 100%;
bottom: 0;
}
.header__social {
padding: 1.25rem 0 0;
}
.burger-menu__yellow a {
border-left-color: #ffc107
}
.burger-menu__blue a {
border-left-color: #007bff
}
.burger-menu__green a {
border-left-color: #28a745
}
.burger-menu__red a {
border-left-color: #dc3545
}
.burger-menu__orange a {
border-left-color: #fd7e14
}
.burger-menu__purple a {
border-left-color: #6f42c1
}
.burger-menu__gray a {
border-left-color: #999
}
.burger-menu__teal a {
border-left-color: #20c997
}
.burger-menu__black a {
border-left-color: #000
}
.burger-body {
padding: 0;
min-width: 15.625rem
}
.news__name {
font-size: 0.8125rem!important;
line-height: 1.2;
font-weight: 500;
color: #000;
transition: color .2s;
}
.news__list li + li {
margin: 1rem 0 0;
}
.icon {
display: inline-block;
vertical-align: middle;
border-radius: 4px;
width: 1.875rem;
height: 1.875rem;
text-align: center;
}
.icon>img {
max-width: 100%;
height: auto;
}
.icon .svg-icon {
fill: #fff;
max-height: 1.375rem;
max-width: 1.375rem;
stroke-width: 0;
pointer-events: none;
transform: translateX(0);
}
.header__currency__item>span:first-child {
margin-right: 0.625rem;
}
.burger-menu {
display: block;
position: relative;
z-index: 7;
}
.main {
position: relative;
flex: 1;
align-self: center;
}
.scroll-to-top {
font-size: 0.75rem;
stroke: #C0C0C0;
color: #C0C0C0;
display: flex;
flex-direction: column;
align-items: center;
position: fixed;
right: 50%;
opacity: 0;
padding: 5px;
border-radius: 25px 25px 2px 2px;
z-index: 200;
transform: translate(660px, 100px) scale(0);
transition: all 0.3s;
}
.scroll-to-top svg {
border-radius: 50%;
}
.scroll-to-top span {
text-shadow: 1px 1px #fff;
}
.subscribe-form input {
font-size: 10px;
color: #303030;
height: 30px;
width: 181px;
min-width: 181px;
padding: 2px 10px;
border: 1px solid #C0C0C0;
}
.subscribe-form button {
background: #303030;
border: 0;
font-size: 10px;
color: white;
border-radius: 4px;
height: 30px;
width: 88px;
min-width: 88px;
cursor: pointer;
transition: all 0.2s;
}
.flex {
flex: 1;
}
.cell {
margin: 0 0 1.875rem;
height: 264px;
}
.cell--main {
max-width: unset;
}
.cell--double {
overflow: hidden;
height: 558px;
max-height: 558px;
}
.article {
position: relative;
overflow: hidden;
display: block;
}
.article.cell {
border-radius: 6px;
}
.article__title {
font-weight: 700;
display: inline-block;
transition: opacity 0.25s;
margin-top: 0.625rem;
}
.article__detail {
min-width: 100%;
line-height: 1.1;
margin: 0.5625rem 0 0;
}
.article__data {
display: block;
line-height: 1.35;
font-size: 0.75rem;
font-weight: 500;
}
.article__author {
position: relative;
margin-right: 0.25rem;
text-decoration: underline;
font-weight: 400;
line-height: 1.2;
pointer-events: auto;
}
/*.article__author:first-child {
margin: 0;
}*/
.article,.article a {
color: #fff;
}
.article__frame {
background: #ececec;
display: block;
position: relative;
height: 100%;
border-radius: 6px;
}
.article__frame>img {
position: relative;
left: 50%;
transition: all 0.3s ease-out;
max-width: none;
height: 100%;
min-width:100%;
border-radius: 6px;
transform: translate(-50%, 0);
}
.article__frame--wide>img {
min-width: 100%;
height: auto;
top: 50%;
transform: translate(-50%, -50%);
}
.article__body {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 0.75rem 0.9375rem;
background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .6) 30%, rgba(0, 0, 0, .8));
background-repeat: no-repeat;
}
.article__title {
font-size: 1.125rem;
line-height: 1.15;
}
.article__author {
font-size: 0.75rem;
font-weight: 500;
margin-right: 5px;
}
.sticker-group {
position: absolute;
top: 0.625rem;
right: 0.625rem;
display: flex;
}
.sticker-group .sticker {
position: relative;
top: 0;
right: 0;
}
.sticker {
font-size: 0.625rem;
line-height: 1.3;
font-weight: 700;
text-transform: uppercase;
position: absolute;
top: 0.625rem;
right: 0.625rem;
transition: all 0.25s;
padding: 0.125rem 0.375rem;
}
.special {
position: relative;
overflow: hidden;
margin: 0 auto 1.875rem;
transition: all 0.20s ease-out;
}
.special a {
display: block;
}
.special img {
display: block;
max-width: 100%;
}
.special--gray {
background: #eee;
}
.footerMenu>.upDown {
position: absolute;
border-color: #fff;
border-style: solid;
border-width: 0 2px 2px 0;
transform: rotate(225deg);
height: 15px;
width: 15px;
top: 42%;
left: 49%;
cursor: pointer;
}
input.footerMenu {
opacity: 0;
}
.footer {
background: #303030;
position: fixed;
bottom: 0;
left: 0;
right: 0;
width: 100%;
min-height: 40px;
transition: all .35s;
z-index: 1;
max-width: 1200px;
margin: auto;
}
.footer,.footer a {
color: #fff;
text-decoration: none;
}
.footer-logo-top {
width: 100px;
height: 22px;
margin-top: 15px;
margin-left: 15px;
}
.OOO_IDR {
font-size: 12px;
font-weight: 400;
display: block;
line-height: 3.1;
padding: 0 1.6875rem;
position: absolute;
top: 5px;
right: 0;
}
.footer__inner {
display: none;
padding: 28px 15px 32px;
}
.footer__logo {
min-width: 136px;
width: 136px;
margin-right: 61px;
}
.footer__logo img {
position: relative;
width: 136px;
height: 30px;
transition: all .35s;
}
.footer-flex {
display: flex;
margin-top: 5px;
}
.footer__body {
position: relative;
}
.footer__age {
position: absolute;
top: 0;
right: 0;
color: #000;
text-align: center;
background: #fff;
border-radius: 50%;
width: 30px;
height: 30px;
font-size: 13px;
font-weight: 700;
line-height: 1.875rem;
}
.nav-footer {
display: flex;
flex-wrap: wrap;
padding-left: 0;
list-style: none;
font-size: 14px;
font-weight: 700;
margin: 7px 0 14px;
}
.footer__delimiter {
display: block;
height: 1px;
border-top: 1px solid #fff;
margin: 27px 0 27px;
}
.nav-footer-item {
margin-right: 20px;
}
.footer__copyright {
color:#505258!important;
}
.footer__copyright p {
font-size: 12px;
font-weight: 400;
text-align: left;
}
.footer__copyright p:first-child {
margin-bottom: 6px;
}
.footerMenu {
width: 100%;
height: 40px;
margin-bottom: 0;
}
#myFooter:checked ~ .footer__inner {
display: block;
}
#myFooter:checked ~ .footerMenu {
height: 0;
}
#myFooter:checked ~ .footerMenu>.upDown {
top: 5%;
transform: rotate(45deg);
}
/*#myFooter:checked ~ .footerMenu>.footer-logo-top {
position: absolute;
width: 136px;
height: 31px;
top: 78px;
left: 15px;
}*/
#myFooter:checked ~ .footerMenu>.footer-logo-top,
#myFooter:checked ~ .footerMenu>.OOO_IDR {
display: none;
}
.right-side{
padding: 0 0 1.875rem;
position: relative;
height: 100%;
}
.right-side .cell:last-child {
margin: 0 auto;
}
.popup-special {
background: rgba(0, 0, 0, 0.00001);
position: fixed;
bottom: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.35s;
transform-origin: right bottom;
z-index: 10;
}
.popup-special:after,.popup-special:before {
content: '+';
color: #556a43;
font-weight: 400;
font-size: 1.625rem;
line-height: 1.0;
position: absolute;
z-index: 1;
}
.popup-special:before {
top: -0.95625rem;
left: -0.5rem;
padding: 0 0.1875rem 0 0;
}
.popup-special:after {
top: -0.9625rem;
right: -0.5rem;
padding: 0 0 0 0.1875rem;
}
.popup-special img {
min-width: 100%;
transition: all 0.35s;
}
.popup-special__image {
display: none;
opacity: 0;
}
.popup-special__logo {
display: block;
opacity: 1;
}
.popup-special .popup-special__inner {
position: relative;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
transition: all 0.35s;
border: 1px dashed #556a43;
}
.popup-special .popup-special__inner:after,.popup-special .popup-special__inner:before {
content: '+';
color: #556a43;
font-weight: 400;
font-size: 1.625rem;
line-height: 1.0;
position: absolute;
z-index: 1;
}
.popup-special .popup-special__inner:before {
bottom: -0.625rem;
left: -0.5625rem;
padding: 0 0.1875rem 0 0;
}
.popup-special .popup-special__inner:after {
bottom: -0.625rem;
right: -0.5625rem;
padding: 0 0 0 0.1875rem;
}
.popup-special .popup-special__inner img {
min-width: 100%;
}
.popup-special .popup-special__close {
border: 1px solid rgba(0, 0, 0, 0.6);
position: absolute;
width: 1.375rem;
height: 1.375rem;
border-radius: 50%;
top: -2.1875rem;
right: -0.625rem;
cursor: pointer;
z-index: 2;
}
.popup-special .popup-special__close:after,.popup-special .popup-special__close:before {
content: '';
position: absolute;
background: rgba(0, 0, 0, 0.6);
top: 0.625rem;
left: 0.25rem;
width: 0.75rem;
height: 1px;
}
.popup-special .popup-special__close:before {
transform: rotate(-45deg);
}
.popup-special .popup-special__close:after {
transform: rotate(45deg);
}
.popup-special.close{
transform: scale(0, 0);
}
#menuD {
opacity: 0;
}
.separator_line {
content: '';
display: block;
width: 250px;
margin: 1.25rem 0;
height: 1px;
border-top: 1px solid #000;
}
.burger {
background: #f6f6f6;
position: absolute;
top: 0;
left: 0;
z-index: 6;
padding: 2.9375rem 0.875rem 0.4375rem;
min-width: 16.5rem;
border: 1px solid #c4c4c4;
border-top: 3px solid #000;
display: none;
box-shadow: 2px 3px 3px 0 rgba(196, 196, 196, 0.75);
}
.burger-body__sub {
display: none;
list-style: none;
}
.burger-menu {
line-height: 1.1;
transition: all .25s;
font-weight: 700;
border-left: 0;
}
.burger-menu a, .burger-menu label span:first-child {
display: block;
padding: 0.75rem 0.875rem;
transition: all .25s;
color: #000;
border-left-width: 3px;
border-left-style: solid;
border-bottom: 1px solid #ececec;
}
.burger-menu__bn a {
border: none;
}
.burger-menu__sub a {
border-bottom: none;
border-left: none;
display: block;
padding: 0.75rem 0.875rem;
transition: all .25s;
color: #505050;
min-width: 200px;
}
.burger-menu .toggleSubmenu {
display: block;
}
.toggle-menu {
cursor: pointer;
}
.toggle-menu span,.toggle-menu span:after,.toggle-menu span:before {
content: '';
display: block;
position: absolute;
width: 20px;
height: 3px;
background: #000;
z-index: 9;
transition: .25s;
}
.toggle-menu span {
top: 23px;
left: 12px;
}
.toggle-menu:after {
content: '';
display: block;
position: absolute;
top: 15px;
left: 43px;
height: 19px;
border-right: 1px solid silver;
}
.toggle-menu span:before {
top: 6px;
}
.toggle-menu span:after {
top: -6px;
}
img {
max-width: 100%;
height: auto;
}
.icon--vk {
background: #4c75a3;
}
.icon--twitter {
background: #28aae1;
}
.icon--flipboard {
fill: #f52828;
}
@media (min-width: 768px) {
.header__nav::-webkit-scrollbar {
display: none;
}
.header__nav {
overflow-x: scroll;
overflow-y: hidden;
}
.header > .container-fluid {
padding-top: 1.875rem;
padding-bottom: 1.875rem;
}
.header.isSticky .nav .nav-item:first-child {
margin-right: 170px;
}
.header__nav .nav-link:before {
content: '';
position: absolute;
left: 0;
top: 0;
right: 0;
border-width: 3px 0 0;
border-style: solid;
transition: all 0.25s;
}
.header__nav .nav-link {
text-align: center;
border-color: transparent;
position: relative;
padding: 1.25rem 0.75rem 1rem;
font-weight: 700;
line-height: 1.4;
overflow: hidden;
color: #000;
}
.header__social {
float: right;
transition: all 0.30s;
}
.header__store + .header__store {
margin-left: 0.625rem;
}
.header__nav {
font-size: .875rem;
text-transform: uppercase;
border-bottom: 1px solid #000;
}
.header__nav:before {
content: '';
position: absolute;
border-top: 3px solid #000;
height: 3px;
left: 0;
top: 0;
right: 0;
}
}
@media (min-width: 992px) {
.logo {
margin: .625rem 0 .1875rem;
}
.header__nav .nav-link {
text-align: center;
border-color: transparent;
position: relative;
padding: 1.0625rem 0.75rem 1rem;
font-weight: 700;
line-height: 1.4;
overflow: hidden;
color: #000;
}
}
@media (max-width: 1200px) {
.cell--double {
height: 264px;
}
}
.tags-list a {
display: inline-block;
padding: 0.4375rem 0.5rem;
margin-right: 0.9375rem;
margin-bottom: 0.9375rem;
background: #ececec;
border: 0 none;
border-radius: 2px;
font-family: 'Roboto', sans-serif;
font-size: 0.75rem;
line-height: 1;
font-weight: 700;
}
.profile_onenews__body p a, .micromarking a, .profile_onenews p a {
color: #0d6efd;
text-decoration: underline;
}
.profile_onenews__body p a:hover, .micromarking a:hover, .profile_onenews p a:hover {
text-decoration: none;
}
#myFooter:checked ~ .footerMenu picture, #myFooter:checked ~ .footer-menu > .OOO_IDR {
display: none;
}
</style>
<!--[/critical-styles/styles-default]-->

View File

@@ -0,0 +1,519 @@
<!--[critical-styles/styles-header]-->
<style>
#menuD {
width: 20px;
height: 18px;
position: absolute;
top: 20px;
left: 12px;
cursor: pointer;
z-index: 17;
}
header {
z-index: 2;
}
.header__widgets {
z-index: 500;
}
.header__currency__item > span + .header__currency__item > span {
margin-left: 0.3125rem;
}
.header.isSticky > .container-fluid > .row > .col-12:first-child {
z-index: 16!important;
}
.icon--network {
max-height: 32px;
}
.icon--network img {
max-height: 32px;
}
.header__nav {
background: #fff;
}
.header__nav__stick {
z-index: 15!important;
}
.header__widgets {
max-height: 30px;
}
.logo {
width: 15.5625rem;
max-width: 100%;
bottom: 0;
}
.header__social {
padding: 1.25rem 0 0;
}
.header__currency__item>span:first-child {
margin-right: 0.625rem;
}
.header .logo {
width: 15.5625rem;
}
.header__widgets {
background: #303030;
padding: 0.4375rem 0;
white-space: nowrap;
z-index: 100;
}
.header__widgets,
.header__widgets a {
color: #fff;
}
.header__widgets > .row > .col-12 {
transition: all 0.35s;
}
.header__currency .up {
color: #45C707;
}
.header__currency .down {
color: #B61D1D;
}
.header__currency__item > span + .header__currency__item > span {
margin-left: 0.3125rem;
}
.header__currency__item > span:first-child {
margin-right: 0.625rem;
}
.header__weather > span {
margin: 0 0.3125rem;
}
.header__delimiter {
border-width: 0 1px 0 0;
border-style: solid;
}
@media (max-width: 767.98px) {
.header__network .icon--network {
display: none;
}
.header__widgets {
display: none;
}
.header__store {
max-width: 5.625rem;
max-height: 1.625rem;
margin: 0 0 1.75rem;
}
.header__store:last-child {
max-width: 6rem;
}
.header__network {
margin-bottom: 3.125rem;
}
.header__network ul {
display: flex;
flex-wrap: wrap;
}
.header__network ul li {
margin:0 1.5625rem 0.9375rem 0;
}
.header .header__nav .float-md-left {
flex: 1;
overflow: hidden;
}
.header .nav-link--feedback {
position: relative;
display: inline-block;
vertical-align: middle;
padding-right: 1.5625rem;
font-family: 'PT Sans', sans-serif;
font-style: normal;
font-weight: 700;
font-size: 1rem;
line-height: 1.3;
}
.header .nav-link--feedback:before {
content: '';
position: absolute;
border: 1px solid;
width: 0.5rem;
height: 0.5rem;
right: 0.9375rem;
top: 55%;
transform: translate(0, -50%) rotate(135deg);
border-color: #000 transparent transparent #000;
}
.header .header__nav .float-md-right {
display: none!important;
}
.header .header__nav .nav {
font-size: 0;
height: 3.75rem;
white-space: nowrap;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.header .header__nav .nav .nav-link {
font-size: 0.875rem;
font-weight: 500;
line-height: 1.2;
padding: 0.9375rem 1.5625rem 0.9375rem 0;
}
.header .header__nav .nav .nav-item {
display: inline-block;
vertical-align: middle;
}
.header {
background: white;
position: fixed!important;
top: 0;
left: 0;
right: 0;
}
.header .row {
display: block;
margin: 0 -1.875rem;
}
.header .logo {
margin-top: 0;
margin-bottom: 0;
}
.header .row > .col-12:nth-child(2) {
border-top: 1px solid #C0C0C0;
border-width: 1px 0 0;
}
.header .row > .col-12:last-child,
.header .rubric,
.header .searchform {
display: none!important;
}
.header .header__nav {
padding-top: 0;
height: 3.125rem;
overflow: hidden;
}
.logo {
max-width: 8.125rem;
max-height: 1.75rem;
z-index: 12;
}
#menuM:checked ~ .burger,
#menuM:checked ~ .burger-body {
display: block;
}
#menuM:checked ~ .toggle-menu::after {
top: 0;
left: 0;
background: #f6f6f6;
width: 100%;
height: 49px;
right: unset;
border: none;
z-index: 8;
}
#sub_burgerM:checked ~ .burger-body__sub {
display: block;
}
#sub_burgerM:checked ~ .toggleSubmenu .arrow {
transform: rotate(-135deg);
}
}
@media (min-width: 768px) {
.header__nav::-webkit-scrollbar {
display: none;
}
.header__nav {
overflow-x: scroll;
overflow-y: hidden;
}
.header > .container-fluid {
padding-top: 1.875rem;
padding-bottom: 1.875rem;
}
.header.isSticky .nav .nav-item:first-child {
margin-right: 170px;
}
.header__nav .nav-link:before {
content: '';
position: absolute;
left: 0;
top: 0;
right: 0;
border-width: 3px 0 0;
border-style: solid;
transition: all 0.25s;
}
.header__nav .nav-link {
text-align: center;
border-color: transparent;
position: relative;
padding: 1.25rem 0.75rem 1rem;
font-weight: 700;
line-height: 1.4;
overflow: hidden;
color: #000;
}
.header__social {
float: right;
transition: all 0.30s;
}
.header__store + .header__store {
margin-left: 0.625rem;
}
.header__nav {
font-size: .875rem;
text-transform: uppercase;
border-bottom: 1px solid #000;
}
.header__nav:before {
content: '';
position: absolute;
border-top: 3px solid #000;
height: 3px;
left: 0;
top: 0;
right: 0;
}
.header__network {
position: relative;
width: 6.625rem;
max-width: 6.625rem;
padding-left: 10px;
display: inline-table;
border-radius: 5px;
transform-style: preserve-3d;
perspective: 200px;
z-index: 4;
}
.header__network .icon {
display: block;
}
.header__network .icon--network {
min-width: 111px;
}
.header__network > li {
cursor: pointer;
list-style: none;
}
.header__network > li:hover > ul {
transition:all 200ms ease-in-out 0ms;
transform:rotateX(0deg);
box-shadow: 4px 6px 10px rgba(0, 0, 0, 0.1);
opacity: 1.0;
}
.header__network ul {
background: #ececec;
position: absolute;
right: 0;
width: 9.375rem;
max-width: 9.375rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
opacity: 0.0;
z-index: 10;
padding: 0.4375rem 0.5625rem 0.625rem;
transition: all 200ms ease-in-out 200ms;
transform: rotateX(-90deg);
transform-origin: 0% 0%;
backface-visibility: hidden;
box-shadow: 0 -50px 250px rgba(0, 0, 0, 0);
}
.header__network ul li {
display: flex;
justify-content: center;
margin: 0 7px 0;
}
.header__network ul li .icon {
margin: 0.5rem 0 0.4375rem;
}
.header .isSticky .logo {
width: 144px;
height: auto;
position: absolute;
left: 60px;
bottom: -75px;
max-width: none;
}
}
@media (max-width: 991.98px) {
.header__network {
padding: 0;
}
.header__network li ul {
margin-top: 15px;
}
.header__network ul {
padding: 0;
}
.header__network li,
.header__network ul {
list-style: none;
}
.header__social .icon {
position: relative;
}
.icon {
display: inline-block;
vertical-align: middle;
border-radius: 4px;
width: 1.875rem;
height: 1.875rem;
text-align: center;
}
.header {
z-index: 200;
position: relative;
}
.header > .container-fluid {
padding-left: 15px;
padding-right: 15px;
}
.header > .row {
padding-left: -15px;
padding-right: -15px;
}
.header__social {
float: right;
padding-top: 0.9375rem;
}
.header__widgets {
font-size: 12px;
line-height: 1.5;
}
.header__nav .nav-link {
text-align: left;
color: #000;
font-size: 0.75rem;
padding-left: 0.25rem;
padding-right: 0.25rem;
}
.header__currency__item + .header__currency__item {
margin-left: 0.625rem;
}
}
@media (min-width: 992px) {
.header__title {
position: relative;
font-size: 24px;
line-height: 1.08;
margin-left: 35px;
padding: 5px 0 2px 0;
white-space: nowrap;
}
.header__title a {
position: relative;
margin-right: 20px;
}
.header__title a:before {
content: '';
position: absolute;
top: 50%;
left: -15px;
width: 3px;
height: 80%;
border-left: 3px solid;
transform: translate(0, -40%);
}
.logo {
margin: .625rem 0 .1875rem;
}
.header__nav .nav-link {
text-align: center;
border-color: transparent;
position: relative;
padding: 1.0625rem 0.75rem 1rem;
font-weight: 700;
line-height: 1.4;
overflow: hidden;
color: #000;
}
}
@media (max-width: 1199.98px) {
.header__title {
display: none;
}
body.branding .header__widgets {
max-width: 882px;
}
}
@media (min-width: 768px) and (max-width: 1199.98px) {
.burger {
overflow-y: scroll;
max-height: calc(100vh - 120px);
}
.isSticky .burger {
overflow-y: scroll;
max-height: calc(100vh - 40px);
}
#menuD:checked ~ .toggle-menu {
width: 100%;
height: 47px;
background: #f6f6f6;
z-index: 8;
padding-right: 272px;
position: relative;
top: 3px;
left: 6px;
}
.p-none:hover .burger-body__sub {
box-shadow: none;
border: none;
}
#sub_burgerM:checked ~ .toggleSubmenu .arrow {
transform: rotate(135deg);
}
#sub_burgerM ~ .burger-body__sub {
position: relative!important;
top: 0!important;
left: 0!important;
border: none!important;
box-shadow: none!important;
margin: 0!important;
padding: 0!important;
max-width: 250px;
}
}
@media (min-width: 576px) and (max-width: 1199.98px) {
#sub_burgerD {
opacity: 0;
}
.header__nav .nav-item:first-child {
width: 42px;
}
}
@media (min-width: 768px) and (max-width: 991.98px) {
.header__network {
margin-bottom: 12px;
}
.logo {
height: 60px;
}
.header > .container-fluid {
padding-top: 10px;
}
.header__nav > div:first-child {
height: 3.3125rem
}
.header__nav > div:first-child .nav {
white-space: nowrap
}
.header__nav > div:first-child .nav .nav-item {
display: inline-block
}
.header > .container-fluid {
padding-left: 15px;
padding-right: 15px
}
.header .nav {
flex-wrap: nowrap
}
}
</style>
<!--[/critical-styles/styles-header]-->

View File

@@ -0,0 +1,133 @@
<!--[critical-styles/styles-home]-->
<style>
.nav {
display: flex;
flex-wrap: wrap;
padding-left: 0;
margin-bottom: 0;
list-style: none;
}
.nav-link {
display: block;
padding: 0.5rem 1rem;
}
.nav-tabs.news__tabs > li:first-child a + a {
display:none;
}
.nav-tabs.news__tabs > li:first-child a.active {
display:none;
}
.nav-tabs.news__tabs > li:first-child a.active + a {
display:block;
}
.news {
display: flex;
flex-direction: column;
flex: 0 0 1;
}
.news__tabs .nav-item:first-child .nav-link {
border-radius: 6px 0 0 0;
}
.news__tabs .nav-item {
width: 50%;
text-align: center;
}
.news__tabs {
justify-content: space-between;
border: 0 none;
padding-bottom: 1px;
}
.news__tabs-content .tab-pane {
padding: 0;
height: 100%;
}
.tab-pane {
display: none;
}
.tab-content .active {
display: block;
}
.news__tabs .nav-link.active, .news__tabs .nav-link.active + a {
background-color: #FFF;
border-color: #D4D4D4;
color: #000;
font-weight: 700;
}
.news__tabs .nav-link {
background-color: #ECECEC;
padding-left: 0;
padding-right: 0;
font-size: 1.125rem;
font-weight: 500;
color: #BFBFBF;
}
.news__body {
border-style: solid;
border-color: #ECECEC;
border-width: 0 1px 1px 1px;
border-radius: 0 0 6px 6px;
flex: 1;
position: relative;
max-height: 514px;
}
.news__body__inner {
overflow-x: hidden;
overflow-y: scroll;
}
.news__body__inner::-webkit-scrollbar {
display: none;
}
.news__body:after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: -1px;
height: 2.5rem;
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(white));
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, #fff 100%);
background-repeat: repeat-x;
}
.news__body__inner {
background-color: #fff;
padding: 0.875rem 0.625rem;
max-height: 514px;
}
.news__date {
font-size: 0.625rem;
line-height: 1.1;
color:#505258;
margin: 0 0 0.4375rem;
}
.news__list {
margin: 0 0 1.125rem;
padding: 0;
list-style-type: none;
}
.news__list li {
margin: 0;
padding: 0;
display: flex;
align-items: baseline;
}
.news__time {
font-size: 0.75rem;
font-weight: 700;
line-height: 1.2;
color: #B61D1D;
min-width: 2.5rem;
}
.news__name.active {
color: #B61D1D;
}
.article--main .article__title {
font-size: 1.4rem;
}
</style>
<!--[/critical-styles/styles-home]-->

View File

@@ -0,0 +1,116 @@
<!--[critical-styles/styles-search]-->
<style>
.highlight {
background:#ffcc00;
font-weight:bold;
}
.search .search__title {
font-size: 1.125rem;
line-height: 1.30;
margin: 0 0 0.625rem;
}
.search .searchform input[type="search"] {
position: relative;
opacity: 1.0;
width: 100%;
}
.search .searchform {
position: relative;
}
.searchform__btn {
position: absolute;
right: 0;
}
.main .searchform__btn,
.site-main .searchform__btn {
float: right;
}
input[type="text"],
input[type="search"] {
background: #fff;
width: 100%;
font-size: 0.75rem;
color:#505258;
border: solid #C0C0C0;
border-width: 1px 0;
padding: 0.3125rem 0;
height: 2rem;
}
.searchform {
position: relative;
}
.searchform input[type="search"] {
position: relative;
opacity: 1.0;
width: 100%;
}
.searchform .search__filter select {
max-width: 120px;
}
.search__body,
.search__body p {
margin: 0 0 0.75rem;
}
.searchform__btn {
background: transparent;
position: absolute;
right: 0;
border: 0 none;
padding: 0.3125rem;
cursor: pointer;
width: 1.875rem;
line-height: 2.3125rem;
display: flex;
justify-content: center;
align-items: center;
z-index: 2;
}
.search__filter {
display: flex;
margin: 0.75rem 0 1.25rem;
}
.search__filter__rubric,
.search__filter__time {
background: rgba(255, 255, 255, 0.01);
margin-right: 20px;
padding-left: 0;
border-radius: 0;
border: 0 none;
height: auto;
line-height: 1.1;
}
.search__filter__rubric .option,
.search__filter__time .option {
min-height: 32px;
line-height: 22px;
padding: 5px 10px;
border-radius: 0;
transform-origin: top left;
box-shadow: 0 0 0 1px rgba(192, 192, 192, 0.5);
}
.search__filter__rubric:after,
.search__filter__time:after {
border-bottom-width: 1px;
border-right-width: 1px;
border-bottom-color: #000;
border-right-color: #000;
margin-top: -8px;
width: 10px;
height: 10px;
}
@media (min-width: 768px) {
.search .searchform input[type="search"] {
font-size: 24px;
min-height: 50px;
}
.search .searchform__btn {
width: 50px;
height: 50px;
padding: 13px;
}
}
</style>
<!--[/critical-styles/styles-search]-->

View File

@@ -0,0 +1,105 @@
<!--[critical-styles/styles-single-gallery]-->
<style>
.nav {
display: flex;
flex-wrap: wrap;
padding-left: 0;
margin-bottom: 0;
list-style: none;
}
.nav-link {
display: block;
padding: 0.5rem 1rem;
}
.nav-tabs .nav-link {
margin-bottom: -1px;
border: 1px solid;
border-color: #dee2e6 #dee2e6 #dee2e6 transparent;
}
.news {
display: flex;
flex-direction: column;
flex: 0 0 1;
}
.news__tabs .nav-item:first-child .nav-link {
border-radius: 6px 0 0 0;
}
.news__tabs .nav-item {
width: 50%;
text-align: center;
}
.news__tabs {
justify-content: space-between;
border: 0 none;
padding-bottom: 1px;
}
.news__tabs-content .tab-pane {
padding: 0;
height: 100%;
}
.tab-pane {
display: none;
}
.tab-content .active {
display: block;
}
.news__tabs .nav-link.active {
background-color: #FFF;
border-color: #D4D4D4;
color: #000;
font-weight: 700;
}
.news__tabs .nav-link {
background-color: #ECECEC;
padding-left: 0;
padding-right: 0;
font-size: 1.125rem;
font-weight: 500;
color: #BFBFBF;
}
.news__body {
border-style: solid;
border-color: #ECECEC;
border-width: 0 1px 1px 1px;
border-radius: 0 0 6px 6px;
flex: 1;
position: relative;
}
.news__body__inner {
background-color: #fff;
padding: 0.875rem 0.625rem;
}
.news__date {
font-size: 0.625rem;
line-height: 1.1;
color:#505258;
margin: 0 0 0.4375rem;
}
.news__list {
margin: 0 0 1.125rem;
padding: 0;
list-style-type: none;
}
.news__list li {
margin: 0;
padding: 0;
display: flex;
align-items: baseline;
}
.news__time {
font-size: 0.75rem;
font-weight: 700;
line-height: 1.2;
color: #B61D1D;
min-width: 2.5rem;
}
.news__name.active {
color: #B61D1D;
}
</style>
<!--[/critical-styles/styles-single-gallery]-->

View File

@@ -0,0 +1,200 @@
<!--[critical-styles/styles-single]-->
<style>
.author {
position: relative;
margin: 0 0 30px;
}
.author__title {
font-size: 1.625rem;
line-height: 1;
font-weight: 700;
}
.author__post {
font-size: .875rem;
}
.author__footer {
color:#505258;
border-top: 1px solid silver;
padding: 11px 0 0;
font-size: 12px;
line-height: 1;
}
.author__footer a {
text-decoration: underline;
color: inherit;
}
.author:before {
content: '';
background: #ececec;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
@media (max-width: 991.98px) {
.author:before {
top: 104px;
}
}
.nav {
display: flex;
flex-wrap: wrap;
padding-left: 0;
margin-bottom: 0;
list-style: none;
}
.nav-link {
display: block;
padding: 0.5rem 1rem;
}
.news {
display: flex;
flex-direction: column;
flex: 0 0 1;
}
.news__tabs .nav-item:first-child .nav-link {
border-radius: 6px 0 0 0;
}
.news__tabs .nav-item {
width: 50%;
text-align: center;
}
.news__tabs-content .tab-pane {
padding: 0;
height: 100%;
}
.news__tabs {
justify-content: space-between;
border: 0 none;
padding-bottom: 1px;
}
.news__tabs-content .tab-pane {
padding: 0;
height: 100%;
}
.tab-pane {
display: none;
}
.tab-content .active {
display: block;
}
.news__tabs .nav-link.active {
background-color: #FFF;
border-color: #D4D4D4;
color: #000;
font-weight: 700;
}
.news__tabs .nav-link {
background-color: #ECECEC;
padding-left: 0;
padding-right: 0;
font-size: 1.125rem;
font-weight: 500;
color: #BFBFBF;
}
.news__body {
border-style: solid;
border-color: #ECECEC;
border-width: 0 1px 1px 1px;
border-radius: 0 0 6px 6px;
flex: 1;
position: relative;
}
.news__body__inner {
background-color: #fff;
padding: 0.875rem 0.625rem;
}
.news__date {
font-size: 0.625rem;
line-height: 1.1;
color:#505258;
margin: 0 0 0.4375rem;
}
.news__list {
margin: 0 0 1.125rem;
padding: 0;
list-style-type: none;
}
.news__list li {
margin: 0;
padding: 0;
display: flex;
align-items: baseline;
}
.news__time {
font-size: 0.75rem;
font-weight: 700;
line-height: 1.2;
color: #B61D1D;
min-width: 2.5rem;
}
.news__name.active {
color: #B61D1D;
}
.profile_onenews {
margin: 0 0 1.875rem;
}
.author {
position: relative;
margin: 0 0 30px;
padding-top: 16px;
}
.author__title {
font-size: 26px;
line-height: 1.0;
font-weight: 700;
}
.author__post {
font-size: 14px;
}
.author__footer {
color:#505258;
border-top: 1px solid #C0C0C0;
padding: 11px 0 0;
font-size: 12px;
line-height: 1;
}
.author__footer a {
text-decoration: underline;
color: inherit;
}
.author__footer:hover {
text-decoration: none;
}
.author:before {
content: '';
background: #ececec;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.profile_onenews .profile_onenews__title {
margin: -0.625rem 0 0.1875rem;
font-size: 2.375rem;
line-height: 1.2;
margin: 0 0 0.625rem;
}
.profile_onenews__title {
font-weight: 400;
}
</style>
<!--[/critical-styles/styles-single]-->

View File

@@ -0,0 +1,233 @@
<!--[critical-styles/styles-tag]-->
<style>
.tag {
position: relative;
overflow: hidden;
margin-bottom: 1.875rem;
}
.tag__body {
display: flex;
flex-direction: column;
justify-content: flex-end;
margin-bottom: 2.5rem;
}
.tag-main {
position:absolute;
width:100%;
height:100%;
background:rgba(0,0,0, 0.35);
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.tag figure:first-child {
margin: 0;
}
.tag figure img {
width: 100%;
}
.tag__img {
width: 100%;
}
.tag__body .tag__body__title {
font-size: 3rem;
font-weight: 500;
line-height: 1;
position: relative;
color: #fff;
}
.tag__body .tag__body__title img {
margin-top: -6px;
}
.tag__body .tag__body__title svg {
content: '';
position: absolute;
width: 45px;
height: 45px;
left: 0;
top: 0.1875rem;
transform: translate(-54px, 0);
}
.tag__body .tag__body__text {
font-size: 1rem;
line-height: 1.5;
}
.tag__body,
.tag__body a {
color: white;
}
.taglist__body,
.taglist__body p {
margin: 0 0 0.75rem;
}
.taglist {
margin: 0 0 3.75rem;
}
.taglist__body {
font-size: 1rem;
line-height: 1.6;
transition: all 0.2s;
}
.taglist__frame {
display: block;
width: 100%;
margin-top: .125rem;
margin-right: 1.25rem;
overflow: hidden;
}
.taglist__frame img {
height: auto;
}
.taglist__title {
font-size: 1.5rem;
line-height: 1.30;
font-weight: 700;
margin: 0 0 0.625rem;
transition: all 0.2s;
}
.taglist__text {
font-size: 0.875rem;
}
.taglist .taglist__title {
margin: 0 0 0.625rem;
font-weight: 700;
}
.taglist .taglist__title a {
font-size: 1.25rem;
line-height: 1.2;
color: #212529;
transition: all 0.2s;
}
@media (min-width: 768px) {
.tag__body .tag__body__title {
margin: 0 0 1.5625rem;
}
.tag-main {
position: absolute;
padding: 2.5rem 2.5rem 3.625rem 1.5625rem;
}
.tag__body__text {
padding-left: 51px;
}
.taglist__frame {
display: block;
margin-top: .125rem;
min-width: 14rem;
width: 14rem;
margin-right: 1.25rem;
overflow: hidden;
}
.taglist__frame img {
width: 100%;
height: auto;
}
}
@media (max-width: 767.98px) {
.tag__body {
margin-bottom: 1.25rem;
}
.tag-mobile__text {
margin-bottom: 2.5rem;
font-size: 14px;
}
.tag-main {
padding: 0 2.5rem 1.25rem 0.9375rem;
}
.tag-tablet {
display: none;
}
.tag {
width: 109%;
margin-left: -15px;
overflow: unset;
}
.tag__body .tag__body__title {
font-size: 2rem;
margin-left: 0.625rem;
}
.tag__body__text {
font-size: 0.875rem;
line-height: 21px;
}
.tag__img {
position: absolute;
max-width: none;
width: auto;
min-height: 100%;
left: 50%;
transform: translate(-50%, 0);
}
.taglist__title {
font-size: 1.25rem;
}
.taglist__body {
margin-top: 20px;
}
.taglist__body h3 {
margin-top: 20px;
font-size: 18px;
line-height: 20px;
}
.taglist__frame img {
width: 100%;
}
.tag__body__title img {
width: 100%;
max-width: 24px;
margin-bottom: -2px;
margin-right: 8px;
display: unset;
}
.tag .profile_onenews__picture {
position: relative;
display:block;
}
.tag__body .tag__body__text {
font-size: 0.875rem;
line-height: 21px;
padding: 1.0625rem 1.25rem;
}
.tag__body__title img {
width: 100%;
max-width: 24px;
margin-bottom: -2px;
margin-right: 8px;
display: unset;
}
.tag .profile_onenews__picture {
position: relative;
display:block;
}
.tag__body .tag__body__text {
font-size: 0.875rem;
line-height: 21px;
padding: 1.0625rem 1.25rem;
}
.tag__body .tag__body__title {
position: absolute;
font-size: 2rem;
font-weight: 500;
line-height: 1;
z-index: 2;
}
.tag__body {
position: relative;
color: #000;
background: none;
}
.tag__body .tag__body__title h1 {
font-size: 1.5rem;
line-height: 1.30;
margin: 0;
}
}
</style>
<!--[/critical-styles/styles-tag]-->

View File

@@ -0,0 +1,123 @@
<!--[footer/footer]-->
</div>
</div>
</main>
<footer itemscope itemtype="https://schema.org/WPFooter" class="footer">
<meta itemprop="copyrightYear" content="<?php echo date('Y');?>">
<meta itemprop="copyrightHolder" content="Деловой журнал Профиль - profile.ru">
<input class="footerMenu" type="checkbox" id="myFooter" aria-label="Подвал" />
<label class="footerMenu" for="myFooter">
<picture>
<img
loading="lazy"
class="footer-logo-top"
src="<?= get_template_directory_uri() ?>/assets/img/profil-logo-footer-100.webp"
width="100"
height="22"
alt="Профиль"
/>
</picture>
<span class="upDown"></span>
<span class="OOO_IDR">©<?= date("Y") ?>. Учредитель: ООО "ИДР". Все права защищены</span>
<?php get_template_part("template-parts/micro/publisher"); ?>
</label>
<div class="footer__inner">
<div class="footer-flex">
<a class="footer__logo" href="/">
<img loading="lazy"
class="footer-logo"
src="<?= get_template_directory_uri() ?>/assets/img/profil-logo-footer.png"
width="136"
height="30"
alt=""
/>
</a>
<div class="footer__body">
<span class="footer__age">16+</span>
<?php get_template_part("template-parts/nav/footer-nav") ?>
<span class="footer__delimiter"></span>
<div class="footer__copyright">
<p class="d-block d-md-flex">
Информационное агентство "Деловой журнал "Профиль" зарегистрировано в Федеральной службе по надзору в сфере связи, информационных технологий и массовых коммуникаций. Свидетельство о государственной регистрации серии ИА № ФС 77 - 89668 от 23.06.2025
</p>
<p>
©<?= date("Y") ?> ИДР. Все права защищены.
</p>
<p>
<a class="footer__copyright" rel="nofollow" href="/zashita-personalnyh-dannyh/">Положение об обработке и защите персональных данных</a>
<br/>
<a class="footer__copyright" rel="nofollow" href="/politika-konfidencialnosti/">Политика конфиденциальности</a>
<br/>
<a class="footer__copyright" rel="nofollow" href="/pravila-primeneniya-rekomendatelnyh-tehnologij/">Правила применения рекомендательных технологий</a>
</p>
</div>
</div>
</div>
</div>
</footer>
<?php wp_footer(); ?>
<link href="https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,400;0,700;1,100;1,400;1,700&display=swap" rel="stylesheet" />
<?php //todo:убрать в отдельный темплейт вместе с cell__promo ?>
<?php if( wp_is_mobile() ) : ?>
<script>
(function () {
let prevPos = 0, currPos = 0;
let ticking = false;
let timeout = 100;
let timing = 0;
let element = document.querySelector('.cell__promo');
function doScroll(curr, prev) {
if (curr > prev && prev > 50 && !element.classList.contains('open') && !element.classList.contains('once')) {
timeout = setTimeout(function () {
element.classList.add('show');
clearTimeout(timeout);
}, 4000);
timing = setTimeout(function () {
element.classList.remove('d-none');
element.classList.add('open');
clearTimeout(timeout);
}, 3000);
}
}
window.addEventListener('scroll', function (e) {
currPos = window.scrollY;
if (!ticking) {
window.requestAnimationFrame(function () {
doScroll(currPos, prevPos);
ticking = false;
prevPos = currPos;
});
ticking = true;
}
});
}());
</script>
<?php endif; ?>
</body>
</html>
<!--[/footer/footer]-->

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]-->

View File

@@ -0,0 +1,24 @@
<!--[home/ajax-load-more]-->
<?php
global $main_item, $colon_item;
$index_alm_shortcode = '
[ajax_load_more
cache="true"
cache_id="' . get_alm_cache_id( 955 ) . '"
post_type="profile_article"
repeater="template_22"
posts_per_page="21"
post_format="standard"
post__not_in="'. implode([",", $main_item, $colon_item]) .'"
offset="24"
id="home_page"
]';
echo do_shortcode( $index_alm_shortcode );
?>
<!--[/home/ajax-load-more]-->

View File

@@ -0,0 +1,20 @@
<!--[archive/cell-image]-->
<?php if( has_post_thumbnail() ) : ?>
<img loading="lazy"
src="<?= the_post_thumbnail_url($args["wide"] && !wp_is_mobile() ? "large" : "post-thumbnail"); ?>"
alt="<?= htmlspecialchars( get_the_title() ) ?>"
/>
<?php else : ?>
<img loading="lazy"
itemprop="image"
src="<?= wp_get_attachment_image_url( 1357368, $args["wide"] && !wp_is_mobile() ? "large" : "post-thumbnail"); ?>"
alt="<?= htmlspecialchars( get_the_title() ) ?>"
/>
<?php endif; ?>
<!--[archive/cell-image]-->

View File

@@ -0,0 +1,39 @@
<!--[home/cell(wide => <?= $args["wide"] ?>)]-->
<div class="col-12 col-md-4 col-xl-<?= $args["wide"] ? 6 : 3 ?> float-left">
<?php //get_template_part("template-parts/micro/post"); ?>
<div class="article cell">
<a class="article__frame <?= $args["wide"] ? "article__frame--wide" : "" ?>" href="<?= the_permalink() ?>" title="<?= htmlspecialchars( get_the_title() ) ?>">
<?php get_template_part("template-parts/home/cell-image"); ?>
</a>
<?php get_template_part("template-parts/post/cell-sticker"); ?>
<div class="article__body">
<?php get_template_part("template-parts/post/cell-date"); ?>
<a class="article__title" href="<?= the_permalink() ?>" title="<?= htmlspecialchars( get_the_title() ) ?>">
<?= the_title() ?>
</a>
<div class="article__detail">
<?php get_template_part("template-parts/post/cell-author"); ?>
</div>
</div>
</div>
</div>
<!--[/home/cell(wide => <?= $args["wide"] ?>)]-->

View File

@@ -0,0 +1,96 @@
<!--[home/colon-item]-->
<?php
global $main_item, $colon_item;
$colon_query = new WP_Query(
[
"post_type" => ["anew", "profile_article"],
"post_status" => "publish",
"meta_query" => [
"relation" => "AND",
[
"key" => "colon_item",
"value" => "true",
"compare" => "LIKE"
]
],
"posts_per_page" => 1,
"suppress_filters" => true,
"ignore_sticky_posts" => true,
"order" => "DESC",
"orderby" => "post_date"
]
);
?>
<?php if($colon_query->have_posts()): ?>
<?php while ($colon_query->have_posts()): ?>
<?php $colon_query->the_post(); ?>
<?php $colon_item = get_the_ID(); ?>
<div class="d-flex" >
<div class="blog"
itemscope
<?php if( get_post_type() == "profile_article"): ?>
itemtype="https://schema.org/Article"
<?php else: ?>
itemtype="https://schema.org/NewsArticle"
<?php endif; ?>
>
<a class="blog__frame" href="<?= the_permalink() ?>">
<img loading="lazy"
itemprop="image"
class="d-block"
src="<?= the_post_thumbnail_url( [ 264, 264 ] ); ?>"
width="167"
height="158"
alt="<?= htmlspecialchars( get_the_title() ) ?>"
/>
</a>
<div class="blog__body">
<a class="blog__title" href="<?= the_permalink() ?>">
<?php if( function_exists('get_secondary_title') && get_secondary_title() ) : ?>
<?= the_secondary_title() ?>
<?php else: ?>
<?= the_title() ?>
<?php endif; ?>
</a>
<?php get_template_part("template-parts/micro/post"); ?>
<div class="blog__detail">
<?php get_template_part("template-parts/post/blog-date"); ?>
<?php get_template_part("template-parts/post/blog-author"); ?>
</div>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<!--[/home/colon-item]-->

View File

@@ -0,0 +1,29 @@
<!--[home/index]-->
<?php get_template_part("template-parts/home/news"); ?>
<div class="col-12 col-md-8 col-xl-6 float-left">
<?php get_template_part("template-parts/home/main-item") ?>
<?php get_template_part("template-parts/home/colon-item") ?>
</div>
<div class="col-12 col-md-4 col-xl-3 float-right d-none d-xl-block">
<div class="special special--gray d-flex cell cell--double justify-content-center align-items-center">
<?php get_template_part("template-parts/ad/revive/ad", "", [ "zone" => 1 ]) ?>
</div>
</div>
<?php get_template_part("template-parts/home/list-items") ?>
<?php get_template_part("template-parts/home/ajax-load-more") ?>
<!--[/home/index]-->

View File

@@ -0,0 +1,41 @@
<!--[home/list-items]-->
<?php
global $main_item, $colon_item;
$mainpage_query = new WP_Query(
[
"post_type" => ["profile_article"],
"post_status" => "publish",
"posts_per_page" => 22,
"ignore_sticky_posts" => true,
"order" => "DESC",
"orderby" => "post_date",
"post__not_in" => [$main_item, $colon_item]
]
);
?>
<?php if($mainpage_query->have_posts()): ?>
<?php while ($mainpage_query->have_posts()): ?>
<?php $mainpage_query->the_post(); ?>
<?php if ( in_array( $mainpage_query->current_post, [8, 16] ) ): ?>
<?php get_template_part("template-parts/home/cell", "", ["wide" => true]); ?>
<?php else: ?>
<?php get_template_part("template-parts/home/cell", "", ["wide" => false]); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
<!--[/home/list-items]-->

View File

@@ -0,0 +1,83 @@
<!--[home/main-item]-->
<?php
global $main_item, $colon_item;
$first_query = new WP_Query(
[
"post_type" => ["anew", "profile_article"],
"post_status" => "publish",
"meta_query" => [
"relation" => "AND",
[
"key" => "main_item",
"value" => "true",
"compare" => "LIKE"
]
],
"posts_per_page" => 1,
"suppress_filters" => true,
"ignore_sticky_posts" => true,
"order" => "DESC",
"orderby" => "post_date"
]
);
?>
<?php if($first_query->have_posts()): ?>
<?php while ($first_query->have_posts()): ?>
<?php $first_query->the_post(); ?>
<?php $main_item = get_the_ID(); ?>
<div class="article article--main cell cell--main"
itemscope
<?php if( get_post_type() == "profile_article"): ?>
itemtype="https://schema.org/Article"
<?php else: ?>
itemtype="https://schema.org/NewsArticle"
<?php endif; ?>
>
<?php get_template_part("template-parts/micro/post"); ?>
<a class="article__frame" href="<?= the_permalink() ?>">
<img loading="lazy"
itemprop="image"
class="d-block"
src="<?= the_post_thumbnail_url("large"); ?>"
alt="<?= htmlspecialchars( get_the_title() ) ?>"
/>
</a>
<?php get_template_part("template-parts/post/cell-sticker"); ?>
<div class="article__body">
<?php get_template_part("template-parts/post/cell-date"); ?>
<a class="article__title article__title--lg" href="<?= the_permalink() ?>">
<?= the_title(); ?>
</a>
<?php get_template_part("template-parts/post/cell-author"); ?>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<!--[/home/main-item]-->

View File

@@ -0,0 +1,21 @@
<li>
<?php //get_template_part("template-parts/micro/post"); ?>
<time datetime="<?= get_the_date("d.m.Y H:i:s") ?>" class="news__time">
<?= get_the_date("H:i") ?>
</time>
<a class="news__name <?= get_post_meta( get_the_ID(), "_breaking", true ) == 1 ? "active" : "" ?>" href="<?= the_permalink() ?>" title="<?= htmlspecialchars( get_the_title() ) ?>">
<?= the_title() ?>
</a>
<?php //get_template_part("template-parts/micro/author"); ?>
<?php //get_template_part("template-parts/micro/image"); ?>
</li>

View File

@@ -0,0 +1,19 @@
<!--[home/news-top-item]-->
<li>
<?php //get_template_part("template-parts/micro/post"); ?>
<a class="news__name" href="<?= the_permalink() ?>" title="<?= htmlspecialchars( get_the_title() ) ?>">
<?= the_title() ?>
</a>
<?php //get_template_part("template-parts/micro/author"); ?>
<?php //get_template_part("template-parts/micro/image"); ?>
</li>
<!--[/home/news-top-item]-->

View File

@@ -0,0 +1,165 @@
<!--[home/news]-->
<?php
$news_date = "";
$news_query = new WP_Query(
[
"post_type" => ["anew", "yellow"],
"ignore_sticky_posts" => true,
"posts_per_page" => 20,
"order" => "DESC",
"orderby" => "post_date"
]
);
$top = json_decode(
get_option("ppp_options")
);
$ids = array_filter(
array_map(
function ($item) {
return $item->id;
}, $top
)
);
$top_query = new WP_Query(
[
"post_type" => ["anew", "yellow"],
"ignore_sticky_posts" => true,
"post__in" => $ids,
"posts_per_page" => -1,
"order" => "DESC",
"orderby" => "post_date"
]
);
?>
<div class="col-12 col-md-4 col-xl-3 float-left">
<div class="news cell d-flex">
<ul class="nav nav-tabs news__tabs">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" data-target="#tab-news" href="/news/">
Новости
</a>
<a class="nav-link" href="/news/">
Новости
</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#tab-top10">
Топ-10
</a>
</li>
</ul>
<div class="tab-content news__tabs-content">
<div class="tab-pane active container" id="tab-news">
<div class="news__body">
<div class="scrollbar-macosx js-scrollbar">
<div class="news__body__inner" >
<?php if($news_query->have_posts()): ?>
<?php while ($news_query->have_posts()): ?>
<?php $news_query->the_post(); ?>
<?php if( $news_date !== get_the_date("Ymd") ): ?>
<?php $news_date = get_the_date("Ymd"); ?>
<?php if( $news_query->current_post !== 0 ) : ?>
</ul>
<?php endif; ?>
<div class="news__date">
<?= get_the_date("d.m.Y") ?>
</div>
<ul class="news__list">
<?php endif; ?>
<?php get_template_part("template-parts/home/news-item"); ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="tab-pane container" id="tab-top10">
<div class="news__body">
<div class="scrollbar-macosx js-scrollbar">
<div class="news__body__inner">
<ul class="news__list__top">
<?php if($top_query->have_posts()): ?>
<?php while ($top_query->have_posts()): ?>
<?php $top_query->the_post(); ?>
<?php get_template_part("template-parts/home/news-top-item"); ?>
<?php endwhile; ?>
<?php endif; ?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--[/home/news]-->

View File

@@ -0,0 +1,20 @@
<!--[micro/author]-->
<?php
$authors = get_coauthors();
?>
<?php foreach ( $authors as $author ): ?>
<span class="d-none" itemprop="author" itemscope itemtype="https://schema.org/Person">
<meta itemprop="name" content="<?= htmlspecialchars($author->display_name); ?>" />
<link itemprop="url" href="<?= get_author_posts_url( $author->ID, $author->user_nicename ); ?>" />
</span>
<?php endforeach; ?>
<!--[/micro/author]-->

View File

@@ -0,0 +1,9 @@
<!--[micro/image]-->
<?php if( has_post_thumbnail() ): ?>
<img itemprop="image" src="<?= the_post_thumbnail_url("large"); ?>" class="d-none" loading="lazy" />
<?php endif; ?>
<!--[/micro/image]-->

View File

@@ -0,0 +1,17 @@
<!--[micro/post]-->
<link itemprop="mainEntityOfPage" href="<?= get_permalink(); ?>"/>
<meta itemprop="inLanguage" content="ru"/>
<meta itemprop="headline name" content="<?= htmlspecialchars( get_the_title() ) ?>" />
<meta itemprop="dateModified" content="<?= the_modified_date("c"); ?>"/>
<?php
get_template_part("template-parts/micro/terms");
?>
<!--[/micro/post]-->

View File

@@ -0,0 +1,31 @@
<!--[micro/publisher]-->
<div class="d-none" itemprop="publisher" itemscope itemtype="https://schema.org/NewsMediaOrganization">
<link itemprop="logo" href="<?= get_template_directory_uri() ?>/assets/img/profil-logo.png" />
<link itemprop="image" href="<?= get_template_directory_uri() ?>/assets/img/profil-logo.png" />
<meta itemprop="name" content="Информационное агентство Деловой журнал «Профиль»" />
<meta itemprop="email" content="profile@profile.ru" />
<span class="d-none" itemprop="telephone"> +7 (495) 671-01-10 </span>
<span class="d-none" itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
<span class="d-none" itemprop="streetAddress">Б. Андроньевская, д. 17</span>
<span class="d-none" itemprop="postalCode">109544</span>
<span class="d-none" itemprop="addressLocality">Москва, Российская Федерация</span>
</span>
<meta itemprop="foundingDate" content="1996-04-17" />
<link itemprop="url" content="<?= home_url(); ?>" />
</div>
<!--[/micro/publisher]-->

View File

@@ -0,0 +1,17 @@
<!--[micro/terms]-->
<div class="d-none">
<?php foreach (wp_get_post_terms( get_the_ID(), ["category", "post_tag"] ) as $term) : ?>
<span itemprop="articleSection">
<?= $term->name ?>
</span>
<?php endforeach; ?>
</div>
<!--[/micro/terms]-->

View File

@@ -0,0 +1,19 @@
<!--[nav/footer-nav]-->
<?php
wp_nav_menu(
[
'theme_location' => 'footer_menu',
'container' => false,
'menu_class' => 'nav-footer',
'echo' => true,
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0,
'walker' => new Profile_Menu_Walker(),
]
);
?>
<!--[/nav/footer-nav]-->

View File

@@ -0,0 +1,67 @@
<!--[nav/header-nav-burger]-->
<ul class="burger-body">
<?php
wp_nav_menu(
[
'theme_location' => 'burger_menu_1',
'container' => false,
'echo' => true,
'items_wrap' => '%3$s',
'depth' => 0,
'walker' => new Profile_Menu_Walker()
]
);
?>
<li class="burger-menu burger-menu__black p-none">
<input type="checkbox" name="toggle" class="toggleSubmenu" id="sub_burger<?= $args["type"] ?>">
<label for="sub_burger<?= $args["type"] ?>" class="toggleSubmenu">
<span> Другие рубрики </span>
<span></span>
<span class="arrow"></span>
</label>
<ul class="burger-body__sub">
<?php
wp_nav_menu(
[
'theme_location' => 'other_categories',
'container' => false,
'echo' => true,
'items_wrap' => '%3$s',
'depth' => 0,
'walker' => new Profile_Menu_Walker()
]
);
?>
</ul>
</li>
<li class="separator_line"></li>
<?php
wp_nav_menu(
[
'theme_location' => 'burger_menu_2',
'container' => false,
'echo' => true,
'items_wrap' => '%3$s',
'depth' => 0,
'walker' => new Profile_Menu_Walker()
]
);
?>
</ul>
<!--[/nav/header-nav-burger]-->

View File

@@ -0,0 +1,18 @@
<!--[nav/header-nav-main]-->
<?php
wp_nav_menu(
[
'theme_location' => 'header_menu',
'container' => false,
'echo' => true,
'items_wrap' => '%3$s',
'depth' => 0,
'walker' => new Profile_Menu_Walker()
]
);
?>
<!--[/nav/header-nav-main]-->

View File

@@ -0,0 +1,121 @@
<!--[nav/header-nav]-->
<div class="container-fluid clearfix position-relative">
<div class="row">
<div class="col-12 col-md-4 col-lg-5 col-xl-6">
<div class="d-flex justify-content-between justify-content-lg-start align-items-center">
<div class="d-flex flex-row d-md-block position-relative">
<div class="d-block d-md-none">
<input class="toggle-menu" type="checkbox" name="toggle" id="menuM" aria-label="Меню" />
<label class="toggle-menu background_checked" for="menuM">
<span></span>
</label>
<div class="burger">
<?php get_template_part("template-parts/nav/header-nav-burger", "", [ "type" => "M" ]) ?>
<?php get_template_part("template-parts/header/header-social-networks-mobile") ?>
</div>
</div>
<div class="d-flex flex-column d-md-block justify-content-center logo-height">
<?php get_template_part("template-parts/header/header-logo") ?>
</div>
</div>
<?php if ( is_single() ) :?>
<div class="header__title header__title--black font-weight-bold m-0 ml-5">
<?php get_template_part("template-parts/header/category-name") ?>
</div>
<?php else:?>
<h1 class="header__title header__title--black font-weight-bold m-0 ml-5">
<?php get_template_part("template-parts/header/category-name") ?>
</h1>
<?php endif?>
<div class="d-md-none">
<a class="nav-link nav-link--feedback" href="/news">
Новости
</a>
</div>
</div>
</div>
<div class="col-12 order-xs-12 col-md-12 order-0 order-md-12">
<div id="sticky-wrapper" class="sticky-wrapper position-relative">
<div class="header__nav__stick 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 clearfix">
<div class="float-xs-none float-md-left">
<ul class="nav d-block d-md-flex align-items-center">
<li class="nav-item">
<input type="checkbox" class="toggle-menu__check" id="menuD" aria-label="Меню">
<label class="toggle-menu" for="menuD">
<span></span>
</label>
<div class="burger">
<?php get_template_part("template-parts/nav/header-nav-burger", "", [ "type" => "D" ]) ?>
</div>
</li>
<?php get_template_part("template-parts/nav/header-nav-main") ?>
</ul>
</div>
<div class="float-xs-none float-md-right d-block d-md-flex"></div>
</div>
</div>
</div>
</div>
<div class="col-12 col-md-8 col-lg-7 col-xl-6">
<?php get_template_part("template-parts/header/header-social-networks") ?>
</div>
</div>
</div>
<!--[/nav/header-nav]-->

View File

@@ -0,0 +1,5 @@
<!--[no-posts]-->
404
<!--[/no-posts]-->

View File

@@ -0,0 +1,13 @@
<!--[partners/setka]-->
<div class="mb-4">
<div class="js-setka-media" data-bid="165"></div>
<div class="text-right mb-4 fs-12 rec-service">
<a href="/pravila-primeneniya-rekomendatelnyh-tehnologij/">Рекомендательный сервис</a>
</div>
</div>
<!--[/partners/setka]-->

View File

@@ -0,0 +1,28 @@
<!--[partners/smi2-desktop]-->
<div id="unit_92710">
<a rel="noopener" href="https://smi2.ru/" target="_blank">
Новости СМИ2
</a>
</div>
<div class="text-right mb-4 fs-12 rec-service" style="margin-top:-1.75rem;">
<a href="/pravila-primeneniya-rekomendatelnyh-tehnologij/">Рекомендательный сервис</a>
</div>
<script async="true" type="text/javascript" charset="utf-8">
(function() {
let smi2_92710_mobile = document.createElement('script'); smi2_92710_mobile.type = 'text/javascript'; smi2_92710_mobile.async = true;
smi2_92710_mobile.src = '//smi2.ru/data/js/92710.js'; smi2_92710_mobile.charset = 'utf-8';
smi2_92710_mobile.setAttribute('defer', 'defer');
let s_smi2_92710_mobile = document.getElementsByTagName('script')[0]; s_smi2_92710_mobile.parentNode.insertBefore(smi2_92710_mobile, s_smi2_92710_mobile);
}());
</script>
<!--[/partners/smi2-desktop]-->

View File

@@ -0,0 +1,36 @@
<!--[partners/smi2-mobile]-->
<div id="unit_94893">
<a rel="noopener" href="https://smi2.ru/" target="_blank">
Новости СМИ2
</a>
</div>
<script async="true" type="text/javascript" charset="utf-8">
(function() {
let smi2_94893_mobile = document.createElement('script');
smi2_94893_mobile.type = 'text/javascript';
smi2_94893_mobile.async = true;
smi2_94893_mobile.src = '//smi2.ru/data/js/94893.js';
smi2_94893_mobile.charset = 'utf-8';
smi2_94893_mobile.setAttribute('defer', 'defer');
let s_smi2_94893_mobile = document.getElementsByTagName('script')[0];
s_smi2_94893_mobile.parentNode.insertBefore(smi2_94893_mobile, s_smi2_94893_mobile);
}());
</script>
<div class="text-right mb-4 fs-12 rec-service" style="margin-top:-.5rem;">
<a href="/pravila-primeneniya-rekomendatelnyh-tehnologij/">Рекомендательный сервис</a>
</div>
<!--[/partners/smi2-mobile]-->

View File

@@ -0,0 +1,13 @@
<!--[partners/smi2]-->
<?php if( wp_is_mobile() ) : ?>
<?php get_template_part("template-parts/partners/smi2-mobile"); ?>
<?php else : ?>
<?php get_template_part("template-parts/partners/smi2-desktop"); ?>
<?php endif; ?>
<!--[/partners/smi2]-->

View File

@@ -0,0 +1,22 @@
<!--[post/blog-author]-->
<?php
$authors = get_coauthors();
?>
<?php foreach ( $authors as $author ): ?>
<a class="blog__author" href="<?= get_author_posts_url( $author->ID, $author->user_nicename ); ?>" itemprop="author" itemscope itemtype="https://schema.org/Person">
<?= $author->display_name; ?>
<meta itemprop="name" content="<?= htmlspecialchars($author->display_name); ?>" />
<link itemprop="url" href="<?= get_author_posts_url( $author->ID, $author->user_nicename ); ?>" />
</a>
<?php endforeach; ?>
<!--[/post/blog-author]-->

View File

@@ -0,0 +1,9 @@
<!--[post/blog-date]-->
<time datetime="<?= get_the_date( "d.m.Y H:i:s" ) ?>" class="blog__data">
<?= get_the_date( "d.m.Y" ) ?>
</time>
<!--[/post/blog-date]-->

View File

@@ -0,0 +1,25 @@
<!--[post/cell-author]-->
<?php
$authors = get_coauthors();
?>
<div class="article__detail">
<?php foreach ( $authors as $author ): ?>
<a class="article__author" href="<?= get_author_posts_url( $author->ID, $author->user_nicename ); ?>" itemprop="author" itemscope itemtype="https://schema.org/Person">
<?= $author->display_name; ?>
<meta itemprop="name" content="<?= htmlspecialchars($author->display_name); ?>" />
<link itemprop="url" href="<?= get_author_posts_url( $author->ID, $author->user_nicename ); ?>" />
</a>
<?php endforeach; ?>
</div>
<!--[/post/cell-author]-->

View File

@@ -0,0 +1,9 @@
<!--[post/cell-date]-->
<time datetime="<?= get_the_date( "d.m.Y H:i:s" ) ?>" class="article__data">
<?= get_the_date( "d.m.Y" ) ?>
</time>
<!--[/post/cell-date]-->

View File

@@ -0,0 +1,33 @@
<!--[post/cell-sticker]-->
<?php
$term_id = get_current_page_main_taxonomy_term_id( get_the_ID() );
$color = get_term_meta( $term_id, "color", true );
$color = $color ? $color : "grey";
?>
<span class="sticker-group">
<?php if( in_array( get_post_type(), ["anew", "yellow"] ) ): ?>
<a class="sticker sticker--white" href="/news">НОВОСТИ</a>
<?php endif; ?>
<?php if( $term_id ) : ?>
<a class="sticker sticker--<?= $color ?>" href="<?= get_term_link( $term_id ) ?>">
<?= get_term( $term_id )->name; ?>
</a>
<?php endif; ?>
</span>
<!--[/post/cell-sticker]-->

View File

@@ -0,0 +1,15 @@
<!--[post/event-cell-date]-->
<?php
$date = strtotime( get_post_meta( get_the_ID(), "event_date", true ) );
?>
<time datetime="<?= date( "d.m.Y H:i:s", $date ) ?>" class="article__data">
<?= date( "d.m.Y", $date ) ?>
</time>
<!--[/post/event-cell-date]-->

View File

@@ -0,0 +1,22 @@
<!--[post/list-item-author]-->
<?php
$authors = get_coauthors();
?>
<?php foreach ( $authors as $author ): ?>
<a class="publication__author" href="<?= get_author_posts_url( $author->ID, $author->user_nicename ); ?>" itemprop="author" itemscope itemtype="https://schema.org/Person">
<?= $author->display_name; ?>
<meta itemprop="name" content="<?= htmlspecialchars($author->display_name); ?>" />
<link itemprop="url" href="<?= get_author_posts_url( $author->ID, $author->user_nicename ); ?>" />
</a>
<?php endforeach; ?>
<!--[/post/list-item-author]-->

Some files were not shown because too many files have changed in this diff Show More