end-form-row.php
2 years ago
end-form.php
2 years ago
end-page.php
2 years ago
field-column.php
2 years ago
field-description.php
2 years ago
field-label.php
2 years ago
field-message.php
2 years ago
field-row.php
2 years ago
messages.php
2 years ago
prev-page-button.php
2 years ago
start-form-row.php
2 years ago
start-page.php
2 years ago
field-description.php
21 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Field description template |
| 4 | */ |
| 5 | |
| 6 | // If this file is called directly, abort. |
| 7 | if ( ! defined( 'WPINC' ) ) { |
| 8 | die; |
| 9 | } |
| 10 | |
| 11 | if ( isset( $args['type'] ) && 'heading-field' === $args['type'] ) { |
| 12 | $class = 'jet-form-builder__heading-desc'; |
| 13 | $format = '<div class="%1$s">%2$s</div>'; |
| 14 | } else { |
| 15 | $class = 'jet-form-builder__desc'; |
| 16 | $format = '<div class="%1$s"><small>%2$s</small></div>'; |
| 17 | } |
| 18 | |
| 19 | // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 20 | printf( $format, esc_attr( $class ), wp_kses_post( $args['desc'] ) ); |
| 21 |