responsive_admin_header_image

Custom header image markup displayed on the Appearance > Header admin panel.

Description

responsive_admin_header_image(); 

Usage

  1. if ( !function_exists( 'responsive_admin_header_image' ) ) { 
  2. require_once '/includes/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = responsive_admin_header_image(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/functions.php  
  1. function responsive_admin_header_image() { ?> 
  2. <div id="headimg"> 
  3. <?php 
  4. if ( 'blank' == get_header_textcolor() || '' == get_header_textcolor() ) 
  5. $style = ' style="display:none;"'; 
  6. else 
  7. $style = ' style="color:#' . get_header_textcolor() . ';"'; 
  8. ?> 
  9. <?php $header_image = get_header_image(); 
  10. if ( ! empty( $header_image ) ) : ?> 
  11. <img src="<?php echo esc_url( $header_image ); ?>" alt="" /> 
  12. <?php endif; ?> 
  13. <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> 
  14. <div id="description"><?php bloginfo( 'description' ); ?></div> 
  15. </div> 
  16. <?php }