'showcase', 'post_type' => $args['post_type'], 'post_status' => $args['post_status'], 'post__in' => $args['post_ids'], // May be empty! 'order' => $args['order'], 'orderby' => $args['orderby'], 'posts_per_page' => $args['count'], 'update_post_term_cache' => false, 'no_found_rows' => true ); // Author? if ( ! empty( $args['author'] ) ) { $query_args['author_name'] = $args['author']; } // Author IDs? if ( ! empty( $args['author_ids'] ) ) { $query_args['author__in'] = $args['author_ids']; } // Taxonomies? if ( ! empty( $args['taxonomies'] ) ) { $query_args['tax_query'] = fictioneer_get_shortcode_tax_query( $args ); } // Excluded tags? if ( ! empty( $args['excluded_tags'] ) ) { $query_args['tag__not_in'] = $args['excluded_tags']; } // Excluded categories? if ( ! empty( $args['excluded_cats'] ) ) { $query_args['category__not_in'] = $args['excluded_cats']; } // Excluded authors? if ( ! empty( $args['excluded_authors'] ) ) { $query_args['author__not_in'] = $args['excluded_authors']; } // Ignore protected? if ( $args['ignore_protected'] ) { $query_args['has_password'] = false; } // Only protected? if ( $args['only_protected'] ) { $query_args['has_password'] = true; } // Apply filters $query_args = apply_filters( 'fictioneer_filter_shortcode_showcase_query_args', $query_args, $args ); // Query collections $query = fictioneer_shortcode_query( $query_args ); // Extra attributes $attributes = []; if ( $splide ) { $attributes[] = "data-splide='{$splide}'"; } if ( $args['min_width'] ) { $attributes[] .= "style='--showcase-item-min-width: {$args['min_width']};'"; $args['classes'] .= ' _custom-min-width'; } ?> have_posts() ) : ?>
> ' . __( 'Splide JSON is invalid and has been ignored.', 'fictioneer' ) . ''; } if ( $splide ) { echo fictioneer_get_splide_loading_style( $splide, $args['uid'] ); echo fictioneer_get_splide_placeholders( $args['uid'] ); echo '
'; } // Classes $classes = '_' . $args['post_status']; if ( $args['aspect_ratio'] ) { $classes .= ' _aspect-ratio'; } if ( $args['height'] ) { $classes .= ' _custom-height'; } if ( $splide ) { $classes .= ' splide__slide'; } // Style attribute $style = ''; if ( $args['aspect_ratio'] ) { $style .= "--showcase-item-aspect-ratio: {$args['aspect_ratio']};"; } if ( $args['height'] ) { $style .= "--showcase-item-height: {$args['height']};"; } if ( ! empty( $style ) ) { $style = "style='{$style}'"; } ?> '; } ?>