'000000', 'border' => '333333', 'text' => 'b8babb', 'link' => '7f8e91', 'url' => '7f8e91' ); function piano_black_setup() { // Add default posts and comments RSS feed links to head add_theme_support( 'automatic-feed-links' ); // Enable the primary navigation menu register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'piano-black' ), ) ); // Enable custom header image add_theme_support( 'custom-header', apply_filters( 'piano_black_custom_header_args', array( 'default-image' => '', 'default-text-color' => 'fff', 'width' => 951, 'height' => 160, 'wp-head-callback' => 'piano_black_header_style', 'admin-head-callback' => 'piano_black_admin_header_style', ) ) ); // Enable use of featured images as header images set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); // Load theme options require_once( dirname( __FILE__ ) . '/inc/theme-options.php' ); add_theme_support( 'print-style' ); // Add support for custom backgrounds. add_theme_support( 'custom-background', apply_filters( 'piano_black_custom_background_args', array( 'default-color' => '393939', 'default-image' => get_template_directory_uri() . '/img/body-bg.gif', ) ) ); load_theme_textdomain( 'piano-black', get_template_directory() . '/languages' ); } add_action( 'after_setup_theme', 'piano_black_setup' ); /** * Enqueue scripts and styles */ function piano_black_scripts() { wp_enqueue_style( 'piano-black', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'piano_black_scripts' ); // Header style for front-end function piano_black_header_style() { if ( HEADER_TEXTCOLOR == get_header_textcolor() && '' == get_header_image() ) return; ?> Header function piano_black_admin_header_style() { $background_color = get_background_color(); if ( empty( $background_color ) ) $background_color = '000'; ?>
comment_type ) : case 'pingback' : case 'trackback' : ?>