Skip to content

Commit

Permalink
Merge pull request #48 from RRZE-Webteam/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
rvdforst authored Jul 14, 2022
2 parents 5d858b8 + 396a227 commit a683d3e
Show file tree
Hide file tree
Showing 11 changed files with 279 additions and 258 deletions.
2 changes: 1 addition & 1 deletion build/banner.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/banner.js.map

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions includes/Consent/JavaScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ public function registerFooter()
true
);

$defaultHideBannerOnPages = [
tos()->endpointUrl('imprint'),
tos()->endpointUrl('accessibility'),
tos()->endpointUrl('privacy'),
];
$hideBannerOnUrls = consent()->getOption('banner', 'hide_on_url');
$hideBannerOnUrls = explode(PHP_EOL, $hideBannerOnUrls);
$hideBannerOnUrls = array_merge($hideBannerOnUrls, $defaultHideBannerOnPages);

$jsConfig = [
'ajaxURL' => admin_url('admin-ajax.php'),
'animation' => false, //bannerAnimation
Expand All @@ -97,11 +106,7 @@ public function registerFooter()
'cookieBeforeConsent' => false,
'cookiesForBots' => consent()->isCookieForBotsActive(),
'cookieVersion' => $this->cookieVersion,
'hideBannerOnPages' => [
tos()->endpointUrl('imprint'),
tos()->endpointUrl('accessibility'),
tos()->endpointUrl('privacy'),
],
'hideBannerOnUrls' => $hideBannerOnUrls,
'respectDoNotTrack' => consent()->isRespectDoNotTrackActive(),
'hasOnlyEssentialCookies' => consent()->hasOnlyEssentialCookies(),
'reloadAfterConsent' => false,
Expand Down
Binary file modified languages/rrze-legal-de_DE.mo
Binary file not shown.
Loading

0 comments on commit a683d3e

Please sign in to comment.