|
@@ 680-689 (lines=10) @@
|
| 677 |
|
// populate $layouts |
| 678 |
|
$layouts = array(); |
| 679 |
|
|
| 680 |
|
foreach( array_keys($field['layouts']) as $i ) { |
| 681 |
|
|
| 682 |
|
// get layout |
| 683 |
|
$layout = $field['layouts'][ $i ]; |
| 684 |
|
|
| 685 |
|
|
| 686 |
|
// append to $layouts |
| 687 |
|
$layouts[ $layout['name'] ] = $layout['sub_fields']; |
| 688 |
|
|
| 689 |
|
} |
| 690 |
|
|
| 691 |
|
|
| 692 |
|
// loop through rows |
|
@@ 773-782 (lines=10) @@
|
| 770 |
|
// populate $layouts |
| 771 |
|
$layouts = array(); |
| 772 |
|
|
| 773 |
|
foreach( array_keys($field['layouts']) as $i ) { |
| 774 |
|
|
| 775 |
|
// get layout |
| 776 |
|
$layout = $field['layouts'][ $i ]; |
| 777 |
|
|
| 778 |
|
|
| 779 |
|
// append to $layouts |
| 780 |
|
$layouts[ $layout['name'] ] = $layout['sub_fields']; |
| 781 |
|
|
| 782 |
|
} |
| 783 |
|
|
| 784 |
|
|
| 785 |
|
// loop over rows |
|
@@ 866-873 (lines=8) @@
|
| 863 |
|
// populate $layouts |
| 864 |
|
$layouts = array(); |
| 865 |
|
|
| 866 |
|
foreach( array_keys($field['layouts']) as $i ) { |
| 867 |
|
|
| 868 |
|
$layout = acf_extract_var($field['layouts'], $i); |
| 869 |
|
|
| 870 |
|
// append to $layouts |
| 871 |
|
$layouts[ $layout['name'] ] = $layout['sub_fields']; |
| 872 |
|
|
| 873 |
|
} |
| 874 |
|
|
| 875 |
|
|
| 876 |
|
// check sub fields |