Commit 48c7a9792a50d74d90c7a8b0150696f8775cb704
1 parent
d9f4d81f
Подредактировал логику работы Cookie модалки
Showing
1 changed file
with
11 additions
and
3 deletions
Show diff stats
frontend/views/layouts/main.php
| ... | ... | @@ -777,22 +777,30 @@ |
| 777 | 777 | <!-- *** FOOTER END *** --> |
| 778 | 778 | |
| 779 | 779 | <span id="back-to-top" title="<?=\Yii::t('app', 'Back to top')?>"><i class="fa fa-arrow-up"></i></span> |
| 780 | +<?php | |
| 781 | + | |
| 782 | +if (!isset($_COOKIE[ 'sowCookieModal' ])) { | |
| 780 | 783 | |
| 784 | +?> | |
| 781 | 785 | <div class="cookie-modal"> |
| 782 | 786 | <div class="container"> |
| 783 | 787 | <div class="row"> |
| 784 | 788 | <div class="col-xs-12"> |
| 785 | 789 | <div class="cokeis-close"></div> |
| 786 | 790 | <p> |
| 787 | - <?php | |
| 788 | - echo \Yii::t('app', 'cookie-text') | |
| 789 | - ?> | |
| 791 | + <?php | |
| 792 | + echo \Yii::t('app', 'cookie-text') | |
| 793 | + ?> | |
| 790 | 794 | </p> |
| 791 | 795 | </div> |
| 792 | 796 | </div> |
| 793 | 797 | </div> |
| 794 | 798 | </div> |
| 795 | 799 | </div> |
| 800 | + <?php | |
| 801 | + } | |
| 802 | + | |
| 803 | + ?> | |
| 796 | 804 | <script id="dsq-count-scr" src="//http-t13-artweb-com-ua.disqus.com/count.js" async></script> |
| 797 | 805 | <!-- <script id="dsq-count-scr" src="//new-kbenergy-test.disqus.com/count.js" async></script>--> |
| 798 | 806 | ... | ... |