From 41d7e328ba387bcbce3b60b0115434adb17401df Mon Sep 17 00:00:00 2001 From: Ramon Date: Wed, 6 Nov 2019 15:20:52 -0300 Subject: [PATCH 1/4] adicionada a chamada do script do cookiePolicy no footer --- application/views/partials/footer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/views/partials/footer.php b/application/views/partials/footer.php index 4a63610..cccac56 100644 --- a/application/views/partials/footer.php +++ b/application/views/partials/footer.php @@ -113,5 +113,6 @@ function gtag(){dataLayer.push(arguments);} gtag('config', 'UA-604844-1'); + From 4e80a9ea4a595d3162e2b0b4fcf3bd157341ad15 Mon Sep 17 00:00:00 2001 From: Ramon Date: Thu, 14 Nov 2019 11:19:17 -0300 Subject: [PATCH 2/4] inseridas variaveis de ambiente que facilitam ligar e desligar banner de cookies --- application/config/constants.php | 6 ++++++ application/views/partials/footer.php | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/application/config/constants.php b/application/config/constants.php index f9491ea..63f139d 100644 --- a/application/config/constants.php +++ b/application/config/constants.php @@ -236,3 +236,9 @@ // We dont need these variables any more. unset($base_uri, $base_url); + +// Turn cookiePolicy script ON or OFF. True = ON, False = OFF. And define script url. +define('COOKIE_POLICY_SCRIPT_STATUS', true); +define('COOKIE_POLICY_SCRIPT_URL', 'https://static.scielo.org/js/cookiePolicy.min.js'); + + diff --git a/application/views/partials/footer.php b/application/views/partials/footer.php index cccac56..1079ce5 100644 --- a/application/views/partials/footer.php +++ b/application/views/partials/footer.php @@ -113,6 +113,10 @@ function gtag(){dataLayer.push(arguments);} gtag('config', 'UA-604844-1'); - + + + + + From 32086d177461d5e7acf2ce2acb854bda088c2d9c Mon Sep 17 00:00:00 2001 From: Ramon Date: Tue, 19 Nov 2019 16:04:16 -0300 Subject: [PATCH 3/4] ajustada a variavel de ambiente seguindo orientacao de joffily e jamil --- application/config/constants.php | 4 ++-- application/views/partials/footer.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/config/constants.php b/application/config/constants.php index 63f139d..6601b79 100644 --- a/application/config/constants.php +++ b/application/config/constants.php @@ -238,7 +238,7 @@ unset($base_uri, $base_url); // Turn cookiePolicy script ON or OFF. True = ON, False = OFF. And define script url. -define('COOKIE_POLICY_SCRIPT_STATUS', true); -define('COOKIE_POLICY_SCRIPT_URL', 'https://static.scielo.org/js/cookiePolicy.min.js'); +define('COOKIE_POLICY_ENABLED', getenv('COOKIE_POLICY_ENABLED')?getenv('COOKIE_POLICY_ENABLED'): true); +define('COOKIE_POLICY_SCRIPT_URL', getenv('COOKIE_POLICY_SCRIPT_URL')?getenv('COOKIE_POLICY_SCRIPT_URL'):'https://static.scielo.org/js/cookiePolicy.min.js'); diff --git a/application/views/partials/footer.php b/application/views/partials/footer.php index 1079ce5..8410830 100644 --- a/application/views/partials/footer.php +++ b/application/views/partials/footer.php @@ -114,7 +114,7 @@ function gtag(){dataLayer.push(arguments);} gtag('config', 'UA-604844-1'); - + From 4bfd0d90ed51999b44b4f50167f0035bb81c718c Mon Sep 17 00:00:00 2001 From: Ramon Date: Wed, 20 Nov 2019 17:04:00 -0300 Subject: [PATCH 4/4] =?UTF-8?q?inclusao=20do=20filter=5Fvalidade=5Fboolean?= =?UTF-8?q?=20na=20defini=C3=A7=C3=A3o=20de=20vari=C3=A1vel=20de=20ambient?= =?UTF-8?q?e=20conforme=20solicitado.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/config/constants.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/config/constants.php b/application/config/constants.php index 6601b79..36fb8f9 100644 --- a/application/config/constants.php +++ b/application/config/constants.php @@ -238,7 +238,7 @@ unset($base_uri, $base_url); // Turn cookiePolicy script ON or OFF. True = ON, False = OFF. And define script url. -define('COOKIE_POLICY_ENABLED', getenv('COOKIE_POLICY_ENABLED')?getenv('COOKIE_POLICY_ENABLED'): true); +define("COOKIE_POLICY_ENABLED", getenv("COOKIE_POLICY_ENABLED") ? filter_var(getenv("COOKIE_POLICY_ENABLED"), FILTER_VALIDATE_BOOLEAN) : TRUE); define('COOKIE_POLICY_SCRIPT_URL', getenv('COOKIE_POLICY_SCRIPT_URL')?getenv('COOKIE_POLICY_SCRIPT_URL'):'https://static.scielo.org/js/cookiePolicy.min.js');