vadimcesnokov 1 year ago
parent
commit
cc27e05c27
2 changed files with 27 additions and 0 deletions
  1. 26 0
      views/_etc/banners/bannerDesktop4.php
  2. 1 0
      views/site/index.php

+ 26 - 0
views/_etc/banners/bannerDesktop4.php

@@ -0,0 +1,26 @@
+<?php
+$controller = Yii::$app->controller->id;
+$action = Yii::$app->controller->action->id;
+if(!Yii::$app->deviceDetect->isMobile()):?>
+<div class="mt-4 text-center" align="center">
+    <!--AdFox START-->
+    <!--amic-->
+    <!--Площадка: amic.ru / * / *-->
+    <!--Тип баннера: Растяжка 1/1254х300-->
+    <!--Расположение: <верх страницы>-->
+    <div id="adfox_163238664261336035"></div>
+    <script>
+        window.yaContextCb.push(()=>{
+            Ya.adfoxCode.create({
+                ownerId: 279920,
+                containerId: 'adfox_163238664261336035',
+                params: {
+                    pp: 'g',
+                    ps: 'dbpj',
+                    p2: 'hiju'
+                }
+            })
+        })
+    </script>
+</div>
+<?php endif;?>

+ 1 - 0
views/site/index.php

@@ -88,6 +88,7 @@ $auto_news = Yii::$app->cache->get('main_auto_news');
         if($i==3) echo $this->render('@app/views/_etc/banners/firstDesktopTransparant');
         if($i==3) echo $this->render('@app/views/_etc/banners/firstDesktopTransparant');
         if($i==6 && Yii::$app->deviceDetect->isMobile()) echo $this->render('@app/views/_etc/banners/bannerMobile3');
         if($i==6 && Yii::$app->deviceDetect->isMobile()) echo $this->render('@app/views/_etc/banners/bannerMobile3');
         if($i==6 && !Yii::$app->deviceDetect->isMobile()) echo $this->render('@app/views/_etc/banners/bannerDesktop3');
         if($i==6 && !Yii::$app->deviceDetect->isMobile()) echo $this->render('@app/views/_etc/banners/bannerDesktop3');
+        if($i==8 && !Yii::$app->deviceDetect->isMobile()) echo $this->render('@app/views/_etc/banners/bannerDesktop4');
         /**
         /**
          * @var $item Design
          * @var $item Design
          */
          */