?> </a> <?php } ?> <?php /* Only show excerpts for Standard post format OR Chat format, * when this is not both the very first standard post and also a Sticky post AND * when excerpts enabled or One-Sentence Excerpts enabled AND * this is not the very first standard post when Show Full Content First Post enabled */ ?> <?php if ((!get_post_format() || 'chat' === get_post_format()) && !(independent_publisher_is_very_first_standard_post() && is_sticky()) && (independent_publisher_use_post_excerpts() || independent_publisher_generate_one_sentence_excerpts()) && !(independent_publisher_show_full_content_first_post() && independent_publisher_is_very_first_standard_post() && is_home())) { ?> <?php the_excerpt(); ?> <?php } else { ?> <?php /* Only show featured image for Standard post and gallery post formats */ ?> <?php if (has_post_thumbnail() && in_array(get_post_format(), array('gallery', false))) {
/** * Add classes to article based on current theme settings */ function independent_publisher_post_classes() { global $wp_query; if (independent_publisher_show_full_content_first_post() && (independent_publisher_is_very_first_standard_post() && is_home() && !is_sticky())) { post_class('show-full-content-first-post'); } elseif (independent_publisher_show_full_content_first_post() && (independent_publisher_is_very_first_standard_post() && is_home() && is_sticky())) { post_class('show-full-content-first-post-sticky'); } elseif ($wp_query->current_post == 0) { if (class_exists('Jetpack') && Jetpack::is_module_active('infinite-scroll') && get_query_var('paged') !== 0) { post_class(); } else { post_class('first-post'); } } else { post_class(); } }