Popravek aai simple frontenda - cookie notice, dodana google analytics koda

This commit is contained in:
pero1203 2021-06-16 09:48:43 +02:00
parent c6cdb75392
commit 525dadd136
4 changed files with 44 additions and 6 deletions

View File

@ -74,6 +74,13 @@
/**************** HEAD ****************/
echo '<head>';
// Google analytics
if($site_domain == 'www.1ka.si' && $site_url == 'https://www.1ka.si/'){
echo '<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KS6CJHL" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->';
}
$sqlv = sisplet_query("SELECT value FROM misc WHERE what='version'");
$rowv = mysqli_fetch_array($sqlv);

View File

@ -52,6 +52,22 @@ class DisplayController{
global $site_url;
global $app_settings;
global $lang;
global $aai_instalacija;
// Google analytics za AAI
if(isset($aai_instalacija) && $aai_instalacija == true){
echo '<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-141542153-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(\'js\', new Date());
gtag(\'config\', \'UA-141542153-2\');
</script>';
}
echo ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
echo ' <meta charset="utf-8">';

View File

@ -244,9 +244,8 @@ footer .footer_content .col .logo_holder img {
height: auto;
box-sizing: border-box;
padding: 15px 20px;
background-color: white;
border-top: 1px #666 solid;
box-shadow: 0px 0px 5px 1px #999;
color: white;
background-color: rgba(96, 96, 96, 0.8);
}
.cookie_notice .left {
margin-right: 50px;
@ -256,6 +255,13 @@ footer .footer_content .col .logo_holder img {
margin: 5px 0;
line-height: 22px;
}
.cookie_notice .left a {
color: white;
font-weight: bold;
}
.cookie_notice .left a:hover {
color: white;
}
.cookie_notice .right button {
padding: 13px;
font-weight: 600;

View File

@ -12,9 +12,9 @@
box-sizing: border-box;
padding: 15px 20px;
background-color: white;
border-top: 1px #666 solid;
box-shadow: 0px 0px 5px 1px #999;
color: white;
background-color: rgba(96,96,96,.8);
.left{
margin-right: 50px;
@ -25,6 +25,15 @@
margin: 5px 0;
line-height: 22px;
}
a{
color: white;
font-weight: bold;
&:hover{
color: white;
}
}
}
.right{