diff options
author | neoraider <devnull@localhost> | 2006-04-09 20:07:04 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-04-09 20:07:04 +0200 |
commit | 98a8e34271bb39831f373fb1e320dbb0ef7bca23 (patch) | |
tree | 0e8e6475a15d8c39bdc1b4eb1540357bbc922c87 /index.php | |
parent | e90e38401db578819240d4827597cdec61d0727d (diff) | |
download | neon-98a8e34271bb39831f373fb1e320dbb0ef7bca23.tar neon-98a8e34271bb39831f373fb1e320dbb0ef7bca23.zip |
Template-Ansatz verworfen. Warnung in der pages.inc.php gefixt.
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> |