add files
This commit is contained in:
35
adfox_ad_block_innewslist_mobile-1.php
Normal file
35
adfox_ad_block_innewslist_mobile-1.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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(); ?>
|
||||
<div class="newslist__item" data-typeitem="ad">
|
||||
<!--montemedia-->
|
||||
<!--Площадка: profile.ru / mobile / mobile_list1-->
|
||||
<!--Категория: <не задана>-->
|
||||
<!--Тип баннера: 300x250--new-->
|
||||
<div id="adfox_163361799690442230_<?=$rand?>"></div>
|
||||
<script>
|
||||
if (!navigator.userAgent.includes("iPhone")) {
|
||||
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; ?>
|
||||
Reference in New Issue
Block a user