end-form-row.php
3 years ago
end-form.php
3 years ago
end-page.php
3 years ago
field-column.php
3 years ago
field-description.php
3 years ago
field-label.php
3 years ago
field-message.php
3 years ago
field-row.php
3 years ago
messages.php
3 years ago
prev-page-button.php
3 years ago
start-form-row.php
3 years ago
start-form.php
3 years ago
start-page.php
3 years ago
field-description.php
15 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Field description template |
| 4 | */ |
| 5 | |
| 6 | if ( isset( $args['type'] ) && 'heading-field' === $args['type'] ) { |
| 7 | $class = 'jet-form-builder__heading-desc'; |
| 8 | $format = '<div class="%1$s">%2$s</div>'; |
| 9 | } else { |
| 10 | $class = 'jet-form-builder__desc'; |
| 11 | $format = '<div class="%1$s"><small>%2$s</small></div>'; |
| 12 | } |
| 13 | |
| 14 | printf( $format, esc_attr( $class ), wp_kses_post( $args['desc'] ) ); |
| 15 |