! empty( $attributes['enableSorting'] ),
'tableConditionalFormat' => is_array( $attributes['tableConditionalFormat'] ?? null ) ? $attributes['tableConditionalFormat'] : array(),
'mergeTableCell' => $attributes['mergeTableCell'] ?? array(),
'freezeSettings' => $attributes['freezeSettings'] ?? array(),
'blockClass' => $block_class,
'enableFreeze' => ! empty( $attributes['enableFreeze'] ),
'columnWidths' => $col_widths,
'rowHeights' => is_array( $attributes['rowHeights'] ?? null ) ? $attributes['rowHeights'] : array(),
'headerHeight' => absint( $attributes['headerHeight'] ?? 0 ),
'resizerEnabled' => isset( $attributes['resizerEnabled'] ) ? (bool) $attributes['resizerEnabled'] : true,
'mobileBreakpoint' => absint( $attributes['responsiveBreakpoint'] ?? 768 ),
);
$figure_classes = trim( 'wp-block-tablebuilder-table-builder table-builder-block ' . $block_class );
$figure_id = ! empty( $block_id ) ? 'block-' . sanitize_html_class( $block_id ) : '';
$has_widths = ! empty( $col_widths ) && array_sum( array_map( 'floatval', $col_widths ) ) > 0;
$table_style = $has_widths ? 'table-layout:fixed;width:100%;' : '';
$rendered_tbody = '';
if ( ! empty( $tbody_content ) ) {
$rendered_tbody = wp_kses_post( $tbody_content );
} elseif ( ! empty( $row_blocks ) ) {
$rendered_tbody = self::render_table_rows( $row_blocks );
}
ob_start();
?>
>
$header ) : ?>
>
$footer ) : ?>
>