summaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-09-22 15:05:04 +0200
committerneoraider <devnull@localhost>2006-09-22 15:05:04 +0200
commitc8ef6f06beafe500b85cdb252477217d9e017114 (patch)
tree1a0c823073810509ad020c7d5716f06e48a2f399 /pages
parentd02a8a4f7f23bd63b8d541e3f4290b72c4e15ec0 (diff)
downloadneon-c8ef6f06beafe500b85cdb252477217d9e017114.tar
neon-c8ef6f06beafe500b85cdb252477217d9e017114.zip
Bugfix in messages.inc.php;
Provisorischen base-Seitentyp hinzugef?gt.
Diffstat (limited to 'pages')
-rw-r--r--pages/base/default.xml45
1 files changed, 45 insertions, 0 deletions
diff --git a/pages/base/default.xml b/pages/base/default.xml
new file mode 100644
index 0000000..b28aa56
--- /dev/null
+++ b/pages/base/default.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<page>
+ <info>
+ <name>base</name>
+ <template>phpexec</template>
+ <access>9:0</access>
+ <type>b</type>
+ </info>
+ <data>
+ <code>
+ <![CDATA[
+<?PHP
+ Uses('nav', 'pages', 'links');
+
+ 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 xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title><?PHP echo $config['title'] . $data['title']; ?></title>
+ <link rel="stylesheet" type="text/css" href="styles/<?PHP echo $GLOBALS['config']['default_style']; ?>/style.css" />
+ </head>
+ <body>
+ <div id="nav">
+ <?PHP echo $GLOBALS['nav']->ParseEntries(); ?>
+ </div>
+ <div id="content">
+ <?PHP
+ if($GLOBALS['pages']->HasWriteAccess($GLOBALS['page'], 'c') && $_GET['mode'] != 'edit') {
+ $backlink = $GLOBALS['links']->GetNeonLink($GLOBALS['page']);
+
+ echo '<a class="editlink" href="' . $GLOBALS['links']->GetNeonLink($GLOBALS['page'], 'mode=edit') . '">Bearbeiten</a>';
+ }
+
+ echo $GLOBALS['data']['content'];
+ ?>
+ </div>
+ </body>
+</html>
+ ]]>
+ </code>
+ </data>
+</page>