X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/6c8f14c09105d0afa4c1574215c59b5021040e76..61343b82c4f0da4c68e4c6373daafff4a81efdd1:/wp-content/themes/twentytwelve/inc/custom-header.php
diff --git a/wp-content/themes/twentytwelve/inc/custom-header.php b/wp-content/themes/twentytwelve/inc/custom-header.php
index f94d0e8f..595bf98f 100644
--- a/wp-content/themes/twentytwelve/inc/custom-header.php
+++ b/wp-content/themes/twentytwelve/inc/custom-header.php
@@ -21,7 +21,7 @@
function twentytwelve_custom_header_setup() {
$args = array(
// Text color and image (empty to use none).
- 'default-text-color' => '444',
+ 'default-text-color' => '515151',
'default-image' => '',
// Set height and width, with a maximum value for the width.
@@ -46,10 +46,24 @@ function twentytwelve_custom_header_setup() {
}
add_action( 'after_setup_theme', 'twentytwelve_custom_header_setup' );
+/**
+ * Loads our special font CSS file.
+ *
+ * @since Twenty Twelve 1.2
+ *
+ * @return void
+ */
+function twentytwelve_custom_header_fonts() {
+ $font_url = twentytwelve_get_font_url();
+ if ( ! empty( $font_url ) )
+ wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
+}
+add_action( 'admin_print_styles-appearance_page_custom-header', 'twentytwelve_custom_header_fonts' );
+
/**
* Styles the header text displayed on the blog.
*
- * get_header_textcolor() options: 444 is default, hide text (returns 'blank'), or any hex value.
+ * get_header_textcolor() options: 515151 is default, hide text (returns 'blank'), or any hex value.
*
* @since Twenty Twelve 1.0
*/
@@ -62,14 +76,14 @@ function twentytwelve_header_style() {
// If we get this far, we have custom styles.
?>
-
@@ -93,29 +107,30 @@ function twentytwelve_header_style() {
*/
function twentytwelve_admin_header_style() {
?>
-