- Committed Nick's path improvements; you can now control the look and feel
of the breadcrumb navigation.4.3.x
parent
b9633dcded
commit
d81f159c63
|
@ -41,6 +41,10 @@ class BaseTheme {
|
|||
return "misc/$name";
|
||||
}
|
||||
|
||||
function path($path) {
|
||||
print "<div class=\"path\">". implode($path, " » ") ."</div>";
|
||||
}
|
||||
|
||||
function node($node, $main) {
|
||||
if (module_exist("taxonomy")) {
|
||||
$terms = taxonomy_link("taxonomy terms", $node);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue