$wp_query, 'prefix' => blocksy_manager()->screen->get_prefix(), 'has_slideshow' => false, 'has_slideshow_arrows' => false, 'has_slideshow_autoplay' => false, 'has_slideshow_autoplay_speed' => 3, 'render_no_posts' => true, 'has_pagination' => true, 'pagination_args' => [] ] ); $blog_post_structure = blocksy_listing_page_structure([ 'prefix' => $args['prefix'] ]); if ($args['query']->have_posts()) { $entries_open = [ 'class' => 'entries', ]; $container_output = apply_filters( 'blocksy:posts-listing:container:custom-output', null ); $has_cards_type = true; if ($container_output) { $hook_id = blc_get_content_block_that_matches([ 'template_type' => 'archive' ]); $atts = blocksy_get_post_options($hook_id); if (blocksy_akg( 'has_template_default_layout', $atts, 'yes' ) !== 'yes') { $has_cards_type = false; } $entries_open['data-archive'] = "custom"; } else { $entries_open['data-archive'] = "default"; } $entries_open['data-layout'] = esc_attr($blog_post_structure); if ($has_cards_type) { $card_type = blocksy_get_listing_card_type([ 'prefix' => $args['prefix'] ]); if ($card_type) { $entries_open['data-cards'] = $card_type; } } $entries_open = array_merge( $entries_open, blocksy_schema_org_definitions( 'blog', [ 'array' => true ] ) ); $archive_order = blocksy_get_theme_mod( $args['prefix'] . '_archive_order', [] ); foreach ($archive_order as $archive_layer) { if (! $archive_layer['enabled']) { continue; } if ($archive_layer['id'] === 'featured_image') { $hover_effect = blocksy_akg( 'image_hover_effect', $archive_layer, 'none' ); if ($hover_effect !== 'none') { $entries_open['data-hover'] = $hover_effect; } } } $entries_open = array_merge( $entries_open, blocksy_generic_get_deep_link([ 'prefix' => $args['prefix'], 'return' => 'array' ]) ); do_action('blocksy:loop:before'); if ($args['has_slideshow']) { $flexy_attr = array_merge( [ 'class' => 'flexy-container', 'data-flexy' => 'no' ], $args['has_slideshow_autoplay'] ? [ 'data-autoplay' => $args['has_slideshow_autoplay_speed'] ] : [] ); echo '