| @@ -18,7 +18,7 @@ discard block | ||
| 18 | 18 | * @package strip | 
| 19 | 19 | */ | 
| 20 | 20 |  function strip_custom_header_setup() { | 
| 21 | - add_theme_support( 'custom-header', apply_filters( 'strip_custom_header_args', array( | |
| 21 | +	add_theme_support('custom-header', apply_filters('strip_custom_header_args', array( | |
| 22 | 22 | 'default-image' => get_template_directory_uri() . '/assets/images/Default-header.png', | 
| 23 | 23 | 'default-text-color' => '000', | 
| 24 | 24 | 'flex-width' => true, | 
| @@ -28,20 +28,20 @@ discard block | ||
| 28 | 28 | 'wp-head-callback' => 'strip_header_style', | 
| 29 | 29 | 'admin-head-callback' => 'strip_admin_header_style', | 
| 30 | 30 | 'admin-preview-callback' => 'strip_admin_header_image', | 
| 31 | - ) ) ); | |
| 31 | + ))); | |
| 32 | 32 | } | 
| 33 | -add_action( 'after_setup_theme', 'strip_custom_header_setup' ); | |
| 33 | +add_action('after_setup_theme', 'strip_custom_header_setup'); | |
| 34 | 34 | |
| 35 | -if ( ! function_exists( 'strip_header_style' ) ) : | |
| 35 | +if ( ! function_exists('strip_header_style')) : | |
| 36 | 36 | |
| 37 | 37 | /** | 
| 38 | 38 | * Register default header image | 
| 39 | 39 | */ | 
| 40 | - register_default_headers( array( | |
| 40 | + register_default_headers(array( | |
| 41 | 41 | 'DefaultHeader' => array( | 
| 42 | 42 | 'url' => get_template_directory_uri() . '/assets/images/Default-header.png', | 
| 43 | 43 | 'thumbnail_url' => get_template_directory_uri() . '/assets/images/Default-header.png', | 
| 44 | - 'description' => _x( 'DefaultHeader', 'header image description', 'strip' ), | |
| 44 | +		'description'   => _x('DefaultHeader', 'header image description', 'strip'), | |
| 45 | 45 | ), | 
| 46 | 46 | )); | 
| 47 | 47 | /** | 
| @@ -54,7 +54,7 @@ discard block | ||
| 54 | 54 | |
| 55 | 55 | // If no custom options for text are set, let's bail | 
| 56 | 56 | // get_header_textcolor() options: add_theme_support( 'custom-header' ) is default, hide text (returns 'blank') or any hex value. | 
| 57 | -		if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { | |
| 57 | +		if (get_theme_support('custom-header', 'default-text-color') === $header_text_color) { | |
| 58 | 58 | return; | 
| 59 | 59 | } | 
| 60 | 60 | // If we get this far, we have custom styles. Let's do this. | 
| @@ -62,7 +62,7 @@ discard block | ||
| 62 | 62 | <style type="text/css"> | 
| 63 | 63 | <?php | 
| 64 | 64 | // Has the text been hidden? | 
| 65 | - if ( 'blank' === $header_text_color ) : | |
| 65 | +		if ('blank' === $header_text_color) : | |
| 66 | 66 | ?> | 
| 67 | 67 | .site-title, | 
| 68 | 68 |  		.site-description { | 
| @@ -75,10 +75,10 @@ discard block | ||
| 75 | 75 | ?> | 
| 76 | 76 | .site-title a, | 
| 77 | 77 |  		.site-description { | 
| 78 | - color: #<?php echo esc_attr( $header_text_color ); ?>; | |
| 78 | + color: #<?php echo esc_attr($header_text_color); ?>; | |
| 79 | 79 | } | 
| 80 | 80 |  		.site-title { | 
| 81 | - border-color: #<?php echo esc_attr( $header_text_color ); ?>; | |
| 81 | + border-color: #<?php echo esc_attr($header_text_color); ?>; | |
| 82 | 82 | } | 
| 83 | 83 | <?php endif; ?> | 
| 84 | 84 | |
| @@ -87,7 +87,7 @@ discard block | ||
| 87 | 87 | } | 
| 88 | 88 | endif; // strip_header_style. | 
| 89 | 89 | |
| 90 | -if ( ! function_exists( 'strip_admin_header_style' ) ) : | |
| 90 | +if ( ! function_exists('strip_admin_header_style')) : | |
| 91 | 91 | /** | 
| 92 | 92 | * Styles the header image displayed on the Appearance > Header admin panel. | 
| 93 | 93 | * | 
| @@ -120,19 +120,19 @@ discard block | ||
| 120 | 120 | } | 
| 121 | 121 | endif; // strip_admin_header_style. | 
| 122 | 122 | |
| 123 | -if ( ! function_exists( 'strip_admin_header_image' ) ) : | |
| 123 | +if ( ! function_exists('strip_admin_header_image')) : | |
| 124 | 124 | /** | 
| 125 | 125 | * Custom header image markup displayed on the Appearance > Header admin panel. | 
| 126 | 126 | * | 
| 127 | 127 | * @see strip_custom_header_setup(). | 
| 128 | 128 | */ | 
| 129 | 129 |  	function strip_admin_header_image() { | 
| 130 | - $style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); | |
| 130 | +		$style = sprintf(' style="color:#%s;"', get_header_textcolor()); | |
| 131 | 131 | ?> | 
| 132 | 132 | <div id="headimg"> | 
| 133 | - <h1 class="displaying-header-text"><a id="name"<?php echo esc_attr( $style ); ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> | |
| 134 | - <div class="displaying-header-text" id="desc"<?php echo esc_attr( $style ); ?>><?php bloginfo( 'description' ); ?></div> | |
| 135 | - <?php if ( get_header_image() ) : ?> | |
| 133 | +		<h1 class="displaying-header-text"><a id="name"<?php echo esc_attr($style); ?> onclick="return false;" href="<?php echo esc_url(home_url('/')); ?>"><?php bloginfo('name'); ?></a></h1> | |
| 134 | +		<div class="displaying-header-text" id="desc"<?php echo esc_attr($style); ?>><?php bloginfo('description'); ?></div> | |
| 135 | + <?php if (get_header_image()) : ?> | |
| 136 | 136 | <img src="<?php header_image(); ?>" alt=""> | 
| 137 | 137 | <?php endif; ?> | 
| 138 | 138 | </div><!-- #headimg --> |