summaryrefslogtreecommitdiffstats
path: root/pages/base/default.xml
blob: c53779485f5be5e0c129c3331725dafaddbbb3f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 $GLOBALS['config']['title'] . $GLOBALS['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>