> ' . get_the_post_thumbnail() . '
'; else : // Using a default image for posts without a featured image $automotive_services_default_image_url = esc_url( get_template_directory_uri() . '/assets/images/slider2.png' ); echo '
' . esc_attr__( 'Default Image', 'automotive-services' ) . '
'; endif; endif; else : // Archive post settings if ( $automotive_services_post_feature_image == '1' ) : if ( has_post_thumbnail() ) : echo '
' . get_the_post_thumbnail() . '
'; else : // Using a default image for posts without a featured image $automotive_services_default_image_url = esc_url( get_template_directory_uri() . '/assets/images/slider2.png' ); echo '
' . esc_attr__( 'Default Image', 'automotive-services' ) . '
'; endif; endif; endif; if (is_single()) : if ($automotive_services_single_post_date == '1') : ?>
,
,
', ''); endif; else : if ($automotive_services_post_heading == '1') : the_title(sprintf('
', esc_url(get_permalink())), '
'); endif; endif; if (is_singular()) : if ($automotive_services_single_post_content == '1') : the_content(); endif; else : $automotive_services_excerpt_limit = get_theme_mod('automotive_services_excerpt_limit', 50); if ($automotive_services_post_content == '1') : echo "

" . wp_trim_words(get_the_excerpt(), $automotive_services_excerpt_limit) . "

"; endif; endif; ?>