diff --git a/wp-content/themes/twentyeleven/functions.php b/wp-content/themes/twentyeleven/functions.php index 77d794f9f6..a3367ad472 100644 --- a/wp-content/themes/twentyeleven/functions.php +++ b/wp-content/themes/twentyeleven/functions.php @@ -126,7 +126,7 @@ function twentyeleven_setup() { define( 'HEADER_TEXTCOLOR', '000' ); // No CSS, just an IMG call. The %s is a placeholder for the theme template directory URI. - define( 'HEADER_IMAGE', '%s/images/headers/default.jpg' ); + define( 'HEADER_IMAGE', '' ); // Leaving empty for random image rotation. // 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 twentyeleven_header_image_width and twentyeleven_header_image_height to change these values. @@ -147,6 +147,46 @@ function twentyeleven_setup() { add_custom_image_header( 'twentyeleven_header_style', 'twentyeleven_admin_header_style', 'twentyeleven_admin_header_image' ); // ... 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( + 'wheel' => array( + 'url' => '%s/images/headers/wheel.jpg', + 'thumbnail_url' => '%s/images/headers/wheel-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Wheel', 'twentyeleven' ) + ), + 'shore' => array( + 'url' => '%s/images/headers/shore.jpg', + 'thumbnail_url' => '%s/images/headers/shore-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Shore', 'twentyeleven' ) + ), + 'trolley' => array( + 'url' => '%s/images/headers/trolley.jpg', + 'thumbnail_url' => '%s/images/headers/trolley-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Trolley', 'twentyeleven' ) + ), + 'pine-cone' => array( + 'url' => '%s/images/headers/pine-cone.jpg', + 'thumbnail_url' => '%s/images/headers/pine-cone-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Pine Cone', 'twentyeleven' ) + ), + 'chessboard' => array( + 'url' => '%s/images/headers/chessboard.jpg', + 'thumbnail_url' => '%s/images/headers/chessboard-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Chessboard', 'twentyeleven' ) + ), + 'lanterns' => array( + 'url' => '%s/images/headers/lanterns.jpg', + 'thumbnail_url' => '%s/images/headers/lanterns-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Lanterns', 'twentyeleven' ) + ) + ) ); } endif; // twentyeleven_setup diff --git a/wp-content/themes/twentyeleven/images/headers/chessboard-thumbnail.jpg b/wp-content/themes/twentyeleven/images/headers/chessboard-thumbnail.jpg new file mode 100644 index 0000000000..8a8775bfe8 Binary files /dev/null and b/wp-content/themes/twentyeleven/images/headers/chessboard-thumbnail.jpg differ diff --git a/wp-content/themes/twentyeleven/images/headers/chessboard.jpg b/wp-content/themes/twentyeleven/images/headers/chessboard.jpg new file mode 100644 index 0000000000..d0c5199563 Binary files /dev/null and b/wp-content/themes/twentyeleven/images/headers/chessboard.jpg differ diff --git a/wp-content/themes/twentyeleven/images/headers/default.jpg b/wp-content/themes/twentyeleven/images/headers/default.jpg deleted file mode 100644 index ed694398b0..0000000000 Binary files a/wp-content/themes/twentyeleven/images/headers/default.jpg and /dev/null differ diff --git a/wp-content/themes/twentyeleven/images/headers/lanterns-thumbnail.jpg b/wp-content/themes/twentyeleven/images/headers/lanterns-thumbnail.jpg new file mode 100644 index 0000000000..7f881a55e1 Binary files /dev/null and b/wp-content/themes/twentyeleven/images/headers/lanterns-thumbnail.jpg differ diff --git a/wp-content/themes/twentyeleven/images/headers/lanterns.jpg b/wp-content/themes/twentyeleven/images/headers/lanterns.jpg new file mode 100644 index 0000000000..23cc704df2 Binary files /dev/null and b/wp-content/themes/twentyeleven/images/headers/lanterns.jpg differ diff --git a/wp-content/themes/twentyeleven/images/headers/pine-cone-thumbnail.jpg b/wp-content/themes/twentyeleven/images/headers/pine-cone-thumbnail.jpg new file mode 100644 index 0000000000..e502103655 Binary files /dev/null and b/wp-content/themes/twentyeleven/images/headers/pine-cone-thumbnail.jpg differ diff --git a/wp-content/themes/twentyeleven/images/headers/pine-cone.jpg b/wp-content/themes/twentyeleven/images/headers/pine-cone.jpg new file mode 100644 index 0000000000..cbdeba692a Binary files /dev/null and b/wp-content/themes/twentyeleven/images/headers/pine-cone.jpg differ diff --git a/wp-content/themes/twentyeleven/images/headers/shore-thumbnail.jpg b/wp-content/themes/twentyeleven/images/headers/shore-thumbnail.jpg new file mode 100644 index 0000000000..a3b56a2448 Binary files /dev/null and b/wp-content/themes/twentyeleven/images/headers/shore-thumbnail.jpg differ diff --git a/wp-content/themes/twentyeleven/images/headers/shore.jpg b/wp-content/themes/twentyeleven/images/headers/shore.jpg new file mode 100644 index 0000000000..77c4651fc6 Binary files /dev/null and b/wp-content/themes/twentyeleven/images/headers/shore.jpg differ diff --git a/wp-content/themes/twentyeleven/images/headers/trolley-thumbnail.jpg b/wp-content/themes/twentyeleven/images/headers/trolley-thumbnail.jpg new file mode 100644 index 0000000000..11f6f7cef5 Binary files /dev/null and b/wp-content/themes/twentyeleven/images/headers/trolley-thumbnail.jpg differ diff --git a/wp-content/themes/twentyeleven/images/headers/trolley.jpg b/wp-content/themes/twentyeleven/images/headers/trolley.jpg new file mode 100644 index 0000000000..aac7b52844 Binary files /dev/null and b/wp-content/themes/twentyeleven/images/headers/trolley.jpg differ diff --git a/wp-content/themes/twentyeleven/images/headers/wheel-thumbnail.jpg b/wp-content/themes/twentyeleven/images/headers/wheel-thumbnail.jpg new file mode 100644 index 0000000000..800d8a6819 Binary files /dev/null and b/wp-content/themes/twentyeleven/images/headers/wheel-thumbnail.jpg differ diff --git a/wp-content/themes/twentyeleven/images/headers/wheel.jpg b/wp-content/themes/twentyeleven/images/headers/wheel.jpg new file mode 100644 index 0000000000..a717277a95 Binary files /dev/null and b/wp-content/themes/twentyeleven/images/headers/wheel.jpg differ