forked from LiveCarta/LiveCartaWP
LAW-5337
This commit is contained in:
@@ -44,7 +44,7 @@ $scripts = [];
|
||||
})(window,document,'script','dataLayer','GTM-K8LWZ6K');"]; ?>
|
||||
<?php $scripts[] = ['type' => 'comment', 'source' =>'End Google Tag Manager']; ?>
|
||||
<?php endif;?>
|
||||
<?php if(isset($_COOKIE['cookie_level']) && in_array($_COOKIE['cookie_level'],[1,2,3])):?>
|
||||
<?php if(isset($_COOKIE['cookie_level']) && in_array($_COOKIE['cookie_level'],['13'])):?>
|
||||
<?php foreach($scripts as $script):?>
|
||||
<?php switch($script['type']):
|
||||
case 'comment': ?>
|
||||
@@ -63,10 +63,12 @@ $scripts = [];
|
||||
<?php endswitch; ?>
|
||||
<?php endforeach;?>
|
||||
<?php endif; ?>
|
||||
<?php if(!isset($_COOKIE['cookie_level'])):?>
|
||||
<script>
|
||||
var scripts = <?php echo json_encode($scripts) ?>;
|
||||
</script>
|
||||
<script src="<?= get_lawcarta_url()?>/assets/track-enable">
|
||||
<?php endif; ?>
|
||||
<script>
|
||||
function support_format_webp() {
|
||||
var elem = document.createElement('canvas');
|
||||
|
||||
Reference in New Issue
Block a user