status == COMMENT_NOT_PUBLISHED); // If comment subjects are disabled, don't display them. if (variable_get('comment_subject_field_' . $vars['node']->type, 1) == 0) { $vars['title'] = ''; } // Special classes for comments. $classes = array('comment'); if ($vars['comment']->new) { $classes[] = 'comment-new'; } $classes[] = $vars['status']; $classes[] = $vars['zebra']; if ($vars['id'] == 1) { $classes[] = 'first'; } if ($vars['id'] == $vars['node']->comment_count) { $classes[] = 'last'; } if ($vars['comment']->uid == 0) { // Comment is by an anonymous user. $classes[] = 'comment-by-anon'; } else { if ($vars['comment']->uid == $vars['node']->uid) { // Comment is by the node author. $classes[] = 'comment-by-author'; } if ($vars['comment']->uid == $GLOBALS['user']->uid) { // Comment was posted by current user. $classes[] = 'comment-mine'; } } $vars['classes'] = implode(' ', $classes); }