Blame view

frontend/views/layouts/main.php 2.46 KB
c420c609   alex   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  <?php
      
      /**
       * @var View           $this
       * @var string         $content
       * @var SeoComponent   $seo
       * @var User           $user
       * @var PageCategory[] $pageCategories
       * @var \artbox\core\forms\Module $module;
       */
  use artbox\core\components\SeoComponent;
  use artbox\core\models\PageCategory;
  use artbox\core\models\User;
  use yii\bootstrap\Html;
  use yii\web\View;
  
  
  
  
  $seo=\Yii::$app->get('seo');
  \frontend\assets\AppAsset::register($this);
  ?>
  
216957b0   alex   add google analitics
24
  
c420c609   alex   first commit
25
26
27
28
29
  <?php $this->beginPage() ?>
    <!DOCTYPE html>
    <html lang="<?= \Yii::$app->language ?>">
      <head>
        <meta charset="<?= \Yii::$app->charset ?>">
8d4c77ab   alex   google tag + перевод
30
31
32
33
34
35
36
          <!-- Google Tag Manager -->
          <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
                      new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
                  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
                  'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
              })(window,document,'script','dataLayer','GTM-NZ8XWMK');</script>
          <!-- End Google Tag Manager -->
c420c609   alex   first commit
37
          <link href="https://fonts.googleapis.com/css?family=Ubuntu:400,500,700&amp;subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet">
aa6e6170   alex   Доделал мелкие пр...
38
          <link type="image/x-icon" href="/images/favicon.ico" rel="icon">
c420c609   alex   first commit
39
40
41
42
          <meta name="viewport" content="width=device-width, initial-scale=1">
          <?= Html::csrfMetaTags() ?>
        <title><?= Html::encode($seo->title) ?></title>
          <?php $this->head() ?>
216957b0   alex   add google analitics
43
44
45
46
47
48
49
50
51
          <!-- Global site tag (gtag.js) - Google Analytics -->
          <script async src="https://www.googletagmanager.com/gtag/js?id=UA-124411316-1"></script>
          <script>
              window.dataLayer = window.dataLayer || [];
              function gtag(){dataLayer.push(arguments);}
              gtag('js', new Date());
  
              gtag('config', 'UA-124411316-1');
          </script>
c420c609   alex   first commit
52
53
      </head>
      <body>
8d4c77ab   alex   google tag + перевод
54
55
56
57
58
59
60
      <!-- Google Tag Manager (noscript) -->
      <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NZ8XWMK"
                        height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
      <!-- End Google Tag Manager (noscript) -->
      <?php $this->beginBody() ?>
  
  
c420c609   alex   first commit
61
62
63
64
65
  
            <?= $content ?>
          
  
          <?php $this->endBody() ?>
be2b3be7   alex   правки по формам
66
67
68
69
70
71
72
          <style>
              .required label::before
              {
                  content: "";
              }
  
          </style>
c420c609   alex   first commit
73
74
75
      </body>
    </html>
  <?php $this->endPage() ?>