. add_theme_support( 'automatic-feed-links' ); // Add support for a variety of post formats add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote' ) ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) ); // Add support for custom background. add_custom_background(); // Add support for a custom header image. $header_args = array( 'random-default' => true, 'flex-height' => true, 'suggested-height' => apply_filters( 'twentytwelve_header_image_height', 250 ), 'flex-width' => true, 'max-width' => apply_filters( 'twentytwelve_header_image_max_width', 2000 ), 'suggested-width' => apply_filters( 'twentytwelve_header_image_width', 960 ), ); add_theme_support( 'custom-header', $header_args ); add_custom_image_header( 'twentytwelve_header_style', 'twentytwelve_admin_header_style', 'twentytwelve_admin_header_image' ); // The default header text color define( 'HEADER_TEXTCOLOR', '444' ); } endif; if ( ! function_exists( 'twentytwelve_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank'), or any hex value * * @since Twenty Twelve 1.0 */ function twentytwelve_header_style() { // If no custom options for text are set, let's bail if ( HEADER_TEXTCOLOR == get_header_textcolor() ) return; // If we get this far, we have custom styles. ?> Header admin panel. * * Referenced via add_custom_image_header() in twentytwelve_setup(). * * @since Twenty Twelve 1.0 */ function twentytwelve_admin_header_style() { ?> Header admin panel. * * Referenced via add_custom_image_header() in twentytwelve_setup(). * * @since Twenty Twelve 1.0 */ function twentytwelve_admin_header_image() { ?>
__( 'Main Sidebar', 'twentytwelve' ), 'id' => 'sidebar-1', 'before_widget' => '", 'before_title' => '', '' ); ?>