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-row.php
29 lines
| 1 | <?php |
| 2 | use Jet_Form_Builder\Classes\Tools; |
| 3 | /** |
| 4 | * Row-layout field template |
| 5 | */ |
| 6 | |
| 7 | $fullwidth = ' content-fullwidth'; |
| 8 | |
| 9 | ?> |
| 10 | <?php if ( $label || $desc ) : ?> |
| 11 | <div class="jet-form-builder-col__start"><?php |
| 12 | |
| 13 | echo $label; |
| 14 | echo $desc; |
| 15 | |
| 16 | // Reset fullwidth content if we have label or description for field |
| 17 | $fullwidth = ''; |
| 18 | |
| 19 | ?></div> |
| 20 | <?php endif; ?> |
| 21 | <div class="jet-form-builder-col__end<?php echo $fullwidth; ?>"><?php |
| 22 | if ( $template ) { |
| 23 | if ( Tools::is_readable( $template ) ) { |
| 24 | include $template; |
| 25 | } else { |
| 26 | echo $template; |
| 27 | } |
| 28 | } |
| 29 | ?></div> |