Commit 701eaaed16c69860b39ca3ea39fec873a19a7022

Authored by alex
1 parent bc81112d

add Cookie modal on footer

Showing 2 changed files with 11 additions and 5 deletions   Show diff stats
frontend/config/main.php
1 1 <?php
2 2 use artbox\core\components\SeoComponent;
3   - #use common\components\SeoComponent;
4 3 use frontend\components\UrlManager;
5 4 use common\models\Alias;
6 5  
... ... @@ -354,6 +353,7 @@
354 353  
355 354 ],
356 355 'components' => [
  356 +
357 357 'request' => [
358 358 'csrfParam' => '_csrf-frontend',
359 359 'baseUrl' => '',
... ...
frontend/views/layouts/main.php
... ... @@ -254,23 +254,29 @@ height=&quot;0&quot; width=&quot;0&quot; style=&quot;display:none;visibility:hidden&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt;
254 254 <div class="txt-success"><span><?=\Yii::t('app','Message wasn`t send');?></span>
255 255 <p><?=\Yii::t('app','Fill tel/name');?></p></div>
256 256 </div>
  257 +<?php
  258 +
  259 +if (!isset($_COOKIE['sowCookieModal'])) {
257 260  
  261 + ?>
258 262 <div class="cookie-modal">
259 263 <div class="container">
260 264 <div class="row">
261 265 <div class="col-xs-12">
262 266 <div class="cokeis-close"></div>
263 267 <p>
264   - <?php
265   - echo \Yii::t('app', 'cookie-text')
266   - ?>
  268 + <?php
  269 + echo \Yii::t('app', 'cookie-text')
  270 + ?>
267 271 </p>
268 272 </div>
269 273 </div>
270 274 </div>
271 275 </div>
272 276  
273   -
  277 + <?php
  278 +}
  279 + ?>
274 280  
275 281 <?php $this->endBody() ?>
276 282 </body>
... ...