diff options
author | neoraider <devnull@localhost> | 2006-12-14 01:06:02 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-12-14 01:06:02 +0100 |
commit | 543336aef16562369c01992817f58e17144c9cad (patch) | |
tree | d49cd8549a836c740df7096ddcf7788ed7920c37 /templates | |
parent | 93e1133ee88b03e7cae7318cb19761e698e57b86 (diff) | |
download | neon-543336aef16562369c01992817f58e17144c9cad.tar neon-543336aef16562369c01992817f58e17144c9cad.zip |
Base-Type durch Subst-Erweiterungen unnoetig gemacht; Type-Konzept entfernt.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/default.inc.php | 8 | ||||
-rw-r--r-- | templates/phpexec.inc.php | 10 |
2 files changed, 16 insertions, 2 deletions
diff --git a/templates/default.inc.php b/templates/default.inc.php index a6fc876..9b94e66 100644 --- a/templates/default.inc.php +++ b/templates/default.inc.php @@ -2,6 +2,13 @@ Uses('links'); class default_template { + function GetTitle($data) { + if($data['title']) + return htmlspecialchars($data['title']); + + return strtr($data['_page'], array(':' => ' - ')); + } + function GetPage($data) { if($data['title']) $title = htmlspecialchars($data['title']); @@ -19,7 +26,6 @@ $content = '<h2>' . $title . '</h2>'; $content .= '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Edit') . '">'; $content .= '<input type="hidden" name="name" value="' . $data['_page'] . '" />'; - $content .= '<input type="hidden" name="type" value="' . $data['_type'] . '" />'; $content .= '<input type="hidden" name="backlink" value="' . htmlspecialchars($data['_backlink']) . '" />'; $content .= '{{Title}}: <input type="text" name="data_title" value="'; $content .= htmlspecialchars($data['title']) . '" size="70" /><br />'; diff --git a/templates/phpexec.inc.php b/templates/phpexec.inc.php index db8373a..52164a1 100644 --- a/templates/phpexec.inc.php +++ b/templates/phpexec.inc.php @@ -2,6 +2,15 @@ Uses('links'); class phpexec_template { + function GetTitle($data) { + return strtr($data['_page'], array(':' => ' - ')); + + //ob_start(); + + //$content = ob_get_contents(); + //ob_end_clean(); + } + function GetPage($data) { $title = strtr($data['_page'], array(':' => ' - ')); @@ -21,7 +30,6 @@ $content = '<h2>' . $title . '</h2>'; $content .= '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Edit') . '">'; $content .= '<input type="hidden" name="name" value="' . $data['_page'] . '" />'; - $content .= '<input type="hidden" name="type" value="' . $data['_type'] . '" />'; $content .= '<input type="hidden" name="backlink" value="' . htmlspecialchars($data['_backlink']) . '" />'; $content .= '<textarea name="data_code" class="pageedit spaced-bottom" rows="25" cols="70">'; $content .= htmlspecialchars($data['code']) . '</textarea><br />'; |