catchresponsive_site_branding

Get the logo and display.

Description

catchresponsive_site_branding(); 

Usage

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

Defined (1)

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

/inc/catchresponsive-custom-header.php  
  1. function catchresponsive_site_branding() { 
  2. //catchresponsive_flush_transients(); 
  3.  
  4. //$style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); 
  5.  
  6. $catchresponsive_site_logo = ''; 
  7. //Checking Logo 
  8. if ( function_exists( 'has_custom_logo' ) ) { 
  9. if ( has_custom_logo() ) { 
  10. $catchresponsive_site_logo = ' 
  11. <div id="site-logo">'. get_custom_logo() . '</div><!-- #site-logo -->'; 
  12. elseif ( '' != $options['logo'] && !$options['logo_disable'] ) { 
  13. $catchresponsive_site_logo = ' 
  14. <div id="site-logo"> 
  15. <a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" rel="home"> 
  16. <img src="' . esc_url( $options['logo'] ) . '" alt="' . esc_attr( $options['logo_alt_text'] ). '"> 
  17. </a> 
  18. </div><!-- #site-logo -->'; 
  19.  
  20. $catchresponsive_header_text = ' 
  21. <div id="site-header"> 
  22. <h1 class="site-title"><a href="' . esc_url( home_url( '/' ) ) . '">' . get_bloginfo( 'name' ) . '</a></h1> 
  23. <h2 class="site-description">' . get_bloginfo( 'description' ) . '</h2> 
  24. </div><!-- #site-header -->'; 
  25.  
  26.  
  27. $text_color = get_header_textcolor(); 
  28.  
  29. $catchresponsive_site_branding = '<div id="site-branding">'; 
  30. $catchresponsive_site_branding .= $catchresponsive_header_text; 
  31.  
  32. if ( function_exists( 'has_custom_logo' ) ) { 
  33. if ( has_custom_logo() ) { 
  34. if ( ! $options['move_title_tagline'] && 'blank' != $text_color ) { 
  35. $catchresponsive_site_branding = '<div id="site-branding" class="logo-left">'; 
  36. $catchresponsive_site_branding .= $catchresponsive_site_logo; 
  37. $catchresponsive_site_branding .= $catchresponsive_header_text; 
  38. else { 
  39. $catchresponsive_site_branding = '<div id="site-branding" class="logo-right">'; 
  40. $catchresponsive_site_branding .= $catchresponsive_header_text; 
  41. $catchresponsive_site_branding .= $catchresponsive_site_logo; 
  42. elseif ( '' != $options['logo'] && !$options['logo_disable'] ) { 
  43. if ( ! $options['move_title_tagline'] && 'blank' != $text_color ) { 
  44. $catchresponsive_site_branding = '<div id="site-branding" class="logo-left">'; 
  45. $catchresponsive_site_branding .= $catchresponsive_site_logo; 
  46. $catchresponsive_site_branding .= $catchresponsive_header_text; 
  47. else { 
  48. $catchresponsive_site_branding = '<div id="site-branding" class="logo-right">'; 
  49. $catchresponsive_site_branding .= $catchresponsive_header_text; 
  50. $catchresponsive_site_branding .= $catchresponsive_site_logo; 
  51.  
  52. $catchresponsive_site_branding .= '</div><!-- #site-branding-->'; 
  53.  
  54. echo $catchresponsive_site_branding ;