'; } $title_tag = isset($settings['title_tag']) ? Helper::eael_validate_html_tag($settings['title_tag']) : 'h2'; echo '
'. $image; if( $settings['eael_show_title'] || $settings['eael_show_excerpt'] ) { echo '
'; if ( $settings['eael_show_title'] ) { echo '
<' . $title_tag . ' class="' . esc_attr( 'eael-timeline-post-title-text-card' ) . '" >' . get_the_title() . '
'; } if ( $settings['eael_show_excerpt'] ) { echo '
'; if ( empty( $settings['eael_excerpt_length'] ) ) { echo '

' . strip_shortcodes( get_the_excerpt() ? get_the_excerpt() : get_the_content() ) . '

'; } else { echo '

' . wp_trim_words( strip_shortcodes( get_the_excerpt() ? get_the_excerpt() : get_the_content() ), $settings['eael_excerpt_length'], $settings['expanison_indicator'] ) . '

'; } echo '
'; } echo '
'; } echo '
';