Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
el3ab-Player
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
el3ab-Player
Commits
1dcfdbc8
Commit
1dcfdbc8
authored
May 27, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: handle array extraCss/extraJs in header and footer
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
0aa09744
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
footer.php
includes/footer.php
+6
-0
header.php
includes/header.php
+6
-0
No files found.
includes/footer.php
View file @
1dcfdbc8
...
@@ -40,7 +40,13 @@ if (window.__themeAssets) {
...
@@ -40,7 +40,13 @@ if (window.__themeAssets) {
}
}
</script>
</script>
<?php
if
(
isset
(
$extraJs
))
:
?>
<?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>
<script
src=
"
<?=
$extraJs
?>
"
></script>
<?php
endif
;
?>
<?php
endif
;
?>
<?php
endif
;
?>
</body>
</body>
</html>
</html>
includes/header.php
View file @
1dcfdbc8
...
@@ -9,8 +9,14 @@
...
@@ -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
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"
>
<link
rel=
"stylesheet"
href=
"/public/css/app.css"
>
<?php
if
(
isset
(
$extraCss
))
:
?>
<?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
?>
"
>
<link
rel=
"stylesheet"
href=
"
<?=
$extraCss
?>
"
>
<?php
endif
;
?>
<?php
endif
;
?>
<?php
endif
;
?>
<?php
require_once
__DIR__
.
'/theme-loader.php'
;
?>
<?php
require_once
__DIR__
.
'/theme-loader.php'
;
?>
</head>
</head>
<body>
<body>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment