Added config var for css, and also added page var to pick styles on the fly for testing
This commit is contained in:
parent
51b1df4b64
commit
e843a93d45
|
@ -8,4 +8,7 @@ $site_root="https://example.com";
|
||||||
//Local base root for app files
|
//Local base root for app files
|
||||||
$doc_root="./";
|
$doc_root="./";
|
||||||
|
|
||||||
|
//Site style
|
||||||
|
// site is the default. Specify something else here to switch
|
||||||
|
//$site_style="site";
|
||||||
?>
|
?>
|
||||||
|
|
12
wiki.php
12
wiki.php
|
@ -3,16 +3,26 @@
|
||||||
include('config.php');
|
include('config.php');
|
||||||
|
|
||||||
$page = $_GET['page'];
|
$page = $_GET['page'];
|
||||||
|
$style = $_GET['style'];
|
||||||
|
|
||||||
if ( $page == "") {
|
if ( $page == "") {
|
||||||
$page = "main";
|
$page = "main";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $style == "") {
|
||||||
|
if ( $site_style == "") {
|
||||||
|
$site_style="site";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$site_style=$style;
|
||||||
|
}
|
||||||
|
|
||||||
print "<!DOCTYPE html>
|
print "<!DOCTYPE html>
|
||||||
<html lang='en'>
|
<html lang='en'>
|
||||||
<head>
|
<head>
|
||||||
<title>$site_name - $page</title>
|
<title>$site_name - $page</title>
|
||||||
<link rel='stylesheet' type='text/css' href='$site_root/includes/site.css'>
|
<link rel='stylesheet' type='text/css' href='$site_root/includes/$site_style.css'>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Begin Header -->
|
<!-- Begin Header -->
|
||||||
|
|
Loading…
Reference in New Issue