add files
This commit is contained in:
543
template-parts/ad/ad-app.php
Normal file
543
template-parts/ad/ad-app.php
Normal 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]-->
|
||||
35
template-parts/ad/ad-telegram.php
Normal file
35
template-parts/ad/ad-telegram.php
Normal 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]-->
|
||||
57
template-parts/ad/adfox/ad-inlist-1.php
Normal file
57
template-parts/ad/adfox/ad-inlist-1.php
Normal 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]-->
|
||||
57
template-parts/ad/adfox/ad-inlist-2.php
Normal file
57
template-parts/ad/adfox/ad-inlist-2.php
Normal 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]-->
|
||||
57
template-parts/ad/adfox/ad-inlist-3.php
Normal file
57
template-parts/ad/adfox/ad-inlist-3.php
Normal 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]-->
|
||||
57
template-parts/ad/adfox/ad-inread-1.php
Normal file
57
template-parts/ad/adfox/ad-inread-1.php
Normal 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]-->
|
||||
57
template-parts/ad/adfox/ad-inread-2.php
Normal file
57
template-parts/ad/adfox/ad-inread-2.php
Normal 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]-->
|
||||
57
template-parts/ad/adfox/ad-inread-3.php
Normal file
57
template-parts/ad/adfox/ad-inread-3.php
Normal 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]-->
|
||||
33
template-parts/ad/adfox/ad-sticky.php
Normal file
33
template-parts/ad/adfox/ad-sticky.php
Normal 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]-->
|
||||
5
template-parts/ad/adfox/header.php
Normal file
5
template-parts/ad/adfox/header.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<!--[ad/adfox/header]-->
|
||||
|
||||
<script>window.yaContextCb = window.yaContextCb || []</script>
|
||||
|
||||
<!--[/ad/adfox/header]-->
|
||||
33
template-parts/ad/google/header.php
Normal file
33
template-parts/ad/google/header.php
Normal 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]-->
|
||||
13
template-parts/ad/header.php
Normal file
13
template-parts/ad/header.php
Normal 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]-->
|
||||
9
template-parts/ad/revive/ad.php
Normal file
9
template-parts/ad/revive/ad.php
Normal 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"] ?>)]-->
|
||||
30
template-parts/ad/revive/sticky-mobile.php
Normal file
30
template-parts/ad/revive/sticky-mobile.php
Normal 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]-->
|
||||
|
||||
|
||||
24
template-parts/ad/revive/top-mobile.php
Normal file
24
template-parts/ad/revive/top-mobile.php
Normal 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]-->
|
||||
24
template-parts/ad/revive/top.php
Normal file
24
template-parts/ad/revive/top.php
Normal 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]-->
|
||||
Reference in New Issue
Block a user