]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentythirteen/inc/custom-header.php
WordPress 4.0
[autoinstalls/wordpress.git] / wp-content / themes / twentythirteen / inc / custom-header.php
index 3214f630038fe943838a4b3371b55821b60892ae..58b6c559d3b70857e566294571382058ce5dac2c 100644 (file)
@@ -19,8 +19,6 @@
  * @uses register_default_headers() to set up the bundled header images.
  *
  * @since Twenty Thirteen 1.0
- *
- * @return void
  */
 function twentythirteen_custom_header_setup() {
        $args = array(
@@ -68,15 +66,13 @@ add_action( 'after_setup_theme', 'twentythirteen_custom_header_setup', 11 );
  * Load our special font CSS files.
  *
  * @since Twenty Thirteen 1.0
- *
- * @return void
  */
 function twentythirteen_custom_header_fonts() {
        // Add Source Sans Pro and Bitter fonts.
        wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null );
 
        // Add Genericons font.
-       wp_enqueue_style( 'genericons', get_template_directory_uri() . '/fonts/genericons.css', array(), '2.09' );
+       wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.03' );
 }
 add_action( 'admin_print_styles-appearance_page_custom-header', 'twentythirteen_custom_header_fonts' );
 
@@ -86,8 +82,6 @@ add_action( 'admin_print_styles-appearance_page_custom-header', 'twentythirteen_
  * get_header_textcolor() options: Hide text (returns 'blank'), or any hex value.
  *
  * @since Twenty Thirteen 1.0
- *
- * @return void
  */
 function twentythirteen_header_style() {
        $header_image = get_header_image();
@@ -107,6 +101,16 @@ function twentythirteen_header_style() {
                        background: url(<?php header_image(); ?>) no-repeat scroll top;
                        background-size: 1600px auto;
                }
+               @media (max-width: 767px) {
+                       .site-header {
+                               background-size: 768px auto;
+                       }
+               }
+               @media (max-width: 359px) {
+                       .site-header {
+                               background-size: 360px auto;
+                       }
+               }
        <?php
                endif;
 
@@ -144,8 +148,6 @@ function twentythirteen_header_style() {
  * Style the header image displayed on the Appearance > Header admin panel.
  *
  * @since Twenty Thirteen 1.0
- *
- * @return void
  */
 function twentythirteen_admin_header_style() {
        $header_image = get_header_image();
@@ -212,8 +214,6 @@ function twentythirteen_admin_header_style() {
  * This callback overrides the default markup displayed there.
  *
  * @since Twenty Thirteen 1.0
- *
- * @return void
  */
 function twentythirteen_admin_header_image() {
        ?>