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