1
0
Fork 0

make privacy policy URL configurable

This commit is contained in:
Lukas Winkler 2018-02-10 18:10:04 +01:00
parent 2303cc894e
commit 1154541d65
No known key found for this signature in database
GPG key ID: 94AFBE7C2656A5B5
3 changed files with 10 additions and 2 deletions

View file

@ -55,3 +55,8 @@ define("PAGINATION_PADDING", 5);
* used in sitemap (without trailing slash)
*/
define("BASE_DOMAIN", "https://issues.matomo.org");
/**
* URL to privacy policy (linked in footer)
*/
define("PRIVACY_POLICY_URL", "https://matomo.org/privacy-policy/");

View file

@ -41,6 +41,7 @@ $container['view'] = function ($container) {
$view->getEnvironment()->addGlobal('githubRepository', GITHUB_REPOSITORY);
$view->getEnvironment()->addGlobal('matomoURL', MATOMO_URL);
$view->getEnvironment()->addGlobal('matomoID', MATOMO_ID);
$view->getEnvironment()->addGlobal('privacyPolicyURL', PRIVACY_POLICY_URL);
return $view;
};

View file

@ -22,9 +22,11 @@
<div class="col-md-6">
Powered by <a target="_blank" href="https://github.com/matomo-org/github-issues-mirror">GitHub Issue Mirror</a>
</div>
{% if privacyPolicyURL %}
<div class="col-md-6 text-right">
<a href="https://piwik.org/privacy-policy/">Privacy Policy</a>
<a href="{{privacyPolicyURL}}">Privacy Policy</a>
</div>
{% endif %}
</div>
</div>