summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-09-11 17:53:45 +0000
committerDries Buytaert <dries@buytaert.net>2003-09-11 17:53:45 +0000
commitd81f159c633d558fc12c4df0126e8df8e7163fe3 (patch)
tree77c96b09c4ae3e4ad7efa3fa9c413b1b0c1d92d4
parentb9633dcdede3dcc3e9466382dbed6b1fb7603bee (diff)
downloadbrdo-d81f159c633d558fc12c4df0126e8df8e7163fe3.tar.gz
brdo-d81f159c633d558fc12c4df0126e8df8e7163fe3.tar.bz2
- Committed Nick's path improvements; you can now control the look and feel
of the breadcrumb navigation.
-rw-r--r--includes/theme.inc4
-rw-r--r--modules/book.module10
-rw-r--r--modules/book/book.module10
3 files changed, 10 insertions, 14 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index ec442b13c..7e6f60212 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -41,6 +41,10 @@ class BaseTheme {
return "misc/$name";
}
+ function path($path) {
+ print "<div class=\"path\">". implode($path, " &raquo; ") ."</div>";
+ }
+
function node($node, $main) {
if (module_exist("taxonomy")) {
$terms = taxonomy_link("taxonomy terms", $node);
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, " &raquo; ") ."</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, " &raquo; ") ."</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);
}
}