post_content ) ) { $description = apply_filters( 'the_content', $queried_object->post_content ); } // Category, tag and author pages show custom title if ( apply_filters( 'kalium_blog_page_heading_replace_for_taxonomies', true ) ) { $separator = apply_filters( 'kalium_blog_page_heading_replace_for_taxonomies_separator', ' / ' ); // Category if ( is_category() ) { if ( apply_filters( 'kalium_blog_page_header_last_category_title_only', false ) ) { $categories = single_cat_title( '', false ); } else { // CLIENT-MOD: added strip_tags to remove html anchors $categories = strip_tags( get_the_category_list( $separator ) ); } if ( apply_filters( 'kalium_blog_page_header_show_category_prefix', true ) ) { // Removed space betwen title and category and removed separator var, added manual char to category text $title = sprintf( '%s%s', esc_html__( 'Category', 'kalium' ) . ': ', $categories ); } else { $title = sprintf( '%s', $categories ); } $description = category_description( $queried_object->object_id ); } // Tag else if ( is_tag() ) { $tag = single_term_title( '', false ); // CLIENT-MOD: Removed space betwen title and tag and removed separator var, added manual char to category text $title = sprintf( '%s%s', esc_html__( 'Tag', 'kalium' ) . ': ', $tag ); $description = tag_description( $queried_object->object_id ); } // Author else if ( is_author() ) { $author = get_user_by( 'id', get_queried_object_id() ); $display_name = $author instanceof WP_User ? $author->display_name : get_the_author(); // CLIENT-MOD: Removed space betwen title and tag and removed separator var, added manual char to category text $title = sprintf( '%s%s', esc_html__( 'Author', 'kalium' ) . ': ', $display_name ); $description = get_the_author_meta( 'description' ); } // Year else if ( is_year() ) { // CLIENT-MOD: Removed space betwen title and tag and removed separator var, added manual char to category text $title = sprintf( '%s%s', esc_html__( 'Year', 'kalium' ) . ': ', get_the_date( 'Y' ) ); $description = ''; } // Month else if ( is_month() ) { // CLIENT-MOD: Removed space betwen title and tag and removed separator var, added manual char to category text $title = sprintf( '%s%s', esc_html__( 'Month', 'kalium' ) . ': ', get_the_date( 'F Y' ) ); $description = ''; } // Day else if ( is_day() ) { // CLIENT-MOD: Removed space betwen title and tag and removed separator var, added manual char to category text $title = sprintf( '%s%s', esc_html__( 'Month', 'kalium' ) . ': ', get_the_date( 'F j, Y' ) ); $description = ''; } } // Title and description $args['title'] = $title; $args['description'] = $description; // When there is WPBakery content in description show without page-heading template if ( false !== strpos( $description, 'vc_row' ) ) { echo $description; } else { // Page heading template kalium_get_template( 'global/page-heading.php', $args ); } } } } /** * No posts to show message. */ if ( ! function_exists( 'kalium_blog_no_posts_found_message' ) ) { function kalium_blog_no_posts_found_message() { ?>
'; } } /** * Blog archive, posts column wrapper close. */ if ( ! function_exists( 'kalium_blog_archive_posts_column_close' ) ) { function kalium_blog_archive_posts_column_close() { echo ''; } } /** * Blog posts loop template. */ if ( ! function_exists( 'kalium_blog_loop_post_template' ) ) { function kalium_blog_loop_post_template() { // Current blog template $blog_template = kalium_blog_get_template(); // Post classes $classes = [ 'post-item', 'template-' . $blog_template, ]; if ( in_array( $blog_template, [ 'square', 'rounded' ] ) ) { $classes[] = 'columned'; } // Args $args = [ 'classes' => $classes, ]; // Post item template kalium_get_template( 'blog/loop/post-item.php', $args ); } } /** * Blog archive sidebar. */ if ( ! function_exists( 'kalium_blog_sidebar_loop' ) ) { function kalium_blog_sidebar_loop() { if ( kalium_blog_get_option( 'loop/sidebar/visible' ) ) : ?>