Skip to content

Commit 7eff4d9

Browse files
committed
ACF Extended: 0.9
1 parent 318659f commit 7eff4d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+23712
-13135
lines changed

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,50 @@ Manage WordPress Options from the Settings > Options page. Options value (string
548548

549549
## 📋 Changelog
550550

551+
### 0.9
552+
553+
**ACF Extended Pro 0.9:**
554+
555+
* Module: Forms - Added Json & PHP Sync feature
556+
* Module: Forms - PHP sync files are saved/loaded from `/my-theme/acfe-php/forms`
557+
* Module: Forms - Json sync files are saved/loaded from `/my-theme/acf-json/forms`
558+
* Modules: "View" link in posts list view is now removed when the item disabled
559+
* Field: Block Editor - Fixed Woocommerce `get_current_screen()` usage on front-end
560+
* Field: Block Editor - Fixed crash when used within a Flexible Content with Woocommerce
561+
* Field: Block Editor - Enhanced Woocommerce compatibility
562+
* Field: Block Editor - Fixed blocks arguments being stripped when submitted on front-end
563+
* Field: Block Editor - Added WP 6.5 compatibility
564+
* Field: Flexible Content - Grid - Fixed "No Wrap" setting not using "Default size: 12" when adding a layout
565+
* Field: Image Sizes - Fixed field not using the correct "Display Format" setting
566+
567+
**ACF Extended Basic 0.9:**
568+
569+
* Module: Forms - Updated module to v3
570+
* Module: Forms - Ability to register/render forms using PHP code only
571+
* Module: Forms - Updated Template Tags logic with a new API, allowing developers to create their own tag
572+
* Module: Forms - New Template Tags: `{render}`, `{get_post}`, `{get_term}`, `{get_user}` & `{date}`
573+
* Module: Forms - Ability to use Tags in Tags. Ie: `{get_field:my_field:{action:post:ID}:false}`
574+
* Module: Forms - Ability to render submit button with `{render:submit}` anywhere in the form
575+
* Module: Forms - ACF Group subfields can now be saved/loaded individually in Forms Actions UI
576+
* Module: Forms - New Email Action settings: "Content Editor/Raw HTML Editor" switch
577+
* Module: Forms - New Post Action settings: "Post Date/Schedule", "Post Thumbnail" & "Append Post terms"
578+
* Module: Forms - New User Action settings: "Built-in Validation" & "Log user once created"
579+
* Module: Forms - Reworked form arguments for better readability and usability
580+
* Module: Forms - All hooks have been deprecated and renamed. New hooks are simplified and provide more context
581+
* Module: Forms - Added `acfe/modules/forms/top_level` setting to set the "Forms" admin menu as top level
582+
* Module: Performance Mode - Deprecated `acfe_is_single_meta_enabled()` now allow generic call (without id)
583+
* Module: Added safeguard logic to double-check `WP_Post` object in `add_meta_boxes`
584+
* Field: Advanced Link - Fixed URL value in Flexible Content Preview Mode
585+
* Field: Flexible Content - Toggle Layout - Enhanced CSS effect to allow fields edit
586+
* Field: Forms - Field now store forms names as value instead of IDs, for portability
587+
* Field: WYSIWYG - Fixed editor being delayed inside a Flexible Content > Sub Repeater
588+
* Field Settings: Enhanced escaping logic in the "Data" modal
589+
* Field Settings: Enhanced "Permissions" setting to allow new lines
590+
* Field Groups: Local - "Sync Back to DB" feature now correctly ignore Inline Hooks
591+
* Settings UI: Enhanced array settings values render
592+
* General: Fixed ACF postboxes setting icon alignment in WP 6.5
593+
* General: Bump WP version up to 6.5
594+
551595
### 0.8.9.5
552596

553597
**ACF Extended Pro 0.8.9.5:**
@@ -660,7 +704,7 @@ Manage WordPress Options from the Settings > Options page. Options value (string
660704
**ACF Extended Pro 0.8.9.1:**
661705

662706
* Field: Date Range Picker - Added string value fallback in `format_value()`
663-
* Field: Menu Locations - Added "Name", "Label" & "Both (Array)"" Return Format
707+
* Field: Menu Locations - Added "Name", "Label" & "Both (Array)" Return Format
664708
* Field: Options Pages - Fixed potential warning when "Allowed Options Pages" setting was empty
665709
* Field Group: Global Conditional Logic - Added <, <=, >, >= Field Group Locations Operators
666710
* Module: Rewrite Rules - Enhanced invalid regex rule fallback

acf-extended.php

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: Advanced Custom Fields: Extended
44
* Description: All-in-one enhancement suite that improves WordPress & Advanced Custom Fields.
5-
* Version: 0.8.9.5
5+
* Version: 0.9
66
* Author: ACF Extended
77
* Plugin URI: https://www.acf-extended.com
88
* Author URI: https://www.acf-extended.com
@@ -19,7 +19,7 @@
1919
class ACFE{
2020

2121
// vars
22-
var $version = '0.8.9.5';
22+
var $version = '0.9';
2323

2424
/**
2525
* construct
@@ -95,9 +95,9 @@ function load(){
9595
'theme_path' => $theme_path,
9696
'theme_url' => $theme_url,
9797
'theme_folder' => parse_url($theme_url, PHP_URL_PATH),
98-
'reserved_post_types' => array('acf-field', 'acf-field-group', 'acfe-form'),
98+
'reserved_post_types' => array('acf-field', 'acf-field-group'),
9999
'reserved_taxonomies' => array('acf-field-group-category'),
100-
'reserved_field_groups' => array('group_acfe_dynamic_form'),
100+
'reserved_field_groups' => array(),
101101

102102
// php
103103
'php' => true,
@@ -117,6 +117,7 @@ function load(){
117117
'modules/categories' => true,
118118
'modules/block_types' => true,
119119
'modules/forms' => true,
120+
'modules/forms/top_level' => false,
120121
'modules/options_pages' => true,
121122
'modules/post_types' => true,
122123
'modules/taxonomies' => true,
@@ -159,6 +160,7 @@ function load(){
159160
acfe_include('includes/local-meta.php');
160161
acfe_include('includes/multilang.php');
161162
acfe_include('includes/settings.php');
163+
acfe_include('includes/template-tags.php');
162164
acfe_include('includes/upgrades.php');
163165

164166
// module
@@ -177,6 +179,21 @@ function load(){
177179
acfe_include('includes/modules/block-type/module-block-type-upgrades.php');
178180

179181
// form
182+
acfe_include('includes/modules/form/module-form.php');
183+
acfe_include('includes/modules/form/module-form-action.php');
184+
acfe_include('includes/modules/form/module-form-action-custom.php');
185+
acfe_include('includes/modules/form/module-form-action-email.php');
186+
acfe_include('includes/modules/form/module-form-action-post.php');
187+
acfe_include('includes/modules/form/module-form-action-redirect.php');
188+
acfe_include('includes/modules/form/module-form-action-term.php');
189+
acfe_include('includes/modules/form/module-form-action-user.php');
190+
acfe_include('includes/modules/form/module-form-compatibility.php');
191+
acfe_include('includes/modules/form/module-form-deprecated.php');
192+
acfe_include('includes/modules/form/module-form-fields.php');
193+
acfe_include('includes/modules/form/module-form-front.php');
194+
acfe_include('includes/modules/form/module-form-front-render.php');
195+
acfe_include('includes/modules/form/module-form-hooks.php');
196+
acfe_include('includes/modules/form/module-form-shortcode.php');
180197
acfe_include('includes/modules/form/module-form-upgrades.php');
181198

182199
// performance
@@ -284,10 +301,6 @@ function init(){
284301
acfe_include('includes/modules/performance/module-performance-ultra-fields.php');
285302
acfe_include('includes/modules/performance/module-performance-ultra-revisions.php');
286303

287-
// modules legacy
288-
acfe_include('includes/module-legacy.php');
289-
acfe_include('includes/modules/form/module-form.php');
290-
291304
}
292305

293306

@@ -339,12 +352,6 @@ function include_admin_tools(){
339352
// modules
340353
acfe_include('includes/admin/tools/module-export.php');
341354
acfe_include('includes/admin/tools/module-import.php');
342-
343-
// modules legacy
344-
acfe_include('includes/admin/tools/tools-legacy/module-export-legacy.php');
345-
acfe_include('includes/admin/tools/tools-legacy/module-import-legacy.php');
346-
acfe_include('includes/admin/tools/tools-legacy/forms-export.php');
347-
acfe_include('includes/admin/tools/tools-legacy/forms-import.php');
348355

349356
}
350357

assets/css/acfe-admin.css

Lines changed: 74 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,35 @@ ul.acfe-module-export-choices {
669669
vertical-align: text-bottom
670670
}
671671

672+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=fields]>.acf-input>.acf-fields>.acf-field,
673+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=form]>.acf-input>.acf-fields>.acf-field {
674+
border: 0
675+
}
676+
677+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=form]>.acf-input>.acf-fields>.acf-field>.acf-input>.acf-input-prepend {
678+
width: 77px
679+
}
680+
681+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=form]>.acf-input>.acf-fields>.acf-field[data-name=class],
682+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=form]>.acf-input>.acf-fields>.acf-field[data-name=id] {
683+
padding-left: 0
684+
}
685+
686+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=fields]>.acf-input>.acf-fields>.acf-field>.acf-input>.acf-input-prepend {
687+
width: 77px
688+
}
689+
690+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=fields]>.acf-input>.acf-fields>.acf-field[data-name=class],
691+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=fields]>.acf-input>.acf-fields>.acf-field[data-name=instruction],
692+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=fields]>.acf-input>.acf-fields>.acf-field[data-name=wrapper_class] {
693+
padding-left: 0
694+
}
695+
696+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=fields]>.acf-input>.acf-fields>.acf-field[data-name=instruction],
697+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=fields]>.acf-input>.acf-fields>.acf-field[data-name=label] {
698+
padding-top: 0
699+
}
700+
672701
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-type=acfe_dynamic_render][data-key*="_doc"] {
673702
padding: 0 !important;
674703
border: 0 !important;
@@ -713,20 +742,33 @@ ul.acfe-module-export-choices {
713742
padding: 0
714743
}
715744

716-
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields] ul li label,
717-
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields] ul li label {
745+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields]>.acf-input>ul,
746+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields]>.acf-input>ul {
747+
border: 0
748+
}
749+
750+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields]>.acf-input>ul>li>strong,
751+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields]>.acf-input>ul>li>strong {
752+
display: block;
753+
padding: 15px 12px 8px;
754+
line-height: 1.4;
755+
margin-top: 0
756+
}
757+
758+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields]>.acf-input>ul>li>ul>li label,
759+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields]>.acf-input>ul>li>ul>li label {
718760
display: block;
719761
padding: 8px 12px;
720762
border-bottom: 1px solid #e1e1e1
721763
}
722764

723-
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields] ul li:last-child label,
724-
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields] ul li:last-child label {
765+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields]>.acf-input>ul>li>ul>li:last-child label,
766+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields]>.acf-input>ul>li>ul>li:last-child label {
725767
border-bottom: 0
726768
}
727769

728-
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields] ul li input,
729-
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields] ul li input {
770+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields]>.acf-input>ul>li>ul>li input,
771+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields]>.acf-input>ul>li>ul>li input {
730772
margin-right: 7px
731773
}
732774

@@ -774,11 +816,32 @@ ul.acfe-module-export-choices {
774816
width: 83%
775817
}
776818

819+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=content_editor],
820+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=content_html],
821+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=description_custom],
822+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=parent_custom],
823+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=post_author_custom],
824+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=post_content_custom],
825+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=post_date_custom],
826+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=post_excerpt_custom],
827+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=post_parent_custom],
828+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=post_thumbnail_custom],
829+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=source_custom],
830+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=target_custom] {
831+
border-top: 0;
832+
padding-top: 0
833+
}
834+
777835
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=files]>.acf-input .acf-actions,
778836
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=files_static]>.acf-input .acf-actions {
779837
text-align: left
780838
}
781839

840+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=files]>.acf-input .acf-actions .acf-button,
841+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=files_static]>.acf-input .acf-actions .acf-button {
842+
float: none
843+
}
844+
782845
.acfe-module.acfe-module-form.acfe-module-post .select2-results__options .loading-results,
783846
.acfe-module.acfe-module-form.acfe-module-post .select2-results__options .select2-results__message {
784847
display: none
@@ -1040,6 +1103,11 @@ html[dir=rtl] .acfe-postbox-left>.inside>.acf-field>.acf-input {
10401103
}
10411104
}
10421105

1106+
body.branch-6-5 .postbox .handle-actions .acf-hndle-cog {
1107+
line-height: 28px;
1108+
height: 26px
1109+
}
1110+
10431111
.postbox .handlediv {
10441112
width: 1.62rem
10451113
}

assets/css/acfe-admin.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/acfe-field-group.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,11 @@ body.acf-admin-5-3 .acf-field-setting-fc_layout .acf-input-wrap.select select {
648648
width: 100%
649649
}
650650

651+
.acf-admin-6.acf-admin-single-field-group .acf-field-setting-acfe_permissions>.acf-input>ul {
652+
-ms-flex-wrap: wrap;
653+
flex-wrap: wrap
654+
}
655+
651656
.acf-admin-6.acf-admin-single-field-group .acf-field-setting-acfe_field_group_condition {
652657
padding-right: 72px;
653658
padding-left: 72px;

assets/css/acfe-field-group.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/acfe-input.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,13 +1084,17 @@ input.acfe-flexible-control-title {
10841084
position: relative
10851085
}
10861086

1087-
.layout.acfe-flexible-layout-hidden>.acf-fc-layout-controls,
10881087
.layout.acfe-flexible-layout-hidden>.acf-fc-layout-handle,
1089-
.layout.acfe-flexible-layout-hidden>.acf-fields,
10901088
.layout.acfe-flexible-layout-hidden>.acfe-fc-placeholder {
10911089
opacity: .5
10921090
}
10931091

1092+
.layout.acfe-flexible-layout-hidden>.acf-fc-layout-controls>.acfe-flexible-icon.dashicons-hidden {
1093+
background: #2c3338;
1094+
border-color: #111;
1095+
color: #fff
1096+
}
1097+
10941098
.acf-field-flexible-content[data-acfe-flexible-modal-edition="1"]>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-controls>a.-collapse {
10951099
display: none
10961100
}
@@ -1328,6 +1332,10 @@ body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td:last-of-type {
13281332
vertical-align: text-top
13291333
}
13301334

1335+
.acf-tab-wrap {
1336+
overflow: unset
1337+
}
1338+
13311339
.acf-field-textarea[data-acfe-textarea-code="1"]>.acf-input>textarea {
13321340
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
13331341
font-size: 1em

assets/css/acfe-input.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)