' . PHP_EOL; } // Scripts im Footer foreach ($GLOBALS['page_footer_scripts'] as $script) { $src = $script['src']; if (!empty($script['version'])) { $src .= (str_contains($src, '?') ? '&' : '?') . 'v=' . urlencode($script['version']); } $attr = ''; if ($script['async']) { $attr .= ' async'; } elseif ($script['defer']) { $attr .= ' defer'; } if ($script['type']) { $attr .= ' type="' . htmlspecialchars($script['type']) . '"'; } echo '' . PHP_EOL; } ?>