# b-blocks/2.1.7/build/key-takeaways/render.php

bBlocks – Essential Gutenberg Blocks &amp; Patterns Collection, version 2.1.7. 21 lines.

- Page: https://pluginprobe.com/plugins/b-blocks/2.1.7/code/build/key-takeaways/render.php
- Raw: https://pluginprobe.com/plugins/b-blocks/2.1.7/raw/build/key-takeaways/render.php
- Modified: 2026-09-22T11:27:38+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/2.1.7/code/build/key-takeaways/render.php#L10-L20`.

```php
<?php
/**
 * Key Takeaways Block — server-side render.
 *
 * Emits only a wrapper carrying the block attributes as a JSON data-attribute.
 * view.js hydrates it on the frontend with React (Components/Frontend/KeyTakeaways)
 * and injects per-instance dynamic CSS (Components/Common/Style).
 *
 * @package bBlocks
 */

$id        = wp_unique_id( 'bBlocksKeyTakeaways-' );
$planClass = BBlocks\Inc\Utils::isPro() ? 'pro' : 'free';
?>
<div
	<?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- get_block_wrapper_attributes() is properly escaped ?>
	<?php echo get_block_wrapper_attributes( [ 'class' => $planClass ] ); ?>
	id='<?php echo esc_attr( $id ); ?>'
	data-attributes='<?php echo esc_attr( wp_json_encode( $attributes ) ); ?>'
></div>

```
