Creativ Themes' ); ?>
0 ) { $length = absint( $excerpt_length ); } return $length; } endif; add_filter( 'excerpt_length', 'creativ_education_excerpt_length', 999 ); if( ! function_exists( 'creativ_education_banner_header ' ) ) : /** * Page Header */ function creativ_education_banner_header () { if ( is_front_page() && is_home() ){ $header_image_url = get_template_directory_uri() . '/assets/images/default-header.jpg'; } elseif( is_front_page() ) { return; } else { $header_image_url = creativ_education_banner_image( $image_url = '' ); } ?>
'; } endif; add_action( 'creativ_education_banner_header', 'creativ_education_banner_header', 10 ); if( ! function_exists( 'creativ_education_banner_title' ) ) : /** * Page Header */ function creativ_education_banner_title(){ if ( ( is_front_page() && is_home() ) || is_home() ){ echo '

'; esc_html_e( 'Blog','creativ-education' ); echo '

'; } if( is_singular() ) { the_title( '

', '

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

', '

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

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

' . esc_html__( 'Error 404', 'creativ-education' ) . ''; } } endif; if( ! function_exists( 'creativ_education_banner_image' ) ) : /** * Banner Header Image */ function creativ_education_banner_image( $image_url ){ $archive_header = creativ_education_get_option( 'archive_header_image' ); $search_header = creativ_education_get_option( 'search_header_image' ); $header_404 = creativ_education_get_option( '404_header_image' ); if ( is_home() && ! is_front_page() ){ $image_url = get_the_post_thumbnail_url( get_option( 'page_for_posts' ), 'full' ); $image_url = ( ! empty( $image_url) ) ? $image_url : get_template_directory_uri() . '/assets/images/default-header.jpg'; } elseif( is_singular() ){ $image_url = get_the_post_thumbnail_url( '', 'full' ); $image_url = ( ! empty( $image_url) ) ? $image_url : get_template_directory_uri() . '/assets/images/default-header.jpg'; } elseif( is_archive() ){ $image_url = ( ! empty( $archive_header) ) ? $archive_header : get_template_directory_uri() . '/assets/images/default-header.jpg'; } elseif( is_search() ){ $image_url = ( ! empty( $search_header) ) ? $search_header : get_template_directory_uri() . '/assets/images/default-header.jpg'; } elseif( is_404() ) { $image_url = ( ! empty( $header_404) ) ? $header_404 : get_template_directory_uri() . '/assets/images/default-header.jpg'; } return $image_url; } endif; if ( ! function_exists( 'creativ_education_posts_tags' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. */ function creativ_education_posts_tags() { // Hide category and tag text for pages. if ( 'post' === get_post_type() && has_tag() ) { ?>