minileven_get_header_image

This function grabs the custom header from the current theme so that Minileven can display it.

Description

minileven_get_header_image(); 

Usage

  1. if ( !function_exists( 'minileven_get_header_image' ) ) { 
  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_get_header_image(); 
  7.  

Defined (1)

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

/modules/minileven/theme/pub/minileven/inc/custom-header.php  
  1. function minileven_get_header_image() { 
  2. $theme_slug = minileven_actual_current_theme(); 
  3. $mods = get_option( "theme_mods_{$theme_slug}" ); 
  4.  
  5. if ( isset( $mods['header_image'] ) && 'remove-header' != $mods['header_image'] && 'random-default-image' != $mods['header_image'] && 'random-uploaded-image' != $mods['header_image'] ) 
  6. return $mods['header_image']; 
  7.  
  8. return false;