t('left sidebar'), 'right' => t('right sidebar') ); } function chameleon_page($content) { $language = $GLOBALS['locale']; if (theme_get_setting('toggle_favicon')) { drupal_set_html_head(''); } $title = drupal_get_title(); $output = "\n"; $output .= "\n"; $output .= "\n"; $output .= " ". ($title ? strip_tags($title) ." | ". variable_get("site_name", "drupal") : variable_get("site_name", "drupal") ." | ". variable_get("site_slogan", "")) ."\n"; $output .= drupal_get_html_head(); $output .= theme('stylesheet_import', base_path() . path_to_theme() ."/common.css"); $output .= theme_get_styles(); $output .= ""; $output .= "\n"; $output .= "
"; if ($logo = theme_get_setting('logo')) { $output .= " \""."; } if (theme_get_setting('toggle_name')) { $output .= "

". l(variable_get('site_name', 'drupal'), ""). "

"; } if (theme_get_setting('toggle_slogan')) { $output .= "
". variable_get('site_slogan', '') ."
"; } $output .= "
\n"; $primary_links = theme('links', menu_primary_links()); $secondary_links = theme('links', menu_secondary_links()); if (isset($primary_links) || isset($secondary_links)) { $output .= ' \n"; } $output .= " \n"; $output .= " \n"; if ($blocks = theme_blocks("left")) { $output .= " \n"; } $output .= " \n"; if ($blocks = theme_blocks("right")) { $output .= " \n"; } $output .= " \n"; $output .= "
$blocks\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 .= "
$footer
\n"; } $output .= "
$blocks
\n"; $output .= theme_closure(); $output .= " \n"; $output .= "\n"; return $output; } function chameleon_node($node, $teaser = 0, $page = 0) { $output = "
\n"; if (!$page) { $output .= "

". ($teaser ? l($node->title, "node/$node->nid") : check_plain($node->title)) ."

\n"; } $output .= "
\n"; if ($teaser && $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, $links = "") { $submitted = array(t('By %author at %date', array('%author' => theme('username', $comment), '%date' => format_date($comment->timestamp. 'small')))); $output = "
\n"; $output .= "

". l($comment->subject, $_GET['q'], NULL, NULL, "comment-$comment->cid") ."

\n"; $output .= "
". $comment->comment ."
\n"; $output .= "
". theme('links', array_merge($submitted, $links)) ."
\n"; $output .= "
\n"; return $output; } function chameleon_help() { if ($help = menu_get_active_help()) { return '
'. $help .'

'; } } ?>