From 5ba5cf362b6470e66ed975209f484e2887f9ccc4 Mon Sep 17 00:00:00 2001 From: g <> Date: Tue, 17 Mar 2020 12:46:24 +0300 Subject: [PATCH] LAW-3197 --- environments/demo/wp-config-local.php | 2 ++ environments/dev1/wp-config-local.php | 2 ++ environments/local/wp-config-local.php | 2 ++ environments/prod/wp-config-local.php | 2 ++ environments/qa/wp-config-local.php | 2 ++ htdocs/wp-content/themes/lawcarta/header.php | 17 +++++++++++++++++ 6 files changed, 27 insertions(+) diff --git a/environments/demo/wp-config-local.php b/environments/demo/wp-config-local.php index 727c479..03e31e9 100644 --- a/environments/demo/wp-config-local.php +++ b/environments/demo/wp-config-local.php @@ -13,4 +13,6 @@ define('LAWCARTA_PORT', ''); define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app-demo.lawcarta.com/v1/event/request'); define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-demo.lawcarta.com/v1/event/response'); +define('LAWCARTA_ENVIRONMENT_NAME', 'demo'); + $_SERVER['HTTPS'] = 'On'; diff --git a/environments/dev1/wp-config-local.php b/environments/dev1/wp-config-local.php index 47ce0fc..8d609b7 100644 --- a/environments/dev1/wp-config-local.php +++ b/environments/dev1/wp-config-local.php @@ -10,4 +10,6 @@ define('DOMAIN_CURRENT_SITE', 'dev1.lawcarta.com'); define('LAWCARTA_SUBDOMAIN', 'app-dev1'); define('LAWCARTA_PORT', ''); +define('LAWCARTA_ENVIRONMENT_NAME', 'dev'); + $_SERVER['HTTPS'] = 'On'; \ No newline at end of file diff --git a/environments/local/wp-config-local.php b/environments/local/wp-config-local.php index 2ec9ee3..667cd6a 100644 --- a/environments/local/wp-config-local.php +++ b/environments/local/wp-config-local.php @@ -10,6 +10,8 @@ define('DOMAIN_CURRENT_SITE', 'lawcarta.loc'); define('LAWCARTA_SUBDOMAIN', 'app'); define('LAWCARTA_PORT', ''); +define('LAWCARTA_ENVIRONMENT_NAME', 'local'); + $_SERVER['HTTPS'] = 'On'; define('LAWCARTA_WP_REST_API_REQUEST_URL', 'https://app-dev1.lawcarta.com/v1/event/request'); diff --git a/environments/prod/wp-config-local.php b/environments/prod/wp-config-local.php index 339ed7c..5f99b86 100644 --- a/environments/prod/wp-config-local.php +++ b/environments/prod/wp-config-local.php @@ -11,4 +11,6 @@ define('DOMAIN_CURRENT_SITE', 'lawcarta.com'); define('LAWCARTA_SUBDOMAIN', 'app'); define('LAWCARTA_PORT', ''); +define('LAWCARTA_ENVIRONMENT_NAME', 'prod'); + $_SERVER['HTTPS'] = 'On'; \ No newline at end of file diff --git a/environments/qa/wp-config-local.php b/environments/qa/wp-config-local.php index 996e30f..d146779 100644 --- a/environments/qa/wp-config-local.php +++ b/environments/qa/wp-config-local.php @@ -10,4 +10,6 @@ define('DOMAIN_CURRENT_SITE', 'qa.lawcarta.net'); define('LAWCARTA_SUBDOMAIN', 'app-qa'); define('LAWCARTA_PORT', ''); +define('LAWCARTA_ENVIRONMENT_NAME', 'qa'); + $_SERVER['HTTPS'] = 'On'; \ 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 6d22c26..9d742c0 100644 --- a/htdocs/wp-content/themes/lawcarta/header.php +++ b/htdocs/wp-content/themes/lawcarta/header.php @@ -25,6 +25,23 @@ require_once 'inc/walker-nav-menu.php'; var lawCartaDomain = ''; + + + +