language; $direction = $GLOBALS['language']->direction ? 'rtl' : 'ltr'; if (theme_get_setting('toggle_favicon')) { drupal_set_html_head(''); } $title = drupal_get_title(); // Get blocks before so that they can alter the header (JavaScript, Stylesheets etc.) $blocks_left = theme_blocks('left'); $blocks_right = theme_blocks('right'); $output = "\n"; $output .= "\n"; $output .= "\n"; $output .= drupal_get_html_head(); $output .= " ". ($title ? strip_tags($title) ." | ". variable_get("site_name", "Drupal") : variable_get("site_name", "Drupal") ." | ". variable_get("site_slogan", "")) ."\n"; $output .= drupal_get_css(); $output .= drupal_get_js(); $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(), array('class' => 'links', 'id' => 'navlist')); $secondary_links = theme('links', menu_secondary_links(), array('class' => 'links', 'id' => 'subnavlist')); if (isset($primary_links) || isset($secondary_links)) { $output .= ' \n"; } $output .= " \n"; $output .= " \n"; if ($show_blocks && !empty($blocks_left)) { $output .= " \n"; } $output .= " \n"; if ($show_blocks && !empty($blocks_right)) { $output .= " \n"; } $output .= " \n"; $output .= "
$blocks_left\n"; if ($title) { $output .= theme("breadcrumb", drupal_get_breadcrumb()); $output .= "

$title

"; } if ($tabs = theme('menu_local_tasks')) { $output .= $tabs; } if ($show_messages) { $output .= theme('status_messages'); } $output .= theme('help'); $output .= "\n\n"; $output .= $content; $output .= drupal_get_feeds(); $output .= "\n\n"; if ($footer = variable_get('site_footer', '')) { $output .= "
$footer
\n"; } $output .= "
$blocks_right
\n"; $output .= theme_closure(); $output .= " \n"; $output .= "\n"; return $output; } function chameleon_node($node, $teaser = 0, $page = 0) { $output = "
status) ? ' node-unpublished' : '') . (($node->sticky) ? ' sticky' : '') ."\">\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; } elseif (isset($node->body)) { $output .= $node->body; } $output .= "
\n"; $submitted['node_submitted'] = theme_get_setting("toggle_node_info_$node->type") ? array( 'title' => t("By !author at @date", array('!author' => theme('username', $node), '@date' => format_date($node->created, 'small'))), 'html' => TRUE) : array(); $terms = array(); if (module_exists('taxonomy')) { $terms = taxonomy_link("taxonomy terms", $node); } $links = array_merge($submitted, $terms); if (isset($node->links)) { $links = array_merge($links, $node->links); } if (count($links)) { $output .= '\n"; } $output .= "
\n"; return $output; } function chameleon_comment($comment, $node, $links = array()) { $submitted['comment_submitted'] = array( 'title' => t('By !author at @date', array('!author' => theme('username', $comment), '@date' => format_date($comment->timestamp, 'small'))), 'html' => TRUE); $output = "
\n"; $output .= "

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

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

'; } }