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
progress-bar.php
30 lines
| 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 |