'',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
$themecolors = array(
'bg' => 'ffffff',
'border' => 'f3f3f3',
'text' => '1c1c1c',
'link' => '004276',
'url' => 'cc0000',
);
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'print-style' );
/**
* Enqueue scripts and styles
*/
function journalist_scripts() {
global $wp_styles;
wp_enqueue_style( 'journalist', get_stylesheet_uri() );
wp_enqueue_style( 'journalist-ie6', get_template_directory_uri() . '/ie6.css', array( 'journalist' ) );
$wp_styles->add_data( 'journalist-ie6', 'conditional', 'IE 6' );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
}
add_action( 'wp_enqueue_scripts', 'journalist_scripts' );
function tj_comment_class( $classname='' ) {
global $comment, $post;
$c = array();
if ($classname)
$c[] = $classname;
// Collects the comment type (comment, trackback),
$c[] = $comment->comment_type;
// If the comment author has an id (registered), then print the log in name
if ( $comment->user_id > 0 ) {
$user = get_userdata($comment->user_id);
// For all registered users, 'byuser'; to specificy the registered user, 'commentauthor+[log in name]'
$c[] = "byuser comment-author-" . sanitize_title_with_dashes(strtolower($user->user_login));
// For comment authors who are the author of the post
if ( $comment->user_id === $post->post_author )
$c[] = 'bypostauthor';
}
// Separates classes with a single space, collates classes for comment LI
return implode( ' ', apply_filters( 'comment_class', $c, array(), $comment->comment_ID, $comment, $post ) );
}
function journalist_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
extract($args, EXTR_SKIP);
?>