Commit 1dcfdbc8 authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix: handle array extraCss/extraJs in header and footer

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 0aa09744
......@@ -40,7 +40,13 @@ if (window.__themeAssets) {
}
</script>
<?php if (isset($extraJs)): ?>
<?php if (is_array($extraJs)): ?>
<?php foreach ($extraJs as $js): ?>
<script src="<?= $js ?>"></script>
<?php endforeach; ?>
<?php else: ?>
<script src="<?= $extraJs ?>"></script>
<?php endif; ?>
<?php endif; ?>
</body>
</html>
......@@ -9,8 +9,14 @@
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/public/css/app.css">
<?php if (isset($extraCss)): ?>
<?php if (is_array($extraCss)): ?>
<?php foreach ($extraCss as $css): ?>
<link rel="stylesheet" href="<?= $css ?>">
<?php endforeach; ?>
<?php else: ?>
<link rel="stylesheet" href="<?= $extraCss ?>">
<?php endif; ?>
<?php endif; ?>
<?php require_once __DIR__ . '/theme-loader.php'; ?>
</head>
<body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment