__( 'Header Navigation', 'austria' ), ) ); // This theme allows users to set a custom background add_custom_background(); // Your changeable header business starts here if ( ! defined( 'HEADER_TEXTCOLOR' ) ) define( 'HEADER_TEXTCOLOR', '' ); // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI. if ( ! defined( 'HEADER_IMAGE' ) ) define( 'HEADER_IMAGE', '%s/images/headers/harald.jpg' ); // The height and width of your custom header. You can hook into the theme's own filters to change these values. // Add a filter to austria_header_image_width and austria_header_image_height to change these values. define( 'HEADER_IMAGE_WIDTH', apply_filters( 'austria_header_image_width', 940 ) ); define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'austria_header_image_height', 244 ) ); // We'll be using post thumbnails for custom header images on posts and pages. // We want them to be 940 pixels wide by 244 pixels tall. // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); // Don't support text inside the header image. if ( ! defined( 'NO_HEADER_TEXT' ) ) define( 'NO_HEADER_TEXT', true ); // Add a way for the custom header to be styled in the admin panel that controls // custom headers. See austria_admin_header_style(), below. add_custom_image_header( '', 'austria_admin_header_style' ); // ... and thus ends the changeable header business. // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. register_default_headers( array( 'harald' => array( 'url' => '%s/images/headers/harald.jpg', 'thumbnail_url' => '%s/images/headers/harald-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Austria theme', 'austria' ) ) ) ); } endif; add_action('after_setup_theme', 'austria_setup'); if ( ! function_exists( 'austria_admin_header_style' ) ) : /** * Styles the header image displayed on the Appearance > Header admin panel. * * Referenced via add_custom_image_header() in austria_setup(). * * @since Twenty Ten 1.0 */ function austria_admin_header_style() { ?> __( 'Austrian Widget Area', 'austria' ), 'id' => 'austrian-widget-area', 'description' => __( 'The Austrian widget area', 'austria' ), 'before_widget' => '
', '' ); ?>