diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-09-11 17:53:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-09-11 17:53:45 +0000 |
commit | d81f159c633d558fc12c4df0126e8df8e7163fe3 (patch) | |
tree | 77c96b09c4ae3e4ad7efa3fa9c413b1b0c1d92d4 /modules | |
parent | b9633dcdede3dcc3e9466382dbed6b1fb7603bee (diff) | |
download | brdo-d81f159c633d558fc12c4df0126e8df8e7163fe3.tar.gz brdo-d81f159c633d558fc12c4df0126e8df8e7163fe3.tar.bz2 |
- Committed Nick's path improvements; you can now control the look and feel
of the breadcrumb navigation.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/book.module | 10 | ||||
-rw-r--r-- | modules/book/book.module | 10 |
2 files changed, 6 insertions, 14 deletions
diff --git a/modules/book.module b/modules/book.module index a0f52f5e1..0128d84c4 100644 --- a/modules/book.module +++ b/modules/book.module @@ -416,12 +416,9 @@ function book_view($node, $main = 0) { foreach ($path as $level) { $trail[] = l($level->title, "node/view/$level->nid"); } + theme("path", $trail); $output .= "<div class=\"book\">"; - $output .= "<div class=\"path\">". implode($trail, " » ") ."</div>"; - $output .= "<div class=\"title\">$node->title</div>"; - $output .= "<div class=\"last-updated\">". t("Last updated by %u on %d", array("%u" => format_name($node), "%d" => format_date($node->changed))) ."</div>"; - $output .= "<div class=\"body\">$node->body</div>"; if ($node->moderate) { @@ -456,10 +453,9 @@ function book_view($node, $main = 0) { $output .= "<div class=\"titles\">$titles</div>"; $output .= "</div>"; } - $output .= "<div class=\"links\">". theme("links", link_node($node, $main)) ."</div>"; $output .= "</div>"; - - print $output; + $node->body = $output; + theme("node", $node, 0); } } diff --git a/modules/book/book.module b/modules/book/book.module index a0f52f5e1..0128d84c4 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -416,12 +416,9 @@ function book_view($node, $main = 0) { foreach ($path as $level) { $trail[] = l($level->title, "node/view/$level->nid"); } + theme("path", $trail); $output .= "<div class=\"book\">"; - $output .= "<div class=\"path\">". implode($trail, " » ") ."</div>"; - $output .= "<div class=\"title\">$node->title</div>"; - $output .= "<div class=\"last-updated\">". t("Last updated by %u on %d", array("%u" => format_name($node), "%d" => format_date($node->changed))) ."</div>"; - $output .= "<div class=\"body\">$node->body</div>"; if ($node->moderate) { @@ -456,10 +453,9 @@ function book_view($node, $main = 0) { $output .= "<div class=\"titles\">$titles</div>"; $output .= "</div>"; } - $output .= "<div class=\"links\">". theme("links", link_node($node, $main)) ."</div>"; $output .= "</div>"; - - print $output; + $node->body = $output; + theme("node", $node, 0); } } |