ID ); $latest = $args['show_latest'] ?? false; $chapter_ids = array_slice( $story['chapter_ids'], $latest ? -3 : 0, 3, true ); // Does not include hidden or non-chapters $chapter_count = count( $chapter_ids ); $excerpt = fictioneer_first_paragraph_as_excerpt( fictioneer_get_content_field( 'fictioneer_story_short_description', $post->ID ) ); $excerpt = empty( $excerpt ) ? __( 'No description provided yet.', 'fictioneer' ) : $excerpt; $tags = false; if ( get_option( 'fictioneer_show_tags_on_story_cards' ) && ! get_option( 'fictioneer_hide_taxonomies_on_story_cards' ) ) { $tags = get_the_tags(); } // Flags $hide_author = $args['hide_author'] ?? false && ! get_option( 'fictioneer_show_authors' ); $show_taxonomies = ! get_option( 'fictioneer_hide_taxonomies_on_story_cards' ) && ( $story['has_taxonomies'] || $tags ); $show_type = $args['show_type'] ?? false; $is_sticky = FICTIONEER_ENABLE_STICKY_CARDS && get_post_meta( $post->ID, 'fictioneer_story_sticky', true ) && ! is_search() && ! is_archive(); ?>
  • %4$s', get_the_post_thumbnail_url( null, 'full' ), sprintf( __( '%s Thumbnail', 'fictioneer' ), $story['title'] ), fictioneer_get_lightbox_attribute(), get_the_post_thumbnail( null, 'cover' ) ); } // Content printf( '
    %2$s%3$s
    ', $chapter_count > 2 ? '_3-4' : '_4-4', $hide_author ? '' : sprintf( '%s ', sprintf( _x( 'by %s —', 'Large card: by {Author} —.', 'fictioneer' ), fictioneer_get_author_node() ) ), $excerpt ); ?> 0 ): ?>