PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.1.0
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.1.0
2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 All 106 releases
b-blocks / build / process-steps / render.php

render.php in bBlocks – Essential Gutenberg Blocks & Patterns Collection 2.1.0, at build/process-steps/render.php

20 lines 647 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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