Skip to content

Commit

Permalink
Merge pull request #138 from paratiuid/tk136
Browse files Browse the repository at this point in the history
adicionada a chamada do script do cookiePolicy no footer
  • Loading branch information
robertatakenaka authored Nov 21, 2019
2 parents 8c79223 + 4bfd0d9 commit d73654e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions application/config/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -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_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');


5 changes: 5 additions & 0 deletions application/views/partials/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,10 @@ function gtag(){dataLayer.push(arguments);}

gtag('config', 'UA-604844-1');
</script>

<?php if (COOKIE_POLICY_ENABLED){ ?>
<script src="<?= COOKIE_POLICY_SCRIPT_URL ?>" type="text/javascript" charset="utf-8"></script>
<?php }?>

</body>
</html>

0 comments on commit d73654e

Please sign in to comment.