make privacy policy URL configurable
This commit is contained in:
parent
2303cc894e
commit
1154541d65
3 changed files with 10 additions and 2 deletions
|
@ -54,4 +54,9 @@ define("PAGINATION_PADDING", 5);
|
||||||
/**
|
/**
|
||||||
* used in sitemap (without trailing slash)
|
* used in sitemap (without trailing slash)
|
||||||
*/
|
*/
|
||||||
define("BASE_DOMAIN", "https://issues.matomo.org");
|
define("BASE_DOMAIN", "https://issues.matomo.org");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* URL to privacy policy (linked in footer)
|
||||||
|
*/
|
||||||
|
define("PRIVACY_POLICY_URL", "https://matomo.org/privacy-policy/");
|
|
@ -41,6 +41,7 @@ $container['view'] = function ($container) {
|
||||||
$view->getEnvironment()->addGlobal('githubRepository', GITHUB_REPOSITORY);
|
$view->getEnvironment()->addGlobal('githubRepository', GITHUB_REPOSITORY);
|
||||||
$view->getEnvironment()->addGlobal('matomoURL', MATOMO_URL);
|
$view->getEnvironment()->addGlobal('matomoURL', MATOMO_URL);
|
||||||
$view->getEnvironment()->addGlobal('matomoID', MATOMO_ID);
|
$view->getEnvironment()->addGlobal('matomoID', MATOMO_ID);
|
||||||
|
$view->getEnvironment()->addGlobal('privacyPolicyURL', PRIVACY_POLICY_URL);
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
};
|
};
|
||||||
|
|
|
@ -22,9 +22,11 @@
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
Powered by <a target="_blank" href="https://github.com/matomo-org/github-issues-mirror">GitHub Issue Mirror</a>
|
Powered by <a target="_blank" href="https://github.com/matomo-org/github-issues-mirror">GitHub Issue Mirror</a>
|
||||||
</div>
|
</div>
|
||||||
|
{% if privacyPolicyURL %}
|
||||||
<div class="col-md-6 text-right">
|
<div class="col-md-6 text-right">
|
||||||
<a href="https://piwik.org/privacy-policy/">Privacy Policy</a>
|
<a href="{{privacyPolicyURL}}">Privacy Policy</a>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Reference in a new issue