'py-12', 'normal' => 'py-20', 'spacious' => 'py-32' ]; $spacing = slbuild_get_field( 'spacing', 'attr' ) ?: 'normal'; $style = slbuild_get_field( 'style', 'attr' ) ?: 'bordered'; $default_open = slbuild_get_field( 'default_open', 'attr' ) ?: 'first'; $cs = slbuild_get_color_scheme( slbuild_get_field( 'color_scheme', 'attr' ) ?: 'white' ); $pad = $spacing_map[ $spacing ] ?? 'py-20'; $blocks = slbuild_get_blocks(); $eyebrow = slbuild_get_field( 'eyebrow' ); $headline = slbuild_get_field( 'headline' ); $subtext = slbuild_get_field( 'subtext' ); $tag = slbuild_meta( 'heading_level' ) ?: 'h2'; // Collect Q&A for FAQPage JSON-LD $faq_items = []; foreach ( $blocks as $b ) { $q = $b['settings']['question'] ?? ''; $a = $b['settings']['answer'] ?? ''; if ( $q ) { $faq_items[] = [ 'q' => $q, 'a' => wp_strip_all_tags( $a ) ]; } } ?>

< class="text-3xl font-semibold tracking-tight mb-4">>

set_current_block( $block ); $question = slbuild_get_block_field( 'question' ); $answer_id = 'slb-faq-' . uniqid(); $is_first = ( 0 === $i && 'first' === $default_open ); $i++; if ( 'card' === $style ) : ?>
> +
> +
> +
clear_current_block(); ?>
'https://schema.org', '@type' => 'FAQPage', 'mainEntity' => [], ]; foreach ( $faq_items as $item ) { $schema['mainEntity'][] = [ '@type' => 'Question', 'name' => $item['q'], 'acceptedAnswer' => [ '@type' => 'Answer', 'text' => $item['a'] ], ]; } // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo '' . "\n"; }