'. esc_html__( 'Skip to content', 'bc-consulting' ) .''; } /** * @return $html */ function site_top_bar(){ echo '
'; echo '
  • '.esc_html( bc_consulting_get_option('dialogue_text') ).'
'; echo '
'; wp_nav_menu( array( 'theme_location' => 'top-bar', 'depth' => 1, 'menu_class' => 'link-bar d-flex', 'container' => 'ul', 'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback', ) ); echo ''; echo '
'; echo '
'; } /** * @return $html */ function site_header_wrap_before(){ $html = ''; echo wp_kses( $html , $this->alowed_tags() ); } /** * Container before * * @return $html */ function site_header_layout(){ ?>
'; 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( '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 (){ ?> 'menu-1', 'depth' => 3, 'container' => 'div', 'container_class' => 'collapse navbar-collapse ', 'container_id' => 'navbarSupportedContent', 'menu_class' => 'nav navbar-nav', 'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback', 'walker' => new WP_Bootstrap_Navwalker()) ); } /** * Get the Site search bar * * @return HTML */ public function get_site_search_form (){ ?>
hero_block_heading()) ){ echo wp_kses( $this->hero_block_heading(), $this->alowed_tags()); } ?>
'; if ( is_home() ) { echo '

'; echo 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( 'emart_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', 'bc-consulting' ), get_search_query() ); echo '

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

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

'; } echo ''; } private function alowed_tags(){ if( function_exists('bc_consulting_alowed_tags') ){ return bc_consulting_alowed_tags(); }else{ return array(); } } } $bc_consulting_Header_Layout = new bc_consulting_Header_Layout();