From 0449267b40d4c5a020d962b684548376f22b1794 Mon Sep 17 00:00:00 2001
From: g <>
Date: Fri, 26 Jun 2020 13:25:44 +0300
Subject: [PATCH 1/2] LAW-3451
---
environments/prod/wp-config-local.php | 3 +++
htdocs/wp-content/themes/lawcarta/functions.php | 11 +++++++++++
htdocs/wp-content/themes/lawcarta/header.php | 13 ++++++++++++-
3 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/environments/prod/wp-config-local.php b/environments/prod/wp-config-local.php
index 5f99b86..1a2a759 100644
--- a/environments/prod/wp-config-local.php
+++ b/environments/prod/wp-config-local.php
@@ -13,4 +13,7 @@ define('LAWCARTA_PORT', '');
define('LAWCARTA_ENVIRONMENT_NAME', 'prod');
+define('LAWCARTA_GA_CONFIG', 'UA-111488943-1');
+define('LIVECARTA_GA_CONFIG', 'UA-111488943-2');
+
$_SERVER['HTTPS'] = 'On';
\ No newline at end of file
diff --git a/htdocs/wp-content/themes/lawcarta/functions.php b/htdocs/wp-content/themes/lawcarta/functions.php
index 717cb5e..27c88cc 100644
--- a/htdocs/wp-content/themes/lawcarta/functions.php
+++ b/htdocs/wp-content/themes/lawcarta/functions.php
@@ -223,4 +223,15 @@ function get_lawcarta_url(){
}
return "$scheme$host$port";
+}
+
+function get_lawcarta_ga_config(){
+
+ $res = '';
+ if(wp_get_theme() == 'LawCarta'){
+ $res = LAWCARTA_GA_CONFIG;
+ }elseif(wp_get_theme() == 'LiveCarta'){
+ $res = LIVECARTA_GA_CONFIG;
+ }
+ return $res;
}
\ No newline at end of file
diff --git a/htdocs/wp-content/themes/lawcarta/header.php b/htdocs/wp-content/themes/lawcarta/header.php
index 19b2980..52d48e8 100644
--- a/htdocs/wp-content/themes/lawcarta/header.php
+++ b/htdocs/wp-content/themes/lawcarta/header.php
@@ -25,7 +25,7 @@ require_once 'inc/walker-nav-menu.php';
var lawCartaDomain = '= get_lawcarta_url()?>';
-
+
+
From 1ed0115d15c618013473bf157f3f81a8d33412ad Mon Sep 17 00:00:00 2001
From: g <>
Date: Fri, 26 Jun 2020 13:26:46 +0300
Subject: [PATCH 2/2] LAW-3451
---
htdocs/wp-content/themes/lawcarta/header.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/htdocs/wp-content/themes/lawcarta/header.php b/htdocs/wp-content/themes/lawcarta/header.php
index 52d48e8..bb582a1 100644
--- a/htdocs/wp-content/themes/lawcarta/header.php
+++ b/htdocs/wp-content/themes/lawcarta/header.php
@@ -25,7 +25,7 @@ require_once 'inc/walker-nav-menu.php';
var lawCartaDomain = '= get_lawcarta_url()?>';
-
+