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