mh_impact_lite_logo

The MH Impact lite mh impact lite logo function.

Description

mh_impact_lite_logo(); 

Usage

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

Defined (1)

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

/includes/mh-custom-functions.php  
  1. function mh_impact_lite_logo() { 
  2. $header_img = get_header_image(); 
  3. $header_title = get_bloginfo('name'); 
  4. $header_desc = get_bloginfo('description'); 
  5. echo '<a href="' . esc_url(home_url('/')) . '" rel="home">' . "\n"; 
  6. echo '<div class="logo-wrap" role="banner">' . "\n"; 
  7. if ($header_img) { 
  8. echo '<img src="' . esc_url($header_img) . '" height="' . get_custom_header()->height . '" width="' . get_custom_header()->width . '" alt="' . esc_attr($header_title) . '" />' . "\n"; 
  9. if (display_header_text()) { 
  10. $text_color = get_header_textcolor(); 
  11. if ($text_color != get_theme_support('custom-header', 'default-text-color')) { 
  12. echo '<style type="text/css" id="mh-header-css">'; 
  13. echo '.logo-title, .logo-tagline { color: #' . esc_attr($text_color) . '; }'; 
  14. echo '</style>' . "\n"; 
  15. echo '<div class="logo">' . "\n"; 
  16. if ($header_title) { 
  17. echo '<h1 class="logo-title">' . esc_attr($header_title) . '</h1>' . "\n"; 
  18. if ($header_desc) { 
  19. echo '<h2 class="logo-tagline">' . esc_attr($header_desc) . '</h2>' . "\n"; 
  20. echo '</div>' . "\n"; 
  21. echo '</div>' . "\n"; 
  22. echo '</a>' . "\n";