context['postId'] ) ) { $aieo_toc_post = (int) $block->context['postId']; } $aieo_toc_wrapper = function_exists( 'get_block_wrapper_attributes' ) ? get_block_wrapper_attributes( array( 'class' => 'aieo-toc-block' ) ) : 'class="aieo-toc-block"'; echo wp_kses( AIEO_TOC::render( array( 'title' => isset( $aieo_toc_attrs['title'] ) ? (string) $aieo_toc_attrs['title'] : '', 'levels' => isset( $aieo_toc_attrs['levels'] ) ? (string) $aieo_toc_attrs['levels'] : 'h2-h3', 'numbered' => ! empty( $aieo_toc_attrs['numbered'] ), 'sticky' => ! empty( $aieo_toc_attrs['sticky'] ), 'collapsible' => ! empty( $aieo_toc_attrs['collapsible'] ), 'layout' => isset( $aieo_toc_attrs['layout'] ) ? (string) $aieo_toc_attrs['layout'] : 'list', 'min' => isset( $aieo_toc_attrs['minHeadings'] ) ? (int) $aieo_toc_attrs['minHeadings'] : 2, 'post' => $aieo_toc_post, 'wrapper' => $aieo_toc_wrapper, 'sample' => ( defined( 'REST_REQUEST' ) && REST_REQUEST ), ) ), AIEO_TOC::allowed_html() );