| Conditions | 3 |
| Paths | 3 |
| Total Lines | 33 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | function bitsy_header_style() { |
||
| 38 | $header_text_color = get_header_textcolor(); |
||
|
1 ignored issue
–
show
|
|||
| 39 | |||
| 40 | /* |
||
| 41 | * If no custom options for text are set, let's bail. |
||
| 42 | * get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: add_theme_support( 'custom-header' ). |
||
| 43 | */ |
||
| 44 | if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { |
||
|
1 ignored issue
–
show
|
|||
| 45 | return; |
||
| 46 | } |
||
| 47 | |||
| 48 | // If we get this far, we have custom styles. Let's do this. |
||
| 49 | ?> |
||
| 50 | <style type="text/css"> |
||
| 51 | <?php |
||
| 52 | // Has the text been hidden? |
||
| 53 | if ( ! display_header_text() ) : |
||
|
1 ignored issue
–
show
|
|||
| 54 | ?> |
||
| 55 | .site-title, |
||
| 56 | .site-description { |
||
| 57 | position: absolute; |
||
| 58 | clip: rect(1px, 1px, 1px, 1px); |
||
| 59 | } |
||
| 60 | <?php |
||
| 61 | // If the user has set a custom color for the text use that. |
||
| 62 | else : |
||
| 63 | ?> |
||
| 64 | .site-title a, |
||
| 65 | .site-description { |
||
| 66 | color: #<?php echo esc_attr( $header_text_color ); ?>; |
||
|
1 ignored issue
–
show
|
|||
| 67 | } |
||
| 68 | <?php endif; ?> |
||
| 69 | </style> |
||
| 70 | <?php |
||
| 73 |