nid; // Special classes for nodes. Emulates Drupal 7 node classes for forward compatibility. $classes = array(); $classes[] = 'node'; if ($vars['promote']) { $classes[] = 'node-promoted'; } if ($vars['sticky']) { $classes[] = 'node-sticky'; } if (!$vars['status']) { $classes[] = 'node-unpublished'; } if ($vars['teaser']) { // Node is displayed as teaser. $classes[] = 'node-teaser'; } if (isset($vars['preview'])) { $classes[] = 'node-preview'; } // Add support for Skinr module classes http://drupal.org/project/skinr if (function_exists('node_skinr_data')) { $classes[] = $vars['skinr']; } // Class for node type: "node-type-page", "node-type-story", "node-type-my-custom-type", etc. $classes[] = 'node-'. $vars['node']->type; $vars['classes'] = implode(' ', $classes); // Concatenate with spaces. // Add node_bottom region content. $vars['node_bottom'] = theme('blocks', 'node_bottom'); // Set messages if node is unpublished. if (!$vars['node']->status) { if ($vars['page']) { drupal_set_message(t('%title is currently unpublished', array('%title' => $vars['node']->title)), 'warning'); } else { $vars['unpublished'] = ''. t('Unpublished') .''; } } // Node Theme Settings // Date & author if (!function_exists('submitted_by_node_submitted')) { $date = t('Posted ') . format_date($vars['node']->created, 'medium'); // Format date as small, medium, or large $author = theme('username', $vars['node']); $author_only_separator = t('Posted by '); $author_date_separator = t(' by '); $submitted_by_content_type = (theme_get_setting('submitted_by_enable_content_type') == 1) ? $vars['node']->type : 'default'; $date_setting = (theme_get_setting('submitted_by_date_'. $submitted_by_content_type) == 1); $author_setting = (theme_get_setting('submitted_by_author_'. $submitted_by_content_type) == 1); $author_separator = ($date_setting) ? $author_date_separator : $author_only_separator; $date_author = ($date_setting) ? $date : ''; $date_author .= ($author_setting) ? $author_separator . $author : ''; $vars['submitted'] = $date_author; } // Taxonomy $taxonomy_content_type = (theme_get_setting('taxonomy_enable_content_type') == 1) ? $vars['node']->type : 'default'; $taxonomy_display = theme_get_setting('taxonomy_display_'. $taxonomy_content_type); $taxonomy_format = theme_get_setting('taxonomy_format_'. $taxonomy_content_type); if ((module_exists('taxonomy')) && ($taxonomy_display == 'all' || ($taxonomy_display == 'only' && $vars['page']))) { $vocabularies = taxonomy_get_vocabularies($vars['node']->type); $output = ''; $vocab_delimiter = ''; foreach ($vocabularies as $vocabulary) { if (theme_get_setting('taxonomy_vocab_display_'. $taxonomy_content_type .'_'. $vocabulary->vid) == 1) { $terms = taxonomy_node_get_terms_by_vocabulary($vars['node'], $vocabulary->vid); if ($terms) { $output .= ($taxonomy_format == 'vocab') ? '