]*\ssrc\s*=\s*["\']([^"\']+)["\']#i', $raw, $m)) { $u = html_entity_decode($m[1], ENT_QUOTES | ENT_HTML5, 'UTF-8'); return $allowed($u) ? $u : null; } return null; } $embedUrl = familyHub_google_calendar_embed_url($rawEmbed); $fromIdOnly = false; if ($embedUrl === null && $calId !== '' && $calId !== 'your_calendar_id_here') { $embedUrl = 'https://calendar.google.com/calendar/embed?src=' . rawurlencode($calId); $fromIdOnly = true; } ?>

Calendar

Connect a shared family calendar by setting GOOGLE_CALENDAR_EMBED_CODE (embed URL or full <iframe> from Google Calendar) or GOOGLE_CALENDAR_ID in .env. See Google Calendar → calendar menu → Settings and sharingIntegrate calendar.

Showing calendar from GOOGLE_CALENDAR_ID. For more control (view, height), paste the embed URL or iframe into GOOGLE_CALENDAR_EMBED_CODE instead.