diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 28 |
1 files changed, 18 insertions, 10 deletions
@@ -8,19 +8,27 @@ header('Content-type: text/html;charset=UTF-8'); - // provisional - $template = 'default'; - $style = $config['default_style']; - if($_GET['page']) $page = Unquote($_GET['page']); else $page = $config['home']; - $template_data = join('', file('templates/' . $template)); - $data = $pages->Get($page, 'c'); - echo Subst($template_data, array('title' => $config['title'] . $data['title'], - 'stylesheet' => 'styles/' . $style . '/style.css', - 'content' => $data['content'], - 'nav' => $nav->ParseEntries())); + echo '<?xml version="1.0" encoding="UTF-8" ?>'; ?> + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html> + <head> + <title><?PHP echo $config['title'] . $data['title']; ?></title> + <link rel="stylesheet" type="text/css" href="styles/<?PHP echo $config['default_style']; ?>/style.css" /> + </head> + <body> + <div id="nav"> + <?PHP echo $nav->ParseEntries(); ?> + </div> + <div id="content"> + <?PHP echo $data['content']; ?> + </div> + </body> +</html> |