From 3b7d2cb2fd40d744a2415a470b4e323d13dd1b63 Mon Sep 17 00:00:00 2001 From: neoraider Date: Mon, 4 Dec 2006 00:11:05 +0000 Subject: Nav-Seiten durch Inserts ersetzt; Editor-Seiten jetzt in Templates. --- templates/default.inc.php | 23 +++++++++++++++++++++-- templates/phpexec.inc.php | 19 ++++++++++++++++++- 2 files changed, 39 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/default.inc.php b/templates/default.inc.php index 12609c6..c416f44 100644 --- a/templates/default.inc.php +++ b/templates/default.inc.php @@ -1,8 +1,8 @@ $title, 'content' => $content); } + + function GetEditor($data) { + $title = 'Edit \'' . $data['_page'] . '\''; + + $content = '

' . $title . '

'; + $content .= '
'; + $content .= ''; + $content .= ''; + $content .= ''; + $content .= 'Titel:
'; + $content .= '
'; + $content .= ''; + $content .= ''; + $content .= '
'; + + return array('title' => $title, 'content' => $content); + } } $GLOBALS['templates']['default'] = new default_template; diff --git a/templates/phpexec.inc.php b/templates/phpexec.inc.php index 3e542df..18c33be 100644 --- a/templates/phpexec.inc.php +++ b/templates/phpexec.inc.php @@ -2,7 +2,7 @@ Uses('message', 'links'); class phpexec_template { - function Get($data) { + function GetPage($data) { $title = strtr($data['_page'], array(':' => ' - ')); ob_start(); @@ -14,6 +14,23 @@ return array('title' => $title, 'content' => $content); } + + function GetEditor($data) { + $title = 'Edit \'' . $data['_page'] . '\''; + + $content = '

' . $title . '

'; + $content .= '
'; + $content .= ''; + $content .= ''; + $content .= ''; + $content .= '
'; + $content .= ''; + $content .= ''; + $content .= '
'; + + return array('title' => $title, 'content' => $content); + } } $GLOBALS['templates']['phpexec'] = new phpexec_template; -- cgit v1.2.3