Completed
Push — master ( 704b83...e6b019 )
by SILENT
01:49
created
inc/custom-header.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
 		'admin-preview-callback' => 'strip_admin_header_image',
30 30
 	) ) );
31 31
 	/**
32
- * Register default header image
33
- */
32
+	 * Register default header image
33
+	 */
34 34
 	register_default_headers( array(
35 35
 		'default-image' => array(
36 36
 		'url'  			    => '%s/assets/images/Default-header.png',
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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-height'            => true,
@@ -27,23 +27,23 @@  discard block
 block discarded – undo
27 27
 		'wp-head-callback'       => 'strip_header_style',
28 28
 		'admin-head-callback'    => 'strip_admin_header_style',
29 29
 		'admin-preview-callback' => 'strip_admin_header_image',
30
-	) ) );
30
+	)));
31 31
 	/**
32 32
  * Register default header image
33 33
  */
34
-	register_default_headers( array(
34
+	register_default_headers(array(
35 35
 		'default-image' => array(
36 36
 		'url'  			    => '%s/assets/images/Default-header.png',
37 37
 		'thumbnail_url' => '%s/assets/images/Default-header.png',
38
-		'description'   => _x( 'DefaultHeader', 'header image description', 'strip' ),
38
+		'description'   => _x('DefaultHeader', 'header image description', 'strip'),
39 39
 		),
40 40
 		)
41 41
 	);
42 42
 }
43 43
 
44
-add_action( 'after_setup_theme', 'strip_custom_header_setup' );
44
+add_action('after_setup_theme', 'strip_custom_header_setup');
45 45
 
46
-if ( ! function_exists( 'strip_header_style' ) ) :
46
+if ( ! function_exists('strip_header_style')) :
47 47
 /**
48 48
  * Styles the header image and text displayed on the blog
49 49
  *
@@ -55,24 +55,24 @@  discard block
 block discarded – undo
55 55
 $header_text_color = get_header_textcolor();
56 56
 
57 57
 	/* Header image. */
58
-$header_image = esc_url( get_header_image() );
58
+$header_image = esc_url(get_header_image());
59 59
 
60 60
 /* Start header styles. */
61 61
 	$style = '';
62 62
 
63 63
 	/* Site title styles. */
64
-	if ( display_header_text() ) {
64
+	if (display_header_text()) {
65 65
 		$style .= ".site-title, .site-title a, .site-description, .site-description a { color: #{$header_text_color} }";
66 66
 		$style .= ".site-title { border-color: #{$header_text_color} }";
67 67
 	}
68 68
 
69
-	if ( ! display_header_text() ) {
69
+	if ( ! display_header_text()) {
70 70
 		$style .= '.site-title, .site-title a, .site-description, .site-description a { clip: rect(1px, 1px, 1px, 1px); position: absolute; }';
71 71
 	}
72 72
 
73 73
 	/* Echo styles if it's not empty. */
74
-	if ( ! empty( $style ) ) {
75
-		echo "\n" . '<style type="text/css" id="custom-header-css">' . esc_attr( trim( $style ) ) . '</style>' . "\n";
74
+	if ( ! empty($style)) {
75
+		echo "\n" . '<style type="text/css" id="custom-header-css">' . esc_attr(trim($style)) . '</style>' . "\n";
76 76
 	}
77 77
 
78 78
 }
Please login to merge, or discard this patch.