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
|
||||
$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');
|
||||
|
||||
$page = $_GET['page'];
|
||||
$style = $_GET['style'];
|
||||
|
||||
if ( $page == "") {
|
||||
$page = "main";
|
||||
}
|
||||
|
||||
if ( $style == "") {
|
||||
if ( $site_style == "") {
|
||||
$site_style="site";
|
||||
}
|
||||
}
|
||||
else {
|
||||
$site_style=$style;
|
||||
}
|
||||
|
||||
print "<!DOCTYPE html>
|
||||
<html lang='en'>
|
||||
<head>
|
||||
<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>
|
||||
<body>
|
||||
<!-- Begin Header -->
|
||||
|
|
Loading…
Reference in New Issue