');
}
$title = drupal_get_title();
$output = "\n";
$output .= "\n";
$output .= "
\n";
$output .= " \n";
$output .= " \n";
if ($blocks = theme_blocks("left")) {
$output .= " \n";
}
$output .= " \n";
if ($title) {
$output .= theme("breadcrumb", drupal_get_breadcrumb());
$output .= "$title";
}
if ($tabs = theme('menu_local_tasks')) {
$output .= $tabs;
}
$output .= theme('help');
$output .= theme('status_messages');
$output .= "\n\n";
$output .= $content;
$output .= "\n\n";
if ($footer = variable_get('site_footer', '')) {
$output .= " \n";
}
$output .= " | \n";
if ($blocks = theme_blocks("right")) {
$output .= " \n";
}
$output .= "
\n";
$output .= "
\n";
$output .= theme_closure();
$output .= " \n";
$output .= "\n";
return $output;
}
function chameleon_node($node, $main = 0, $page = 0) {
$output = "\n";
if (!$page) {
$output .= "
". ($main ? l($node->title, "node/$node->nid") : check_plain($node->title)) ."
\n";
}
$output .= "
\n";
if ($main && $node->teaser) {
$output .= $node->teaser;
}
else {
$output .= $node->body;
}
$output .= "
\n";
$submitted = theme_get_setting("toggle_node_info_$node->type") ? array(t("By %author at %date", array('%author' => theme('username', $node), '%date' => format_date($node->created, 'small')))) : array();
$terms = array();
if (module_exist('taxonomy')) {
$terms = taxonomy_link("taxonomy terms", $node);
}
$links = array_merge($submitted, $terms);
if ($node->links) {
$links = array_merge($links, $node->links);
}
if (count($links)) {
$output .= "
". theme('links', $links) ."
\n";
}
$output .= "
\n";
return $output;
}
function chameleon_comment($comment, $link = "") {
$submitted = array(t('By %author at %date', array('%author' => theme('username', $comment), '%date' => format_date($comment->timestamp. 'small'))));
$links = array($link);
$output = "\n";
return $output;
}
function chameleon_help() {
if ($help = menu_get_active_help()) {
return ''. $help .'
". l($comment->subject, $_GET['q'], NULL, NULL, "comment-$comment->cid") ."
\n"; $output .= "