PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.6
JetFormBuilder — Dynamic Blocks Form Builder v3.6.6
3.6.6.1 3.6.6 3.6.5.4 3.6.5.3 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 All 134 releases
← All changes | templates/fields/form-break-field.php +29 -24 1.0.2 → 3.6.6 View file →
@@ -1,24 +1,29 @@
1 -<?php
2 -/**
3 - * next page button template
4 - */
5 -
6 -use Jet_Form_Builder\Classes\Tools;
7 -
8 -$class_name = isset( $args['class_name'] ) ? $args['class_name'] : '';
9 -
10 -$classes = array( 'jet-form-builder__next-page', $class_name );
11 -
12 -
13 -$this->add_attribute( 'class', 'jet-form-builder__next-page' );
14 -$this->add_attribute( 'class', $class_name );
15 -$this->add_attribute( 'type', 'button' );
16 -?>
17 -<div class="jet-form-builder__next-page-wrap">
18 - <?php echo $this->render_disabled_message_form_break( $args ); ?>
19 - <?php include $this->get_global_template( 'common/prev-page-button.php' ); ?>
20 - <?php if ( ! empty( $args['label'] ) ) : ?>
21 - <button<?php $this->render_attributes_string(); ?>><?php echo $args['label']; ?></button>
22 - <?php endif; ?>
23 -</div>
24 -<?php $this->reset_attributes(); ?>
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();