getAttribute( 'class' ) ); if ( in_array( 'is-style-accordion', $classes, true ) ) { return render_list_block_accordion( $block ); } $styles = css_string_to_array( $ul->getAttribute( 'style' ) ); if ( $block_gap ) { $styles['--wp--style--block-gap'] = format_custom_property( $block_gap ); } if ( $justify_content ) { $styles['display'] = 'flex'; $styles['flex-wrap'] = 'wrap'; $styles['justify-content'] = $justify_content; } $ul->setAttribute( 'style', css_array_to_string( $styles ) ); $content = $dom->saveHTML(); return $content; } function render_list_block_accordion( array $block ): string { $dom = dom( '' ); $summary = $dom->createElement( 'summary' ); return $dom->saveHTML(); }