1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

Added url detection to $css

This commit is contained in:
Starbeamrainbowlabs 2014-12-25 20:41:36 +00:00
parent e0f4125f34
commit e86358a85a

View file

@ -227,10 +227,16 @@ function renderpage($title, $content, $minimal = false)
<html><head>
<meta charset='utf-8' />
<title>$title</title>
<link rel='shortcut icon' href='$favicon' />
<style>$css</style>
</head><body>
";
<link rel='shortcut icon' href='$favicon' />";
if(preg_match("/^[^\/]*\/\/|^\//", $cs))
{
$html .= "\n\t\t<link rel='stylesheet' href='$css' />\n";
}
else
{
$html .= "\n\t\t<style>$css</style>\n";
}
$html .= "</head><body>\n";
//////////