| 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 |
|