| 1 |
<?php |
| 2 |
/** |
| 3 |
* Process Steps Block server-side render. |
| 4 |
* |
| 5 |
* Emits only an empty wrapper carrying the block attributes as JSON. The |
| 6 |
* markup is rendered on the client by view.js (React hydration), matching the |
| 7 |
* b-blocks convention (see image-hotspot / button-group). |
| 8 |
* |
| 9 |
* @package bBlocks |
| 10 |
*/ |
| 11 |
|
| 12 |
$id = wp_unique_id( 'bBlocksProcessSteps-' ); |
| 13 |
?> |
| 14 |
<div |
| 15 |
<?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- get_block_wrapper_attributes() is properly escaped ?> |
| 16 |
<?php echo get_block_wrapper_attributes(); ?> |
| 17 |
id='<?php echo esc_attr( $id ); ?>' |
| 18 |
data-attributes='<?php echo esc_attr( wp_json_encode( $attributes ) ); ?>' |
| 19 |
></div> |
| 20 |
|