' - '));
}
function GetPage($data) {
if($data['title'])
$title = htmlspecialchars($data['title']);
else
$title = strtr($data['_page'], array(':' => ' - '));
$content = '
' . $title . '
' . $GLOBALS['bbcode']->Parse($data['code']);
return array('title' => $title, 'content' => $content);
}
function GetEditor($data) {
$title = 'Edit \'' . $data['_page'] . '\'';
$content = '' . $title . '
';
$content .= '';
return array('title' => $title, 'content' => $content);
}
}
$GLOBALS['templates']['bbcode'] = new bbcode_template;
?>