summaryrefslogtreecommitdiff
path: root/node.php
diff options
context:
space:
mode:
Diffstat (limited to 'node.php')
-rw-r--r--node.php56
1 files changed, 8 insertions, 48 deletions
diff --git a/node.php b/node.php
index e01fc9814..48ceb3dcb 100644
--- a/node.php
+++ b/node.php
@@ -10,56 +10,16 @@ function node_render($node) {
if (user_access("access content")) {
+ $theme->header(check_output($node->title));
+
+ node_view($node);
+
if ($node->comment) {
- switch($op) {
- case t("Preview comment"):
- $theme->header();
- comment_preview($edit);
- $theme->footer();
- break;
- case t("Post comment"):
- comment_post($edit);
- $theme->header(check_output($node->title));
- node_view($node);
- comment_render($edit[id], $cid);
- $theme->footer();
- break;
- case "comment":
- $theme->header();
- comment_reply(check_query($cid), check_query($id));
- $theme->footer();
- break;
- case "reply":
- $theme->header();
- comment_reply(check_query($pid), check_query($id));
- $theme->footer();
- break;
- case t("Update settings"):
- comment_settings(check_query($mode), check_query($order), check_query($threshold));
- $theme->header(check_output($node->title));
- node_view($node);
- comment_render($id, $cid);
- $theme->footer();
- break;
- case t("Update ratings"):
- comment_moderate($moderate["comment"]);
- $theme->header(check_output($node->title));
- node_view($node);
- comment_render($id, $cid);
- $theme->footer();
- break;
- default:
- $theme->header(check_output($node->title));
- node_view($node);
- comment_render($id, $cid);
- $theme->footer();
- }
- }
- else {
- $theme->header();
- node_view($node);
- $theme->footer();
+ comment_render($id, $cid);
}
+
+ $theme->footer();
+
}
else {
$theme->header();