%3$s ', ( is_front_page() && is_home() ) ? 'h1' : 'p', esc_url( apply_filters( 'hotelgalaxy_site_title_href', home_url( '/' ) ) ), get_bloginfo( 'name' ) ) ); $site_tagline = apply_filters( 'hotelgalaxy_site_description_output', sprintf( '

%1$s

', html_entity_decode( get_bloginfo( 'description', 'display' ) ) ) ); $show_title = hotelgalaxy_get_option('show_title'); $show_tagline = hotelgalaxy_get_option('show_tagline'); // *** if ( $show_title || $show_tagline ) { echo apply_filters( 'hotelgalaxy_site_branding_output', sprintf( '
%1$s %2$s
', ( $show_title ) ? $site_title : '', ( $show_tagline ) ? $site_tagline : '' ) ); } } } if ( ! function_exists( 'hotelgalaxy_logo_construct' ) ) { function hotelgalaxy_logo_construct() { $logo = ( function_exists( 'the_custom_logo' ) && get_theme_mod( 'custom_logo' ) ) ? wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' ) : false; $logo_url = (is_array($logo)) ? $logo[0] : ''; if ( empty( $logo_url ) ) { return; } $attr = apply_filters( 'hotelgalaxy_logo_attributes', array( 'class' => 'header-image', 'alt' => esc_attr( apply_filters( 'hotelgalaxy_logo_title', get_bloginfo( 'name', 'display' ) ) ), 'src' => $logo_url, 'title' => esc_attr( apply_filters( 'hotelgalaxy_logo_title', get_bloginfo( 'name', 'display' ) ) ), ) ); $attr = array_map( 'esc_attr', $attr ); $html_attr = ''; foreach ( $attr as $name => $value ) { $html_attr .= " $name=" . '"' . $value . '"'; } echo apply_filters( 'hotelgalaxy_logo_output', sprintf( '', esc_url( apply_filters( 'hotelgalaxy_logo_href' , home_url( '/' ) ) ), esc_attr( apply_filters( 'hotelgalaxy_logo_title', get_bloginfo( 'name', 'display' ) ) ), $html_attr ), $logo_url, $html_attr ); } } ?>