├── res └── js │ ├── dist │ └── .gitkeep │ └── src │ ├── Reducers │ ├── Reducers.js │ └── Group.js │ ├── Services │ ├── Services.js │ └── AcfGroupService.js │ ├── Components │ ├── NotSupported.js │ ├── Textarea.js │ ├── Text.js │ ├── Email.js │ ├── Password.js │ ├── Url.js │ ├── Number.js │ ├── Select.js │ ├── ButtonGroup.js │ ├── Range.js │ ├── Field.js │ ├── TrueFalse.js │ ├── ListItem.js │ ├── Row.js │ ├── Group.js │ ├── Layout.js │ ├── Radio.js │ ├── Checkbox.js │ ├── Image.js │ ├── Repeater.js │ ├── FlexibleContent.js │ └── Relationship.js │ ├── Containers │ └── AcfGroup.js │ ├── Actions │ └── AcfGroups.js │ └── AcfGutenberg.js ├── .gitignore ├── lib ├── AbstractSingleton.php └── AdvancedCustomGutenberg.php ├── acf-gutenberg.php ├── package.json ├── webpack.config.js ├── README.md ├── CODE_OF_CONDUCT.md ├── Psr4Autoloader.php └── LICENSE /res/js/dist/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | node_modules/ 3 | res/js/dist/ 4 | !res/js/dist/.gitkeep 5 | -------------------------------------------------------------------------------- /res/js/src/Reducers/Reducers.js: -------------------------------------------------------------------------------- 1 | import {combineReducers} from 'redux'; 2 | import Group from './Group'; 3 | 4 | const Reducers = combineReducers({ 5 | Group 6 | }); 7 | 8 | export default Reducers; 9 | -------------------------------------------------------------------------------- /res/js/src/Services/Services.js: -------------------------------------------------------------------------------- 1 | import AcfGroupService from './AcfGroupService'; 2 | 3 | const Services = (store) => { 4 | const acfGroupService = new AcfGroupService(store); 5 | return { 6 | acfGroupService 7 | } 8 | }; 9 | 10 | export default Services; 11 | -------------------------------------------------------------------------------- /res/js/src/Components/NotSupported.js: -------------------------------------------------------------------------------- 1 | import {Component} from 'react'; 2 | 3 | export default class NotSupported extends Component { 4 | render() { 5 | return ( 6 |
Component type "{this.props.type}" is not supported!
8 | {this.props.instructions}
) : ''} 41 |{ JSON.stringify(this.props.Group.Fields, null, ' ')}
80 | | 64 | {this.props['sub_fields'].map(field => { 65 | return ( 66 | |
67 | {field.label}
68 | {field.required ? ( *) : ''}
69 | {field.instructions ? ( {field.instructions} ) : ''} 70 | |
71 | )
72 | })}
73 | 74 | |
90 | {this.props['sub_fields'].map(field => {
91 | let TagName = ACF_COMPONENTS[field.type] ? ACF_COMPONENTS[field.type]: NotSupported;
92 | let fieldProps = this.getFieldProps(field, row, i);
93 | return ( |
96 | )}
97 | 98 | this.onModifyRows(i)} /> 99 | this.onModifyRows(i, 'remove')} /> 100 | | 101 |
|---|
'; 399 | var_dump($layout); 400 | var_dump($a); 401 | var_dump($b); 402 | echo ''; 403 | } 404 | } 405 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc.