'. esc_html__( 'Skip to content', 'consted' ) .'';
}
/*
* Header section wrapping before
*
* @return $html
*/
function header_wrapping_before(){
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;
?>
';
$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 (){
?>
'menu-1',
'depth' => 3,
'menu_class' => 'navbar-nav ml-auto',
'container' => 'ul',
//'fallback_cb' => 'consted_shop_navwalker::fallback',
) );
?>
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();