'ffffff', 'text' => '343434', 'link' => '990000', 'border' => 'f2f6ee', 'url' => 'ff0000', ); /** * Set the content width based on the theme's design and stylesheet. */ if ( ! isset( $content_width ) ) $content_width = 540; // actually 543 if ( ! function_exists( 'vermilion_christmas_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which runs * before the init hook. The init hook is too late for some features, such as indicating * support post thumbnails. */ function vermilion_christmas_setup() { /** * Make theme available for translation * Translations can be filed in the /languages/ directory * If you're building a theme based on Vermilion Christmas, use a find and replace * to change 'vermilion_christmas' to the name of your theme in all the template files */ load_theme_textdomain( 'vermilionchristmas', get_template_directory() . '/languages' ); /** * Add default posts and comments RSS feed links to head */ add_theme_support( 'automatic-feed-links' ); add_theme_support( 'print-style' ); } endif; // vermilion_christmas_setup add_action( 'after_setup_theme', 'vermilion_christmas_setup' ); /** * Register widgetized area and update sidebar with default widgets */ function vermilion_christmas_widgets_init() { register_sidebar(); } add_action( 'widgets_init', 'vermilion_christmas_widgets_init' ); function vermilion_christmas_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; global $relax_comment_count; extract($args, EXTR_SKIP); $relax_comment_count++; ?>
  • id="comment-">
    comment_approved == '0') : ?>
    'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    add_data( 'vermilion-ie', 'conditional', 'IE' ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'vermilion_scripts' ); /** * Filters wp_title to print a neat tag based on what is being viewed. * * @since Vermilion Christmas 1.0 */ function vermilion_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', 'vermilionchristmas' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'vermilion_wp_title', 10, 2 );