} ?> <?php $text_color_class = et_divi_get_post_text_color(); $inline_style = et_divi_get_post_bg_inline_style(); switch ($post_format) { case 'audio': printf('<div class="et_audio_content%1$s"%2$s> %3$s </div>', esc_attr($text_color_class), $inline_style, et_pb_get_audio_player()); break; case 'quote': printf('<div class="et_quote_content%2$s"%3$s> %1$s </div> <!-- .et_quote_content -->', et_get_blockquote_in_content(), esc_attr($text_color_class), $inline_style); break; case 'link': printf('<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), $inline_style); break; } ?> <div class="entry-content"> <?php the_content(); wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'Divi'), 'after' => '</div>')); ?> </div> <!-- .entry-content -->
function et_divi_post_format_content() { $post_format = get_post_format(); $text_color_class = et_divi_get_post_text_color(); $inline_style = et_divi_get_post_bg_inline_style(); switch ($post_format) { case 'audio': printf('<div class="et_audio_content%4$s"%5$s> <h2><a href="%3$s">%1$s</a></h2> %2$s </div> <!-- .et_audio_content -->', get_the_title(), et_pb_get_audio_player(), esc_url(get_permalink()), esc_attr($text_color_class), $inline_style); break; case 'quote': printf('<div class="et_quote_content%4$s"%5$s> %1$s <a href="%2$s" class="et_quote_main_link">%3$s</a> </div> <!-- .et_quote_content -->', et_get_blockquote_in_content(), esc_url(get_permalink()), __('Read more', 'Divi'), esc_attr($text_color_class), $inline_style); break; case 'link': printf('<div class="et_link_content%5$s"%6$s> <h2><a href="%2$s">%1$s</a></h2> <a href="%3$s" class="et_link_main_url">%4$s</a> </div> <!-- .et_link_content -->', get_the_title(), esc_url(get_permalink()), esc_url(et_get_link_url()), esc_html(et_get_link_url()), esc_attr($text_color_class), $inline_style); break; } }