action-button.php
2 years ago
calculated-field.php
2 years ago
color-picker-field.php
2 years ago
date-field.php
2 years ago
datetime-field.php
2 years ago
form-break-field.php
2 years ago
group-break-field.php
2 years ago
heading-field.php
2 years ago
hidden-field.php
2 years ago
image-preview.php
2 years ago
map-field.php
2 years ago
media-field.php
2 years ago
number-field.php
2 years ago
preset-media-field.php
2 years ago
progress-bar.php
2 years ago
radio-field.php
2 years ago
range-field.php
2 years ago
select-field.php
2 years ago
text-field.php
2 years ago
textarea-field.php
2 years ago
time-field.php
2 years ago
action-button.php
28 lines
| 1 | <?php |
| 2 | /** |
| 3 | * submit button template |
| 4 | * |
| 5 | * @var \Jet_Form_Builder\Blocks\Render\Action_Button_Render $this |
| 6 | */ |
| 7 | |
| 8 | // If this file is called directly, abort. |
| 9 | if ( ! defined( 'WPINC' ) ) { |
| 10 | die; |
| 11 | } |
| 12 | |
| 13 | $render_wrapper = false; |
| 14 | |
| 15 | // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped |
| 16 | if ( ! empty( $this->wrapper->attrs ) ) : |
| 17 | $render_wrapper = true; ?> |
| 18 | <div <?php $this->wrapper->render_attributes_string(); ?>> |
| 19 | <?php endif; ?> |
| 20 | <?php require $this->get_global_template( 'common/prev-page-button.php' ); ?> |
| 21 | <button <?php $this->render_attributes_string(); ?>><?php echo wp_kses_post( $args['label'] ); ?></button> |
| 22 | <?php if ( $render_wrapper ) : ?> |
| 23 | </div> |
| 24 | <?php |
| 25 | endif; |
| 26 | // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped |
| 27 | |
| 28 |