PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 1.1.0
JetFormBuilder — Dynamic Blocks Form Builder v1.1.0
3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 All 130 releases
jetformbuilder / includes / blocks / render / conditional-block-render.php
conditional-block-render.php
26 lines 561 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Jet_Form_Builder\Blocks\Render;
4
5 // If this file is called directly, abort.
6 if ( ! defined( 'WPINC' ) ) {
7 die;
8 }
9
10 /**
11 * Define text field renderer class
12 */
13 class Conditional_Block_Render extends Base {
14
15 public function get_name() {
16 return 'conditional-block';
17 }
18
19 public function render( $wp_block = null, $template = null ) {
20 return sprintf( '<div class="jet-form-builder__conditional" data-conditional="%2$s">%1$s</div>',
21 $this->block_type->block_content,
22 $this->block_type->get_conditions()
23 );
24 }
25 }
26