if ( have_posts() ) : while ( have_posts() ) : the_post(); $post_format = et_pb_post_format(); ?>
> $thumb = ''; $width = (int) apply_filters( 'et_pb_index_blog_image_width', 1080 ); $height = (int) apply_filters( 'et_pb_index_blog_image_height', 675 ); $classtext = 'et_pb_post_main_image'; $titletext = get_the_title(); $thumbnail = get_thumbnail( $width, $height, $classtext, $titletext, $titletext, false, 'Blogimage' ); $thumb = $thumbnail["thumb"]; et_divi_post_format_content(); if ( ! in_array( $post_format, array( 'link', 'audio', 'quote' ) ) ) { if ( 'video' === $post_format && false !== ( $first_video = et_get_first_video() ) ) : printf( '
%1$s
', $first_video ); elseif ( ! in_array( $post_format, array( 'gallery' ) ) && 'on' === et_get_option( 'divi_thumbnails_index', 'on' ) && '' !== $thumb ) : ?> print_thumbnail( $thumb, $thumbnail["use_timthumb"], $titletext, $width, $height ); ?> elseif ( 'gallery' === $post_format ) : et_pb_gallery_images(); endif; } ?> if ( ! in_array( $post_format, array( 'link', 'audio', 'quote' ) ) ) : ?> if ( ! in_array( $post_format, array( 'link', 'audio' ) ) ) : ?>

the_title(); ?>

endif; ?> et_divi_post_meta(); if ( 'on' !== et_get_option( 'divi_blog_style', 'false' ) || ( is_search() && ( 'on' === get_post_meta( get_the_ID(), '_et_pb_use_builder', true ) ) ) ) { truncate_post( 270 ); } else { the_content(); } ?> endif; ?>
endwhile; if ( function_exists( 'wp_pagenavi' ) ) wp_pagenavi(); else get_template_part( 'includes/navigation', 'index' ); else : get_template_part( 'includes/no-results', 'index' ); endif; ?>
get_sidebar(); ?>
get_footer();