2020-05-08 19:16:04 -04:00
|
|
|
<?php
|
|
|
|
// Higher scoped variables:
|
|
|
|
// $field
|
|
|
|
// $fields
|
|
|
|
// $hiddenFields
|
|
|
|
// $nestedPrefix
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php foreach ($field['fields'] as $name => $field): ?>
|
|
|
|
<?php
|
|
|
|
$fieldName = ($section === 'config' || $nestedPrefix !== 'config')
|
|
|
|
? "{$nestedPrefix}[{$name}]"
|
|
|
|
: "{$nestedPrefix}[{$section}][{$name}]";
|
|
|
|
?>
|
|
|
|
<?php if ( ! empty($field['display'])): ?>
|
|
|
|
<?php include '_field.php' ?>
|
|
|
|
<?php else: ?>
|
2023-12-21 13:46:15 -05:00
|
|
|
<?php $hiddenFields[] = $_->h->field($fieldName, $field); ?>
|
2020-05-08 19:16:04 -04:00
|
|
|
<?php endif ?>
|
|
|
|
<?php endforeach ?>
|