forked from Adleraci/adlerka.top
make remixicon local
This commit is contained in:
@@ -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);
|
||||
}
|
Reference in New Issue
Block a user