# b-blocks/trunk/build/form-builder/render.php

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

- Page: https://pluginprobe.com/plugins/b-blocks/trunk/code/build/form-builder/render.php
- Raw: https://pluginprobe.com/plugins/b-blocks/trunk/raw/build/form-builder/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/form-builder/render.php#L10-L20`.

```php
<?php
if (is_user_logged_in()){
  $button = $attributes['button'];
  $signout = $button['signout'];
  ?>
			<div><h3><?php echo esc_html($signout['text']['first']); ?> <a class="lgfr-logoutBtn" href="<?php echo esc_url(wp_logout_url(home_url())); ?>"><?php echo esc_html($signout['text']['second']); ?></a></h3></div>
		<?php
}else {
  $id = wp_unique_id( 'bBlocksBForm-' );
 ?>
 <div <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- get_block_wrapper_attributes() is properly escaped ?>
 <?php echo get_block_wrapper_attributes(); ?> id='<?php echo esc_attr( $id ); ?>' data-attributes='<?php echo esc_attr( wp_json_encode( $attributes ) ); ?>'>

 <div id='bFormPhpGetContent'>
   <?php echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- InnerBlocks pre-rendered content, escaped by core block pipeline. ?>
 </div>
</div>
<?php
}
```
