motorradig2027/motorradig/views/activities.php
torsten 6ad16474ac Externe Inhalte: Google Maps bei Freigabe direkt laden
privacy_embed() erhaelt autoLoad (Standard fuer Karten): liegt eine
Freigabe fuer externe Inhalte vor, wird der iframe sofort ausgegeben.
Ohne Freigabe bleibt der Platzhalter blockierend. YouTube bleibt
Zwei-Klick. Hinweistexte entsprechend angepasst.
2026-11-25 00:38:08 +01:00

34 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="container text-center mt-5">
<h1 class="text-center text-light">Aktivitäten</h1>
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-body">
<div style="width:100%;font-family:Nunito;font-size: 1.2rem;">
<?= $content ?>
</div>
</div>
</div>
</div>
</div>
<?php
// Eine Karte mit beiden Markern: Fußweg vom Parkplatz (A) zum Stammtisch (B).
$mapUrl = 'https://www.google.com/maps?saddr=Parkplatz,+Gerricusstra%C3%9Fe,+40625+D%C3%BCsseldorf'
. '&daddr=Schumacher+Gerresheim,+K%C3%B6lner+Tor+8,+40625+D%C3%BCsseldorf'
. '&dirflg=w&z=17&hl=de&output=embed';
?>
<div class="mt-5">
<?= privacy_embed(
$mapUrl,
'Google Maps – Stammtisch-Location & Parkplatz',
'Die Karte wird erst nach deiner Freigabe für externe Inhalte von Google geladen. Dabei werden Daten an Google übertragen.',
'map'
) ?>
<p class="text-light small">
A = Parkplatz Gerricusstraße · B = Stammtisch, Schumacher Gerresheim, Kölner Tor 8
</p>
</div>
</div>