'. esc_html( $mail ) .''; ?>
0 ) { $length = absint( $excerpt_length ); } return $length; } endif; add_filter( 'excerpt_length', 'all_cleaning_services_excerpt_length', 999 ); if( ! function_exists( 'all_cleaning_services_banner_header' ) ) : /** * Page Header */ function all_cleaning_services_banner_header() { $show_header_image = all_cleaning_services_get_option( 'show_header_image' ); $show_page_title = all_cleaning_services_get_option( 'show_page_title' ); if ( is_front_page() && ! is_home() ) return; $header_image = get_header_image(); if ( is_singular() ) : $header_image = has_post_thumbnail() ? get_the_post_thumbnail_url( get_the_id(), 'full' ) : $header_image; endif; ?>
'; } endif; add_action( 'all_cleaning_services_banner_header', 'all_cleaning_services_banner_header', 10 ); if( ! function_exists( 'all_cleaning_services_banner_title' ) ) : /** * Page Header */ function all_cleaning_services_banner_title(){ if ( ( is_front_page() && is_home() ) || is_home() ){ $your_latest_posts_title = all_cleaning_services_get_option( 'your_latest_posts_title' );?>

', '' ); } if( is_archive() ){ the_archive_description( '
', '
' ); the_archive_title( '

', '

' ); } if( is_search() ){ ?>

' . get_search_query() . '' ); ?>

' . esc_html__( 'Error 404', 'all-cleaning-services' ) . ''; } } endif; /** * Breadcrumbs */ if (!function_exists('all_cleaning_services_breadcrumb')) { function all_cleaning_services_breadcrumb() { if ( is_front_page() ) { return; } echo ''.(sprintf( __( '$breadcrumbhometxtbutton', 'all-cleaning-services' ))); echo ' / '; if (is_single()) { $categories = get_the_category(); if ( $categories ) { $level = 0; $hierarchy_arr = array(); foreach ( $categories as $cat ) { $anc = get_ancestors( $cat->term_id, 'category' ); $count_anc = count( $anc ); if ( 0 < $count_anc && $level < $count_anc ) { $level = $count_anc; $hierarchy_arr = array_reverse( $anc ); array_push( $hierarchy_arr, $cat->term_id ); } } if ( empty( $hierarchy_arr ) ) { $category = $categories[0]; echo ''.esc_html( $category->name ).''; } else { foreach ( $hierarchy_arr as $cat_id ) { $category = get_term_by( 'id', $cat_id, 'category' ); echo ''.esc_html( $category->name ).''; } } } echo ""; the_title(); echo ""; } elseif (is_page()) { $parent_id = wp_get_post_parent_id( get_the_ID() ); if ( $parent_id ) { $breadcrumbs = array(); while ( $parent_id ) { $page = get_page( $parent_id ); $breadcrumbs[] = ''.esc_html( get_the_title($page->ID) ). ''; $parent_id = $page->post_parent; } $breadcrumbs = array_reverse( $breadcrumbs ); foreach ( $breadcrumbs as $crumb ) { echo $crumb; } } echo ""; the_title(); echo ""; } elseif (is_category()) { global $wp_query; $cat_obj = $wp_query->get_queried_object(); $this_cat_id = $cat_obj->term_id; $hierarchy_arr = get_ancestors( $this_cat_id, 'category' ); if ( $hierarchy_arr ) { $hierarchy_arr = array_reverse( $hierarchy_arr ); foreach ( $hierarchy_arr as $cat_id ) { $category = get_term_by( 'id', $cat_id, 'category' ); echo ''.esc_html( $category->name ).''; } } echo ""; single_cat_title(); echo ""; } elseif (is_author()) { echo ""; if(get_query_var('author_name')) : $curauth = get_user_by('slug', get_query_var('author_name')); else : $curauth = get_userdata(get_query_var('author')); endif; echo esc_html( $curauth->nickname ); echo ""; } elseif (is_search()) { echo ""; the_search_query(); echo ""; } elseif (is_tag()) { echo ""; single_tag_title(); echo ""; } } } if ( ! function_exists( 'all_cleaning_services_posts_tags' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. */ function all_cleaning_services_posts_tags() { // Hide category and tag text for pages. if ( 'post' === get_post_type() && has_tag() ) { ?> '; echo ''; echo ''; }