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 .= " ';
if (isset($primary_links)) {
$output .= $primary_links;
}
if (isset($secondary_links)) {
$output .= $secondary_links;
}
$output .= "
\n";
}
$output .= " \n";
$output .= " \n";
if ($show_blocks && !empty($blocks_left)) {
$output .= " \n";
}
$output .= " \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 .= " \n";
}
$output .= " \n";
if ($show_blocks && !empty($blocks_right)) {
$output .= " \n";
}
$output .= " \n";
$output .= "
\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 .= '
'. theme('links', $links, array('class' => 'links inline')) ."
\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";
return $output;
}
function chameleon_help() {
if ($help = menu_get_active_help()) {
return ''. $help .'
". l($comment->subject, $_GET['q'], array('fragment' => "comment-$comment->cid")) ."
\n"; $output .= "