end-form-row.php
2 years ago
end-form.php
2 years ago
end-page.php
2 years ago
field-column.php
2 years ago
field-description.php
2 years ago
field-label.php
2 years ago
field-message.php
2 years ago
field-row.php
2 years ago
messages.php
2 years ago
prev-page-button.php
2 years ago
start-form-row.php
2 years ago
start-page.php
2 years ago
start-form-row.php
30 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Start from template |
| 4 | * |
| 5 | * @var \Jet_Form_Builder\Blocks\Render\Base $this |
| 6 | */ |
| 7 | |
| 8 | // If this file is called directly, abort. |
| 9 | use Jet_Form_Builder\Blocks\Native_Block_Wrapper_Attributes; |
| 10 | |
| 11 | if ( ! defined( 'WPINC' ) ) { |
| 12 | die; |
| 13 | } |
| 14 | |
| 15 | $attrs = ''; |
| 16 | |
| 17 | if ( $this instanceof Native_Block_Wrapper_Attributes ) { |
| 18 | $attrs = get_block_wrapper_attributes( |
| 19 | array( |
| 20 | 'class' => sprintf( 'jet-form-builder-row field-type-%s', $this->get_name() ), |
| 21 | ) |
| 22 | ); |
| 23 | } else { |
| 24 | $this->add_attribute( 'class', 'jet-form-builder-row' ); |
| 25 | $this->add_attribute( 'class', 'field-type-' . $this->get_name() ); |
| 26 | } |
| 27 | |
| 28 | // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 29 | printf( '<div %1$s %2$s>', $this->get_attributes_string(), $attrs ); |
| 30 |