| 1 |
<?php |
| 2 |
/** |
| 3 |
* Progress pages template |
| 4 |
* |
| 5 |
* @var Form_Break $this |
| 6 |
*/ |
| 7 |
|
| 8 |
use Jet_Form_Builder\Form_Break; |
| 9 |
|
| 10 |
// If this file is called directly, abort. |
| 11 |
if ( ! defined( 'WPINC' ) ) { |
| 12 |
die; |
| 13 |
} |
| 14 |
|
| 15 |
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped |
| 16 |
?> |
| 17 |
<?php foreach ( $this->get_breaks() as $index => $break ) : ?> |
| 18 |
<div class="<?php echo esc_attr( $this->get_progress_item_class( $index ) ); ?>" data-page="<?php echo absint( $index + 1 ); ?>"> |
| 19 |
<div class="jet-form-builder-progress-pages__item"> |
| 20 |
<div class="jet-form-builder-progress-pages__item--circle"><?php echo absint( $index + 1 ); ?></div> |
| 21 |
<div class="jet-form-builder-progress-pages__item--label"><?php echo empty( $break['label_progress'] ) ? wp_kses_post( $break['label'] ) : wp_kses_post( $break['label_progress'] ); ?></div> |
| 22 |
</div> |
| 23 |
<?php if ( $index + 1 !== $this->get_count_breaks() ) : ?> |
| 24 |
<div class="jet-form-builder-progress-pages__separator"></div> |
| 25 |
<?php endif; ?> |
| 26 |
</div> |
| 27 |
<?php |
| 28 |
endforeach; |
| 29 |
// phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped |
| 30 |
|