Commit 7e60456c authored by Dries's avatar Dries

- Page module simplification.  Patch by Nick Berendsen.

  > page.module:
  > -output is in theme("node") instead of theme("box"). This is a must for the
  > outline to work. The only difference is that the links are rendered by the
  > theme_node function instead of in the page_view. The links _are_ the same.
parent 9fbab016
......@@ -120,17 +120,7 @@ function page_view($node, $main = 0) {
$node->teaser = $node->body = ob_get_contents();
ob_end_clean();
}
if ($main) {
theme("node", $node, $main);
}
else {
/*
** Add the node specific links:
*/
theme("box", $node->title, "$node->body<div style=\"text-align: right;\">". theme("links", link_node($node, $main)) ."</div>");
}
theme("node", $node, $main);
}
function page_form(&$node, &$help, &$error) {
......
......@@ -120,17 +120,7 @@ function page_view($node, $main = 0) {
$node->teaser = $node->body = ob_get_contents();
ob_end_clean();
}
if ($main) {
theme("node", $node, $main);
}
else {
/*
** Add the node specific links:
*/
theme("box", $node->title, "$node->body<div style=\"text-align: right;\">". theme("links", link_node($node, $main)) ."</div>");
}
theme("node", $node, $main);
}
function page_form(&$node, &$help, &$error) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment