Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/Views/auth/forgot-password.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<style>
body { font-family: system-ui, -apple-system, sans-serif; }
</style>
<?php require __DIR__ . '/partials/custom-css.php'; ?>
</head>
<body class="bg-gray-50 dark:bg-gray-900">

Expand Down
1 change: 1 addition & 0 deletions app/Views/auth/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<style>
body { font-family: system-ui, -apple-system, sans-serif; }
</style>
<?php require __DIR__ . '/partials/custom-css.php'; ?>
</head>
<body class="bg-gray-50">

Expand Down
13 changes: 13 additions & 0 deletions app/Views/auth/partials/custom-css.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

use App\Support\ConfigStore;
use App\Support\ContentSanitizer;

$customCss = ConfigStore::get('advanced.custom_header_css', '');
$customCss = is_string($customCss) ? ContentSanitizer::normalizeExternalAssets($customCss) : $customCss;
if (!empty($customCss)):
?>
<style>
<?= $customCss ?>
</style>
<?php endif; ?>
1 change: 1 addition & 0 deletions app/Views/auth/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<style>
body { font-family: system-ui, -apple-system, sans-serif; }
</style>
<?php require __DIR__ . '/partials/custom-css.php'; ?>
</head>
<body class="bg-gray-50">

Expand Down
1 change: 1 addition & 0 deletions app/Views/auth/register_success.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<style>
body { font-family: system-ui, -apple-system, sans-serif; }
</style>
<?php require __DIR__ . '/partials/custom-css.php'; ?>
</head>
<body class="bg-gray-50 dark:bg-gray-900">

Expand Down
1 change: 1 addition & 0 deletions app/Views/auth/reset-password.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<style>
body { font-family: system-ui, -apple-system, sans-serif; }
</style>
<?php require __DIR__ . '/partials/custom-css.php'; ?>
</head>
<body class="bg-gray-50 dark:bg-gray-900">

Expand Down
12 changes: 2 additions & 10 deletions app/Views/frontend/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -1262,16 +1262,8 @@
<?= $additional_css ?? '' ?>
</style>

<?php
// Load custom CSS from settings
$customCss = ConfigStore::get('advanced.custom_header_css', '');
$customCss = is_string($customCss) ? ContentSanitizer::normalizeExternalAssets($customCss) : $customCss;
if (!empty($customCss)):
?>
<style>
<?= $customCss ?>
</style>
<?php endif; ?>
<!-- Load custom CSS from settings -->
<?php require __DIR__ . '/../auth/partials/custom-css.php'; ?>

<?php
// Load custom JavaScript from settings (granular by cookie category)
Expand Down