# b-blocks/trunk/build/expand-content/render.php

bBlocks – Essential Gutenberg Blocks &amp; Patterns Collection, version trunk. 25 lines.

- Page: https://pluginprobe.com/plugins/b-blocks/trunk/code/build/expand-content/render.php
- Raw: https://pluginprobe.com/plugins/b-blocks/trunk/raw/build/expand-content/render.php
- Modified: 2026-09-10T10:41:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/b-blocks/trunk/code/build/expand-content/render.php#L10-L20`.

```php
<?php
/**
 * Expand Content block server-side render.
 *
 * Follows the data-table convention: the wrapper only carries the block id and
 * a JSON snapshot of the attributes. view.js mounts a React root on the wrapper
 * and the Frontend component (ExpandContent.js) moves the InnerBlocks content
 * ($content) out of the template container into its own tree.
 *
 * @package bBlocks
 */

$id = wp_unique_id( 'bBlocksExpandContent-' );
?>

<div <?php echo get_block_wrapper_attributes(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- get_block_wrapper_attributes() is properly escaped. ?> id='<?php echo esc_attr( $id ); ?>' data-attributes='<?php echo esc_attr( wp_json_encode( $attributes ) ); ?>'>

	<div class="b-blocks-expand-content-innerBlocks-contents">
		<?php
		// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $content is rendered InnerBlocks output already escaped by core.
		echo $content;
		?>
	</div>
</div>

```
