From e6e0f3703ab6fc13a1ec9ce95de2bd398bcf881c Mon Sep 17 00:00:00 2001 From: neoraider Date: Mon, 4 Dec 2006 00:21:03 +0000 Subject: BBCode-Modul an das neue Template-Interface angepasst. --- module.xml | 1 - pages/editor/bbcode.xml | 36 ------------------------------------ templates/bbcode.inc.php | 23 +++++++++++++++++++++-- 3 files changed, 21 insertions(+), 39 deletions(-) delete mode 100644 pages/editor/bbcode.xml diff --git a/module.xml b/module.xml index 5485eac..cef3055 100644 --- a/module.xml +++ b/module.xml @@ -6,7 +6,6 @@ A little module that parses BBCode - bbcode bbcode diff --git a/pages/editor/bbcode.xml b/pages/editor/bbcode.xml deleted file mode 100644 index 4b65361..0000000 --- a/pages/editor/bbcode.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - bbcode - - 9:0 - e - - - - ' . $title . ''; -?> -
- - - - Titel:
-
- - -
- ]]> -
-
-
diff --git a/templates/bbcode.inc.php b/templates/bbcode.inc.php index e5de9ce..3c8212e 100644 --- a/templates/bbcode.inc.php +++ b/templates/bbcode.inc.php @@ -1,14 +1,33 @@ ' - ')); $content = '

' . $title . '

' . $GLOBALS['bbcode']->Parse($data['code']); + return array('title' => $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); } } -- cgit v1.2.3