From 525dadd136642e497bb793fa1cf1536fe7f5a55b Mon Sep 17 00:00:00 2001 From: pero1203 Date: Wed, 16 Jun 2021 09:48:43 +0200 Subject: [PATCH] Popravek aai simple frontenda - cookie notice, dodana google analytics koda --- admin/survey/index.php | 7 +++++++ frontend/simple/classes/DisplayController.php | 16 ++++++++++++++++ frontend/simple/css/style.css | 12 +++++++++--- .../sass/frontend_simple/modules/cookie.scss | 15 ++++++++++++--- 4 files changed, 44 insertions(+), 6 deletions(-) diff --git a/admin/survey/index.php b/admin/survey/index.php index 60a1c2713..ac3b2f7c1 100644 --- a/admin/survey/index.php +++ b/admin/survey/index.php @@ -74,6 +74,13 @@ /**************** HEAD ****************/ echo ''; + // Google analytics + if($site_domain == 'www.1ka.si' && $site_url == 'https://www.1ka.si/'){ + echo ' + + '; + } + $sqlv = sisplet_query("SELECT value FROM misc WHERE what='version'"); $rowv = mysqli_fetch_array($sqlv); diff --git a/frontend/simple/classes/DisplayController.php b/frontend/simple/classes/DisplayController.php index af264c783..8d8344170 100644 --- a/frontend/simple/classes/DisplayController.php +++ b/frontend/simple/classes/DisplayController.php @@ -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 ' + + '; + } + echo ' '; echo ' '; diff --git a/frontend/simple/css/style.css b/frontend/simple/css/style.css index c7b3c75a0..c88cd59c6 100644 --- a/frontend/simple/css/style.css +++ b/frontend/simple/css/style.css @@ -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; diff --git a/resources/sass/frontend_simple/modules/cookie.scss b/resources/sass/frontend_simple/modules/cookie.scss index 2c181c248..e57835bb0 100644 --- a/resources/sass/frontend_simple/modules/cookie.scss +++ b/resources/sass/frontend_simple/modules/cookie.scss @@ -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{