Commit c7b58a1e authored by Kjartan's avatar Kjartan

- page node's can now be promoted to the front page and the abstract will

  show instead of the whole content.
parent 4ec8a932
......@@ -105,6 +105,10 @@ function page_body($node) {
function page_view($node, $main = 0) {
global $theme;
if ($main) {
$theme->node($node, $main);
}
else {
/*
** Extract the page body. If body is dynamic (using PHP code), the body
** will be generated.
......@@ -119,6 +123,7 @@ function page_view($node, $main = 0) {
$output .= "<div align=\"right\">". $theme->links(link_node($node, $main)) ."</div>";
$theme->box($node->title, $output);
}
}
function page_form(&$node, &$help, &$error) {
......
......@@ -105,6 +105,10 @@ function page_body($node) {
function page_view($node, $main = 0) {
global $theme;
if ($main) {
$theme->node($node, $main);
}
else {
/*
** Extract the page body. If body is dynamic (using PHP code), the body
** will be generated.
......@@ -119,6 +123,7 @@ function page_view($node, $main = 0) {
$output .= "<div align=\"right\">". $theme->links(link_node($node, $main)) ."</div>";
$theme->box($node->title, $output);
}
}
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