Kaynağa Gözat

Merge branch 'develop'

master
Guillaume Bourgeois 1 yıl önce
ebeveyn
işleme
f1a9c18ce0
4 değiştirilmiş dosya ile 18 ekleme ve 0 silme
  1. +1
    -0
      backend/views/layouts/main.php
  2. +15
    -0
      common/views/matomo.php
  3. +1
    -0
      frontend/views/layouts/main.php
  4. +1
    -0
      producer/views/layouts/main.php

+ 1
- 0
backend/views/layouts/main.php Dosyayı Görüntüle

@@ -72,6 +72,7 @@ if (Yii::$app->controller->action->id === 'login') {
<title><?= Html::encode($this->page_title) ?> | Opendistrib</title>
<link rel="icon" type="image/png" href="<?php echo Yii::$app->urlManagerBackend->getBaseUrl(); ?>/img/favicon-distrib.png" />
<?php $this->head() ?>
<?= $this->render('@common/views/matomo.php') ?>
</head>
<body class="<?= Yii::$app->controller->id.'-'.Yii::$app->controller->action->id ?> hold-transition <?= \dmstr\helpers\AdminLteHelper::skinClass() ?> sidebar-mini">
<?php $this->beginBody() ?>

+ 15
- 0
common/views/matomo.php Dosyayı Görüntüle

@@ -0,0 +1,15 @@
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//<?= Yii::$app->params['matomoUrl']; ?>/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '<?= Yii::$app->params['matomoIdSite']; ?>']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->

+ 1
- 0
frontend/views/layouts/main.php Dosyayı Görüntüle

@@ -73,6 +73,7 @@ if (!Yii::$app->user->isGuest && \Yii::$app->user->identity->id_producer > 0) {
<!--[if IE 7]>
<link href="<?= $this->getUrlManager()->getBaseUrl(); ?>/css/ie7.css" rel="stylesheet">
<![endif]-->
<?= $this->render('@common/views/matomo.php') ?>
</head>
<body class="<?php if ($isHome): echo 'home'; endif; ?><?php if (!Yii::$app->user->isGuest): ?> connected<?php endif; ?>">
<?php $this->beginBody() ?>

+ 1
- 0
producer/views/layouts/main.php Dosyayı Görüntüle

@@ -65,6 +65,7 @@ if (!Yii::$app->user->isGuest) {
<link rel="icon" type="image/png"
href="<?php echo \Yii::$app->urlManager->getBaseUrl(); ?>/img/favicon-distrib.png"/>
<?php $this->head() ?>
<?= $this->render('@common/views/matomo.php') ?>
</head>
<body class="<?= \Yii::$app->controller->id . '-' . \Yii::$app->controller->action->id ?>">
<?php $this->beginBody() ?>

Yükleniyor…
İptal
Kaydet