Merge pull request #6528 from gregory-p/wordpress

fix cookie level 3
This commit is contained in:
bivis
2022-04-13 21:22:32 +03:00
committed by GitHub

View File

@@ -44,7 +44,7 @@ $scripts = [];
})(window,document,'script','dataLayer','GTM-K8LWZ6K');"]; ?> })(window,document,'script','dataLayer','GTM-K8LWZ6K');"]; ?>
<?php $scripts[] = ['type' => 'comment', 'source' =>'End Google Tag Manager']; ?> <?php $scripts[] = ['type' => 'comment', 'source' =>'End Google Tag Manager']; ?>
<?php endif;?> <?php endif;?>
<?php if(isset($_COOKIE['cookie_level']) && in_array($_COOKIE['cookie_level'],['13'])):?> <?php if(isset($_COOKIE['cookie_level']) && in_array($_COOKIE['cookie_level'],['13','123'])):?>
<?php foreach($scripts as $script):?> <?php foreach($scripts as $script):?>
<?php switch($script['type']): <?php switch($script['type']):
case 'comment': ?> case 'comment': ?>