'', '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); ?>
  • >
    comment_approved == '0') : ?>

    '.get_comment_time().''); ?>

    'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
    tag based on what is being viewed. * * @since The Journalist 1.9 */ function journalist_wp_title( $title, $sep ) { global $page, $paged; if ( is_feed() ) return $title; // Add the blog name $title .= get_bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title .= " $sep $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) $title .= " $sep " . sprintf( __( 'Page %s', 'journalist' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'journalist_wp_title', 10, 2 );