action-button.php
3 years ago
calculated-field.php
3 years ago
checkbox-field.php
3 years ago
color-picker-field.php
3 years ago
date-field.php
3 years ago
datetime-field.php
3 years ago
form-break-field.php
3 years ago
group-break-field.php
3 years ago
heading-field.php
3 years ago
hidden-field.php
3 years ago
image-preview.php
3 years ago
map-field.php
3 years ago
media-field.php
3 years ago
number-field.php
3 years ago
preset-media-field.php
3 years ago
progress-bar.php
3 years ago
radio-field.php
3 years ago
range-field.php
3 years ago
select-field.php
3 years ago
text-field.php
3 years ago
textarea-field.php
3 years ago
time-field.php
3 years ago
wysiwyg-field.php
3 years ago
progress-bar.php
26 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 | // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped |
| 11 | ?> |
| 12 | <?php foreach ( $this->get_breaks() as $index => $break ) : ?> |
| 13 | <div class="<?php echo esc_attr( $this->get_progress_item_class( $index ) ); ?>" data-page="<?php echo absint( $index + 1 ); ?>"> |
| 14 | <div class="jet-form-builder-progress-pages__item"> |
| 15 | <div class="jet-form-builder-progress-pages__item--circle"><?php echo absint( $index + 1 ); ?></div> |
| 16 | <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> |
| 17 | </div> |
| 18 | <?php if ( $index + 1 !== $this->get_count_breaks() ) : ?> |
| 19 | <div class="jet-form-builder-progress-pages__separator"></div> |
| 20 | <?php endif; ?> |
| 21 | </div> |
| 22 | <?php |
| 23 | endforeach; |
| 24 | // phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped |
| 25 | |
| 26 |