$show_default_title = get_post_meta( get_the_ID(), '_et_pb_show_title', true );
$is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() );
if ( et_builder_is_product_tour_enabled() ):
// load fullwidth page in Product Tour mode
while ( have_posts() ): the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'et_pb_post' ); ?>>
<div class="entry-content">
</div> <!-- .entry-content -->
</article> <!-- .et_pb_post -->
<div id="content-area" class="clearfix">
<?php while ( have_posts() ) : the_post(); ?>
* Fires before the title and post meta on single posts.
do_action( 'et_before_post' );
<article id="post-<?php the_ID(); ?>" <?php post_class( 'et_pb_post' ); ?>>
<?php if ( ( 'off' !== $show_default_title && $is_page_builder_used ) || ! $is_page_builder_used ) { ?>
<div class="et_post_meta_wrapper">
<h1 class="entry-title"><?php the_title(); ?></h1>
if ( ! post_password_required() ) :
$width = (int) apply_filters( 'et_pb_index_blog_image_width', 1080 );
$height = (int) apply_filters( 'et_pb_index_blog_image_height', 675 );
$classtext = 'et_featured_image';
$titletext = get_the_title();
$alttext = get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true );
$thumbnail = get_thumbnail( $width, $height, $classtext, $alttext, $titletext, false, 'Blogimage' );
$thumb = $thumbnail["thumb"];
$post_format = et_pb_post_format();
if ( 'video' === $post_format && false !== ( $first_video = et_get_first_video() ) ) {
'<div class="et_main_video_container">
et_core_esc_previously( $first_video )
} else if ( ! in_array( $post_format, array( 'gallery', 'link', 'quote' ) ) && 'on' === et_get_option( 'divi_thumbnails', 'on' ) && '' !== $thumb ) {
print_thumbnail( $thumb, $thumbnail["use_timthumb"], $alttext, $width, $height );
} else if ( 'gallery' === $post_format ) {
$text_color_class = et_divi_get_post_text_color();
$inline_style = et_divi_get_post_bg_inline_style();
switch ( $post_format ) {
$audio_player = et_pb_get_audio_player();
'<div class="et_audio_content%1$s"%2$s>
esc_attr( $text_color_class ),
et_core_esc_previously( $inline_style ),
et_core_esc_previously( $audio_player )
'<div class="et_quote_content%2$s"%3$s>
</div> <!-- .et_quote_content -->',
et_core_esc_previously( et_get_blockquote_in_content() ),
esc_attr( $text_color_class ),
et_core_esc_previously( $inline_style )
'<div class="et_link_content%3$s"%4$s>
<a href="%1$s" class="et_link_main_url">%2$s</a>
</div> <!-- .et_link_content -->',
esc_url( et_get_link_url() ),
esc_html( et_get_link_url() ),
esc_attr( $text_color_class ),
et_core_esc_previously( $inline_style )
</div> <!-- .et_post_meta_wrapper -->
<div class="entry-content">
do_action( 'et_before_content' );
wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'Divi' ), 'after' => '</div>' ) );
</div> <!-- .entry-content -->
<div class="et_post_meta_wrapper">
if ( et_get_option('divi_468_enable') === 'on' ){
echo '<div class="et-single-post-ad">';
if ( et_get_option('divi_468_adsense') !== '' ) echo et_core_intentionally_unescaped( et_core_fix_unclosed_html_tags( et_get_option('divi_468_adsense') ), 'html' );
<a href="<?php echo esc_url(et_get_option('divi_468_url')); ?>"><img src="<?php echo esc_attr(et_get_option('divi_468_image')); ?>" alt="468" class="foursixeight" /></a>
echo '</div> <!-- .et-single-post-ad -->';
* Fires after the post content on single posts.
do_action( 'et_after_post' );
if ( ( comments_open() || get_comments_number() ) && 'on' === et_get_option( 'divi_show_postcomments', 'on' ) ) {
comments_template( '', true );
</div> <!-- .et_post_meta_wrapper -->
</article> <!-- .et_pb_post -->
</div> <!-- #left-area -->
</div> <!-- #content-area -->
</div> <!-- .container -->
</div> <!-- #main-content -->