| 1 |
<div class="rule-group" data-id="<?php echo $group_id; ?>"> |
| 2 |
|
| 3 |
<h4><?php echo ($group_id == 'group_0') ? __("Show this field group if",'acf') : __("or",'acf'); ?></h4> |
| 4 |
|
| 5 |
<table class="acf-table -clear"> |
| 6 |
<tbody> |
| 7 |
<?php foreach( $group as $i => $rule ): |
| 8 |
|
| 9 |
// validate rule |
| 10 |
$rule = acf_validate_location_rule($rule); |
| 11 |
|
| 12 |
// append id and group |
| 13 |
$rule['id'] = "rule_{$i}"; |
| 14 |
$rule['group'] = $group_id; |
| 15 |
|
| 16 |
// view |
| 17 |
acf_get_view('html-location-rule', array( |
| 18 |
'rule' => $rule |
| 19 |
)); |
| 20 |
|
| 21 |
endforeach; ?> |
| 22 |
</tbody> |
| 23 |
</table> |
| 24 |
|
| 25 |
</div> |