PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / trunk
bBlocks – Essential Gutenberg Blocks & Patterns Collection vtrunk
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 / column / render.php

render.php in bBlocks – Essential Gutenberg Blocks & Patterns Collection trunk, at build/column/render.php

21 lines 792 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $prefix = 'bBlocksColumn';
3 $id = wp_unique_id( "$prefix-" );
4
5 use BBlocks\Inc\Utils as Utils;
6 $planClass = Utils::isPro() ? 'pro' : 'free';
7
8 ?>
9 <div
10 <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- get_block_wrapper_attributes() is properly escaped ?>
11 <?php echo get_block_wrapper_attributes( [ 'class' => $planClass ] ); ?>
12 id='<?php echo esc_attr( $id ); ?>'
13 data-attributes='<?php echo esc_attr( wp_json_encode( $attributes ) ); ?>'
14 data-columns='<?php echo esc_attr( $block->context['b-blocks/rowColumns'] ); ?>'
15 data-column-gap='<?php echo esc_attr( $block->context['b-blocks/rowColumnGap'] ); ?>'
16 >
17
18 <div class='<?php echo esc_attr( $prefix ); ?>'>
19 <?php echo wp_kses( $content, Utils::allowedInnerHTML() ); ?>
20 </div>
21 </div>