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-description.php
18 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Field description template |
| 4 | */ |
| 5 | if ( isset( $args['type'] ) && 'heading-field' === $args['type'] ) { |
| 6 | $class = 'jet-form-builder__heading-desc'; |
| 7 | $format = '<div class="%1$s">%2$s</div>'; |
| 8 | } else { |
| 9 | $class = 'jet-form-builder__desc'; |
| 10 | $format = '<div class="%1$s"><small>%2$s</small></div>'; |
| 11 | } |
| 12 | |
| 13 | printf( |
| 14 | $format, |
| 15 | $class, |
| 16 | $args['desc'] |
| 17 | ); |
| 18 |