'. esc_html__( 'Skip to content', 'consted' ) .''; } /* * Header section wrapping before * * @return $html */ function header_wrapping_before(){ echo '
'; } /* * Header section wrapping after * * @return $html */ function header_wrapping_after(){ echo '
'; } /* * Site top bar * * @return $html */ function site_top_bar(){ if( empty( consted_get_option('__topbar_phone') ) && empty( consted_get_option('__topbar_address') ) && empty( consted_get_option('__topbar_email') ) ) return false; ?>
'; if ( function_exists( 'the_custom_logo' ) && has_custom_logo() ) { $html .= get_custom_logo(); } if ( display_header_text() == true ){ $html .= '

'; $html .= get_bloginfo( 'name' ); $html .= '

'; $description = get_bloginfo( 'description', 'display' ); if ( $description ) : $html .= '
'.esc_html($description).'
'; endif; } $html .= '
'; $html = apply_filters( 'consted_get_site_branding_filter', $html ); echo wp_kses( $html, $this->alowed_tags() ); } /** * Get the Site Main Menu / Navigation * * @return HTML */ public function get_site_navigation (){ ?>
style="background-image: url(); background-attachment: scroll; " >
hero_block_heading(), $this->alowed_tags() );?>
'; if ( is_home() ) { echo '

'; echo !empty( get_option('page_for_posts') ) ? esc_html( get_the_title( get_option('page_for_posts') ) ) : bloginfo( 'name' ); echo '

'; echo '

'; echo esc_html(get_bloginfo( 'description', 'display' )); echo '

'; }elseif( is_front_page() ){ echo '

'; echo !empty( get_option('page_on_front') ) ? esc_html( get_the_title( get_option('page_on_front') ) ) : bloginfo( 'name' ); echo '

'; echo '

'; echo esc_html(get_bloginfo( 'description', 'display' )); echo '

'; }else if ( function_exists('is_shop') && is_shop() ){ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { echo '

'; echo esc_html( woocommerce_page_title() ); echo '

'; } }else if( function_exists('is_product_category') && is_product_category() ){ echo '

'; echo esc_html( woocommerce_page_title() ); echo '

'; echo '

'; do_action( 'woocommerce_archive_description' ); echo '

'; }elseif ( is_singular() ) { echo '

'; echo single_post_title( '', false ); echo '

'; } elseif ( is_archive() ) { the_archive_title( '

', '

' ); the_archive_description( '

', '

' ); } elseif ( is_search() ) { echo '

'; printf( /* translators:straing */ esc_html__( 'Search Results for: %s', 'consted' ), get_search_query() ); echo '

'; } elseif ( is_404() ) { echo '

'; esc_html_e( 'Oops! That page can’t be found.', 'consted' ); echo '

'; } echo ''; } private function alowed_tags(){ if( function_exists('consted_alowed_tags') ){ return consted_alowed_tags(); }else{ return array(); } } } $consted_header_layout_class = new Consted_Header_Layout();