\n"; $output .= ""; $output .= "
";
print $output;
$this->box(t("Navigation"), @implode(" ", link_page())); theme_blocks("all", $this); print " | ";
}
function links($links, $delimiter = " | ") {
return implode($delimiter, $links);
}
function image($name) {
return "misc/$name";
}
function breadcrumb($breadcrumb) {
print "$node->titleby ". format_name($node); if (count($terms)) { $output .= "(". $this->links($terms) .")"; } if ($main && $node->teaser) { $output .= $node->teaser; } else { $output .= $node->body; } if ($links = link_node($node, $main)) { $output .= " [ ". $this->links($links) ." ]"; } $output .= " "; print $output; } function box($subject, $content, $region = "main") { $output = " $subject$content "; print $output; } /** * Render a block. * * You can style your blocks by defining .block (all blocks), * .block-module (all blocks of module module), * and \#block-module-delta (specific block of * module module with delta delta) in your * theme's CSS. * * @param $block object "indexed with" fields from database * table 'blocks' ($block->module, $block->delta, $block->region, * ...) and fields returned by module_block("view") * ($block->subject, $block->content, ...). */ function block($block) { $output = "module\" id=\"block-$block->module-$block->delta\">";
$output .= " ";
print $output;
}
function footer() {
$output = "$block->subject"; $output .= "$block->content ";
$output .= " | ";
}
function node($node, $main) {
if (module_exist("taxonomy")) {
$terms = taxonomy_link("taxonomy terms", $node);
}
$output = "