0 ) { $length = absint( $excerpt_length ); } return $length; } endif; add_filter( 'excerpt_length', 'business_note_excerpt_length', 999 ); if( ! function_exists( 'business_note_banner_header' ) ) : /** * Page Header */ function business_note_banner_header() { if ( is_front_page() && is_home() ){ $header_image = get_header_image(); $header_image_url = ! empty( $header_image ) ? $header_image : get_template_directory_uri() . '/assets/images/default-header.jpg'; } elseif( is_front_page() ) { if( false == business_note_get_option('disable_frontpage_header_image') ) { $header_image = get_header_image(); $header_image_url = ! empty( $header_image ) ? $header_image : get_template_directory_uri() . '/assets/images/default-header.jpg'; } else return; } else { $header_image = get_header_image(); $header_image_url = ! empty( $header_image ) ? $header_image : get_template_directory_uri() . '/assets/images/default-header.jpg'; } ?>
'; } endif; add_action( 'business_note_banner_header', 'business_note_banner_header', 10 ); if( ! function_exists( 'business_note_banner_title' ) ) : /** * Page Header */ function business_note_banner_title(){ if ( ( is_front_page() && is_home() ) || is_home() ){ $your_latest_posts_title = business_note_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', 'business-note' ) . ''; } } endif; if ( ! function_exists( 'business_note_posts_tags' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. */ function business_note_posts_tags() { // Hide category and tag text for pages. if ( 'post' === get_post_type() && has_tag() ) { ?>