minileven_header

This function determines how the header should be displayed.

Description

minileven_header(); 

Usage

  1. if ( !function_exists( 'minileven_header' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/minileven/theme/pub/minileven/inc/custom-header.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = minileven_header(); 
  7.  

Defined (1)

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

/modules/minileven/theme/pub/minileven/inc/custom-header.php  
  1. function minileven_header() { 
  2. $header_image = minileven_get_header_image(); 
  3. $header_text = minileven_header_text_display(); 
  4.  
  5. if ( 'blank' != $header_text || false != $header_image ) : ?> 
  6.  
  7. <header id="branding" role="banner"> 
  8. <?php if ( 'blank' != $header_text ) : ?> 
  9. <div class="site-branding"> 
  10. <h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1> 
  11. <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2> 
  12. </div> 
  13. <?php endif; 
  14.  
  15. if ( false !== $header_image ) : ?> 
  16. <div id="header-img"> 
  17. <a href="<?php echo esc_url( home_url( '/' ) ); ?>"> 
  18. <img src="<?php echo $header_image; ?>" alt="" /> 
  19. </a> 
  20. </div><!-- #header-img --> 
  21. <?php endif; // end check for header image existence. ?> 
  22. </header><!-- #branding --> 
  23. <?php endif; // end check for both header text and header image