__( 'Header Menu', 'graphene' ), 'secondary-menu' => __( 'Secondary Menu', 'graphene' ), 'footer-menu' => __( 'Footer Menu', 'graphene' ), ) ); // Add support for custom background global $wp_version; add_theme_support( 'custom-background' ); /* Add support for custom header */ define( 'HEADER_TEXTCOLOR', apply_filters( 'graphene_header_textcolor', '000000' ) ); define( 'HEADER_IMAGE', apply_filters( 'graphene_default_header_image', '%s/images/headers/flow.jpg' ) ); define( 'HEADER_IMAGE_WIDTH', apply_filters( 'graphene_header_image_width', graphene_grid_width( $graphene_settings['gutter_width'] * 2, 16 ) ) ); define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'graphene_header_image_height', $graphene_settings['header_img_height'] ) ); define( 'NO_HEADER_TEXT', ! apply_filters( 'graphene_header_text', true ) ); $args = array( 'width' => HEADER_IMAGE_WIDTH, 'height' => HEADER_IMAGE_HEIGHT, 'default-image' => HEADER_IMAGE, 'header-text' => ! NO_HEADER_TEXT, 'default-text-color' => HEADER_TEXTCOLOR, 'wp-head-callback' => '', 'admin-head-callback' => 'graphene_admin_header_style', ); $args = apply_filters( 'graphene_custom_header_args', $args ); add_theme_support( 'custom-header', $args ); set_post_thumbnail_size( $args['width'], $args['height'], true ); // Register default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. register_default_headers( graphene_get_default_headers() ); do_action( 'graphene_setup' ); } endif; add_action( 'after_setup_theme', 'graphene_setup' ); if ( ! function_exists( 'graphene_get_default_headers' ) ) { function graphene_get_default_headers() { $headers = array( 'Schematic' => array( 'url' => '%s/images/headers/schematic.jpg', 'thumbnail_url' => '%s/images/headers/schematic-thumb.jpg', 'description' => __( 'Header image by Syahir Hakim', 'graphene' ) ), 'Flow' => array( 'url' => '%s/images/headers/flow.jpg', 'thumbnail_url' => '%s/images/headers/flow-thumb.jpg', 'description' => __( 'This is the default Graphene theme header image, cropped from image by Quantin Houyoux at sxc.hu', 'graphene' ) ), 'Fluid' => array( 'url' => '%s/images/headers/fluid.jpg', 'thumbnail_url' => '%s/images/headers/fluid-thumb.jpg', 'description' => __( 'Header image cropped from image by Ilco at sxc.hu', 'graphene' ) ), 'Techno' => array( 'url' => '%s/images/headers/techno.jpg', 'thumbnail_url' => '%s/images/headers/techno-thumb.jpg', 'description' => __( 'Header image cropped from image by Ilco at sxc.hu', 'graphene' ) ), 'Fireworks' => array( 'url' => '%s/images/headers/fireworks.jpg', 'thumbnail_url' => '%s/images/headers/fireworks-thumb.jpg', 'description' => __( 'Header image cropped from image by Ilco at sxc.hu', 'graphene' ) ), 'Nebula' => array( 'url' => '%s/images/headers/nebula.jpg', 'thumbnail_url' => '%s/images/headers/nebula-thumb.jpg', 'description' => __( 'Header image cropped from image by Ilco at sxc.hu', 'graphene' ) ), 'Sparkle' => array( 'url' => '%s/images/headers/sparkle.jpg', 'thumbnail_url' => '%s/images/headers/sparkle-thumb.jpg', 'description' => __( 'Header image cropped from image by Ilco at sxc.hu', 'graphene' ) ), ); return apply_filters( 'graphene_default_header_images', $headers ); } } if ( ! function_exists( 'graphene_admin_header_style' ) ) : /** * Styles the header image displayed on the Appearance > Header admin panel. */ function graphene_admin_header_style(){ global $graphene_settings; ?> __( 'Sidebar Widget Area', 'graphene' ), 'id' => 'sidebar-widget-area', 'description' => __( 'The first sidebar widget area (will always be displayed on the right hand side).', 'graphene' ), 'before_widget' => '
', 'before_title' => "