advantage_admin_header_image

The Advantage advantage admin header image function.

Description

advantage_admin_header_image(); 

Usage

  1. if ( !function_exists( 'advantage_admin_header_image' ) ) { 
  2. require_once '/inc/lib-admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = advantage_admin_header_image(); 
  7.  

Defined (1)

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

/inc/lib-admin.php  
  1. function advantage_admin_header_image() { ?> 
  2. <div id="headimg"> 
  3. <?php 
  4. $color = get_header_textcolor(); 
  5. $image = get_header_image(); 
  6. if ( $color && $color != 'blank' ) 
  7. $style = ' style="color:#' . $color . '"'; 
  8. else 
  9. $style = ' style="display:none"'; 
  10. ?> 
  11. <?php if ( $image ) : ?> 
  12. <img src="<?php echo esc_url( $image ); ?>" alt="" /> 
  13. <?php endif; ?> 
  14. <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> 
  15. <div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div> 
  16. </div> 
  17. <?php