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:
parent
e0f4125f34
commit
e86358a85a
1 changed files with 10 additions and 4 deletions
14
index.php
14
index.php
|
@ -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";
|
||||
|
||||
//////////
|
||||
|
||||
|
|
Loading…
Reference in a new issue