end-form-row.php
4 years ago
end-form.php
4 years ago
end-page.php
4 years ago
field-column.php
4 years ago
field-description.php
4 years ago
field-label.php
4 years ago
field-message.php
4 years ago
field-row.php
4 years ago
messages.php
4 years ago
prev-page-button.php
4 years ago
progress-pages.php
4 years ago
start-form-row.php
4 years ago
start-form.php
4 years ago
start-page.php
4 years ago
field-label.php
24 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Field label template |
| 4 | */ |
| 5 | |
| 6 | if ( isset( $args['type'] ) && 'heading-field' === $args['type'] ) { |
| 7 | $this->add_attribute( 'class', 'jet-form-builder__heading' ); |
| 8 | $this->add_attribute( 'class', $args['class_name'] ); |
| 9 | } else { |
| 10 | $this->add_attribute( 'class', 'jet-form-builder__label' ); |
| 11 | } |
| 12 | |
| 13 | ?> |
| 14 | <div <?php $this->render_attributes_string(); ?>> |
| 15 | <div class="jet-form-builder__label-text"><?php |
| 16 | echo $args['label']; |
| 17 | |
| 18 | if ( $this->block_type->get_required_val( $args ) && ! empty( $this->live_form->spec_data->required_mark ) ) { |
| 19 | printf( ' <span class="jet-form-builder__required">%s</span>', $this->live_form->spec_data->required_mark ); |
| 20 | } |
| 21 | |
| 22 | ?></div> |
| 23 | <?php include $this->get_global_template( 'common/prev-page-button.php' ); ?> |
| 24 | </div> |