make remixicon local

This commit is contained in:
2024-02-04 10:16:51 +01:00
parent 7828553752
commit d53d0b1f54
11 changed files with 16522 additions and 8 deletions

View File

@@ -112,12 +112,12 @@ function getPage($page_name = null): array|false|string
$page_title = $page_name;
}
$dynastyle = "<style>";
$dynamic_style = "<style>";
if(isLoggedIn() && !empty($_SESSION["favorite_color"]) && is_int($_SESSION["favorite_color"]) && $_SESSION["favorite_color"] <= 4294967295){
$color = dechex($_SESSION["favorite_color"]);
$dynastyle .= "--root{ --favorite-color: #$color;";
$dynamic_style .= "--root{ --favorite-color: #$color;";
}
$dynastyle .= "</style>";
$dynamic_style .= "</style>";
$navpages = generateNavigation();
@@ -126,6 +126,6 @@ function getPage($page_name = null): array|false|string
$out = $skeleton;
$out = str_replace("__TEMPLATE__NAV__", $nav, $out);
$out = str_replace("__TEMPLATE__PAGE__", $page, $out);
$out = str_replace("__TEMPLATE__DYNASTYLE__", $dynastyle, $out);
$out = str_replace("__TEMPLATE__DYNASTYLE__", $dynamic_style, $out);
return str_replace("__TEMPLATE_PAGE_TITLE__", $page_title, $out);
}