Cookie-Einstellungen in Footer aufnehmen
This commit is contained in:
+11
-1
@@ -108,6 +108,16 @@ function app_analytics_head_html(): string
|
||||
return '<link rel="stylesheet" href="assets/css/privacy-settings.css">' . "\n";
|
||||
}
|
||||
|
||||
function app_analytics_footer_settings_button_html(): string
|
||||
{
|
||||
if (app_matomo_configuration() === null) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return '<button type="button" class="footer-cookie-settings" data-analytics-settings>'
|
||||
. 'Cookie-Einstellungen</button>';
|
||||
}
|
||||
|
||||
function app_analytics_body_html(): string
|
||||
{
|
||||
$configuration = app_matomo_configuration();
|
||||
@@ -154,7 +164,7 @@ function app_analytics_body_html(): string
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<button type="button" class="analytics-consent-settings" id="analytics-consent-settings" hidden>Cookie-Einstellungen</button>
|
||||
<button type="button" class="analytics-consent-settings" id="analytics-consent-settings" data-analytics-settings hidden>Cookie-Einstellungen</button>
|
||||
HTML
|
||||
. "\n<script type=\"application/json\" id=\"analytics-configuration\">{$json}</script>\n"
|
||||
. '<script src="assets/js/privacy-settings.js" defer></script>' . "\n";
|
||||
|
||||
@@ -35,6 +35,7 @@ function app_public_legal_footer(): string
|
||||
. '<a class="legal-action-link" href="widerrufen.php">Vertrag widerrufen</a>'
|
||||
. '<a href="preise.php">Preise</a>'
|
||||
. '<a class="legal-action-link" href="kuendigen.php">Verträge hier kündigen</a>'
|
||||
. app_analytics_footer_settings_button_html()
|
||||
. '</footer>';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user