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
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
range-field.php
2 years ago
textarea-field.php
2 years ago
time-field.php
2 years ago
form-break-field.php
30 lines
| 1 | <?php |
| 2 | /** |
| 3 | * next page button template |
| 4 | * |
| 5 | * @var \Jet_Form_Builder\Blocks\Render\Base $this |
| 6 | */ |
| 7 | |
| 8 | use Jet_Form_Builder\Classes\Tools; |
| 9 | |
| 10 | // If this file is called directly, abort. |
| 11 | if ( ! defined( 'WPINC' ) ) { |
| 12 | die; |
| 13 | } |
| 14 | |
| 15 | $this->add_attribute( 'class', 'jet-form-builder__next-page' ); |
| 16 | $this->add_attribute( 'class', $args['class_name'] ); |
| 17 | $this->add_attribute( 'type', 'button' ); |
| 18 | // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped |
| 19 | ?> |
| 20 | <div class="jet-form-builder__next-page-wrap"> |
| 21 | <?php echo Tools::esc_template_string( $this->render_disabled_message_form_break( $args ) ); ?> |
| 22 | <?php require $this->get_global_template( 'common/prev-page-button.php' ); ?> |
| 23 | <?php if ( ! isset( $args['add_next_button'] ) || $args['add_next_button'] ) : ?> |
| 24 | <button <?php $this->render_attributes_string(); ?>><?php echo wp_kses_post( $args['label'] ?: 'Next' ); ?></button> |
| 25 | <?php endif; ?> |
| 26 | </div> |
| 27 | <?php |
| 28 | // phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped |
| 29 | $this->reset_attributes(); |
| 30 |