* @link https://www.elicus.com/ * @copyright 2021 Elicus Technologies Private Limited * @version 1.9.0 */ $output .= '
'; // Post Icon. if ( '' !== $select_timeline_icon ) { $output .= sprintf( '
%1$s
', esc_attr( $timeline_icon ) ); } $output .= '
'; //Date for Mobile $output .= sprintf( '%1$s', ( 'on' === $show_date ? et_get_safe_localization( sprintf( '
%s
', esc_html( get_the_date( $post_date, $post_id ) ) ) ) : '' ) ); // Post Content Wrapper. $output .= '
'; // Post Featured Image Wrapper. if ( '' !== $thumb && 'on' === $show_thumbnail ) { $output .= ''; } // Post Title. $output .= '<' . esc_html( $timeline_post_title ) . ' class="dipl_blog_timeline_post_title">' . esc_html( get_the_title( $post_id ) ) . ''; // Post Meta. if ( 'on' === $show_categories || 'on' === $show_author || 'on' === $show_comments ) { $categories = get_the_category_list( ', ', 'empty_string', $post_id ); $output .= sprintf( '

%1$s %2$s %3$s

', ( 'on' === $show_categories && '' !== $categories ? et_get_safe_localization( sprintf( '%1$s', $categories ) ) : '' ), ( 'on' === $show_author ? et_get_safe_localization( sprintf( '%1$s', get_the_author_posts_link() ) ) : '' ), ( 'on' === $show_comments ? et_get_safe_localization( sprintf( '%s', sprintf( // translators: %s: comment. esc_html( _nx( '%s Comment', '%s Comments', get_comments_number( $post_id ), 'number of comments', 'divi-plus' ) ), number_format_i18n( get_comments_number( $post_id ) ) ) ) ) : '' ) ); } // Post Excerpt or Content. if ( 'on' === $show_content ) { $post_content = get_the_content( null, false, $post_id ); global $more; // page builder doesn't support more tag, so display the_content() in case of post made with page builder. if ( et_pb_is_pagebuilder_used( $post_id ) ) { //phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $more = 1; $content = et_core_intentionally_unescaped( do_shortcode( $post_content ), 'html' ); if ( '' !== $content ) { $output .= '
' . $content . '
'; } } else { //phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $more = null; $content = wp_kses_post( dipl_strip_shortcodes( apply_filters( 'the_content', $post_content ) ) ); if ( '' !== $content ) { $output .= '
' . $content . '
'; } } } else { if ( has_excerpt() && '' !== trim( get_the_excerpt( $post_id ) ) && 0 !== intval( $excerpt_length ) ) { $excerpt = wpautop( dipl_strip_shortcodes( get_the_excerpt( $post_id ) ) ); if ( '' !== $excerpt ) { $output .= '
' . $excerpt . '
'; } } else { if ( 0 !== intval( $excerpt_length ) ) { $excerpt = wpautop( strip_shortcodes( dipl_truncate_post( $excerpt_length, false, $post_id, true ) ) ); if ( '' !== $excerpt ) { $output .= '
' . $excerpt . '
'; } } } if ( 'on' === $show_read_more ) { $read_more = sprintf( '', et_core_intentionally_unescaped( $read_more_button, 'html' ) ); $output .= et_core_intentionally_unescaped( $read_more, 'html' ); } } $output .= ''; $output .= '
'; $output .= '
'; $output .= sprintf( '
%1$s
', ( 'on' === $show_date ? et_get_safe_localization( sprintf( '
%s
', esc_html( get_the_date( $post_date, $post_id ) ) ) ) : '' ) ); $output .= '
';