Version Description
ACF Extended Pro 0.8.7.5:
* Module: Added Enhanced Field Group UI module.
* Module: Added Classic Editor module. Disabled by default, can be enabled using acf_update_setting('acfe/modules/classic_editor', true)
* Fields: Added "Instruction Placement" override setting. This will allow to set specific instruction placement for any field. The Advanced Field Group Setting must be enabled
* Fields: Added "Instructions Read More" setting allowing to add collapsed instructions. You may use the ---
or ---Learn more---
template tags to split the instruction
* Fields: Added Quick Visibility Settings widget allowing hide the field, label, instructions or required settings based on the screen: Everywhere, administration or front-end. The Advanced Field Group Setting must be enabled
* Fields: Added inline hooks callbacks for the acf_add_local_field_group()
function. Allowing to hook in load_field
, prepare_field
, render_field
, load_value
, update_value
, format_value
, validate_value
, delete_value
* Module: Global Fields Condition can now be used as a specific field conditional logic
* Field Groups: Added new "Hide on Screen" settings: "Hide Title", "Hide save draft", "Hide preview", "Hide post status", "Hide visibility", 'Hide publish date", "Hide move to trash", "Hide publish", "Hide minor publishing actions", "Hide misc publishing actions" & "Hide major publishing actions"
* Field: File - Added "Allow Multiple Upload", "Preview Style", "File Count", "Min/max allowed files", "Custom Upload Folder", "Stylised Button" (for Browser uploader) and built-in dropzone (for Browser uploader)
* Field: WYSIWYG - Added "Disable Native WP Style", "Custom Stylesheet Enqueue", "AutoResize", "Max Height", "Codemirror as Source Editor via the source_code
button" & "Valid Elements" settings
* Field: WYSIWYG - Added a new "Basic Enhanced" Toolbar which automatically includes the new source_code
(Code Mirror source editor) and wp_add_media
buttons
* Field: WYSIWYG - Fixed the "Path" render when using the "Transparent Background" setting
* Field: Post Field - Added "Instructions" setting
* Field: Tab - Added "No Preference Save" setting to not save latest opened tab when refreshing the page
* Field: Datepicker: Added "Placeholder", "Min/max Date" & "No Weekends" settings
* Field: Datetime picker: Added "Placeholder", "Min/max Date", "Min/max Time", "Min/max H:i:s" & "No Weekends" settings
* Field: Time picker: Added "Placeholder", "Min/max Time" & "Min/max H:i:s" settings
* Core: Added the ACFE_PRO_KEY
constant allowing to set the licence key in PHP
ACF Extended Free 0.8.7.5:
* Field Groups: Instruction Placement - Added "Above Fields" setting
* Field Groups: Instruction Placement - "Tooltip" instructions can now be clicked on mobile device
* Field Groups: Hide on screen - All field groups "Hide on screen" settings are now merged, instead of using only the first field group setting
* Field Groups: Advanced Settings - Enhanced code logic
* Field Groups: Permissions setting is now displayed when the Advanced Field Group setting is enabled
* Field: Select - Removed the - -
characters in the placeholder
* Field: Taxonomy Terms - Fixed "Load Terms" setting when using the radio field type
* Field: Flexible Content - Fixed & enhanced the "Minimum" setting badge duplication when using the "Modal Select" setting
* Field: Flexible Content - Fixed $is_preview
hard reset in the get_flexible()
function. This will allow to use get_flexible()
inside an another get_flexible()
and correctly get the $is_preview
variable
* Field: Flexible Content - Fixed a potential PHP notice when adding a new Flexible Content
* Field: Hidden Input - Value can now be used as conditional setting
* Field: Datetime Picker - Value can now be used as conditional setting
* Field: Time Picker - Value can now be used as conditional setting
* Field: File - Renamed the acfe_uploader
setting back to the native uploader
name
* Field: Image - Renamed the acfe_uploader
setting back to the native uploader
name
* Fields: Permissions settings are now displayed when the Advanced Field Group setting is enabled
* Fields: Enhanced Advanced Settings & Advanced Validation UI
* Module: Dev Mode - Fixed deprecated acf_get_term_post_id()
usage
* Module: Enhanced UI - Enhanced the responsive CSS
* Module: Enhanced UI - Fixed WPMU styles
* Module: Enhanced UI - Enhanced User Profiles compatibility with Woocommerce plugin
* Module: Enhanced UI - Enhanced Terms Views compatibility with Woocommerce, Yoast, WPML & User Role Editor plugins
* Module: Dynamic Forms - Added the new "Redirect Action"
* Module: Dynamic Forms - Added the new acfe_form_get_action('post')
function to retrieve the previous Action output within an Action
* Module: Dynamic Forms - Deprecated the "Redirection" setting. The new "Redirect Action" should be used instead
* Module: Dynamic Forms - Deprecated the {query_var:my-post}
Template Tag to retrieve previous Action output. The new {action:post}
Template Tag should be used instead
* Module: Dynamic Forms - Deprecated the {current:form:key}
Template Tag. The new {form:key}
Template Tag should be used instead
* Module: Dynamic Forms - Deprecated the acfe/form/query_var/email
hook & variations. The new acfe/form/output/email
hook should be used instead
* Module: Dynamic Forms - Deprecated the acfe/form/query_var/post
hook & variations. The new acfe/form/output/post
hook should be used instead
* Module: Dynamic Forms - Deprecated the acfe/form/query_var/term
hook & variations. The new acfe/form/output/term
hook should be used instead
* Module: Dynamic Forms - Deprecated the acfe/form/query_var/user
hook & variations. The new acfe/form/output/user
hook should be used instead
* Module: Dynamic Forms - Deprecated the acfe_form_is_submitted()
function. The new acfe_is_form_success()
function should be used instead
* Module: Dynamic Forms - Enhanced Actions "Code Examples"
* Module: Dynamic Forms - Updated "Cheatsheet" tab
* Module: Dynamic Forms - Multiple clicks on the submit button are now prevented (Also apply to the native ACF Forms)
* Module: Dynamic Forms - Applying Date, Date time & time pickers fields input class settings
* Module: Dynamic Forms - Removed a potential "Draft Post" if the "Post Action" was cancelled during the acfe/form/submit/post_args
hook
* Module: Dynamic Block Types - Added "Anchor" supports setting
* Module: Dynamic Post Types - "Menu position" setting now correctly use null
as default value (as in the register_post_type()
documentation)
* Module: Single Meta Save - Fixed slashed values after saving a menu in the WP Nav Menu Items screen
* Module: Single Meta Save - Fixed typo in instruction
* Tools: Fixed the empty message when clicking "Import" without selecting a field group file
* General: Fixed ACF Updates box CSS
* General: Updated the donors list
* General: Enhanced assets build tools, now using Gulp, Postcss, Autoprefixer & Minifiers
* Core: Enhanced JS code base
* Core: Enhanced Enqueue
Release Info
Developer | hwk-fr |
Plugin | Advanced Custom Fields: Extended |
Version | 0.8.7.5 |
Comparing to | |
See all releases |
Code changes from version 0.8.7.4 to 0.8.7.5
- acf-extended.php +16 -9
- assets/acf-extended-admin.css +0 -1017
- assets/acf-extended-admin.js +0 -182
- assets/acf-extended-admin.min.css +0 -1
- assets/acf-extended-admin.min.js +0 -1
- assets/acf-extended-ui.css +0 -457
- assets/acf-extended-ui.min.css +0 -1
- assets/acf-extended.css +0 -1879
- assets/acf-extended.min.css +0 -1
- assets/acf-extended.min.js +0 -1
- assets/css/acfe-admin.css +707 -0
- assets/css/acfe-admin.min.css +1 -0
- assets/css/acfe-field-group.css +351 -0
- assets/css/acfe-field-group.min.css +1 -0
- assets/css/acfe-input.css +1212 -0
- assets/css/acfe-input.min.css +1 -0
- assets/css/acfe-ui.css +455 -0
- assets/css/acfe-ui.min.css +1 -0
- assets/css/acfe.css +578 -0
- assets/css/acfe.min.css +1 -0
- assets/js/acfe-admin.js +525 -0
- assets/js/acfe-admin.min.js +1 -0
- assets/js/acfe-field-group.js +418 -0
- assets/js/acfe-field-group.min.js +1 -0
- assets/{acf-extended.js → js/acfe-input.js} +852 -1364
- assets/js/acfe-input.min.js +1 -0
- assets/js/acfe.js +427 -0
- assets/js/acfe.min.js +1 -0
- includes/core/enqueue.php +36 -54
- includes/core/helpers.php +75 -65
- includes/core/hooks.php +158 -0
- includes/core/multilang.php +2 -2
- includes/field-groups/field-group-advanced.php +62 -0
- includes/field-groups/field-group-category.php +223 -113
- includes/field-groups/field-group-display-title.php +35 -0
- includes/field-groups/field-group-hide-on-screen.php +135 -0
- includes/field-groups/field-group-instruction-placement.php +57 -0
- includes/field-groups/field-group-meta.php +184 -0
- includes/field-groups/field-group-permissions.php +56 -0
- includes/field-groups/field-group.php +69 -536
- includes/fields-settings/data.php +67 -67
- includes/fields-settings/fields.php +0 -127
- includes/fields-settings/instructions.php +64 -0
- includes/fields-settings/permissions.php +55 -37
- includes/fields-settings/settings.php +113 -172
- includes/fields-settings/validation.php +96 -125
- includes/fields/field-file.php +115 -43
- includes/fields/field-flexible-content.php +18 -7
- includes/fields/field-image.php +136 -95
- includes/fields/field-taxonomy-terms.php +6 -0
- includes/modules/dev.php +26 -8
- includes/modules/dynamic-block-type.php +32 -2
- includes/modules/dynamic-form.php +5 -2
- includes/modules/dynamic-post-type.php +7 -3
- includes/modules/dynamic-taxonomy.php +1 -0
- includes/modules/form/actions/custom.php +129 -72
- includes/modules/form/actions/email.php +503 -29
- includes/modules/form/actions/post.php +1254 -62
- includes/modules/form/actions/redirect.php +323 -0
- includes/modules/form/actions/term.php +953 -64
- includes/modules/form/actions/user.php +1741 -61
- includes/modules/form/admin.php +615 -788
@@ -1,8 +1,8 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Advanced Custom Fields: Extended
|
4 |
-
* Description:
|
5 |
-
* Version: 0.8.7.
|
6 |
* Author: ACF Extended
|
7 |
* Author URI: https://www.acf-extended.com
|
8 |
* Text Domain: acfe
|
@@ -16,7 +16,7 @@ if(!class_exists('ACFE')):
|
|
16 |
class ACFE{
|
17 |
|
18 |
// Vars
|
19 |
-
var $version = '0.8.7.
|
20 |
var $acf = false;
|
21 |
|
22 |
/*
|
@@ -132,6 +132,7 @@ class ACFE{
|
|
132 |
* Core
|
133 |
*/
|
134 |
acfe_include('includes/core/enqueue.php');
|
|
|
135 |
acfe_include('includes/core/menu.php');
|
136 |
|
137 |
/*
|
@@ -160,7 +161,7 @@ class ACFE{
|
|
160 |
*/
|
161 |
acfe_include('includes/fields-settings/bidirectional.php');
|
162 |
acfe_include('includes/fields-settings/data.php');
|
163 |
-
acfe_include('includes/fields-settings/
|
164 |
acfe_include('includes/fields-settings/permissions.php');
|
165 |
acfe_include('includes/fields-settings/settings.php');
|
166 |
acfe_include('includes/fields-settings/validation.php');
|
@@ -169,7 +170,13 @@ class ACFE{
|
|
169 |
* Field Groups
|
170 |
*/
|
171 |
acfe_include('includes/field-groups/field-group.php');
|
|
|
172 |
acfe_include('includes/field-groups/field-group-category.php');
|
|
|
|
|
|
|
|
|
|
|
173 |
acfe_include('includes/field-groups/field-groups.php');
|
174 |
acfe_include('includes/field-groups/field-groups-local.php');
|
175 |
|
@@ -191,10 +198,8 @@ class ACFE{
|
|
191 |
acfe_include('includes/modules/dynamic-options-page.php');
|
192 |
acfe_include('includes/modules/dynamic-post-type.php');
|
193 |
acfe_include('includes/modules/dynamic-taxonomy.php');
|
194 |
-
acfe_include('includes/modules/settings.php');
|
195 |
acfe_include('includes/modules/single-meta.php');
|
196 |
-
acfe_include('includes/modules/
|
197 |
-
acfe_include('includes/modules/user.php');
|
198 |
|
199 |
}
|
200 |
|
@@ -257,8 +262,10 @@ class ACFE{
|
|
257 |
|
258 |
foreach($array as $name => $value){
|
259 |
|
260 |
-
if(
|
261 |
-
|
|
|
|
|
262 |
|
263 |
}
|
264 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Advanced Custom Fields: Extended
|
4 |
+
* Description: All-in-one enhancement suite that improves WordPress & Advanced Custom Fields.
|
5 |
+
* Version: 0.8.7.5
|
6 |
* Author: ACF Extended
|
7 |
* Author URI: https://www.acf-extended.com
|
8 |
* Text Domain: acfe
|
16 |
class ACFE{
|
17 |
|
18 |
// Vars
|
19 |
+
var $version = '0.8.7.5';
|
20 |
var $acf = false;
|
21 |
|
22 |
/*
|
132 |
* Core
|
133 |
*/
|
134 |
acfe_include('includes/core/enqueue.php');
|
135 |
+
acfe_include('includes/core/hooks.php');
|
136 |
acfe_include('includes/core/menu.php');
|
137 |
|
138 |
/*
|
161 |
*/
|
162 |
acfe_include('includes/fields-settings/bidirectional.php');
|
163 |
acfe_include('includes/fields-settings/data.php');
|
164 |
+
acfe_include('includes/fields-settings/instructions.php');
|
165 |
acfe_include('includes/fields-settings/permissions.php');
|
166 |
acfe_include('includes/fields-settings/settings.php');
|
167 |
acfe_include('includes/fields-settings/validation.php');
|
170 |
* Field Groups
|
171 |
*/
|
172 |
acfe_include('includes/field-groups/field-group.php');
|
173 |
+
acfe_include('includes/field-groups/field-group-advanced.php');
|
174 |
acfe_include('includes/field-groups/field-group-category.php');
|
175 |
+
acfe_include('includes/field-groups/field-group-display-title.php');
|
176 |
+
acfe_include('includes/field-groups/field-group-hide-on-screen.php');
|
177 |
+
acfe_include('includes/field-groups/field-group-instruction-placement.php');
|
178 |
+
acfe_include('includes/field-groups/field-group-meta.php');
|
179 |
+
acfe_include('includes/field-groups/field-group-permissions.php');
|
180 |
acfe_include('includes/field-groups/field-groups.php');
|
181 |
acfe_include('includes/field-groups/field-groups-local.php');
|
182 |
|
198 |
acfe_include('includes/modules/dynamic-options-page.php');
|
199 |
acfe_include('includes/modules/dynamic-post-type.php');
|
200 |
acfe_include('includes/modules/dynamic-taxonomy.php');
|
|
|
201 |
acfe_include('includes/modules/single-meta.php');
|
202 |
+
acfe_include('includes/modules/ui.php');
|
|
|
203 |
|
204 |
}
|
205 |
|
262 |
|
263 |
foreach($array as $name => $value){
|
264 |
|
265 |
+
if(defined($name))
|
266 |
+
continue;
|
267 |
+
|
268 |
+
define($name, $value);
|
269 |
|
270 |
}
|
271 |
|
@@ -1,1017 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* ACFE General
|
3 |
-
*/
|
4 |
-
pre, code, kbd, samp{
|
5 |
-
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
6 |
-
font-size: 1em;
|
7 |
-
}
|
8 |
-
|
9 |
-
pre{
|
10 |
-
display: block;
|
11 |
-
padding: 9.5px;
|
12 |
-
margin: 0;
|
13 |
-
line-height: 1.42857143;
|
14 |
-
color: #333;
|
15 |
-
word-break: break-all;
|
16 |
-
word-wrap: break-word;
|
17 |
-
background-color: #f9f9f9;
|
18 |
-
border: 1px solid #ccc;
|
19 |
-
border-radius: 1px;
|
20 |
-
white-space: pre-wrap;
|
21 |
-
overflow: auto;
|
22 |
-
}
|
23 |
-
|
24 |
-
code{
|
25 |
-
-webkit-user-select: all;
|
26 |
-
-moz-user-select: all;
|
27 |
-
-ms-user-select: all;
|
28 |
-
user-select: all;
|
29 |
-
}
|
30 |
-
|
31 |
-
pre > code{
|
32 |
-
-webkit-user-select: inherit;
|
33 |
-
-moz-user-select: inherit;
|
34 |
-
-ms-user-select: inherit;
|
35 |
-
user-select: inherit;
|
36 |
-
padding:0;
|
37 |
-
margin:0;
|
38 |
-
background:none;
|
39 |
-
font-size: 1em;
|
40 |
-
display:block;
|
41 |
-
}
|
42 |
-
|
43 |
-
.pre-codemirror > .CodeMirror,
|
44 |
-
.code-codemirror > .CodeMirror{
|
45 |
-
border:1px solid #ccc;
|
46 |
-
height:auto;
|
47 |
-
width:auto;
|
48 |
-
background:#F9F9F9;
|
49 |
-
padding:9px 6px;
|
50 |
-
}
|
51 |
-
|
52 |
-
.code-codemirror{
|
53 |
-
display:inline;
|
54 |
-
vertical-align:middle;
|
55 |
-
}
|
56 |
-
|
57 |
-
.code-codemirror > .CodeMirror{
|
58 |
-
display:inline-block;
|
59 |
-
padding:0;
|
60 |
-
}
|
61 |
-
|
62 |
-
.pre-codemirror > .CodeMirror .CodeMirror-selected,
|
63 |
-
.code-codemirror > .CodeMirror .CodeMirror-selected{
|
64 |
-
background:#ddd !important;
|
65 |
-
}
|
66 |
-
|
67 |
-
.pre-codemirror > .CodeMirror .CodeMirror-lines,
|
68 |
-
.code-codemirror > .CodeMirror .CodeMirror-lines{
|
69 |
-
padding:0;
|
70 |
-
}
|
71 |
-
|
72 |
-
/*
|
73 |
-
* Postbox seamless
|
74 |
-
*/
|
75 |
-
.acf-postbox.seamless > .inside > .acf-field{
|
76 |
-
padding:15px 12px;
|
77 |
-
}
|
78 |
-
|
79 |
-
.acf-flexible-content .layout.ui-sortable-helper:first-child + .layout.ui-sortable-placeholder{
|
80 |
-
margin-top:0;
|
81 |
-
}
|
82 |
-
|
83 |
-
/*
|
84 |
-
* ACFE: Postbox
|
85 |
-
*/
|
86 |
-
.acfe-postbox.acfe-postbox-no-handle h2.hndle{
|
87 |
-
cursor:initial;
|
88 |
-
}
|
89 |
-
|
90 |
-
.acfe-postbox.acfe-postbox-no-handle .handlediv{
|
91 |
-
display:none;
|
92 |
-
}
|
93 |
-
|
94 |
-
/*
|
95 |
-
* ACFE: Postbox-top
|
96 |
-
*/
|
97 |
-
.acfe-postbox-top>.inside {
|
98 |
-
position: relative
|
99 |
-
}
|
100 |
-
|
101 |
-
.acfe-postbox-top>.inside.-border {
|
102 |
-
border: #ccd0d4 solid 1px;
|
103 |
-
background: #fff
|
104 |
-
}
|
105 |
-
|
106 |
-
.acfe-postbox-top>.inside>.acf-field {
|
107 |
-
position: relative;
|
108 |
-
margin: 0;
|
109 |
-
padding: 15px 12px;
|
110 |
-
border-top: #EEEEEE solid 1px
|
111 |
-
}
|
112 |
-
|
113 |
-
.acfe-postbox-top>.inside>.acf-field:first-child {
|
114 |
-
border-top: none;
|
115 |
-
margin-top: 0
|
116 |
-
}
|
117 |
-
|
118 |
-
/*
|
119 |
-
* ACFE: Postbox-left
|
120 |
-
*/
|
121 |
-
.acfe-postbox-left>.inside {
|
122 |
-
position: relative
|
123 |
-
}
|
124 |
-
|
125 |
-
.acfe-postbox-left>.inside:after {
|
126 |
-
display: block;
|
127 |
-
clear: both;
|
128 |
-
content: ""
|
129 |
-
}
|
130 |
-
|
131 |
-
.acfe-postbox-left>.inside.-border {
|
132 |
-
border: #ccd0d4 solid 1px;
|
133 |
-
background: #fff
|
134 |
-
}
|
135 |
-
|
136 |
-
.acfe-postbox-left>.inside>.acf-field {
|
137 |
-
position: relative;
|
138 |
-
margin: 0;
|
139 |
-
padding: 15px 12px;
|
140 |
-
border-top: #EEEEEE solid 1px
|
141 |
-
}
|
142 |
-
|
143 |
-
.acfe-postbox-left>.inside>.acf-field:first-child {
|
144 |
-
border-top: none;
|
145 |
-
margin-top: 0
|
146 |
-
}
|
147 |
-
|
148 |
-
.acfe-postbox-left>.inside.-clear>.acf-field {
|
149 |
-
border: none;
|
150 |
-
padding: 0;
|
151 |
-
margin: 15px 0
|
152 |
-
}
|
153 |
-
|
154 |
-
.acfe-postbox-left>.inside>.acf-field {
|
155 |
-
padding: 15px 0
|
156 |
-
}
|
157 |
-
|
158 |
-
.acfe-postbox-left>.inside>.acf-field:after {
|
159 |
-
display: block;
|
160 |
-
clear: both;
|
161 |
-
content: ""
|
162 |
-
}
|
163 |
-
|
164 |
-
.acfe-postbox-left>.inside>.acf-field:before {
|
165 |
-
content: "";
|
166 |
-
display: block;
|
167 |
-
position: absolute;
|
168 |
-
z-index: 0;
|
169 |
-
background: #F9F9F9;
|
170 |
-
border-color: #E1E1E1;
|
171 |
-
border-style: solid;
|
172 |
-
border-width: 0 1px 0 0;
|
173 |
-
top: 0;
|
174 |
-
bottom: 0;
|
175 |
-
left: 0;
|
176 |
-
width: 20%
|
177 |
-
}
|
178 |
-
|
179 |
-
.acfe-postbox-left>.inside>.acf-field[data-width] {
|
180 |
-
float: none;
|
181 |
-
width: auto !important;
|
182 |
-
border-left-width: 0 !important;
|
183 |
-
border-right-width: 0 !important
|
184 |
-
}
|
185 |
-
|
186 |
-
.acfe-postbox-left>.inside>.acf-field>.acf-label {
|
187 |
-
float: left;
|
188 |
-
width: 20%;
|
189 |
-
margin: 0;
|
190 |
-
padding: 0 12px
|
191 |
-
}
|
192 |
-
|
193 |
-
.acfe-postbox-left>.inside>.acf-field>.acf-input {
|
194 |
-
float: left;
|
195 |
-
width: 80%;
|
196 |
-
margin: 0;
|
197 |
-
padding: 0 12px
|
198 |
-
}
|
199 |
-
|
200 |
-
html[dir="rtl"] .acfe-postbox-left>.inside>.acf-field:before {
|
201 |
-
border-width: 0 0 0 1px;
|
202 |
-
left: auto;
|
203 |
-
right: 0
|
204 |
-
}
|
205 |
-
|
206 |
-
html[dir="rtl"] .acfe-postbox-left>.inside>.acf-field>.acf-label {
|
207 |
-
float: right
|
208 |
-
}
|
209 |
-
|
210 |
-
html[dir="rtl"] .acfe-postbox-left>.inside>.acf-field>.acf-input {
|
211 |
-
float: right
|
212 |
-
}
|
213 |
-
|
214 |
-
#side-sortables .acfe-postbox-left>.inside>.acf-field:before {
|
215 |
-
display: none
|
216 |
-
}
|
217 |
-
|
218 |
-
#side-sortables .acfe-postbox-left>.inside>.acf-field>.acf-label {
|
219 |
-
width: 100%;
|
220 |
-
margin-bottom: 10px
|
221 |
-
}
|
222 |
-
|
223 |
-
#side-sortables .acfe-postbox-left>.inside>.acf-field>.acf-input {
|
224 |
-
width: 100%
|
225 |
-
}
|
226 |
-
|
227 |
-
@media screen and (max-width: 640px) {
|
228 |
-
.acfe-postbox-left>.inside>.acf-field:before {
|
229 |
-
display: none
|
230 |
-
}
|
231 |
-
.acfe-postbox-left>.inside>.acf-field>.acf-label {
|
232 |
-
width: 100%;
|
233 |
-
margin-bottom: 10px
|
234 |
-
}
|
235 |
-
.acfe-postbox-left>.inside>.acf-field>.acf-input {
|
236 |
-
width: 100%
|
237 |
-
}
|
238 |
-
}
|
239 |
-
|
240 |
-
/*
|
241 |
-
* ACFE: Dynamic Post Type 'Setting' Button
|
242 |
-
*/
|
243 |
-
.wrap .acfe-dpt-admin-config,
|
244 |
-
.wrap .acfe-dpt-admin-config:active,
|
245 |
-
.wrap .acfe-dt-admin-config,
|
246 |
-
.wrap .acfe-dt-admin-config:active,
|
247 |
-
.wrap .acfe-dop-admin-config,
|
248 |
-
.wrap .acfe-dop-admin-config:active{
|
249 |
-
padding-left:4px;
|
250 |
-
padding-right:4px;
|
251 |
-
}
|
252 |
-
|
253 |
-
.wrap .acfe-dpt-admin-config span,
|
254 |
-
.wrap .acfe-dt-admin-config span,
|
255 |
-
.wrap .acfe-dop-admin-config span{
|
256 |
-
font-size: 16px;
|
257 |
-
vertical-align: text-top;
|
258 |
-
height: 15px;
|
259 |
-
width: 19px;
|
260 |
-
line-height: 19px;
|
261 |
-
}
|
262 |
-
|
263 |
-
.wrap .acfe-dop-admin-config{
|
264 |
-
display: inline-block;
|
265 |
-
}
|
266 |
-
|
267 |
-
|
268 |
-
/*
|
269 |
-
* ACFE: Dynamic Post Type
|
270 |
-
*/
|
271 |
-
body.post-type-acfe-dpt.post-new-php #misc-publishing-actions,
|
272 |
-
body.post-type-acfe-dpt.post-new-php #minor-publishing-actions,
|
273 |
-
body.post-type-acfe-dpt .misc-pub-post-status,
|
274 |
-
body.post-type-acfe-dpt .misc-pub-visibility{
|
275 |
-
display:none;
|
276 |
-
}
|
277 |
-
|
278 |
-
body.post-type-acfe-dpt.post-new-php #major-publishing-actions{
|
279 |
-
border-top:0;
|
280 |
-
}
|
281 |
-
|
282 |
-
/*
|
283 |
-
* ACFE: Dynamic Taxonomy
|
284 |
-
*/
|
285 |
-
body.post-type-acfe-dt.post-new-php #misc-publishing-actions,
|
286 |
-
body.post-type-acfe-dt.post-new-php #minor-publishing-actions,
|
287 |
-
body.post-type-acfe-dt .misc-pub-post-status,
|
288 |
-
body.post-type-acfe-dt .misc-pub-visibility{
|
289 |
-
display:none;
|
290 |
-
}
|
291 |
-
|
292 |
-
body.post-type-acfe-dt.post-new-php #major-publishing-actions{
|
293 |
-
border-top:0;
|
294 |
-
}
|
295 |
-
|
296 |
-
/*
|
297 |
-
* ACFE: Dynamic Options Page
|
298 |
-
*/
|
299 |
-
body.post-type-acfe-dop.post-new-php #misc-publishing-actions,
|
300 |
-
body.post-type-acfe-dop.post-new-php #minor-publishing-actions,
|
301 |
-
body.post-type-acfe-dop .misc-pub-post-status,
|
302 |
-
body.post-type-acfe-dop .misc-pub-visibility{
|
303 |
-
display:none;
|
304 |
-
}
|
305 |
-
|
306 |
-
body.post-type-acfe-dop.post-new-php #major-publishing-actions{
|
307 |
-
border-top:0;
|
308 |
-
}
|
309 |
-
|
310 |
-
/*
|
311 |
-
* ACFE: Dynamic Block Type
|
312 |
-
*/
|
313 |
-
body.post-type-acfe-dbt.post-new-php #misc-publishing-actions,
|
314 |
-
body.post-type-acfe-dbt.post-new-php #minor-publishing-actions,
|
315 |
-
body.post-type-acfe-dbt .misc-pub-post-status,
|
316 |
-
body.post-type-acfe-dbt .misc-pub-visibility{
|
317 |
-
display:none;
|
318 |
-
}
|
319 |
-
|
320 |
-
body.post-type-acfe-dbt.post-new-php #major-publishing-actions{
|
321 |
-
border-top:0;
|
322 |
-
}
|
323 |
-
|
324 |
-
/*
|
325 |
-
* ACFE: Dynamic Forms
|
326 |
-
*/
|
327 |
-
body.post-type-acfe-form.post-new-php #misc-publishing-actions,
|
328 |
-
body.post-type-acfe-form.post-new-php #minor-publishing-actions,
|
329 |
-
body.post-type-acfe-form .misc-pub-post-status,
|
330 |
-
body.post-type-acfe-form .misc-pub-visibility{
|
331 |
-
display:none;
|
332 |
-
}
|
333 |
-
|
334 |
-
body.post-type-acfe-form.post-new-php #major-publishing-actions{
|
335 |
-
border-top:0;
|
336 |
-
}
|
337 |
-
|
338 |
-
/*
|
339 |
-
* ACFE: Author Label
|
340 |
-
*/
|
341 |
-
.acf-field.acf-field-acfe-author > .acf-label{
|
342 |
-
display:none;
|
343 |
-
}
|
344 |
-
|
345 |
-
/*
|
346 |
-
* Gutenberg: Fix metaboxes
|
347 |
-
*/
|
348 |
-
.edit-post-layout__metaboxes:not(:empty){
|
349 |
-
background:#f3f4f5;
|
350 |
-
padding:10px 10px 0 10px !important;
|
351 |
-
}
|
352 |
-
|
353 |
-
.edit-post-layout__metaboxes .edit-post-meta-boxes-area .postbox{
|
354 |
-
margin-bottom:10px;
|
355 |
-
border:1px solid #E1E1E1;
|
356 |
-
}
|
357 |
-
|
358 |
-
.edit-post-layout__metaboxes .edit-post-meta-boxes-area .postbox > .inside{
|
359 |
-
border-bottom:0;
|
360 |
-
}
|
361 |
-
|
362 |
-
/*
|
363 |
-
* ACF Tools
|
364 |
-
*/
|
365 |
-
#acf-admin-tool-acfe_tool_dbt_export ul,
|
366 |
-
#acf-admin-tool-acfe_tool_dpt_export ul,
|
367 |
-
#acf-admin-tool-acfe_tool_dt_export ul,
|
368 |
-
#acf-admin-tool-acfe_tool_form_export ul{
|
369 |
-
-moz-column-width: 200px;
|
370 |
-
column-width: 200px;
|
371 |
-
}
|
372 |
-
|
373 |
-
.acf-meta-box-wrap.-grid #acf-admin-tool-acfe-fg-local{
|
374 |
-
display:none;
|
375 |
-
}
|
376 |
-
|
377 |
-
/*
|
378 |
-
* ACFE WP Options
|
379 |
-
*/
|
380 |
-
.settings_page_acfe-options .column-option_id{
|
381 |
-
width:65px;
|
382 |
-
}
|
383 |
-
|
384 |
-
.settings_page_acfe-options .column-option_name{
|
385 |
-
width:435px;
|
386 |
-
}
|
387 |
-
|
388 |
-
.settings_page_acfe-options .column-autoload{
|
389 |
-
width:100px;
|
390 |
-
text-align:center;
|
391 |
-
}
|
392 |
-
|
393 |
-
/*
|
394 |
-
* ACFE Form
|
395 |
-
*/
|
396 |
-
.acf-field[data-name="acfe_form_post_save_post_title_custom"],
|
397 |
-
.acf-field[data-name="acfe_form_post_save_post_name_custom"],
|
398 |
-
.acf-field[data-name="acfe_form_post_save_post_content_custom"],
|
399 |
-
|
400 |
-
.acf-field[data-name="acfe_form_term_save_name_custom"],
|
401 |
-
.acf-field[data-name="acfe_form_term_save_slug_custom"],
|
402 |
-
.acf-field[data-name="acfe_form_term_save_description_custom"],
|
403 |
-
|
404 |
-
.acf-field[data-name="acfe_form_user_save_email_custom"],
|
405 |
-
.acf-field[data-name="acfe_form_user_save_username_custom"],
|
406 |
-
.acf-field[data-name="acfe_form_user_save_password_custom"],
|
407 |
-
.acf-field[data-name="acfe_form_user_save_first_name_custom"],
|
408 |
-
.acf-field[data-name="acfe_form_user_save_last_name_custom"],
|
409 |
-
.acf-field[data-name="acfe_form_user_save_nickname_custom"],
|
410 |
-
.acf-field[data-name="acfe_form_user_save_display_name_custom"],
|
411 |
-
.acf-field[data-name="acfe_form_user_save_website_custom"],
|
412 |
-
.acf-field[data-name="acfe_form_user_save_description_custom"]{
|
413 |
-
border-top:0;
|
414 |
-
padding-top:0;
|
415 |
-
}
|
416 |
-
|
417 |
-
.acf-field.acf-field-acfe-form-attributes > .acf-input > .acf-fields > .acf-field{
|
418 |
-
border-left-width:0;
|
419 |
-
}
|
420 |
-
|
421 |
-
.acf-field.acf-field-acfe-form-fields-attributes > .acf-input > .acf-fields > .acf-field{
|
422 |
-
border-left-width:0;
|
423 |
-
}
|
424 |
-
|
425 |
-
.acf-field-repeater.acf-field-acfe-form-email-files > .acf-input > .acf-repeater > .acf-actions,
|
426 |
-
.acf-field-repeater.acf-field-acfe-form-email-files-static > .acf-input > .acf-repeater > .acf-actions{
|
427 |
-
text-align:left;
|
428 |
-
}
|
429 |
-
/*
|
430 |
-
.acf-field[data-name="acfe_form_actions"] > .acf-label{
|
431 |
-
display:none;
|
432 |
-
}
|
433 |
-
|
434 |
-
.acf-field[data-name="acfe_form_actions"] > .acf-input{
|
435 |
-
width:100% !important;
|
436 |
-
}
|
437 |
-
|
438 |
-
.acf-field[data-name="acfe_form_actions"]:before{
|
439 |
-
background:none !important;
|
440 |
-
border:0 !important;
|
441 |
-
}*/
|
442 |
-
|
443 |
-
/*
|
444 |
-
* ACFE Dev Mode
|
445 |
-
*/
|
446 |
-
.postbox#acfe-wp-custom-fields > .inside,
|
447 |
-
.postbox#acfe-acf-custom-fields > .inside{
|
448 |
-
padding:0;
|
449 |
-
margin:0;
|
450 |
-
}
|
451 |
-
|
452 |
-
.postbox#acfe-wp-custom-fields + .tablenav,
|
453 |
-
.postbox#acfe-acf-custom-fields + .tablenav{
|
454 |
-
padding-top:0;
|
455 |
-
margin-top:-8px;
|
456 |
-
}
|
457 |
-
|
458 |
-
.postbox#acfe-wp-custom-fields em,
|
459 |
-
.postbox#acfe-acf-custom-fields em{
|
460 |
-
color:#aaa;
|
461 |
-
}
|
462 |
-
|
463 |
-
.acfe_dev_meta_count{
|
464 |
-
background: #72777c;
|
465 |
-
padding: 1px 5px;
|
466 |
-
border-radius: 4px;
|
467 |
-
color: #fff;
|
468 |
-
margin-left: 7px;
|
469 |
-
font-size: 12px;
|
470 |
-
margin-right:auto;
|
471 |
-
}
|
472 |
-
|
473 |
-
/*
|
474 |
-
* Select2: WP 5.2 Fix
|
475 |
-
*/
|
476 |
-
body:not(.acf-admin-5-3) .acf-field .select2-container .select2-selection{
|
477 |
-
border-color: #dfdfdf !important;
|
478 |
-
border-radius:0 !important;
|
479 |
-
}
|
480 |
-
|
481 |
-
body:not(.acf-admin-5-3) .acf-field .select2-container .select2-selection__choice{
|
482 |
-
border-color: #dfdfdf !important;
|
483 |
-
border-radius:0 !important;
|
484 |
-
}
|
485 |
-
|
486 |
-
body:not(.acf-admin-5-3) .acf-field .select2-dropdown{
|
487 |
-
border-color: #dfdfdf !important;
|
488 |
-
border-radius:0 !important;
|
489 |
-
}
|
490 |
-
|
491 |
-
body:not(.acf-admin-5-3) .acf-field .select2-container .select2-search--inline .select2-search__field{
|
492 |
-
margin-top:0px !important;
|
493 |
-
}
|
494 |
-
|
495 |
-
/* Select2: Single */
|
496 |
-
.acf-field .select2-container .select2-selection--single{
|
497 |
-
border-radius:3px !important;
|
498 |
-
height:30px !important;
|
499 |
-
outline:none;
|
500 |
-
}
|
501 |
-
|
502 |
-
.acf-field .select2-container:focus .select2-selection--single,
|
503 |
-
.acf-field .select2-container.select2-container--open .select2-selection--single{
|
504 |
-
border-color: #007cba !important;
|
505 |
-
color: #016087 !important;
|
506 |
-
box-shadow: 0 0 0 1px #007cba !important;
|
507 |
-
}
|
508 |
-
|
509 |
-
.acf-field .select2-container .select2-selection--single .select2-selection__rendered{
|
510 |
-
font-size:14px;
|
511 |
-
height:28px;
|
512 |
-
line-height: 27px !important;
|
513 |
-
padding-right:23px !important;
|
514 |
-
}
|
515 |
-
|
516 |
-
.acf-field .select2-container .select2-selection--single .select2-selection__clear{
|
517 |
-
line-height:26px;
|
518 |
-
height:28px;
|
519 |
-
font-size:16px;
|
520 |
-
}
|
521 |
-
|
522 |
-
.acf-field .select2-container--default .select2-selection--single .select2-selection__arrow{
|
523 |
-
height: 28px !important;
|
524 |
-
}
|
525 |
-
|
526 |
-
.acf-field .select2-container--default .select2-selection--single .select2-selection__arrow b{
|
527 |
-
background: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat;
|
528 |
-
background-size: 16px 16px;
|
529 |
-
border:0 !important;
|
530 |
-
width:16px !important;
|
531 |
-
height:16px !important;
|
532 |
-
margin-left: -11px !important;
|
533 |
-
margin-top: -7px !important;
|
534 |
-
}
|
535 |
-
|
536 |
-
.acf-field .select2-container .select2-search--inline .select2-search__field{
|
537 |
-
margin-top:4px !important;
|
538 |
-
font-size:14px !important;
|
539 |
-
padding-left: 2px !important;
|
540 |
-
}
|
541 |
-
|
542 |
-
/* Select2: Multiple */
|
543 |
-
.acf-field .select2-container .select2-selection--multiple{
|
544 |
-
min-height: 30px !important;
|
545 |
-
line-height:1;
|
546 |
-
border-radius:3px !important;
|
547 |
-
}
|
548 |
-
|
549 |
-
.acf-field .select2-container--default .select2-selection--multiple .select2-selection__rendered{
|
550 |
-
padding:0 2px !important;
|
551 |
-
}
|
552 |
-
|
553 |
-
.acf-field .select2-container--default .select2-selection--multiple .select2-selection__choice{
|
554 |
-
margin-right:2px !important;
|
555 |
-
margin-top:2px !important;
|
556 |
-
line-height:1.6;
|
557 |
-
border-radius:3px !important;
|
558 |
-
font-size:14px;
|
559 |
-
}
|
560 |
-
|
561 |
-
.acf-field .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
|
562 |
-
line-height:15px;
|
563 |
-
font-size:15px;
|
564 |
-
}
|
565 |
-
|
566 |
-
.acf-field .select2-container--default.select2-container--focus .select2-selection--multiple{
|
567 |
-
border-color:#7e8993 !important;
|
568 |
-
}
|
569 |
-
|
570 |
-
.acf-field .select2-container--default .select2-selection--multiple .select2-selection__clear{
|
571 |
-
margin-top: 5px !important;
|
572 |
-
margin-right: 5px !important;
|
573 |
-
font-size: 16px;
|
574 |
-
}
|
575 |
-
|
576 |
-
/*
|
577 |
-
* Select2: WPML Fix
|
578 |
-
*/
|
579 |
-
.acf-field > .acf-input > .select2 .select2-search{
|
580 |
-
width:auto;
|
581 |
-
}
|
582 |
-
|
583 |
-
/*
|
584 |
-
* ACF Field: Tab Badge
|
585 |
-
*/
|
586 |
-
.acf-tab-group li a .acfe-tab-badge{
|
587 |
-
border-radius: 100px;
|
588 |
-
background: #ddd;
|
589 |
-
width: 18px;
|
590 |
-
height: 18px;
|
591 |
-
font-size: 12px;
|
592 |
-
display: inline-block;
|
593 |
-
vertical-align: text-bottom;
|
594 |
-
padding: 0;
|
595 |
-
text-align: center;
|
596 |
-
margin-left: 5px;
|
597 |
-
line-height: 18px;
|
598 |
-
}
|
599 |
-
|
600 |
-
.acf-tab-group li.active a .acfe-tab-badge,
|
601 |
-
.acf-tab-group li a:hover .acfe-tab-badge{
|
602 |
-
background: #f1f1f1;
|
603 |
-
}
|
604 |
-
|
605 |
-
/*
|
606 |
-
* Menu Item: Fix Modal z-index
|
607 |
-
*/
|
608 |
-
.menu-item-settings{
|
609 |
-
position:initial;
|
610 |
-
}
|
611 |
-
|
612 |
-
/*
|
613 |
-
* WP 5.5: Fix postbox order icons size
|
614 |
-
*/
|
615 |
-
@media screen and (min-width: 783px){
|
616 |
-
|
617 |
-
.postbox .handle-order-higher,
|
618 |
-
.postbox .handle-order-lower{
|
619 |
-
visibility: hidden;
|
620 |
-
}
|
621 |
-
|
622 |
-
.postbox:hover .handle-order-higher,
|
623 |
-
.postbox:hover .handle-order-lower{
|
624 |
-
visibility: visible;
|
625 |
-
}
|
626 |
-
|
627 |
-
}
|
628 |
-
|
629 |
-
.postbox .handle-order-higher,
|
630 |
-
.postbox .handle-order-lower{
|
631 |
-
vertical-align: bottom;
|
632 |
-
}
|
633 |
-
|
634 |
-
.postbox .handle-order-higher .order-higher-indicator::before,
|
635 |
-
.postbox .handle-order-lower .order-lower-indicator::before{
|
636 |
-
font-size:15px;
|
637 |
-
top:.18rem;
|
638 |
-
}
|
639 |
-
|
640 |
-
.postbox .handlediv{
|
641 |
-
width: 1.62rem;
|
642 |
-
}
|
643 |
-
|
644 |
-
.postbox .handlediv .toggle-indicator::before{
|
645 |
-
text-indent: -7px;
|
646 |
-
}
|
647 |
-
|
648 |
-
/*
|
649 |
-
* ACF 5.9: Fix missing columns
|
650 |
-
*/
|
651 |
-
.acf-columns-2 {
|
652 |
-
margin-right: 300px;
|
653 |
-
clear: both
|
654 |
-
}
|
655 |
-
|
656 |
-
.acf-columns-2:after {
|
657 |
-
display: block;
|
658 |
-
clear: both;
|
659 |
-
content: ""
|
660 |
-
}
|
661 |
-
|
662 |
-
html[dir="rtl"] .acf-columns-2 {
|
663 |
-
margin-right: 0;
|
664 |
-
margin-left: 300px
|
665 |
-
}
|
666 |
-
|
667 |
-
.acf-columns-2 .acf-column-1 {
|
668 |
-
float: left;
|
669 |
-
width: 100%
|
670 |
-
}
|
671 |
-
|
672 |
-
html[dir="rtl"] .acf-columns-2 .acf-column-1 {
|
673 |
-
float: right
|
674 |
-
}
|
675 |
-
|
676 |
-
.acf-columns-2 .acf-column-2 {
|
677 |
-
float: right;
|
678 |
-
margin-right: -300px;
|
679 |
-
width: 280px
|
680 |
-
}
|
681 |
-
|
682 |
-
html[dir="rtl"] .acf-columns-2 .acf-column-2 {
|
683 |
-
float: left;
|
684 |
-
margin-right: 0;
|
685 |
-
margin-left: -300px
|
686 |
-
}
|
687 |
-
.acf-field-setting-acfe_permissions > .acf-input > .acf-fields,
|
688 |
-
.acf-field-setting-acfe_settings > .acf-input > .acf-fields,
|
689 |
-
.acf-field-setting-acfe_validate > .acf-input > .acf-fields,
|
690 |
-
.acf-field-setting-acfe_update > .acf-input > .acf-fields,
|
691 |
-
.acf-field-setting-acfe_hide > .acf-input > .acf-fields,
|
692 |
-
|
693 |
-
.acf-field-setting-acfe_bidirectional > .acf-input > .acf-fields,
|
694 |
-
.acf-field-setting-acfe_settings > .acf-input > .acf-fields > .acf-field.acf-field-acfe-settings-rules-or,
|
695 |
-
.acf-field-setting-acfe_validate > .acf-input > .acf-fields > .acf-field.acf-field-acfe-validate-rules-or,
|
696 |
-
.acf-field-setting-acfe_update > .acf-input > .acf-fields > .acf-field.acf-field-acfe-update-functions{
|
697 |
-
border:0;
|
698 |
-
}
|
699 |
-
|
700 |
-
.acf-field-setting-acfe_bidirectional > .acf-input > .acf-fields > .acf-field,
|
701 |
-
.acf-field-setting-acfe_permissions > .acf-input > .acf-fields > .acf-field,
|
702 |
-
.acf-field-setting-acfe_settings > .acf-input > .acf-fields > .acf-field,
|
703 |
-
.acf-field-setting-acfe_validate > .acf-input > .acf-fields > .acf-field,
|
704 |
-
.acf-field-setting-acfe_update > .acf-input > .acf-fields > .acf-field,
|
705 |
-
.acf-field-setting-acfe_hide > .acf-input > .acf-fields > .acf-field{
|
706 |
-
padding:0;
|
707 |
-
}
|
708 |
-
|
709 |
-
.acf-field-setting-acfe_field_data{
|
710 |
-
display:none;
|
711 |
-
}
|
712 |
-
|
713 |
-
.acf-field-hide-front.acfe_width_auto{
|
714 |
-
margin-right:30px;
|
715 |
-
}
|
716 |
-
|
717 |
-
.acf-field-setting-acfe_bidirectional > .acf-input > .acf-fields > .acf-field.acf-field-acfe-bidirectional-enabled > .acf-label,
|
718 |
-
.acf-field-setting-acfe_bidirectional > .acf-input > .acf-fields > .acf-field.acf-field-acfe-bidirectional-related > .acf-label,
|
719 |
-
.acf-field-setting-acfe_settings > .acf-input > .acf-fields > .acf-field.acf-field-acfe-settings-activate > .acf-label,
|
720 |
-
.acf-field-setting-acfe_validate > .acf-input > .acf-fields > .acf-field.acf-field-acfe-validate-activate > .acf-label,
|
721 |
-
.acf-field-setting-acfe_update > .acf-input > .acf-fields > .acf-field.acf-field-acfe-update-activate > .acf-label{
|
722 |
-
display:none;
|
723 |
-
}
|
724 |
-
|
725 |
-
.acf-field-setting-acfe_update > .acf-input .acf-repeater.-empty.-table > table,
|
726 |
-
.acf-field-setting-acfe_settings > .acf-input .acf-repeater.-empty.-table > table,
|
727 |
-
.acf-field-setting-acfe_validate > .acf-input .acf-repeater.-empty.-table > table,
|
728 |
-
.acf-field-acfe-meta > .acf-input .acf-repeater.-empty.-table > table{
|
729 |
-
border:0;
|
730 |
-
display:none;
|
731 |
-
}
|
732 |
-
|
733 |
-
.acf-field-setting-acfe_update > .acf-input .acf-repeater.-empty.-table > table > thead,
|
734 |
-
.acf-field-setting-acfe_settings > .acf-input .acf-repeater.-empty.-table > table > thead,
|
735 |
-
.acf-field-setting-acfe_validate > .acf-input .acf-repeater.-empty.-table > table > thead,
|
736 |
-
.acf-field-acfe-meta > .acf-input .acf-repeater.-empty.-table > table > thead{
|
737 |
-
display:none;
|
738 |
-
}
|
739 |
-
|
740 |
-
.acf-field-setting-acfe_update > .acf-input > .acf-repeater .acf-actions,
|
741 |
-
.acf-field-setting-acfe_settings > .acf-input > .acf-repeater .acf-actions,
|
742 |
-
.acf-field-setting-acfe_validate > .acf-input > .acf-repeater .acf-actions,
|
743 |
-
.acf-field-acfe-meta > .acf-input > .acf-repeater .acf-actions{
|
744 |
-
text-align:left;
|
745 |
-
}
|
746 |
-
|
747 |
-
.acf-repeater.-row > table,
|
748 |
-
.acf-repeater.-block > table{
|
749 |
-
border-collapse: separate;
|
750 |
-
border-spacing: 0 15px;
|
751 |
-
background: none;
|
752 |
-
border: 0;
|
753 |
-
margin-top: -15px;
|
754 |
-
margin-bottom: -7px;
|
755 |
-
}
|
756 |
-
|
757 |
-
.acf-repeater.-row > table > *,
|
758 |
-
.acf-repeater.-block > table > *{
|
759 |
-
border-collapse: collapse;
|
760 |
-
border-spacing: 0;
|
761 |
-
}
|
762 |
-
|
763 |
-
.acf-repeater.-row > table > tbody > tr > td,
|
764 |
-
.acf-repeater.-block > table > tbody > tr > td{
|
765 |
-
border-top: 1px solid #ccd0d4 !important;
|
766 |
-
border-bottom: 1px solid #ccd0d4 !important;
|
767 |
-
}
|
768 |
-
|
769 |
-
.acf-repeater.-row > table > tbody > tr > td:first-of-type,
|
770 |
-
.acf-repeater.-block > table > tbody > tr > td:first-of-type{
|
771 |
-
border-left: 1px solid #ccd0d4 !important;
|
772 |
-
}
|
773 |
-
|
774 |
-
.acf-repeater.-row > table > tbody > tr > td:last-of-type,
|
775 |
-
.acf-repeater.-block > table > tbody > tr > td:last-of-type{
|
776 |
-
border-right: 1px solid #ccd0d4 !important;
|
777 |
-
}
|
778 |
-
|
779 |
-
body:not(.acf-admin-5-3) .acf-repeater.-row > table > tbody > tr > td,
|
780 |
-
body:not(.acf-admin-5-3) .acf-repeater.-block > table > tbody > tr > td{
|
781 |
-
border-top: 1px solid #E1E1E1;
|
782 |
-
border-bottom: 1px solid #E1E1E1;
|
783 |
-
}
|
784 |
-
|
785 |
-
body:not(.acf-admin-5-3) .acf-repeater.-row > table > tbody > tr > td:first-of-type,
|
786 |
-
body:not(.acf-admin-5-3) .acf-repeater.-block > table > tbody > tr > td:first-of-type{
|
787 |
-
border-left: 1px solid #E1E1E1;
|
788 |
-
}
|
789 |
-
|
790 |
-
body:not(.acf-admin-5-3) .acf-repeater.-row > table > tbody > tr > td:last-of-type,
|
791 |
-
body:not(.acf-admin-5-3) .acf-repeater.-block > table > tbody > tr > td:last-of-type{
|
792 |
-
border-right: 1px solid #E1E1E1;
|
793 |
-
}
|
794 |
-
|
795 |
-
.acf-field-setting-acfe_bidirectional > .acf-input > .acf-fields > .acf-field.acf-field-acfe-bidirectional-related{
|
796 |
-
margin-left:10px;
|
797 |
-
}
|
798 |
-
|
799 |
-
.acfe_width_auto{
|
800 |
-
width:auto !important;
|
801 |
-
}
|
802 |
-
|
803 |
-
.status-acf-disabled .column-title a,
|
804 |
-
.status-acf-disabled .column-title code {
|
805 |
-
color: #555 !important;
|
806 |
-
}
|
807 |
-
|
808 |
-
.status-acf-disabled .column-title strong{
|
809 |
-
color: #a0a5aa;
|
810 |
-
}
|
811 |
-
|
812 |
-
.column-acf-field-group-category{
|
813 |
-
width:125px;
|
814 |
-
}
|
815 |
-
|
816 |
-
td.acf-field-group-category a{
|
817 |
-
word-wrap: break-word;
|
818 |
-
padding: 2px 5px;
|
819 |
-
margin: 0 1px;
|
820 |
-
border-radius:2px;
|
821 |
-
background: rgba(0,0,0,.06);
|
822 |
-
color:#23282d;
|
823 |
-
}
|
824 |
-
|
825 |
-
.column-acfe-location{
|
826 |
-
width:100px;
|
827 |
-
}
|
828 |
-
|
829 |
-
.column-acf-location,
|
830 |
-
.column-acf-description{
|
831 |
-
width:230px;
|
832 |
-
}
|
833 |
-
|
834 |
-
#acf-field-group-wrap .wp-list-table .column-acf-fg-status{
|
835 |
-
width:70px;
|
836 |
-
}
|
837 |
-
|
838 |
-
#acf-field-group-wrap .wp-list-table .column-acf-fg-count,
|
839 |
-
.post-type-acf-field-group .wp-list-table .column-acf-count{
|
840 |
-
width:80px;
|
841 |
-
}
|
842 |
-
|
843 |
-
.post-type-acf-field-group .wp-list-table .column-title .post-state{
|
844 |
-
color:#a0a5aa;
|
845 |
-
}
|
846 |
-
|
847 |
-
.column-title .acfe-key{
|
848 |
-
color:#555;
|
849 |
-
font-size:12px;
|
850 |
-
}
|
851 |
-
|
852 |
-
.column-acfe-load{
|
853 |
-
width:70px;
|
854 |
-
}
|
855 |
-
|
856 |
-
.column-acfe-source{
|
857 |
-
width:150px;
|
858 |
-
}
|
859 |
-
|
860 |
-
.column-acfe-autosync-php,
|
861 |
-
.column-acfe-autosync-json{
|
862 |
-
width:90px;
|
863 |
-
text-align:center !important;
|
864 |
-
}
|
865 |
-
|
866 |
-
.column-acfe-autosync-php .secondary,
|
867 |
-
.column-acfe-autosync-json .secondary{
|
868 |
-
color:#ccc;
|
869 |
-
}
|
870 |
-
|
871 |
-
.column-acfe-autosync-php .dashicons-warning,
|
872 |
-
.column-acfe-autosync-json .dashicons-warning{
|
873 |
-
font-size:15px;
|
874 |
-
vertical-align:middle;
|
875 |
-
}
|
876 |
-
|
877 |
-
.acf-field[data-name="acfe_autosync"] .dashicons-warning{
|
878 |
-
color:#ccc;
|
879 |
-
font-size:15px;
|
880 |
-
height: 15px;
|
881 |
-
vertical-align: text-bottom;
|
882 |
-
}
|
883 |
-
|
884 |
-
.column-acfe-autosync-php .dashicons-update,
|
885 |
-
.column-acfe-autosync-json .dashicons-update{
|
886 |
-
font-size:18px;
|
887 |
-
}
|
888 |
-
|
889 |
-
.column-acfe-autosync-php .dashicons + .dashicons-warning,
|
890 |
-
.column-acfe-autosync-json .dashicons + .dashicons-warning{
|
891 |
-
margin-left:-3px;
|
892 |
-
}
|
893 |
-
|
894 |
-
.acf-field-image[data-name="acfe_flexible_thumbnail"] > .acf-input > .acf-image-uploader.has-value > .show-if-value.image-wrap{
|
895 |
-
max-width:85px !important;
|
896 |
-
}
|
897 |
-
|
898 |
-
/*
|
899 |
-
* Fix Sync Review Modal column size
|
900 |
-
*/
|
901 |
-
.acf-diff-content table.diff tbody tr td:nth-child(2){
|
902 |
-
width: auto;
|
903 |
-
}
|
904 |
-
|
905 |
-
/*
|
906 |
-
* ACFE: Flexible Content
|
907 |
-
*
|
908 |
-
*/
|
909 |
-
|
910 |
-
/* Fix ACF not setting proper border color on Flexible Row Style*/
|
911 |
-
body.acf-admin-5-3 .acf-field-setting-fc_layout .acf-input-wrap.select{
|
912 |
-
border-color: #7e8993;
|
913 |
-
}
|
914 |
-
|
915 |
-
body.acf-admin-5-3 .acf-field-setting-fc_layout .acf-input-wrap.select select{
|
916 |
-
min-height: 28px;
|
917 |
-
}
|
918 |
-
|
919 |
-
.acf-field-acfe-flexible-modal > .acf-input > .acf-fields{
|
920 |
-
border:0;
|
921 |
-
}
|
922 |
-
|
923 |
-
.acf-field-acfe-flexible-modal > .acf-input > .acf-fields .acf-field-acfe-flexible-modal-enabled{
|
924 |
-
padding:0;
|
925 |
-
}
|
926 |
-
|
927 |
-
.acf-field-acfe-flexible-modal > .acf-input > .acf-fields .acf-field-acfe-flexible-modal-enabled .acf-label{
|
928 |
-
display:none;
|
929 |
-
}
|
930 |
-
|
931 |
-
.acf-field-acfe-flexible-modal > .acf-input > .acf-fields .acf-field-acfe-flexible-modal-enabled{
|
932 |
-
margin-right:10px;
|
933 |
-
}
|
934 |
-
|
935 |
-
.acf-field-acfe-flexible-modal > .acf-input > .acf-fields .acf-field-acfe-flexible-modal-title,
|
936 |
-
.acf-field-acfe-flexible-modal > .acf-input > .acf-fields .acf-field-acfe-flexible-modal-col,
|
937 |
-
.acf-field-acfe-flexible-modal > .acf-input > .acf-fields .acf-field-acfe-flexible-modal-categories{
|
938 |
-
padding-top:0;
|
939 |
-
padding-bottom:0;
|
940 |
-
padding-left:0;
|
941 |
-
border-top:0;
|
942 |
-
border-left:0 !important;
|
943 |
-
min-height:55px;
|
944 |
-
}
|
945 |
-
|
946 |
-
.acf-field-setting-fc_layout > .acf-input > .acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label],
|
947 |
-
.acf-field-setting-fc_layout > .acf-input > .acf-fc-meta .acf-field[data-name=acfe_flexible_thumbnail],
|
948 |
-
.acf-field-setting-fc_layout > .acf-input > .acf-fc-meta .acf-field[data-name=acfe_flexible_category],
|
949 |
-
.acf-field-setting-fc_layout > .acf-input > .acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label],
|
950 |
-
.acf-field-setting-fc_layout > .acf-input > .acf-fc-meta .acf-field[data-name=acfe_flexible_settings],
|
951 |
-
.acf-field-setting-fc_layout > .acf-input > .acf-fc-meta .acf-field[data-name=acfe_flexible_settings_size]{
|
952 |
-
margin:0;
|
953 |
-
}
|
954 |
-
|
955 |
-
.acf-field-setting-fc_layout > .acf-input > .acf-fc-meta .acf-field[data-name=acfe_flexible_settings],
|
956 |
-
.acf-field-setting-fc_layout > .acf-input > .acf-fc-meta .acf-field[data-name=acfe_flexible_settings_size]{
|
957 |
-
margin-right: 10px;
|
958 |
-
}
|
959 |
-
|
960 |
-
.acf-field-setting-fc_layout > .acf-input > .acf-fc-meta .acf-field[data-name=acfe_flexible_settings_size]{
|
961 |
-
border-left:0;
|
962 |
-
}
|
963 |
-
|
964 |
-
.acf-field-setting-fc_layout > .acf-input > .acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label] > .acf-input{
|
965 |
-
margin:0;
|
966 |
-
}
|
967 |
-
|
968 |
-
.acf-field-setting-fc_layout > .acf-input > .acf-fc-meta > .acf-fc-meta-label:first-of-type{
|
969 |
-
margin:0;
|
970 |
-
}
|
971 |
-
|
972 |
-
.acf-field-setting-fc_layout .select2-container--default .select2-selection--multiple li{
|
973 |
-
margin-bottom:0;
|
974 |
-
}
|
975 |
-
|
976 |
-
/*
|
977 |
-
* ACFE Column
|
978 |
-
*/
|
979 |
-
.acf-field-object-acfe-column .acf-field-setting-label,
|
980 |
-
.acf-field-object-acfe-column .acf-field-setting-name,
|
981 |
-
.acf-field-object-acfe-column .acf-field-setting-instructions,
|
982 |
-
.acf-field-object-acfe-column .acf-field-setting-required,
|
983 |
-
.acf-field-object-acfe-column .acf-field-setting-warning,
|
984 |
-
.acf-field-object-acfe-column .acf-field-setting-wrapper{
|
985 |
-
display: none;
|
986 |
-
}
|
987 |
-
|
988 |
-
.acf-field-object + .acf-field-object-acfe-column:before {
|
989 |
-
display: block;
|
990 |
-
content: "";
|
991 |
-
height: 5px;
|
992 |
-
width: 100%;
|
993 |
-
background: #f9f9f9;
|
994 |
-
border-bottom: #f0f0f0 solid 1px;
|
995 |
-
}
|
996 |
-
|
997 |
-
.acf-field-object-acfe-column .li-field-name{
|
998 |
-
visibility: hidden;
|
999 |
-
}
|
1000 |
-
|
1001 |
-
/*
|
1002 |
-
* ACFE Taxonomy Terms
|
1003 |
-
*/
|
1004 |
-
.acf-field-setting-allow_terms > .acf-input > ul > li:first-of-type{
|
1005 |
-
width: calc(100% - 125px);
|
1006 |
-
}
|
1007 |
-
|
1008 |
-
.acf-field-setting-allow_terms > .acf-input > ul > li:last-of-type{
|
1009 |
-
width: 125px;
|
1010 |
-
}
|
1011 |
-
|
1012 |
-
/*
|
1013 |
-
* ACFE: Field Group Conditional Logic
|
1014 |
-
*/
|
1015 |
-
#acf-field-group-locations .rule-groups > .rule-group > table > tbody > tr > td.value > .acf-field{
|
1016 |
-
margin: 0;
|
1017 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,182 +0,0 @@
|
|
1 |
-
(function($){
|
2 |
-
|
3 |
-
if(typeof acf === 'undefined')
|
4 |
-
return;
|
5 |
-
|
6 |
-
/*
|
7 |
-
* Field Attribute: data-after="field_name"
|
8 |
-
*/
|
9 |
-
var fieldAfterManager = new acf.Model({
|
10 |
-
|
11 |
-
actions: {
|
12 |
-
'new_field' : 'onNewField'
|
13 |
-
},
|
14 |
-
|
15 |
-
onNewField: function(field){
|
16 |
-
|
17 |
-
// bail early if not after
|
18 |
-
if(!field.has('after'))
|
19 |
-
return;
|
20 |
-
|
21 |
-
// vars
|
22 |
-
var after = field.get('after');
|
23 |
-
var $sibling = field.$el.siblings('[data-name="' + after + '"]').first();
|
24 |
-
|
25 |
-
// bail early if no sibling
|
26 |
-
if(!$sibling.length)
|
27 |
-
return;
|
28 |
-
|
29 |
-
$sibling.after(field.$el);
|
30 |
-
|
31 |
-
}
|
32 |
-
});
|
33 |
-
|
34 |
-
/*
|
35 |
-
* Field Group Conditional Logic: Init fields
|
36 |
-
*/
|
37 |
-
var conditionalLogicFields = new acf.Model({
|
38 |
-
|
39 |
-
wait: 'ready',
|
40 |
-
|
41 |
-
actions:{
|
42 |
-
'append': 'onAppend',
|
43 |
-
'acfe/field_group/rule_refresh': 'refreshFields'
|
44 |
-
},
|
45 |
-
|
46 |
-
initialize: function(){
|
47 |
-
this.$el = $('#acf-field-group-locations');
|
48 |
-
},
|
49 |
-
|
50 |
-
onAppend: function($el){
|
51 |
-
|
52 |
-
if(!$el.is('.rule-group') && !$el.parent().parent().parent().is('.rule-group'))
|
53 |
-
return;
|
54 |
-
|
55 |
-
this.refreshFields();
|
56 |
-
|
57 |
-
},
|
58 |
-
|
59 |
-
refreshFields: function(){
|
60 |
-
|
61 |
-
var fields = acf.getFields({
|
62 |
-
parent: this.$('td.value')
|
63 |
-
});
|
64 |
-
|
65 |
-
$.each(fields, function(){
|
66 |
-
|
67 |
-
var field = this;
|
68 |
-
|
69 |
-
if(field.get('type') === 'date_picker' || field.get('type') === 'date_time_picker' || field.get('type') === 'time_picker'){
|
70 |
-
|
71 |
-
field.$inputText().removeClass('hasDatepicker').removeAttr('id');
|
72 |
-
|
73 |
-
field.initialize();
|
74 |
-
|
75 |
-
}
|
76 |
-
|
77 |
-
});
|
78 |
-
|
79 |
-
}
|
80 |
-
|
81 |
-
});
|
82 |
-
|
83 |
-
/*
|
84 |
-
* ACF Extended: 0.8.4.5
|
85 |
-
* Field Flexible Content: Fix duplicated "layout_settings" & "layout_title"
|
86 |
-
*/
|
87 |
-
acf.addAction('ready_field_object', function(field){
|
88 |
-
|
89 |
-
// field_acfe_layout_abc123456_settings + field_acfe_layout_abc123456_title
|
90 |
-
if(!field.get('key').startsWith('field_acfe_layout_'))
|
91 |
-
return;
|
92 |
-
|
93 |
-
field.delete();
|
94 |
-
|
95 |
-
});
|
96 |
-
|
97 |
-
/*
|
98 |
-
* Field Columns
|
99 |
-
*/
|
100 |
-
var acfe_column_title = function($el){
|
101 |
-
|
102 |
-
var field = acf.getInstance($el);
|
103 |
-
|
104 |
-
var $columns = field.$setting('columns');
|
105 |
-
var columns = acf.getInstance($columns).getValue();
|
106 |
-
|
107 |
-
var $endpoint = field.$setting('endpoint');
|
108 |
-
var endpoint = acf.getInstance($endpoint).getValue();
|
109 |
-
|
110 |
-
if(endpoint){
|
111 |
-
|
112 |
-
field.set('label', '(Column endpoint)');
|
113 |
-
|
114 |
-
}else{
|
115 |
-
|
116 |
-
field.set('label', '(Column ' + columns + ')');
|
117 |
-
|
118 |
-
}
|
119 |
-
|
120 |
-
};
|
121 |
-
|
122 |
-
acf.addAction('change_field_label/type=acfe_column', acfe_column_title);
|
123 |
-
acf.addAction('change_field_type/type=acfe_column', acfe_column_title);
|
124 |
-
|
125 |
-
acf.addAction('render_field_settings/type=acfe_column', function($el){
|
126 |
-
|
127 |
-
var field = acf.getFieldObject($el);
|
128 |
-
|
129 |
-
var setLabel = function(){
|
130 |
-
field.set('label', true);
|
131 |
-
}
|
132 |
-
|
133 |
-
field.on('change', '.acfe-field-columns', setLabel);
|
134 |
-
field.on('change', '.acfe-field-columns-endpoint', setLabel);
|
135 |
-
|
136 |
-
});
|
137 |
-
|
138 |
-
/*
|
139 |
-
* Field: WYSIWYG
|
140 |
-
*/
|
141 |
-
var acfe_repeater_remove_primary_class = function(field){
|
142 |
-
|
143 |
-
field.$('.acf-button').removeClass('button-primary');
|
144 |
-
|
145 |
-
};
|
146 |
-
|
147 |
-
acf.addAction('new_field/name=acfe_meta', acfe_repeater_remove_primary_class);
|
148 |
-
acf.addAction('new_field/name=acfe_settings', acfe_repeater_remove_primary_class);
|
149 |
-
acf.addAction('new_field/name=acfe_validate', acfe_repeater_remove_primary_class);
|
150 |
-
|
151 |
-
$(function(){
|
152 |
-
|
153 |
-
/*
|
154 |
-
* Field Setting: Data
|
155 |
-
*/
|
156 |
-
$('.button.edit-field').each(function(k, v){
|
157 |
-
|
158 |
-
var tbody = $(this).closest('tbody');
|
159 |
-
$(tbody).find('.acfe_modal_open:first').insertAfter($(this));
|
160 |
-
$(tbody).find('.acfe-modal:first').appendTo($('body'));
|
161 |
-
$(tbody).find('tr.acf-field-setting-acfe_field_data:first').remove();
|
162 |
-
|
163 |
-
});
|
164 |
-
|
165 |
-
$('.acfe_modal_open').click(function(e){
|
166 |
-
|
167 |
-
e.preventDefault();
|
168 |
-
|
169 |
-
var key = $(this).attr('data-modal-key');
|
170 |
-
|
171 |
-
var $modal = $('.acfe-modal[data-modal-key=' + key + ']');
|
172 |
-
|
173 |
-
acfe.modal.open($modal, {
|
174 |
-
title: 'Data',
|
175 |
-
size: 'medium'
|
176 |
-
});
|
177 |
-
|
178 |
-
});
|
179 |
-
|
180 |
-
});
|
181 |
-
|
182 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1 +0,0 @@
|
|
1 |
-
code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:1em}pre{display:block;padding:9.5px;margin:0;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f9f9f9;border:1px solid #ccc;border-radius:1px;white-space:pre-wrap;overflow:auto}code{-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all}pre>code{-webkit-user-select:inherit;-moz-user-select:inherit;-ms-user-select:inherit;user-select:inherit;padding:0;margin:0;background:0 0;font-size:1em;display:block}.code-codemirror>.CodeMirror,.pre-codemirror>.CodeMirror{border:1px solid #ccc;height:auto;width:auto;background:#f9f9f9;padding:9px 6px}.code-codemirror{display:inline;vertical-align:middle}.code-codemirror>.CodeMirror{display:inline-block;padding:0}.code-codemirror>.CodeMirror .CodeMirror-selected,.pre-codemirror>.CodeMirror .CodeMirror-selected{background:#ddd!important}.code-codemirror>.CodeMirror .CodeMirror-lines,.pre-codemirror>.CodeMirror .CodeMirror-lines{padding:0}.acf-postbox.seamless>.inside>.acf-field{padding:15px 12px}.acf-flexible-content .layout.ui-sortable-helper:first-child+.layout.ui-sortable-placeholder{margin-top:0}.acfe-postbox.acfe-postbox-no-handle h2.hndle{cursor:initial}.acfe-postbox.acfe-postbox-no-handle .handlediv{display:none}.acfe-postbox-top>.inside{position:relative}.acfe-postbox-top>.inside.-border{border:#ccd0d4 solid 1px;background:#fff}.acfe-postbox-top>.inside>.acf-field{position:relative;margin:0;padding:15px 12px;border-top:#eee solid 1px}.acfe-postbox-top>.inside>.acf-field:first-child{border-top:none;margin-top:0}.acfe-postbox-left>.inside{position:relative}.acfe-postbox-left>.inside:after{display:block;clear:both;content:""}.acfe-postbox-left>.inside.-border{border:#ccd0d4 solid 1px;background:#fff}.acfe-postbox-left>.inside>.acf-field{position:relative;margin:0;padding:15px 12px;border-top:#eee solid 1px}.acfe-postbox-left>.inside>.acf-field:first-child{border-top:none;margin-top:0}.acfe-postbox-left>.inside.-clear>.acf-field{border:none;padding:0;margin:15px 0}.acfe-postbox-left>.inside>.acf-field{padding:15px 0}.acfe-postbox-left>.inside>.acf-field:after{display:block;clear:both;content:""}.acfe-postbox-left>.inside>.acf-field:before{content:"";display:block;position:absolute;z-index:0;background:#f9f9f9;border-color:#e1e1e1;border-style:solid;border-width:0 1px 0 0;top:0;bottom:0;left:0;width:20%}.acfe-postbox-left>.inside>.acf-field[data-width]{float:none;width:auto!important;border-left-width:0!important;border-right-width:0!important}.acfe-postbox-left>.inside>.acf-field>.acf-label{float:left;width:20%;margin:0;padding:0 12px}.acfe-postbox-left>.inside>.acf-field>.acf-input{float:left;width:80%;margin:0;padding:0 12px}html[dir=rtl] .acfe-postbox-left>.inside>.acf-field:before{border-width:0 0 0 1px;left:auto;right:0}html[dir=rtl] .acfe-postbox-left>.inside>.acf-field>.acf-label{float:right}html[dir=rtl] .acfe-postbox-left>.inside>.acf-field>.acf-input{float:right}#side-sortables .acfe-postbox-left>.inside>.acf-field:before{display:none}#side-sortables .acfe-postbox-left>.inside>.acf-field>.acf-label{width:100%;margin-bottom:10px}#side-sortables .acfe-postbox-left>.inside>.acf-field>.acf-input{width:100%}@media screen and (max-width:640px){.acfe-postbox-left>.inside>.acf-field:before{display:none}.acfe-postbox-left>.inside>.acf-field>.acf-label{width:100%;margin-bottom:10px}.acfe-postbox-left>.inside>.acf-field>.acf-input{width:100%}}.wrap .acfe-dop-admin-config,.wrap .acfe-dop-admin-config:active,.wrap .acfe-dpt-admin-config,.wrap .acfe-dpt-admin-config:active,.wrap .acfe-dt-admin-config,.wrap .acfe-dt-admin-config:active{padding-left:4px;padding-right:4px}.wrap .acfe-dop-admin-config span,.wrap .acfe-dpt-admin-config span,.wrap .acfe-dt-admin-config span{font-size:16px;vertical-align:text-top;height:15px;width:19px;line-height:19px}.wrap .acfe-dop-admin-config{display:inline-block}body.post-type-acfe-dpt .misc-pub-post-status,body.post-type-acfe-dpt .misc-pub-visibility,body.post-type-acfe-dpt.post-new-php #minor-publishing-actions,body.post-type-acfe-dpt.post-new-php #misc-publishing-actions{display:none}body.post-type-acfe-dpt.post-new-php #major-publishing-actions{border-top:0}body.post-type-acfe-dt .misc-pub-post-status,body.post-type-acfe-dt .misc-pub-visibility,body.post-type-acfe-dt.post-new-php #minor-publishing-actions,body.post-type-acfe-dt.post-new-php #misc-publishing-actions{display:none}body.post-type-acfe-dt.post-new-php #major-publishing-actions{border-top:0}body.post-type-acfe-dop .misc-pub-post-status,body.post-type-acfe-dop .misc-pub-visibility,body.post-type-acfe-dop.post-new-php #minor-publishing-actions,body.post-type-acfe-dop.post-new-php #misc-publishing-actions{display:none}body.post-type-acfe-dop.post-new-php #major-publishing-actions{border-top:0}body.post-type-acfe-dbt .misc-pub-post-status,body.post-type-acfe-dbt .misc-pub-visibility,body.post-type-acfe-dbt.post-new-php #minor-publishing-actions,body.post-type-acfe-dbt.post-new-php #misc-publishing-actions{display:none}body.post-type-acfe-dbt.post-new-php #major-publishing-actions{border-top:0}body.post-type-acfe-form .misc-pub-post-status,body.post-type-acfe-form .misc-pub-visibility,body.post-type-acfe-form.post-new-php #minor-publishing-actions,body.post-type-acfe-form.post-new-php #misc-publishing-actions{display:none}body.post-type-acfe-form.post-new-php #major-publishing-actions{border-top:0}.acf-field.acf-field-acfe-author>.acf-label{display:none}.edit-post-layout__metaboxes:not(:empty){background:#f3f4f5;padding:10px 10px 0 10px!important}.edit-post-layout__metaboxes .edit-post-meta-boxes-area .postbox{margin-bottom:10px;border:1px solid #e1e1e1}.edit-post-layout__metaboxes .edit-post-meta-boxes-area .postbox>.inside{border-bottom:0}#acf-admin-tool-acfe_tool_dbt_export ul,#acf-admin-tool-acfe_tool_dpt_export ul,#acf-admin-tool-acfe_tool_dt_export ul,#acf-admin-tool-acfe_tool_form_export ul{-moz-column-width:200px;column-width:200px}.acf-meta-box-wrap.-grid #acf-admin-tool-acfe-fg-local{display:none}.settings_page_acfe-options .column-option_id{width:65px}.settings_page_acfe-options .column-option_name{width:435px}.settings_page_acfe-options .column-autoload{width:100px;text-align:center}.acf-field[data-name=acfe_form_post_save_post_content_custom],.acf-field[data-name=acfe_form_post_save_post_name_custom],.acf-field[data-name=acfe_form_post_save_post_title_custom],.acf-field[data-name=acfe_form_term_save_description_custom],.acf-field[data-name=acfe_form_term_save_name_custom],.acf-field[data-name=acfe_form_term_save_slug_custom],.acf-field[data-name=acfe_form_user_save_description_custom],.acf-field[data-name=acfe_form_user_save_display_name_custom],.acf-field[data-name=acfe_form_user_save_email_custom],.acf-field[data-name=acfe_form_user_save_first_name_custom],.acf-field[data-name=acfe_form_user_save_last_name_custom],.acf-field[data-name=acfe_form_user_save_nickname_custom],.acf-field[data-name=acfe_form_user_save_password_custom],.acf-field[data-name=acfe_form_user_save_username_custom],.acf-field[data-name=acfe_form_user_save_website_custom]{border-top:0;padding-top:0}.acf-field.acf-field-acfe-form-attributes>.acf-input>.acf-fields>.acf-field{border-left-width:0}.acf-field.acf-field-acfe-form-fields-attributes>.acf-input>.acf-fields>.acf-field{border-left-width:0}.acf-field-repeater.acf-field-acfe-form-email-files-static>.acf-input>.acf-repeater>.acf-actions,.acf-field-repeater.acf-field-acfe-form-email-files>.acf-input>.acf-repeater>.acf-actions{text-align:left}.postbox#acfe-acf-custom-fields>.inside,.postbox#acfe-wp-custom-fields>.inside{padding:0;margin:0}.postbox#acfe-acf-custom-fields+.tablenav,.postbox#acfe-wp-custom-fields+.tablenav{padding-top:0;margin-top:-8px}.postbox#acfe-acf-custom-fields em,.postbox#acfe-wp-custom-fields em{color:#aaa}.acfe_dev_meta_count{background:#72777c;padding:1px 5px;border-radius:4px;color:#fff;margin-left:7px;font-size:12px;margin-right:auto}body:not(.acf-admin-5-3) .acf-field .select2-container .select2-selection{border-color:#dfdfdf!important;border-radius:0!important}body:not(.acf-admin-5-3) .acf-field .select2-container .select2-selection__choice{border-color:#dfdfdf!important;border-radius:0!important}body:not(.acf-admin-5-3) .acf-field .select2-dropdown{border-color:#dfdfdf!important;border-radius:0!important}body:not(.acf-admin-5-3) .acf-field .select2-container .select2-search--inline .select2-search__field{margin-top:0!important}.acf-field .select2-container .select2-selection--single{border-radius:3px!important;height:30px!important;outline:0}.acf-field .select2-container.select2-container--open .select2-selection--single,.acf-field .select2-container:focus .select2-selection--single{border-color:#007cba!important;color:#016087!important;box-shadow:0 0 0 1px #007cba!important}.acf-field .select2-container .select2-selection--single .select2-selection__rendered{font-size:14px;height:28px;line-height:27px!important;padding-right:23px!important}.acf-field .select2-container .select2-selection--single .select2-selection__clear{line-height:26px;height:28px;font-size:16px}.acf-field .select2-container--default .select2-selection--single .select2-selection__arrow{height:28px!important}.acf-field .select2-container--default .select2-selection--single .select2-selection__arrow b{background:url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat;background-size:16px 16px;border:0!important;width:16px!important;height:16px!important;margin-left:-11px!important;margin-top:-7px!important}.acf-field .select2-container .select2-search--inline .select2-search__field{margin-top:4px!important;font-size:14px!important;padding-left:2px!important}.acf-field .select2-container .select2-selection--multiple{min-height:30px!important;line-height:1;border-radius:3px!important}.acf-field .select2-container--default .select2-selection--multiple .select2-selection__rendered{padding:0 2px!important}.acf-field .select2-container--default .select2-selection--multiple .select2-selection__choice{margin-right:2px!important;margin-top:2px!important;line-height:1.6;border-radius:3px!important;font-size:14px}.acf-field .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{line-height:15px;font-size:15px}.acf-field .select2-container--default.select2-container--focus .select2-selection--multiple{border-color:#7e8993!important}.acf-field .select2-container--default .select2-selection--multiple .select2-selection__clear{margin-top:5px!important;margin-right:5px!important;font-size:16px}.acf-field>.acf-input>.select2 .select2-search{width:auto}.acf-tab-group li a .acfe-tab-badge{border-radius:100px;background:#ddd;width:18px;height:18px;font-size:12px;display:inline-block;vertical-align:text-bottom;padding:0;text-align:center;margin-left:5px;line-height:18px}.acf-tab-group li a:hover .acfe-tab-badge,.acf-tab-group li.active a .acfe-tab-badge{background:#f1f1f1}.menu-item-settings{position:initial}@media screen and (min-width:783px){.postbox .handle-order-higher,.postbox .handle-order-lower{visibility:hidden}.postbox:hover .handle-order-higher,.postbox:hover .handle-order-lower{visibility:visible}}.postbox .handle-order-higher,.postbox .handle-order-lower{vertical-align:bottom}.postbox .handle-order-higher .order-higher-indicator::before,.postbox .handle-order-lower .order-lower-indicator::before{font-size:15px;top:.18rem}.postbox .handlediv{width:1.62rem}.postbox .handlediv .toggle-indicator::before{text-indent:-7px}.acf-columns-2{margin-right:300px;clear:both}.acf-columns-2:after{display:block;clear:both;content:""}html[dir=rtl] .acf-columns-2{margin-right:0;margin-left:300px}.acf-columns-2 .acf-column-1{float:left;width:100%}html[dir=rtl] .acf-columns-2 .acf-column-1{float:right}.acf-columns-2 .acf-column-2{float:right;margin-right:-300px;width:280px}html[dir=rtl] .acf-columns-2 .acf-column-2{float:left;margin-right:0;margin-left:-300px}.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields,.acf-field-setting-acfe_hide>.acf-input>.acf-fields,.acf-field-setting-acfe_permissions>.acf-input>.acf-fields,.acf-field-setting-acfe_settings>.acf-input>.acf-fields,.acf-field-setting-acfe_settings>.acf-input>.acf-fields>.acf-field.acf-field-acfe-settings-rules-or,.acf-field-setting-acfe_update>.acf-input>.acf-fields,.acf-field-setting-acfe_update>.acf-input>.acf-fields>.acf-field.acf-field-acfe-update-functions,.acf-field-setting-acfe_validate>.acf-input>.acf-fields,.acf-field-setting-acfe_validate>.acf-input>.acf-fields>.acf-field.acf-field-acfe-validate-rules-or{border:0}.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field,.acf-field-setting-acfe_hide>.acf-input>.acf-fields>.acf-field,.acf-field-setting-acfe_permissions>.acf-input>.acf-fields>.acf-field,.acf-field-setting-acfe_settings>.acf-input>.acf-fields>.acf-field,.acf-field-setting-acfe_update>.acf-input>.acf-fields>.acf-field,.acf-field-setting-acfe_validate>.acf-input>.acf-fields>.acf-field{padding:0}.acf-field-setting-acfe_field_data{display:none}.acf-field-hide-front.acfe_width_auto{margin-right:30px}.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field.acf-field-acfe-bidirectional-enabled>.acf-label,.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field.acf-field-acfe-bidirectional-related>.acf-label,.acf-field-setting-acfe_settings>.acf-input>.acf-fields>.acf-field.acf-field-acfe-settings-activate>.acf-label,.acf-field-setting-acfe_update>.acf-input>.acf-fields>.acf-field.acf-field-acfe-update-activate>.acf-label,.acf-field-setting-acfe_validate>.acf-input>.acf-fields>.acf-field.acf-field-acfe-validate-activate>.acf-label{display:none}.acf-field-acfe-meta>.acf-input .acf-repeater.-empty.-table>table,.acf-field-setting-acfe_settings>.acf-input .acf-repeater.-empty.-table>table,.acf-field-setting-acfe_update>.acf-input .acf-repeater.-empty.-table>table,.acf-field-setting-acfe_validate>.acf-input .acf-repeater.-empty.-table>table{border:0;display:none}.acf-field-acfe-meta>.acf-input .acf-repeater.-empty.-table>table>thead,.acf-field-setting-acfe_settings>.acf-input .acf-repeater.-empty.-table>table>thead,.acf-field-setting-acfe_update>.acf-input .acf-repeater.-empty.-table>table>thead,.acf-field-setting-acfe_validate>.acf-input .acf-repeater.-empty.-table>table>thead{display:none}.acf-field-acfe-meta>.acf-input>.acf-repeater .acf-actions,.acf-field-setting-acfe_settings>.acf-input>.acf-repeater .acf-actions,.acf-field-setting-acfe_update>.acf-input>.acf-repeater .acf-actions,.acf-field-setting-acfe_validate>.acf-input>.acf-repeater .acf-actions{text-align:left}.acf-repeater.-block>table,.acf-repeater.-row>table{border-collapse:separate;border-spacing:0 15px;background:0 0;border:0;margin-top:-15px;margin-bottom:-7px}.acf-repeater.-block>table>*,.acf-repeater.-row>table>*{border-collapse:collapse;border-spacing:0}.acf-repeater.-block>table>tbody>tr>td,.acf-repeater.-row>table>tbody>tr>td{border-top:1px solid #ccd0d4!important;border-bottom:1px solid #ccd0d4!important}.acf-repeater.-block>table>tbody>tr>td:first-of-type,.acf-repeater.-row>table>tbody>tr>td:first-of-type{border-left:1px solid #ccd0d4!important}.acf-repeater.-block>table>tbody>tr>td:last-of-type,.acf-repeater.-row>table>tbody>tr>td:last-of-type{border-right:1px solid #ccd0d4!important}body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td,body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td{border-top:1px solid #e1e1e1;border-bottom:1px solid #e1e1e1}body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td:first-of-type,body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td:first-of-type{border-left:1px solid #e1e1e1}body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td:last-of-type,body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td:last-of-type{border-right:1px solid #e1e1e1}.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field.acf-field-acfe-bidirectional-related{margin-left:10px}.acfe_width_auto{width:auto!important}.status-acf-disabled .column-title a,.status-acf-disabled .column-title code{color:#555!important}.status-acf-disabled .column-title strong{color:#a0a5aa}.column-acf-field-group-category{width:125px}td.acf-field-group-category a{word-wrap:break-word;padding:2px 5px;margin:0 1px;border-radius:2px;background:rgba(0,0,0,.06);color:#23282d}.column-acfe-location{width:100px}.column-acf-description,.column-acf-location{width:230px}#acf-field-group-wrap .wp-list-table .column-acf-fg-status{width:70px}#acf-field-group-wrap .wp-list-table .column-acf-fg-count,.post-type-acf-field-group .wp-list-table .column-acf-count{width:80px}.post-type-acf-field-group .wp-list-table .column-title .post-state{color:#a0a5aa}.column-title .acfe-key{color:#555;font-size:12px}.column-acfe-load{width:70px}.column-acfe-source{width:150px}.column-acfe-autosync-json,.column-acfe-autosync-php{width:90px;text-align:center!important}.column-acfe-autosync-json .secondary,.column-acfe-autosync-php .secondary{color:#ccc}.column-acfe-autosync-json .dashicons-warning,.column-acfe-autosync-php .dashicons-warning{font-size:15px;vertical-align:middle}.acf-field[data-name=acfe_autosync] .dashicons-warning{color:#ccc;font-size:15px;height:15px;vertical-align:text-bottom}.column-acfe-autosync-json .dashicons-update,.column-acfe-autosync-php .dashicons-update{font-size:18px}.column-acfe-autosync-json .dashicons+.dashicons-warning,.column-acfe-autosync-php .dashicons+.dashicons-warning{margin-left:-3px}.acf-field-image[data-name=acfe_flexible_thumbnail]>.acf-input>.acf-image-uploader.has-value>.show-if-value.image-wrap{max-width:85px!important}.acf-diff-content table.diff tbody tr td:nth-child(2){width:auto}body.acf-admin-5-3 .acf-field-setting-fc_layout .acf-input-wrap.select{border-color:#7e8993}body.acf-admin-5-3 .acf-field-setting-fc_layout .acf-input-wrap.select select{min-height:28px}.acf-field-acfe-flexible-modal>.acf-input>.acf-fields{border:0}.acf-field-acfe-flexible-modal>.acf-input>.acf-fields .acf-field-acfe-flexible-modal-enabled{padding:0}.acf-field-acfe-flexible-modal>.acf-input>.acf-fields .acf-field-acfe-flexible-modal-enabled .acf-label{display:none}.acf-field-acfe-flexible-modal>.acf-input>.acf-fields .acf-field-acfe-flexible-modal-enabled{margin-right:10px}.acf-field-acfe-flexible-modal>.acf-input>.acf-fields .acf-field-acfe-flexible-modal-categories,.acf-field-acfe-flexible-modal>.acf-input>.acf-fields .acf-field-acfe-flexible-modal-col,.acf-field-acfe-flexible-modal>.acf-input>.acf-fields .acf-field-acfe-flexible-modal-title{padding-top:0;padding-bottom:0;padding-left:0;border-top:0;border-left:0!important;min-height:55px}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_category],.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings],.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label],.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_size],.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_thumbnail]{margin:0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings],.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_size]{margin-right:10px}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_size]{border-left:0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label]>.acf-input{margin:0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta>.acf-fc-meta-label:first-of-type{margin:0}.acf-field-setting-fc_layout .select2-container--default .select2-selection--multiple li{margin-bottom:0}.acf-field-object-acfe-column .acf-field-setting-instructions,.acf-field-object-acfe-column .acf-field-setting-label,.acf-field-object-acfe-column .acf-field-setting-name,.acf-field-object-acfe-column .acf-field-setting-required,.acf-field-object-acfe-column .acf-field-setting-warning,.acf-field-object-acfe-column .acf-field-setting-wrapper{display:none}.acf-field-object+.acf-field-object-acfe-column:before{display:block;content:"";height:5px;width:100%;background:#f9f9f9;border-bottom:#f0f0f0 solid 1px}.acf-field-object-acfe-column .li-field-name{visibility:hidden}.acf-field-setting-allow_terms>.acf-input>ul>li:first-of-type{width:calc(100% - 125px)}.acf-field-setting-allow_terms>.acf-input>ul>li:last-of-type{width:125px}#acf-field-group-locations .rule-groups>.rule-group>table>tbody>tr>td.value>.acf-field{margin:0}
|
|
@@ -1 +0,0 @@
|
|
1 |
-
!function(n){var e;"undefined"!=typeof acf&&(new acf.Model({actions:{new_field:"onNewField"},onNewField:function(e){var t;e.has("after")&&(t=e.get("after"),(t=e.$el.siblings('[data-name="'+t+'"]').first()).length&&t.after(e.$el))}}),new acf.Model({wait:"ready",actions:{append:"onAppend","acfe/field_group/rule_refresh":"refreshFields"},initialize:function(){this.$el=n("#acf-field-group-locations")},onAppend:function(e){(e.is(".rule-group")||e.parent().parent().parent().is(".rule-group"))&&this.refreshFields()},refreshFields:function(){var e=acf.getFields({parent:this.$("td.value")});n.each(e,function(){var e=this;"date_picker"!==e.get("type")&&"date_time_picker"!==e.get("type")&&"time_picker"!==e.get("type")||(e.$inputText().removeClass("hasDatepicker").removeAttr("id"),e.initialize())})}}),acf.addAction("ready_field_object",function(e){e.get("key").startsWith("field_acfe_layout_")&&e.delete()}),e=function(e){var t=acf.getInstance(e),a=t.$setting("columns"),e=acf.getInstance(a).getValue(),a=t.$setting("endpoint");acf.getInstance(a).getValue()?t.set("label","(Column endpoint)"):t.set("label","(Column "+e+")")},acf.addAction("change_field_label/type=acfe_column",e),acf.addAction("change_field_type/type=acfe_column",e),acf.addAction("render_field_settings/type=acfe_column",function(e){var t=acf.getFieldObject(e),e=function(){t.set("label",!0)};t.on("change",".acfe-field-columns",e),t.on("change",".acfe-field-columns-endpoint",e)}),acf.addAction("new_field/name=acfe_meta",e=function(e){e.$(".acf-button").removeClass("button-primary")}),acf.addAction("new_field/name=acfe_settings",e),acf.addAction("new_field/name=acfe_validate",e),n(function(){n(".button.edit-field").each(function(e,t){var a=n(this).closest("tbody");n(a).find(".acfe_modal_open:first").insertAfter(n(this)),n(a).find(".acfe-modal:first").appendTo(n("body")),n(a).find("tr.acf-field-setting-acfe_field_data:first").remove()}),n(".acfe_modal_open").click(function(e){e.preventDefault();e=n(this).attr("data-modal-key"),e=n(".acfe-modal[data-modal-key="+e+"]");acfe.modal.open(e,{title:"Data",size:"medium"})})}))}(jQuery);
|
|
@@ -1,457 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* ACFE: UI Enhanced
|
3 |
-
*/
|
4 |
-
.term-php .wrap > form,
|
5 |
-
.profile-php .wrap > form,
|
6 |
-
.user-edit-php .wrap > form,
|
7 |
-
.user-new-php .wrap > form,
|
8 |
-
.options-general-php .wrap > form,
|
9 |
-
.options-writing-php .wrap > form,
|
10 |
-
.options-reading-php .wrap > form,
|
11 |
-
.options-discussion-php .wrap > form,
|
12 |
-
.options-media-php .wrap > form,
|
13 |
-
.options-permalink-php .wrap > form
|
14 |
-
{
|
15 |
-
max-width:100% !important;
|
16 |
-
width: 100%;
|
17 |
-
float:left;
|
18 |
-
}
|
19 |
-
|
20 |
-
.term-php .wrap > form > div > div > h2,
|
21 |
-
.profile-php .wrap > form > div > div > h2,
|
22 |
-
.user-edit-php .wrap > form > div > div > h2,
|
23 |
-
.user-new-php .wrap > form > div > div > h2,
|
24 |
-
.options-general-php .wrap > form > div > div > h2,
|
25 |
-
.options-writing-php .wrap > form > div > div > h2,
|
26 |
-
.options-reading-php .wrap > form > div > div > h2,
|
27 |
-
.options-discussion-php .wrap > form > div > div > h2,
|
28 |
-
.options-media-php .wrap > form > div > div > h2,
|
29 |
-
.options-permalink-php .wrap > form > div > div > h2
|
30 |
-
{
|
31 |
-
background:#fff;
|
32 |
-
border: 1px solid #ccd0d4;
|
33 |
-
border-bottom: 0;
|
34 |
-
margin:0;
|
35 |
-
color: #23282d;
|
36 |
-
font-size: 14px;
|
37 |
-
padding: 8px 12px;
|
38 |
-
line-height: 1.4;
|
39 |
-
}
|
40 |
-
|
41 |
-
.term-php .wrap > form > div > div > h2 + p,
|
42 |
-
.profile-php .wrap > form > div > div > h2 + p,
|
43 |
-
.user-edit-php .wrap > form > div > div > h2 + p,
|
44 |
-
.user-new-php .wrap > form > div > div > h2 + p,
|
45 |
-
.options-general-php .wrap > form > div > div > h2 + p,
|
46 |
-
.options-writing-php .wrap > form > div > div > h2 + p,
|
47 |
-
.options-reading-php .wrap > form > div > div > h2 + p,
|
48 |
-
.options-discussion-php .wrap > form > div > div > h2 + p,
|
49 |
-
.options-media-php .wrap > form > div > div > h2 + p,
|
50 |
-
.options-permalink-php .wrap > form > div > div > h2 + p
|
51 |
-
{
|
52 |
-
margin:0;
|
53 |
-
border: 1px solid #ccd0d4;
|
54 |
-
border-bottom:0;
|
55 |
-
padding:15px 12px;
|
56 |
-
}
|
57 |
-
|
58 |
-
.term-php .wrap > form > div > div > h2 + .form-table,
|
59 |
-
.term-php .wrap > form > div > div > h2 + p + .form-table,
|
60 |
-
|
61 |
-
.profile-php .wrap > form > div > div > h2 + .form-table,
|
62 |
-
.profile-php .wrap > form > div > div > h2 + p + .form-table,
|
63 |
-
|
64 |
-
.user-edit-php .wrap > form > div > div > h2 + .form-table,
|
65 |
-
.user-edit-php .wrap > form > div > div > h2 + p + .form-table,
|
66 |
-
|
67 |
-
.user-new-php .wrap > form > div > div > h2 + .form-table,
|
68 |
-
.user-new-php .wrap > form > div > div > h2 + p + .form-table,
|
69 |
-
|
70 |
-
.options-general-php .wrap > form > div > div > h2 + .form-table,
|
71 |
-
.options-general-php .wrap > form > div > div > h2 + p + .form-table,
|
72 |
-
|
73 |
-
.options-writing-php .wrap > form > div > div > h2 + .form-table,
|
74 |
-
.options-writing-php .wrap > form > div > div > h2 + p + .form-table,
|
75 |
-
|
76 |
-
.options-reading-php .wrap > form > div > div > h2 + .form-table,
|
77 |
-
.options-reading-php .wrap > form > div > div > h2 + p + .form-table,
|
78 |
-
|
79 |
-
.options-discussion-php .wrap > form > div > div > h2 + .form-table,
|
80 |
-
.options-discussion-php .wrap > form > div > div > h2 + p + .form-table,
|
81 |
-
|
82 |
-
.options-media-php .wrap > form > div > div > h2 + .form-table,
|
83 |
-
.options-media-php .wrap > form > div > div > h2 + p + .form-table,
|
84 |
-
|
85 |
-
.options-permalink-php .wrap > form > div > div > h2 + .form-table,
|
86 |
-
.options-permalink-php .wrap > form > div > div > h2 + p + .form-table
|
87 |
-
{
|
88 |
-
margin-top:0;
|
89 |
-
}
|
90 |
-
|
91 |
-
.term-php .wrap > form .form-table,
|
92 |
-
.profile-php .wrap > form .form-table,
|
93 |
-
.user-edit-php .wrap > form .form-table,
|
94 |
-
.user-new-php .wrap > form .form-table,
|
95 |
-
.options-general-php .wrap > form .form-table,
|
96 |
-
.options-writing-php .wrap > form .form-table,
|
97 |
-
.options-reading-php .wrap > form .form-table,
|
98 |
-
.options-discussion-php .wrap > form .form-table,
|
99 |
-
.options-media-php .wrap > form .form-table,
|
100 |
-
.options-permalink-php .wrap > form .form-table
|
101 |
-
{
|
102 |
-
background:#fff;
|
103 |
-
width:100%;
|
104 |
-
border: 1px solid #ccd0d4;
|
105 |
-
box-shadow: 0 1px 1px rgba(0,0,0,.04);
|
106 |
-
margin-bottom: 20px; /* Fix for Yoast & Rank Math Metaboxes below the term */
|
107 |
-
}
|
108 |
-
|
109 |
-
.term-php .wrap > form .form-table > tbody > tr > td,
|
110 |
-
.profile-php .wrap > form .form-table > tbody > tr > td,
|
111 |
-
.user-edit-php .wrap > form .form-table > tbody > tr > td,
|
112 |
-
.user-new-php .wrap > form .form-table > tbody > tr > td,
|
113 |
-
.options-general-php .wrap > form .form-table > tbody > tr > td,
|
114 |
-
.options-writing-php .wrap > form .form-table > tbody > tr > td,
|
115 |
-
.options-reading-php .wrap > form .form-table > tbody > tr > td,
|
116 |
-
.options-discussion-php .wrap > form .form-table > tbody > tr > td,
|
117 |
-
.options-media-php .wrap > form .form-table > tbody > tr > td,
|
118 |
-
.options-permalink-php .wrap > form .form-table > tbody > tr > td
|
119 |
-
{
|
120 |
-
background: #fff;
|
121 |
-
border-top: 1px solid #E1E1E1;
|
122 |
-
position:initial;
|
123 |
-
}
|
124 |
-
|
125 |
-
.term-php .wrap > form .form-table > tbody > tr:first-of-type > td,
|
126 |
-
.term-php .wrap > form .form-table > tbody > tr:first-of-type > th,
|
127 |
-
|
128 |
-
.profile-php .wrap > form .form-table > tbody > tr:first-of-type > td,
|
129 |
-
.profile-php .wrap > form .form-table > tbody > tr:first-of-type > th,
|
130 |
-
|
131 |
-
.user-edit-php .wrap > form .form-table > tbody > tr:first-of-type > td,
|
132 |
-
.user-edit-php .wrap > form .form-table > tbody > tr:first-of-type > th,
|
133 |
-
|
134 |
-
.user-new-php .wrap > form .form-table > tbody > tr:first-of-type > td,
|
135 |
-
.user-new-php .wrap > form .form-table > tbody > tr:first-of-type > th,
|
136 |
-
|
137 |
-
.options-general-php .wrap > form .form-table > tbody > tr:first-of-type > td,
|
138 |
-
.options-general-php .wrap > form .form-table > tbody > tr:first-of-type > th,
|
139 |
-
|
140 |
-
.options-writing-php .wrap > form .form-table > tbody > tr:first-of-type > td,
|
141 |
-
.options-writing-php .wrap > form .form-table > tbody > tr:first-of-type > th,
|
142 |
-
|
143 |
-
.options-reading-php .wrap > form .form-table > tbody > tr:first-of-type > td,
|
144 |
-
.options-reading-php .wrap > form .form-table > tbody > tr:first-of-type > th,
|
145 |
-
|
146 |
-
.options-discussion-php .wrap > form .form-table > tbody > tr:first-of-type > td,
|
147 |
-
.options-discussion-php .wrap > form .form-table > tbody > tr:first-of-type > th,
|
148 |
-
|
149 |
-
.options-media-php .wrap > form .form-table > tbody > tr:first-of-type > td,
|
150 |
-
.options-media-php .wrap > form .form-table > tbody > tr:first-of-type > th,
|
151 |
-
|
152 |
-
.options-permalink-php .wrap > form .form-table > tbody > tr:first-of-type > td,
|
153 |
-
.options-permalink-php .wrap > form .form-table > tbody > tr:first-of-type > th
|
154 |
-
{
|
155 |
-
border-top: 1px solid #ccd0d4;
|
156 |
-
}
|
157 |
-
|
158 |
-
.term-php .wrap > form .form-table > tbody > tr > td p,
|
159 |
-
.profile-php .wrap > form .form-table > tbody > tr > td p,
|
160 |
-
.user-edit-php .wrap > form .form-table > tbody > tr > td p,
|
161 |
-
.user-new-php .wrap > form .form-table > tbody > tr > td p,
|
162 |
-
.options-general-php .wrap > form .form-table > tbody > tr > td p,
|
163 |
-
.options-writing-php .wrap > form .form-table > tbody > tr > td p,
|
164 |
-
.options-reading-php .wrap > form .form-table > tbody > tr > td p,
|
165 |
-
.options-discussion-php .wrap > form .form-table > tbody > tr > td p,
|
166 |
-
.options-media-php .wrap > form .form-table > tbody > tr > td p,
|
167 |
-
.options-permalink-php .wrap > form .form-table > tbody > tr > td p
|
168 |
-
{
|
169 |
-
font-size:13px;
|
170 |
-
}
|
171 |
-
|
172 |
-
.term-php .wrap > form .form-table > tbody > tr > th,
|
173 |
-
.term-php .wrap > form .form-table > tbody > tr > td.acf-label,
|
174 |
-
|
175 |
-
.profile-php .wrap > form .form-table > tbody > tr > th,
|
176 |
-
.profile-php .wrap > form .form-table > tbody > tr > td.acf-label,
|
177 |
-
|
178 |
-
.user-edit-php .wrap > form .form-table > tbody > tr > th,
|
179 |
-
.user-edit-php .wrap > form .form-table > tbody > tr > td.acf-label,
|
180 |
-
|
181 |
-
.user-new-php .wrap > form .form-table > tbody > tr > th,
|
182 |
-
.user-new-php .wrap > form .form-table > tbody > tr > td.acf-label,
|
183 |
-
|
184 |
-
.options-general-php .wrap > form .form-table > tbody > tr > th,
|
185 |
-
.options-general-php .wrap > form .form-table > tbody > tr > td.acf-label,
|
186 |
-
|
187 |
-
.options-writing-php .wrap > form .form-table > tbody > tr > th,
|
188 |
-
.options-writing-php .wrap > form .form-table > tbody > tr > td.acf-label,
|
189 |
-
|
190 |
-
.options-reading-php .wrap > form .form-table > tbody > tr > th,
|
191 |
-
.options-reading-php .wrap > form .form-table > tbody > tr > td.acf-label,
|
192 |
-
|
193 |
-
.options-discussion-php .wrap > form .form-table > tbody > tr > th,
|
194 |
-
.options-discussion-php .wrap > form .form-table > tbody > tr > td.acf-label,
|
195 |
-
|
196 |
-
.options-media-php .wrap > form .form-table > tbody > tr > th,
|
197 |
-
.options-media-php .wrap > form .form-table > tbody > tr > td.acf-label,
|
198 |
-
|
199 |
-
.options-permalink-php .wrap > form .form-table > tbody > tr > th,
|
200 |
-
.options-permalink-php .wrap > form .form-table > tbody > tr > td.acf-label
|
201 |
-
{
|
202 |
-
border-top: 1px solid #E1E1E1;
|
203 |
-
border-right: 1px solid #E1E1E1;
|
204 |
-
background: #F9F9F9;
|
205 |
-
padding:15px 12px;
|
206 |
-
width:20%;
|
207 |
-
font-size:13px;
|
208 |
-
position:initial;
|
209 |
-
color:#444;
|
210 |
-
}
|
211 |
-
|
212 |
-
.term-php .wrap > form .form-table > tbody > tr > td.td-full,
|
213 |
-
.profile-php .wrap > form .form-table > tbody > tr > td.td-full,
|
214 |
-
.user-edit-php .wrap > form .form-table > tbody > tr > td.td-full,
|
215 |
-
.user-new-php .wrap > form .form-table > tbody > tr > td.td-full,
|
216 |
-
.options-general-php .wrap > form .form-table > tbody > tr > td.td-full,
|
217 |
-
.options-writing-php .wrap > form .form-table > tbody > tr > td.td-full,
|
218 |
-
.options-reading-php .wrap > form .form-table > tbody > tr > td.td-full,
|
219 |
-
.options-discussion-php .wrap > form .form-table > tbody > tr > td.td-full,
|
220 |
-
.options-media-php .wrap > form .form-table > tbody > tr > td.td-full,
|
221 |
-
.options-permalink-php .wrap > form .form-table > tbody > tr > td.td-full
|
222 |
-
{
|
223 |
-
padding:15px 12px;
|
224 |
-
}
|
225 |
-
|
226 |
-
.term-php .wrap > form .form-table > tbody > tr.acf-field,
|
227 |
-
.profile-php .wrap > form .form-table > tbody > tr.acf-field,
|
228 |
-
.user-edit-php .wrap > form .form-table > tbody > tr.acf-field,
|
229 |
-
.user-new-php .wrap > form .form-table > tbody > tr.acf-field,
|
230 |
-
.options-general-php .wrap > form .form-table > tbody > tr.acf-field,
|
231 |
-
.options-writing-php .wrap > form .form-table > tbody > tr.acf-field,
|
232 |
-
.options-reading-php .wrap > form .form-table > tbody > tr.acf-field,
|
233 |
-
.options-discussion-php .wrap > form .form-table > tbody > tr.acf-field,
|
234 |
-
.options-media-php .wrap > form .form-table > tbody > tr.acf-field,
|
235 |
-
.options-permalink-php .wrap > form .form-table > tbody > tr.acf-field
|
236 |
-
{
|
237 |
-
position: initial;
|
238 |
-
}
|
239 |
-
|
240 |
-
.term-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td,
|
241 |
-
.profile-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td,
|
242 |
-
.user-edit-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td,
|
243 |
-
.user-new-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td,
|
244 |
-
.options-general-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td,
|
245 |
-
.options-writing-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td,
|
246 |
-
.options-reading-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td,
|
247 |
-
.options-discussion-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td,
|
248 |
-
.options-media-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td,
|
249 |
-
.options-permalink-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td
|
250 |
-
{
|
251 |
-
background: #F9F9F9;
|
252 |
-
padding:15px 0 0 0;
|
253 |
-
}
|
254 |
-
|
255 |
-
.term-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group,
|
256 |
-
.profile-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group,
|
257 |
-
.user-edit-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group,
|
258 |
-
.user-new-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group,
|
259 |
-
.options-general-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group,
|
260 |
-
.options-writing-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group,
|
261 |
-
.options-reading-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group,
|
262 |
-
.options-discussion-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group,
|
263 |
-
.options-media-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group,
|
264 |
-
.options-permalink-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group
|
265 |
-
{
|
266 |
-
border-bottom:0;
|
267 |
-
padding:0 0 0 20%;
|
268 |
-
}
|
269 |
-
|
270 |
-
.term-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group > li.active a,
|
271 |
-
.profile-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group > li.active a,
|
272 |
-
.user-edit-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group > li.active a,
|
273 |
-
.user-new-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group > li.active a,
|
274 |
-
.options-general-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group > li.active a,
|
275 |
-
.options-writing-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group > li.active a,
|
276 |
-
.options-reading-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group > li.active a,
|
277 |
-
.options-discussion-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group > li.active a,
|
278 |
-
.options-media-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group > li.active a,
|
279 |
-
.options-permalink-php .wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group > li.active a
|
280 |
-
{
|
281 |
-
background: #fff;
|
282 |
-
}
|
283 |
-
|
284 |
-
.term-php .wrap > form #poststuff.acfe-acfe-bt-admin-column,
|
285 |
-
.profile-php .wrap > form #poststuff.acfe-acfe-bt-admin-column,
|
286 |
-
.user-edit-php .wrap > form #poststuff.acfe-acfe-bt-admin-column,
|
287 |
-
.user-new-php .wrap > form #poststuff.acfe-acfe-bt-admin-column,
|
288 |
-
.options-general-php .wrap > form #poststuff.acfe-acfe-bt-admin-column,
|
289 |
-
.options-writing-php .wrap > form #poststuff.acfe-acfe-bt-admin-column,
|
290 |
-
.options-reading-php .wrap > form #poststuff.acfe-acfe-bt-admin-column,
|
291 |
-
.options-discussion-php .wrap > form #poststuff.acfe-acfe-bt-admin-column,
|
292 |
-
.options-media-php .wrap > form #poststuff.acfe-acfe-bt-admin-column,
|
293 |
-
.options-permalink-php .wrap > form #poststuff.acfe-acfe-bt-admin-column
|
294 |
-
{
|
295 |
-
min-width:auto;
|
296 |
-
padding:0;
|
297 |
-
}
|
298 |
-
|
299 |
-
.term-php .wrap > form #poststuff.acfe-acfe-bt-admin-column .inside,
|
300 |
-
.profile-php .wrap > form #poststuff.acfe-acfe-bt-admin-column .inside,
|
301 |
-
.user-edit-php .wrap > form #poststuff.acfe-acfe-bt-admin-column .inside,
|
302 |
-
.user-new-php .wrap > form #poststuff.acfe-acfe-bt-admin-column .inside,
|
303 |
-
.options-general-php .wrap > form #poststuff.acfe-acfe-bt-admin-column .inside,
|
304 |
-
.options-writing-php .wrap > form #poststuff.acfe-acfe-bt-admin-column .inside,
|
305 |
-
.options-reading-php .wrap > form #poststuff.acfe-acfe-bt-admin-column .inside,
|
306 |
-
.options-discussion-php .wrap > form #poststuff.acfe-acfe-bt-admin-column .inside,
|
307 |
-
.options-media-php .wrap > form #poststuff.acfe-acfe-bt-admin-column .inside,
|
308 |
-
.options-permalink-php .wrap > form #poststuff.acfe-acfe-bt-admin-column .inside
|
309 |
-
{
|
310 |
-
margin: 0;
|
311 |
-
padding: 0;
|
312 |
-
}
|
313 |
-
|
314 |
-
/*
|
315 |
-
* ACFE: UI Enhanced (Fix ACF)
|
316 |
-
*/
|
317 |
-
.term-php .wrap .form-table > tbody>.acf-field > .acf-label label,
|
318 |
-
.profile-php .wrap .form-table > tbody>.acf-field > .acf-label label,
|
319 |
-
.user-edit-php .wrap .form-table > tbody>.acf-field > .acf-label label,
|
320 |
-
.user-new-php .wrap .form-table > tbody>.acf-field > .acf-label label,
|
321 |
-
.options-general-php .wrap .form-table > tbody>.acf-field > .acf-label label,
|
322 |
-
.options-writing-php .wrap .form-table > tbody>.acf-field > .acf-label label,
|
323 |
-
.options-reading-php .wrap .form-table > tbody>.acf-field > .acf-label label,
|
324 |
-
.options-discussion-php .wrap .form-table > tbody>.acf-field > .acf-label label,
|
325 |
-
.options-media-php .wrap .form-table > tbody>.acf-field > .acf-label label,
|
326 |
-
.options-permalink-php .wrap .form-table > tbody>.acf-field > .acf-label label
|
327 |
-
{
|
328 |
-
font-size: 13px;
|
329 |
-
color: #444;
|
330 |
-
}
|
331 |
-
|
332 |
-
.term-php .wrap .acf-fields.-left > .acf-field.acfe-bt-no-label,
|
333 |
-
.profile-php .wrap .acf-fields.-left > .acf-field.acfe-bt-no-label,
|
334 |
-
.user-edit-php .wrap .acf-fields.-left > .acf-field.acfe-bt-no-label,
|
335 |
-
.user-new-php .wrap .acf-fields.-left > .acf-field.acfe-bt-no-label,
|
336 |
-
.options-general-php .wrap .acf-fields.-left > .acf-field.acfe-bt-no-label,
|
337 |
-
.options-writing-php .wrap .acf-fields.-left > .acf-field.acfe-bt-no-label,
|
338 |
-
.options-reading-php .wrap .acf-fields.-left > .acf-field.acfe-bt-no-label,
|
339 |
-
.options-discussion-php .wrap .acf-fields.-left > .acf-field.acfe-bt-no-label,
|
340 |
-
.options-media-php .wrap .acf-fields.-left > .acf-field.acfe-bt-no-label,
|
341 |
-
.options-permalink-php .wrap .acf-fields.-left > .acf-field.acfe-bt-no-label
|
342 |
-
{
|
343 |
-
padding-left: 20%;
|
344 |
-
}
|
345 |
-
|
346 |
-
.term-php .wrap > form .acf-fields.-left > .acf-field,
|
347 |
-
.profile-php .wrap > form .acf-fields.-left > .acf-field,
|
348 |
-
.user-edit-php .wrap > form .acf-fields.-left > .acf-field,
|
349 |
-
.user-new-php .wrap > form .acf-fields.-left > .acf-field,
|
350 |
-
.options-general-php .wrap > form .acf-fields.-left > .acf-field,
|
351 |
-
.options-writing-php .wrap > form .acf-fields.-left > .acf-field,
|
352 |
-
.options-reading-php .wrap > form .acf-fields.-left > .acf-field,
|
353 |
-
.options-discussion-php .wrap > form .acf-fields.-left > .acf-field,
|
354 |
-
.options-media-php .wrap > form .acf-fields.-left > .acf-field,
|
355 |
-
.options-permalink-php .wrap > form .acf-fields.-left > .acf-field
|
356 |
-
{
|
357 |
-
padding-left: 0;
|
358 |
-
}
|
359 |
-
|
360 |
-
.term-php .wrap > form .acf-fields.-left > .acf-field:before,
|
361 |
-
.profile-php .wrap > form .acf-fields.-left > .acf-field:before,
|
362 |
-
.user-edit-php .wrap > form .acf-fields.-left > .acf-field:before,
|
363 |
-
.user-new-php .wrap > form .acf-fields.-left > .acf-field:before,
|
364 |
-
.options-general-php .wrap > form .acf-fields.-left > .acf-field:before,
|
365 |
-
.options-writing-php .wrap > form .acf-fields.-left > .acf-field:before,
|
366 |
-
.options-reading-php .wrap > form .acf-fields.-left > .acf-field:before,
|
367 |
-
.options-discussion-php .wrap > form .acf-fields.-left > .acf-field:before,
|
368 |
-
.options-media-php .wrap > form .acf-fields.-left > .acf-field:before,
|
369 |
-
.options-permalink-php .wrap > form .acf-fields.-left > .acf-field:before
|
370 |
-
{
|
371 |
-
width:20%;
|
372 |
-
}
|
373 |
-
|
374 |
-
.term-php .wrap > form .acf-fields.-left > .acf-field > .acf-label,
|
375 |
-
.profile-php .wrap > form .acf-fields.-left > .acf-field > .acf-label,
|
376 |
-
.user-edit-php .wrap > form .acf-fields.-left > .acf-field > .acf-label,
|
377 |
-
.user-new-php .wrap > form .acf-fields.-left > .acf-field > .acf-label,
|
378 |
-
.options-general-php .wrap > form .acf-fields.-left > .acf-field > .acf-label,
|
379 |
-
.options-writing-php .wrap > form .acf-fields.-left > .acf-field > .acf-label,
|
380 |
-
.options-reading-php .wrap > form .acf-fields.-left > .acf-field > .acf-label,
|
381 |
-
.options-discussion-php .wrap > form .acf-fields.-left > .acf-field > .acf-label,
|
382 |
-
.options-media-php .wrap > form .acf-fields.-left > .acf-field > .acf-label,
|
383 |
-
.options-permalink-php .wrap > form .acf-fields.-left > .acf-field > .acf-label
|
384 |
-
{
|
385 |
-
width: 20%;
|
386 |
-
margin-left: 0;
|
387 |
-
padding: 0 12px;
|
388 |
-
}
|
389 |
-
|
390 |
-
.term-php .wrap > form .acf-fields.-left > .acf-field > .acf-input,
|
391 |
-
.profile-php .wrap > form .acf-fields.-left > .acf-field > .acf-input,
|
392 |
-
.user-edit-php .wrap > form .acf-fields.-left > .acf-field > .acf-input,
|
393 |
-
.user-new-php .wrap > form .acf-fields.-left > .acf-field > .acf-input,
|
394 |
-
.options-general-php .wrap > form .acf-fields.-left > .acf-field > .acf-input,
|
395 |
-
.options-writing-php .wrap > form .acf-fields.-left > .acf-field > .acf-input,
|
396 |
-
.options-reading-php .wrap > form .acf-fields.-left > .acf-field > .acf-input,
|
397 |
-
.options-discussion-php .wrap > form .acf-fields.-left > .acf-field > .acf-input,
|
398 |
-
.options-media-php .wrap > form .acf-fields.-left > .acf-field > .acf-input,
|
399 |
-
.options-permalink-php .wrap > form .acf-fields.-left > .acf-field > .acf-input
|
400 |
-
{
|
401 |
-
padding: 0 12px;
|
402 |
-
}
|
403 |
-
|
404 |
-
.term-php .wrap > form p.submit,
|
405 |
-
.profile-php .wrap > form p.submit,
|
406 |
-
.user-edit-php .wrap > form p.submit,
|
407 |
-
.user-new-php .wrap > form p.submit,
|
408 |
-
.options-general-php .wrap > form p.submit,
|
409 |
-
.options-writing-php .wrap > form p.submit,
|
410 |
-
.options-reading-php .wrap > form p.submit,
|
411 |
-
.options-discussion-php .wrap > form p.submit,
|
412 |
-
.options-media-php .wrap > form p.submit,
|
413 |
-
.options-permalink-php .wrap > form p.submit
|
414 |
-
{
|
415 |
-
display:none;
|
416 |
-
}
|
417 |
-
|
418 |
-
/*
|
419 |
-
* ACFE: UI - Term Single
|
420 |
-
*/
|
421 |
-
.term-php .wrap > form{
|
422 |
-
margin-top:13px;
|
423 |
-
}
|
424 |
-
|
425 |
-
/*
|
426 |
-
* ACFE: UI - Terms List
|
427 |
-
*/
|
428 |
-
.edit-tags-php #col-left{
|
429 |
-
display:none;
|
430 |
-
}
|
431 |
-
|
432 |
-
.edit-tags-php #col-container #col-right{
|
433 |
-
float:none;
|
434 |
-
width:auto;
|
435 |
-
}
|
436 |
-
|
437 |
-
.edit-tags-php #col-container #col-right .col-wrap{
|
438 |
-
padding:0;
|
439 |
-
}
|
440 |
-
|
441 |
-
.edit-tags-php #col-left.acfe-bt{
|
442 |
-
float:none;
|
443 |
-
width:100%;
|
444 |
-
}
|
445 |
-
|
446 |
-
.edit-tags-php #col-left.acfe-bt .col-wrap{
|
447 |
-
padding:0;
|
448 |
-
}
|
449 |
-
|
450 |
-
.edit-tags-php #col-left.acfe-bt #poststuff{
|
451 |
-
min-width:100%;
|
452 |
-
}
|
453 |
-
|
454 |
-
.edit-tags-php #acfe-bt-form .submit.acf-field{
|
455 |
-
display:block !important;
|
456 |
-
margin: 0;
|
457 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1 +0,0 @@
|
|
1 |
-
.options-discussion-php .wrap>form,.options-general-php .wrap>form,.options-media-php .wrap>form,.options-permalink-php .wrap>form,.options-reading-php .wrap>form,.options-writing-php .wrap>form,.profile-php .wrap>form,.term-php .wrap>form,.user-edit-php .wrap>form,.user-new-php .wrap>form{max-width:100%!important;width:100%;float:left}.options-discussion-php .wrap>form>div>div>h2,.options-general-php .wrap>form>div>div>h2,.options-media-php .wrap>form>div>div>h2,.options-permalink-php .wrap>form>div>div>h2,.options-reading-php .wrap>form>div>div>h2,.options-writing-php .wrap>form>div>div>h2,.profile-php .wrap>form>div>div>h2,.term-php .wrap>form>div>div>h2,.user-edit-php .wrap>form>div>div>h2,.user-new-php .wrap>form>div>div>h2{background:#fff;border:1px solid #ccd0d4;border-bottom:0;margin:0;color:#23282d;font-size:14px;padding:8px 12px;line-height:1.4}.options-discussion-php .wrap>form>div>div>h2+p,.options-general-php .wrap>form>div>div>h2+p,.options-media-php .wrap>form>div>div>h2+p,.options-permalink-php .wrap>form>div>div>h2+p,.options-reading-php .wrap>form>div>div>h2+p,.options-writing-php .wrap>form>div>div>h2+p,.profile-php .wrap>form>div>div>h2+p,.term-php .wrap>form>div>div>h2+p,.user-edit-php .wrap>form>div>div>h2+p,.user-new-php .wrap>form>div>div>h2+p{margin:0;border:1px solid #ccd0d4;border-bottom:0;padding:15px 12px}.options-discussion-php .wrap>form>div>div>h2+.form-table,.options-discussion-php .wrap>form>div>div>h2+p+.form-table,.options-general-php .wrap>form>div>div>h2+.form-table,.options-general-php .wrap>form>div>div>h2+p+.form-table,.options-media-php .wrap>form>div>div>h2+.form-table,.options-media-php .wrap>form>div>div>h2+p+.form-table,.options-permalink-php .wrap>form>div>div>h2+.form-table,.options-permalink-php .wrap>form>div>div>h2+p+.form-table,.options-reading-php .wrap>form>div>div>h2+.form-table,.options-reading-php .wrap>form>div>div>h2+p+.form-table,.options-writing-php .wrap>form>div>div>h2+.form-table,.options-writing-php .wrap>form>div>div>h2+p+.form-table,.profile-php .wrap>form>div>div>h2+.form-table,.profile-php .wrap>form>div>div>h2+p+.form-table,.term-php .wrap>form>div>div>h2+.form-table,.term-php .wrap>form>div>div>h2+p+.form-table,.user-edit-php .wrap>form>div>div>h2+.form-table,.user-edit-php .wrap>form>div>div>h2+p+.form-table,.user-new-php .wrap>form>div>div>h2+.form-table,.user-new-php .wrap>form>div>div>h2+p+.form-table{margin-top:0}.options-discussion-php .wrap>form .form-table,.options-general-php .wrap>form .form-table,.options-media-php .wrap>form .form-table,.options-permalink-php .wrap>form .form-table,.options-reading-php .wrap>form .form-table,.options-writing-php .wrap>form .form-table,.profile-php .wrap>form .form-table,.term-php .wrap>form .form-table,.user-edit-php .wrap>form .form-table,.user-new-php .wrap>form .form-table{background:#fff;width:100%;border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04);margin-bottom:20px}.options-discussion-php .wrap>form .form-table>tbody>tr>td,.options-general-php .wrap>form .form-table>tbody>tr>td,.options-media-php .wrap>form .form-table>tbody>tr>td,.options-permalink-php .wrap>form .form-table>tbody>tr>td,.options-reading-php .wrap>form .form-table>tbody>tr>td,.options-writing-php .wrap>form .form-table>tbody>tr>td,.profile-php .wrap>form .form-table>tbody>tr>td,.term-php .wrap>form .form-table>tbody>tr>td,.user-edit-php .wrap>form .form-table>tbody>tr>td,.user-new-php .wrap>form .form-table>tbody>tr>td{background:#fff;border-top:1px solid #e1e1e1;position:initial}.options-discussion-php .wrap>form .form-table>tbody>tr:first-of-type>td,.options-discussion-php .wrap>form .form-table>tbody>tr:first-of-type>th,.options-general-php .wrap>form .form-table>tbody>tr:first-of-type>td,.options-general-php .wrap>form .form-table>tbody>tr:first-of-type>th,.options-media-php .wrap>form .form-table>tbody>tr:first-of-type>td,.options-media-php .wrap>form .form-table>tbody>tr:first-of-type>th,.options-permalink-php .wrap>form .form-table>tbody>tr:first-of-type>td,.options-permalink-php .wrap>form .form-table>tbody>tr:first-of-type>th,.options-reading-php .wrap>form .form-table>tbody>tr:first-of-type>td,.options-reading-php .wrap>form .form-table>tbody>tr:first-of-type>th,.options-writing-php .wrap>form .form-table>tbody>tr:first-of-type>td,.options-writing-php .wrap>form .form-table>tbody>tr:first-of-type>th,.profile-php .wrap>form .form-table>tbody>tr:first-of-type>td,.profile-php .wrap>form .form-table>tbody>tr:first-of-type>th,.term-php .wrap>form .form-table>tbody>tr:first-of-type>td,.term-php .wrap>form .form-table>tbody>tr:first-of-type>th,.user-edit-php .wrap>form .form-table>tbody>tr:first-of-type>td,.user-edit-php .wrap>form .form-table>tbody>tr:first-of-type>th,.user-new-php .wrap>form .form-table>tbody>tr:first-of-type>td,.user-new-php .wrap>form .form-table>tbody>tr:first-of-type>th{border-top:1px solid #ccd0d4}.options-discussion-php .wrap>form .form-table>tbody>tr>td p,.options-general-php .wrap>form .form-table>tbody>tr>td p,.options-media-php .wrap>form .form-table>tbody>tr>td p,.options-permalink-php .wrap>form .form-table>tbody>tr>td p,.options-reading-php .wrap>form .form-table>tbody>tr>td p,.options-writing-php .wrap>form .form-table>tbody>tr>td p,.profile-php .wrap>form .form-table>tbody>tr>td p,.term-php .wrap>form .form-table>tbody>tr>td p,.user-edit-php .wrap>form .form-table>tbody>tr>td p,.user-new-php .wrap>form .form-table>tbody>tr>td p{font-size:13px}.options-discussion-php .wrap>form .form-table>tbody>tr>td.acf-label,.options-discussion-php .wrap>form .form-table>tbody>tr>th,.options-general-php .wrap>form .form-table>tbody>tr>td.acf-label,.options-general-php .wrap>form .form-table>tbody>tr>th,.options-media-php .wrap>form .form-table>tbody>tr>td.acf-label,.options-media-php .wrap>form .form-table>tbody>tr>th,.options-permalink-php .wrap>form .form-table>tbody>tr>td.acf-label,.options-permalink-php .wrap>form .form-table>tbody>tr>th,.options-reading-php .wrap>form .form-table>tbody>tr>td.acf-label,.options-reading-php .wrap>form .form-table>tbody>tr>th,.options-writing-php .wrap>form .form-table>tbody>tr>td.acf-label,.options-writing-php .wrap>form .form-table>tbody>tr>th,.profile-php .wrap>form .form-table>tbody>tr>td.acf-label,.profile-php .wrap>form .form-table>tbody>tr>th,.term-php .wrap>form .form-table>tbody>tr>td.acf-label,.term-php .wrap>form .form-table>tbody>tr>th,.user-edit-php .wrap>form .form-table>tbody>tr>td.acf-label,.user-edit-php .wrap>form .form-table>tbody>tr>th,.user-new-php .wrap>form .form-table>tbody>tr>td.acf-label,.user-new-php .wrap>form .form-table>tbody>tr>th{border-top:1px solid #e1e1e1;border-right:1px solid #e1e1e1;background:#f9f9f9;padding:15px 12px;width:20%;font-size:13px;position:initial;color:#444}.options-discussion-php .wrap>form .form-table>tbody>tr>td.td-full,.options-general-php .wrap>form .form-table>tbody>tr>td.td-full,.options-media-php .wrap>form .form-table>tbody>tr>td.td-full,.options-permalink-php .wrap>form .form-table>tbody>tr>td.td-full,.options-reading-php .wrap>form .form-table>tbody>tr>td.td-full,.options-writing-php .wrap>form .form-table>tbody>tr>td.td-full,.profile-php .wrap>form .form-table>tbody>tr>td.td-full,.term-php .wrap>form .form-table>tbody>tr>td.td-full,.user-edit-php .wrap>form .form-table>tbody>tr>td.td-full,.user-new-php .wrap>form .form-table>tbody>tr>td.td-full{padding:15px 12px}.options-discussion-php .wrap>form .form-table>tbody>tr.acf-field,.options-general-php .wrap>form .form-table>tbody>tr.acf-field,.options-media-php .wrap>form .form-table>tbody>tr.acf-field,.options-permalink-php .wrap>form .form-table>tbody>tr.acf-field,.options-reading-php .wrap>form .form-table>tbody>tr.acf-field,.options-writing-php .wrap>form .form-table>tbody>tr.acf-field,.profile-php .wrap>form .form-table>tbody>tr.acf-field,.term-php .wrap>form .form-table>tbody>tr.acf-field,.user-edit-php .wrap>form .form-table>tbody>tr.acf-field,.user-new-php .wrap>form .form-table>tbody>tr.acf-field{position:initial}.options-discussion-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td,.options-general-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td,.options-media-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td,.options-permalink-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td,.options-reading-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td,.options-writing-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td,.profile-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td,.term-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td,.user-edit-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td,.user-new-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td{background:#f9f9f9;padding:15px 0 0 0}.options-discussion-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group,.options-general-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group,.options-media-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group,.options-permalink-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group,.options-reading-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group,.options-writing-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group,.profile-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group,.term-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group,.user-edit-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group,.user-new-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group{border-bottom:0;padding:0 0 0 20%}.options-discussion-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group>li.active a,.options-general-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group>li.active a,.options-media-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group>li.active a,.options-permalink-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group>li.active a,.options-reading-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group>li.active a,.options-writing-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group>li.active a,.profile-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group>li.active a,.term-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group>li.active a,.user-edit-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group>li.active a,.user-new-php .wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group>li.active a{background:#fff}.options-discussion-php .wrap>form #poststuff.acfe-acfe-bt-admin-column,.options-general-php .wrap>form #poststuff.acfe-acfe-bt-admin-column,.options-media-php .wrap>form #poststuff.acfe-acfe-bt-admin-column,.options-permalink-php .wrap>form #poststuff.acfe-acfe-bt-admin-column,.options-reading-php .wrap>form #poststuff.acfe-acfe-bt-admin-column,.options-writing-php .wrap>form #poststuff.acfe-acfe-bt-admin-column,.profile-php .wrap>form #poststuff.acfe-acfe-bt-admin-column,.term-php .wrap>form #poststuff.acfe-acfe-bt-admin-column,.user-edit-php .wrap>form #poststuff.acfe-acfe-bt-admin-column,.user-new-php .wrap>form #poststuff.acfe-acfe-bt-admin-column{min-width:auto;padding:0}.options-discussion-php .wrap>form #poststuff.acfe-acfe-bt-admin-column .inside,.options-general-php .wrap>form #poststuff.acfe-acfe-bt-admin-column .inside,.options-media-php .wrap>form #poststuff.acfe-acfe-bt-admin-column .inside,.options-permalink-php .wrap>form #poststuff.acfe-acfe-bt-admin-column .inside,.options-reading-php .wrap>form #poststuff.acfe-acfe-bt-admin-column .inside,.options-writing-php .wrap>form #poststuff.acfe-acfe-bt-admin-column .inside,.profile-php .wrap>form #poststuff.acfe-acfe-bt-admin-column .inside,.term-php .wrap>form #poststuff.acfe-acfe-bt-admin-column .inside,.user-edit-php .wrap>form #poststuff.acfe-acfe-bt-admin-column .inside,.user-new-php .wrap>form #poststuff.acfe-acfe-bt-admin-column .inside{margin:0;padding:0}.options-discussion-php .wrap .form-table>tbody>.acf-field>.acf-label label,.options-general-php .wrap .form-table>tbody>.acf-field>.acf-label label,.options-media-php .wrap .form-table>tbody>.acf-field>.acf-label label,.options-permalink-php .wrap .form-table>tbody>.acf-field>.acf-label label,.options-reading-php .wrap .form-table>tbody>.acf-field>.acf-label label,.options-writing-php .wrap .form-table>tbody>.acf-field>.acf-label label,.profile-php .wrap .form-table>tbody>.acf-field>.acf-label label,.term-php .wrap .form-table>tbody>.acf-field>.acf-label label,.user-edit-php .wrap .form-table>tbody>.acf-field>.acf-label label,.user-new-php .wrap .form-table>tbody>.acf-field>.acf-label label{font-size:13px;color:#444}.options-discussion-php .wrap .acf-fields.-left>.acf-field.acfe-bt-no-label,.options-general-php .wrap .acf-fields.-left>.acf-field.acfe-bt-no-label,.options-media-php .wrap .acf-fields.-left>.acf-field.acfe-bt-no-label,.options-permalink-php .wrap .acf-fields.-left>.acf-field.acfe-bt-no-label,.options-reading-php .wrap .acf-fields.-left>.acf-field.acfe-bt-no-label,.options-writing-php .wrap .acf-fields.-left>.acf-field.acfe-bt-no-label,.profile-php .wrap .acf-fields.-left>.acf-field.acfe-bt-no-label,.term-php .wrap .acf-fields.-left>.acf-field.acfe-bt-no-label,.user-edit-php .wrap .acf-fields.-left>.acf-field.acfe-bt-no-label,.user-new-php .wrap .acf-fields.-left>.acf-field.acfe-bt-no-label{padding-left:20%}.options-discussion-php .wrap>form .acf-fields.-left>.acf-field,.options-general-php .wrap>form .acf-fields.-left>.acf-field,.options-media-php .wrap>form .acf-fields.-left>.acf-field,.options-permalink-php .wrap>form .acf-fields.-left>.acf-field,.options-reading-php .wrap>form .acf-fields.-left>.acf-field,.options-writing-php .wrap>form .acf-fields.-left>.acf-field,.profile-php .wrap>form .acf-fields.-left>.acf-field,.term-php .wrap>form .acf-fields.-left>.acf-field,.user-edit-php .wrap>form .acf-fields.-left>.acf-field,.user-new-php .wrap>form .acf-fields.-left>.acf-field{padding-left:0}.options-discussion-php .wrap>form .acf-fields.-left>.acf-field:before,.options-general-php .wrap>form .acf-fields.-left>.acf-field:before,.options-media-php .wrap>form .acf-fields.-left>.acf-field:before,.options-permalink-php .wrap>form .acf-fields.-left>.acf-field:before,.options-reading-php .wrap>form .acf-fields.-left>.acf-field:before,.options-writing-php .wrap>form .acf-fields.-left>.acf-field:before,.profile-php .wrap>form .acf-fields.-left>.acf-field:before,.term-php .wrap>form .acf-fields.-left>.acf-field:before,.user-edit-php .wrap>form .acf-fields.-left>.acf-field:before,.user-new-php .wrap>form .acf-fields.-left>.acf-field:before{width:20%}.options-discussion-php .wrap>form .acf-fields.-left>.acf-field>.acf-label,.options-general-php .wrap>form .acf-fields.-left>.acf-field>.acf-label,.options-media-php .wrap>form .acf-fields.-left>.acf-field>.acf-label,.options-permalink-php .wrap>form .acf-fields.-left>.acf-field>.acf-label,.options-reading-php .wrap>form .acf-fields.-left>.acf-field>.acf-label,.options-writing-php .wrap>form .acf-fields.-left>.acf-field>.acf-label,.profile-php .wrap>form .acf-fields.-left>.acf-field>.acf-label,.term-php .wrap>form .acf-fields.-left>.acf-field>.acf-label,.user-edit-php .wrap>form .acf-fields.-left>.acf-field>.acf-label,.user-new-php .wrap>form .acf-fields.-left>.acf-field>.acf-label{width:20%;margin-left:0;padding:0 12px}.options-discussion-php .wrap>form .acf-fields.-left>.acf-field>.acf-input,.options-general-php .wrap>form .acf-fields.-left>.acf-field>.acf-input,.options-media-php .wrap>form .acf-fields.-left>.acf-field>.acf-input,.options-permalink-php .wrap>form .acf-fields.-left>.acf-field>.acf-input,.options-reading-php .wrap>form .acf-fields.-left>.acf-field>.acf-input,.options-writing-php .wrap>form .acf-fields.-left>.acf-field>.acf-input,.profile-php .wrap>form .acf-fields.-left>.acf-field>.acf-input,.term-php .wrap>form .acf-fields.-left>.acf-field>.acf-input,.user-edit-php .wrap>form .acf-fields.-left>.acf-field>.acf-input,.user-new-php .wrap>form .acf-fields.-left>.acf-field>.acf-input{padding:0 12px}.options-discussion-php .wrap>form p.submit,.options-general-php .wrap>form p.submit,.options-media-php .wrap>form p.submit,.options-permalink-php .wrap>form p.submit,.options-reading-php .wrap>form p.submit,.options-writing-php .wrap>form p.submit,.profile-php .wrap>form p.submit,.term-php .wrap>form p.submit,.user-edit-php .wrap>form p.submit,.user-new-php .wrap>form p.submit{display:none}.term-php .wrap>form{margin-top:13px}.edit-tags-php #col-left{display:none}.edit-tags-php #col-container #col-right{float:none;width:auto}.edit-tags-php #col-container #col-right .col-wrap{padding:0}.edit-tags-php #col-left.acfe-bt{float:none;width:100%}.edit-tags-php #col-left.acfe-bt .col-wrap{padding:0}.edit-tags-php #col-left.acfe-bt #poststuff{min-width:100%}.edit-tags-php #acfe-bt-form .submit.acf-field{display:block!important;margin:0}
|
|
@@ -1,1879 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* Body Loading
|
3 |
-
*/
|
4 |
-
body.-loading *{
|
5 |
-
cursor:wait !important;
|
6 |
-
}
|
7 |
-
|
8 |
-
/*
|
9 |
-
* ACF: Field fix
|
10 |
-
*/
|
11 |
-
.acf-field .acf-label label{
|
12 |
-
font-weight:600 !important;
|
13 |
-
}
|
14 |
-
|
15 |
-
.acf-field p.description{
|
16 |
-
word-break: break-word;
|
17 |
-
}
|
18 |
-
|
19 |
-
/*
|
20 |
-
* ACF: Field fix empty label on field group label placement left
|
21 |
-
*/
|
22 |
-
.acf-fields.-left > .acf-field > .acf-label{
|
23 |
-
min-height:1px;
|
24 |
-
}
|
25 |
-
|
26 |
-
.acf-field.acfe-no-label > .acf-label{
|
27 |
-
margin:0;
|
28 |
-
}
|
29 |
-
|
30 |
-
.acf-field.acfe-no-label > .acf-label > label{
|
31 |
-
display:none;
|
32 |
-
}
|
33 |
-
|
34 |
-
.acf-field.acfe-no-label > .acf-label > p.description{
|
35 |
-
margin-bottom:10px;
|
36 |
-
}
|
37 |
-
|
38 |
-
/*
|
39 |
-
* ACF: Tooltip
|
40 |
-
*/
|
41 |
-
.acfe-field-tooltip{
|
42 |
-
float:right;
|
43 |
-
font-size:16px;
|
44 |
-
color:#999;
|
45 |
-
}
|
46 |
-
|
47 |
-
/*
|
48 |
-
* ACF Field: Hidden
|
49 |
-
*/
|
50 |
-
.acf-field-acfe-hidden{
|
51 |
-
display:none;
|
52 |
-
}
|
53 |
-
|
54 |
-
/*
|
55 |
-
* ACF Field: Textarea
|
56 |
-
*/
|
57 |
-
.acf-field-textarea[data-acfe-textarea-code="1"] > .acf-input > textarea{
|
58 |
-
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
59 |
-
font-size: 1em;
|
60 |
-
}
|
61 |
-
|
62 |
-
/*
|
63 |
-
* ACFE Field: Code Editor
|
64 |
-
*/
|
65 |
-
.acf-field-acfe-code-editor > .acf-input > .acf-input-wrap > .CodeMirror-wrap{
|
66 |
-
height: auto;
|
67 |
-
}
|
68 |
-
|
69 |
-
.acf-field-acfe-code-editor > .acf-input > .acf-input-wrap > .CodeMirror-wrap.cm-s-default{
|
70 |
-
border:1px solid #7e8993;
|
71 |
-
border-radius: 4px;
|
72 |
-
}
|
73 |
-
|
74 |
-
.acf-field-acfe-code-editor > .acf-input > .acf-input-wrap > .CodeMirror-wrap.cm-s-default .CodeMirror-gutters{
|
75 |
-
border-right: 1px solid #7e8993;
|
76 |
-
}
|
77 |
-
|
78 |
-
body:not(.acf-admin-5-3) .acf-field-acfe-code-editor > .acf-input > .acf-input-wrap > .CodeMirror-wrap.cm-s-default{
|
79 |
-
border-color:#dfdfdf;
|
80 |
-
}
|
81 |
-
|
82 |
-
.acf-field-acfe-code-editor > .acf-input > .acf-input-wrap > .CodeMirror-wrap.cm-s-default .CodeMirror-activeline-background{
|
83 |
-
background:#f9f9f9;
|
84 |
-
}
|
85 |
-
|
86 |
-
.acf-field-acfe-code-editor > .acf-input > .acf-input-wrap > .CodeMirror-wrap.cm-s-default .CodeMirror-selected{
|
87 |
-
background:#f0f0f0 !important;
|
88 |
-
}
|
89 |
-
|
90 |
-
.acf-field-acfe-code-editor > .acf-input > .acf-input-wrap > .CodeMirror-wrap.cm-s-default .CodeMirror-gutters{
|
91 |
-
background:#f9f9f9;
|
92 |
-
}
|
93 |
-
/*
|
94 |
-
* Fix Code Editor in term view
|
95 |
-
*/
|
96 |
-
.acf-field-acfe-code-editor > td.acf-input{
|
97 |
-
max-width: 1px;
|
98 |
-
}
|
99 |
-
|
100 |
-
/*
|
101 |
-
* ACF Field: Accordion
|
102 |
-
*/
|
103 |
-
.acf-accordion{
|
104 |
-
z-index:initial;
|
105 |
-
}
|
106 |
-
|
107 |
-
/*
|
108 |
-
* ACF Field: Group
|
109 |
-
*/
|
110 |
-
.acf-fields > .acf-field-group.acfe-field-group-layout-block.acfe-seamless-style:not([data-acfe-group-modal="1"]) > .acf-input,
|
111 |
-
.acf-fields > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style:not([data-acfe-group-modal="1"]) > .acf-input{
|
112 |
-
margin-left: -12px;
|
113 |
-
margin-right: -12px;
|
114 |
-
margin-bottom: -15px;
|
115 |
-
}
|
116 |
-
.acf-fields > .acf-field-group.acfe-field-group-layout-block.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"]) > .acf-input,
|
117 |
-
.acf-fields > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"]) > .acf-input{
|
118 |
-
margin-top: -15px;
|
119 |
-
}
|
120 |
-
.acf-fields > .acf-field-group.acfe-field-group-layout-block.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"]) > .acf-label > p.description,
|
121 |
-
.acf-fields > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"]) > .acf-label > p.description{
|
122 |
-
margin-bottom: 15px;
|
123 |
-
}
|
124 |
-
.acf-fields > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style.acfe-no-label > .acf-input > .acf-fields{
|
125 |
-
border-width:0;
|
126 |
-
}
|
127 |
-
.acf-fields > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style > .acf-input > .acf-fields{
|
128 |
-
border-left-width:0;
|
129 |
-
border-right-width:0;
|
130 |
-
border-bottom-width:0;
|
131 |
-
}
|
132 |
-
.acf-fields > .acf-field-group.acfe-field-group-layout-block.acfe-seamless-style > .acf-input > .acf-fields{
|
133 |
-
border-width:0;
|
134 |
-
}
|
135 |
-
|
136 |
-
.acf-fields.-left > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style > .acf-input{
|
137 |
-
margin:0;
|
138 |
-
}
|
139 |
-
.acf-fields.-left > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style > .acf-input > .acf-fields{
|
140 |
-
border-width:1px;
|
141 |
-
}
|
142 |
-
.acf-fields.-left > .acf-field-group.acfe-field-group-layout-block.acfe-seamless-style:not([data-acfe-group-modal="1"]) > .acf-input,
|
143 |
-
.acf-fields.-left > .acf-field-group.acfe-field-group-layout-table.acfe-seamless-style:not([data-acfe-group-modal="1"]) > .acf-input{
|
144 |
-
padding:0;
|
145 |
-
padding-left:1px;
|
146 |
-
margin-top: -15px;
|
147 |
-
margin-bottom: -15px;
|
148 |
-
margin-left: 0;
|
149 |
-
margin-right: 0;
|
150 |
-
}
|
151 |
-
.acf-fields.-left > .acf-field-group.acfe-field-group-layout-block.acfe-seamless-style > .acf-input > .acf-fields,
|
152 |
-
.acf-fields.-left > .acf-field-group.acfe-field-group-layout-table.acfe-seamless-style > .acf-input > .acf-table{
|
153 |
-
border-width:0;
|
154 |
-
}
|
155 |
-
|
156 |
-
.acf-fields > .acf-field-group[data-acfe-group-modal="1"] > .acf-input > .acfe-modal > .acfe-modal-wrapper > .acfe-modal-content > .acf-table,
|
157 |
-
.acf-fields > .acf-field-group[data-acfe-group-modal="1"] > .acf-input > .acfe-modal > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields{
|
158 |
-
border-width:0;
|
159 |
-
}
|
160 |
-
|
161 |
-
.acf-postbox.seamless > .acf-fields > .acf-field-group.acfe-field-group-layout-block.acfe-seamless-style > .acf-input,
|
162 |
-
.acf-postbox.seamless > .acf-fields > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style > .acf-input,
|
163 |
-
.acf-postbox.seamless > .acf-fields > .acf-field-group.acfe-field-group-layout-table.acfe-seamless-style > .acf-table{
|
164 |
-
margin:0;
|
165 |
-
}
|
166 |
-
|
167 |
-
.acf-postbox.seamless > .acf-fields > .acf-field-group.acfe-field-group-layout-block.acfe-seamless-style > .acf-input > .acf-fields,
|
168 |
-
.acf-postbox.seamless > .acf-fields > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style > .acf-input > .acf-fields,
|
169 |
-
.acf-postbox.seamless > .acf-fields > .acf-field-group.acfe-field-group-layout-table.acfe-seamless-style > .acf-input > .acf-table{
|
170 |
-
border-width:1px;
|
171 |
-
}
|
172 |
-
|
173 |
-
.acf-postbox.seamless > .acf-fields.-left > .acf-field-group.acfe-field-group-layout-block.acfe-seamless-style > .acf-input,
|
174 |
-
.acf-postbox.seamless > .acf-fields.-left > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style > .acf-input,
|
175 |
-
.acf-postbox.seamless > .acf-fields.-left > .acf-field-group.acfe-field-group-layout-table.acfe-seamless-style > .acf-input{
|
176 |
-
padding:0 12px;
|
177 |
-
}
|
178 |
-
|
179 |
-
.acf-fields > .acf-field-group[data-acfe-group-modal="1"] > .acf-input > .acf-table,
|
180 |
-
.acf-fields > .acf-field-group[data-acfe-group-modal="1"] > .acf-input > .acf-fields{
|
181 |
-
display:none;
|
182 |
-
}
|
183 |
-
|
184 |
-
/*
|
185 |
-
* ACF Field: Group - Terms
|
186 |
-
*/
|
187 |
-
tr.acf-field.acf-field-group.acfe-seamless-style > td.acf-input > .acf-fields{
|
188 |
-
border: 0;
|
189 |
-
margin-left: -10px;
|
190 |
-
margin-right: -10px;
|
191 |
-
margin-top: -15px;
|
192 |
-
margin-bottom: -15px;
|
193 |
-
}
|
194 |
-
|
195 |
-
tr.acf-field.acf-field-group.acfe-seamless-style.acfe-field-group-layout-table > td.acf-input{
|
196 |
-
padding:0;
|
197 |
-
margin-top: -15px;
|
198 |
-
margin-bottom: -15px;
|
199 |
-
margin-left: 0;
|
200 |
-
margin-right: 0;
|
201 |
-
}
|
202 |
-
|
203 |
-
tr.acf-field.acf-field-group.acfe-seamless-style.acfe-field-group-layout-table > td.acf-input > .acf-table{
|
204 |
-
border-width:0;
|
205 |
-
}
|
206 |
-
|
207 |
-
tr.acf-field.acf-field-group[data-acfe-group-modal="1"] > .acf-input > .acfe-modal > .acfe-modal-wrapper > .acfe-modal-content > .acf-table,
|
208 |
-
tr.acf-field.acf-field-group[data-acfe-group-modal="1"] > .acf-input > .acfe-modal > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields{
|
209 |
-
border-width:0;
|
210 |
-
}
|
211 |
-
|
212 |
-
/*
|
213 |
-
* ACF Field: Clone
|
214 |
-
*/
|
215 |
-
.acf-fields > .acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style:not([data-acfe-clone-modal="1"]) > .acf-input,
|
216 |
-
.acf-fields > .acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style:not([data-acfe-clone-modal="1"]) > .acf-input{
|
217 |
-
margin-left: -12px;
|
218 |
-
margin-right: -12px;
|
219 |
-
margin-bottom: -15px;
|
220 |
-
}
|
221 |
-
.acf-fields > .acf-field-clone.acfe-field-clone-layout-block.acfe-no-label.acfe-seamless-style:not([data-acfe-clone-modal="1"]) > .acf-input,
|
222 |
-
.acf-fields > .acf-field-clone.acfe-field-clone-layout-row.acfe-no-label.acfe-seamless-style:not([data-acfe-clone-modal="1"]) > .acf-input{
|
223 |
-
margin-top: -15px;
|
224 |
-
}
|
225 |
-
.acf-fields > .acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style.acfe-no-label:not([data-acfe-clone-modal="1"]) > .acf-label > p.description,
|
226 |
-
.acf-fields > .acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style.acfe-no-label:not([data-acfe-clone-modal="1"]) > .acf-label > p.description{
|
227 |
-
margin-bottom: 15px;
|
228 |
-
}
|
229 |
-
.acf-fields > .acf-field-clone.acfe-field-clone-layout-row.acfe-no-label.acfe-seamless-style > .acf-input > .acf-fields{
|
230 |
-
border-width:0;
|
231 |
-
}
|
232 |
-
.acf-fields > .acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style > .acf-input > .acf-fields{
|
233 |
-
border-left-width:0;
|
234 |
-
border-right-width:0;
|
235 |
-
border-bottom-width:0;
|
236 |
-
}
|
237 |
-
.acf-fields > .acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style > .acf-input > .acf-fields{
|
238 |
-
border-width:0;
|
239 |
-
}
|
240 |
-
|
241 |
-
.acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style > .acf-input{
|
242 |
-
margin:0;
|
243 |
-
}
|
244 |
-
.acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style > .acf-input > .acf-fields{
|
245 |
-
border-width:1px;
|
246 |
-
}
|
247 |
-
.acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style:not([data-acfe-clone-modal="1"]) > .acf-input,
|
248 |
-
.acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style:not([data-acfe-clone-modal="1"]) > .acf-input{
|
249 |
-
padding:0;
|
250 |
-
padding-left:1px;
|
251 |
-
margin-top: -15px;
|
252 |
-
margin-bottom: -15px;
|
253 |
-
margin-left: 0;
|
254 |
-
margin-right: 0;
|
255 |
-
}
|
256 |
-
.acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style > .acf-input > .acf-fields,
|
257 |
-
.acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style > .acf-input > .acf-table{
|
258 |
-
border-width:0;
|
259 |
-
}
|
260 |
-
|
261 |
-
.acf-fields > .acf-field-clone[data-acfe-clone-modal="1"] > .acf-input > .acfe-modal > .acfe-modal-wrapper > .acfe-modal-content > .acf-table,
|
262 |
-
.acf-fields > .acf-field-clone[data-acfe-clone-modal="1"] > .acf-input > .acfe-modal > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields{
|
263 |
-
border-width:0;
|
264 |
-
}
|
265 |
-
|
266 |
-
.acf-postbox.seamless > .acf-fields > .acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style > .acf-input,
|
267 |
-
.acf-postbox.seamless > .acf-fields > .acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style > .acf-input,
|
268 |
-
.acf-postbox.seamless > .acf-fields > .acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style > .acf-table{
|
269 |
-
margin:0;
|
270 |
-
}
|
271 |
-
|
272 |
-
.acf-postbox.seamless > .acf-fields > .acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style > .acf-input > .acf-fields,
|
273 |
-
.acf-postbox.seamless > .acf-fields > .acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style > .acf-input > .acf-fields,
|
274 |
-
.acf-postbox.seamless > .acf-fields > .acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style > .acf-input > .acf-table{
|
275 |
-
border-width:1px;
|
276 |
-
}
|
277 |
-
|
278 |
-
.acf-postbox.seamless > .acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style > .acf-input,
|
279 |
-
.acf-postbox.seamless > .acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style > .acf-input,
|
280 |
-
.acf-postbox.seamless > .acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style > .acf-input{
|
281 |
-
padding:0 12px;
|
282 |
-
}
|
283 |
-
|
284 |
-
/*
|
285 |
-
* ACF Field: Clone - Terms
|
286 |
-
*/
|
287 |
-
tr.acf-field.acf-field-clone.acfe-seamless-style > td.acf-input > .acf-fields{
|
288 |
-
border: 0;
|
289 |
-
margin-left: -10px;
|
290 |
-
margin-right: -10px;
|
291 |
-
margin-top: -15px;
|
292 |
-
margin-bottom: -15px;
|
293 |
-
}
|
294 |
-
|
295 |
-
tr.acf-field.acf-field-clone.acfe-seamless-style.acfe-field-clone-layout-table > td.acf-input{
|
296 |
-
padding:0;
|
297 |
-
margin-top: -15px;
|
298 |
-
margin-bottom: -15px;
|
299 |
-
margin-left: 0;
|
300 |
-
margin-right: 0;
|
301 |
-
}
|
302 |
-
|
303 |
-
tr.acf-field.acf-field-clone.acfe-seamless-style.acfe-field-clone-layout-table > td.acf-input > .acf-table{
|
304 |
-
border-width:0;
|
305 |
-
}
|
306 |
-
|
307 |
-
tr.acf-field.acf-field-clone[data-acfe-clone-modal="1"] > .acf-input > .acfe-modal > .acfe-modal-wrapper > .acfe-modal-content > .acf-table,
|
308 |
-
tr.acf-field.acf-field-clone[data-acfe-clone-modal="1"] > .acf-input > .acfe-modal > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields{
|
309 |
-
border-width:0;
|
310 |
-
}
|
311 |
-
|
312 |
-
/*
|
313 |
-
* ACF Field: Colorpicker
|
314 |
-
*/
|
315 |
-
.acfe-modal-content .acf-color-picker .wp-picker-holder{
|
316 |
-
position:relative;
|
317 |
-
}
|
318 |
-
|
319 |
-
/*
|
320 |
-
* ACF Field: Checkbox
|
321 |
-
*/
|
322 |
-
.acf-field-checkbox .acf-input .acf-checkbox-list.acf-bl li + li > strong{
|
323 |
-
margin-top:15px;
|
324 |
-
display:inline-block;
|
325 |
-
}
|
326 |
-
|
327 |
-
/*
|
328 |
-
* ACF Field: Radio
|
329 |
-
*/
|
330 |
-
.acf-field-radio[data-acfe-labels] .acf-input .acf-radio-list.acf-hl li > strong{
|
331 |
-
display:block;
|
332 |
-
}
|
333 |
-
|
334 |
-
.acf-field-radio .acf-input .acf-radio-list.acf-bl li > strong{
|
335 |
-
display:block;
|
336 |
-
}
|
337 |
-
|
338 |
-
.acf-field-radio .acf-input .acf-radio-list.acf-bl li + li > strong{
|
339 |
-
margin-top:15px;
|
340 |
-
}
|
341 |
-
|
342 |
-
/*
|
343 |
-
* ACF Field: Google Map
|
344 |
-
*/
|
345 |
-
.acf-range-wrap input[type="number"]{
|
346 |
-
min-width: 3.5em;
|
347 |
-
}
|
348 |
-
|
349 |
-
/*
|
350 |
-
* ACF Field: Advanced Link
|
351 |
-
*/
|
352 |
-
.acf-link.-value .acfe-modal .button{
|
353 |
-
display:inline-block;
|
354 |
-
}
|
355 |
-
|
356 |
-
/*
|
357 |
-
* ACF Field: WYSIWYG
|
358 |
-
*/
|
359 |
-
.acf-editor-wrap iframe{
|
360 |
-
min-height:60px;
|
361 |
-
}
|
362 |
-
|
363 |
-
.acf-editor-wrap .mce-top-part::before{
|
364 |
-
box-shadow:none;
|
365 |
-
}
|
366 |
-
|
367 |
-
.acf-editor-wrap div.mce-statusbar{
|
368 |
-
border:0;
|
369 |
-
}
|
370 |
-
|
371 |
-
.acf-editor-wrap .mce-path-item,
|
372 |
-
.acf-editor-wrap .mce-divider{
|
373 |
-
color:#aaa;
|
374 |
-
}
|
375 |
-
|
376 |
-
/*
|
377 |
-
* ACFE Form
|
378 |
-
*/
|
379 |
-
form.acfe-form.is-invalid[data-hide-error="1"] > .acf-error-message.-dismiss{
|
380 |
-
display:none;
|
381 |
-
}
|
382 |
-
|
383 |
-
form.acfe-form.is-valid[data-hide-revalidation="1"] > .acf-notice.-success{
|
384 |
-
display:none;
|
385 |
-
}
|
386 |
-
|
387 |
-
form.acfe-form.is-invalid[data-errors-position="below"] .acf-field .acf-notice{
|
388 |
-
margin:15px 0 0;
|
389 |
-
}
|
390 |
-
|
391 |
-
/*
|
392 |
-
* ACFE Column
|
393 |
-
*/
|
394 |
-
.acf-fields > .acf-field.acf-field-acfe-column{
|
395 |
-
float: left;
|
396 |
-
clear: none;
|
397 |
-
box-sizing: border-box;
|
398 |
-
padding:0;
|
399 |
-
border-top-width:0;
|
400 |
-
}
|
401 |
-
|
402 |
-
.acf-fields.-left > .acf-field.acf-field-acfe-column{
|
403 |
-
border-right: 1px solid #eee;
|
404 |
-
}
|
405 |
-
|
406 |
-
.acf-fields.-left > .acf-field.acf-field-acfe-column:before{
|
407 |
-
content: "";
|
408 |
-
display: block;
|
409 |
-
position: initial;
|
410 |
-
background: none;
|
411 |
-
border: 0;
|
412 |
-
width: auto;
|
413 |
-
}
|
414 |
-
|
415 |
-
.acf-fields.-left > .acf-field.acf-field-acfe-column > .acf-input{
|
416 |
-
float:none;
|
417 |
-
width:auto;
|
418 |
-
margin:0;
|
419 |
-
padding:0;
|
420 |
-
}
|
421 |
-
|
422 |
-
.acf-fields > .acf-field.acf-field-acfe-column > .acf-input > .acf-fields > .acf-field{
|
423 |
-
border-top-width:0;
|
424 |
-
}
|
425 |
-
|
426 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-endpoint="1"]{
|
427 |
-
clear: both;
|
428 |
-
border-top: 1px solid #eee;
|
429 |
-
width:100%;
|
430 |
-
}
|
431 |
-
|
432 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="1/12"] {
|
433 |
-
width: 8.333333%;
|
434 |
-
}
|
435 |
-
|
436 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="2/12"] {
|
437 |
-
width: 16.66666%;
|
438 |
-
}
|
439 |
-
|
440 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="3/12"] {
|
441 |
-
width: 25%;
|
442 |
-
}
|
443 |
-
|
444 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="4/12"] {
|
445 |
-
width: 33.33333%;
|
446 |
-
}
|
447 |
-
|
448 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="5/12"] {
|
449 |
-
width: 41.66667%;
|
450 |
-
}
|
451 |
-
|
452 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="6/12"] {
|
453 |
-
width: 50%;
|
454 |
-
}
|
455 |
-
|
456 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="7/12"] {
|
457 |
-
width: 58.33333%;
|
458 |
-
}
|
459 |
-
|
460 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="8/12"] {
|
461 |
-
width: 66.66666%;
|
462 |
-
}
|
463 |
-
|
464 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="9/12"] {
|
465 |
-
width: 75%;
|
466 |
-
}
|
467 |
-
|
468 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="10/12"] {
|
469 |
-
width: 83.33333%;
|
470 |
-
}
|
471 |
-
|
472 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="11/12"] {
|
473 |
-
width: 91.66667%;
|
474 |
-
}
|
475 |
-
|
476 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="12/12"] {
|
477 |
-
width: 100%;
|
478 |
-
border-right:0;
|
479 |
-
}
|
480 |
-
|
481 |
-
@media only screen and (max-width:1024px){
|
482 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="1/12"],
|
483 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="2/12"],
|
484 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="3/12"],
|
485 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="4/12"],
|
486 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="5/12"],
|
487 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="7/12"],
|
488 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="8/12"],
|
489 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="9/12"],
|
490 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="10/12"],
|
491 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="11/12"] {
|
492 |
-
width: 50%;
|
493 |
-
}
|
494 |
-
}
|
495 |
-
|
496 |
-
@media only screen and (max-width:640px){
|
497 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="1/12"],
|
498 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="2/12"],
|
499 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="3/12"],
|
500 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="4/12"],
|
501 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="5/12"],
|
502 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="6/12"],
|
503 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="7/12"],
|
504 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="8/12"],
|
505 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="9/12"],
|
506 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="10/12"],
|
507 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="11/12"],
|
508 |
-
.acf-fields > .acf-field.acf-field-acfe-column[data-columns="12/12"] {
|
509 |
-
width: 100%;
|
510 |
-
}
|
511 |
-
}
|
512 |
-
|
513 |
-
/*
|
514 |
-
* ACFE Form: WP Media Modal
|
515 |
-
*/
|
516 |
-
.acf-media-modal .screen-reader-text,
|
517 |
-
.acf-media-modal .screen-reader-text span,
|
518 |
-
.acf-media-modal .ui-helper-hidden-accessible {
|
519 |
-
border: 0;
|
520 |
-
clip: rect(1px,1px,1px,1px);
|
521 |
-
-webkit-clip-path: inset(50%);
|
522 |
-
clip-path: inset(50%);
|
523 |
-
height: 1px;
|
524 |
-
margin: -1px;
|
525 |
-
overflow: hidden;
|
526 |
-
padding: 0;
|
527 |
-
position: absolute;
|
528 |
-
width: 1px;
|
529 |
-
word-wrap: normal!important;
|
530 |
-
}
|
531 |
-
|
532 |
-
/*
|
533 |
-
* ACFE Datepicker
|
534 |
-
*/
|
535 |
-
.acf-ui-datepicker .ui-datepicker {
|
536 |
-
padding: 0;
|
537 |
-
border-color: #7e8993 !important;
|
538 |
-
border-radius: 4px;
|
539 |
-
box-sizing: border-box;
|
540 |
-
background:#fff;
|
541 |
-
}
|
542 |
-
|
543 |
-
.acf-ui-datepicker select{
|
544 |
-
font-size:14px;
|
545 |
-
cursor: pointer;
|
546 |
-
vertical-align: middle;
|
547 |
-
line-height: 2;
|
548 |
-
color: #32373c;
|
549 |
-
border-color: #7e8993;
|
550 |
-
box-shadow: none;
|
551 |
-
border-radius: 3px;
|
552 |
-
padding: 0 24px 0 8px;
|
553 |
-
min-height: 30px;
|
554 |
-
max-width: 25rem;
|
555 |
-
-webkit-appearance: none;
|
556 |
-
background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%;
|
557 |
-
background-size: 16px 16px;
|
558 |
-
}
|
559 |
-
.acf-ui-datepicker .ui-datepicker table {
|
560 |
-
font-size: 13px;
|
561 |
-
margin: 0;
|
562 |
-
margin-bottom:7px;
|
563 |
-
}
|
564 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-header {
|
565 |
-
border: none;
|
566 |
-
background: #F9F9F9;
|
567 |
-
color: #222;
|
568 |
-
font-weight: normal;
|
569 |
-
border-radius: 4px 4px 0;
|
570 |
-
}
|
571 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-header .ui-state-hover {
|
572 |
-
background: #F9F9F9;
|
573 |
-
cursor: pointer;
|
574 |
-
border-radius: 0;
|
575 |
-
border:0;
|
576 |
-
}
|
577 |
-
.acf-ui-datepicker .ui-datepicker thead {
|
578 |
-
background: #F9F9F9;
|
579 |
-
color: #222;
|
580 |
-
}
|
581 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-title {
|
582 |
-
margin-top: .4em;
|
583 |
-
margin-bottom: .3em;
|
584 |
-
color: #222;
|
585 |
-
font-size: 14px;
|
586 |
-
}
|
587 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev-hover,
|
588 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next-hover,
|
589 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next,
|
590 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev {
|
591 |
-
height:20px;
|
592 |
-
width:20px;
|
593 |
-
border: none;
|
594 |
-
overflow: hidden;
|
595 |
-
margin-top:15px;
|
596 |
-
top:0;
|
597 |
-
}
|
598 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev-hover,
|
599 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next-hover{
|
600 |
-
background:none !important;
|
601 |
-
color:#007cba !important;
|
602 |
-
}
|
603 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next{
|
604 |
-
right:7px;
|
605 |
-
}
|
606 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev{
|
607 |
-
left:7px;
|
608 |
-
}
|
609 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span,
|
610 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span {
|
611 |
-
height:20px;
|
612 |
-
width:20px;
|
613 |
-
background:none;
|
614 |
-
position: relative;
|
615 |
-
margin: 0;
|
616 |
-
left: unset;
|
617 |
-
top: unset;
|
618 |
-
font-size:1px;
|
619 |
-
}
|
620 |
-
|
621 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span:before,
|
622 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span:before {
|
623 |
-
display:block;
|
624 |
-
font-family: dashicons;
|
625 |
-
line-height: 1;
|
626 |
-
font-weight: 400;
|
627 |
-
text-indent:0;
|
628 |
-
font-style: normal;
|
629 |
-
speak: none;
|
630 |
-
text-decoration: inherit;
|
631 |
-
text-transform: none;
|
632 |
-
text-rendering: auto;
|
633 |
-
-webkit-font-smoothing: antialiased;
|
634 |
-
-moz-osx-font-smoothing: grayscale;
|
635 |
-
width: 20px;
|
636 |
-
height: 20px;
|
637 |
-
font-size: 16px;
|
638 |
-
vertical-align: top;
|
639 |
-
text-align: center;
|
640 |
-
}
|
641 |
-
|
642 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span:before{
|
643 |
-
content: "\f345";
|
644 |
-
}
|
645 |
-
|
646 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span:before{
|
647 |
-
content: "\f341";
|
648 |
-
}
|
649 |
-
|
650 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-title select{
|
651 |
-
margin:0 3px;
|
652 |
-
}
|
653 |
-
.acf-ui-datepicker .ui-datepicker th {
|
654 |
-
padding: 0.75em 0;
|
655 |
-
color: #222;
|
656 |
-
font-weight: normal;
|
657 |
-
border: none;
|
658 |
-
border-bottom: 1px solid #E1E1E1;
|
659 |
-
background: #F9F9F9;
|
660 |
-
}
|
661 |
-
.acf-ui-datepicker .ui-datepicker td {
|
662 |
-
background: #fff;
|
663 |
-
border: none;
|
664 |
-
padding: 0;
|
665 |
-
}
|
666 |
-
.acf-ui-datepicker .ui-datepicker td .ui-state-default {
|
667 |
-
background: transparent;
|
668 |
-
border: none;
|
669 |
-
text-align: center;
|
670 |
-
padding: .5em;
|
671 |
-
margin: 0;
|
672 |
-
font-weight: normal;
|
673 |
-
color: #333;
|
674 |
-
}
|
675 |
-
.acf-ui-datepicker .ui-datepicker td .ui-state-active,
|
676 |
-
.acf-ui-datepicker .ui-datepicker td .ui-state-hover {
|
677 |
-
background: #007cba;
|
678 |
-
color: #fff;
|
679 |
-
box-shadow:none;
|
680 |
-
}
|
681 |
-
.acf-ui-datepicker .ui-datepicker td.ui-state-disabled,
|
682 |
-
.acf-ui-datepicker .ui-datepicker td.ui-state-disabled .ui-state-default {
|
683 |
-
opacity: 1;
|
684 |
-
color: #999;
|
685 |
-
}
|
686 |
-
.acf-ui-datepicker .ui-datepicker-today .ui-state-highlight {
|
687 |
-
border: none !important;
|
688 |
-
background: #eee !important;
|
689 |
-
font-weight: normal !important;
|
690 |
-
color: #222 !important;
|
691 |
-
}
|
692 |
-
.acf-ui-datepicker .ui-state-highlight.ui-state-active,
|
693 |
-
.acf-ui-datepicker .ui-state-highlight.ui-state-hover {
|
694 |
-
border: none !important;
|
695 |
-
background: #007cba !important;
|
696 |
-
font-weight: normal !important;
|
697 |
-
color: #ffffff !important;
|
698 |
-
}
|
699 |
-
|
700 |
-
.acf-ui-datepicker .ui-state-highlight.ui-state-hover.ui-state-active{
|
701 |
-
background: #007cba !important;
|
702 |
-
}
|
703 |
-
|
704 |
-
.acf-ui-datepicker .ui-timepicker-div{
|
705 |
-
padding:10px 7px !important;
|
706 |
-
}
|
707 |
-
|
708 |
-
.acf-ui-datepicker .ui-timepicker-div .ui-widget-header{
|
709 |
-
background:none !important;
|
710 |
-
border:0 !important;
|
711 |
-
display:none !important;
|
712 |
-
}
|
713 |
-
.acf-ui-datepicker .ui-timepicker-div .ui-widget-header .ui-datepicker-title{
|
714 |
-
font-size:13px !important;
|
715 |
-
font-weight:600 !important;
|
716 |
-
}
|
717 |
-
|
718 |
-
.acf-ui-datepicker .ui-timepicker-div dl{
|
719 |
-
margin:0;
|
720 |
-
text-align:center !important;
|
721 |
-
}
|
722 |
-
|
723 |
-
.acf-ui-datepicker .ui-timepicker-div .ui_tpicker_time_label{
|
724 |
-
display:none !important;
|
725 |
-
}
|
726 |
-
|
727 |
-
.acf-ui-datepicker .ui-timepicker-div select{
|
728 |
-
background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55% !important;
|
729 |
-
background-size: 16px 16px !important;
|
730 |
-
color: #32373c !important;
|
731 |
-
border-color: #7e8993 !important;
|
732 |
-
}
|
733 |
-
|
734 |
-
.acf-ui-datepicker .ui-datepicker-buttonpane{
|
735 |
-
border:0 !important;
|
736 |
-
padding:7px !important;
|
737 |
-
margin:0 !important;
|
738 |
-
background:#f9f9f9 !important;
|
739 |
-
border-top:1px solid #e1e1e1 !important;
|
740 |
-
border-radius:0 0 4px 4px !important;
|
741 |
-
}
|
742 |
-
.acf-ui-datepicker .ui-datepicker-buttonpane:after{
|
743 |
-
content:'';
|
744 |
-
display:block;
|
745 |
-
clear:both;
|
746 |
-
}
|
747 |
-
.acf-ui-datepicker .ui-datepicker-buttonpane button{
|
748 |
-
display: inline-block;
|
749 |
-
text-decoration: none;
|
750 |
-
font-size: 13px !important;
|
751 |
-
line-height: 2.15384615;
|
752 |
-
min-height: 30px;
|
753 |
-
margin: 0 !important;
|
754 |
-
padding: 0 10px !important;
|
755 |
-
cursor: pointer !important;
|
756 |
-
border-width: 1px !important;
|
757 |
-
border-style: solid !important;
|
758 |
-
-webkit-appearance: none;
|
759 |
-
border-radius: 3px;
|
760 |
-
font-weight: normal !important;
|
761 |
-
white-space: nowrap;
|
762 |
-
box-sizing: border-box;
|
763 |
-
color: #0071a1 !important;
|
764 |
-
border-color: #0071a1 !important;
|
765 |
-
background: #f3f5f6 !important;
|
766 |
-
vertical-align: top;
|
767 |
-
box-shadow:none !important;
|
768 |
-
outline: none !important;
|
769 |
-
opacity: unset !important;
|
770 |
-
filter: unset !important;
|
771 |
-
}
|
772 |
-
|
773 |
-
.acf-ui-datepicker .ui-datepicker-buttonpane button:hover{
|
774 |
-
background: #f1f1f1 !important;
|
775 |
-
border-color: #016087 !important;
|
776 |
-
color: #016087 !important;
|
777 |
-
}
|
778 |
-
|
779 |
-
/*
|
780 |
-
* ACF Medium Editor
|
781 |
-
*/
|
782 |
-
body .medium-editor-toolbar {
|
783 |
-
z-index: 999999 !important;
|
784 |
-
}
|
785 |
-
/*
|
786 |
-
* Flexible: Sortable
|
787 |
-
*/
|
788 |
-
.acf-flexible-content > .values > .ui-sortable-placeholder{
|
789 |
-
/*height:147px;*/
|
790 |
-
border-width:2px;
|
791 |
-
border-color:#ccc;
|
792 |
-
}
|
793 |
-
|
794 |
-
/*
|
795 |
-
* Flexible: Layout Handle
|
796 |
-
*/
|
797 |
-
.acf-flexible-content .layout .acf-fc-layout-handle {
|
798 |
-
color: #444;
|
799 |
-
font-weight: 600;
|
800 |
-
}
|
801 |
-
|
802 |
-
/*
|
803 |
-
* Flexible: Field Error
|
804 |
-
*/
|
805 |
-
.layout.acfe-flexible-modal-edit-error > .acf-fc-layout-handle{
|
806 |
-
color:#f33b28;
|
807 |
-
}
|
808 |
-
|
809 |
-
.layout.acfe-flexible-modal-edit-error > .acf-fc-layout-handle > .acf-fc-layout-order{
|
810 |
-
background:#f33b28;
|
811 |
-
color:#fff;
|
812 |
-
}
|
813 |
-
|
814 |
-
/*
|
815 |
-
* Flexible: Layout Collapsed
|
816 |
-
*/
|
817 |
-
|
818 |
-
.acf-field-flexible-content[data-acfe-flexible-modal-edition="1"]:not([data-acfe-flexible-placeholder="1"]):not([data-acfe-flexible-preview="1"]) > .acf-input > .acf-flexible-content > .values > .layout > .acf-fc-layout-handle{
|
819 |
-
border-bottom-width:0;
|
820 |
-
}
|
821 |
-
|
822 |
-
|
823 |
-
.acf-field-flexible-content[data-acfe-flexible-placeholder="1"] > .acf-input > .acf-flexible-content > .values > .layout.-collapsed > .acf-fc-layout-handle,
|
824 |
-
.acf-field-flexible-content[data-acfe-flexible-preview="1"] > .acf-input > .acf-flexible-content > .values > .layout.-collapsed > .acf-fc-layout-handle{
|
825 |
-
border-bottom-width:1px;
|
826 |
-
}
|
827 |
-
|
828 |
-
.acf-field-flexible-content[data-acfe-flexible-lock="1"] > .acf-input > .acf-flexible-content > .values > .layout > .acf-fc-layout-handle{
|
829 |
-
cursor:initial;
|
830 |
-
}
|
831 |
-
|
832 |
-
.acf-field-flexible-content[data-acfe-flexible-remove-collapse="1"]:not([data-acfe-flexible-lock="1"]) > .acf-input > .acf-flexible-content > .values > .layout > .acf-fc-layout-handle{
|
833 |
-
cursor:initial;
|
834 |
-
}
|
835 |
-
|
836 |
-
/*
|
837 |
-
* Flexible: Popup Grey
|
838 |
-
*/
|
839 |
-
.acf-fc-popup.top.acfe-fc-popup-grey:before{
|
840 |
-
border-top-color: #e1e1e1;
|
841 |
-
}
|
842 |
-
.acf-tooltip.bottom.acfe-fc-popup-grey:before{
|
843 |
-
border-bottom-color: #e1e1e1;
|
844 |
-
}
|
845 |
-
.acf-fc-popup.acfe-fc-popup-grey{
|
846 |
-
background: #fcfcfc;
|
847 |
-
border-radius: 3px;
|
848 |
-
color: #444;
|
849 |
-
border: 1px solid #e1e1e1;
|
850 |
-
font-size: 13px;
|
851 |
-
}
|
852 |
-
.acf-tooltip.top.acfe-fc-popup-grey{
|
853 |
-
margin-top: -16px;
|
854 |
-
}
|
855 |
-
.acf-tooltip.bottom.acfe-fc-popup-grey{
|
856 |
-
margin-bottom: -16px;
|
857 |
-
}
|
858 |
-
|
859 |
-
.acf-fc-popup.acfe-fc-popup-grey a{
|
860 |
-
color: #444;
|
861 |
-
}
|
862 |
-
|
863 |
-
.acf-fc-popup.acfe-fc-popup-grey a:hover{
|
864 |
-
color: #fff;
|
865 |
-
}
|
866 |
-
|
867 |
-
/*
|
868 |
-
* Flexible Layout: Placeholder
|
869 |
-
*/
|
870 |
-
.layout > .acfe-fc-placeholder{
|
871 |
-
text-align:center;
|
872 |
-
background:#f9f9f9;
|
873 |
-
display:block;
|
874 |
-
text-decoration:none;
|
875 |
-
position:relative;
|
876 |
-
cursor:pointer;
|
877 |
-
}
|
878 |
-
|
879 |
-
.layout > .acfe-fc-placeholder:focus{
|
880 |
-
border-color: #ccc;
|
881 |
-
box-shadow: none;
|
882 |
-
}
|
883 |
-
|
884 |
-
.layout > .acfe-fc-placeholder > .acfe-flexible-placeholder{
|
885 |
-
height:110px;
|
886 |
-
overflow:hidden;
|
887 |
-
text-align:initial;
|
888 |
-
}
|
889 |
-
|
890 |
-
.layout > .acfe-fc-placeholder > a{
|
891 |
-
z-index:2;
|
892 |
-
position:absolute;
|
893 |
-
top:50%;
|
894 |
-
left:50%;
|
895 |
-
transform:translate(-50%, -50%);
|
896 |
-
border-color: #ccd0d4;
|
897 |
-
color: #23282d;
|
898 |
-
border-radius:100px;
|
899 |
-
box-shadow:none;
|
900 |
-
background:#fff;
|
901 |
-
width: 30px;
|
902 |
-
min-height: 30px;
|
903 |
-
height: 30px;
|
904 |
-
padding:0;
|
905 |
-
display:block;
|
906 |
-
}
|
907 |
-
|
908 |
-
body:not(.acf-admin-5-3) .layout > .acfe-fc-placeholder > a{
|
909 |
-
border-color: #999;
|
910 |
-
}
|
911 |
-
|
912 |
-
.acfe-modal.-open.acfe-modal-sub > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields > .acf-field-flexible-content > .acf-input > .acf-flexible-content > .values > .layout > .acfe-fc-placeholder > a{
|
913 |
-
z-index:0;
|
914 |
-
}
|
915 |
-
|
916 |
-
.layout > .acfe-fc-placeholder > a:active{
|
917 |
-
transform:translate(-50%, -50%);
|
918 |
-
}
|
919 |
-
|
920 |
-
.layout > .acfe-fc-placeholder > a:focus{
|
921 |
-
border-color: #cccccc;
|
922 |
-
box-shadow: none;
|
923 |
-
}
|
924 |
-
|
925 |
-
.layout > .acfe-fc-placeholder > a span{
|
926 |
-
width: 29px;
|
927 |
-
height: 30px;
|
928 |
-
vertical-align:top;
|
929 |
-
line-height: 28px;
|
930 |
-
font-size:18px;
|
931 |
-
}
|
932 |
-
|
933 |
-
body:not(.acf-admin-5-3) .layout > .acfe-fc-placeholder > a span{
|
934 |
-
width: 30px;
|
935 |
-
height: 30px;
|
936 |
-
}
|
937 |
-
|
938 |
-
.layout > .acfe-fc-placeholder.acfe-fc-preview{
|
939 |
-
background:none;
|
940 |
-
}
|
941 |
-
|
942 |
-
.layout > .acfe-fc-placeholder.acfe-fc-preview > .acfe-flexible-placeholder{
|
943 |
-
min-height:55px;
|
944 |
-
height:auto;
|
945 |
-
}
|
946 |
-
|
947 |
-
.layout > .acfe-fc-placeholder.acfe-fc-preview > a{
|
948 |
-
display:none;
|
949 |
-
}
|
950 |
-
|
951 |
-
.layout > .acfe-fc-placeholder.acfe-fc-preview:hover > a{
|
952 |
-
display:block;
|
953 |
-
}
|
954 |
-
|
955 |
-
.layout > .acfe-fc-placeholder.acfe-fc-preview.-loading{
|
956 |
-
background:#f9f9f9;
|
957 |
-
min-height:110px;
|
958 |
-
}
|
959 |
-
|
960 |
-
.layout > .acfe-fc-placeholder.acfe-fc-preview.-loading > .acfe-flexible-placeholder > .spinner{
|
961 |
-
visibility:visible;
|
962 |
-
float:none;
|
963 |
-
position:absolute;
|
964 |
-
top:50%;
|
965 |
-
left:50%;
|
966 |
-
transform:translate(-50%, -50%);
|
967 |
-
margin:0;
|
968 |
-
z-index:10000;
|
969 |
-
}
|
970 |
-
|
971 |
-
.layout > .acfe-fc-placeholder .acfe-fc-overlay{
|
972 |
-
position:absolute;
|
973 |
-
width:100%;
|
974 |
-
height:100%;
|
975 |
-
padding:0;
|
976 |
-
background-color:rgba(255,255,255,0);
|
977 |
-
transition: background-color 200ms linear;
|
978 |
-
}
|
979 |
-
|
980 |
-
.layout > .acfe-fc-placeholder:hover .acfe-fc-overlay,
|
981 |
-
.layout > .acfe-fc-placeholder .acfe-fc-overlay.-hover{
|
982 |
-
background-color:rgba(255,255,255,0.7);
|
983 |
-
z-index:1;
|
984 |
-
}
|
985 |
-
|
986 |
-
.layout > .acfe-fc-placeholder.acfe-fc-preview.-loading > a span{
|
987 |
-
visibility:hidden;
|
988 |
-
}
|
989 |
-
|
990 |
-
/*
|
991 |
-
* Flexible Layout Collapsed
|
992 |
-
*/
|
993 |
-
.layout > .acf-fields > .acfe-flexible-opened-actions,
|
994 |
-
.layout > .acf-table > .acfe-flexible-opened-actions{
|
995 |
-
background:#f9f9f9;
|
996 |
-
border-top:1px solid #e1e1e1;
|
997 |
-
padding:12px;
|
998 |
-
text-align:right;
|
999 |
-
clear:both;
|
1000 |
-
}
|
1001 |
-
|
1002 |
-
/*
|
1003 |
-
* Flexible Thumbnails
|
1004 |
-
*
|
1005 |
-
*/
|
1006 |
-
.acfe-flexible-layout-thumbnail{
|
1007 |
-
display:block;
|
1008 |
-
width:100%;
|
1009 |
-
height: 9.8vw; /* 200px / 1080p */
|
1010 |
-
background-color:#eee;
|
1011 |
-
background-size:cover;
|
1012 |
-
background-repeat:no-repeat;
|
1013 |
-
background-position:center;
|
1014 |
-
position:relative;
|
1015 |
-
margin-bottom:15px;
|
1016 |
-
}
|
1017 |
-
|
1018 |
-
.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-not-found:after{
|
1019 |
-
content: "\f180";
|
1020 |
-
font-family: dashicons;
|
1021 |
-
display: inline-block;
|
1022 |
-
line-height: 1;
|
1023 |
-
font-weight: 400;
|
1024 |
-
font-style: normal;
|
1025 |
-
speak: none;
|
1026 |
-
text-decoration: inherit;
|
1027 |
-
text-transform: none;
|
1028 |
-
text-rendering: auto;
|
1029 |
-
-webkit-font-smoothing: antialiased;
|
1030 |
-
-moz-osx-font-smoothing: grayscale;
|
1031 |
-
vertical-align: top;
|
1032 |
-
text-align: center;
|
1033 |
-
position:absolute;
|
1034 |
-
top:50%;
|
1035 |
-
left:50%;
|
1036 |
-
transform: translate(-50%, -50%);
|
1037 |
-
color:#ccc;
|
1038 |
-
font-size: 110px;
|
1039 |
-
}
|
1040 |
-
|
1041 |
-
.acfe-col-2 .acfe-flexible-layout-thumbnail{
|
1042 |
-
height:20.5vw;
|
1043 |
-
}
|
1044 |
-
|
1045 |
-
.acfe-col-3 .acfe-flexible-layout-thumbnail{
|
1046 |
-
height:13.3vw;
|
1047 |
-
}
|
1048 |
-
|
1049 |
-
.acfe-col-5 .acfe-flexible-layout-thumbnail{
|
1050 |
-
height:7.65vw;
|
1051 |
-
}
|
1052 |
-
|
1053 |
-
.acfe-col-6 .acfe-flexible-layout-thumbnail{
|
1054 |
-
height:6.2vw;
|
1055 |
-
}
|
1056 |
-
|
1057 |
-
@media only screen and (max-width:960px){
|
1058 |
-
.acfe-flexible-layout-thumbnail,
|
1059 |
-
.acfe-flex-container .acfe-flexible-layout-thumbnail{
|
1060 |
-
height: 18.4vw; /* 200px */
|
1061 |
-
}
|
1062 |
-
}
|
1063 |
-
|
1064 |
-
@media only screen and (max-width:720px){
|
1065 |
-
.acfe-flexible-layout-thumbnail,
|
1066 |
-
.acfe-flex-container .acfe-flexible-layout-thumbnail{
|
1067 |
-
height: 37.2vw; /* 200px */
|
1068 |
-
}
|
1069 |
-
}
|
1070 |
-
|
1071 |
-
/*
|
1072 |
-
* Flexible Thumbnails (no modal)
|
1073 |
-
*
|
1074 |
-
*/
|
1075 |
-
.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-no-modal{
|
1076 |
-
display:block;
|
1077 |
-
width: 230px;
|
1078 |
-
height: 103px;
|
1079 |
-
background-color:#1f2329;
|
1080 |
-
}
|
1081 |
-
|
1082 |
-
.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-no-modal.acfe-flexible-layout-thumbnail-not-found:after{
|
1083 |
-
color:#2F353E;
|
1084 |
-
}
|
1085 |
-
|
1086 |
-
/*
|
1087 |
-
* Flexible Stylised Button
|
1088 |
-
*
|
1089 |
-
*/
|
1090 |
-
.acf-field.acf-field-flexible-content[data-acfe-flexible-stylised-button="1"] > .acf-input > .acf-flexible-content:not(.empty) > .values{
|
1091 |
-
margin-bottom:15px;
|
1092 |
-
}
|
1093 |
-
|
1094 |
-
.acf-field.acf-field-flexible-content > .acf-input > .acf-flexible-content > .acfe-flexible-stylised-button{
|
1095 |
-
padding: 40px 20px;
|
1096 |
-
border: #ccc dashed 2px;
|
1097 |
-
text-align: center;
|
1098 |
-
}
|
1099 |
-
|
1100 |
-
.acf-field.acf-field-flexible-content > .acf-input > .acf-flexible-content > .acfe-flexible-stylised-button > .acf-actions{
|
1101 |
-
text-align: center;
|
1102 |
-
}
|
1103 |
-
|
1104 |
-
.acf-field.acf-field-flexible-content > .acf-input > .acf-flexible-content .acf-actions .acf-button .dashicons{
|
1105 |
-
width: auto;
|
1106 |
-
height: auto;
|
1107 |
-
vertical-align: text-top;
|
1108 |
-
}
|
1109 |
-
|
1110 |
-
/*
|
1111 |
-
* Flexible Hide Empty Message
|
1112 |
-
*
|
1113 |
-
*/
|
1114 |
-
.acf-field.acf-field-flexible-content[data-acfe-flexible-hide-empty-message="1"] > .acf-input > .acf-flexible-content > .no-value-message{
|
1115 |
-
display:none;
|
1116 |
-
}
|
1117 |
-
|
1118 |
-
.acf-field.acf-field-flexible-content[data-acfe-flexible-hide-empty-message="1"] > .acf-input > .acf-flexible-content.-empty > .values{
|
1119 |
-
margin-bottom:0;
|
1120 |
-
}
|
1121 |
-
/*
|
1122 |
-
* ACFE: Flexible Icons
|
1123 |
-
*/
|
1124 |
-
.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons:before{
|
1125 |
-
font-family: dashicons;
|
1126 |
-
}
|
1127 |
-
|
1128 |
-
.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons{
|
1129 |
-
visibility: hidden;
|
1130 |
-
}
|
1131 |
-
|
1132 |
-
.acf-flexible-content .layout:hover > .acf-fc-layout-controls .acf-icon.acfe-flexible-icon.dashicons{
|
1133 |
-
visibility: visible;
|
1134 |
-
}
|
1135 |
-
|
1136 |
-
.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons.dashicons-admin-generic{
|
1137 |
-
visibility: visible;
|
1138 |
-
}
|
1139 |
-
.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons.dashicons-admin-generic:before{
|
1140 |
-
margin-left: 1px;
|
1141 |
-
}
|
1142 |
-
|
1143 |
-
.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-plus,
|
1144 |
-
.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-minus,
|
1145 |
-
.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-duplicate,
|
1146 |
-
.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-plus,
|
1147 |
-
.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-minus,
|
1148 |
-
.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-duplicate {
|
1149 |
-
visibility: hidden;
|
1150 |
-
}
|
1151 |
-
|
1152 |
-
.acf-flexible-content .layout:hover > .acf-fc-layout-controls .acf-icon.-plus,
|
1153 |
-
.acf-flexible-content .layout:hover > .acf-fc-layout-controls .acf-icon.-minus,
|
1154 |
-
.acf-flexible-content .layout:hover > .acf-fc-layout-controls .acf-icon.-duplicate,
|
1155 |
-
.acf-flexible-content .layout.-hover > .acf-fc-layout-controls .acf-icon.-plus,
|
1156 |
-
.acf-flexible-content .layout.-hover > .acf-fc-layout-controls .acf-icon.-minus,
|
1157 |
-
.acf-flexible-content .layout.-hover > .acf-fc-layout-controls .acf-icon.-duplicate {
|
1158 |
-
visibility: visible;
|
1159 |
-
}
|
1160 |
-
|
1161 |
-
.acf-flexible-content .layout > .acf-fc-layout-controls .acf-icon.disabled{
|
1162 |
-
color: #ccc;
|
1163 |
-
cursor: initial;
|
1164 |
-
}
|
1165 |
-
|
1166 |
-
.acf-flexible-content .layout > .acf-fc-layout-controls .acf-icon.disabled:hover{
|
1167 |
-
color: #ccc;
|
1168 |
-
background: #F5F5F5;
|
1169 |
-
}
|
1170 |
-
|
1171 |
-
.acf-flexible-content[data-acfe-flexible-lock="1"] .layout .acf-fc-layout-handle{
|
1172 |
-
cursor:initial;
|
1173 |
-
}
|
1174 |
-
|
1175 |
-
|
1176 |
-
/*
|
1177 |
-
* ACFE: Title Edit
|
1178 |
-
*/
|
1179 |
-
.acf-field-acfe-flexible-layout-title{
|
1180 |
-
display:none;
|
1181 |
-
}
|
1182 |
-
|
1183 |
-
input.acfe-flexible-control-title{
|
1184 |
-
border:none;
|
1185 |
-
box-shadow:none !important;
|
1186 |
-
outline:none !important;
|
1187 |
-
border-radius:0;
|
1188 |
-
border-bottom:1px solid transparent !important;
|
1189 |
-
font-weight:600;
|
1190 |
-
width:auto !important;
|
1191 |
-
padding:0 !important;
|
1192 |
-
display:none;
|
1193 |
-
min-height:20px;
|
1194 |
-
vertical-align: unset;
|
1195 |
-
background:none;
|
1196 |
-
}
|
1197 |
-
|
1198 |
-
.layout > .acf-fc-layout-handle .acfe-layout-title{
|
1199 |
-
cursor:text;
|
1200 |
-
position:relative;
|
1201 |
-
}
|
1202 |
-
|
1203 |
-
.layout:not(.acfe-flexible-title-edition) > .acf-fc-layout-handle .acfe-layout-title:hover{
|
1204 |
-
background:#f4f4f4;
|
1205 |
-
}
|
1206 |
-
|
1207 |
-
.layout.acfe-flexible-title-edition > .acf-fc-layout-handle .acfe-layout-title input.acfe-flexible-control-title{
|
1208 |
-
display:inline-block;
|
1209 |
-
border-bottom:1px solid #ddd !important;
|
1210 |
-
}
|
1211 |
-
|
1212 |
-
.layout.acfe-flexible-title-edition > .acf-fc-layout-handle .acfe-layout-title .acfe-layout-title-text{
|
1213 |
-
display:none;
|
1214 |
-
}
|
1215 |
-
|
1216 |
-
/*
|
1217 |
-
* ACFE: Toggle
|
1218 |
-
*/
|
1219 |
-
.layout.acfe-flexible-layout-hidden > .acf-fc-layout-handle,
|
1220 |
-
.layout.acfe-flexible-layout-hidden > .acf-fc-layout-controls,
|
1221 |
-
.layout.acfe-flexible-layout-hidden > .acfe-fc-placeholder,
|
1222 |
-
.layout.acfe-flexible-layout-hidden > .acf-fields{
|
1223 |
-
filter: alpha(opacity=50);
|
1224 |
-
opacity: 0.5;
|
1225 |
-
}
|
1226 |
-
/*
|
1227 |
-
* Flexible Edit: Hide Collapse
|
1228 |
-
*/
|
1229 |
-
.acf-field-flexible-content[data-acfe-flexible-modal-edition="1"] > .acf-input > .acf-flexible-content > .values > .layout > .acf-fc-layout-controls > a.-collapse{
|
1230 |
-
display:none;
|
1231 |
-
}
|
1232 |
-
|
1233 |
-
/*
|
1234 |
-
* ACFE Modal Body
|
1235 |
-
*/
|
1236 |
-
body.acfe-modal-opened{
|
1237 |
-
overflow:hidden;
|
1238 |
-
}
|
1239 |
-
|
1240 |
-
/*
|
1241 |
-
* ACFE Modal Overlay
|
1242 |
-
*/
|
1243 |
-
.acfe-modal-overlay{
|
1244 |
-
background:rgba(0,0,0,.7);
|
1245 |
-
position:fixed;
|
1246 |
-
top:0;
|
1247 |
-
left:0;
|
1248 |
-
right:0;
|
1249 |
-
bottom:0;
|
1250 |
-
height:100%;
|
1251 |
-
width:100%;
|
1252 |
-
z-index:100000;
|
1253 |
-
}
|
1254 |
-
|
1255 |
-
/*
|
1256 |
-
* ACFE Modal
|
1257 |
-
*/
|
1258 |
-
.acfe-modal{
|
1259 |
-
display:none;
|
1260 |
-
transition: all 0.3s ease-in-out;
|
1261 |
-
}
|
1262 |
-
|
1263 |
-
.acfe-modal.-open{
|
1264 |
-
position:fixed;
|
1265 |
-
z-index:100001;
|
1266 |
-
height:100%;
|
1267 |
-
width:100%;
|
1268 |
-
top:0;
|
1269 |
-
left:0;
|
1270 |
-
bottom:0;
|
1271 |
-
right:0;
|
1272 |
-
-webkit-font-smoothing: subpixel-antialiased;
|
1273 |
-
display: flex;
|
1274 |
-
flex-direction: column;
|
1275 |
-
justify-content: center;
|
1276 |
-
align-items: center;
|
1277 |
-
|
1278 |
-
pointer-events:none;
|
1279 |
-
}
|
1280 |
-
|
1281 |
-
/*
|
1282 |
-
* ACFE Modal: Wrapper
|
1283 |
-
*/
|
1284 |
-
.acfe-modal.-open > .acfe-modal-wrapper{
|
1285 |
-
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
|
1286 |
-
display: flex;
|
1287 |
-
flex-direction: column;
|
1288 |
-
|
1289 |
-
width: calc(100vw - 60px);
|
1290 |
-
max-width:1100px;
|
1291 |
-
max-height: calc(100vh - 60px);
|
1292 |
-
position:relative;
|
1293 |
-
}
|
1294 |
-
|
1295 |
-
.acfe-modal.-open.acfe-modal-sub > .acfe-modal-wrapper > .acfe-modal-wrapper-overlay{
|
1296 |
-
position:absolute;
|
1297 |
-
z-index:10;
|
1298 |
-
background:rgba(0,0,0,0.7);
|
1299 |
-
height:100%;
|
1300 |
-
width:100%;
|
1301 |
-
pointer-events:none;
|
1302 |
-
}
|
1303 |
-
|
1304 |
-
/*
|
1305 |
-
* ACFE Modal: Sizes
|
1306 |
-
*/
|
1307 |
-
.acfe-modal.-open.-small > .acfe-modal-wrapper{
|
1308 |
-
max-width:450px;
|
1309 |
-
}
|
1310 |
-
|
1311 |
-
.acfe-modal.-open.-medium > .acfe-modal-wrapper{
|
1312 |
-
max-width:700px;
|
1313 |
-
}
|
1314 |
-
|
1315 |
-
.acfe-modal.-open.-large > .acfe-modal-wrapper{
|
1316 |
-
max-width:1100px;
|
1317 |
-
}
|
1318 |
-
|
1319 |
-
.acfe-modal.-open.-xlarge > .acfe-modal-wrapper{
|
1320 |
-
max-width:1400px;
|
1321 |
-
}
|
1322 |
-
|
1323 |
-
.acfe-modal.-open.-full > .acfe-modal-wrapper{
|
1324 |
-
max-width:100%;
|
1325 |
-
flex: 1;
|
1326 |
-
}
|
1327 |
-
|
1328 |
-
/*
|
1329 |
-
* ACFE Modal Full: Fix left fields background
|
1330 |
-
*/
|
1331 |
-
.acfe-modal.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields.-left {
|
1332 |
-
height:100%;
|
1333 |
-
}
|
1334 |
-
|
1335 |
-
.acfe-modal.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields.-left:before {
|
1336 |
-
content: "";
|
1337 |
-
display: block;
|
1338 |
-
position: absolute;
|
1339 |
-
z-index: 0;
|
1340 |
-
background: #F9F9F9;
|
1341 |
-
border-color: #E1E1E1;
|
1342 |
-
border-style: solid;
|
1343 |
-
border-width: 0 1px 0 0;
|
1344 |
-
top: 0;
|
1345 |
-
bottom: 0;
|
1346 |
-
left: 0;
|
1347 |
-
width: 20%;
|
1348 |
-
}
|
1349 |
-
|
1350 |
-
/*
|
1351 |
-
* ACFE Modal Full: Fix Layout Settings background
|
1352 |
-
*/
|
1353 |
-
.acfe-modal.-settings.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields,
|
1354 |
-
.acfe-modal.-settings.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields > .acf-field-clone,
|
1355 |
-
.acfe-modal.-settings.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields > .acf-field-clone > .acf-input,
|
1356 |
-
.acfe-modal.-settings.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields > .acf-field-clone > .acf-input > .acf-clone-fields.acf-fields.-left{
|
1357 |
-
height:100%;
|
1358 |
-
}
|
1359 |
-
|
1360 |
-
.acfe-modal.-settings.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields > .acf-field-clone{
|
1361 |
-
padding:0;
|
1362 |
-
}
|
1363 |
-
|
1364 |
-
.acfe-modal.-settings.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields > .acf-field-clone > .acf-input{
|
1365 |
-
margin:0;
|
1366 |
-
}
|
1367 |
-
|
1368 |
-
.acfe-modal.-settings.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields > .acf-field-clone > .acf-input > .acf-clone-fields.acf-fields.-left:before {
|
1369 |
-
content: "";
|
1370 |
-
display: block;
|
1371 |
-
position: absolute;
|
1372 |
-
z-index: 0;
|
1373 |
-
background: #F9F9F9;
|
1374 |
-
border-color: #E1E1E1;
|
1375 |
-
border-style: solid;
|
1376 |
-
border-width: 0 1px 0 0;
|
1377 |
-
top: 0;
|
1378 |
-
bottom: 0;
|
1379 |
-
left: 0;
|
1380 |
-
width: 20%;
|
1381 |
-
}
|
1382 |
-
|
1383 |
-
/*
|
1384 |
-
* ACFE Modal Title
|
1385 |
-
*/
|
1386 |
-
.acfe-modal.-open >.acfe-modal-title,
|
1387 |
-
.acfe-modal.-open .acfe-modal-title *{
|
1388 |
-
box-sizing:border-box;
|
1389 |
-
}
|
1390 |
-
|
1391 |
-
.acfe-modal.-open .acfe-modal-title{
|
1392 |
-
display:block;
|
1393 |
-
height: 50px;
|
1394 |
-
line-height: 50px;
|
1395 |
-
font-size: 22px;
|
1396 |
-
color: #23282d;
|
1397 |
-
border-bottom: 1px solid #ddd;
|
1398 |
-
text-overflow: ellipsis;
|
1399 |
-
background: #fcfcfc;
|
1400 |
-
padding: 0 0 0 16px;
|
1401 |
-
position:relative;
|
1402 |
-
text-align:left;
|
1403 |
-
pointer-events: auto;
|
1404 |
-
}
|
1405 |
-
|
1406 |
-
.acfe-modal.-open.acfe-modal-sub > .acfe-modal-wrapper > .acfe-modal-title{
|
1407 |
-
pointer-events: none;
|
1408 |
-
}
|
1409 |
-
|
1410 |
-
.acfe-modal.-open .acfe-modal-title > span.title{
|
1411 |
-
line-height: 50px;
|
1412 |
-
color: #23282d;
|
1413 |
-
font-weight: 600;
|
1414 |
-
}
|
1415 |
-
|
1416 |
-
.acfe-modal.-open .acfe-modal-title > span.title .acf-fc-layout-order{
|
1417 |
-
width: 30px;
|
1418 |
-
height: 30px;
|
1419 |
-
border-radius: 30px;
|
1420 |
-
display: inline-block;
|
1421 |
-
text-align: center;
|
1422 |
-
line-height: 30px;
|
1423 |
-
margin: 0 2px 0 0;
|
1424 |
-
background: #F1F1F1;
|
1425 |
-
font-size: 14px;
|
1426 |
-
color: #666;
|
1427 |
-
vertical-align: 2px;
|
1428 |
-
}
|
1429 |
-
|
1430 |
-
.acfe-modal.-open .acfe-modal-title > button.close{
|
1431 |
-
height: 50px;
|
1432 |
-
width: 50px;
|
1433 |
-
color: #666;
|
1434 |
-
border:0;
|
1435 |
-
border-left: 0;
|
1436 |
-
margin: 0;
|
1437 |
-
padding:0;
|
1438 |
-
border-radius: 0;
|
1439 |
-
position: absolute;
|
1440 |
-
top:0;
|
1441 |
-
right:0;
|
1442 |
-
transition: color .1s ease-in-out, background .1s ease-in-out;
|
1443 |
-
background:none;
|
1444 |
-
cursor:pointer;
|
1445 |
-
margin: 0;
|
1446 |
-
}
|
1447 |
-
|
1448 |
-
.acfe-modal.-open .acfe-modal-title > button.close:hover{
|
1449 |
-
color: #00a0d2;
|
1450 |
-
}
|
1451 |
-
|
1452 |
-
.acfe-modal.-open .acfe-modal-title > button.close:before{
|
1453 |
-
height: 50px;
|
1454 |
-
width: 50px;
|
1455 |
-
line-height: 50px !important;
|
1456 |
-
font: normal 20px/1 dashicons;
|
1457 |
-
content: "\f158";
|
1458 |
-
margin: 0;
|
1459 |
-
padding:0;
|
1460 |
-
}
|
1461 |
-
|
1462 |
-
/*
|
1463 |
-
* ACFE Modal Content
|
1464 |
-
*/
|
1465 |
-
.acfe-modal.-open .acfe-modal-content{
|
1466 |
-
height:100%;
|
1467 |
-
background:#fff;
|
1468 |
-
display:block;
|
1469 |
-
position:relative;
|
1470 |
-
pointer-events: auto;
|
1471 |
-
overflow:auto;
|
1472 |
-
}
|
1473 |
-
|
1474 |
-
.acfe-modal.-open.-iframe .acfe-modal-content{
|
1475 |
-
overflow:hidden;
|
1476 |
-
}
|
1477 |
-
|
1478 |
-
.acfe-modal.-open.acfe-modal-sub > .acfe-modal-wrapper > .acfe-modal-content{
|
1479 |
-
pointer-events: none;
|
1480 |
-
}
|
1481 |
-
|
1482 |
-
/*
|
1483 |
-
* ACFE Modal Content: Tabs
|
1484 |
-
*/
|
1485 |
-
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper{
|
1486 |
-
padding:0;
|
1487 |
-
margin:0;
|
1488 |
-
border-bottom:1px solid #ddd;
|
1489 |
-
}
|
1490 |
-
|
1491 |
-
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a{
|
1492 |
-
margin:0;
|
1493 |
-
border-left:0;
|
1494 |
-
border-top:0;
|
1495 |
-
border-bottom:0;
|
1496 |
-
background:#fff;
|
1497 |
-
transition:color .1s ease-in-out, background .1s ease-in-out;
|
1498 |
-
padding:7px 15px;
|
1499 |
-
border-color:#ddd;
|
1500 |
-
}
|
1501 |
-
|
1502 |
-
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a span.dashicons-menu{
|
1503 |
-
line-height:27px;
|
1504 |
-
}
|
1505 |
-
|
1506 |
-
.acfe-modal.-open > .acfe-modal-content .nav-tab-wrapper a:hover{
|
1507 |
-
background:#f9f9f9;
|
1508 |
-
color:#23282d;
|
1509 |
-
}
|
1510 |
-
|
1511 |
-
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a.nav-tab-active,
|
1512 |
-
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a.nav-tab-active:hover{
|
1513 |
-
background:#fcfcfc;
|
1514 |
-
color:#23282d;
|
1515 |
-
}
|
1516 |
-
|
1517 |
-
.acfe-modal.-open .acfe-modal-content .nav-tab:focus,
|
1518 |
-
.acfe-modal.-open .acfe-modal-content .nav-tab:focus:active {
|
1519 |
-
border-bottom: 0;
|
1520 |
-
box-shadow: none;
|
1521 |
-
outline:0;
|
1522 |
-
}
|
1523 |
-
|
1524 |
-
/*
|
1525 |
-
* ACFE Modal Content: Flex
|
1526 |
-
*/
|
1527 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container,
|
1528 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container *{
|
1529 |
-
box-sizing:border-box;
|
1530 |
-
}
|
1531 |
-
|
1532 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container{
|
1533 |
-
width: 100%;
|
1534 |
-
padding: 14px;
|
1535 |
-
margin-right: auto;
|
1536 |
-
margin-left: auto;
|
1537 |
-
}
|
1538 |
-
|
1539 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flexible-categories ~ .acfe-flex-container{
|
1540 |
-
overflow:auto;
|
1541 |
-
height:calc(100% - 39px);
|
1542 |
-
}
|
1543 |
-
|
1544 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul{
|
1545 |
-
margin: 0;
|
1546 |
-
margin-right: -7px;
|
1547 |
-
margin-left: -7px;
|
1548 |
-
display: flex;
|
1549 |
-
flex-wrap: wrap;
|
1550 |
-
}
|
1551 |
-
|
1552 |
-
.acfe-modal.-open >.acfe-modal-content .acfe-flex-container ul:after{
|
1553 |
-
content:"";
|
1554 |
-
clear:both;
|
1555 |
-
display:table;
|
1556 |
-
}
|
1557 |
-
|
1558 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li{
|
1559 |
-
position: relative;
|
1560 |
-
width: 100%;
|
1561 |
-
padding-right: 7px;
|
1562 |
-
padding-left: 7px;
|
1563 |
-
padding-bottom: 14px;
|
1564 |
-
margin:0;
|
1565 |
-
flex: 0 0 25%;
|
1566 |
-
max-width: 25%;
|
1567 |
-
}
|
1568 |
-
|
1569 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a{
|
1570 |
-
border:1px solid #ddd;
|
1571 |
-
background:#F9F9F9;
|
1572 |
-
padding:15px;
|
1573 |
-
color:#333;
|
1574 |
-
display:block;
|
1575 |
-
text-decoration:none;
|
1576 |
-
}
|
1577 |
-
|
1578 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover{
|
1579 |
-
background:#007cba;
|
1580 |
-
color:#fff;
|
1581 |
-
}
|
1582 |
-
|
1583 |
-
body:not(.acf-admin-5-3) .acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover{
|
1584 |
-
background:#0073aa;
|
1585 |
-
}
|
1586 |
-
|
1587 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span{
|
1588 |
-
display:block;
|
1589 |
-
font-size:16px;
|
1590 |
-
text-align:center;
|
1591 |
-
font-weight:600;
|
1592 |
-
}
|
1593 |
-
|
1594 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span.no-thumbnail{
|
1595 |
-
text-align:left;
|
1596 |
-
}
|
1597 |
-
|
1598 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled{
|
1599 |
-
pointer-events:none;
|
1600 |
-
opacity:0.67;
|
1601 |
-
}
|
1602 |
-
|
1603 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled:hover{
|
1604 |
-
cursor:default;
|
1605 |
-
}
|
1606 |
-
|
1607 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled:focus{
|
1608 |
-
box-shadow:none;
|
1609 |
-
outline:none;
|
1610 |
-
}
|
1611 |
-
|
1612 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li{
|
1613 |
-
flex: 0 0 100%;
|
1614 |
-
max-width: 100%;
|
1615 |
-
}
|
1616 |
-
|
1617 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-2 ul li{
|
1618 |
-
flex: 0 0 50%;
|
1619 |
-
max-width: 50%;
|
1620 |
-
}
|
1621 |
-
|
1622 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-3 ul li{
|
1623 |
-
flex: 0 0 33.333333%;
|
1624 |
-
max-width: 33.333333%;
|
1625 |
-
}
|
1626 |
-
|
1627 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-4 ul li{
|
1628 |
-
flex: 0 0 25%;
|
1629 |
-
max-width: 25%;
|
1630 |
-
}
|
1631 |
-
|
1632 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-5 ul li{
|
1633 |
-
flex: 0 0 20%;
|
1634 |
-
max-width: 20%;
|
1635 |
-
}
|
1636 |
-
|
1637 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-6 ul li{
|
1638 |
-
flex: 0 0 16.66%;
|
1639 |
-
max-width: 16.66%;
|
1640 |
-
}
|
1641 |
-
|
1642 |
-
@media only screen and (max-width:960px){
|
1643 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li{
|
1644 |
-
flex: 0 0 50% !important;
|
1645 |
-
max-width: 50% !important;
|
1646 |
-
}
|
1647 |
-
|
1648 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li{
|
1649 |
-
flex: 0 0 100% !important;
|
1650 |
-
max-width: 100% !important;
|
1651 |
-
}
|
1652 |
-
|
1653 |
-
.acfe-modal.-open .acfe-modal-content ul li a{
|
1654 |
-
padding:7px;
|
1655 |
-
}
|
1656 |
-
}
|
1657 |
-
|
1658 |
-
@media only screen and (max-width:720px){
|
1659 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li{
|
1660 |
-
flex: 0 0 100% !important;
|
1661 |
-
max-width: 100% !important;
|
1662 |
-
}
|
1663 |
-
|
1664 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li{
|
1665 |
-
flex: 0 0 100% !important;
|
1666 |
-
max-width: 100% !important;
|
1667 |
-
}
|
1668 |
-
}
|
1669 |
-
|
1670 |
-
/*
|
1671 |
-
* ACFE Modal footer
|
1672 |
-
*/
|
1673 |
-
.acfe-modal.-open .acfe-modal-footer,
|
1674 |
-
.acfe-modal.-open .acfe-modal-footer *{
|
1675 |
-
box-sizing:border-box;
|
1676 |
-
}
|
1677 |
-
|
1678 |
-
.acfe-modal.-open .acfe-modal-footer{
|
1679 |
-
display:block;
|
1680 |
-
height: 50px;
|
1681 |
-
line-height: 50px;
|
1682 |
-
color: #23282d;
|
1683 |
-
background: #fcfcfc;
|
1684 |
-
padding: 0 16px;
|
1685 |
-
position:relative;
|
1686 |
-
text-align:right;
|
1687 |
-
border-top: 1px solid #ddd;
|
1688 |
-
pointer-events: auto;
|
1689 |
-
}
|
1690 |
-
|
1691 |
-
.acfe-modal.-open.acfe-modal-sub > .acfe-modal-wrapper > .acfe-modal-footer{
|
1692 |
-
pointer-events: none;
|
1693 |
-
}
|
1694 |
-
|
1695 |
-
.acfe-modal.-open .acfe-modal-footer > button{
|
1696 |
-
vertical-align: baseline;
|
1697 |
-
}
|
1698 |
-
|
1699 |
-
/*
|
1700 |
-
* ACFE Modal: Gutenberg Fix
|
1701 |
-
*/
|
1702 |
-
body.block-editor-page .edit-post-layout .acfe-modal.-open{
|
1703 |
-
justify-content: start;
|
1704 |
-
align-items: start;
|
1705 |
-
}
|
1706 |
-
|
1707 |
-
body.block-editor-page .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper{
|
1708 |
-
margin-top: 88px;
|
1709 |
-
height: 100%;
|
1710 |
-
width: 100%;
|
1711 |
-
max-height: calc(100vh - 88px);
|
1712 |
-
}
|
1713 |
-
|
1714 |
-
body.block-editor-page .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields.-left {
|
1715 |
-
height:100%;
|
1716 |
-
}
|
1717 |
-
|
1718 |
-
body.block-editor-page .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields.-left:before {
|
1719 |
-
content: "";
|
1720 |
-
display: block;
|
1721 |
-
position: absolute;
|
1722 |
-
z-index: 0;
|
1723 |
-
background: #F9F9F9;
|
1724 |
-
border-color: #E1E1E1;
|
1725 |
-
border-style: solid;
|
1726 |
-
border-width: 0 1px 0 0;
|
1727 |
-
top: 0;
|
1728 |
-
bottom: 0;
|
1729 |
-
left: 0;
|
1730 |
-
width: 20%;
|
1731 |
-
}
|
1732 |
-
|
1733 |
-
@media only screen and (max-width: 1080px) {
|
1734 |
-
body.block-editor-page .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper{
|
1735 |
-
margin-top: 88px;
|
1736 |
-
}
|
1737 |
-
}
|
1738 |
-
|
1739 |
-
body.block-editor-page .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper{
|
1740 |
-
max-width: calc(100vw - 160px);
|
1741 |
-
margin-left: 160px;
|
1742 |
-
}
|
1743 |
-
|
1744 |
-
body.block-editor-page .edit-post-layout.is-sidebar-opened .acfe-modal.-open > .acfe-modal-wrapper{
|
1745 |
-
max-width: calc(100vw - 440px);
|
1746 |
-
}
|
1747 |
-
|
1748 |
-
|
1749 |
-
body.block-editor-page.folded .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper{
|
1750 |
-
max-width: calc(100vw - 36px);
|
1751 |
-
margin-left:36px;
|
1752 |
-
}
|
1753 |
-
|
1754 |
-
@media only screen and (max-width: 960px) {
|
1755 |
-
body.block-editor-page.auto-fold .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper{
|
1756 |
-
max-width: calc(100vw - 36px);
|
1757 |
-
margin-left:36px;
|
1758 |
-
}
|
1759 |
-
}
|
1760 |
-
|
1761 |
-
@media only screen and (max-width: 782px) {
|
1762 |
-
body.block-editor-page.auto-fold .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper{
|
1763 |
-
max-width: 100vw;
|
1764 |
-
margin-left:0;
|
1765 |
-
margin-top: 100px;
|
1766 |
-
}
|
1767 |
-
}
|
1768 |
-
|
1769 |
-
body.block-editor-page.folded .edit-post-layout.is-sidebar-opened .acfe-modal.-open > .acfe-modal-wrapper{
|
1770 |
-
max-width: calc(100vw - 316px);
|
1771 |
-
}
|
1772 |
-
|
1773 |
-
@media (min-width: 600px){
|
1774 |
-
body.block-editor-page.acfe-modal-opened .edit-post-layout__content {
|
1775 |
-
overflow-y: hidden;
|
1776 |
-
}
|
1777 |
-
}
|
1778 |
-
|
1779 |
-
body.block-editor-page .acfe-modal-overlay{
|
1780 |
-
display:none;
|
1781 |
-
}
|
1782 |
-
|
1783 |
-
/*
|
1784 |
-
* ACFE Modal: Attachment Single Fix
|
1785 |
-
*/
|
1786 |
-
body.wp-admin.upload-php.acfe-modal-opened > div:not([style*="display: none;"]) > .media-modal.wp-core-ui:not(.acf-media-modal):before{
|
1787 |
-
content:"";
|
1788 |
-
display:block;
|
1789 |
-
position:absolute;
|
1790 |
-
background:rgba(0,0,0,.7);
|
1791 |
-
top:0;
|
1792 |
-
left:0;
|
1793 |
-
width:100%;
|
1794 |
-
height:100%;
|
1795 |
-
z-index:10000;
|
1796 |
-
}
|
1797 |
-
/*
|
1798 |
-
* ACF Field: Repeater Lock
|
1799 |
-
*/
|
1800 |
-
.acf-field-repeater[data-acfe-repeater-lock="1"] > .acf-input > .acf-repeater > .acf-table > tbody > .acf-row > .acf-row-handle{
|
1801 |
-
cursor:initial;
|
1802 |
-
}
|
1803 |
-
|
1804 |
-
/*
|
1805 |
-
* ACF Field: Repeater Block Fix (Add spacing)
|
1806 |
-
*/
|
1807 |
-
.acf-repeater.-row > table,
|
1808 |
-
.acf-repeater.-block > table{
|
1809 |
-
border-collapse: separate;
|
1810 |
-
border-spacing: 0 15px;
|
1811 |
-
background: none;
|
1812 |
-
border: 0;
|
1813 |
-
margin-top: -15px;
|
1814 |
-
margin-bottom: -7px;
|
1815 |
-
}
|
1816 |
-
|
1817 |
-
.acf-repeater.-row > table > *,
|
1818 |
-
.acf-repeater.-block > table > *{
|
1819 |
-
border-collapse: collapse;
|
1820 |
-
border-spacing: 0;
|
1821 |
-
}
|
1822 |
-
|
1823 |
-
.acf-repeater.-row > table > tbody > tr > td,
|
1824 |
-
.acf-repeater.-block > table > tbody > tr > td{
|
1825 |
-
border-top: 1px solid #ccd0d4 !important;
|
1826 |
-
border-bottom: 1px solid #ccd0d4 !important;
|
1827 |
-
}
|
1828 |
-
|
1829 |
-
.acf-repeater.-row > table > tbody > tr > td:first-of-type,
|
1830 |
-
.acf-repeater.-block > table > tbody > tr > td:first-of-type{
|
1831 |
-
border-left: 1px solid #ccd0d4 !important;
|
1832 |
-
}
|
1833 |
-
|
1834 |
-
.acf-repeater.-row > table > tbody > tr > td:last-of-type,
|
1835 |
-
.acf-repeater.-block > table > tbody > tr > td:last-of-type{
|
1836 |
-
border-right: 1px solid #ccd0d4 !important;
|
1837 |
-
}
|
1838 |
-
|
1839 |
-
body:not(.acf-admin-5-3) .acf-repeater.-row > table > tbody > tr > td,
|
1840 |
-
body:not(.acf-admin-5-3) .acf-repeater.-block > table > tbody > tr > td{
|
1841 |
-
border-top: 1px solid #E1E1E1;
|
1842 |
-
border-bottom: 1px solid #E1E1E1;
|
1843 |
-
}
|
1844 |
-
|
1845 |
-
body:not(.acf-admin-5-3) .acf-repeater.-row > table > tbody > tr > td:first-of-type,
|
1846 |
-
body:not(.acf-admin-5-3) .acf-repeater.-block > table > tbody > tr > td:first-of-type{
|
1847 |
-
border-left: 1px solid #E1E1E1;
|
1848 |
-
}
|
1849 |
-
|
1850 |
-
body:not(.acf-admin-5-3) .acf-repeater.-row > table > tbody > tr > td:last-of-type,
|
1851 |
-
body:not(.acf-admin-5-3) .acf-repeater.-block > table > tbody > tr > td:last-of-type{
|
1852 |
-
border-right: 1px solid #E1E1E1;
|
1853 |
-
}
|
1854 |
-
|
1855 |
-
/*
|
1856 |
-
* ACF Field: Repeater Table Fix (Remove headings when empty)
|
1857 |
-
*/
|
1858 |
-
.acf-repeater.-table.-empty > .acf-table{
|
1859 |
-
display:none;
|
1860 |
-
}
|
1861 |
-
|
1862 |
-
/*
|
1863 |
-
* ACF Field: Repeater Add Row
|
1864 |
-
*/
|
1865 |
-
.acf-field-repeater > .acf-input > .acf-repeater > .acfe-repeater-stylised-button{
|
1866 |
-
padding: 40px 20px;
|
1867 |
-
border: #ccc dashed 2px;
|
1868 |
-
text-align: center;
|
1869 |
-
}
|
1870 |
-
|
1871 |
-
.acf-field-repeater > .acf-input > .acf-repeater > .acfe-repeater-stylised-button > .acf-actions{
|
1872 |
-
text-align: center;
|
1873 |
-
}
|
1874 |
-
|
1875 |
-
.acf-field-flexible-content > .acf-input > .acf-repeater .acf-actions .acf-button .dashicons{
|
1876 |
-
width: auto;
|
1877 |
-
height: auto;
|
1878 |
-
vertical-align: text-top;
|
1879 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1 +0,0 @@
|
|
1 |
-
body.-loading *{cursor:wait!important}.acf-field .acf-label label{font-weight:600!important}.acf-field p.description{word-break:break-word}.acf-fields.-left>.acf-field>.acf-label{min-height:1px}.acf-field.acfe-no-label>.acf-label{margin:0}.acf-field.acfe-no-label>.acf-label>label{display:none}.acf-field.acfe-no-label>.acf-label>p.description{margin-bottom:10px}.acfe-field-tooltip{float:right;font-size:16px;color:#999}.acf-field-acfe-hidden{display:none}.acf-field-textarea[data-acfe-textarea-code="1"]>.acf-input>textarea{font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:1em}.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap{height:auto}.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default{border:1px solid #7e8993;border-radius:4px}.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default .CodeMirror-gutters{border-right:1px solid #7e8993}body:not(.acf-admin-5-3) .acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default{border-color:#dfdfdf}.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default .CodeMirror-activeline-background{background:#f9f9f9}.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default .CodeMirror-selected{background:#f0f0f0!important}.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default .CodeMirror-gutters{background:#f9f9f9}.acf-field-acfe-code-editor>td.acf-input{max-width:1px}.acf-accordion{z-index:initial}.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input,.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input{margin-left:-12px;margin-right:-12px;margin-bottom:-15px}.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"])>.acf-input,.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"])>.acf-input{margin-top:-15px}.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"])>.acf-label>p.description,.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"])>.acf-label>p.description{margin-bottom:15px}.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style.acfe-no-label>.acf-input>.acf-fields{border-width:0}.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input>.acf-fields{border-left-width:0;border-right-width:0;border-bottom-width:0}.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input>.acf-fields{border-width:0}.acf-fields.-left>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input{margin:0}.acf-fields.-left>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input>.acf-fields{border-width:1px}.acf-fields.-left>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input,.acf-fields.-left>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input{padding:0;padding-left:1px;margin-top:-15px;margin-bottom:-15px;margin-left:0;margin-right:0}.acf-fields.-left>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input>.acf-fields,.acf-fields.-left>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-input>.acf-table{border-width:0}.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table{border-width:0}.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-table{margin:0}.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input>.acf-fields,.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input>.acf-fields,.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-input>.acf-table{border-width:1px}.acf-postbox.seamless>.acf-fields.-left>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields.-left>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields.-left>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-input{padding:0 12px}.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acf-fields,.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acf-table{display:none}tr.acf-field.acf-field-group.acfe-seamless-style>td.acf-input>.acf-fields{border:0;margin-left:-10px;margin-right:-10px;margin-top:-15px;margin-bottom:-15px}tr.acf-field.acf-field-group.acfe-seamless-style.acfe-field-group-layout-table>td.acf-input{padding:0;margin-top:-15px;margin-bottom:-15px;margin-left:0;margin-right:0}tr.acf-field.acf-field-group.acfe-seamless-style.acfe-field-group-layout-table>td.acf-input>.acf-table{border-width:0}tr.acf-field.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,tr.acf-field.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table{border-width:0}.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input,.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input{margin-left:-12px;margin-right:-12px;margin-bottom:-15px}.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-no-label.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input,.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-no-label.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input{margin-top:-15px}.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style.acfe-no-label:not([data-acfe-clone-modal="1"])>.acf-label>p.description,.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style.acfe-no-label:not([data-acfe-clone-modal="1"])>.acf-label>p.description{margin-bottom:15px}.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-no-label.acfe-seamless-style>.acf-input>.acf-fields{border-width:0}.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input>.acf-fields{border-left-width:0;border-right-width:0;border-bottom-width:0}.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-fields{border-width:0}.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input{margin:0}.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input>.acf-fields{border-width:1px}.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input,.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input{padding:0;padding-left:1px;margin-top:-15px;margin-bottom:-15px;margin-left:0;margin-right:0}.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-fields,.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input>.acf-table{border-width:0}.acf-fields>.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,.acf-fields>.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table{border-width:0}.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-table{margin:0}.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-fields,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input>.acf-fields,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input>.acf-table{border-width:1px}.acf-postbox.seamless>.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input{padding:0 12px}tr.acf-field.acf-field-clone.acfe-seamless-style>td.acf-input>.acf-fields{border:0;margin-left:-10px;margin-right:-10px;margin-top:-15px;margin-bottom:-15px}tr.acf-field.acf-field-clone.acfe-seamless-style.acfe-field-clone-layout-table>td.acf-input{padding:0;margin-top:-15px;margin-bottom:-15px;margin-left:0;margin-right:0}tr.acf-field.acf-field-clone.acfe-seamless-style.acfe-field-clone-layout-table>td.acf-input>.acf-table{border-width:0}tr.acf-field.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,tr.acf-field.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table{border-width:0}.acfe-modal-content .acf-color-picker .wp-picker-holder{position:relative}.acf-field-checkbox .acf-input .acf-checkbox-list.acf-bl li+li>strong{margin-top:15px;display:inline-block}.acf-field-radio[data-acfe-labels] .acf-input .acf-radio-list.acf-hl li>strong{display:block}.acf-field-radio .acf-input .acf-radio-list.acf-bl li>strong{display:block}.acf-field-radio .acf-input .acf-radio-list.acf-bl li+li>strong{margin-top:15px}.acf-range-wrap input[type=number]{min-width:3.5em}.acf-link.-value .acfe-modal .button{display:inline-block}.acf-editor-wrap iframe{min-height:60px}.acf-editor-wrap .mce-top-part::before{box-shadow:none}.acf-editor-wrap div.mce-statusbar{border:0}.acf-editor-wrap .mce-divider,.acf-editor-wrap .mce-path-item{color:#aaa}form.acfe-form.is-invalid[data-hide-error="1"]>.acf-error-message.-dismiss{display:none}form.acfe-form.is-valid[data-hide-revalidation="1"]>.acf-notice.-success{display:none}form.acfe-form.is-invalid[data-errors-position=below] .acf-field .acf-notice{margin:15px 0 0}.acf-fields>.acf-field.acf-field-acfe-column{float:left;clear:none;box-sizing:border-box;padding:0;border-top-width:0}.acf-fields.-left>.acf-field.acf-field-acfe-column{border-right:1px solid #eee}.acf-fields.-left>.acf-field.acf-field-acfe-column:before{content:"";display:block;position:initial;background:0 0;border:0;width:auto}.acf-fields.-left>.acf-field.acf-field-acfe-column>.acf-input{float:none;width:auto;margin:0;padding:0}.acf-fields>.acf-field.acf-field-acfe-column>.acf-input>.acf-fields>.acf-field{border-top-width:0}.acf-fields>.acf-field.acf-field-acfe-column[data-endpoint="1"]{clear:both;border-top:1px solid #eee;width:100%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="1/12"]{width:8.333333%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="2/12"]{width:16.66666%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="3/12"]{width:25%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="4/12"]{width:33.33333%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="5/12"]{width:41.66667%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="6/12"]{width:50%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="7/12"]{width:58.33333%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="8/12"]{width:66.66666%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="9/12"]{width:75%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="10/12"]{width:83.33333%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="11/12"]{width:91.66667%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="12/12"]{width:100%;border-right:0}@media only screen and (max-width:1024px){.acf-fields>.acf-field.acf-field-acfe-column[data-columns="1/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="10/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="11/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="2/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="3/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="4/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="5/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="7/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="8/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="9/12"]{width:50%}}@media only screen and (max-width:640px){.acf-fields>.acf-field.acf-field-acfe-column[data-columns="1/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="10/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="11/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="12/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="2/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="3/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="4/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="5/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="6/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="7/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="8/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="9/12"]{width:100%}}.acf-media-modal .screen-reader-text,.acf-media-modal .screen-reader-text span,.acf-media-modal .ui-helper-hidden-accessible{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.acf-ui-datepicker .ui-datepicker{padding:0;border-color:#7e8993!important;border-radius:4px;box-sizing:border-box;background:#fff}.acf-ui-datepicker select{font-size:14px;cursor:pointer;vertical-align:middle;line-height:2;color:#32373c;border-color:#7e8993;box-shadow:none;border-radius:3px;padding:0 24px 0 8px;min-height:30px;max-width:25rem;-webkit-appearance:none;background:#fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%;background-size:16px 16px}.acf-ui-datepicker .ui-datepicker table{font-size:13px;margin:0;margin-bottom:7px}.acf-ui-datepicker .ui-datepicker .ui-datepicker-header{border:none;background:#f9f9f9;color:#222;font-weight:400;border-radius:4px 4px 0}.acf-ui-datepicker .ui-datepicker .ui-datepicker-header .ui-state-hover{background:#f9f9f9;cursor:pointer;border-radius:0;border:0}.acf-ui-datepicker .ui-datepicker thead{background:#f9f9f9;color:#222}.acf-ui-datepicker .ui-datepicker .ui-datepicker-title{margin-top:.4em;margin-bottom:.3em;color:#222;font-size:14px}.acf-ui-datepicker .ui-datepicker .ui-datepicker-next,.acf-ui-datepicker .ui-datepicker .ui-datepicker-next-hover,.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev,.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev-hover{height:20px;width:20px;border:none;overflow:hidden;margin-top:15px;top:0}.acf-ui-datepicker .ui-datepicker .ui-datepicker-next-hover,.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev-hover{background:0 0!important;color:#007cba!important}.acf-ui-datepicker .ui-datepicker .ui-datepicker-next{right:7px}.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev{left:7px}.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span,.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span{height:20px;width:20px;background:0 0;position:relative;margin:0;left:unset;top:unset;font-size:1px}.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span:before,.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span:before{display:block;font-family:dashicons;line-height:1;font-weight:400;text-indent:0;font-style:normal;speak:none;text-decoration:inherit;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:20px;height:20px;font-size:16px;vertical-align:top;text-align:center}.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span:before{content:"\f345"}.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span:before{content:"\f341"}.acf-ui-datepicker .ui-datepicker .ui-datepicker-title select{margin:0 3px}.acf-ui-datepicker .ui-datepicker th{padding:.75em 0;color:#222;font-weight:400;border:none;border-bottom:1px solid #e1e1e1;background:#f9f9f9}.acf-ui-datepicker .ui-datepicker td{background:#fff;border:none;padding:0}.acf-ui-datepicker .ui-datepicker td .ui-state-default{background:0 0;border:none;text-align:center;padding:.5em;margin:0;font-weight:400;color:#333}.acf-ui-datepicker .ui-datepicker td .ui-state-active,.acf-ui-datepicker .ui-datepicker td .ui-state-hover{background:#007cba;color:#fff;box-shadow:none}.acf-ui-datepicker .ui-datepicker td.ui-state-disabled,.acf-ui-datepicker .ui-datepicker td.ui-state-disabled .ui-state-default{opacity:1;color:#999}.acf-ui-datepicker .ui-datepicker-today .ui-state-highlight{border:none!important;background:#eee!important;font-weight:400!important;color:#222!important}.acf-ui-datepicker .ui-state-highlight.ui-state-active,.acf-ui-datepicker .ui-state-highlight.ui-state-hover{border:none!important;background:#007cba!important;font-weight:400!important;color:#fff!important}.acf-ui-datepicker .ui-state-highlight.ui-state-hover.ui-state-active{background:#007cba!important}.acf-ui-datepicker .ui-timepicker-div{padding:10px 7px!important}.acf-ui-datepicker .ui-timepicker-div .ui-widget-header{background:0 0!important;border:0!important;display:none!important}.acf-ui-datepicker .ui-timepicker-div .ui-widget-header .ui-datepicker-title{font-size:13px!important;font-weight:600!important}.acf-ui-datepicker .ui-timepicker-div dl{margin:0;text-align:center!important}.acf-ui-datepicker .ui-timepicker-div .ui_tpicker_time_label{display:none!important}.acf-ui-datepicker .ui-timepicker-div select{background:#fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%!important;background-size:16px 16px!important;color:#32373c!important;border-color:#7e8993!important}.acf-ui-datepicker .ui-datepicker-buttonpane{border:0!important;padding:7px!important;margin:0!important;background:#f9f9f9!important;border-top:1px solid #e1e1e1!important;border-radius:0 0 4px 4px!important}.acf-ui-datepicker .ui-datepicker-buttonpane:after{content:'';display:block;clear:both}.acf-ui-datepicker .ui-datepicker-buttonpane button{display:inline-block;text-decoration:none;font-size:13px!important;line-height:2.15384615;min-height:30px;margin:0!important;padding:0 10px!important;cursor:pointer!important;border-width:1px!important;border-style:solid!important;-webkit-appearance:none;border-radius:3px;font-weight:400!important;white-space:nowrap;box-sizing:border-box;color:#0071a1!important;border-color:#0071a1!important;background:#f3f5f6!important;vertical-align:top;box-shadow:none!important;outline:0!important;opacity:unset!important;filter:unset!important}.acf-ui-datepicker .ui-datepicker-buttonpane button:hover{background:#f1f1f1!important;border-color:#016087!important;color:#016087!important}body .medium-editor-toolbar{z-index:999999!important}.acf-flexible-content>.values>.ui-sortable-placeholder{border-width:2px;border-color:#ccc}.acf-flexible-content .layout .acf-fc-layout-handle{color:#444;font-weight:600}.layout.acfe-flexible-modal-edit-error>.acf-fc-layout-handle{color:#f33b28}.layout.acfe-flexible-modal-edit-error>.acf-fc-layout-handle>.acf-fc-layout-order{background:#f33b28;color:#fff}.acf-field-flexible-content[data-acfe-flexible-modal-edition="1"]:not([data-acfe-flexible-placeholder="1"]):not([data-acfe-flexible-preview="1"])>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-handle{border-bottom-width:0}.acf-field-flexible-content[data-acfe-flexible-placeholder="1"]>.acf-input>.acf-flexible-content>.values>.layout.-collapsed>.acf-fc-layout-handle,.acf-field-flexible-content[data-acfe-flexible-preview="1"]>.acf-input>.acf-flexible-content>.values>.layout.-collapsed>.acf-fc-layout-handle{border-bottom-width:1px}.acf-field-flexible-content[data-acfe-flexible-lock="1"]>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-handle{cursor:initial}.acf-field-flexible-content[data-acfe-flexible-remove-collapse="1"]:not([data-acfe-flexible-lock="1"])>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-handle{cursor:initial}.acf-fc-popup.top.acfe-fc-popup-grey:before{border-top-color:#e1e1e1}.acf-tooltip.bottom.acfe-fc-popup-grey:before{border-bottom-color:#e1e1e1}.acf-fc-popup.acfe-fc-popup-grey{background:#fcfcfc;border-radius:3px;color:#444;border:1px solid #e1e1e1;font-size:13px}.acf-tooltip.top.acfe-fc-popup-grey{margin-top:-16px}.acf-tooltip.bottom.acfe-fc-popup-grey{margin-bottom:-16px}.acf-fc-popup.acfe-fc-popup-grey a{color:#444}.acf-fc-popup.acfe-fc-popup-grey a:hover{color:#fff}.layout>.acfe-fc-placeholder{text-align:center;background:#f9f9f9;display:block;text-decoration:none;position:relative;cursor:pointer}.layout>.acfe-fc-placeholder:focus{border-color:#ccc;box-shadow:none}.layout>.acfe-fc-placeholder>.acfe-flexible-placeholder{height:110px;overflow:hidden;text-align:initial}.layout>.acfe-fc-placeholder>a{z-index:2;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-color:#ccd0d4;color:#23282d;border-radius:100px;box-shadow:none;background:#fff;width:30px;min-height:30px;height:30px;padding:0;display:block}body:not(.acf-admin-5-3) .layout>.acfe-fc-placeholder>a{border-color:#999}.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-flexible-content>.acf-input>.acf-flexible-content>.values>.layout>.acfe-fc-placeholder>a{z-index:0}.layout>.acfe-fc-placeholder>a:active{transform:translate(-50%,-50%)}.layout>.acfe-fc-placeholder>a:focus{border-color:#ccc;box-shadow:none}.layout>.acfe-fc-placeholder>a span{width:29px;height:30px;vertical-align:top;line-height:28px;font-size:18px}body:not(.acf-admin-5-3) .layout>.acfe-fc-placeholder>a span{width:30px;height:30px}.layout>.acfe-fc-placeholder.acfe-fc-preview{background:0 0}.layout>.acfe-fc-placeholder.acfe-fc-preview>.acfe-flexible-placeholder{min-height:55px;height:auto}.layout>.acfe-fc-placeholder.acfe-fc-preview>a{display:none}.layout>.acfe-fc-placeholder.acfe-fc-preview:hover>a{display:block}.layout>.acfe-fc-placeholder.acfe-fc-preview.-loading{background:#f9f9f9;min-height:110px}.layout>.acfe-fc-placeholder.acfe-fc-preview.-loading>.acfe-flexible-placeholder>.spinner{visibility:visible;float:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;z-index:10000}.layout>.acfe-fc-placeholder .acfe-fc-overlay{position:absolute;width:100%;height:100%;padding:0;background-color:rgba(255,255,255,0);transition:background-color .2s linear}.layout>.acfe-fc-placeholder .acfe-fc-overlay.-hover,.layout>.acfe-fc-placeholder:hover .acfe-fc-overlay{background-color:rgba(255,255,255,.7);z-index:1}.layout>.acfe-fc-placeholder.acfe-fc-preview.-loading>a span{visibility:hidden}.layout>.acf-fields>.acfe-flexible-opened-actions,.layout>.acf-table>.acfe-flexible-opened-actions{background:#f9f9f9;border-top:1px solid #e1e1e1;padding:12px;text-align:right;clear:both}.acfe-flexible-layout-thumbnail{display:block;width:100%;height:9.8vw;background-color:#eee;background-size:cover;background-repeat:no-repeat;background-position:center;position:relative;margin-bottom:15px}.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-not-found:after{content:"\f180";font-family:dashicons;display:inline-block;line-height:1;font-weight:400;font-style:normal;speak:none;text-decoration:inherit;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;text-align:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#ccc;font-size:110px}.acfe-col-2 .acfe-flexible-layout-thumbnail{height:20.5vw}.acfe-col-3 .acfe-flexible-layout-thumbnail{height:13.3vw}.acfe-col-5 .acfe-flexible-layout-thumbnail{height:7.65vw}.acfe-col-6 .acfe-flexible-layout-thumbnail{height:6.2vw}@media only screen and (max-width:960px){.acfe-flex-container .acfe-flexible-layout-thumbnail,.acfe-flexible-layout-thumbnail{height:18.4vw}}@media only screen and (max-width:720px){.acfe-flex-container .acfe-flexible-layout-thumbnail,.acfe-flexible-layout-thumbnail{height:37.2vw}}.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-no-modal{display:block;width:230px;height:103px;background-color:#1f2329}.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-no-modal.acfe-flexible-layout-thumbnail-not-found:after{color:#2f353e}.acf-field.acf-field-flexible-content[data-acfe-flexible-stylised-button="1"]>.acf-input>.acf-flexible-content:not(.empty)>.values{margin-bottom:15px}.acf-field.acf-field-flexible-content>.acf-input>.acf-flexible-content>.acfe-flexible-stylised-button{padding:40px 20px;border:#ccc dashed 2px;text-align:center}.acf-field.acf-field-flexible-content>.acf-input>.acf-flexible-content>.acfe-flexible-stylised-button>.acf-actions{text-align:center}.acf-field.acf-field-flexible-content>.acf-input>.acf-flexible-content .acf-actions .acf-button .dashicons{width:auto;height:auto;vertical-align:text-top}.acf-field.acf-field-flexible-content[data-acfe-flexible-hide-empty-message="1"]>.acf-input>.acf-flexible-content>.no-value-message{display:none}.acf-field.acf-field-flexible-content[data-acfe-flexible-hide-empty-message="1"]>.acf-input>.acf-flexible-content.-empty>.values{margin-bottom:0}.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons:before{font-family:dashicons}.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons{visibility:hidden}.acf-flexible-content .layout:hover>.acf-fc-layout-controls .acf-icon.acfe-flexible-icon.dashicons{visibility:visible}.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons.dashicons-admin-generic{visibility:visible}.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons.dashicons-admin-generic:before{margin-left:1px}.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-duplicate,.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-minus,.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-plus,.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-duplicate,.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-minus,.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-plus{visibility:hidden}.acf-flexible-content .layout.-hover>.acf-fc-layout-controls .acf-icon.-duplicate,.acf-flexible-content .layout.-hover>.acf-fc-layout-controls .acf-icon.-minus,.acf-flexible-content .layout.-hover>.acf-fc-layout-controls .acf-icon.-plus,.acf-flexible-content .layout:hover>.acf-fc-layout-controls .acf-icon.-duplicate,.acf-flexible-content .layout:hover>.acf-fc-layout-controls .acf-icon.-minus,.acf-flexible-content .layout:hover>.acf-fc-layout-controls .acf-icon.-plus{visibility:visible}.acf-flexible-content .layout>.acf-fc-layout-controls .acf-icon.disabled{color:#ccc;cursor:initial}.acf-flexible-content .layout>.acf-fc-layout-controls .acf-icon.disabled:hover{color:#ccc;background:#f5f5f5}.acf-flexible-content[data-acfe-flexible-lock="1"] .layout .acf-fc-layout-handle{cursor:initial}.acf-field-acfe-flexible-layout-title{display:none}input.acfe-flexible-control-title{border:none;box-shadow:none!important;outline:0!important;border-radius:0;border-bottom:1px solid transparent!important;font-weight:600;width:auto!important;padding:0!important;display:none;min-height:20px;vertical-align:unset;background:0 0}.layout>.acf-fc-layout-handle .acfe-layout-title{cursor:text;position:relative}.layout:not(.acfe-flexible-title-edition)>.acf-fc-layout-handle .acfe-layout-title:hover{background:#f4f4f4}.layout.acfe-flexible-title-edition>.acf-fc-layout-handle .acfe-layout-title input.acfe-flexible-control-title{display:inline-block;border-bottom:1px solid #ddd!important}.layout.acfe-flexible-title-edition>.acf-fc-layout-handle .acfe-layout-title .acfe-layout-title-text{display:none}.layout.acfe-flexible-layout-hidden>.acf-fc-layout-controls,.layout.acfe-flexible-layout-hidden>.acf-fc-layout-handle,.layout.acfe-flexible-layout-hidden>.acf-fields,.layout.acfe-flexible-layout-hidden>.acfe-fc-placeholder{opacity:.5}.acf-field-flexible-content[data-acfe-flexible-modal-edition="1"]>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-controls>a.-collapse{display:none}body.acfe-modal-opened{overflow:hidden}.acfe-modal-overlay{background:rgba(0,0,0,.7);position:fixed;top:0;left:0;right:0;bottom:0;height:100%;width:100%;z-index:100000}.acfe-modal{display:none;transition:all .3s ease-in-out}.acfe-modal.-open{position:fixed;z-index:100001;height:100%;width:100%;top:0;left:0;bottom:0;right:0;-webkit-font-smoothing:subpixel-antialiased;display:flex;flex-direction:column;justify-content:center;align-items:center;pointer-events:none}.acfe-modal.-open>.acfe-modal-wrapper{box-shadow:0 5px 15px rgba(0,0,0,.7);display:flex;flex-direction:column;width:calc(100vw - 60px);max-width:1100px;max-height:calc(100vh - 60px);position:relative}.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-wrapper-overlay{position:absolute;z-index:10;background:rgba(0,0,0,.7);height:100%;width:100%;pointer-events:none}.acfe-modal.-open.-small>.acfe-modal-wrapper{max-width:450px}.acfe-modal.-open.-medium>.acfe-modal-wrapper{max-width:700px}.acfe-modal.-open.-large>.acfe-modal-wrapper{max-width:1100px}.acfe-modal.-open.-xlarge>.acfe-modal-wrapper{max-width:1400px}.acfe-modal.-open.-full>.acfe-modal-wrapper{max-width:100%;flex:1}.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left{height:100%}.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left:before{content:"";display:block;position:absolute;z-index:0;background:#f9f9f9;border-color:#e1e1e1;border-style:solid;border-width:0 1px 0 0;top:0;bottom:0;left:0;width:20%}.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone,.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input,.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input>.acf-clone-fields.acf-fields.-left{height:100%}.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone{padding:0}.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input{margin:0}.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input>.acf-clone-fields.acf-fields.-left:before{content:"";display:block;position:absolute;z-index:0;background:#f9f9f9;border-color:#e1e1e1;border-style:solid;border-width:0 1px 0 0;top:0;bottom:0;left:0;width:20%}.acfe-modal.-open .acfe-modal-title *,.acfe-modal.-open>.acfe-modal-title{box-sizing:border-box}.acfe-modal.-open .acfe-modal-title{display:block;height:50px;line-height:50px;font-size:22px;color:#23282d;border-bottom:1px solid #ddd;text-overflow:ellipsis;background:#fcfcfc;padding:0 0 0 16px;position:relative;text-align:left;pointer-events:auto}.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-title{pointer-events:none}.acfe-modal.-open .acfe-modal-title>span.title{line-height:50px;color:#23282d;font-weight:600}.acfe-modal.-open .acfe-modal-title>span.title .acf-fc-layout-order{width:30px;height:30px;border-radius:30px;display:inline-block;text-align:center;line-height:30px;margin:0 2px 0 0;background:#f1f1f1;font-size:14px;color:#666;vertical-align:2px}.acfe-modal.-open .acfe-modal-title>button.close{height:50px;width:50px;color:#666;border:0;border-left:0;margin:0;padding:0;border-radius:0;position:absolute;top:0;right:0;transition:color .1s ease-in-out,background .1s ease-in-out;background:0 0;cursor:pointer;margin:0}.acfe-modal.-open .acfe-modal-title>button.close:hover{color:#00a0d2}.acfe-modal.-open .acfe-modal-title>button.close:before{height:50px;width:50px;line-height:50px!important;font:normal 20px/1 dashicons;content:"\f158";margin:0;padding:0}.acfe-modal.-open .acfe-modal-content{height:100%;background:#fff;display:block;position:relative;pointer-events:auto;overflow:auto}.acfe-modal.-open.-iframe .acfe-modal-content{overflow:hidden}.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-content{pointer-events:none}.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper{padding:0;margin:0;border-bottom:1px solid #ddd}.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a{margin:0;border-left:0;border-top:0;border-bottom:0;background:#fff;transition:color .1s ease-in-out,background .1s ease-in-out;padding:7px 15px;border-color:#ddd}.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a span.dashicons-menu{line-height:27px}.acfe-modal.-open>.acfe-modal-content .nav-tab-wrapper a:hover{background:#f9f9f9;color:#23282d}.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a.nav-tab-active,.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a.nav-tab-active:hover{background:#fcfcfc;color:#23282d}.acfe-modal.-open .acfe-modal-content .nav-tab:focus,.acfe-modal.-open .acfe-modal-content .nav-tab:focus:active{border-bottom:0;box-shadow:none;outline:0}.acfe-modal.-open .acfe-modal-content .acfe-flex-container,.acfe-modal.-open .acfe-modal-content .acfe-flex-container *{box-sizing:border-box}.acfe-modal.-open .acfe-modal-content .acfe-flex-container{width:100%;padding:14px;margin-right:auto;margin-left:auto}.acfe-modal.-open .acfe-modal-content .acfe-flexible-categories~.acfe-flex-container{overflow:auto;height:calc(100% - 39px)}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul{margin:0;margin-right:-7px;margin-left:-7px;display:flex;flex-wrap:wrap}.acfe-modal.-open>.acfe-modal-content .acfe-flex-container ul:after{content:"";clear:both;display:table}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li{position:relative;width:100%;padding-right:7px;padding-left:7px;padding-bottom:14px;margin:0;flex:0 0 25%;max-width:25%}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a{border:1px solid #ddd;background:#f9f9f9;padding:15px;color:#333;display:block;text-decoration:none}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover{background:#007cba;color:#fff}body:not(.acf-admin-5-3) .acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover{background:#0073aa}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span{display:block;font-size:16px;text-align:center;font-weight:600}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span.no-thumbnail{text-align:left}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled{pointer-events:none;opacity:.67}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled:hover{cursor:default}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled:focus{box-shadow:none;outline:0}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li{flex:0 0 100%;max-width:100%}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-2 ul li{flex:0 0 50%;max-width:50%}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-3 ul li{flex:0 0 33.333333%;max-width:33.333333%}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-4 ul li{flex:0 0 25%;max-width:25%}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-5 ul li{flex:0 0 20%;max-width:20%}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-6 ul li{flex:0 0 16.66%;max-width:16.66%}@media only screen and (max-width:960px){.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li{flex:0 0 50%!important;max-width:50%!important}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li{flex:0 0 100%!important;max-width:100%!important}.acfe-modal.-open .acfe-modal-content ul li a{padding:7px}}@media only screen and (max-width:720px){.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li{flex:0 0 100%!important;max-width:100%!important}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li{flex:0 0 100%!important;max-width:100%!important}}.acfe-modal.-open .acfe-modal-footer,.acfe-modal.-open .acfe-modal-footer *{box-sizing:border-box}.acfe-modal.-open .acfe-modal-footer{display:block;height:50px;line-height:50px;color:#23282d;background:#fcfcfc;padding:0 16px;position:relative;text-align:right;border-top:1px solid #ddd;pointer-events:auto}.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-footer{pointer-events:none}.acfe-modal.-open .acfe-modal-footer>button{vertical-align:baseline}body.block-editor-page .edit-post-layout .acfe-modal.-open{justify-content:start;align-items:start}body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{margin-top:88px;height:100%;width:100%;max-height:calc(100vh - 88px)}body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left{height:100%}body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left:before{content:"";display:block;position:absolute;z-index:0;background:#f9f9f9;border-color:#e1e1e1;border-style:solid;border-width:0 1px 0 0;top:0;bottom:0;left:0;width:20%}@media only screen and (max-width:1080px){body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{margin-top:88px}}body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 160px);margin-left:160px}body.block-editor-page .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 440px)}body.block-editor-page.folded .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 36px);margin-left:36px}@media only screen and (max-width:960px){body.block-editor-page.auto-fold .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 36px);margin-left:36px}}@media only screen and (max-width:782px){body.block-editor-page.auto-fold .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{max-width:100vw;margin-left:0;margin-top:100px}}body.block-editor-page.folded .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 316px)}@media (min-width:600px){body.block-editor-page.acfe-modal-opened .edit-post-layout__content{overflow-y:hidden}}body.block-editor-page .acfe-modal-overlay{display:none}body.wp-admin.upload-php.acfe-modal-opened>div:not([style*="display: none;"])>.media-modal.wp-core-ui:not(.acf-media-modal):before{content:"";display:block;position:absolute;background:rgba(0,0,0,.7);top:0;left:0;width:100%;height:100%;z-index:10000}.acf-field-repeater[data-acfe-repeater-lock="1"]>.acf-input>.acf-repeater>.acf-table>tbody>.acf-row>.acf-row-handle{cursor:initial}.acf-repeater.-block>table,.acf-repeater.-row>table{border-collapse:separate;border-spacing:0 15px;background:0 0;border:0;margin-top:-15px;margin-bottom:-7px}.acf-repeater.-block>table>*,.acf-repeater.-row>table>*{border-collapse:collapse;border-spacing:0}.acf-repeater.-block>table>tbody>tr>td,.acf-repeater.-row>table>tbody>tr>td{border-top:1px solid #ccd0d4!important;border-bottom:1px solid #ccd0d4!important}.acf-repeater.-block>table>tbody>tr>td:first-of-type,.acf-repeater.-row>table>tbody>tr>td:first-of-type{border-left:1px solid #ccd0d4!important}.acf-repeater.-block>table>tbody>tr>td:last-of-type,.acf-repeater.-row>table>tbody>tr>td:last-of-type{border-right:1px solid #ccd0d4!important}body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td,body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td{border-top:1px solid #e1e1e1;border-bottom:1px solid #e1e1e1}body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td:first-of-type,body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td:first-of-type{border-left:1px solid #e1e1e1}body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td:last-of-type,body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td:last-of-type{border-right:1px solid #e1e1e1}.acf-repeater.-table.-empty>.acf-table{display:none}.acf-field-repeater>.acf-input>.acf-repeater>.acfe-repeater-stylised-button{padding:40px 20px;border:#ccc dashed 2px;text-align:center}.acf-field-repeater>.acf-input>.acf-repeater>.acfe-repeater-stylised-button>.acf-actions{text-align:center}.acf-field-flexible-content>.acf-input>.acf-repeater .acf-actions .acf-button .dashicons{width:auto;height:auto;vertical-align:text-top}
|
|
@@ -1 +0,0 @@
|
|
1 |
-
function acfe_recaptcha(){var e;e=jQuery,"undefined"!=typeof acf&&e.each(acf.getFields({type:"acfe_recaptcha"}),function(e,t){t.render()})}!function(f){var n,e;function r(){var e=f("#acfe-wp-custom-fields .acfe_dev_meta_count"),t=f("#acfe-acf-custom-fields .acfe_dev_meta_count");e.text(f("#acfe-wp-custom-fields tbody tr").length),t.text(f("#acfe-acf-custom-fields tbody tr").length)}"undefined"!=typeof acf&&(n={},(window.acfe=n).modal={modals:[],open:function(e,t){var a=this;t=acf.parseArgs(t,{title:"",footer:!1,size:!1,destroy:!1,onOpen:!1,onClose:!1}),a.args=t,e.addClass("-open"),t.size&&e.addClass("-"+t.size),e.find("> .acfe-modal-wrapper").length||e.wrapInner('<div class="acfe-modal-wrapper" />'),e.find("> .acfe-modal-wrapper > .acfe-modal-content").length||e.find("> .acfe-modal-wrapper").wrapInner('<div class="acfe-modal-content" />'),e.find("> .acfe-modal-wrapper").prepend('<div class="acfe-modal-wrapper-overlay"></div><div class="acfe-modal-title"><span class="title">'+t.title+'</span><button class="close"></button></div>'),e.find(".acfe-modal-title > .close").click(function(e){e.preventDefault(),a.close(t)}),t.footer&&(e.find("> .acfe-modal-wrapper").append('<div class="acfe-modal-footer"><button class="button button-primary">'+t.footer+"</button></div>"),e.find(".acfe-modal-footer > button").click(function(e){e.preventDefault(),a.close(t)})),n.modal.modals.push(e);var i,o=f("body");return o.hasClass("acfe-modal-opened")||(i=f('<div class="acfe-modal-overlay" />'),o.addClass("acfe-modal-opened").append(i),o.find(".acfe-modal-overlay").click(function(e){e.preventDefault(),a.close(a.args)}),f(window).keydown(function(e){27===e.keyCode&&f("body").hasClass("acfe-modal-opened")&&(e.preventDefault(),a.close(a.args))})),n.modal.multiple(),n.modal.onOpen(e,t),acf.doAction("acfe/modal/open",e,t),e},close:function(e){e=acf.parseArgs(e,{destroy:!1,onClose:!1});var t=n.modal.modals.pop();t.find(".acfe-modal-wrapper-overlay").remove(),t.find(".acfe-modal-title").remove(),t.find(".acfe-modal-footer").remove(),t.removeAttr("style"),t.removeClass("-open"),e.destroy&&t.remove(),n.modal.modals.length||(f(".acfe-modal-overlay").remove(),f("body").removeClass("acfe-modal-opened")),n.modal.multiple(),acf.doAction("acfe/modal/close",t,e),n.modal.onClose(t,e)},multiple:function(){var t=n.modal.modals.length-1;f.each(n.modal.modals,function(e){t!=e?f(this).addClass("acfe-modal-sub").css("margin-left",-500/(e+1)):f(this).removeClass("acfe-modal-sub").css("margin-left","")})},onOpen:function(e,t){t.onOpen&&t.onOpen instanceof Function&&t.onOpen(e)},onClose:function(e,t){t.onClose&&t.onClose instanceof Function&&t.onClose(e)}},n.filters=[],n.disableFilters=function(){n.filters=[]},n.enableFilter=function(e){-1===n.filters.indexOf(e)&&n.filters.push(e)},n.disableFilter=function(e){for(var t=n.filters.length;t--;)n.filters[t]===e&&n.filters.splice(t,1)},n.isFilterEnabled=function(e){return-1<n.filters.indexOf(e)},n.getFilters=function(){return n.filters},acf.addAction("ready_field",function(e){var t,a,i;e.has("acfeInstructionsTooltip")&&(t=e.$labelWrap().find("> label"),i=(a=e.$labelWrap().find("> .description")).html(),e=e.get("acfeInstructionsTooltip"),a.length&&(a.remove(),e=i),t.before('<span class="acfe-field-tooltip acf-js-tooltip dashicons dashicons-info" title="'+_.escape(e)+'"></span>'))}),acf.addAction("new_field/name=acfe_form_updated_message",e=function(e){var t=e.$el.find("> .acf-label > .description");e.$el.find("> .acf-input").append(t)}),acf.addAction("new_field/name=acfe_form_return",e),acf.addAction("new_field/name=acfe_form_custom_alias",e),acf.addAction("new_field/name=acfe_form_custom_query_var",e),acf.addAction("new_field/name=acfe_form_email_content",e),acf.addAction("new_field/name=acfe_form_post_save_target",e),acf.addAction("new_field/name=acfe_form_post_load_source",e),acf.addAction("new_field/name=acfe_form_term_save_target",e),acf.addAction("new_field/name=acfe_form_term_load_source",e),acf.addAction("new_field/name=acfe_form_user_save_target",e),acf.addAction("new_field/name=acfe_form_user_load_source",e),acf.addAction("new_field/name=acfe_form_email_files",function(e){e.$el.find("> .acf-input > .acf-repeater > .acf-actions > .acf-button").removeClass("button-primary")}),acf.addAction("new_field/name=acfe_form_email_files_static",function(e){e.$el.find("> .acf-input > .acf-repeater > .acf-actions > .acf-button").removeClass("button-primary")}),acf.addAction("prepare",function(){var n=f("#acfe-acf-custom-fields"),c=f("#acfe-wp-custom-fields"),l=f(".acfe_dev_bulk_actions");f("#acfe-wp-custom-fields .tablenav.bottom").insertAfter(c),f("#acfe-acf-custom-fields .tablenav.bottom").insertAfter(n),n.is(":visible")||c.is(":visible")||l.hide(),f("#acfe_bulk_deleta_meta_submit").click(function(e){e.preventDefault();var t,a,i=f(this),o=i.prevAll(".acfe_bulk_delete_meta_action").val(),e=i.prevAll(".acfe_bulk_delete_meta_type").val(),i=i.prevAll(".acfe_bulk_delete_meta_nonce").val();"delete"===o&&(t=[],a=[],f("#acfe-wp-custom-fields input.acfe_bulk_delete_meta:checked").each(function(){t.push(f(this).val()),a.push(f(this).closest("tr"))}),f("#acfe-acf-custom-fields input.acfe_bulk_delete_meta:checked").each(function(){t.push(f(this).val()),a.push(f(this).closest("tr"))}),t.length&&(i={action:"acfe/bulk_delete_meta",ids:t,type:e,_wpnonce:i},f.ajax({url:acf.get("ajaxurl"),data:i,type:"post",beforeSend:function(){f.each(a,function(){f(this).css({backgroundColor:"#faafaa"}).fadeOut(350,function(){f(this).remove()})}),setTimeout(function(){f("#acfe-wp-custom-fields tbody tr").length||c.remove(),f("#acfe-acf-custom-fields tbody tr").length||n.remove(),f("#acfe-wp-custom-fields tbody tr").length||f("#acfe-acf-custom-fields tbody tr").length||l.remove(),r()},351)},success:function(e){}})))}),f(".acfe_delete_meta").click(function(e){e.preventDefault();var t=f(this),a=t.closest("tr"),i=t.closest("tbody"),o=t.closest(".postbox"),e={action:"acfe/delete_meta",id:t.attr("data-meta-id"),key:t.attr("data-meta-key"),type:t.attr("data-type"),_wpnonce:t.attr("data-nonce")};f.ajax({url:acf.get("ajaxurl"),data:e,type:"post",beforeSend:function(){t.closest("tr").css({backgroundColor:"#faafaa"}).fadeOut(350,function(){f(this).remove()}),setTimeout(function(){i.find("tr").length||o.remove(),f("#acfe-wp-custom-fields tbody tr").length||f("#acfe-acf-custom-fields tbody tr").length||l.remove(),r()},351)},success:function(e){"1"!==e&&(a.css({backgroundColor:""}),a.show())}})}),f(".hide-postbox-tog").bind("click.postboxes",function(){var e=f(this),t=e.val();"acfe-wp-custom-fields"!==t&&"acfe-acf-custom-fields"!==t||(e.prop("checked")?l.is(":visible")||l.show():("acfe-wp-custom-fields"===t&&!n.is(":visible")||"acfe-acf-custom-fields"===t&&!c.is(":visible"))&&l.hide())})}))}(jQuery),function(c){var e;"undefined"!=typeof acf&&((e=acf.getFieldType("flexible_content").prototype).addSortable=function(a){1!=this.get("max")&&this.$layoutsWrap().sortable({items:" > .layout",handle:"> .acf-fc-layout-handle",forceHelperSize:!1,forcePlaceholderSize:!0,tolerance:"pointer",scroll:!0,stop:function(e,t){a.render()},update:function(e,t){a.$input().trigger("change")}})},e.acfeOneClick=function(e,t){var a=this.$clones(),i=c(a[0]).data("layout"),a=null;t.hasClass("acf-icon")&&(a=t.closest(".layout"));this.add({layout:i,before:a});c(".acf-fc-popup").length&&c(".acf-fc-popup").hide()},e.acfeLayoutInit=function(t){var e,a,i=this,o=(t.find("> .acf-fc-layout-controls"),t.find("> .acf-fc-layout-handle"),t.find("> .acfe-fc-placeholder"));o.removeClass("acf-hidden"),i.has("acfeFlexibleModalEdition")||i.isLayoutClosed(t)||o.addClass("acf-hidden"),i.isLayoutClosed(t)&&i.has("acfeFlexiblePreview")&&!o.hasClass("-loading")&&(o.addClass("acfe-fc-preview -loading").find("> .acfe-flexible-placeholder").prepend('<span class="spinner"></span>'),o.find("> .acfe-fc-overlay").addClass("-hover"),e=t.children("input").attr("name").replace("[acf_fc_layout]",""),a={action:"acfe/flexible/layout_preview",field_key:i.get("key"),i:t.index(),layout:t.data("layout"),value:acf.serialize(t,e)},acf.doAction("acfe/fields/flexible_content/before_preview",i.$el,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/name="+i.get("name"),i.$el,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/key="+i.get("key"),i.$el,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/name="+i.get("name")+"&layout="+t.data("layout"),i.$el,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/key="+i.get("key")+"&layout="+t.data("layout"),i.$el,t,a),c.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),dataType:"html",type:"post",success:function(e){e?o.find("> .acfe-flexible-placeholder").html(e):o.removeClass("acfe-fc-preview"),acf.doAction("acfe/fields/flexible_content/preview",e,i.$el,t,a),acf.doAction("acfe/fields/flexible_content/preview/name="+i.get("name"),e,i.$el,t,a),acf.doAction("acfe/fields/flexible_content/preview/key="+i.get("key"),e,i.$el,t,a),acf.doAction("acfe/fields/flexible_content/preview/name="+i.get("name")+"&layout="+t.data("layout"),e,i.$el,t,a),acf.doAction("acfe/fields/flexible_content/preview/key="+i.get("key")+"&layout="+t.data("layout"),e,i.$el,t,a)},complete:function(){o.find("> .acfe-fc-overlay").removeClass("-hover"),o.removeClass("-loading").find("> .acfe-flexible-placeholder > .spinner").remove()}}))},acf.getFieldType("wysiwyg").prototype.initialize=function(){this.has("id")||this.$control().hasClass("delay")||this.initializeEditor()},acf.addAction("show_field/type=wysiwyg",e=function(e){var t;e.has("id")||!e.$el.is(":visible")||acfe.isFilterEnabled("acfeForceOpen")||(t=e.$control()).hasClass("delay")&&(t.removeClass("delay"),t.find(".acf-editor-toolbar").remove(),e.initializeEditor())}),acf.addAction("ready_field/type=wysiwyg",e),acf.addAction("new_field/type=flexible_content",function(a){var e=a.$clones(),t=a.$layouts();c.merge(t,e);t.each(function(){var e=c(this),t=e.data("layout");acf.doAction("acfe/flexible/layouts",e,a),acf.doAction("acfe/flexible/layout/name="+t,e,a)}),1===e.length&&(a.removeEvents({'click [data-name="add-layout"]':"onClickAdd"}),a.addEvents({'click [data-name="add-layout"]':"acfeOneClick"})),a.addEvents({"click .acfe-fc-placeholder":"onClickCollapse"}),a.addEvents({"click .acfe-flexible-opened-actions > a":"onClickCollapse"}),a.has("acfeFlexibleAjax")&&(a.add=function(o){var n=this;if(o=acf.parseArgs(o,{layout:"",before:!1}),!this.allowAdd())return!1;c.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax({action:"acfe/flexible/models",field_key:this.get("key"),layout:o.layout}),dataType:"html",type:"post",beforeSend:function(){c("body").addClass("-loading")},success:function(e){if(e){var t=c(e),a=acf.uniqid(),i="acf["+n.get("key")+"][acfcloneindex]",e=n.$control().find("> input[type=hidden]").attr("name")+"["+a+"]",e=acf.duplicate({target:t,search:i,replace:e,append:n.proxy(function(e,t){o.before?o.before.before(t):n.$layoutsWrap().append(t),acf.enable(t,n.cid),n.render()})});return e.attr("data-id",a),n.$input().trigger("change"),e}},complete:function(){c("body").removeClass("-loading")}})})}),acf.addAction("acfe/flexible/layouts",function(e,t){t.isLayoutClosed(e)&&(e.find("> .acfe-fc-placeholder").removeClass("acf-hidden"),t.has("acfeFlexibleOpen")&&(acfe.enableFilter("acfeForceOpen"),t.openLayout(e),acfe.disableFilter("acfeForceOpen")))}),acf.addAction("show",function(e,t){"collapse"===t&&e.is(".layout")&&(acf.getInstance(e.closest(".acf-field-flexible-content")).has("acfeFlexibleModalEdition")||e.find("> .acfe-fc-placeholder").addClass("acf-hidden"))}),acf.addAction("hide",function(e,t){"collapse"===t&&e.is(".layout")&&!e.is(".acf-clone")&&((t=acf.getInstance(e.closest(".acf-field-flexible-content"))).has("acfeFlexibleRemoveAjaxTitle")&&(t.renderLayout=function(e){}),t.acfeLayoutInit(e))}),acf.addAction("append",function(e){var t;e.is(".layout")&&(t=acf.getInstance(e.closest(".acf-field-flexible-content")),e.is(".acfe-layout-duplicated")||(t.has("acfeFlexibleModalEdition")?e.find('> [data-action="acfe-flexible-modal-edit"]:first').trigger("click"):t.openLayout(e)),t.acfeLayoutInit(e),(t=t.$el.closest(".acfe-modal.-open")).length?t.find("> .acfe-modal-wrapper > .acfe-modal-content").animate({scrollTop:parseInt(e.offset().top)-200},200):parseFloat(acf.get("acf_version"))<5.9&&c("html, body").animate({scrollTop:parseInt(e.offset().top)-200},200))}),acf.addAction("invalid_field",function(e){e.$el.parents(".layout").addClass("acfe-flexible-modal-edit-error")}),acf.addAction("valid_field",function(e){e.$el.parents(".layout").each(function(){var e=c(this);e.find(".acf-error").length||e.removeClass("acfe-flexible-modal-edit-error")})}))}(jQuery),function(f){var o;"undefined"!=typeof acf&&((o=acf.getFieldType("flexible_content").prototype).events["click .acf-fc-layout-handle"]="acfeEditLayoutTitleToggleHandle",o.acfeEditLayoutTitleToggleHandle=function(e,t){!this.has("acfeFlexibleTitleEdition")||(t=t.closest(".layout")).hasClass("acfe-flexible-title-edition")&&t.find("> .acf-fc-layout-handle > .acfe-layout-title > input.acfe-flexible-control-title").trigger("blur")},o.events["click .acfe-layout-title-text"]="acfeEditLayoutTitle",o.acfeEditLayoutTitle=function(e,t){this.has("acfeFlexibleTitleEdition")&&(e.stopPropagation(),this.acfeEditLayoutTitleToggle(e,t))},o.events["blur input.acfe-flexible-control-title"]="acfeEditLayoutTitleToggle",o.acfeEditLayoutTitleToggle=function(e,t){var a,i=t.closest(".layout"),o=i.find("> .acf-fc-layout-handle"),t=o.find(".acfe-layout-title");i.hasClass("acfe-flexible-title-edition")?(""===(a=t.find("> input[data-acfe-flexible-control-title-input]")).val()&&a.val(a.attr("placeholder")).trigger("input"),i.removeClass("acfe-flexible-title-edition"),a.insertAfter(o)):(a=(a=i.find("> input[data-acfe-flexible-control-title-input]")).appendTo(t),i.addClass("acfe-flexible-title-edition"),a.focus().attr("size",a.val().length))},o.events["click input.acfe-flexible-control-title"]="acfeEditLayoutTitlePropagation",o.acfeEditLayoutTitlePropagation=function(e,t){e.stopPropagation()},o.events["input [data-acfe-flexible-control-title-input]"]="acfeEditLayoutTitleInput",o.acfeEditLayoutTitleInput=function(e,t){var a=t.closest(".layout").find("> .acf-fc-layout-handle .acfe-layout-title .acfe-layout-title-text"),i=t.val();t.attr("size",i.length),a.html(i)},o.events["keypress [data-acfe-flexible-control-title-input]"]="acfeEditLayoutTitleInputEnter",o.acfeEditLayoutTitleInputEnter=function(e,t){13===e.keyCode&&(e.preventDefault(),t.blur())},o.events["click [data-acfe-flexible-settings]"]="acfeLayoutSettings",o.acfeLayoutSettings=function(e,t){var a=this,i=t.closest(".layout"),o=i.find("> .acfe-modal.-settings"),n=i.find("> .acf-fc-layout-handle"),t=n.find("> .acf-fc-layout-order").outerHTML(),n=n.find(".acfe-layout-title-text").text();acfe.modal.open(o,{title:t+" "+n,footer:acf.__("Close"),onOpen:function(){},onClose:function(){a.has("acfeFlexiblePreview")&&a.closeLayout(i)}})},o.events["click [data-acfe-flexible-control-toggle]"]="acfeLayoutToggle",o.acfeLayoutToggle=function(e,t){var a=t.closest(".layout"),t=a.find("> .acfe-flexible-layout-toggle");t.length&&("1"===t.val()?(a.removeClass("acfe-flexible-layout-hidden"),t.val("")):(a.addClass("acfe-flexible-layout-hidden"),t.val("1")))},acf.addAction("acfe/flexible/layouts",function(e,t){!t.has("acfeFlexibleToggle")||(t=e.find("> .acfe-flexible-layout-toggle")).length&&("1"===t.val()?e.addClass("acfe-flexible-layout-hidden"):e.removeClass("acfe-flexible-layout-hidden"))}),o.events["click [data-acfe-flexible-control-clone]"]="acfeCloneLayout",o.acfeCloneLayout=function(e,t){var a,i=this,o=t.closest(".layout"),n=o.data("layout"),c=f(i.$popup().html()),l=i.$layouts(),c=c.find('[data-layout="'+n+'"]'),c=(c.data("min"),c.data("max")||0),n=(a=n,l.filter(function(){return f(this).data("layout")===a}).length);if(c&&c<=n)return t.addClass("disabled"),!1;t.removeClass("disabled"),i.acfeFixInputs(o);n=o.clone();i.acfeCleanLayouts(n);t=t.closest(".acf-flexible-content").find("> input[type=hidden]").attr("name"),i.acfeDuplicate({layout:n,before:o,parent:t})},o.events["click [data-acfe-flexible-control-copy]"]="acfeCopyLayout",o.acfeCopyLayout=function(e,t){var a=t.closest(".layout").clone(),t=this.$control().find("> input[type=hidden]").attr("name");this.acfeFixInputs(a),this.acfeCleanLayouts(a);t=JSON.stringify({source:t,layouts:a[0].outerHTML}),a=f('<input type="text" style="clip:rect(0,0,0,0);clip-path:rect(0,0,0,0);position:absolute;" value="" />').appendTo(f("body"));a.attr("value",t).select(),document.execCommand("copy")?alert("Layout has been transferred to your clipboard"):prompt("Copy the following layout data to your clipboard",t),a.remove()},o.acfeCopyLayouts=function(){var e=this,t=e.$layoutsWrap().clone(),a=e.$control().find("> input[type=hidden]").attr("name");e.acfeFixInputs(t),e.acfeCleanLayouts(t);t=JSON.stringify({source:a,layouts:t.html()}),e=f('<input type="text" style="clip:rect(0,0,0,0);clip-path:rect(0,0,0,0);position:absolute;" value="" />').appendTo(e.$el);e.attr("value",t).select(),document.execCommand("copy")?alert("Layouts have been transferred to your clipboard"):prompt("Copy the following layouts data to your clipboard",t),e.remove()},o.acfePasteLayouts=function(){var o=this,e=prompt("Paste layouts data in the following field");if(null!=e&&""!==e)try{var t=JSON.parse(e),i=t.source,t=f(t.layouts).closest("[data-layout]");if(!t.length)return alert("No layouts data available");var n=f(o.$popup().html()),c=o.$layouts(),l=[];if(t.each(function(){var e,t=f(this),a=t.data("layout"),i=n.find('[data-layout="'+a+'"]'),i=(i.data("min"),i.data("max")||0),a=(e=a,c.filter(function(){return f(this).data("layout")===e}).length);i&&i<=a||o.$clone(t.attr("data-layout")).length&&l.push(t)}),!l.length)return alert("No layouts could be pasted");f.each(l,function(){var e=f(this),t=i+"["+e.attr("data-id")+"]",a=o.$control().find("> input[type=hidden]").attr("name");o.acfeDuplicate({layout:e,before:!1,search:t,parent:a})})}catch(e){console.log(e),alert("Invalid data")}},o.events['click [data-name="acfe-flexible-control-button"]']="acfeControl",o.acfeControl=function(e,t){var a=this,i=t.next(".tmpl-acfe-flexible-control-popup").html();new(acf.models.TooltipConfirm.extend({render:function(){this.html(this.get("text")),this.$el.addClass("acf-fc-popup")}}))({target:t,targetConfirm:!1,text:i,context:a,confirm:function(e,t){"paste"===t.attr("data-acfe-flexible-control-action")?a.acfePasteLayouts():"copy"===t.attr("data-acfe-flexible-control-action")&&a.acfeCopyLayouts()}}).on("click","a","onConfirm")},o.acfeDuplicate=function(a){if(a=acf.parseArgs(a,{layout:"",before:!1,parent:!1,search:"",replace:""}),!this.allowAdd())return!1;var i=acf.uniqid();a.parent&&(a.search||(a.search=a.parent+"["+a.layout.attr("data-id")+"]"),a.replace=a.parent+"["+i+"]");var e,t={target:a.layout,search:a.search,replace:a.replace,append:this.proxy(function(e,t){t.addClass("acfe-layout-duplicated"),t.attr("data-id",i),a.before?a.before.after(t):this.$layoutsWrap().append(t),acf.enable(t,this.cid),this.render()})};e=parseFloat(acf.get("acf_version"))<5.9?acf.duplicate(t):o.acfeNewAcfDuplicate(t),this.$input().trigger("change");t=acf.getFields({type:"tab",parent:e});return t.length&&f.each(t,function(){this.$el.hasClass("acf-hidden")&&this.tab.$el.addClass("acf-hidden")}),e},o.acfeNewAcfDuplicate=function(e){e instanceof jQuery&&(e={target:e}),(e=acf.parseArgs(e,{target:!1,search:"",replace:"",rename:!0,before:function(e){},after:function(e,t){},append:function(e,t){e.after(t)}})).target=e.target||e.$el;var t=e.target;e.search=e.search||t.attr("data-id"),e.replace=e.replace||acf.uniqid(),e.before(t),acf.doAction("before_duplicate",t);var a=t.clone();return e.rename&&acf.rename({target:a,search:e.search,replace:e.replace,replacer:"function"==typeof e.rename?e.rename:null}),a.removeClass("acf-clone"),a.find(".ui-sortable").removeClass("ui-sortable"),e.after(t,a),acf.doAction("after_duplicate",t,a),e.append(t,a),acf.doAction("append",a),a},o.acfeFixInputs=function(e){e.find("input").each(function(){f(this).attr("value",this.value)}),e.find("textarea").each(function(){f(this).html(this.value)}),e.find("input:radio,input:checkbox").each(function(){this.checked?f(this).attr("checked","checked"):f(this).attr("checked",!1)}),e.find("option").each(function(){this.selected?f(this).attr("selected","selected"):f(this).attr("selected",!1)})},o.acfeCleanLayouts=function(e){e.find(".acf-editor-wrap").each(function(){var e=f(this);e.find(".wp-editor-container div").remove(),e.find(".wp-editor-container textarea").css("display","")}),e.find(".acf-date-picker").each(function(){f(this).find("input.input").removeClass("hasDatepicker").removeAttr("id")}),e.find(".acf-time-picker").each(function(){f(this).find("input.input").removeClass("hasDatepicker").removeAttr("id")}),e.find(".acf-date-time-picker").each(function(){f(this).find("input.input").removeClass("hasDatepicker").removeAttr("id")}),e.find(".acfe-field-code-editor").each(function(){f(this).find(".CodeMirror").remove()}),e.find(".acf-color-picker").each(function(){var e=f(this),t=e.find("> input"),a=e.find(".wp-picker-container input.wp-color-picker").clone();t.after(a),e.find(".wp-picker-container").remove()}),e.find(".acf-field-post-object").each(function(){var e=f(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden").removeClass()}),e.find(".acf-field-page-link").each(function(){var e=f(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden").removeClass()}),e.find(".acf-field-select").each(function(){var e=f(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden").removeClass()}),e.find(".acf-field-font-awesome").each(function(){var e=f(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden")}),e.find(".acf-tab-wrap").each(function(){var e=f(this),t=e.closest(".acf-fields"),a=[];f.each(e.find("li a"),function(){a.push(f(this))}),t.find("> .acf-field-tab").each(function(){$current_tab=f(this),f.each(a,function(){var e=f(this);e.attr("data-key")===$current_tab.attr("data-key")&&$current_tab.find("> .acf-input").append(e)})}),e.remove()}),e.find(".acf-field-accordion").each(function(){var e=f(this);e.find("> .acf-accordion-title > .acf-accordion-icon").remove(),e.after('<div class="acf-field acf-field-accordion" data-type="accordion"><div class="acf-input"><div class="acf-fields" data-endpoint="1"></div></div></div>')})},acf.addAction("new_field/type=flexible_content",function(e){e.has("acfeFlexibleLock")&&e.removeEvents({mouseover:"onHover"})}))}(jQuery),function(f){"undefined"!=typeof acf&&(acf.getFieldType("flexible_content").prototype.acfeModalSelect=function(e,t){var a=this;if(!a.validateAdd())return!1;var i=null;t.hasClass("acf-icon")&&(i=t.closest(".layout"));var o=a.getPopupHTML(),n={array:[],html:""};f(o).find("li a span").each(function(){var e=f(this);if(!e.data("acfe-flexible-category"))return!0;e=e.data("acfe-flexible-category");f.each(e,function(e,t){return-1!==function(e,t){for(var a=t.length,i=e.toString().toLowerCase(),o=0;o<a;o++)if(t[o].toLowerCase()===i)return o;return-1}(t,n.array)||void n.array.push(t)})}),n.array.length&&(n.array.sort(),n.html+='<h2 class="acfe-flexible-categories nav-tab-wrapper">',n.html+='<a href="#" data-acfe-flexible-category="acfe-all" class="nav-tab nav-tab-active"><span class="dashicons dashicons-menu"></span></a>',f(n.array).each(function(e,t){n.html+='<a href="#" data-acfe-flexible-category="'+t+'" class="nav-tab">'+t+"</a>"}),n.html+="</h2>");t="Add Row";a.has("acfeFlexibleModalTitle")&&(t=a.get("acfeFlexibleModalTitle"));var c=f('<div class="acfe-modal">'+n.html+'<div class="acfe-flex-container">'+o+"</div></div>").appendTo("body"),c=acfe.modal.open(c,{title:t,size:"full",destroy:!0});a.has("acfeFlexibleModalCol")&&c.find(".acfe-modal-content .acfe-flex-container").addClass("acfe-col-"+a.get("acfeFlexibleModalCol")),c.find("li:first-of-type a").blur();var l=a.$layouts();c.find("a[data-layout]").each(function(){var e,t,a=f(this),i=a.data("min")||0,o=a.data("max")||0,n=a.data("layout")||"",c=(e=n,l.filter(function(){return f(this).data("layout")===e}).length);o&&o<=c?a.addClass("disabled"):i&&c<i&&(t=i-c,o=acf.__("{required} {label} {identifier} required (min {min})"),c=acf._n("layout","layouts",t),o=(o=(o=(o=o.replace("{required}",t)).replace("{label}",n)).replace("{identifier}",c)).replace("{min}",i),a.append('<span class="badge" title="'+o+'">'+t+"</span>"))}),c.find(".acfe-flexible-categories a").click(function(e){e.preventDefault();e=f(this);e.closest(".acfe-flexible-categories").find("a").removeClass("nav-tab-active"),e.addClass("nav-tab-active");var i=e.data("acfe-flexible-category");c.find("a[data-layout] span").each(function(){var a=f(this);a.closest("li").show();var e=a.data("acfe-flexible-category");"acfe-all"!==i&&(a.closest("li").hide(),f.each(e,function(e,t){if(i.toLowerCase()===t.toLowerCase())return a.closest("li").show(),!1}))})}),c.on("click","a[data-layout]",function(e){e.preventDefault(),acfe.modal.close(!0);a.add({layout:f(this).data("layout"),before:i})})},acf.addAction("new_field/type=flexible_content",function(e){e.has("acfeFlexibleModal")&&(e.$clones().length<=1||(e.removeEvents({'click [data-name="add-layout"]':"onClickAdd"}),e.addEvents({'click [data-name="add-layout"]':"acfeModalSelect"})))}))}(jQuery),function(){var e;"undefined"!=typeof acf&&((e=acf.getFieldType("flexible_content").prototype).events['click [data-action="acfe-flexible-modal-edit"]']="acfeModalEdit",e.acfeModalEdit=function(e,t){var a=this,i=t.closest(".layout"),o=i.find("> .acfe-modal.-fields"),n=i.find("> .acf-fc-layout-handle"),c=n.find("> .acf-fc-layout-order").outerHTML(),t=n.find(".acfe-layout-title-text").text(),n=!1;a.has("acfeFlexibleCloseButton")&&(n=acf.__("Close")),acfe.modal.open(o,{title:c+" "+t,footer:n,onOpen:function(){a.openLayout(i)},onClose:function(){a.closeLayout(i)}})},acf.addAction("new_field/type=flexible_content",function(e){e.has("acfeFlexibleModalEdition")&&(e.has("acfeFlexiblePlaceholder")||e.has("acfeFlexiblePreview"))&&(e.removeEvents({'click [data-name="collapse-layout"]':"onClickCollapse"}),e.removeEvents({"click .acfe-fc-placeholder":"onClickCollapse"}))}))}(jQuery),function(l){var e;"undefined"!=typeof acf&&(e=acf.Field.extend({type:"acfe_recaptcha",actions:{validation_failure:"validationFailure"},$control:function(){return this.$(".acfe-field-recaptcha")},$input:function(){return this.$('input[type="hidden"]')},$selector:function(){return this.$control().find("> div")},selector:function(){return this.$selector()[0]},version:function(){return this.get("version")},render:function(){var t=this;"v2"===this.version()?this.recaptcha=grecaptcha.render(t.selector(),{sitekey:t.$control().data("site-key"),theme:t.$control().data("theme"),size:t.$control().data("size"),callback:function(e){t.$input().val(e).change(),t.$input().closest(".acf-input").find("> .acf-notice.-error").hide()},"error-callback":function(){t.$input().val("error").change()},"expired-callback":function(){t.$input().val("expired").change()}}):"v3"===this.version()&&grecaptcha.ready(function(){grecaptcha.execute(t.$control().data("site-key"),{action:"homepage"}).then(function(e){t.$input().val(e).change(),t.$input().closest(".acf-input").find("> .acf-notice.-error").hide()})})},validationFailure:function(e){"v2"===this.version()&&grecaptcha.reset(this.recaptcha)}}),acf.registerFieldType(e),e=acf.Field.extend({wait:"ready",type:"acfe_code_editor",events:{showField:"onShow"},$control:function(){return this.$el.find("> .acf-input > .acf-input-wrap")},$input:function(){return this.$el.find("> .acf-input > .acf-input-wrap > textarea")},input:function(){return this.$input()[0]},rows:function(){return this.$input().attr("rows")},initialize:function(){this.rows=this.$control().data("rows"),this.max_rows=this.$control().data("max-rows"),this.mode=this.$control().data("mode"),this.lines=this.$control().data("lines"),this.indentUnit=this.$control().data("indent-unit");var e=[],t=wp.codeEditor.defaultSettings.codemirror,a={lineNumbers:this.lines,lineWrapping:!0,styleActiveLine:!1,continueComments:!0,indentUnit:this.indentUnit,tabSize:1,indentWithTabs:!0,mode:this.mode,extraKeys:{Tab:function(e){e.execCommand("indentMore")},"Shift-Tab":function(e){e.execCommand("indentLess")}}},a=jQuery.extend(t,a);e.codemirror=a,this.editor=wp.codeEditor.initialize(this.input(),e),(this.rows||this.max_rows)&&(this.rows&&(this.editor.codemirror.getScrollerElement().style.minHeight=18.5*this.rows+"px"),this.max_rows&&(this.editor.codemirror.getScrollerElement().style.maxHeight=18.5*this.max_rows+"px"),this.editor.codemirror.refresh()),(field=this).editor.codemirror.on("change",function(){field.editor.codemirror.save(),field.$input().change()})},onShow:function(){this.editor.codemirror&&this.editor.codemirror.refresh()}}),acf.registerFieldType(e),acf.registerConditionForFieldType("equalTo","acfe_code_editor"),acf.registerConditionForFieldType("notEqualTo","acfe_code_editor"),acf.registerConditionForFieldType("patternMatch","acfe_code_editor"),acf.registerConditionForFieldType("contains","acfe_code_editor"),acf.registerConditionForFieldType("hasValue","acfe_code_editor"),acf.registerConditionForFieldType("hasNoValue","acfe_code_editor"),acf.addAction("append_field_object",function(e){"acfe_code_editor"===e.get("type")&&(e.$setting("default_value").find("> .acf-input > .acf-input-wrap > .CodeMirror:last").remove(),e.$setting("placeholder").find("> .acf-input > .acf-input-wrap > .CodeMirror:last").remove())}),e=acf.Field.extend({type:"textarea",events:{"keydown textarea":"onInput"},onInput:function(e,t){var a,i;this.has("acfeTextareaCode")&&9===e.keyCode&&(e.preventDefault(),a=this.$el.find("textarea")[0],i=a.selectionStart,this.$el.find("textarea").val(function(e,t){return t.substring(0,i)+" "+t.substring(a.selectionEnd)}),a.selectionEnd=i+4)}}),acf.registerFieldType(e),e=acf.Field.extend({type:"acfe_slug",events:{"input input":"onInput","focusout input":"onFocusOut"},onInput:function(e,t){t.val(t.val().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/\_\_+/g,"_").replace(/^-+/,""))},onFocusOut:function(e,t){t.val(t.val().toLowerCase().replace(/-+$/,"").replace(/_+$/,""))}}),acf.registerFieldType(e),acf.registerConditionForFieldType("equalTo","acfe_slug"),acf.registerConditionForFieldType("notEqualTo","acfe_slug"),acf.registerConditionForFieldType("patternMatch","acfe_slug"),acf.registerConditionForFieldType("contains","acfe_slug"),acf.registerConditionForFieldType("hasValue","acfe_slug"),acf.registerConditionForFieldType("hasNoValue","acfe_slug"),e=acf.Field.extend({type:"acfe_button",events:{"click input":"onClick","click button":"onClick"},$input:function(){return this.$("input").length?this.$("input"):this.$("button").length?this.$("button"):void 0},initialize:function(){var e=this.$input();this.inherit(e)},onClick:function(e,t){var a;this.get("ajax")&&(e.preventDefault(),a={action:"acfe/fields/button",field_name:this.get("name"),field_key:this.get("key")},acf.doAction("acfe/fields/button/before_ajax",this.$el,a),acf.doAction("acfe/fields/button/before",this.$el,a),acf.doAction("acfe/fields/button/before/key="+this.get("key"),this.$el,a),acf.doAction("acfe/fields/button/before/name="+this.get("name"),this.$el,a),l.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",context:this,success:function(e){acf.doAction("acfe/fields/button/ajax_success",e,this.$el,a),acf.doAction("acfe/fields/button/success",e,this.$el,a),acf.doAction("acfe/fields/button/success/key="+this.get("key"),e,this.$el,a),acf.doAction("acfe/fields/button/success/name="+this.get("name"),e,this.$el,a)},complete:function(e){e=e.responseText;acf.doAction("acfe/fields/button/complete",e,this.$el,a),acf.doAction("acfe/fields/button/complete/key="+this.get("key"),e,this.$el,a),acf.doAction("acfe/fields/button/complete/name="+this.get("name"),e,this.$el,a)}}))}}),acf.registerFieldType(e),e=acf.Field.extend({type:"acfe_advanced_link",events:{'click a[data-name="add"]':"onClickEdit",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove"},$control:function(){return this.$(".acf-link")},initialize:function(){},getValue:function(){var e={type:this.$(".input-type :checked").val(),title:this.$(".input-title").val(),url:this.$(".input-url").val(),post:this.$(".input-post :selected").text(),term:this.$(".input-term :selected").text(),target:this.$(".input-target").is(":checked")};return"post"===e.type?e.url=e.post:"term"===e.type&&(e.url=e.term),e},setValue:function(e){e=acf.parseArgs(e,{remove:!1,title:"",url:"",target:!1});var t=this.$control();t.removeClass("-value -external"),e.url&&t.addClass("-value"),e.target&&t.addClass("-external"),this.$(".link-title").html(e.title),this.$(".link-url").attr("href",e.url).html(e.url),e.remove&&(this.$(".input-type :checked").prop("checked",!1),this.$('.input-type [value="url"]').prop("checked",!0).trigger("change"),this.$(".input-title").val(""),this.$(".input-target").prop("checked",!1),this.$(".input-url").val("").trigger("change"),this.$(".input-post").val("").trigger("change"),this.$(".input-term").val("").trigger("change"))},onClickEdit:function(e,t){var a=t.closest(".acf-input").find(".acfe-modal"),t=a.attr("data-modal-title"),i=this;acfe.modal.open(a,{title:t,size:"medium",footer:acf.__("Close"),onClose:function(){i.onChange()}})},onClickRemove:function(e,t){this.setValue({remove:!0})},onChange:function(e,t){var a=this.getValue();this.setValue(a)}}),acf.registerFieldType(e),acf.addFilter("select2_ajax_data/type=post_object",function(e,t,a,i,o){if("post"!==i.get("key"))return e;a=acf.getInstance(a.closest(".acf-field-acfe-advanced-link"));return a&&(e.field_key=a.get("key")),e}),acf.addAction("invalid_field",function(e){var t=e.$el.closest(".acf-field-acfe-advanced-link").not(".acf-error");t.length&&acf.getInstance(t).showError(e.notice.get("text"))}),e=acf.Field.extend({type:"group",events:{'click [data-name="edit"]':"onClick"},initialize:function(){var e;this.has("acfeGroupModal")&&(e=this.get("acfeGroupModalButton"),this.$el.find("> .acf-input > .acf-fields, > .acf-input > .acf-table").wrapAll('<div class="acfe-modal"><div class="acfe-modal-wrapper"><div class="acfe-modal-content"></div></div></div>'),this.$el.find("> .acf-input").append('<a data-name="edit" class="acf-button button" href="#">'+e+"</a>"))},onClick:function(e,t){var a=this.$el.find("> .acf-label").text().trim(),i=this.$el.find("> .acf-input > .acfe-modal");a.length||(a=this.get("acfeGroupModalButton"));var o=!1;this.has("acfeGroupModalClose")&&(o=acf.__("Close"));var n="large";this.has("acfeGroupModalSize")&&(n=this.get("acfeGroupModalSize")),acfe.modal.open(i,{title:a,size:n,footer:o})}}),acf.registerFieldType(e),e=acf.Field.extend({type:"clone",events:{'click [data-name="edit"]':"onClick"},initialize:function(){var e;this.has("acfeCloneModal")&&(e=this.get("acfeCloneModalButton"),this.$el.find("> .acf-input > .acf-fields, > .acf-input > .acf-table").wrapAll('<div class="acfe-modal"><div class="acfe-modal-wrapper"><div class="acfe-modal-content"></div></div></div>'),this.$el.find("> .acf-input").append('<a data-name="edit" class="acf-button button" href="#">'+e+"</a>"))},onClick:function(e,t){var a=this.$el.find("> .acf-label").text().trim(),i=this.$el.find("> .acf-input > .acfe-modal");a.length||(a=this.get("acfeCloneModalButton"));var o=!1;this.has("acfeCloneModalClose")&&(o=acf.__("Close"));var n="large";this.has("acfeCloneModalSize")&&(n=this.get("acfeCloneModalSize")),acfe.modal.open(i,{title:a,size:n,footer:o})}}),acf.registerFieldType(e),e=acf.Field.extend({wait:"new_field",type:"acfe_column",$control:function(){return this.$(".acf-fields:first")},initialize:function(){if(this.$el.is("td")&&(this.$el.closest(".acf-table").find('th[data-type="acfe_column"]').remove(),this.remove()),this.get("endpoint"))return this.$el.find("> .acf-label").remove(),void this.$el.find("> .acf-input").remove();var e=this.$el,t=this.$el.find("> .acf-label"),a=(this.$inputWrap(),this.$control());t.remove();t=e.parent();a.addClass(t.hasClass("-left")?"-left":""),a.addClass(t.hasClass("-clear")?"-clear":""),a.append(e.nextUntil(".acf-field-acfe-column",".acf-field"))}}),acf.registerFieldType(e),acf.addFilter("select2_ajax_data/action=acfe/fields/taxonomy_terms/allow_query",function(e,t,a,i,o){var n=a.closest(".acf-field-settings").find("> .acf-field-setting-taxonomy > .acf-input > select > option:selected"),c=[];n.each(function(){c.push(l(this).val())}),e.taxonomies=c;a=a.closest(".acf-field-settings").find('> .acf-field-setting-allow_terms > .acf-input input[type="number"]');return e.level=a.val(),e}),acf.addAction("select2_init",function(t,e,a,i,o){var n;i.get("acfeSearchPlaceholder")&&(n=i.get("acfeSearchPlaceholder"),t.on("select2:open",function(e){i.get("multiple")?t.val()||i.$(".select2-search__field").attr("placeholder",n):l(".select2-search.select2-search--dropdown > .select2-search__field").attr("placeholder",n)}),i.get("multiple")&&t.on("select2:close",function(e){t.val()||i.$(".select2-search__field").attr("placeholder",i.get("placeholder"))}))}),acf.addFilter("select2_args",function(e,t,a,i,o){return i.get("acfeAllowCustom")&&(e.tags=!0,e.createTag=function(e){var t=l.trim(e.term);if(""===t)return null;var a=!1;return this.$element.find("option").each(function(){this.value.toLowerCase()===t.toLowerCase()&&(a=!0)}),a?null:{id:t,text:t}},e.insertTag=function(e,a){var i=!1;l.each(e,function(e,t){if(l.trim(a.text).toUpperCase()===l.trim(t.text).toUpperCase())return!(i=!0)}),i||e.unshift(a)},e.templateSelection=function(e){if(!e.id)return e.text;e=e.text;return e=(e=(e=(e=(e=(e=e.replace(/{field:(.*)}/g,"<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{field:$1}</code>")).replace(/{fields}/g,"<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{fields}</code>")).replace(/{current:(.*)}/g,"<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{current:$1}</code>")).replace(/{get_field:(.*)}/g,"<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{get_field:$1}</code>")).replace(/{query_var:(.*)}/g,"<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{query_var:$1}</code>")).replace(/{request:(.*)}/g,"<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{request:$1}</code>")},e.templateResult=function(e){if(!e.id)return e.text;e=e.text;return e=(e=(e=(e=(e=(e=e.replace(/{field:(.*?)}/g,"<code style='font-size:12px;'>{field:$1}</code>")).replace(/{fields}/g,"<code style='font-size:12px;'>{fields}</code>")).replace(/{get_field:(.*?)}/g,"<code style='font-size:12px;'>{get_field:$1}</code>")).replace(/{query_var:(.*?)}/g,"<code style='font-size:12px;'>{query_var:$1}</code>")).replace(/{request:(.*?)}/g,"<code style='font-size:12px;'>{request:$1}</code>")).replace(/{current:(.*?)}/g,"<code style='font-size:12px;'>{current:$1}</code>")}),e}),acf.addFilter("select2_args",function(e,t,a,i,o){return e=acf.applyFilters("select2_args/type="+i.get("type"),e,t,a,i,o),e=acf.applyFilters("select2_args/name="+i.get("name"),e,t,a,i,o),e=acf.applyFilters("select2_args/key="+i.get("key"),e,t,a,i,o)}),acf.addAction("select2_init",function(e,t,a,i,o){acf.doAction("select2_init/type="+i.get("type"),e,t,a,i,o),acf.doAction("select2_init/name="+i.get("name"),e,t,a,i,o),acf.doAction("select2_init/key="+i.get("key"),e,t,a,i,o)}),acf.addFilter("select2_ajax_data",function(e,t,a,i,o){return e=acf.applyFilters("select2_ajax_data/type="+i.get("type"),e,t,a,i,o),e=acf.applyFilters("select2_ajax_data/name="+i.get("name"),e,t,a,i,o),(e=acf.applyFilters("select2_ajax_data/key="+i.get("key"),e,t,a,i,o)).action&&(e=acf.applyFilters("select2_ajax_data/action="+e.action,e,t,a,i,o)),e}),acf.registerConditionForFieldType("equalTo","date_picker"),acf.registerConditionForFieldType("notEqualTo","date_picker"),acf.registerConditionForFieldType("patternMatch","date_picker"),acf.registerConditionForFieldType("contains","date_picker"),acf.registerConditionForFieldType("greaterThan","date_picker"),acf.registerConditionForFieldType("lessThan","date_picker"),acf.registerConditionForFieldType("equalTo","taxonomy"),acf.registerConditionForFieldType("notEqualTo","taxonomy"),acf.registerConditionForFieldType("patternMatch","taxonomy"),acf.registerConditionForFieldType("contains","taxonomy"),acf.registerConditionForFieldType("hasValue","taxonomy"),acf.registerConditionForFieldType("hasNoValue","taxonomy"),acf.registerConditionForFieldType("equalTo","acfe_forms"),acf.registerConditionForFieldType("notEqualTo","acfe_forms"),acf.registerConditionForFieldType("patternMatch","acfe_forms"),acf.registerConditionForFieldType("contains","acfe_forms"),acf.registerConditionForFieldType("hasValue","acfe_forms"),acf.registerConditionForFieldType("hasNoValue","acfe_forms"),acf.registerConditionForFieldType("equalTo","acfe_post_statuses"),acf.registerConditionForFieldType("notEqualTo","acfe_post_statuses"),acf.registerConditionForFieldType("patternMatch","acfe_post_statuses"),acf.registerConditionForFieldType("contains","acfe_post_statuses"),acf.registerConditionForFieldType("hasValue","acfe_post_statuses"),acf.registerConditionForFieldType("hasNoValue","acfe_post_statuses"),acf.registerConditionForFieldType("equalTo","acfe_post_types"),acf.registerConditionForFieldType("notEqualTo","acfe_post_types"),acf.registerConditionForFieldType("patternMatch","acfe_post_types"),acf.registerConditionForFieldType("contains","acfe_post_types"),acf.registerConditionForFieldType("hasValue","acfe_post_types"),acf.registerConditionForFieldType("hasNoValue","acfe_post_types"),acf.registerConditionForFieldType("equalTo","acfe_taxonomies"),acf.registerConditionForFieldType("notEqualTo","acfe_taxonomies"),acf.registerConditionForFieldType("patternMatch","acfe_taxonomies"),acf.registerConditionForFieldType("contains","acfe_taxonomies"),acf.registerConditionForFieldType("hasValue","acfe_taxonomies"),acf.registerConditionForFieldType("hasNoValue","acfe_taxonomies"),acf.registerConditionForFieldType("equalTo","acfe_taxonomy_terms"),acf.registerConditionForFieldType("notEqualTo","acfe_taxonomy_terms"),acf.registerConditionForFieldType("patternMatch","acfe_taxonomy_terms"),acf.registerConditionForFieldType("contains","acfe_taxonomy_terms"),acf.registerConditionForFieldType("hasValue","acfe_taxonomy_terms"),acf.registerConditionForFieldType("hasNoValue","acfe_taxonomy_terms"),acf.registerConditionForFieldType("equalTo","acfe_user_roles"),acf.registerConditionForFieldType("notEqualTo","acfe_user_roles"),acf.registerConditionForFieldType("patternMatch","acfe_user_roles"),acf.registerConditionForFieldType("contains","acfe_user_roles"),acf.registerConditionForFieldType("hasValue","acfe_user_roles"),acf.registerConditionForFieldType("hasNoValue","acfe_user_roles"),acf.add_action("new_field/name=acfe_author",function(e){e.on("change",function(e){e.stopPropagation()})}),acf.addAction("new_field/name=acfe_form_post_map_target",e=function(e){var t=e.get("name"),a=e.$el.closest(".layout").find('> .acf-fields > .acf-field[data-name="'+t+'_message"] > .acf-input'),t=e.$input().find("option:selected").text();t.length&&a.html(t),e.$input().on("change",function(){var e=l(this).find("option:selected").text();a.html(e)})}),acf.addAction("new_field/name=acfe_form_post_map_post_type",e),acf.addAction("new_field/name=acfe_form_post_map_post_status",e),acf.addAction("new_field/name=acfe_form_post_map_post_title",e),acf.addAction("new_field/name=acfe_form_post_map_post_name",e),acf.addAction("new_field/name=acfe_form_post_map_post_content",e),acf.addAction("new_field/name=acfe_form_post_map_post_author",e),acf.addAction("new_field/name=acfe_form_post_map_post_parent",e),acf.addAction("new_field/name=acfe_form_post_map_post_terms",e),acf.addAction("new_field/name=acfe_form_user_map_email",e),acf.addAction("new_field/name=acfe_form_user_map_username",e),acf.addAction("new_field/name=acfe_form_user_map_password",e),acf.addAction("new_field/name=acfe_form_user_map_first_name",e),acf.addAction("new_field/name=acfe_form_user_map_last_name",e),acf.addAction("new_field/name=acfe_form_user_map_nickname",e),acf.addAction("new_field/name=acfe_form_user_map_display_name",e),acf.addAction("new_field/name=acfe_form_user_map_website",e),acf.addAction("new_field/name=acfe_form_user_map_description",e),acf.addAction("new_field/name=acfe_form_user_map_role",e),acf.addAction("new_field/name=acfe_form_term_map_name",e),acf.addAction("new_field/name=acfe_form_term_map_slug",e),acf.addAction("new_field/name=acfe_form_term_map_taxonomy",e),acf.addAction("new_field/name=acfe_form_term_map_parent",e),acf.addAction("new_field/name=acfe_form_term_map_description",e),acf.addAction("new_field/name=acfe_form_actions",function(t){var a=l("a[data-key=field_acfe_form_tab_actions]"),e=t.$layouts();a.html('Actions <span class="acfe-tab-badge">'+e.length+"</span>"),t.on("change",function(){var e=t.$layouts();a.html('Actions <span class="acfe-tab-badge">'+e.length+"</span>")}),t.on("click",'[data-name="add-layout"]',function(e){l("body").find(".acf-fc-popup").addClass("acfe-fc-popup-grey")})}),e=function(e){var t=e.findTabs(),t=acf.getInstances(t),a=e.get("key");if(t.length){var i=acf.getPreference("this.tabs");if(!i)return;l.each(t,function(){var e=this.get("index");this.data.key===a&&(i[e]=0)}),acf.setPreference("this.tabs",i)}},acf.addAction("prepare_field/key=field_acfe_form_custom_action_tab_action",e),acf.addAction("prepare_field/key=field_acfe_form_email_tab_action",e),acf.addAction("prepare_field/key=field_acfe_form_post_tab_action",e),acf.addAction("prepare_field/key=field_acfe_form_term_tab_action",e),acf.addAction("prepare_field/key=field_acfe_form_user_tab_action",e),acf.addAction("prepare_field/key=field_acfe_dpt_tab_general",e),acf.addAction("prepare_field/key=field_acfe_dt_tab_general",e),acf.addAction("show_postbox",function(e){e.$el.removeClass("acfe-postbox-left acfe-postbox-top")}),acf.newCondition=function(e,t){var a=t.get("field"),i=a.getField(e.field);if(a&&!i&&(i=acf.getField(e.field)),!a||!i)return!1;t={rule:e,target:a,conditions:t,field:i},i=i.get("type"),e=e.operator;return new(acf.getConditionTypes({fieldType:i,operator:e})[0]||acf.Condition)(t)},acf.addAction("new_field/type=checkbox",function(a){a.has("acfeLabels")&&l.each(a.get("acfeLabels"),function(e,t){a.$control().find('input[type=checkbox][value="'+t+'"]').closest("ul").before("<strong>"+e+"</strong>")})}),acf.addAction("new_field/type=radio",function(a){a.has("acfeLabels")&&(l.each(a.get("acfeLabels"),function(e,t){a.$control().find('input[type=radio][value="'+t+'"]').closest("li").addClass("parent").prepend("<strong>"+e+"</strong>")}),a.$control().hasClass("acf-hl")&&a.$control().find("li.parent").each(function(){l(this).nextUntil("li.parent").addBack().wrapAll("<li><ul></ul></li>")}))}))}(jQuery),function(c){"undefined"!=typeof acf&&(acf.addAction("prepare",function(){acf.get("is_admin")||(acf.isset(window,"wp","media","view","settings","post")&&(wp.media.view.settings.post=!1),c('.acfe-form[data-hide-unload="1"]').length&&acf.unload.disable(),c(".acfe-form-success").length&&(window.history.replaceState&&window.history.replaceState(null,null,window.location.href),c(".acfe-form-success").each(function(){var e=c(this).data("form-name"),t=c(this).data("form-id");acf.doAction("acfe/form/submit/success"),acf.doAction("acfe/form/submit/success/id="+t),acf.doAction("acfe/form/submit/success/name="+e)})))}),acf.addAction("new_field/type=date_picker",function(e){var t;acf.get("is_admin")||(!(t=e.$el.closest(".acfe-form")).length||(t=t.data("fields-class"))&&e.$inputText().addClass(t))}),acf.addAction("new_field/type=google_map",function(e){var t;acf.get("is_admin")||(!(t=e.$el.closest(".acfe-form")).length||(t=t.data("fields-class"))&&e.$search().addClass(t))}),acf.addAction("invalid_field",function(e){var t,a,i,o,n;acf.get("is_admin")||(t=e.$el.closest(".acfe-form")).length&&(a=t.data("errors-position"),(n=t.data("errors-class"))&&n.length&&e.$el.find(".acf-notice.-error").addClass(n),a&&"below"===a?(e.$control().length?e.$el.find(".acf-notice.-error").insertAfter(e.$control()):e.$input().length&&e.$el.find(".acf-notice.-error").insertAfter(e.$input()),o=!1,e.$control().length?o=e.$control():e.$input().length&&(o=e.$input()),o&&e.$el.find(".acf-notice.-error").insertAfter(o)):a&&"group"===a?(i=e.$el.find(".acf-label label").text().trim(),n=e.$el.find('.acf-input-wrap [placeholder!=""]').attr("placeholder"),o=e.$el.find(".acf-notice.-error").text().trim(),e.$el.find(".acf-notice.-error").remove(),o=i&&i.length&&"*"!==i?i+": "+o:n&&n.length&&""!==n?n+": "+o:e.get("name")+": "+o,(n=t.find("> .acfe-form-error")).length||(n=c('<div class="acf-notice -error acf-error-message acfe-form-error" />').prependTo(t)),n.append("<p>"+o+"</p>")):a&&"hide"===a&&e.$el.find(".acf-notice.-error").remove())}),acf.addAction("validation_begin",function(e){acf.get("is_admin")||void 0!==e&&e.find(".acf-error-message").remove()}))}(jQuery),jQuery,"undefined"!=typeof acf&&(acf.getFieldType("repeater").prototype.acfeOnHover=function(){this.off("mouseover")},acf.addAction("new_field/type=repeater",function(e){e.has("acfeRepeaterLock")&&(e.removeEvents({mouseover:"onHover"}),e.addEvents({mouseover:"acfeOnHover"})),e.has("acfeRepeaterRemoveActions")&&(e.$actions().remove(),e.$el.find("thead:first > tr > th.acf-row-handle:last").remove(),e.$rows().find("> .acf-row-handle:last").remove(),e.$control().find("> .acfe-repeater-stylised-button").remove()),e.has("acfeRepeaterStylisedButton")&&(e.$button().removeClass("button-primary"),e.$actions().wrap('<div class="acfe-repeater-stylised-button" />'))}));
|
|
@@ -0,0 +1,707 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
code,
|
2 |
+
kbd,
|
3 |
+
pre,
|
4 |
+
samp {
|
5 |
+
font-family: Menlo,Monaco,Consolas,Courier New,monospace;
|
6 |
+
font-size: 1em;
|
7 |
+
}
|
8 |
+
|
9 |
+
pre {
|
10 |
+
display: block;
|
11 |
+
padding: 9.5px;
|
12 |
+
margin: 0;
|
13 |
+
line-height: 1.42857143;
|
14 |
+
color: #333;
|
15 |
+
word-break: break-all;
|
16 |
+
word-wrap: break-word;
|
17 |
+
background-color: #f9f9f9;
|
18 |
+
border: 1px solid #ccc;
|
19 |
+
border-radius: 1px;
|
20 |
+
white-space: pre-wrap;
|
21 |
+
overflow: auto;
|
22 |
+
}
|
23 |
+
|
24 |
+
code {
|
25 |
+
-webkit-user-select: all;
|
26 |
+
-moz-user-select: all;
|
27 |
+
user-select: all;
|
28 |
+
}
|
29 |
+
|
30 |
+
pre > code {
|
31 |
+
-webkit-user-select: inherit;
|
32 |
+
-moz-user-select: inherit;
|
33 |
+
-ms-user-select: inherit;
|
34 |
+
user-select: inherit;
|
35 |
+
padding: 0;
|
36 |
+
margin: 0;
|
37 |
+
background: none;
|
38 |
+
font-size: 1em;
|
39 |
+
display: block;
|
40 |
+
}
|
41 |
+
|
42 |
+
.code-codemirror > .CodeMirror,
|
43 |
+
.pre-codemirror > .CodeMirror {
|
44 |
+
border: 1px solid #ccc;
|
45 |
+
height: auto;
|
46 |
+
width: auto;
|
47 |
+
background: #f9f9f9;
|
48 |
+
padding: 9px 6px;
|
49 |
+
}
|
50 |
+
|
51 |
+
.code-codemirror {
|
52 |
+
display: inline;
|
53 |
+
vertical-align: middle;
|
54 |
+
}
|
55 |
+
|
56 |
+
.code-codemirror > .CodeMirror {
|
57 |
+
display: inline-block;
|
58 |
+
padding: 0;
|
59 |
+
}
|
60 |
+
|
61 |
+
.code-codemirror > .CodeMirror .CodeMirror-selected,
|
62 |
+
.pre-codemirror > .CodeMirror .CodeMirror-selected {
|
63 |
+
background: #ddd !important;
|
64 |
+
}
|
65 |
+
|
66 |
+
.code-codemirror > .CodeMirror .CodeMirror-lines,
|
67 |
+
.pre-codemirror > .CodeMirror .CodeMirror-lines {
|
68 |
+
padding: 0;
|
69 |
+
}
|
70 |
+
|
71 |
+
.acfe-pre-highlight {
|
72 |
+
display: block;
|
73 |
+
padding: 9.5px;
|
74 |
+
margin: 0;
|
75 |
+
line-height: 1.42857143;
|
76 |
+
color: #333;
|
77 |
+
background-color: #f9f9f9;
|
78 |
+
border: 1px solid #ccc;
|
79 |
+
border-radius: 1px;
|
80 |
+
overflow: auto;
|
81 |
+
font-family: Menlo,Monaco,Consolas,Courier New,monospace;
|
82 |
+
font-size: 1em;
|
83 |
+
white-space: nowrap;
|
84 |
+
}
|
85 |
+
|
86 |
+
.acf-postbox.seamless > .inside > .acf-field {
|
87 |
+
padding: 15px 12px;
|
88 |
+
}
|
89 |
+
|
90 |
+
.acf-flexible-content .layout.ui-sortable-helper:first-child + .layout.ui-sortable-placeholder {
|
91 |
+
margin-top: 0;
|
92 |
+
}
|
93 |
+
|
94 |
+
.acfe-postbox.acfe-postbox-no-handle h2.hndle {
|
95 |
+
cursor: auto;
|
96 |
+
}
|
97 |
+
|
98 |
+
.acfe-postbox.acfe-postbox-no-handle .handlediv {
|
99 |
+
display: none;
|
100 |
+
}
|
101 |
+
|
102 |
+
.acfe-postbox-top > .inside {
|
103 |
+
position: relative;
|
104 |
+
}
|
105 |
+
|
106 |
+
.acfe-postbox-top > .inside.-border {
|
107 |
+
border: 1px solid #ccd0d4;
|
108 |
+
background: #fff;
|
109 |
+
}
|
110 |
+
|
111 |
+
.acfe-postbox-top > .inside > .acf-field {
|
112 |
+
position: relative;
|
113 |
+
margin: 0;
|
114 |
+
padding: 15px 12px;
|
115 |
+
border-top: 1px solid #eee;
|
116 |
+
}
|
117 |
+
|
118 |
+
.acfe-postbox-top > .inside > .acf-field:first-child {
|
119 |
+
border-top: none;
|
120 |
+
margin-top: 0;
|
121 |
+
}
|
122 |
+
|
123 |
+
.acfe-postbox-left > .inside {
|
124 |
+
position: relative;
|
125 |
+
}
|
126 |
+
|
127 |
+
.acfe-postbox-left > .inside:after {
|
128 |
+
display: block;
|
129 |
+
clear: both;
|
130 |
+
content: "";
|
131 |
+
}
|
132 |
+
|
133 |
+
.acfe-postbox-left > .inside.-border {
|
134 |
+
border: 1px solid #ccd0d4;
|
135 |
+
background: #fff;
|
136 |
+
}
|
137 |
+
|
138 |
+
.acfe-postbox-left > .inside > .acf-field {
|
139 |
+
position: relative;
|
140 |
+
margin: 0;
|
141 |
+
padding: 15px 12px;
|
142 |
+
border-top: 1px solid #eee;
|
143 |
+
}
|
144 |
+
|
145 |
+
.acfe-postbox-left > .inside > .acf-field:first-child {
|
146 |
+
border-top: none;
|
147 |
+
margin-top: 0;
|
148 |
+
}
|
149 |
+
|
150 |
+
.acfe-postbox-left > .inside.-clear > .acf-field {
|
151 |
+
border: none;
|
152 |
+
padding: 0;
|
153 |
+
margin: 15px 0;
|
154 |
+
}
|
155 |
+
|
156 |
+
.acfe-postbox-left > .inside > .acf-field {
|
157 |
+
padding: 15px 0;
|
158 |
+
}
|
159 |
+
|
160 |
+
.acfe-postbox-left > .inside > .acf-field:after {
|
161 |
+
display: block;
|
162 |
+
clear: both;
|
163 |
+
content: "";
|
164 |
+
}
|
165 |
+
|
166 |
+
.acfe-postbox-left > .inside > .acf-field:before {
|
167 |
+
content: "";
|
168 |
+
display: block;
|
169 |
+
position: absolute;
|
170 |
+
z-index: 0;
|
171 |
+
background: #f9f9f9;
|
172 |
+
border: solid #e1e1e1;
|
173 |
+
border-width: 0 1px 0 0;
|
174 |
+
top: 0;
|
175 |
+
bottom: 0;
|
176 |
+
left: 0;
|
177 |
+
width: 20%;
|
178 |
+
}
|
179 |
+
|
180 |
+
.acfe-postbox-left>.inside>.acf-field[data-width] {
|
181 |
+
float: none;
|
182 |
+
width: auto !important;
|
183 |
+
border-left-width: 0 !important;
|
184 |
+
border-right-width: 0 !important;
|
185 |
+
}
|
186 |
+
|
187 |
+
.acfe-postbox-left > .inside > .acf-field > .acf-label {
|
188 |
+
float: left;
|
189 |
+
width: 20%;
|
190 |
+
margin: 0;
|
191 |
+
padding: 0 12px;
|
192 |
+
}
|
193 |
+
|
194 |
+
.acfe-postbox-left > .inside > .acf-field > .acf-input {
|
195 |
+
float: left;
|
196 |
+
width: 80%;
|
197 |
+
margin: 0;
|
198 |
+
padding: 0 12px;
|
199 |
+
}
|
200 |
+
|
201 |
+
html[dir=rtl] .acfe-postbox-left>.inside>.acf-field:before {
|
202 |
+
border-width: 0 0 0 1px;
|
203 |
+
left: auto;
|
204 |
+
right: 0;
|
205 |
+
}
|
206 |
+
|
207 |
+
html[dir=rtl] .acfe-postbox-left>.inside>.acf-field>.acf-input,
|
208 |
+
html[dir=rtl] .acfe-postbox-left>.inside>.acf-field>.acf-label {
|
209 |
+
float: right;
|
210 |
+
}
|
211 |
+
|
212 |
+
#side-sortables .acfe-postbox-left > .inside > .acf-field:before {
|
213 |
+
display: none;
|
214 |
+
}
|
215 |
+
|
216 |
+
#side-sortables .acfe-postbox-left > .inside > .acf-field > .acf-label {
|
217 |
+
width: 100%;
|
218 |
+
margin-bottom: 10px;
|
219 |
+
}
|
220 |
+
|
221 |
+
#side-sortables .acfe-postbox-left > .inside > .acf-field > .acf-input {
|
222 |
+
width: 100%;
|
223 |
+
}
|
224 |
+
|
225 |
+
@media screen and (max-width: 640px) {
|
226 |
+
.acfe-postbox-left > .inside > .acf-field:before {
|
227 |
+
display: none;
|
228 |
+
}
|
229 |
+
|
230 |
+
.acfe-postbox-left > .inside > .acf-field > .acf-label {
|
231 |
+
width: 100%;
|
232 |
+
margin-bottom: 10px;
|
233 |
+
}
|
234 |
+
|
235 |
+
.acfe-postbox-left > .inside > .acf-field > .acf-input {
|
236 |
+
width: 100%;
|
237 |
+
}
|
238 |
+
}
|
239 |
+
|
240 |
+
.wrap .acfe-dop-admin-config,
|
241 |
+
.wrap .acfe-dop-admin-config:active,
|
242 |
+
.wrap .acfe-dpt-admin-config,
|
243 |
+
.wrap .acfe-dpt-admin-config:active,
|
244 |
+
.wrap .acfe-dt-admin-config,
|
245 |
+
.wrap .acfe-dt-admin-config:active {
|
246 |
+
padding-left: 4px;
|
247 |
+
padding-right: 4px;
|
248 |
+
}
|
249 |
+
|
250 |
+
.wrap .acfe-dop-admin-config span,
|
251 |
+
.wrap .acfe-dpt-admin-config span,
|
252 |
+
.wrap .acfe-dt-admin-config span {
|
253 |
+
font-size: 16px;
|
254 |
+
vertical-align: text-top;
|
255 |
+
height: 15px;
|
256 |
+
width: 19px;
|
257 |
+
line-height: 19px;
|
258 |
+
}
|
259 |
+
|
260 |
+
.wrap .acfe-dop-admin-config {
|
261 |
+
display: inline-block;
|
262 |
+
}
|
263 |
+
|
264 |
+
body.post-type-acfe-dpt .misc-pub-post-status,
|
265 |
+
body.post-type-acfe-dpt .misc-pub-visibility,
|
266 |
+
body.post-type-acfe-dpt.post-new-php #minor-publishing-actions,
|
267 |
+
body.post-type-acfe-dpt.post-new-php #misc-publishing-actions {
|
268 |
+
display: none;
|
269 |
+
}
|
270 |
+
|
271 |
+
body.post-type-acfe-dpt.post-new-php #major-publishing-actions {
|
272 |
+
border-top: 0;
|
273 |
+
}
|
274 |
+
|
275 |
+
body.post-type-acfe-dt .misc-pub-post-status,
|
276 |
+
body.post-type-acfe-dt .misc-pub-visibility,
|
277 |
+
body.post-type-acfe-dt.post-new-php #minor-publishing-actions,
|
278 |
+
body.post-type-acfe-dt.post-new-php #misc-publishing-actions {
|
279 |
+
display: none;
|
280 |
+
}
|
281 |
+
|
282 |
+
body.post-type-acfe-dt.post-new-php #major-publishing-actions {
|
283 |
+
border-top: 0;
|
284 |
+
}
|
285 |
+
|
286 |
+
body.post-type-acfe-dop .misc-pub-post-status,
|
287 |
+
body.post-type-acfe-dop .misc-pub-visibility,
|
288 |
+
body.post-type-acfe-dop.post-new-php #minor-publishing-actions,
|
289 |
+
body.post-type-acfe-dop.post-new-php #misc-publishing-actions {
|
290 |
+
display: none;
|
291 |
+
}
|
292 |
+
|
293 |
+
body.post-type-acfe-dop.post-new-php #major-publishing-actions {
|
294 |
+
border-top: 0;
|
295 |
+
}
|
296 |
+
|
297 |
+
body.post-type-acfe-dbt .misc-pub-post-status,
|
298 |
+
body.post-type-acfe-dbt .misc-pub-visibility,
|
299 |
+
body.post-type-acfe-dbt.post-new-php #minor-publishing-actions,
|
300 |
+
body.post-type-acfe-dbt.post-new-php #misc-publishing-actions {
|
301 |
+
display: none;
|
302 |
+
}
|
303 |
+
|
304 |
+
body.post-type-acfe-dbt.post-new-php #major-publishing-actions {
|
305 |
+
border-top: 0;
|
306 |
+
}
|
307 |
+
|
308 |
+
body.post-type-acfe-form .misc-pub-post-status,
|
309 |
+
body.post-type-acfe-form .misc-pub-visibility,
|
310 |
+
body.post-type-acfe-form.post-new-php #minor-publishing-actions,
|
311 |
+
body.post-type-acfe-form.post-new-php #misc-publishing-actions {
|
312 |
+
display: none;
|
313 |
+
}
|
314 |
+
|
315 |
+
body.post-type-acfe-form.post-new-php #major-publishing-actions {
|
316 |
+
border-top: 0;
|
317 |
+
}
|
318 |
+
|
319 |
+
.acf-field.acf-field-acfe-author > .acf-label {
|
320 |
+
display: none;
|
321 |
+
}
|
322 |
+
|
323 |
+
.edit-post-layout__metaboxes:not(:empty) {
|
324 |
+
background: #f3f4f5;
|
325 |
+
padding: 10px 10px 0 !important;
|
326 |
+
}
|
327 |
+
|
328 |
+
.edit-post-layout__metaboxes .edit-post-meta-boxes-area .postbox {
|
329 |
+
margin-bottom: 10px;
|
330 |
+
border: 1px solid #e1e1e1;
|
331 |
+
}
|
332 |
+
|
333 |
+
.edit-post-layout__metaboxes .edit-post-meta-boxes-area .postbox > .inside {
|
334 |
+
border-bottom: 0;
|
335 |
+
}
|
336 |
+
|
337 |
+
#acf-admin-tool-acfe_tool_dbt_export ul,
|
338 |
+
#acf-admin-tool-acfe_tool_dpt_export ul,
|
339 |
+
#acf-admin-tool-acfe_tool_dt_export ul,
|
340 |
+
#acf-admin-tool-acfe_tool_form_export ul {
|
341 |
+
-webkit-column-width: 200px;
|
342 |
+
-moz-column-width: 200px;
|
343 |
+
column-width: 200px;
|
344 |
+
}
|
345 |
+
|
346 |
+
.acf-meta-box-wrap.-grid #acf-admin-tool-acfe-fg-local {
|
347 |
+
display: none;
|
348 |
+
}
|
349 |
+
|
350 |
+
.settings_page_acfe-options .column-option_id {
|
351 |
+
width: 65px;
|
352 |
+
}
|
353 |
+
|
354 |
+
.settings_page_acfe-options .column-option_name {
|
355 |
+
width: 435px;
|
356 |
+
}
|
357 |
+
|
358 |
+
.settings_page_acfe-options .column-autoload {
|
359 |
+
width: 100px;
|
360 |
+
text-align: center;
|
361 |
+
}
|
362 |
+
|
363 |
+
.acf-field[data-name=acfe_form_post_save_post_content_custom],
|
364 |
+
.acf-field[data-name=acfe_form_post_save_post_name_custom],
|
365 |
+
.acf-field[data-name=acfe_form_post_save_post_title_custom],
|
366 |
+
.acf-field[data-name=acfe_form_term_save_description_custom],
|
367 |
+
.acf-field[data-name=acfe_form_term_save_name_custom],
|
368 |
+
.acf-field[data-name=acfe_form_term_save_slug_custom],
|
369 |
+
.acf-field[data-name=acfe_form_user_save_description_custom],
|
370 |
+
.acf-field[data-name=acfe_form_user_save_display_name_custom],
|
371 |
+
.acf-field[data-name=acfe_form_user_save_email_custom],
|
372 |
+
.acf-field[data-name=acfe_form_user_save_first_name_custom],
|
373 |
+
.acf-field[data-name=acfe_form_user_save_last_name_custom],
|
374 |
+
.acf-field[data-name=acfe_form_user_save_nickname_custom],
|
375 |
+
.acf-field[data-name=acfe_form_user_save_password_custom],
|
376 |
+
.acf-field[data-name=acfe_form_user_save_username_custom],
|
377 |
+
.acf-field[data-name=acfe_form_user_save_website_custom] {
|
378 |
+
border-top: 0;
|
379 |
+
padding-top: 0;
|
380 |
+
}
|
381 |
+
|
382 |
+
.acf-field.acf-field-acfe-form-attributes > .acf-input > .acf-fields > .acf-field,
|
383 |
+
.acf-field.acf-field-acfe-form-fields-attributes > .acf-input > .acf-fields > .acf-field {
|
384 |
+
border-left-width: 0;
|
385 |
+
}
|
386 |
+
|
387 |
+
.acf-field-repeater.acf-field-acfe-form-email-files-static > .acf-input > .acf-repeater > .acf-actions,
|
388 |
+
.acf-field-repeater.acf-field-acfe-form-email-files > .acf-input > .acf-repeater > .acf-actions {
|
389 |
+
text-align: left;
|
390 |
+
}
|
391 |
+
|
392 |
+
.postbox#acfe-acf-custom-fields > .inside,
|
393 |
+
.postbox#acfe-wp-custom-fields > .inside {
|
394 |
+
padding: 0;
|
395 |
+
margin: 0;
|
396 |
+
}
|
397 |
+
|
398 |
+
.postbox#acfe-acf-custom-fields + .tablenav,
|
399 |
+
.postbox#acfe-wp-custom-fields + .tablenav {
|
400 |
+
padding-top: 0;
|
401 |
+
margin-top: -8px;
|
402 |
+
}
|
403 |
+
|
404 |
+
.postbox#acfe-acf-custom-fields em,
|
405 |
+
.postbox#acfe-wp-custom-fields em {
|
406 |
+
color: #aaa;
|
407 |
+
}
|
408 |
+
|
409 |
+
.postbox#acfe-acf-custom-fields .acfe_dev_meta_count,
|
410 |
+
.postbox#acfe-wp-custom-fields .acfe_dev_meta_count {
|
411 |
+
background: #72777c;
|
412 |
+
padding: 1px 5px;
|
413 |
+
border-radius: 4px;
|
414 |
+
color: #fff;
|
415 |
+
margin-left: 7px;
|
416 |
+
font-size: 12px;
|
417 |
+
margin-right: auto;
|
418 |
+
}
|
419 |
+
|
420 |
+
@media only screen and (max-width: 1100px) {
|
421 |
+
.postbox#acfe-acf-custom-fields thead,
|
422 |
+
.postbox#acfe-wp-custom-fields thead {
|
423 |
+
display: none;
|
424 |
+
}
|
425 |
+
|
426 |
+
.postbox#acfe-acf-custom-fields tbody tr,
|
427 |
+
.postbox#acfe-wp-custom-fields tbody tr {
|
428 |
+
display: -webkit-box;
|
429 |
+
display: -ms-flexbox;
|
430 |
+
display: flex;
|
431 |
+
-ms-flex-wrap: wrap;
|
432 |
+
flex-wrap: wrap;
|
433 |
+
}
|
434 |
+
|
435 |
+
.postbox#acfe-acf-custom-fields tbody td,
|
436 |
+
.postbox#acfe-acf-custom-fields tbody th,
|
437 |
+
.postbox#acfe-wp-custom-fields tbody td,
|
438 |
+
.postbox#acfe-wp-custom-fields tbody th {
|
439 |
+
display: block;
|
440 |
+
}
|
441 |
+
|
442 |
+
.postbox#acfe-acf-custom-fields tbody td:first-of-type,
|
443 |
+
.postbox#acfe-wp-custom-fields tbody td:first-of-type {
|
444 |
+
-webkit-box-flex: 1;
|
445 |
+
-ms-flex: 1;
|
446 |
+
flex: 1;
|
447 |
+
}
|
448 |
+
|
449 |
+
@media only screen and (max-width: 850px) {
|
450 |
+
.postbox#acfe-acf-custom-fields tbody td:first-of-type,
|
451 |
+
.postbox#acfe-wp-custom-fields tbody td:first-of-type {
|
452 |
+
line-height: 2.2;
|
453 |
+
}
|
454 |
+
}
|
455 |
+
|
456 |
+
.postbox#acfe-acf-custom-fields tbody td:first-of-type strong,
|
457 |
+
.postbox#acfe-wp-custom-fields tbody td:first-of-type strong {
|
458 |
+
display: inline-block;
|
459 |
+
word-break: break-all;
|
460 |
+
}
|
461 |
+
|
462 |
+
.postbox#acfe-acf-custom-fields tbody td:first-of-type .row-actions,
|
463 |
+
.postbox#acfe-wp-custom-fields tbody td:first-of-type .row-actions {
|
464 |
+
display: inline-block;
|
465 |
+
padding: 0;
|
466 |
+
float: right;
|
467 |
+
}
|
468 |
+
|
469 |
+
@media only screen and (max-width: 850px) {
|
470 |
+
.postbox#acfe-acf-custom-fields tbody td:first-of-type .row-actions,
|
471 |
+
.postbox#acfe-wp-custom-fields tbody td:first-of-type .row-actions {
|
472 |
+
left: auto;
|
473 |
+
}
|
474 |
+
}
|
475 |
+
|
476 |
+
.postbox#acfe-acf-custom-fields tbody td:first-of-type .row-actions .delete,
|
477 |
+
.postbox#acfe-acf-custom-fields tbody td:first-of-type .row-actions a,
|
478 |
+
.postbox#acfe-wp-custom-fields tbody td:first-of-type .row-actions .delete,
|
479 |
+
.postbox#acfe-wp-custom-fields tbody td:first-of-type .row-actions a {
|
480 |
+
padding: 0;
|
481 |
+
}
|
482 |
+
|
483 |
+
.postbox#acfe-acf-custom-fields tbody td:nth-child(3),
|
484 |
+
.postbox#acfe-wp-custom-fields tbody td:nth-child(3) {
|
485 |
+
-webkit-box-flex: 1;
|
486 |
+
-ms-flex: 1 1 100%;
|
487 |
+
flex: 1 1 100%;
|
488 |
+
}
|
489 |
+
}
|
490 |
+
|
491 |
+
body:not(.acf-admin-5-3) .acf-field .select2-container .select2-selection,
|
492 |
+
body:not(.acf-admin-5-3) .acf-field .select2-container .select2-selection__choice,
|
493 |
+
body:not(.acf-admin-5-3) .acf-field .select2-dropdown {
|
494 |
+
border-color: #dfdfdf !important;
|
495 |
+
border-radius: 0 !important;
|
496 |
+
}
|
497 |
+
|
498 |
+
body:not(.acf-admin-5-3) .acf-field .select2-container .select2-search--inline .select2-search__field {
|
499 |
+
margin-top: 0 !important;
|
500 |
+
}
|
501 |
+
|
502 |
+
.acf-field .select2-container .select2-selection--single {
|
503 |
+
border-radius: 3px !important;
|
504 |
+
height: 30px !important;
|
505 |
+
outline: none;
|
506 |
+
}
|
507 |
+
|
508 |
+
.acf-field .select2-container.select2-container--open .select2-selection--single,
|
509 |
+
.acf-field .select2-container:focus .select2-selection--single {
|
510 |
+
border-color: #007cba !important;
|
511 |
+
color: #016087 !important;
|
512 |
+
-webkit-box-shadow: 0 0 0 1px #007cba !important;
|
513 |
+
box-shadow: 0 0 0 1px #007cba !important;
|
514 |
+
}
|
515 |
+
|
516 |
+
.acf-field .select2-container .select2-selection--single .select2-selection__rendered {
|
517 |
+
font-size: 14px;
|
518 |
+
height: 28px;
|
519 |
+
line-height: 27px !important;
|
520 |
+
padding-right: 23px !important;
|
521 |
+
}
|
522 |
+
|
523 |
+
.acf-field .select2-container .select2-selection--single .select2-selection__clear {
|
524 |
+
line-height: 26px;
|
525 |
+
height: 28px;
|
526 |
+
font-size: 16px;
|
527 |
+
}
|
528 |
+
|
529 |
+
.acf-field .select2-container--default .select2-selection--single .select2-selection__arrow {
|
530 |
+
height: 28px !important;
|
531 |
+
}
|
532 |
+
|
533 |
+
.acf-field .select2-container--default .select2-selection--single .select2-selection__arrow b {
|
534 |
+
background: url("data:image/svg+xml;charset=US-ASCII, %3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") no-repeat;
|
535 |
+
background-size: 16px 16px;
|
536 |
+
border: 0 !important;
|
537 |
+
width: 16px !important;
|
538 |
+
height: 16px !important;
|
539 |
+
margin-left: -11px !important;
|
540 |
+
margin-top: -7px !important;
|
541 |
+
}
|
542 |
+
|
543 |
+
.acf-field .select2-container .select2-search--inline .select2-search__field {
|
544 |
+
margin-top: 4px !important;
|
545 |
+
font-size: 14px !important;
|
546 |
+
padding-left: 2px !important;
|
547 |
+
}
|
548 |
+
|
549 |
+
.acf-field .select2-container .select2-selection--multiple {
|
550 |
+
min-height: 30px !important;
|
551 |
+
line-height: 1;
|
552 |
+
border-radius: 3px !important;
|
553 |
+
}
|
554 |
+
|
555 |
+
.acf-field .select2-container--default .select2-selection--multiple .select2-selection__rendered {
|
556 |
+
padding: 0 2px !important;
|
557 |
+
}
|
558 |
+
|
559 |
+
.acf-field .select2-container--default .select2-selection--multiple .select2-selection__choice {
|
560 |
+
margin-right: 2px !important;
|
561 |
+
margin-top: 2px !important;
|
562 |
+
line-height: 1.6;
|
563 |
+
border-radius: 3px !important;
|
564 |
+
font-size: 14px;
|
565 |
+
}
|
566 |
+
|
567 |
+
.acf-field .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
|
568 |
+
line-height: 15px;
|
569 |
+
font-size: 15px;
|
570 |
+
}
|
571 |
+
|
572 |
+
.acf-field .select2-container--default.select2-container--focus .select2-selection--multiple {
|
573 |
+
border-color: #7e8993 !important;
|
574 |
+
}
|
575 |
+
|
576 |
+
.acf-field .select2-container--default .select2-selection--multiple .select2-selection__clear {
|
577 |
+
margin-top: 5px !important;
|
578 |
+
margin-right: 5px !important;
|
579 |
+
font-size: 16px;
|
580 |
+
}
|
581 |
+
|
582 |
+
.acf-field > .acf-input > .select2 .select2-search {
|
583 |
+
width: auto;
|
584 |
+
}
|
585 |
+
|
586 |
+
.select2-container .select2-dropdown .select2-search__field {
|
587 |
+
min-height: 30px !important;
|
588 |
+
border: 0 !important;
|
589 |
+
-webkit-box-shadow: none !important;
|
590 |
+
box-shadow: none !important;
|
591 |
+
}
|
592 |
+
|
593 |
+
.acf-tab-group li a .acfe-tab-badge {
|
594 |
+
border-radius: 100px;
|
595 |
+
background: #ddd;
|
596 |
+
width: 18px;
|
597 |
+
height: 18px;
|
598 |
+
font-size: 12px;
|
599 |
+
display: inline-block;
|
600 |
+
vertical-align: text-bottom;
|
601 |
+
padding: 0;
|
602 |
+
text-align: center;
|
603 |
+
margin-left: 5px;
|
604 |
+
line-height: 18px;
|
605 |
+
}
|
606 |
+
|
607 |
+
.acf-tab-group li.active a .acfe-tab-badge,
|
608 |
+
.acf-tab-group li a:hover .acfe-tab-badge {
|
609 |
+
background: #f1f1f1;
|
610 |
+
}
|
611 |
+
|
612 |
+
.menu-item-settings {
|
613 |
+
position: static;
|
614 |
+
}
|
615 |
+
|
616 |
+
@media screen and (min-width: 783px) {
|
617 |
+
.postbox .handle-order-higher,
|
618 |
+
.postbox .handle-order-lower {
|
619 |
+
visibility: hidden;
|
620 |
+
}
|
621 |
+
|
622 |
+
.postbox:hover .handle-order-higher,
|
623 |
+
.postbox:hover .handle-order-lower {
|
624 |
+
visibility: visible;
|
625 |
+
}
|
626 |
+
}
|
627 |
+
|
628 |
+
.postbox .handle-order-higher,
|
629 |
+
.postbox .handle-order-lower {
|
630 |
+
vertical-align: bottom;
|
631 |
+
}
|
632 |
+
|
633 |
+
.postbox .handle-order-higher .order-higher-indicator:before,
|
634 |
+
.postbox .handle-order-lower .order-lower-indicator:before {
|
635 |
+
font-size: 15px;
|
636 |
+
top: .18rem;
|
637 |
+
}
|
638 |
+
|
639 |
+
.postbox .handlediv {
|
640 |
+
width: 1.62rem;
|
641 |
+
}
|
642 |
+
|
643 |
+
.postbox .handlediv .toggle-indicator:before {
|
644 |
+
text-indent: -7px;
|
645 |
+
}
|
646 |
+
|
647 |
+
.acf-settings-wrap .acf-box {
|
648 |
+
margin: 16px 0;
|
649 |
+
}
|
650 |
+
|
651 |
+
.acf-box .title {
|
652 |
+
padding: 8px 15px;
|
653 |
+
}
|
654 |
+
|
655 |
+
.acf-box .title h3 {
|
656 |
+
line-height: 1.4;
|
657 |
+
}
|
658 |
+
|
659 |
+
.acf-columns-2 {
|
660 |
+
margin-right: 300px;
|
661 |
+
clear: both;
|
662 |
+
}
|
663 |
+
|
664 |
+
.acf-columns-2:after {
|
665 |
+
display: block;
|
666 |
+
clear: both;
|
667 |
+
content: "";
|
668 |
+
}
|
669 |
+
|
670 |
+
html[dir=rtl] .acf-columns-2 {
|
671 |
+
margin-right: 0;
|
672 |
+
margin-left: 300px;
|
673 |
+
}
|
674 |
+
|
675 |
+
.acf-columns-2 .acf-column-1 {
|
676 |
+
float: left;
|
677 |
+
width: 100%;
|
678 |
+
}
|
679 |
+
|
680 |
+
html[dir=rtl] .acf-columns-2 .acf-column-1 {
|
681 |
+
float: right;
|
682 |
+
}
|
683 |
+
|
684 |
+
.acf-columns-2 .acf-column-2 {
|
685 |
+
float: right;
|
686 |
+
margin-right: -300px;
|
687 |
+
width: 280px;
|
688 |
+
}
|
689 |
+
|
690 |
+
html[dir=rtl] .acf-columns-2 .acf-column-2 {
|
691 |
+
float: left;
|
692 |
+
margin-right: 0;
|
693 |
+
margin-left: -300px;
|
694 |
+
}
|
695 |
+
|
696 |
+
@media only screen and (max-width: 850px) {
|
697 |
+
.acf-columns-2 {
|
698 |
+
margin-right: 0;
|
699 |
+
}
|
700 |
+
|
701 |
+
.acf-columns-2 .acf-column-1,
|
702 |
+
.acf-columns-2 .acf-column-2 {
|
703 |
+
float: none;
|
704 |
+
width: auto;
|
705 |
+
margin: 0;
|
706 |
+
}
|
707 |
+
}
|
@@ -0,0 +1 @@
|
|
|
1 |
+
code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,Courier New,monospace;font-size:1em}pre{display:block;padding:9.5px;margin:0;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f9f9f9;border:1px solid #ccc;border-radius:1px;white-space:pre-wrap;overflow:auto}code{-webkit-user-select:all;-moz-user-select:all;user-select:all}pre>code{-webkit-user-select:inherit;-moz-user-select:inherit;-ms-user-select:inherit;user-select:inherit;padding:0;margin:0;background:none;font-size:1em;display:block}.code-codemirror>.CodeMirror,.pre-codemirror>.CodeMirror{border:1px solid #ccc;height:auto;width:auto;background:#f9f9f9;padding:9px 6px}.code-codemirror{display:inline;vertical-align:middle}.code-codemirror>.CodeMirror{display:inline-block;padding:0}.code-codemirror>.CodeMirror .CodeMirror-selected,.pre-codemirror>.CodeMirror .CodeMirror-selected{background:#ddd!important}.code-codemirror>.CodeMirror .CodeMirror-lines,.pre-codemirror>.CodeMirror .CodeMirror-lines{padding:0}.acfe-pre-highlight{display:block;padding:9.5px;margin:0;line-height:1.42857143;color:#333;background-color:#f9f9f9;border:1px solid #ccc;border-radius:1px;overflow:auto;font-family:Menlo,Monaco,Consolas,Courier New,monospace;font-size:1em;white-space:nowrap}.acf-postbox.seamless>.inside>.acf-field{padding:15px 12px}.acf-flexible-content .layout.ui-sortable-helper:first-child+.layout.ui-sortable-placeholder{margin-top:0}.acfe-postbox.acfe-postbox-no-handle h2.hndle{cursor:auto}.acfe-postbox.acfe-postbox-no-handle .handlediv{display:none}.acfe-postbox-top>.inside{position:relative}.acfe-postbox-top>.inside.-border{border:1px solid #ccd0d4;background:#fff}.acfe-postbox-top>.inside>.acf-field{position:relative;margin:0;padding:15px 12px;border-top:1px solid #eee}.acfe-postbox-top>.inside>.acf-field:first-child{border-top:none;margin-top:0}.acfe-postbox-left>.inside{position:relative}.acfe-postbox-left>.inside:after{display:block;clear:both;content:""}.acfe-postbox-left>.inside.-border{border:1px solid #ccd0d4;background:#fff}.acfe-postbox-left>.inside>.acf-field{position:relative;margin:0;padding:15px 12px;border-top:1px solid #eee}.acfe-postbox-left>.inside>.acf-field:first-child{border-top:none;margin-top:0}.acfe-postbox-left>.inside.-clear>.acf-field{border:none;padding:0;margin:15px 0}.acfe-postbox-left>.inside>.acf-field{padding:15px 0}.acfe-postbox-left>.inside>.acf-field:after{display:block;clear:both;content:""}.acfe-postbox-left>.inside>.acf-field:before{content:"";display:block;position:absolute;z-index:0;background:#f9f9f9;border:solid #e1e1e1;border-width:0 1px 0 0;top:0;bottom:0;left:0;width:20%}.acfe-postbox-left>.inside>.acf-field[data-width]{float:none;width:auto!important;border-left-width:0!important;border-right-width:0!important}.acfe-postbox-left>.inside>.acf-field>.acf-label{float:left;width:20%;margin:0;padding:0 12px}.acfe-postbox-left>.inside>.acf-field>.acf-input{float:left;width:80%;margin:0;padding:0 12px}html[dir=rtl] .acfe-postbox-left>.inside>.acf-field:before{border-width:0 0 0 1px;left:auto;right:0}html[dir=rtl] .acfe-postbox-left>.inside>.acf-field>.acf-input,html[dir=rtl] .acfe-postbox-left>.inside>.acf-field>.acf-label{float:right}#side-sortables .acfe-postbox-left>.inside>.acf-field:before{display:none}#side-sortables .acfe-postbox-left>.inside>.acf-field>.acf-label{width:100%;margin-bottom:10px}#side-sortables .acfe-postbox-left>.inside>.acf-field>.acf-input{width:100%}@media screen and (max-width:640px){.acfe-postbox-left>.inside>.acf-field:before{display:none}.acfe-postbox-left>.inside>.acf-field>.acf-label{width:100%;margin-bottom:10px}.acfe-postbox-left>.inside>.acf-field>.acf-input{width:100%}}.wrap .acfe-dop-admin-config,.wrap .acfe-dop-admin-config:active,.wrap .acfe-dpt-admin-config,.wrap .acfe-dpt-admin-config:active,.wrap .acfe-dt-admin-config,.wrap .acfe-dt-admin-config:active{padding-left:4px;padding-right:4px}.wrap .acfe-dop-admin-config span,.wrap .acfe-dpt-admin-config span,.wrap .acfe-dt-admin-config span{font-size:16px;vertical-align:text-top;height:15px;width:19px;line-height:19px}.wrap .acfe-dop-admin-config{display:inline-block}body.post-type-acfe-dpt .misc-pub-post-status,body.post-type-acfe-dpt .misc-pub-visibility,body.post-type-acfe-dpt.post-new-php #minor-publishing-actions,body.post-type-acfe-dpt.post-new-php #misc-publishing-actions{display:none}body.post-type-acfe-dpt.post-new-php #major-publishing-actions{border-top:0}body.post-type-acfe-dt .misc-pub-post-status,body.post-type-acfe-dt .misc-pub-visibility,body.post-type-acfe-dt.post-new-php #minor-publishing-actions,body.post-type-acfe-dt.post-new-php #misc-publishing-actions{display:none}body.post-type-acfe-dt.post-new-php #major-publishing-actions{border-top:0}body.post-type-acfe-dop .misc-pub-post-status,body.post-type-acfe-dop .misc-pub-visibility,body.post-type-acfe-dop.post-new-php #minor-publishing-actions,body.post-type-acfe-dop.post-new-php #misc-publishing-actions{display:none}body.post-type-acfe-dop.post-new-php #major-publishing-actions{border-top:0}body.post-type-acfe-dbt .misc-pub-post-status,body.post-type-acfe-dbt .misc-pub-visibility,body.post-type-acfe-dbt.post-new-php #minor-publishing-actions,body.post-type-acfe-dbt.post-new-php #misc-publishing-actions{display:none}body.post-type-acfe-dbt.post-new-php #major-publishing-actions{border-top:0}body.post-type-acfe-form .misc-pub-post-status,body.post-type-acfe-form .misc-pub-visibility,body.post-type-acfe-form.post-new-php #minor-publishing-actions,body.post-type-acfe-form.post-new-php #misc-publishing-actions{display:none}body.post-type-acfe-form.post-new-php #major-publishing-actions{border-top:0}.acf-field.acf-field-acfe-author>.acf-label{display:none}.edit-post-layout__metaboxes:not(:empty){background:#f3f4f5;padding:10px 10px 0!important}.edit-post-layout__metaboxes .edit-post-meta-boxes-area .postbox{margin-bottom:10px;border:1px solid #e1e1e1}.edit-post-layout__metaboxes .edit-post-meta-boxes-area .postbox>.inside{border-bottom:0}#acf-admin-tool-acfe_tool_dbt_export ul,#acf-admin-tool-acfe_tool_dpt_export ul,#acf-admin-tool-acfe_tool_dt_export ul,#acf-admin-tool-acfe_tool_form_export ul{-webkit-column-width:200px;-moz-column-width:200px;column-width:200px}.acf-meta-box-wrap.-grid #acf-admin-tool-acfe-fg-local{display:none}.settings_page_acfe-options .column-option_id{width:65px}.settings_page_acfe-options .column-option_name{width:435px}.settings_page_acfe-options .column-autoload{width:100px;text-align:center}.acf-field[data-name=acfe_form_post_save_post_content_custom],.acf-field[data-name=acfe_form_post_save_post_name_custom],.acf-field[data-name=acfe_form_post_save_post_title_custom],.acf-field[data-name=acfe_form_term_save_description_custom],.acf-field[data-name=acfe_form_term_save_name_custom],.acf-field[data-name=acfe_form_term_save_slug_custom],.acf-field[data-name=acfe_form_user_save_description_custom],.acf-field[data-name=acfe_form_user_save_display_name_custom],.acf-field[data-name=acfe_form_user_save_email_custom],.acf-field[data-name=acfe_form_user_save_first_name_custom],.acf-field[data-name=acfe_form_user_save_last_name_custom],.acf-field[data-name=acfe_form_user_save_nickname_custom],.acf-field[data-name=acfe_form_user_save_password_custom],.acf-field[data-name=acfe_form_user_save_username_custom],.acf-field[data-name=acfe_form_user_save_website_custom]{border-top:0;padding-top:0}.acf-field.acf-field-acfe-form-attributes>.acf-input>.acf-fields>.acf-field,.acf-field.acf-field-acfe-form-fields-attributes>.acf-input>.acf-fields>.acf-field{border-left-width:0}.acf-field-repeater.acf-field-acfe-form-email-files-static>.acf-input>.acf-repeater>.acf-actions,.acf-field-repeater.acf-field-acfe-form-email-files>.acf-input>.acf-repeater>.acf-actions{text-align:left}.postbox#acfe-acf-custom-fields>.inside,.postbox#acfe-wp-custom-fields>.inside{padding:0;margin:0}.postbox#acfe-acf-custom-fields+.tablenav,.postbox#acfe-wp-custom-fields+.tablenav{padding-top:0;margin-top:-8px}.postbox#acfe-acf-custom-fields em,.postbox#acfe-wp-custom-fields em{color:#aaa}.postbox#acfe-acf-custom-fields .acfe_dev_meta_count,.postbox#acfe-wp-custom-fields .acfe_dev_meta_count{background:#72777c;padding:1px 5px;border-radius:4px;color:#fff;margin-left:7px;font-size:12px;margin-right:auto}@media only screen and (max-width:1100px){.postbox#acfe-acf-custom-fields thead,.postbox#acfe-wp-custom-fields thead{display:none}.postbox#acfe-acf-custom-fields tbody tr,.postbox#acfe-wp-custom-fields tbody tr{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.postbox#acfe-acf-custom-fields tbody td,.postbox#acfe-acf-custom-fields tbody th,.postbox#acfe-wp-custom-fields tbody td,.postbox#acfe-wp-custom-fields tbody th{display:block}.postbox#acfe-acf-custom-fields tbody td:first-of-type,.postbox#acfe-wp-custom-fields tbody td:first-of-type{-webkit-box-flex:1;-ms-flex:1;flex:1}@media only screen and (max-width:850px){.postbox#acfe-acf-custom-fields tbody td:first-of-type,.postbox#acfe-wp-custom-fields tbody td:first-of-type{line-height:2.2}}.postbox#acfe-acf-custom-fields tbody td:first-of-type strong,.postbox#acfe-wp-custom-fields tbody td:first-of-type strong{display:inline-block;word-break:break-all}.postbox#acfe-acf-custom-fields tbody td:first-of-type .row-actions,.postbox#acfe-wp-custom-fields tbody td:first-of-type .row-actions{display:inline-block;padding:0;float:right}@media only screen and (max-width:850px){.postbox#acfe-acf-custom-fields tbody td:first-of-type .row-actions,.postbox#acfe-wp-custom-fields tbody td:first-of-type .row-actions{left:auto}}.postbox#acfe-acf-custom-fields tbody td:first-of-type .row-actions .delete,.postbox#acfe-acf-custom-fields tbody td:first-of-type .row-actions a,.postbox#acfe-wp-custom-fields tbody td:first-of-type .row-actions .delete,.postbox#acfe-wp-custom-fields tbody td:first-of-type .row-actions a{padding:0}.postbox#acfe-acf-custom-fields tbody td:nth-child(3),.postbox#acfe-wp-custom-fields tbody td:nth-child(3){-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%}}body:not(.acf-admin-5-3) .acf-field .select2-container .select2-selection,body:not(.acf-admin-5-3) .acf-field .select2-container .select2-selection__choice,body:not(.acf-admin-5-3) .acf-field .select2-dropdown{border-color:#dfdfdf!important;border-radius:0!important}body:not(.acf-admin-5-3) .acf-field .select2-container .select2-search--inline .select2-search__field{margin-top:0!important}.acf-field .select2-container .select2-selection--single{border-radius:3px!important;height:30px!important;outline:none}.acf-field .select2-container.select2-container--open .select2-selection--single,.acf-field .select2-container:focus .select2-selection--single{border-color:#007cba!important;color:#016087!important;-webkit-box-shadow:0 0 0 1px #007cba!important;box-shadow:0 0 0 1px #007cba!important}.acf-field .select2-container .select2-selection--single .select2-selection__rendered{font-size:14px;height:28px;line-height:27px!important;padding-right:23px!important}.acf-field .select2-container .select2-selection--single .select2-selection__clear{line-height:26px;height:28px;font-size:16px}.acf-field .select2-container--default .select2-selection--single .select2-selection__arrow{height:28px!important}.acf-field .select2-container--default .select2-selection--single .select2-selection__arrow b{background:url("data:image/svg+xml;charset=US-ASCII, %3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") no-repeat;background-size:16px 16px;border:0!important;width:16px!important;height:16px!important;margin-left:-11px!important;margin-top:-7px!important}.acf-field .select2-container .select2-search--inline .select2-search__field{margin-top:4px!important;font-size:14px!important;padding-left:2px!important}.acf-field .select2-container .select2-selection--multiple{min-height:30px!important;line-height:1;border-radius:3px!important}.acf-field .select2-container--default .select2-selection--multiple .select2-selection__rendered{padding:0 2px!important}.acf-field .select2-container--default .select2-selection--multiple .select2-selection__choice{margin-right:2px!important;margin-top:2px!important;line-height:1.6;border-radius:3px!important;font-size:14px}.acf-field .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{line-height:15px;font-size:15px}.acf-field .select2-container--default.select2-container--focus .select2-selection--multiple{border-color:#7e8993!important}.acf-field .select2-container--default .select2-selection--multiple .select2-selection__clear{margin-top:5px!important;margin-right:5px!important;font-size:16px}.acf-field>.acf-input>.select2 .select2-search{width:auto}.select2-container .select2-dropdown .select2-search__field{min-height:30px!important;border:0!important;-webkit-box-shadow:none!important;box-shadow:none!important}.acf-tab-group li a .acfe-tab-badge{border-radius:100px;background:#ddd;width:18px;height:18px;font-size:12px;display:inline-block;vertical-align:text-bottom;padding:0;text-align:center;margin-left:5px;line-height:18px}.acf-tab-group li.active a .acfe-tab-badge,.acf-tab-group li a:hover .acfe-tab-badge{background:#f1f1f1}.menu-item-settings{position:static}@media screen and (min-width:783px){.postbox .handle-order-higher,.postbox .handle-order-lower{visibility:hidden}.postbox:hover .handle-order-higher,.postbox:hover .handle-order-lower{visibility:visible}}.postbox .handle-order-higher,.postbox .handle-order-lower{vertical-align:bottom}.postbox .handle-order-higher .order-higher-indicator:before,.postbox .handle-order-lower .order-lower-indicator:before{font-size:15px;top:.18rem}.postbox .handlediv{width:1.62rem}.postbox .handlediv .toggle-indicator:before{text-indent:-7px}.acf-settings-wrap .acf-box{margin:16px 0}.acf-box .title{padding:8px 15px}.acf-box .title h3{line-height:1.4}.acf-columns-2{margin-right:300px;clear:both}.acf-columns-2:after{display:block;clear:both;content:""}html[dir=rtl] .acf-columns-2{margin-right:0;margin-left:300px}.acf-columns-2 .acf-column-1{float:left;width:100%}html[dir=rtl] .acf-columns-2 .acf-column-1{float:right}.acf-columns-2 .acf-column-2{float:right;margin-right:-300px;width:280px}html[dir=rtl] .acf-columns-2 .acf-column-2{float:left;margin-right:0;margin-left:-300px}@media only screen and (max-width:850px){.acf-columns-2{margin-right:0}.acf-columns-2 .acf-column-1,.acf-columns-2 .acf-column-2{float:none;width:auto;margin:0}}
|
@@ -0,0 +1,351 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.submitbox .misc-pub-acfe-field-group-key {
|
2 |
+
padding-top: 2px;
|
3 |
+
}
|
4 |
+
|
5 |
+
.submitbox .misc-pub-acfe-field-group-key span {
|
6 |
+
font-size: 16px;
|
7 |
+
color: #82878c;
|
8 |
+
width: 20px;
|
9 |
+
margin-right: 2px;
|
10 |
+
}
|
11 |
+
|
12 |
+
.submitbox .misc-pub-acfe-field-group-key code {
|
13 |
+
font-size: 12px;
|
14 |
+
}
|
15 |
+
|
16 |
+
.submitbox .misc-pub-acfe-field-group-export {
|
17 |
+
padding-top: 2px;
|
18 |
+
}
|
19 |
+
|
20 |
+
.submitbox .misc-pub-acfe-field-group-export span {
|
21 |
+
font-size: 17px;
|
22 |
+
color: #82878c;
|
23 |
+
line-height: 1.3;
|
24 |
+
width: 20px;
|
25 |
+
margin-right: 2px;
|
26 |
+
}
|
27 |
+
|
28 |
+
.acf-fields .acf-field-tab {
|
29 |
+
display: block !important;
|
30 |
+
height: 0;
|
31 |
+
overflow: hidden;
|
32 |
+
padding: 0 !important;
|
33 |
+
border: 0 !important;
|
34 |
+
}
|
35 |
+
|
36 |
+
.acf-field-setting-acfe_bidirectional > .acf-input > .acf-fields,
|
37 |
+
.acf-field-setting-acfe_hide > .acf-input > .acf-fields,
|
38 |
+
.acf-field-setting-acfe_permissions > .acf-input > .acf-fields,
|
39 |
+
.acf-field-setting-acfe_settings > .acf-input > .acf-fields,
|
40 |
+
.acf-field-setting-acfe_settings > .acf-input > .acf-fields > .acf-field.acf-field-acfe-settings-rules-or,
|
41 |
+
.acf-field-setting-acfe_update > .acf-input > .acf-fields,
|
42 |
+
.acf-field-setting-acfe_update > .acf-input > .acf-fields > .acf-field.acf-field-acfe-update-functions,
|
43 |
+
.acf-field-setting-acfe_validate > .acf-input > .acf-fields,
|
44 |
+
.acf-field-setting-acfe_validate > .acf-input > .acf-fields > .acf-field.acf-field-acfe-validate-rules-or {
|
45 |
+
border: 0;
|
46 |
+
}
|
47 |
+
|
48 |
+
.acf-field-setting-acfe_bidirectional > .acf-input > .acf-fields > .acf-field,
|
49 |
+
.acf-field-setting-acfe_hide > .acf-input > .acf-fields > .acf-field,
|
50 |
+
.acf-field-setting-acfe_permissions > .acf-input > .acf-fields > .acf-field,
|
51 |
+
.acf-field-setting-acfe_settings > .acf-input > .acf-fields > .acf-field,
|
52 |
+
.acf-field-setting-acfe_update > .acf-input > .acf-fields > .acf-field,
|
53 |
+
.acf-field-setting-acfe_validate > .acf-input > .acf-fields > .acf-field {
|
54 |
+
padding: 0;
|
55 |
+
}
|
56 |
+
|
57 |
+
.acf-field-setting-acfe_field_data {
|
58 |
+
display: none;
|
59 |
+
}
|
60 |
+
|
61 |
+
.acf-field-hide-front.acfe_width_auto {
|
62 |
+
margin-right: 30px;
|
63 |
+
}
|
64 |
+
|
65 |
+
.acf-field-setting-acfe_bidirectional > .acf-input > .acf-fields > .acf-field.acf-field-acfe-bidirectional-enabled > .acf-label,
|
66 |
+
.acf-field-setting-acfe_bidirectional > .acf-input > .acf-fields > .acf-field.acf-field-acfe-bidirectional-related > .acf-label,
|
67 |
+
.acf-field-setting-acfe_settings > .acf-input > .acf-fields > .acf-field.acf-field-acfe-settings-activate > .acf-label,
|
68 |
+
.acf-field-setting-acfe_update > .acf-input > .acf-fields > .acf-field.acf-field-acfe-update-activate > .acf-label,
|
69 |
+
.acf-field-setting-acfe_validate > .acf-input > .acf-fields > .acf-field.acf-field-acfe-validate-activate > .acf-label {
|
70 |
+
display: none;
|
71 |
+
}
|
72 |
+
|
73 |
+
.acf-field-acfe-meta > .acf-input .acf-repeater.-empty.-table > table,
|
74 |
+
.acf-field-setting-acfe_settings > .acf-input .acf-repeater.-empty.-table > table,
|
75 |
+
.acf-field-setting-acfe_update > .acf-input .acf-repeater.-empty.-table > table,
|
76 |
+
.acf-field-setting-acfe_validate > .acf-input .acf-repeater.-empty.-table > table {
|
77 |
+
border: 0;
|
78 |
+
display: none;
|
79 |
+
}
|
80 |
+
|
81 |
+
.acf-field-acfe-meta > .acf-input .acf-repeater.-empty.-table > table > thead,
|
82 |
+
.acf-field-setting-acfe_settings > .acf-input .acf-repeater.-empty.-table > table > thead,
|
83 |
+
.acf-field-setting-acfe_update > .acf-input .acf-repeater.-empty.-table > table > thead,
|
84 |
+
.acf-field-setting-acfe_validate > .acf-input .acf-repeater.-empty.-table > table > thead {
|
85 |
+
display: none;
|
86 |
+
}
|
87 |
+
|
88 |
+
.acf-field-acfe-meta > .acf-input > .acf-repeater .acf-actions,
|
89 |
+
.acf-field-setting-acfe_settings > .acf-input > .acf-repeater .acf-actions,
|
90 |
+
.acf-field-setting-acfe_update > .acf-input > .acf-repeater .acf-actions,
|
91 |
+
.acf-field-setting-acfe_validate > .acf-input > .acf-repeater .acf-actions {
|
92 |
+
text-align: left;
|
93 |
+
}
|
94 |
+
|
95 |
+
.acf-repeater.-block > table,
|
96 |
+
.acf-repeater.-row > table {
|
97 |
+
border-collapse: separate;
|
98 |
+
border-spacing: 0 15px;
|
99 |
+
background: none;
|
100 |
+
border: 0;
|
101 |
+
margin-top: -15px;
|
102 |
+
margin-bottom: -7px;
|
103 |
+
}
|
104 |
+
|
105 |
+
.acf-repeater.-block > table > *,
|
106 |
+
.acf-repeater.-row > table > * {
|
107 |
+
border-collapse: collapse;
|
108 |
+
border-spacing: 0;
|
109 |
+
}
|
110 |
+
|
111 |
+
.acf-repeater.-block > table > tbody > tr > td,
|
112 |
+
.acf-repeater.-row > table > tbody > tr > td {
|
113 |
+
border-top: 1px solid #ccd0d4 !important;
|
114 |
+
border-bottom: 1px solid #ccd0d4 !important;
|
115 |
+
}
|
116 |
+
|
117 |
+
.acf-repeater.-block > table > tbody > tr > td:first-of-type,
|
118 |
+
.acf-repeater.-row > table > tbody > tr > td:first-of-type {
|
119 |
+
border-left: 1px solid #ccd0d4 !important;
|
120 |
+
}
|
121 |
+
|
122 |
+
.acf-repeater.-block > table > tbody > tr > td:last-of-type,
|
123 |
+
.acf-repeater.-row > table > tbody > tr > td:last-of-type {
|
124 |
+
border-right: 1px solid #ccd0d4 !important;
|
125 |
+
}
|
126 |
+
|
127 |
+
body:not(.acf-admin-5-3) .acf-repeater.-block > table > tbody > tr > td,
|
128 |
+
body:not(.acf-admin-5-3) .acf-repeater.-row > table > tbody > tr > td {
|
129 |
+
border-top: 1px solid #e1e1e1;
|
130 |
+
border-bottom: 1px solid #e1e1e1;
|
131 |
+
}
|
132 |
+
|
133 |
+
body:not(.acf-admin-5-3) .acf-repeater.-block > table > tbody > tr > td:first-of-type,
|
134 |
+
body:not(.acf-admin-5-3) .acf-repeater.-row > table > tbody > tr > td:first-of-type {
|
135 |
+
border-left: 1px solid #e1e1e1;
|
136 |
+
}
|
137 |
+
|
138 |
+
body:not(.acf-admin-5-3) .acf-repeater.-block > table > tbody > tr > td:last-of-type,
|
139 |
+
body:not(.acf-admin-5-3) .acf-repeater.-row > table > tbody > tr > td:last-of-type {
|
140 |
+
border-right: 1px solid #e1e1e1;
|
141 |
+
}
|
142 |
+
|
143 |
+
.acf-field-setting-acfe_bidirectional > .acf-input > .acf-fields > .acf-field.acf-field-acfe-bidirectional-related {
|
144 |
+
margin-left: 10px;
|
145 |
+
}
|
146 |
+
|
147 |
+
.acfe_width_auto {
|
148 |
+
width: auto !important;
|
149 |
+
}
|
150 |
+
|
151 |
+
.status-acf-disabled .column-title a,
|
152 |
+
.status-acf-disabled .column-title code {
|
153 |
+
color: #555 !important;
|
154 |
+
}
|
155 |
+
|
156 |
+
.status-acf-disabled .column-title strong {
|
157 |
+
color: #a0a5aa;
|
158 |
+
}
|
159 |
+
|
160 |
+
.column-acf-field-group-category {
|
161 |
+
width: 125px;
|
162 |
+
}
|
163 |
+
|
164 |
+
td.acf-field-group-category a {
|
165 |
+
word-wrap: break-word;
|
166 |
+
padding: 2px 5px;
|
167 |
+
margin: 0 1px;
|
168 |
+
border-radius: 2px;
|
169 |
+
background: rgba(0, 0, 0, .06);
|
170 |
+
color: #23282d;
|
171 |
+
}
|
172 |
+
|
173 |
+
.column-acfe-location {
|
174 |
+
width: 100px;
|
175 |
+
}
|
176 |
+
|
177 |
+
.column-acf-description,
|
178 |
+
.column-acf-location {
|
179 |
+
width: 230px;
|
180 |
+
}
|
181 |
+
|
182 |
+
#acf-field-group-wrap .wp-list-table .column-acf-fg-status {
|
183 |
+
width: 70px;
|
184 |
+
}
|
185 |
+
|
186 |
+
#acf-field-group-wrap .wp-list-table .column-acf-fg-count,
|
187 |
+
.post-type-acf-field-group .wp-list-table .column-acf-count {
|
188 |
+
width: 80px;
|
189 |
+
}
|
190 |
+
|
191 |
+
.post-type-acf-field-group .wp-list-table .column-title .post-state {
|
192 |
+
color: #a0a5aa;
|
193 |
+
}
|
194 |
+
|
195 |
+
.column-title .acfe-key {
|
196 |
+
color: #555;
|
197 |
+
font-size: 12px;
|
198 |
+
}
|
199 |
+
|
200 |
+
.column-acfe-load {
|
201 |
+
width: 70px;
|
202 |
+
}
|
203 |
+
|
204 |
+
.column-acfe-source {
|
205 |
+
width: 150px;
|
206 |
+
}
|
207 |
+
|
208 |
+
.column-acfe-autosync-json,
|
209 |
+
.column-acfe-autosync-php {
|
210 |
+
width: 90px;
|
211 |
+
text-align: center !important;
|
212 |
+
}
|
213 |
+
|
214 |
+
.column-acfe-autosync-json .secondary,
|
215 |
+
.column-acfe-autosync-php .secondary {
|
216 |
+
color: #ccc;
|
217 |
+
}
|
218 |
+
|
219 |
+
.column-acfe-autosync-json .dashicons-warning,
|
220 |
+
.column-acfe-autosync-php .dashicons-warning {
|
221 |
+
font-size: 15px;
|
222 |
+
vertical-align: middle;
|
223 |
+
}
|
224 |
+
|
225 |
+
.acf-field[data-name=acfe_autosync] .dashicons-warning {
|
226 |
+
color: #ccc;
|
227 |
+
font-size: 15px;
|
228 |
+
height: 15px;
|
229 |
+
vertical-align: text-bottom;
|
230 |
+
}
|
231 |
+
|
232 |
+
.column-acfe-autosync-json .dashicons-update,
|
233 |
+
.column-acfe-autosync-php .dashicons-update {
|
234 |
+
font-size: 18px;
|
235 |
+
}
|
236 |
+
|
237 |
+
.column-acfe-autosync-json .dashicons + .dashicons-warning,
|
238 |
+
.column-acfe-autosync-php .dashicons + .dashicons-warning {
|
239 |
+
margin-left: -3px;
|
240 |
+
}
|
241 |
+
|
242 |
+
.acf-field-image[data-name=acfe_flexible_thumbnail]>.acf-input>.acf-image-uploader.has-value>.show-if-value.image-wrap {
|
243 |
+
max-width: 85px !important;
|
244 |
+
}
|
245 |
+
|
246 |
+
.acf-diff-content table.diff tbody tr td:nth-child(2) {
|
247 |
+
width: auto;
|
248 |
+
}
|
249 |
+
|
250 |
+
body.acf-admin-5-3 .acf-field-setting-fc_layout .acf-input-wrap.select {
|
251 |
+
border-color: #7e8993;
|
252 |
+
}
|
253 |
+
|
254 |
+
body.acf-admin-5-3 .acf-field-setting-fc_layout .acf-input-wrap.select select {
|
255 |
+
min-height: 28px;
|
256 |
+
}
|
257 |
+
|
258 |
+
.acf-field-acfe-flexible-modal > .acf-input > .acf-fields {
|
259 |
+
border: 0;
|
260 |
+
}
|
261 |
+
|
262 |
+
.acf-field-acfe-flexible-modal > .acf-input > .acf-fields .acf-field-acfe-flexible-modal-enabled {
|
263 |
+
padding: 0;
|
264 |
+
}
|
265 |
+
|
266 |
+
.acf-field-acfe-flexible-modal > .acf-input > .acf-fields .acf-field-acfe-flexible-modal-enabled .acf-label {
|
267 |
+
display: none;
|
268 |
+
}
|
269 |
+
|
270 |
+
.acf-field-acfe-flexible-modal > .acf-input > .acf-fields .acf-field-acfe-flexible-modal-enabled {
|
271 |
+
margin-right: 10px;
|
272 |
+
}
|
273 |
+
|
274 |
+
.acf-field-acfe-flexible-modal > .acf-input > .acf-fields .acf-field-acfe-flexible-modal-categories,
|
275 |
+
.acf-field-acfe-flexible-modal > .acf-input > .acf-fields .acf-field-acfe-flexible-modal-col,
|
276 |
+
.acf-field-acfe-flexible-modal > .acf-input > .acf-fields .acf-field-acfe-flexible-modal-title {
|
277 |
+
padding-top: 0;
|
278 |
+
padding-bottom: 0;
|
279 |
+
padding-left: 0;
|
280 |
+
border-top: 0;
|
281 |
+
border-left: 0 !important;
|
282 |
+
min-height: 55px;
|
283 |
+
}
|
284 |
+
|
285 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_category],
|
286 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings],
|
287 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label],
|
288 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_size],
|
289 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_thumbnail] {
|
290 |
+
margin: 0;
|
291 |
+
}
|
292 |
+
|
293 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings],
|
294 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_size] {
|
295 |
+
margin-right: 10px;
|
296 |
+
}
|
297 |
+
|
298 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_size] {
|
299 |
+
border-left: 0;
|
300 |
+
}
|
301 |
+
|
302 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label]>.acf-input,
|
303 |
+
.acf-field-setting-fc_layout > .acf-input > .acf-fc-meta > .acf-fc-meta-label:first-of-type {
|
304 |
+
margin: 0;
|
305 |
+
}
|
306 |
+
|
307 |
+
.acf-field-setting-fc_layout .select2-container--default .select2-selection--multiple li {
|
308 |
+
margin-bottom: 0;
|
309 |
+
}
|
310 |
+
|
311 |
+
.acf-field-object-acfe-column .acf-field-setting-instructions,
|
312 |
+
.acf-field-object-acfe-column .acf-field-setting-label,
|
313 |
+
.acf-field-object-acfe-column .acf-field-setting-name,
|
314 |
+
.acf-field-object-acfe-column .acf-field-setting-required,
|
315 |
+
.acf-field-object-acfe-column .acf-field-setting-warning,
|
316 |
+
.acf-field-object-acfe-column .acf-field-setting-wrapper {
|
317 |
+
display: none;
|
318 |
+
}
|
319 |
+
|
320 |
+
.acf-field-object + .acf-field-object-acfe-column:before {
|
321 |
+
display: block;
|
322 |
+
content: "";
|
323 |
+
height: 5px;
|
324 |
+
width: 100%;
|
325 |
+
background: #f9f9f9;
|
326 |
+
border-bottom: 1px solid #f0f0f0;
|
327 |
+
}
|
328 |
+
|
329 |
+
.acf-field-object-acfe-column .li-field-name {
|
330 |
+
visibility: hidden;
|
331 |
+
}
|
332 |
+
|
333 |
+
.acf-field-setting-allow_terms > .acf-input > ul > li:first-of-type {
|
334 |
+
width: calc(100% - 125px);
|
335 |
+
}
|
336 |
+
|
337 |
+
.acf-field-setting-allow_terms > .acf-input > ul > li:last-of-type {
|
338 |
+
width: 125px;
|
339 |
+
}
|
340 |
+
|
341 |
+
#acf-field-group-locations .rule-groups > .rule-group > table > tbody > tr > td.value > .acf-field {
|
342 |
+
margin: 0;
|
343 |
+
}
|
344 |
+
|
345 |
+
.acf-hl[data-cols="5"]>li {
|
346 |
+
width: 20%;
|
347 |
+
}
|
348 |
+
|
349 |
+
.acf-hl[data-cols="6"]>li {
|
350 |
+
width: 16.667%;
|
351 |
+
}
|
@@ -0,0 +1 @@
|
|
|
1 |
+
.submitbox .misc-pub-acfe-field-group-key{padding-top:2px}.submitbox .misc-pub-acfe-field-group-key span{font-size:16px;color:#82878c;width:20px;margin-right:2px}.submitbox .misc-pub-acfe-field-group-key code{font-size:12px}.submitbox .misc-pub-acfe-field-group-export{padding-top:2px}.submitbox .misc-pub-acfe-field-group-export span{font-size:17px;color:#82878c;line-height:1.3;width:20px;margin-right:2px}.acf-fields .acf-field-tab{display:block!important;height:0;overflow:hidden;padding:0!important;border:0!important}.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields,.acf-field-setting-acfe_hide>.acf-input>.acf-fields,.acf-field-setting-acfe_permissions>.acf-input>.acf-fields,.acf-field-setting-acfe_settings>.acf-input>.acf-fields,.acf-field-setting-acfe_settings>.acf-input>.acf-fields>.acf-field.acf-field-acfe-settings-rules-or,.acf-field-setting-acfe_update>.acf-input>.acf-fields,.acf-field-setting-acfe_update>.acf-input>.acf-fields>.acf-field.acf-field-acfe-update-functions,.acf-field-setting-acfe_validate>.acf-input>.acf-fields,.acf-field-setting-acfe_validate>.acf-input>.acf-fields>.acf-field.acf-field-acfe-validate-rules-or{border:0}.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field,.acf-field-setting-acfe_hide>.acf-input>.acf-fields>.acf-field,.acf-field-setting-acfe_permissions>.acf-input>.acf-fields>.acf-field,.acf-field-setting-acfe_settings>.acf-input>.acf-fields>.acf-field,.acf-field-setting-acfe_update>.acf-input>.acf-fields>.acf-field,.acf-field-setting-acfe_validate>.acf-input>.acf-fields>.acf-field{padding:0}.acf-field-setting-acfe_field_data{display:none}.acf-field-hide-front.acfe_width_auto{margin-right:30px}.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field.acf-field-acfe-bidirectional-enabled>.acf-label,.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field.acf-field-acfe-bidirectional-related>.acf-label,.acf-field-setting-acfe_settings>.acf-input>.acf-fields>.acf-field.acf-field-acfe-settings-activate>.acf-label,.acf-field-setting-acfe_update>.acf-input>.acf-fields>.acf-field.acf-field-acfe-update-activate>.acf-label,.acf-field-setting-acfe_validate>.acf-input>.acf-fields>.acf-field.acf-field-acfe-validate-activate>.acf-label{display:none}.acf-field-acfe-meta>.acf-input .acf-repeater.-empty.-table>table,.acf-field-setting-acfe_settings>.acf-input .acf-repeater.-empty.-table>table,.acf-field-setting-acfe_update>.acf-input .acf-repeater.-empty.-table>table,.acf-field-setting-acfe_validate>.acf-input .acf-repeater.-empty.-table>table{border:0;display:none}.acf-field-acfe-meta>.acf-input .acf-repeater.-empty.-table>table>thead,.acf-field-setting-acfe_settings>.acf-input .acf-repeater.-empty.-table>table>thead,.acf-field-setting-acfe_update>.acf-input .acf-repeater.-empty.-table>table>thead,.acf-field-setting-acfe_validate>.acf-input .acf-repeater.-empty.-table>table>thead{display:none}.acf-field-acfe-meta>.acf-input>.acf-repeater .acf-actions,.acf-field-setting-acfe_settings>.acf-input>.acf-repeater .acf-actions,.acf-field-setting-acfe_update>.acf-input>.acf-repeater .acf-actions,.acf-field-setting-acfe_validate>.acf-input>.acf-repeater .acf-actions{text-align:left}.acf-repeater.-block>table,.acf-repeater.-row>table{border-collapse:separate;border-spacing:0 15px;background:none;border:0;margin-top:-15px;margin-bottom:-7px}.acf-repeater.-block>table>*,.acf-repeater.-row>table>*{border-collapse:collapse;border-spacing:0}.acf-repeater.-block>table>tbody>tr>td,.acf-repeater.-row>table>tbody>tr>td{border-top:1px solid #ccd0d4!important;border-bottom:1px solid #ccd0d4!important}.acf-repeater.-block>table>tbody>tr>td:first-of-type,.acf-repeater.-row>table>tbody>tr>td:first-of-type{border-left:1px solid #ccd0d4!important}.acf-repeater.-block>table>tbody>tr>td:last-of-type,.acf-repeater.-row>table>tbody>tr>td:last-of-type{border-right:1px solid #ccd0d4!important}body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td,body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td{border-top:1px solid #e1e1e1;border-bottom:1px solid #e1e1e1}body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td:first-of-type,body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td:first-of-type{border-left:1px solid #e1e1e1}body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td:last-of-type,body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td:last-of-type{border-right:1px solid #e1e1e1}.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field.acf-field-acfe-bidirectional-related{margin-left:10px}.acfe_width_auto{width:auto!important}.status-acf-disabled .column-title a,.status-acf-disabled .column-title code{color:#555!important}.status-acf-disabled .column-title strong{color:#a0a5aa}.column-acf-field-group-category{width:125px}td.acf-field-group-category a{word-wrap:break-word;padding:2px 5px;margin:0 1px;border-radius:2px;background:rgba(0,0,0,.06);color:#23282d}.column-acfe-location{width:100px}.column-acf-description,.column-acf-location{width:230px}#acf-field-group-wrap .wp-list-table .column-acf-fg-status{width:70px}#acf-field-group-wrap .wp-list-table .column-acf-fg-count,.post-type-acf-field-group .wp-list-table .column-acf-count{width:80px}.post-type-acf-field-group .wp-list-table .column-title .post-state{color:#a0a5aa}.column-title .acfe-key{color:#555;font-size:12px}.column-acfe-load{width:70px}.column-acfe-source{width:150px}.column-acfe-autosync-json,.column-acfe-autosync-php{width:90px;text-align:center!important}.column-acfe-autosync-json .secondary,.column-acfe-autosync-php .secondary{color:#ccc}.column-acfe-autosync-json .dashicons-warning,.column-acfe-autosync-php .dashicons-warning{font-size:15px;vertical-align:middle}.acf-field[data-name=acfe_autosync] .dashicons-warning{color:#ccc;font-size:15px;height:15px;vertical-align:text-bottom}.column-acfe-autosync-json .dashicons-update,.column-acfe-autosync-php .dashicons-update{font-size:18px}.column-acfe-autosync-json .dashicons+.dashicons-warning,.column-acfe-autosync-php .dashicons+.dashicons-warning{margin-left:-3px}.acf-field-image[data-name=acfe_flexible_thumbnail]>.acf-input>.acf-image-uploader.has-value>.show-if-value.image-wrap{max-width:85px!important}.acf-diff-content table.diff tbody tr td:nth-child(2){width:auto}body.acf-admin-5-3 .acf-field-setting-fc_layout .acf-input-wrap.select{border-color:#7e8993}body.acf-admin-5-3 .acf-field-setting-fc_layout .acf-input-wrap.select select{min-height:28px}.acf-field-acfe-flexible-modal>.acf-input>.acf-fields{border:0}.acf-field-acfe-flexible-modal>.acf-input>.acf-fields .acf-field-acfe-flexible-modal-enabled{padding:0}.acf-field-acfe-flexible-modal>.acf-input>.acf-fields .acf-field-acfe-flexible-modal-enabled .acf-label{display:none}.acf-field-acfe-flexible-modal>.acf-input>.acf-fields .acf-field-acfe-flexible-modal-enabled{margin-right:10px}.acf-field-acfe-flexible-modal>.acf-input>.acf-fields .acf-field-acfe-flexible-modal-categories,.acf-field-acfe-flexible-modal>.acf-input>.acf-fields .acf-field-acfe-flexible-modal-col,.acf-field-acfe-flexible-modal>.acf-input>.acf-fields .acf-field-acfe-flexible-modal-title{padding-top:0;padding-bottom:0;padding-left:0;border-top:0;border-left:0!important;min-height:55px}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_category],.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings],.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label],.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_size],.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_thumbnail]{margin:0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings],.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_size]{margin-right:10px}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_size]{border-left:0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label]>.acf-input,.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta>.acf-fc-meta-label:first-of-type{margin:0}.acf-field-setting-fc_layout .select2-container--default .select2-selection--multiple li{margin-bottom:0}.acf-field-object-acfe-column .acf-field-setting-instructions,.acf-field-object-acfe-column .acf-field-setting-label,.acf-field-object-acfe-column .acf-field-setting-name,.acf-field-object-acfe-column .acf-field-setting-required,.acf-field-object-acfe-column .acf-field-setting-warning,.acf-field-object-acfe-column .acf-field-setting-wrapper{display:none}.acf-field-object+.acf-field-object-acfe-column:before{display:block;content:"";height:5px;width:100%;background:#f9f9f9;border-bottom:1px solid #f0f0f0}.acf-field-object-acfe-column .li-field-name{visibility:hidden}.acf-field-setting-allow_terms>.acf-input>ul>li:first-of-type{width:calc(100% - 125px)}.acf-field-setting-allow_terms>.acf-input>ul>li:last-of-type{width:125px}#acf-field-group-locations .rule-groups>.rule-group>table>tbody>tr>td.value>.acf-field{margin:0}.acf-hl[data-cols="5"]>li{width:20%}.acf-hl[data-cols="6"]>li{width:16.667%}
|
@@ -0,0 +1,1212 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.acf-flexible-content > .values > .ui-sortable-placeholder {
|
2 |
+
border-width: 2px;
|
3 |
+
border-color: #ccc;
|
4 |
+
}
|
5 |
+
|
6 |
+
.acf-flexible-content .layout .acf-fc-layout-handle {
|
7 |
+
color: #444;
|
8 |
+
font-weight: 600;
|
9 |
+
}
|
10 |
+
|
11 |
+
.layout.acfe-flexible-modal-edit-error > .acf-fc-layout-handle {
|
12 |
+
color: #f33b28;
|
13 |
+
}
|
14 |
+
|
15 |
+
.layout.acfe-flexible-modal-edit-error > .acf-fc-layout-handle > .acf-fc-layout-order {
|
16 |
+
background: #f33b28;
|
17 |
+
color: #fff;
|
18 |
+
}
|
19 |
+
|
20 |
+
.acf-field-flexible-content[data-acfe-flexible-modal-edition="1"]:not([data-acfe-flexible-placeholder="1"]):not([data-acfe-flexible-preview="1"])>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-handle {
|
21 |
+
border-bottom-width: 0;
|
22 |
+
}
|
23 |
+
|
24 |
+
.acf-field-flexible-content[data-acfe-flexible-placeholder="1"]>.acf-input>.acf-flexible-content>.values>.layout.-collapsed>.acf-fc-layout-handle,
|
25 |
+
.acf-field-flexible-content[data-acfe-flexible-preview="1"]>.acf-input>.acf-flexible-content>.values>.layout.-collapsed>.acf-fc-layout-handle {
|
26 |
+
border-bottom-width: 1px;
|
27 |
+
}
|
28 |
+
|
29 |
+
.acf-field-flexible-content[data-acfe-flexible-lock="1"]>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-handle,
|
30 |
+
.acf-field-flexible-content[data-acfe-flexible-remove-collapse="1"]:not([data-acfe-flexible-lock="1"])>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-handle {
|
31 |
+
cursor: auto;
|
32 |
+
}
|
33 |
+
|
34 |
+
.acf-fc-popup.top.acfe-fc-popup-grey:before {
|
35 |
+
border-top-color: #e1e1e1;
|
36 |
+
}
|
37 |
+
|
38 |
+
.acf-tooltip.bottom.acfe-fc-popup-grey:before {
|
39 |
+
border-bottom-color: #e1e1e1;
|
40 |
+
}
|
41 |
+
|
42 |
+
.acf-fc-popup.acfe-fc-popup-grey {
|
43 |
+
background: #fcfcfc;
|
44 |
+
border-radius: 3px;
|
45 |
+
color: #444;
|
46 |
+
border: 1px solid #e1e1e1;
|
47 |
+
font-size: 13px;
|
48 |
+
}
|
49 |
+
|
50 |
+
.acf-tooltip.top.acfe-fc-popup-grey {
|
51 |
+
margin-top: -16px;
|
52 |
+
}
|
53 |
+
|
54 |
+
.acf-tooltip.bottom.acfe-fc-popup-grey {
|
55 |
+
margin-bottom: -16px;
|
56 |
+
}
|
57 |
+
|
58 |
+
.acf-fc-popup.acfe-fc-popup-grey a {
|
59 |
+
color: #444;
|
60 |
+
}
|
61 |
+
|
62 |
+
.acf-fc-popup.acfe-fc-popup-grey a:hover {
|
63 |
+
color: #fff;
|
64 |
+
}
|
65 |
+
|
66 |
+
.layout > .acfe-fc-placeholder {
|
67 |
+
text-align: center;
|
68 |
+
background: #f9f9f9;
|
69 |
+
display: block;
|
70 |
+
text-decoration: none;
|
71 |
+
position: relative;
|
72 |
+
cursor: pointer;
|
73 |
+
}
|
74 |
+
|
75 |
+
.layout > .acfe-fc-placeholder:focus {
|
76 |
+
border-color: #ccc;
|
77 |
+
-webkit-box-shadow: none;
|
78 |
+
box-shadow: none;
|
79 |
+
}
|
80 |
+
|
81 |
+
.layout > .acfe-fc-placeholder > .acfe-flexible-placeholder {
|
82 |
+
height: 110px;
|
83 |
+
overflow: hidden;
|
84 |
+
text-align: initial;
|
85 |
+
}
|
86 |
+
|
87 |
+
.layout > .acfe-fc-placeholder > a {
|
88 |
+
z-index: 2;
|
89 |
+
position: absolute;
|
90 |
+
top: 50%;
|
91 |
+
left: 50%;
|
92 |
+
-webkit-transform: translate(-50%, -50%);
|
93 |
+
-ms-transform: translate(-50%, -50%);
|
94 |
+
transform: translate(-50%, -50%);
|
95 |
+
border-color: #ccd0d4;
|
96 |
+
color: #23282d;
|
97 |
+
border-radius: 100px;
|
98 |
+
-webkit-box-shadow: none;
|
99 |
+
box-shadow: none;
|
100 |
+
background: #fff;
|
101 |
+
width: 30px;
|
102 |
+
min-height: 30px;
|
103 |
+
height: 30px;
|
104 |
+
padding: 0;
|
105 |
+
display: block;
|
106 |
+
}
|
107 |
+
|
108 |
+
body:not(.acf-admin-5-3) .layout > .acfe-fc-placeholder > a {
|
109 |
+
border-color: #999;
|
110 |
+
}
|
111 |
+
|
112 |
+
.acfe-modal.-open.acfe-modal-sub > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields > .acf-field-flexible-content > .acf-input > .acf-flexible-content > .values > .layout > .acfe-fc-placeholder > a {
|
113 |
+
z-index: 0;
|
114 |
+
}
|
115 |
+
|
116 |
+
.layout > .acfe-fc-placeholder > a:active {
|
117 |
+
-webkit-transform: translate(-50%, -50%);
|
118 |
+
-ms-transform: translate(-50%, -50%);
|
119 |
+
transform: translate(-50%, -50%);
|
120 |
+
}
|
121 |
+
|
122 |
+
.layout > .acfe-fc-placeholder > a:focus {
|
123 |
+
border-color: #ccc;
|
124 |
+
-webkit-box-shadow: none;
|
125 |
+
box-shadow: none;
|
126 |
+
}
|
127 |
+
|
128 |
+
.layout > .acfe-fc-placeholder > a span {
|
129 |
+
width: 29px;
|
130 |
+
height: 30px;
|
131 |
+
vertical-align: top;
|
132 |
+
line-height: 28px;
|
133 |
+
font-size: 18px;
|
134 |
+
}
|
135 |
+
|
136 |
+
body:not(.acf-admin-5-3) .layout > .acfe-fc-placeholder > a span {
|
137 |
+
width: 30px;
|
138 |
+
height: 30px;
|
139 |
+
}
|
140 |
+
|
141 |
+
.layout > .acfe-fc-placeholder.acfe-fc-preview {
|
142 |
+
background: none;
|
143 |
+
}
|
144 |
+
|
145 |
+
.layout > .acfe-fc-placeholder.acfe-fc-preview > .acfe-flexible-placeholder {
|
146 |
+
min-height: 55px;
|
147 |
+
height: auto;
|
148 |
+
}
|
149 |
+
|
150 |
+
.layout > .acfe-fc-placeholder.acfe-fc-preview > a {
|
151 |
+
display: none;
|
152 |
+
}
|
153 |
+
|
154 |
+
.layout > .acfe-fc-placeholder.acfe-fc-preview:hover > a {
|
155 |
+
display: block;
|
156 |
+
}
|
157 |
+
|
158 |
+
.layout > .acfe-fc-placeholder.acfe-fc-preview.-loading {
|
159 |
+
background: #f9f9f9;
|
160 |
+
min-height: 110px;
|
161 |
+
}
|
162 |
+
|
163 |
+
.layout > .acfe-fc-placeholder.acfe-fc-preview.-loading > .acfe-flexible-placeholder > .spinner {
|
164 |
+
visibility: visible;
|
165 |
+
float: none;
|
166 |
+
position: absolute;
|
167 |
+
top: 50%;
|
168 |
+
left: 50%;
|
169 |
+
-webkit-transform: translate(-50%, -50%);
|
170 |
+
-ms-transform: translate(-50%, -50%);
|
171 |
+
transform: translate(-50%, -50%);
|
172 |
+
margin: 0;
|
173 |
+
z-index: 10000;
|
174 |
+
}
|
175 |
+
|
176 |
+
.layout > .acfe-fc-placeholder .acfe-fc-overlay {
|
177 |
+
position: absolute;
|
178 |
+
width: 100%;
|
179 |
+
height: 100%;
|
180 |
+
padding: 0;
|
181 |
+
background-color: hsla(0, 0%, 100%, 0);
|
182 |
+
-webkit-transition: background-color .2s linear;
|
183 |
+
-o-transition: background-color .2s linear;
|
184 |
+
transition: background-color .2s linear;
|
185 |
+
}
|
186 |
+
|
187 |
+
.layout > .acfe-fc-placeholder .acfe-fc-overlay.-hover,
|
188 |
+
.layout > .acfe-fc-placeholder:hover .acfe-fc-overlay {
|
189 |
+
background-color: hsla(0, 0%, 100%, .7);
|
190 |
+
z-index: 1;
|
191 |
+
}
|
192 |
+
|
193 |
+
.layout > .acfe-fc-placeholder.acfe-fc-preview.-loading > a span {
|
194 |
+
visibility: hidden;
|
195 |
+
}
|
196 |
+
|
197 |
+
.layout > .acf-fields > .acfe-flexible-opened-actions,
|
198 |
+
.layout > .acf-table > .acfe-flexible-opened-actions {
|
199 |
+
background: #f9f9f9;
|
200 |
+
border-top: 1px solid #e1e1e1;
|
201 |
+
padding: 12px;
|
202 |
+
text-align: right;
|
203 |
+
clear: both;
|
204 |
+
}
|
205 |
+
|
206 |
+
.acfe-flexible-layout-thumbnail {
|
207 |
+
display: block;
|
208 |
+
width: 100%;
|
209 |
+
height: 9.8vw;
|
210 |
+
background-color: #eee;
|
211 |
+
background-size: cover;
|
212 |
+
background-repeat: no-repeat;
|
213 |
+
background-position: 50%;
|
214 |
+
position: relative;
|
215 |
+
margin-bottom: 15px;
|
216 |
+
}
|
217 |
+
|
218 |
+
.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-not-found:after {
|
219 |
+
content: "\f180";
|
220 |
+
font-family: dashicons;
|
221 |
+
display: inline-block;
|
222 |
+
line-height: 1;
|
223 |
+
font-weight: 400;
|
224 |
+
font-style: normal;
|
225 |
+
speak: none;
|
226 |
+
text-decoration: inherit;
|
227 |
+
text-transform: none;
|
228 |
+
text-rendering: auto;
|
229 |
+
-webkit-font-smoothing: antialiased;
|
230 |
+
-moz-osx-font-smoothing: grayscale;
|
231 |
+
vertical-align: top;
|
232 |
+
text-align: center;
|
233 |
+
position: absolute;
|
234 |
+
top: 50%;
|
235 |
+
left: 50%;
|
236 |
+
-webkit-transform: translate(-50%, -50%);
|
237 |
+
-ms-transform: translate(-50%, -50%);
|
238 |
+
transform: translate(-50%, -50%);
|
239 |
+
color: #ccc;
|
240 |
+
font-size: 110px;
|
241 |
+
}
|
242 |
+
|
243 |
+
.acfe-col-2 .acfe-flexible-layout-thumbnail {
|
244 |
+
height: 20.5vw;
|
245 |
+
}
|
246 |
+
|
247 |
+
.acfe-col-3 .acfe-flexible-layout-thumbnail {
|
248 |
+
height: 13.3vw;
|
249 |
+
}
|
250 |
+
|
251 |
+
.acfe-col-5 .acfe-flexible-layout-thumbnail {
|
252 |
+
height: 7.65vw;
|
253 |
+
}
|
254 |
+
|
255 |
+
.acfe-col-6 .acfe-flexible-layout-thumbnail {
|
256 |
+
height: 6.2vw;
|
257 |
+
}
|
258 |
+
|
259 |
+
@media only screen and (max-width: 960px) {
|
260 |
+
.acfe-flex-container .acfe-flexible-layout-thumbnail,
|
261 |
+
.acfe-flexible-layout-thumbnail {
|
262 |
+
height: 18.4vw;
|
263 |
+
}
|
264 |
+
}
|
265 |
+
|
266 |
+
@media only screen and (max-width: 720px) {
|
267 |
+
.acfe-flex-container .acfe-flexible-layout-thumbnail,
|
268 |
+
.acfe-flexible-layout-thumbnail {
|
269 |
+
height: 37.2vw;
|
270 |
+
}
|
271 |
+
}
|
272 |
+
|
273 |
+
.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-no-modal {
|
274 |
+
display: block;
|
275 |
+
width: 230px;
|
276 |
+
height: 103px;
|
277 |
+
background-color: #1f2329;
|
278 |
+
}
|
279 |
+
|
280 |
+
.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-no-modal.acfe-flexible-layout-thumbnail-not-found:after {
|
281 |
+
color: #2f353e;
|
282 |
+
}
|
283 |
+
|
284 |
+
.acf-field.acf-field-flexible-content[data-acfe-flexible-stylised-button="1"]>.acf-input>.acf-flexible-content:not(.empty)>.values {
|
285 |
+
margin-bottom: 15px;
|
286 |
+
}
|
287 |
+
|
288 |
+
.acf-field.acf-field-flexible-content > .acf-input > .acf-flexible-content > .acfe-flexible-stylised-button {
|
289 |
+
padding: 40px 20px;
|
290 |
+
border: 2px dashed #ccc;
|
291 |
+
text-align: center;
|
292 |
+
}
|
293 |
+
|
294 |
+
.acf-field.acf-field-flexible-content > .acf-input > .acf-flexible-content > .acfe-flexible-stylised-button > .acf-actions {
|
295 |
+
text-align: center;
|
296 |
+
}
|
297 |
+
|
298 |
+
.acf-field.acf-field-flexible-content > .acf-input > .acf-flexible-content .acf-actions .acf-button .dashicons {
|
299 |
+
width: auto;
|
300 |
+
height: auto;
|
301 |
+
vertical-align: text-top;
|
302 |
+
}
|
303 |
+
|
304 |
+
.acf-field.acf-field-flexible-content[data-acfe-flexible-hide-empty-message="1"]>.acf-input>.acf-flexible-content>.no-value-message {
|
305 |
+
display: none;
|
306 |
+
}
|
307 |
+
|
308 |
+
.acf-field.acf-field-flexible-content[data-acfe-flexible-hide-empty-message="1"]>.acf-input>.acf-flexible-content.-empty>.values {
|
309 |
+
margin-bottom: 0;
|
310 |
+
}
|
311 |
+
.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons:before {
|
312 |
+
font-family: dashicons;
|
313 |
+
}
|
314 |
+
|
315 |
+
.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons {
|
316 |
+
visibility: hidden;
|
317 |
+
}
|
318 |
+
|
319 |
+
.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons.dashicons-admin-generic,
|
320 |
+
.acf-flexible-content .layout:hover > .acf-fc-layout-controls .acf-icon.acfe-flexible-icon.dashicons {
|
321 |
+
visibility: visible;
|
322 |
+
}
|
323 |
+
|
324 |
+
.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons.dashicons-admin-generic:before {
|
325 |
+
margin-left: 1px;
|
326 |
+
}
|
327 |
+
|
328 |
+
.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-duplicate,
|
329 |
+
.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-minus,
|
330 |
+
.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-plus,
|
331 |
+
.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-duplicate,
|
332 |
+
.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-minus,
|
333 |
+
.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-plus {
|
334 |
+
visibility: hidden;
|
335 |
+
}
|
336 |
+
|
337 |
+
.acf-flexible-content .layout.-hover > .acf-fc-layout-controls .acf-icon.-duplicate,
|
338 |
+
.acf-flexible-content .layout.-hover > .acf-fc-layout-controls .acf-icon.-minus,
|
339 |
+
.acf-flexible-content .layout.-hover > .acf-fc-layout-controls .acf-icon.-plus,
|
340 |
+
.acf-flexible-content .layout:hover > .acf-fc-layout-controls .acf-icon.-duplicate,
|
341 |
+
.acf-flexible-content .layout:hover > .acf-fc-layout-controls .acf-icon.-minus,
|
342 |
+
.acf-flexible-content .layout:hover > .acf-fc-layout-controls .acf-icon.-plus {
|
343 |
+
visibility: visible;
|
344 |
+
}
|
345 |
+
|
346 |
+
.acf-flexible-content .layout > .acf-fc-layout-controls .acf-icon.disabled {
|
347 |
+
color: #ccc;
|
348 |
+
cursor: auto;
|
349 |
+
}
|
350 |
+
|
351 |
+
.acf-flexible-content .layout > .acf-fc-layout-controls .acf-icon.disabled:hover {
|
352 |
+
color: #ccc;
|
353 |
+
background: #f5f5f5;
|
354 |
+
}
|
355 |
+
|
356 |
+
.acf-flexible-content[data-acfe-flexible-lock="1"] .layout .acf-fc-layout-handle {
|
357 |
+
cursor: auto;
|
358 |
+
}
|
359 |
+
|
360 |
+
.acf-field-acfe-flexible-layout-title {
|
361 |
+
display: none;
|
362 |
+
}
|
363 |
+
|
364 |
+
input.acfe-flexible-control-title {
|
365 |
+
border: none;
|
366 |
+
-webkit-box-shadow: none !important;
|
367 |
+
box-shadow: none !important;
|
368 |
+
outline: none !important;
|
369 |
+
border-radius: 0;
|
370 |
+
border-bottom: 1px solid transparent !important;
|
371 |
+
font-weight: 600;
|
372 |
+
width: auto !important;
|
373 |
+
padding: 0 !important;
|
374 |
+
display: none;
|
375 |
+
min-height: 20px;
|
376 |
+
vertical-align: unset;
|
377 |
+
background: none;
|
378 |
+
}
|
379 |
+
|
380 |
+
.layout > .acf-fc-layout-handle .acfe-layout-title {
|
381 |
+
cursor: text;
|
382 |
+
position: relative;
|
383 |
+
}
|
384 |
+
|
385 |
+
.layout:not(.acfe-flexible-title-edition) > .acf-fc-layout-handle .acfe-layout-title:hover {
|
386 |
+
background: #f4f4f4;
|
387 |
+
}
|
388 |
+
|
389 |
+
.layout.acfe-flexible-title-edition > .acf-fc-layout-handle .acfe-layout-title input.acfe-flexible-control-title {
|
390 |
+
display: inline-block;
|
391 |
+
border-bottom: 1px solid #ddd !important;
|
392 |
+
}
|
393 |
+
|
394 |
+
.layout.acfe-flexible-title-edition > .acf-fc-layout-handle .acfe-layout-title .acfe-layout-title-text {
|
395 |
+
display: none;
|
396 |
+
}
|
397 |
+
|
398 |
+
.layout.acfe-flexible-layout-hidden > .acf-fc-layout-controls,
|
399 |
+
.layout.acfe-flexible-layout-hidden > .acf-fc-layout-handle,
|
400 |
+
.layout.acfe-flexible-layout-hidden > .acf-fields,
|
401 |
+
.layout.acfe-flexible-layout-hidden > .acfe-fc-placeholder {
|
402 |
+
filter: alpha(opacity=50);
|
403 |
+
opacity: .5;
|
404 |
+
}
|
405 |
+
.acf-field-flexible-content[data-acfe-flexible-modal-edition="1"]>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-controls>a.-collapse {
|
406 |
+
display: none;
|
407 |
+
}
|
408 |
+
body.-loading * {
|
409 |
+
cursor: wait !important;
|
410 |
+
}
|
411 |
+
|
412 |
+
.acf-field .acf-label label {
|
413 |
+
font-weight: 600;
|
414 |
+
}
|
415 |
+
|
416 |
+
.acf-field p.description {
|
417 |
+
word-break: break-word;
|
418 |
+
}
|
419 |
+
|
420 |
+
.acf-fields.-left > .acf-field > .acf-label,
|
421 |
+
.acfe-postbox-left > .inside > .acf-field > .acf-label {
|
422 |
+
min-height: 1px;
|
423 |
+
}
|
424 |
+
|
425 |
+
.acf-field.acfe-no-label > .acf-label {
|
426 |
+
margin: 0;
|
427 |
+
}
|
428 |
+
|
429 |
+
.acf-field.acfe-no-label > .acf-label > label {
|
430 |
+
display: none;
|
431 |
+
}
|
432 |
+
|
433 |
+
.acf-field.acfe-no-label > .acf-label > p.description {
|
434 |
+
margin-bottom: 10px;
|
435 |
+
}
|
436 |
+
|
437 |
+
.acfe-field-tooltip {
|
438 |
+
float: right;
|
439 |
+
font-size: 16px;
|
440 |
+
color: #999;
|
441 |
+
}
|
442 |
+
|
443 |
+
.acf-field[data-instruction-tooltip]:not([data-instruction-placement])>.acf-input>p.description,
|
444 |
+
.acf-field[data-instruction-tooltip]:not([data-instruction-placement])>.acf-label>p.description {
|
445 |
+
display: none;
|
446 |
+
}
|
447 |
+
|
448 |
+
.acf-field .acf-input > p.description:first-child {
|
449 |
+
margin-top: 0;
|
450 |
+
margin-bottom: 5px;
|
451 |
+
}
|
452 |
+
|
453 |
+
.acf-field-acfe-hidden,
|
454 |
+
.acf-field[data-instruction-above-field]:not([data-instruction-placement])>.acf-label>p.description,
|
455 |
+
.acf-field p.description > .more {
|
456 |
+
display: none;
|
457 |
+
}
|
458 |
+
|
459 |
+
.acf-field-textarea[data-acfe-textarea-code="1"]>.acf-input>textarea {
|
460 |
+
font-family: Menlo,Monaco,Consolas,Courier New,monospace;
|
461 |
+
font-size: 1em;
|
462 |
+
}
|
463 |
+
|
464 |
+
.acf-field-acfe-code-editor > .acf-input > .acf-input-wrap > .CodeMirror-wrap {
|
465 |
+
height: auto;
|
466 |
+
}
|
467 |
+
|
468 |
+
.acf-field-acfe-code-editor > .acf-input > .acf-input-wrap > .CodeMirror-wrap.cm-s-default {
|
469 |
+
border: 1px solid #7e8993;
|
470 |
+
border-radius: 4px;
|
471 |
+
}
|
472 |
+
|
473 |
+
.acf-field-acfe-code-editor > .acf-input > .acf-input-wrap > .CodeMirror-wrap.cm-s-default .CodeMirror-gutters {
|
474 |
+
border-right: 1px solid #7e8993;
|
475 |
+
}
|
476 |
+
|
477 |
+
body:not(.acf-admin-5-3) .acf-field-acfe-code-editor > .acf-input > .acf-input-wrap > .CodeMirror-wrap.cm-s-default {
|
478 |
+
border-color: #dfdfdf;
|
479 |
+
}
|
480 |
+
|
481 |
+
.acf-field-acfe-code-editor > .acf-input > .acf-input-wrap > .CodeMirror-wrap.cm-s-default .CodeMirror-activeline-background {
|
482 |
+
background: #f9f9f9;
|
483 |
+
}
|
484 |
+
|
485 |
+
.acf-field-acfe-code-editor > .acf-input > .acf-input-wrap > .CodeMirror-wrap.cm-s-default .CodeMirror-selected {
|
486 |
+
background: #f0f0f0 !important;
|
487 |
+
}
|
488 |
+
|
489 |
+
.acf-field-acfe-code-editor > .acf-input > .acf-input-wrap > .CodeMirror-wrap.cm-s-default .CodeMirror-gutters {
|
490 |
+
background: #f9f9f9;
|
491 |
+
}
|
492 |
+
|
493 |
+
.acf-field-acfe-code-editor > td.acf-input {
|
494 |
+
max-width: 1px;
|
495 |
+
}
|
496 |
+
|
497 |
+
.acf-accordion {
|
498 |
+
z-index: auto;
|
499 |
+
}
|
500 |
+
|
501 |
+
.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input,
|
502 |
+
.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input {
|
503 |
+
margin-left: -12px;
|
504 |
+
margin-right: -12px;
|
505 |
+
margin-bottom: -15px;
|
506 |
+
}
|
507 |
+
|
508 |
+
.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"])>.acf-input,
|
509 |
+
.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"])>.acf-input {
|
510 |
+
margin-top: -15px;
|
511 |
+
}
|
512 |
+
|
513 |
+
.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"])>.acf-label>p.description,
|
514 |
+
.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"])>.acf-label>p.description {
|
515 |
+
margin-bottom: 15px;
|
516 |
+
}
|
517 |
+
|
518 |
+
.acf-fields > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style.acfe-no-label > .acf-input > .acf-fields {
|
519 |
+
border-width: 0;
|
520 |
+
}
|
521 |
+
|
522 |
+
.acf-fields > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style > .acf-input > .acf-fields {
|
523 |
+
border-left-width: 0;
|
524 |
+
border-right-width: 0;
|
525 |
+
border-bottom-width: 0;
|
526 |
+
}
|
527 |
+
|
528 |
+
.acf-fields > .acf-field-group.acfe-field-group-layout-block.acfe-seamless-style > .acf-input > .acf-fields {
|
529 |
+
border-width: 0;
|
530 |
+
}
|
531 |
+
|
532 |
+
.acf-fields.-left > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style > .acf-input {
|
533 |
+
margin: 0;
|
534 |
+
}
|
535 |
+
|
536 |
+
.acf-fields.-left > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style > .acf-input > .acf-fields {
|
537 |
+
border-width: 1px;
|
538 |
+
}
|
539 |
+
|
540 |
+
.acf-fields.-left>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input,
|
541 |
+
.acf-fields.-left>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input {
|
542 |
+
padding: 0 0 0 1px;
|
543 |
+
margin: -15px 0;
|
544 |
+
}
|
545 |
+
|
546 |
+
.acf-fields.-left > .acf-field-group.acfe-field-group-layout-block.acfe-seamless-style > .acf-input > .acf-fields,
|
547 |
+
.acf-fields.-left > .acf-field-group.acfe-field-group-layout-table.acfe-seamless-style > .acf-input > .acf-table,
|
548 |
+
.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
549 |
+
.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table {
|
550 |
+
border-width: 0;
|
551 |
+
}
|
552 |
+
|
553 |
+
.acf-postbox.seamless > .acf-fields > .acf-field-group.acfe-field-group-layout-block.acfe-seamless-style > .acf-input,
|
554 |
+
.acf-postbox.seamless > .acf-fields > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style > .acf-input,
|
555 |
+
.acf-postbox.seamless > .acf-fields > .acf-field-group.acfe-field-group-layout-table.acfe-seamless-style > .acf-table {
|
556 |
+
margin: 0;
|
557 |
+
}
|
558 |
+
|
559 |
+
.acf-postbox.seamless > .acf-fields > .acf-field-group.acfe-field-group-layout-block.acfe-seamless-style > .acf-input > .acf-fields,
|
560 |
+
.acf-postbox.seamless > .acf-fields > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style > .acf-input > .acf-fields,
|
561 |
+
.acf-postbox.seamless > .acf-fields > .acf-field-group.acfe-field-group-layout-table.acfe-seamless-style > .acf-input > .acf-table {
|
562 |
+
border-width: 1px;
|
563 |
+
}
|
564 |
+
|
565 |
+
.acf-postbox.seamless > .acf-fields.-left > .acf-field-group.acfe-field-group-layout-block.acfe-seamless-style > .acf-input,
|
566 |
+
.acf-postbox.seamless > .acf-fields.-left > .acf-field-group.acfe-field-group-layout-row.acfe-seamless-style > .acf-input,
|
567 |
+
.acf-postbox.seamless > .acf-fields.-left > .acf-field-group.acfe-field-group-layout-table.acfe-seamless-style > .acf-input {
|
568 |
+
padding: 0 12px;
|
569 |
+
}
|
570 |
+
|
571 |
+
.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acf-fields,
|
572 |
+
.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acf-table {
|
573 |
+
display: none;
|
574 |
+
}
|
575 |
+
|
576 |
+
tr.acf-field.acf-field-group.acfe-seamless-style > td.acf-input > .acf-fields {
|
577 |
+
border: 0;
|
578 |
+
margin: -15px -10px;
|
579 |
+
}
|
580 |
+
|
581 |
+
tr.acf-field.acf-field-group.acfe-seamless-style.acfe-field-group-layout-table > td.acf-input {
|
582 |
+
padding: 0;
|
583 |
+
margin: -15px 0;
|
584 |
+
}
|
585 |
+
|
586 |
+
tr.acf-field.acf-field-group.acfe-seamless-style.acfe-field-group-layout-table > td.acf-input > .acf-table,
|
587 |
+
tr.acf-field.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
588 |
+
tr.acf-field.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table {
|
589 |
+
border-width: 0;
|
590 |
+
}
|
591 |
+
|
592 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input,
|
593 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input {
|
594 |
+
margin-left: -12px;
|
595 |
+
margin-right: -12px;
|
596 |
+
margin-bottom: -15px;
|
597 |
+
}
|
598 |
+
|
599 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-no-label.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input,
|
600 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-no-label.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input {
|
601 |
+
margin-top: -15px;
|
602 |
+
}
|
603 |
+
|
604 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style.acfe-no-label:not([data-acfe-clone-modal="1"])>.acf-label>p.description,
|
605 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style.acfe-no-label:not([data-acfe-clone-modal="1"])>.acf-label>p.description {
|
606 |
+
margin-bottom: 15px;
|
607 |
+
}
|
608 |
+
|
609 |
+
.acf-fields > .acf-field-clone.acfe-field-clone-layout-row.acfe-no-label.acfe-seamless-style > .acf-input > .acf-fields {
|
610 |
+
border-width: 0;
|
611 |
+
}
|
612 |
+
|
613 |
+
.acf-fields > .acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style > .acf-input > .acf-fields {
|
614 |
+
border-left-width: 0;
|
615 |
+
border-right-width: 0;
|
616 |
+
border-bottom-width: 0;
|
617 |
+
}
|
618 |
+
|
619 |
+
.acf-fields > .acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style > .acf-input > .acf-fields {
|
620 |
+
border-width: 0;
|
621 |
+
}
|
622 |
+
|
623 |
+
.acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style > .acf-input {
|
624 |
+
margin: 0;
|
625 |
+
}
|
626 |
+
|
627 |
+
.acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style > .acf-input > .acf-fields {
|
628 |
+
border-width: 1px;
|
629 |
+
}
|
630 |
+
|
631 |
+
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input,
|
632 |
+
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input {
|
633 |
+
padding: 0 0 0 1px;
|
634 |
+
margin: -15px 0;
|
635 |
+
}
|
636 |
+
|
637 |
+
.acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style > .acf-input > .acf-fields,
|
638 |
+
.acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style > .acf-input > .acf-table,
|
639 |
+
.acf-fields>.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
640 |
+
.acf-fields>.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table {
|
641 |
+
border-width: 0;
|
642 |
+
}
|
643 |
+
|
644 |
+
.acf-postbox.seamless > .acf-fields > .acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style > .acf-input,
|
645 |
+
.acf-postbox.seamless > .acf-fields > .acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style > .acf-input,
|
646 |
+
.acf-postbox.seamless > .acf-fields > .acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style > .acf-table {
|
647 |
+
margin: 0;
|
648 |
+
}
|
649 |
+
|
650 |
+
.acf-postbox.seamless > .acf-fields > .acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style > .acf-input > .acf-fields,
|
651 |
+
.acf-postbox.seamless > .acf-fields > .acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style > .acf-input > .acf-fields,
|
652 |
+
.acf-postbox.seamless > .acf-fields > .acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style > .acf-input > .acf-table {
|
653 |
+
border-width: 1px;
|
654 |
+
}
|
655 |
+
|
656 |
+
.acf-postbox.seamless > .acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style > .acf-input,
|
657 |
+
.acf-postbox.seamless > .acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style > .acf-input,
|
658 |
+
.acf-postbox.seamless > .acf-fields.-left > .acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style > .acf-input {
|
659 |
+
padding: 0 12px;
|
660 |
+
}
|
661 |
+
|
662 |
+
tr.acf-field.acf-field-clone.acfe-seamless-style > td.acf-input > .acf-fields {
|
663 |
+
border: 0;
|
664 |
+
margin: -15px -10px;
|
665 |
+
}
|
666 |
+
|
667 |
+
tr.acf-field.acf-field-clone.acfe-seamless-style.acfe-field-clone-layout-table > td.acf-input {
|
668 |
+
padding: 0;
|
669 |
+
margin: -15px 0;
|
670 |
+
}
|
671 |
+
|
672 |
+
tr.acf-field.acf-field-clone.acfe-seamless-style.acfe-field-clone-layout-table > td.acf-input > .acf-table,
|
673 |
+
tr.acf-field.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
674 |
+
tr.acf-field.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table {
|
675 |
+
border-width: 0;
|
676 |
+
}
|
677 |
+
|
678 |
+
.acfe-modal-content .acf-color-picker .wp-picker-holder {
|
679 |
+
position: relative;
|
680 |
+
}
|
681 |
+
|
682 |
+
.acf-field-checkbox .acf-input .acf-checkbox-list.acf-bl li + li > strong {
|
683 |
+
margin-top: 15px;
|
684 |
+
display: inline-block;
|
685 |
+
}
|
686 |
+
|
687 |
+
.acf-field-radio .acf-input .acf-radio-list.acf-bl li > strong,
|
688 |
+
.acf-field-radio[data-acfe-labels] .acf-input .acf-radio-list.acf-hl li>strong {
|
689 |
+
display: block;
|
690 |
+
}
|
691 |
+
|
692 |
+
.acf-field-radio .acf-input .acf-radio-list.acf-bl li + li > strong {
|
693 |
+
margin-top: 15px;
|
694 |
+
}
|
695 |
+
|
696 |
+
.acf-range-wrap input[type=number] {
|
697 |
+
min-width: 3.5em;
|
698 |
+
}
|
699 |
+
|
700 |
+
.acf-link.-value .acfe-modal .button {
|
701 |
+
display: inline-block;
|
702 |
+
}
|
703 |
+
|
704 |
+
.acf-editor-wrap iframe {
|
705 |
+
min-height: 60px;
|
706 |
+
}
|
707 |
+
|
708 |
+
.acf-editor-wrap .mce-top-part:before {
|
709 |
+
-webkit-box-shadow: none;
|
710 |
+
box-shadow: none;
|
711 |
+
}
|
712 |
+
|
713 |
+
.acf-editor-wrap div.mce-statusbar {
|
714 |
+
border: 0;
|
715 |
+
}
|
716 |
+
|
717 |
+
.acf-editor-wrap .mce-divider,
|
718 |
+
.acf-editor-wrap .mce-path-item {
|
719 |
+
color: #aaa;
|
720 |
+
}
|
721 |
+
|
722 |
+
form.acfe-form.is-invalid[data-hide-error="1"]>.acf-error-message.-dismiss,
|
723 |
+
form.acfe-form.is-valid[data-hide-revalidation="1"]>.acf-notice.-success {
|
724 |
+
display: none;
|
725 |
+
}
|
726 |
+
|
727 |
+
form.acfe-form.is-invalid[data-errors-position=below] .acf-field .acf-notice {
|
728 |
+
margin: 15px 0 0;
|
729 |
+
}
|
730 |
+
|
731 |
+
.acf-fields > .acf-field.acf-field-acfe-column {
|
732 |
+
float: left;
|
733 |
+
clear: none;
|
734 |
+
-webkit-box-sizing: border-box;
|
735 |
+
box-sizing: border-box;
|
736 |
+
padding: 0;
|
737 |
+
border-top-width: 0;
|
738 |
+
}
|
739 |
+
|
740 |
+
.acf-fields.-left > .acf-field.acf-field-acfe-column {
|
741 |
+
border-right: 1px solid #eee;
|
742 |
+
}
|
743 |
+
|
744 |
+
.acf-fields.-left > .acf-field.acf-field-acfe-column:before {
|
745 |
+
content: "";
|
746 |
+
display: block;
|
747 |
+
position: static;
|
748 |
+
background: none;
|
749 |
+
border: 0;
|
750 |
+
width: auto;
|
751 |
+
}
|
752 |
+
|
753 |
+
.acf-fields.-left > .acf-field.acf-field-acfe-column > .acf-input {
|
754 |
+
float: none;
|
755 |
+
width: auto;
|
756 |
+
margin: 0;
|
757 |
+
padding: 0;
|
758 |
+
}
|
759 |
+
|
760 |
+
.acf-fields > .acf-field.acf-field-acfe-column > .acf-input > .acf-fields > .acf-field {
|
761 |
+
border-top-width: 0;
|
762 |
+
}
|
763 |
+
|
764 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-endpoint="1"] {
|
765 |
+
clear: both;
|
766 |
+
border-top: 1px solid #eee;
|
767 |
+
width: 100%;
|
768 |
+
}
|
769 |
+
|
770 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="1/12"] {
|
771 |
+
width: 8.333333%;
|
772 |
+
}
|
773 |
+
|
774 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="2/12"] {
|
775 |
+
width: 16.66666%;
|
776 |
+
}
|
777 |
+
|
778 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="3/12"] {
|
779 |
+
width: 25%;
|
780 |
+
}
|
781 |
+
|
782 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="4/12"] {
|
783 |
+
width: 33.33333%;
|
784 |
+
}
|
785 |
+
|
786 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="5/12"] {
|
787 |
+
width: 41.66667%;
|
788 |
+
}
|
789 |
+
|
790 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="6/12"] {
|
791 |
+
width: 50%;
|
792 |
+
}
|
793 |
+
|
794 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="7/12"] {
|
795 |
+
width: 58.33333%;
|
796 |
+
}
|
797 |
+
|
798 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="8/12"] {
|
799 |
+
width: 66.66666%;
|
800 |
+
}
|
801 |
+
|
802 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="9/12"] {
|
803 |
+
width: 75%;
|
804 |
+
}
|
805 |
+
|
806 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="10/12"] {
|
807 |
+
width: 83.33333%;
|
808 |
+
}
|
809 |
+
|
810 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="11/12"] {
|
811 |
+
width: 91.66667%;
|
812 |
+
}
|
813 |
+
|
814 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="12/12"] {
|
815 |
+
width: 100%;
|
816 |
+
border-right: 0;
|
817 |
+
}
|
818 |
+
|
819 |
+
@media only screen and (max-width: 1024px) {
|
820 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="1/12"],
|
821 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="2/12"],
|
822 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="3/12"],
|
823 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="4/12"],
|
824 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="5/12"],
|
825 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="7/12"],
|
826 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="8/12"],
|
827 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="9/12"],
|
828 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="10/12"],
|
829 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="11/12"] {
|
830 |
+
width: 50%;
|
831 |
+
}
|
832 |
+
}
|
833 |
+
|
834 |
+
@media only screen and (max-width: 640px) {
|
835 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="1/12"],
|
836 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="2/12"],
|
837 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="3/12"],
|
838 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="4/12"],
|
839 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="5/12"],
|
840 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="6/12"],
|
841 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="7/12"],
|
842 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="8/12"],
|
843 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="9/12"],
|
844 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="10/12"],
|
845 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="11/12"],
|
846 |
+
.acf-fields>.acf-field.acf-field-acfe-column[data-columns="12/12"] {
|
847 |
+
width: 100%;
|
848 |
+
}
|
849 |
+
}
|
850 |
+
|
851 |
+
.acf-media-modal .screen-reader-text,
|
852 |
+
.acf-media-modal .screen-reader-text span,
|
853 |
+
.acf-media-modal .ui-helper-hidden-accessible {
|
854 |
+
border: 0;
|
855 |
+
clip: rect(1px, 1px, 1px, 1px);
|
856 |
+
-webkit-clip-path: inset(50%);
|
857 |
+
clip-path: inset(50%);
|
858 |
+
height: 1px;
|
859 |
+
margin: -1px;
|
860 |
+
overflow: hidden;
|
861 |
+
padding: 0;
|
862 |
+
position: absolute;
|
863 |
+
width: 1px;
|
864 |
+
word-wrap: normal !important;
|
865 |
+
}
|
866 |
+
|
867 |
+
.acf-ui-datepicker .ui-datepicker {
|
868 |
+
padding: 0;
|
869 |
+
border-color: #7e8993 !important;
|
870 |
+
border-radius: 4px;
|
871 |
+
-webkit-box-sizing: border-box;
|
872 |
+
box-sizing: border-box;
|
873 |
+
background: #fff;
|
874 |
+
}
|
875 |
+
|
876 |
+
.acf-ui-datepicker select {
|
877 |
+
font-size: 14px;
|
878 |
+
cursor: pointer;
|
879 |
+
vertical-align: middle;
|
880 |
+
line-height: 2;
|
881 |
+
color: #32373c;
|
882 |
+
border-color: #7e8993;
|
883 |
+
-webkit-box-shadow: none;
|
884 |
+
box-shadow: none;
|
885 |
+
border-radius: 3px;
|
886 |
+
padding: 0 24px 0 8px;
|
887 |
+
min-height: 30px;
|
888 |
+
max-width: 25rem;
|
889 |
+
-webkit-appearance: none;
|
890 |
+
background: #fff url("data:image/svg+xml;charset=US-ASCII, %3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") no-repeat right 5px top 55%;
|
891 |
+
background-size: 16px 16px;
|
892 |
+
}
|
893 |
+
|
894 |
+
.acf-ui-datepicker .ui-datepicker table {
|
895 |
+
font-size: 13px;
|
896 |
+
margin: 0 0 7px;
|
897 |
+
}
|
898 |
+
|
899 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-header {
|
900 |
+
border: none;
|
901 |
+
background: #f9f9f9;
|
902 |
+
color: #222;
|
903 |
+
font-weight: 400;
|
904 |
+
border-radius: 4px 4px 0;
|
905 |
+
}
|
906 |
+
|
907 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-header .ui-state-hover {
|
908 |
+
background: #f9f9f9;
|
909 |
+
cursor: pointer;
|
910 |
+
border-radius: 0;
|
911 |
+
border: 0;
|
912 |
+
}
|
913 |
+
|
914 |
+
.acf-ui-datepicker .ui-datepicker thead {
|
915 |
+
background: #f9f9f9;
|
916 |
+
color: #222;
|
917 |
+
}
|
918 |
+
|
919 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-title {
|
920 |
+
margin-top: .4em;
|
921 |
+
margin-bottom: .3em;
|
922 |
+
color: #222;
|
923 |
+
font-size: 14px;
|
924 |
+
}
|
925 |
+
|
926 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next,
|
927 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next-hover,
|
928 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev,
|
929 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev-hover {
|
930 |
+
height: 20px;
|
931 |
+
width: 20px;
|
932 |
+
border: none;
|
933 |
+
overflow: hidden;
|
934 |
+
margin-top: 15px;
|
935 |
+
top: 0;
|
936 |
+
}
|
937 |
+
|
938 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next-hover,
|
939 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev-hover {
|
940 |
+
background: none !important;
|
941 |
+
color: #007cba !important;
|
942 |
+
}
|
943 |
+
|
944 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next {
|
945 |
+
right: 7px;
|
946 |
+
}
|
947 |
+
|
948 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev {
|
949 |
+
left: 7px;
|
950 |
+
}
|
951 |
+
|
952 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span,
|
953 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span {
|
954 |
+
height: 20px;
|
955 |
+
width: 20px;
|
956 |
+
background: none;
|
957 |
+
position: relative;
|
958 |
+
margin: 0;
|
959 |
+
left: unset;
|
960 |
+
top: unset;
|
961 |
+
font-size: 1px;
|
962 |
+
}
|
963 |
+
|
964 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span:before,
|
965 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span:before {
|
966 |
+
display: block;
|
967 |
+
font-family: dashicons;
|
968 |
+
line-height: 1;
|
969 |
+
font-weight: 400;
|
970 |
+
text-indent: 0;
|
971 |
+
font-style: normal;
|
972 |
+
speak: none;
|
973 |
+
text-decoration: inherit;
|
974 |
+
text-transform: none;
|
975 |
+
text-rendering: auto;
|
976 |
+
-webkit-font-smoothing: antialiased;
|
977 |
+
-moz-osx-font-smoothing: grayscale;
|
978 |
+
width: 20px;
|
979 |
+
height: 20px;
|
980 |
+
font-size: 16px;
|
981 |
+
vertical-align: top;
|
982 |
+
text-align: center;
|
983 |
+
}
|
984 |
+
|
985 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span:before {
|
986 |
+
content: "\f345";
|
987 |
+
}
|
988 |
+
|
989 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span:before {
|
990 |
+
content: "\f341";
|
991 |
+
}
|
992 |
+
|
993 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-title select {
|
994 |
+
margin: 0 3px;
|
995 |
+
}
|
996 |
+
|
997 |
+
.acf-ui-datepicker .ui-datepicker th {
|
998 |
+
padding: .75em 0;
|
999 |
+
color: #222;
|
1000 |
+
font-weight: 400;
|
1001 |
+
border: none;
|
1002 |
+
border-bottom: 1px solid #e1e1e1;
|
1003 |
+
background: #f9f9f9;
|
1004 |
+
}
|
1005 |
+
|
1006 |
+
.acf-ui-datepicker .ui-datepicker td {
|
1007 |
+
background: #fff;
|
1008 |
+
border: none;
|
1009 |
+
padding: 0;
|
1010 |
+
}
|
1011 |
+
|
1012 |
+
.acf-ui-datepicker .ui-datepicker td .ui-state-default {
|
1013 |
+
background: transparent;
|
1014 |
+
border: none;
|
1015 |
+
text-align: center;
|
1016 |
+
padding: .5em;
|
1017 |
+
margin: 0;
|
1018 |
+
font-weight: 400;
|
1019 |
+
color: #333;
|
1020 |
+
}
|
1021 |
+
|
1022 |
+
.acf-ui-datepicker .ui-datepicker td .ui-state-active,
|
1023 |
+
.acf-ui-datepicker .ui-datepicker td .ui-state-hover {
|
1024 |
+
background: #007cba;
|
1025 |
+
color: #fff;
|
1026 |
+
-webkit-box-shadow: none;
|
1027 |
+
box-shadow: none;
|
1028 |
+
}
|
1029 |
+
|
1030 |
+
.acf-ui-datepicker .ui-datepicker td.ui-state-disabled,
|
1031 |
+
.acf-ui-datepicker .ui-datepicker td.ui-state-disabled .ui-state-default {
|
1032 |
+
opacity: 1;
|
1033 |
+
color: #999;
|
1034 |
+
}
|
1035 |
+
|
1036 |
+
.acf-ui-datepicker .ui-datepicker-today .ui-state-highlight {
|
1037 |
+
border: none !important;
|
1038 |
+
background: #eee !important;
|
1039 |
+
font-weight: 400 !important;
|
1040 |
+
color: #222 !important;
|
1041 |
+
}
|
1042 |
+
|
1043 |
+
.acf-ui-datepicker .ui-state-highlight.ui-state-active,
|
1044 |
+
.acf-ui-datepicker .ui-state-highlight.ui-state-hover {
|
1045 |
+
border: none !important;
|
1046 |
+
background: #007cba !important;
|
1047 |
+
font-weight: 400 !important;
|
1048 |
+
color: #fff !important;
|
1049 |
+
}
|
1050 |
+
|
1051 |
+
.acf-ui-datepicker .ui-state-highlight.ui-state-hover.ui-state-active {
|
1052 |
+
background: #007cba !important;
|
1053 |
+
}
|
1054 |
+
|
1055 |
+
.acf-ui-datepicker .ui-timepicker-div {
|
1056 |
+
padding: 10px 7px !important;
|
1057 |
+
}
|
1058 |
+
|
1059 |
+
.acf-ui-datepicker .ui-timepicker-div .ui-widget-header {
|
1060 |
+
background: none !important;
|
1061 |
+
border: 0 !important;
|
1062 |
+
display: none !important;
|
1063 |
+
}
|
1064 |
+
|
1065 |
+
.acf-ui-datepicker .ui-timepicker-div .ui-widget-header .ui-datepicker-title {
|
1066 |
+
font-size: 13px !important;
|
1067 |
+
font-weight: 600 !important;
|
1068 |
+
}
|
1069 |
+
|
1070 |
+
.acf-ui-datepicker .ui-timepicker-div dl {
|
1071 |
+
margin: 0;
|
1072 |
+
text-align: center !important;
|
1073 |
+
}
|
1074 |
+
|
1075 |
+
.acf-ui-datepicker .ui-timepicker-div .ui_tpicker_time_label {
|
1076 |
+
display: none !important;
|
1077 |
+
}
|
1078 |
+
|
1079 |
+
.acf-ui-datepicker .ui-timepicker-div select {
|
1080 |
+
background: #fff url("data:image/svg+xml;charset=US-ASCII, %3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") no-repeat right 5px top 55% !important;
|
1081 |
+
background-size: 16px 16px !important;
|
1082 |
+
color: #32373c !important;
|
1083 |
+
border-color: #7e8993 !important;
|
1084 |
+
}
|
1085 |
+
|
1086 |
+
.acf-ui-datepicker .ui-datepicker-buttonpane {
|
1087 |
+
border: 0 !important;
|
1088 |
+
padding: 7px !important;
|
1089 |
+
margin: 0 !important;
|
1090 |
+
background: #f9f9f9 !important;
|
1091 |
+
border-top: 1px solid #e1e1e1 !important;
|
1092 |
+
border-radius: 0 0 4px 4px !important;
|
1093 |
+
}
|
1094 |
+
|
1095 |
+
.acf-ui-datepicker .ui-datepicker-buttonpane:after {
|
1096 |
+
content: "";
|
1097 |
+
display: block;
|
1098 |
+
clear: both;
|
1099 |
+
}
|
1100 |
+
|
1101 |
+
.acf-ui-datepicker .ui-datepicker-buttonpane button {
|
1102 |
+
display: inline-block;
|
1103 |
+
text-decoration: none;
|
1104 |
+
font-size: 13px !important;
|
1105 |
+
line-height: 2.15384615;
|
1106 |
+
min-height: 30px;
|
1107 |
+
margin: 0 !important;
|
1108 |
+
padding: 0 10px !important;
|
1109 |
+
cursor: pointer !important;
|
1110 |
+
-webkit-appearance: none;
|
1111 |
+
border-radius: 3px;
|
1112 |
+
font-weight: 400 !important;
|
1113 |
+
white-space: nowrap;
|
1114 |
+
-webkit-box-sizing: border-box;
|
1115 |
+
box-sizing: border-box;
|
1116 |
+
color: #0071a1 !important;
|
1117 |
+
border: 1px solid #0071a1 !important;
|
1118 |
+
background: #f3f5f6 !important;
|
1119 |
+
vertical-align: top;
|
1120 |
+
-webkit-box-shadow: none !important;
|
1121 |
+
box-shadow: none !important;
|
1122 |
+
outline: none !important;
|
1123 |
+
opacity: unset !important;
|
1124 |
+
-webkit-filter: unset !important;
|
1125 |
+
filter: unset !important;
|
1126 |
+
}
|
1127 |
+
|
1128 |
+
.acf-ui-datepicker .ui-datepicker-buttonpane button:hover {
|
1129 |
+
background: #f1f1f1 !important;
|
1130 |
+
border-color: #016087 !important;
|
1131 |
+
color: #016087 !important;
|
1132 |
+
}
|
1133 |
+
|
1134 |
+
.mce-toolbar .mce-btn-group:not(:first-child) {
|
1135 |
+
margin-left: 6px;
|
1136 |
+
padding-left: 6px;
|
1137 |
+
}
|
1138 |
+
|
1139 |
+
body .medium-editor-toolbar {
|
1140 |
+
z-index: 999999 !important;
|
1141 |
+
}
|
1142 |
+
.acf-field-repeater[data-acfe-repeater-lock="1"]>.acf-input>.acf-repeater>.acf-table>tbody>.acf-row>.acf-row-handle {
|
1143 |
+
cursor: auto;
|
1144 |
+
}
|
1145 |
+
|
1146 |
+
.acf-repeater.-block > table,
|
1147 |
+
.acf-repeater.-row > table {
|
1148 |
+
border-collapse: separate;
|
1149 |
+
border-spacing: 0 15px;
|
1150 |
+
background: none;
|
1151 |
+
border: 0;
|
1152 |
+
margin-top: -15px;
|
1153 |
+
margin-bottom: -7px;
|
1154 |
+
}
|
1155 |
+
|
1156 |
+
.acf-repeater.-block > table > *,
|
1157 |
+
.acf-repeater.-row > table > * {
|
1158 |
+
border-collapse: collapse;
|
1159 |
+
border-spacing: 0;
|
1160 |
+
}
|
1161 |
+
|
1162 |
+
.acf-repeater.-block > table > tbody > tr > td,
|
1163 |
+
.acf-repeater.-row > table > tbody > tr > td {
|
1164 |
+
border-top: 1px solid #ccd0d4 !important;
|
1165 |
+
border-bottom: 1px solid #ccd0d4 !important;
|
1166 |
+
}
|
1167 |
+
|
1168 |
+
.acf-repeater.-block > table > tbody > tr > td:first-of-type,
|
1169 |
+
.acf-repeater.-row > table > tbody > tr > td:first-of-type {
|
1170 |
+
border-left: 1px solid #ccd0d4 !important;
|
1171 |
+
}
|
1172 |
+
|
1173 |
+
.acf-repeater.-block > table > tbody > tr > td:last-of-type,
|
1174 |
+
.acf-repeater.-row > table > tbody > tr > td:last-of-type {
|
1175 |
+
border-right: 1px solid #ccd0d4 !important;
|
1176 |
+
}
|
1177 |
+
|
1178 |
+
body:not(.acf-admin-5-3) .acf-repeater.-block > table > tbody > tr > td,
|
1179 |
+
body:not(.acf-admin-5-3) .acf-repeater.-row > table > tbody > tr > td {
|
1180 |
+
border-top: 1px solid #e1e1e1;
|
1181 |
+
border-bottom: 1px solid #e1e1e1;
|
1182 |
+
}
|
1183 |
+
|
1184 |
+
body:not(.acf-admin-5-3) .acf-repeater.-block > table > tbody > tr > td:first-of-type,
|
1185 |
+
body:not(.acf-admin-5-3) .acf-repeater.-row > table > tbody > tr > td:first-of-type {
|
1186 |
+
border-left: 1px solid #e1e1e1;
|
1187 |
+
}
|
1188 |
+
|
1189 |
+
body:not(.acf-admin-5-3) .acf-repeater.-block > table > tbody > tr > td:last-of-type,
|
1190 |
+
body:not(.acf-admin-5-3) .acf-repeater.-row > table > tbody > tr > td:last-of-type {
|
1191 |
+
border-right: 1px solid #e1e1e1;
|
1192 |
+
}
|
1193 |
+
|
1194 |
+
.acf-repeater.-table.-empty > .acf-table {
|
1195 |
+
display: none;
|
1196 |
+
}
|
1197 |
+
|
1198 |
+
.acf-field-repeater > .acf-input > .acf-repeater > .acfe-repeater-stylised-button {
|
1199 |
+
padding: 40px 20px;
|
1200 |
+
border: 2px dashed #ccc;
|
1201 |
+
text-align: center;
|
1202 |
+
}
|
1203 |
+
|
1204 |
+
.acf-field-repeater > .acf-input > .acf-repeater > .acfe-repeater-stylised-button > .acf-actions {
|
1205 |
+
text-align: center;
|
1206 |
+
}
|
1207 |
+
|
1208 |
+
.acf-field-flexible-content > .acf-input > .acf-repeater .acf-actions .acf-button .dashicons {
|
1209 |
+
width: auto;
|
1210 |
+
height: auto;
|
1211 |
+
vertical-align: text-top;
|
1212 |
+
}
|
@@ -0,0 +1 @@
|
|
|
1 |
+
.acf-flexible-content>.values>.ui-sortable-placeholder{border-width:2px;border-color:#ccc}.acf-flexible-content .layout .acf-fc-layout-handle{color:#444;font-weight:600}.layout.acfe-flexible-modal-edit-error>.acf-fc-layout-handle{color:#f33b28}.layout.acfe-flexible-modal-edit-error>.acf-fc-layout-handle>.acf-fc-layout-order{background:#f33b28;color:#fff}.acf-field-flexible-content[data-acfe-flexible-modal-edition="1"]:not([data-acfe-flexible-placeholder="1"]):not([data-acfe-flexible-preview="1"])>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-handle{border-bottom-width:0}.acf-field-flexible-content[data-acfe-flexible-placeholder="1"]>.acf-input>.acf-flexible-content>.values>.layout.-collapsed>.acf-fc-layout-handle,.acf-field-flexible-content[data-acfe-flexible-preview="1"]>.acf-input>.acf-flexible-content>.values>.layout.-collapsed>.acf-fc-layout-handle{border-bottom-width:1px}.acf-field-flexible-content[data-acfe-flexible-lock="1"]>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-handle,.acf-field-flexible-content[data-acfe-flexible-remove-collapse="1"]:not([data-acfe-flexible-lock="1"])>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-handle{cursor:auto}.acf-fc-popup.top.acfe-fc-popup-grey:before{border-top-color:#e1e1e1}.acf-tooltip.bottom.acfe-fc-popup-grey:before{border-bottom-color:#e1e1e1}.acf-fc-popup.acfe-fc-popup-grey{background:#fcfcfc;border-radius:3px;color:#444;border:1px solid #e1e1e1;font-size:13px}.acf-tooltip.top.acfe-fc-popup-grey{margin-top:-16px}.acf-tooltip.bottom.acfe-fc-popup-grey{margin-bottom:-16px}.acf-fc-popup.acfe-fc-popup-grey a{color:#444}.acf-fc-popup.acfe-fc-popup-grey a:hover{color:#fff}.layout>.acfe-fc-placeholder{text-align:center;background:#f9f9f9;display:block;text-decoration:none;position:relative;cursor:pointer}.layout>.acfe-fc-placeholder:focus{border-color:#ccc;-webkit-box-shadow:none;box-shadow:none}.layout>.acfe-fc-placeholder>.acfe-flexible-placeholder{height:110px;overflow:hidden;text-align:initial}.layout>.acfe-fc-placeholder>a{z-index:2;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-color:#ccd0d4;color:#23282d;border-radius:100px;-webkit-box-shadow:none;box-shadow:none;background:#fff;width:30px;min-height:30px;height:30px;padding:0;display:block}body:not(.acf-admin-5-3) .layout>.acfe-fc-placeholder>a{border-color:#999}.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-flexible-content>.acf-input>.acf-flexible-content>.values>.layout>.acfe-fc-placeholder>a{z-index:0}.layout>.acfe-fc-placeholder>a:active{-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.layout>.acfe-fc-placeholder>a:focus{border-color:#ccc;-webkit-box-shadow:none;box-shadow:none}.layout>.acfe-fc-placeholder>a span{width:29px;height:30px;vertical-align:top;line-height:28px;font-size:18px}body:not(.acf-admin-5-3) .layout>.acfe-fc-placeholder>a span{width:30px;height:30px}.layout>.acfe-fc-placeholder.acfe-fc-preview{background:none}.layout>.acfe-fc-placeholder.acfe-fc-preview>.acfe-flexible-placeholder{min-height:55px;height:auto}.layout>.acfe-fc-placeholder.acfe-fc-preview>a{display:none}.layout>.acfe-fc-placeholder.acfe-fc-preview:hover>a{display:block}.layout>.acfe-fc-placeholder.acfe-fc-preview.-loading{background:#f9f9f9;min-height:110px}.layout>.acfe-fc-placeholder.acfe-fc-preview.-loading>.acfe-flexible-placeholder>.spinner{visibility:visible;float:none;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);margin:0;z-index:10000}.layout>.acfe-fc-placeholder .acfe-fc-overlay{position:absolute;width:100%;height:100%;padding:0;background-color:hsla(0,0%,100%,0);-webkit-transition:background-color .2s linear;-o-transition:background-color .2s linear;transition:background-color .2s linear}.layout>.acfe-fc-placeholder .acfe-fc-overlay.-hover,.layout>.acfe-fc-placeholder:hover .acfe-fc-overlay{background-color:hsla(0,0%,100%,.7);z-index:1}.layout>.acfe-fc-placeholder.acfe-fc-preview.-loading>a span{visibility:hidden}.layout>.acf-fields>.acfe-flexible-opened-actions,.layout>.acf-table>.acfe-flexible-opened-actions{background:#f9f9f9;border-top:1px solid #e1e1e1;padding:12px;text-align:right;clear:both}.acfe-flexible-layout-thumbnail{display:block;width:100%;height:9.8vw;background-color:#eee;background-size:cover;background-repeat:no-repeat;background-position:50%;position:relative;margin-bottom:15px}.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-not-found:after{content:"\f180";font-family:dashicons;display:inline-block;line-height:1;font-weight:400;font-style:normal;speak:none;text-decoration:inherit;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;text-align:center;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#ccc;font-size:110px}.acfe-col-2 .acfe-flexible-layout-thumbnail{height:20.5vw}.acfe-col-3 .acfe-flexible-layout-thumbnail{height:13.3vw}.acfe-col-5 .acfe-flexible-layout-thumbnail{height:7.65vw}.acfe-col-6 .acfe-flexible-layout-thumbnail{height:6.2vw}@media only screen and (max-width:960px){.acfe-flex-container .acfe-flexible-layout-thumbnail,.acfe-flexible-layout-thumbnail{height:18.4vw}}@media only screen and (max-width:720px){.acfe-flex-container .acfe-flexible-layout-thumbnail,.acfe-flexible-layout-thumbnail{height:37.2vw}}.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-no-modal{display:block;width:230px;height:103px;background-color:#1f2329}.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-no-modal.acfe-flexible-layout-thumbnail-not-found:after{color:#2f353e}.acf-field.acf-field-flexible-content[data-acfe-flexible-stylised-button="1"]>.acf-input>.acf-flexible-content:not(.empty)>.values{margin-bottom:15px}.acf-field.acf-field-flexible-content>.acf-input>.acf-flexible-content>.acfe-flexible-stylised-button{padding:40px 20px;border:2px dashed #ccc;text-align:center}.acf-field.acf-field-flexible-content>.acf-input>.acf-flexible-content>.acfe-flexible-stylised-button>.acf-actions{text-align:center}.acf-field.acf-field-flexible-content>.acf-input>.acf-flexible-content .acf-actions .acf-button .dashicons{width:auto;height:auto;vertical-align:text-top}.acf-field.acf-field-flexible-content[data-acfe-flexible-hide-empty-message="1"]>.acf-input>.acf-flexible-content>.no-value-message{display:none}.acf-field.acf-field-flexible-content[data-acfe-flexible-hide-empty-message="1"]>.acf-input>.acf-flexible-content.-empty>.values{margin-bottom:0}.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons:before{font-family:dashicons}.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons{visibility:hidden}.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons.dashicons-admin-generic,.acf-flexible-content .layout:hover>.acf-fc-layout-controls .acf-icon.acfe-flexible-icon.dashicons{visibility:visible}.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons.dashicons-admin-generic:before{margin-left:1px}.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-duplicate,.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-minus,.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-plus,.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-duplicate,.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-minus,.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-plus{visibility:hidden}.acf-flexible-content .layout.-hover>.acf-fc-layout-controls .acf-icon.-duplicate,.acf-flexible-content .layout.-hover>.acf-fc-layout-controls .acf-icon.-minus,.acf-flexible-content .layout.-hover>.acf-fc-layout-controls .acf-icon.-plus,.acf-flexible-content .layout:hover>.acf-fc-layout-controls .acf-icon.-duplicate,.acf-flexible-content .layout:hover>.acf-fc-layout-controls .acf-icon.-minus,.acf-flexible-content .layout:hover>.acf-fc-layout-controls .acf-icon.-plus{visibility:visible}.acf-flexible-content .layout>.acf-fc-layout-controls .acf-icon.disabled{color:#ccc;cursor:auto}.acf-flexible-content .layout>.acf-fc-layout-controls .acf-icon.disabled:hover{color:#ccc;background:#f5f5f5}.acf-flexible-content[data-acfe-flexible-lock="1"] .layout .acf-fc-layout-handle{cursor:auto}.acf-field-acfe-flexible-layout-title{display:none}input.acfe-flexible-control-title{border:none;-webkit-box-shadow:none!important;box-shadow:none!important;outline:none!important;border-radius:0;border-bottom:1px solid transparent!important;font-weight:600;width:auto!important;padding:0!important;display:none;min-height:20px;vertical-align:unset;background:none}.layout>.acf-fc-layout-handle .acfe-layout-title{cursor:text;position:relative}.layout:not(.acfe-flexible-title-edition)>.acf-fc-layout-handle .acfe-layout-title:hover{background:#f4f4f4}.layout.acfe-flexible-title-edition>.acf-fc-layout-handle .acfe-layout-title input.acfe-flexible-control-title{display:inline-block;border-bottom:1px solid #ddd!important}.layout.acfe-flexible-title-edition>.acf-fc-layout-handle .acfe-layout-title .acfe-layout-title-text{display:none}.layout.acfe-flexible-layout-hidden>.acf-fc-layout-controls,.layout.acfe-flexible-layout-hidden>.acf-fc-layout-handle,.layout.acfe-flexible-layout-hidden>.acf-fields,.layout.acfe-flexible-layout-hidden>.acfe-fc-placeholder{filter:alpha(opacity=50);opacity:.5}.acf-field-flexible-content[data-acfe-flexible-modal-edition="1"]>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-controls>a.-collapse{display:none}body.-loading *{cursor:wait!important}.acf-field .acf-label label{font-weight:600}.acf-field p.description{word-break:break-word}.acf-fields.-left>.acf-field>.acf-label,.acfe-postbox-left>.inside>.acf-field>.acf-label{min-height:1px}.acf-field.acfe-no-label>.acf-label{margin:0}.acf-field.acfe-no-label>.acf-label>label{display:none}.acf-field.acfe-no-label>.acf-label>p.description{margin-bottom:10px}.acfe-field-tooltip{float:right;font-size:16px;color:#999}.acf-field[data-instruction-tooltip]:not([data-instruction-placement])>.acf-input>p.description,.acf-field[data-instruction-tooltip]:not([data-instruction-placement])>.acf-label>p.description{display:none}.acf-field .acf-input>p.description:first-child{margin-top:0;margin-bottom:5px}.acf-field-acfe-hidden,.acf-field[data-instruction-above-field]:not([data-instruction-placement])>.acf-label>p.description,.acf-field p.description>.more{display:none}.acf-field-textarea[data-acfe-textarea-code="1"]>.acf-input>textarea{font-family:Menlo,Monaco,Consolas,Courier New,monospace;font-size:1em}.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap{height:auto}.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default{border:1px solid #7e8993;border-radius:4px}.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default .CodeMirror-gutters{border-right:1px solid #7e8993}body:not(.acf-admin-5-3) .acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default{border-color:#dfdfdf}.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default .CodeMirror-activeline-background{background:#f9f9f9}.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default .CodeMirror-selected{background:#f0f0f0!important}.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default .CodeMirror-gutters{background:#f9f9f9}.acf-field-acfe-code-editor>td.acf-input{max-width:1px}.acf-accordion{z-index:auto}.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input,.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input{margin-left:-12px;margin-right:-12px;margin-bottom:-15px}.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"])>.acf-input,.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"])>.acf-input{margin-top:-15px}.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"])>.acf-label>p.description,.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"])>.acf-label>p.description{margin-bottom:15px}.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style.acfe-no-label>.acf-input>.acf-fields{border-width:0}.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input>.acf-fields{border-left-width:0;border-right-width:0;border-bottom-width:0}.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input>.acf-fields{border-width:0}.acf-fields.-left>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input{margin:0}.acf-fields.-left>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input>.acf-fields{border-width:1px}.acf-fields.-left>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input,.acf-fields.-left>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input{padding:0 0 0 1px;margin:-15px 0}.acf-fields.-left>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input>.acf-fields,.acf-fields.-left>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-input>.acf-table,.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table{border-width:0}.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-table{margin:0}.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input>.acf-fields,.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input>.acf-fields,.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-input>.acf-table{border-width:1px}.acf-postbox.seamless>.acf-fields.-left>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields.-left>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields.-left>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-input{padding:0 12px}.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acf-fields,.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acf-table{display:none}tr.acf-field.acf-field-group.acfe-seamless-style>td.acf-input>.acf-fields{border:0;margin:-15px -10px}tr.acf-field.acf-field-group.acfe-seamless-style.acfe-field-group-layout-table>td.acf-input{padding:0;margin:-15px 0}tr.acf-field.acf-field-group.acfe-seamless-style.acfe-field-group-layout-table>td.acf-input>.acf-table,tr.acf-field.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,tr.acf-field.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table{border-width:0}.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input,.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input{margin-left:-12px;margin-right:-12px;margin-bottom:-15px}.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-no-label.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input,.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-no-label.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input{margin-top:-15px}.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style.acfe-no-label:not([data-acfe-clone-modal="1"])>.acf-label>p.description,.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style.acfe-no-label:not([data-acfe-clone-modal="1"])>.acf-label>p.description{margin-bottom:15px}.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-no-label.acfe-seamless-style>.acf-input>.acf-fields{border-width:0}.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input>.acf-fields{border-left-width:0;border-right-width:0;border-bottom-width:0}.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-fields{border-width:0}.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input{margin:0}.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input>.acf-fields{border-width:1px}.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input,.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input{padding:0 0 0 1px;margin:-15px 0}.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-fields,.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input>.acf-table,.acf-fields>.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,.acf-fields>.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table{border-width:0}.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-table{margin:0}.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-fields,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input>.acf-fields,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input>.acf-table{border-width:1px}.acf-postbox.seamless>.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input,.acf-postbox.seamless>.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input{padding:0 12px}tr.acf-field.acf-field-clone.acfe-seamless-style>td.acf-input>.acf-fields{border:0;margin:-15px -10px}tr.acf-field.acf-field-clone.acfe-seamless-style.acfe-field-clone-layout-table>td.acf-input{padding:0;margin:-15px 0}tr.acf-field.acf-field-clone.acfe-seamless-style.acfe-field-clone-layout-table>td.acf-input>.acf-table,tr.acf-field.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,tr.acf-field.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table{border-width:0}.acfe-modal-content .acf-color-picker .wp-picker-holder{position:relative}.acf-field-checkbox .acf-input .acf-checkbox-list.acf-bl li+li>strong{margin-top:15px;display:inline-block}.acf-field-radio .acf-input .acf-radio-list.acf-bl li>strong,.acf-field-radio[data-acfe-labels] .acf-input .acf-radio-list.acf-hl li>strong{display:block}.acf-field-radio .acf-input .acf-radio-list.acf-bl li+li>strong{margin-top:15px}.acf-range-wrap input[type=number]{min-width:3.5em}.acf-link.-value .acfe-modal .button{display:inline-block}.acf-editor-wrap iframe{min-height:60px}.acf-editor-wrap .mce-top-part:before{-webkit-box-shadow:none;box-shadow:none}.acf-editor-wrap div.mce-statusbar{border:0}.acf-editor-wrap .mce-divider,.acf-editor-wrap .mce-path-item{color:#aaa}form.acfe-form.is-invalid[data-hide-error="1"]>.acf-error-message.-dismiss,form.acfe-form.is-valid[data-hide-revalidation="1"]>.acf-notice.-success{display:none}form.acfe-form.is-invalid[data-errors-position=below] .acf-field .acf-notice{margin:15px 0 0}.acf-fields>.acf-field.acf-field-acfe-column{float:left;clear:none;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;border-top-width:0}.acf-fields.-left>.acf-field.acf-field-acfe-column{border-right:1px solid #eee}.acf-fields.-left>.acf-field.acf-field-acfe-column:before{content:"";display:block;position:static;background:none;border:0;width:auto}.acf-fields.-left>.acf-field.acf-field-acfe-column>.acf-input{float:none;width:auto;margin:0;padding:0}.acf-fields>.acf-field.acf-field-acfe-column>.acf-input>.acf-fields>.acf-field{border-top-width:0}.acf-fields>.acf-field.acf-field-acfe-column[data-endpoint="1"]{clear:both;border-top:1px solid #eee;width:100%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="1/12"]{width:8.333333%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="2/12"]{width:16.66666%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="3/12"]{width:25%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="4/12"]{width:33.33333%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="5/12"]{width:41.66667%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="6/12"]{width:50%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="7/12"]{width:58.33333%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="8/12"]{width:66.66666%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="9/12"]{width:75%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="10/12"]{width:83.33333%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="11/12"]{width:91.66667%}.acf-fields>.acf-field.acf-field-acfe-column[data-columns="12/12"]{width:100%;border-right:0}@media only screen and (max-width:1024px){.acf-fields>.acf-field.acf-field-acfe-column[data-columns="1/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="2/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="3/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="4/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="5/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="7/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="8/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="9/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="10/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="11/12"]{width:50%}}@media only screen and (max-width:640px){.acf-fields>.acf-field.acf-field-acfe-column[data-columns="1/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="2/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="3/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="4/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="5/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="6/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="7/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="8/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="9/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="10/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="11/12"],.acf-fields>.acf-field.acf-field-acfe-column[data-columns="12/12"]{width:100%}}.acf-media-modal .screen-reader-text,.acf-media-modal .screen-reader-text span,.acf-media-modal .ui-helper-hidden-accessible{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.acf-ui-datepicker .ui-datepicker{padding:0;border-color:#7e8993!important;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff}.acf-ui-datepicker select{font-size:14px;cursor:pointer;vertical-align:middle;line-height:2;color:#32373c;border-color:#7e8993;-webkit-box-shadow:none;box-shadow:none;border-radius:3px;padding:0 24px 0 8px;min-height:30px;max-width:25rem;-webkit-appearance:none;background:#fff url("data:image/svg+xml;charset=US-ASCII, %3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") no-repeat right 5px top 55%;background-size:16px 16px}.acf-ui-datepicker .ui-datepicker table{font-size:13px;margin:0 0 7px}.acf-ui-datepicker .ui-datepicker .ui-datepicker-header{border:none;background:#f9f9f9;color:#222;font-weight:400;border-radius:4px 4px 0}.acf-ui-datepicker .ui-datepicker .ui-datepicker-header .ui-state-hover{background:#f9f9f9;cursor:pointer;border-radius:0;border:0}.acf-ui-datepicker .ui-datepicker thead{background:#f9f9f9;color:#222}.acf-ui-datepicker .ui-datepicker .ui-datepicker-title{margin-top:.4em;margin-bottom:.3em;color:#222;font-size:14px}.acf-ui-datepicker .ui-datepicker .ui-datepicker-next,.acf-ui-datepicker .ui-datepicker .ui-datepicker-next-hover,.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev,.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev-hover{height:20px;width:20px;border:none;overflow:hidden;margin-top:15px;top:0}.acf-ui-datepicker .ui-datepicker .ui-datepicker-next-hover,.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev-hover{background:none!important;color:#007cba!important}.acf-ui-datepicker .ui-datepicker .ui-datepicker-next{right:7px}.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev{left:7px}.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span,.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span{height:20px;width:20px;background:none;position:relative;margin:0;left:unset;top:unset;font-size:1px}.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span:before,.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span:before{display:block;font-family:dashicons;line-height:1;font-weight:400;text-indent:0;font-style:normal;speak:none;text-decoration:inherit;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:20px;height:20px;font-size:16px;vertical-align:top;text-align:center}.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span:before{content:"\f345"}.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span:before{content:"\f341"}.acf-ui-datepicker .ui-datepicker .ui-datepicker-title select{margin:0 3px}.acf-ui-datepicker .ui-datepicker th{padding:.75em 0;color:#222;font-weight:400;border:none;border-bottom:1px solid #e1e1e1;background:#f9f9f9}.acf-ui-datepicker .ui-datepicker td{background:#fff;border:none;padding:0}.acf-ui-datepicker .ui-datepicker td .ui-state-default{background:transparent;border:none;text-align:center;padding:.5em;margin:0;font-weight:400;color:#333}.acf-ui-datepicker .ui-datepicker td .ui-state-active,.acf-ui-datepicker .ui-datepicker td .ui-state-hover{background:#007cba;color:#fff;-webkit-box-shadow:none;box-shadow:none}.acf-ui-datepicker .ui-datepicker td.ui-state-disabled,.acf-ui-datepicker .ui-datepicker td.ui-state-disabled .ui-state-default{opacity:1;color:#999}.acf-ui-datepicker .ui-datepicker-today .ui-state-highlight{border:none!important;background:#eee!important;font-weight:400!important;color:#222!important}.acf-ui-datepicker .ui-state-highlight.ui-state-active,.acf-ui-datepicker .ui-state-highlight.ui-state-hover{border:none!important;background:#007cba!important;font-weight:400!important;color:#fff!important}.acf-ui-datepicker .ui-state-highlight.ui-state-hover.ui-state-active{background:#007cba!important}.acf-ui-datepicker .ui-timepicker-div{padding:10px 7px!important}.acf-ui-datepicker .ui-timepicker-div .ui-widget-header{background:none!important;border:0!important;display:none!important}.acf-ui-datepicker .ui-timepicker-div .ui-widget-header .ui-datepicker-title{font-size:13px!important;font-weight:600!important}.acf-ui-datepicker .ui-timepicker-div dl{margin:0;text-align:center!important}.acf-ui-datepicker .ui-timepicker-div .ui_tpicker_time_label{display:none!important}.acf-ui-datepicker .ui-timepicker-div select{background:#fff url("data:image/svg+xml;charset=US-ASCII, %3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") no-repeat right 5px top 55%!important;background-size:16px 16px!important;color:#32373c!important;border-color:#7e8993!important}.acf-ui-datepicker .ui-datepicker-buttonpane{border:0!important;padding:7px!important;margin:0!important;background:#f9f9f9!important;border-top:1px solid #e1e1e1!important;border-radius:0 0 4px 4px!important}.acf-ui-datepicker .ui-datepicker-buttonpane:after{content:"";display:block;clear:both}.acf-ui-datepicker .ui-datepicker-buttonpane button{display:inline-block;text-decoration:none;font-size:13px!important;line-height:2.15384615;min-height:30px;margin:0!important;padding:0 10px!important;cursor:pointer!important;-webkit-appearance:none;border-radius:3px;font-weight:400!important;white-space:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;color:#0071a1!important;border:1px solid #0071a1!important;background:#f3f5f6!important;vertical-align:top;-webkit-box-shadow:none!important;box-shadow:none!important;outline:none!important;opacity:unset!important;-webkit-filter:unset!important;filter:unset!important}.acf-ui-datepicker .ui-datepicker-buttonpane button:hover{background:#f1f1f1!important;border-color:#016087!important;color:#016087!important}.mce-toolbar .mce-btn-group:not(:first-child){margin-left:6px;padding-left:6px}body .medium-editor-toolbar{z-index:999999!important}.acf-field-repeater[data-acfe-repeater-lock="1"]>.acf-input>.acf-repeater>.acf-table>tbody>.acf-row>.acf-row-handle{cursor:auto}.acf-repeater.-block>table,.acf-repeater.-row>table{border-collapse:separate;border-spacing:0 15px;background:none;border:0;margin-top:-15px;margin-bottom:-7px}.acf-repeater.-block>table>*,.acf-repeater.-row>table>*{border-collapse:collapse;border-spacing:0}.acf-repeater.-block>table>tbody>tr>td,.acf-repeater.-row>table>tbody>tr>td{border-top:1px solid #ccd0d4!important;border-bottom:1px solid #ccd0d4!important}.acf-repeater.-block>table>tbody>tr>td:first-of-type,.acf-repeater.-row>table>tbody>tr>td:first-of-type{border-left:1px solid #ccd0d4!important}.acf-repeater.-block>table>tbody>tr>td:last-of-type,.acf-repeater.-row>table>tbody>tr>td:last-of-type{border-right:1px solid #ccd0d4!important}body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td,body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td{border-top:1px solid #e1e1e1;border-bottom:1px solid #e1e1e1}body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td:first-of-type,body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td:first-of-type{border-left:1px solid #e1e1e1}body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td:last-of-type,body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td:last-of-type{border-right:1px solid #e1e1e1}.acf-repeater.-table.-empty>.acf-table{display:none}.acf-field-repeater>.acf-input>.acf-repeater>.acfe-repeater-stylised-button{padding:40px 20px;border:2px dashed #ccc;text-align:center}.acf-field-repeater>.acf-input>.acf-repeater>.acfe-repeater-stylised-button>.acf-actions{text-align:center}.acf-field-flexible-content>.acf-input>.acf-repeater .acf-actions .acf-button .dashicons{width:auto;height:auto;vertical-align:text-top}
|
@@ -0,0 +1,455 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.wrap > form:not(.search-form) {
|
2 |
+
max-width: 100% !important;
|
3 |
+
width: 100%;
|
4 |
+
float: left;
|
5 |
+
}
|
6 |
+
|
7 |
+
.wrap > form > div > div > h2,
|
8 |
+
.wrap > form > div > div > h3,
|
9 |
+
.wrap > form > h2,
|
10 |
+
.wrap > form > h3 {
|
11 |
+
background: #fff;
|
12 |
+
border: 1px solid #ccd0d4;
|
13 |
+
border-bottom: 0;
|
14 |
+
margin: 0;
|
15 |
+
color: #23282d;
|
16 |
+
font-size: 14px;
|
17 |
+
padding: 8px 12px;
|
18 |
+
line-height: 1.4;
|
19 |
+
}
|
20 |
+
|
21 |
+
.wrap > form > div > div > h2 + p,
|
22 |
+
.wrap > form > div > div > h3 + p,
|
23 |
+
.wrap > form > h2 + p,
|
24 |
+
.wrap > form > h3 + p {
|
25 |
+
margin: 0;
|
26 |
+
border: 1px solid #ccd0d4;
|
27 |
+
border-bottom: 0;
|
28 |
+
padding: 15px 12px;
|
29 |
+
}
|
30 |
+
|
31 |
+
.wrap > form > div > div > h2 + .form-table,
|
32 |
+
.wrap > form > div > div > h2 + p + .form-table,
|
33 |
+
.wrap > form > div > div > h3 + .form-table,
|
34 |
+
.wrap > form > div > div > h3 + p + .form-table,
|
35 |
+
.wrap > form > h2 + .form-table,
|
36 |
+
.wrap > form > h2 + p + .form-table,
|
37 |
+
.wrap > form > h3 + .form-table,
|
38 |
+
.wrap > form > h3 + p + .form-table {
|
39 |
+
margin-top: 0;
|
40 |
+
}
|
41 |
+
|
42 |
+
.wrap > form .form-table {
|
43 |
+
background: #fff;
|
44 |
+
width: 100%;
|
45 |
+
border: 1px solid #ccd0d4;
|
46 |
+
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
|
47 |
+
box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
|
48 |
+
margin-bottom: 20px;
|
49 |
+
}
|
50 |
+
|
51 |
+
.wrap > form .form-table > tbody > tr.acf-field {
|
52 |
+
position: static;
|
53 |
+
}
|
54 |
+
|
55 |
+
.wrap > form .form-table > tbody > tr.acf-tab-wrap > td {
|
56 |
+
background: #f9f9f9;
|
57 |
+
padding: 15px 0 0;
|
58 |
+
}
|
59 |
+
|
60 |
+
.wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group {
|
61 |
+
border-bottom: 0;
|
62 |
+
padding: 0 0 0 20%;
|
63 |
+
}
|
64 |
+
|
65 |
+
.wrap > form .form-table > tbody > tr.acf-tab-wrap > td ul.acf-tab-group > li.active a {
|
66 |
+
background: #fff;
|
67 |
+
}
|
68 |
+
|
69 |
+
.wrap > form .form-table > tbody > tr > td {
|
70 |
+
background: #fff;
|
71 |
+
border-top: 1px solid #eee;
|
72 |
+
position: static;
|
73 |
+
}
|
74 |
+
|
75 |
+
.wrap > form .form-table > tbody > tr > td.td-full {
|
76 |
+
padding: 15px 12px;
|
77 |
+
}
|
78 |
+
|
79 |
+
.wrap > form .form-table > tbody > tr > td p {
|
80 |
+
font-size: 13px;
|
81 |
+
}
|
82 |
+
|
83 |
+
.wrap > form .form-table > tbody > tr > td.acf-label,
|
84 |
+
.wrap > form .form-table > tbody > tr > th {
|
85 |
+
border-top: 1px solid #eee;
|
86 |
+
border-right: 1px solid #e1e1e1;
|
87 |
+
background: #f9f9f9;
|
88 |
+
padding: 15px 12px;
|
89 |
+
width: 20%;
|
90 |
+
font-size: 13px;
|
91 |
+
position: static;
|
92 |
+
color: #444;
|
93 |
+
}
|
94 |
+
|
95 |
+
.wrap > form .form-table > tbody > tr:first-of-type td,
|
96 |
+
.wrap > form .form-table > tbody > tr:first-of-type th {
|
97 |
+
border-top: 1px solid #ccd0d4;
|
98 |
+
}
|
99 |
+
|
100 |
+
.wrap > form #poststuff {
|
101 |
+
min-width: auto;
|
102 |
+
}
|
103 |
+
|
104 |
+
.wrap > form #poststuff.acfe-acfe-bt-admin-column {
|
105 |
+
min-width: auto;
|
106 |
+
padding: 0;
|
107 |
+
}
|
108 |
+
|
109 |
+
.wrap > form #poststuff.acfe-acfe-bt-admin-column .inside {
|
110 |
+
margin: 0;
|
111 |
+
padding: 0;
|
112 |
+
}
|
113 |
+
|
114 |
+
.wrap > form p.submit {
|
115 |
+
display: none;
|
116 |
+
}
|
117 |
+
|
118 |
+
@media only screen and (max-width: 850px) {
|
119 |
+
.wrap > form > div > div > h2,
|
120 |
+
.wrap > form > div > div > h3,
|
121 |
+
.wrap > form > h2,
|
122 |
+
.wrap > form > h3 {
|
123 |
+
padding: 12px;
|
124 |
+
}
|
125 |
+
|
126 |
+
.wrap > form table.form-table > tbody > tr {
|
127 |
+
display: block;
|
128 |
+
padding: 15px 12px;
|
129 |
+
border-top: 1px solid #eee;
|
130 |
+
}
|
131 |
+
|
132 |
+
.wrap > form table.form-table > tbody > tr > td.acf-label,
|
133 |
+
.wrap > form table.form-table > tbody > tr > th {
|
134 |
+
margin-bottom: 10px;
|
135 |
+
}
|
136 |
+
|
137 |
+
.wrap > form table.form-table > tbody > tr > td,
|
138 |
+
.wrap > form table.form-table > tbody > tr > td.acf-label,
|
139 |
+
.wrap > form table.form-table > tbody > tr > th {
|
140 |
+
padding: 0;
|
141 |
+
display: block;
|
142 |
+
width: auto;
|
143 |
+
background: none;
|
144 |
+
border: 0 !important;
|
145 |
+
}
|
146 |
+
|
147 |
+
.wrap > form table.form-table > tbody > tr:first-child {
|
148 |
+
border-top: 0;
|
149 |
+
}
|
150 |
+
}
|
151 |
+
|
152 |
+
.wrap .form-table > tbody > .acf-field > .acf-label label {
|
153 |
+
font-size: 13px;
|
154 |
+
color: #444;
|
155 |
+
}
|
156 |
+
|
157 |
+
.wrap .acf-fields.-left > .acf-field {
|
158 |
+
padding-left: 0;
|
159 |
+
}
|
160 |
+
|
161 |
+
.wrap .acf-fields.-left > .acf-field.acfe-bt-no-label {
|
162 |
+
padding-left: 20%;
|
163 |
+
}
|
164 |
+
|
165 |
+
@media only screen and (max-width: 640px) {
|
166 |
+
.wrap .acf-fields.-left > .acf-field.acfe-bt-no-label {
|
167 |
+
padding-left: 0;
|
168 |
+
}
|
169 |
+
}
|
170 |
+
|
171 |
+
.wrap .acf-fields.-left > .acf-field:before {
|
172 |
+
width: 20%;
|
173 |
+
}
|
174 |
+
|
175 |
+
.wrap .acf-fields.-left > .acf-field > .acf-label {
|
176 |
+
width: 20%;
|
177 |
+
margin-left: 0;
|
178 |
+
padding: 0 12px;
|
179 |
+
}
|
180 |
+
|
181 |
+
.wrap .acf-fields.-left > .acf-field > .acf-input {
|
182 |
+
padding: 0 12px;
|
183 |
+
}
|
184 |
+
|
185 |
+
.wrap .postbox .hndle {
|
186 |
+
cursor: auto;
|
187 |
+
-webkit-user-select: auto;
|
188 |
+
-moz-user-select: auto;
|
189 |
+
-ms-user-select: auto;
|
190 |
+
user-select: auto;
|
191 |
+
}
|
192 |
+
|
193 |
+
.wrap .postbox .handle-actions {
|
194 |
+
display: none;
|
195 |
+
}
|
196 |
+
|
197 |
+
.profile-php .wrap#profile-page .form-table textarea,
|
198 |
+
.user-edit-php .wrap#profile-page .form-table textarea,
|
199 |
+
.user-new-php .wrap#profile-page .form-table textarea {
|
200 |
+
width: 100%;
|
201 |
+
max-width: 500px;
|
202 |
+
}
|
203 |
+
|
204 |
+
.profile-php .wrap > form select#ure_select_other_roles,
|
205 |
+
.profile-php .wrap > form select#ure_select_other_roles + .ms-parent,
|
206 |
+
.user-edit-php .wrap > form select#ure_select_other_roles,
|
207 |
+
.user-edit-php .wrap > form select#ure_select_other_roles + .ms-parent,
|
208 |
+
.user-new-php .wrap > form select#ure_select_other_roles,
|
209 |
+
.user-new-php .wrap > form select#ure_select_other_roles + .ms-parent {
|
210 |
+
width: 100% !important;
|
211 |
+
max-width: 500px !important;
|
212 |
+
}
|
213 |
+
|
214 |
+
.profile-php .wrap > form select#ure_select_other_roles + .ms-parent .ms-choice,
|
215 |
+
.user-edit-php .wrap > form select#ure_select_other_roles + .ms-parent .ms-choice,
|
216 |
+
.user-new-php .wrap > form select#ure_select_other_roles + .ms-parent .ms-choice {
|
217 |
+
-webkit-box-shadow: 0 0 0 transparent;
|
218 |
+
box-shadow: 0 0 0 transparent;
|
219 |
+
border-radius: 3px;
|
220 |
+
border: 1px solid #7e8993;
|
221 |
+
color: #32373c;
|
222 |
+
padding: 4px 8px;
|
223 |
+
margin: 0;
|
224 |
+
-webkit-box-sizing: border-box;
|
225 |
+
box-sizing: border-box;
|
226 |
+
font-size: 14px;
|
227 |
+
line-height: 2.1;
|
228 |
+
min-height: 30px;
|
229 |
+
background: #fff url("data:image/svg+xml;charset=US-ASCII, %3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") no-repeat right 5px top 55%;
|
230 |
+
background-size: 16px 16px;
|
231 |
+
cursor: pointer;
|
232 |
+
}
|
233 |
+
|
234 |
+
.profile-php .wrap > form select#ure_select_other_roles + .ms-parent .ms-choice > span.placeholder,
|
235 |
+
.user-edit-php .wrap > form select#ure_select_other_roles + .ms-parent .ms-choice > span.placeholder,
|
236 |
+
.user-new-php .wrap > form select#ure_select_other_roles + .ms-parent .ms-choice > span.placeholder {
|
237 |
+
color: #32373c;
|
238 |
+
}
|
239 |
+
|
240 |
+
.profile-php .wrap > form .form-table > tbody > tr > td > br:first-child,
|
241 |
+
.profile-php .wrap > form select#ure_select_other_roles + .ms-parent .ms-choice > div,
|
242 |
+
.user-edit-php .wrap > form .form-table > tbody > tr > td > br:first-child,
|
243 |
+
.user-edit-php .wrap > form select#ure_select_other_roles + .ms-parent .ms-choice > div,
|
244 |
+
.user-new-php .wrap > form .form-table > tbody > tr > td > br:first-child,
|
245 |
+
.user-new-php .wrap > form select#ure_select_other_roles + .ms-parent .ms-choice > div {
|
246 |
+
display: none;
|
247 |
+
}
|
248 |
+
|
249 |
+
.profile-php .wrap > form .yoast-settings,
|
250 |
+
.user-edit-php .wrap > form .yoast-settings,
|
251 |
+
.user-new-php .wrap > form .yoast-settings {
|
252 |
+
border: 1px solid #ccd0d4;
|
253 |
+
padding: 0;
|
254 |
+
margin-bottom: 20px;
|
255 |
+
font-size: 13px;
|
256 |
+
}
|
257 |
+
|
258 |
+
.profile-php .wrap > form .yoast-settings h2,
|
259 |
+
.user-edit-php .wrap > form .yoast-settings h2,
|
260 |
+
.user-new-php .wrap > form .yoast-settings h2 {
|
261 |
+
background: #fff;
|
262 |
+
border-bottom: 1px solid #ccd0d4;
|
263 |
+
margin: 0;
|
264 |
+
color: #23282d;
|
265 |
+
font-size: 14px;
|
266 |
+
padding: 8px 12px;
|
267 |
+
line-height: 1.4;
|
268 |
+
}
|
269 |
+
|
270 |
+
.profile-php .wrap > form .yoast-settings label,
|
271 |
+
.user-edit-php .wrap > form .yoast-settings label,
|
272 |
+
.user-new-php .wrap > form .yoast-settings label {
|
273 |
+
margin: 0;
|
274 |
+
padding: 0;
|
275 |
+
width: auto;
|
276 |
+
font-size: 13px;
|
277 |
+
color: #444;
|
278 |
+
}
|
279 |
+
|
280 |
+
.profile-php .wrap > form .yoast-settings p.description,
|
281 |
+
.user-edit-php .wrap > form .yoast-settings p.description,
|
282 |
+
.user-new-php .wrap > form .yoast-settings p.description {
|
283 |
+
font-size: 13px;
|
284 |
+
margin: 0 0 5px;
|
285 |
+
color: #666;
|
286 |
+
}
|
287 |
+
|
288 |
+
.profile-php .wrap > form .yoast-settings input,
|
289 |
+
.profile-php .wrap > form .yoast-settings textarea,
|
290 |
+
.user-edit-php .wrap > form .yoast-settings input,
|
291 |
+
.user-edit-php .wrap > form .yoast-settings textarea,
|
292 |
+
.user-new-php .wrap > form .yoast-settings input,
|
293 |
+
.user-new-php .wrap > form .yoast-settings textarea {
|
294 |
+
margin: 0;
|
295 |
+
}
|
296 |
+
|
297 |
+
.profile-php .wrap > form .yoast-settings .yoast-settings-table *,
|
298 |
+
.user-edit-php .wrap > form .yoast-settings .yoast-settings-table *,
|
299 |
+
.user-new-php .wrap > form .yoast-settings .yoast-settings-table * {
|
300 |
+
-webkit-box-sizing: border-box;
|
301 |
+
box-sizing: border-box;
|
302 |
+
}
|
303 |
+
|
304 |
+
.profile-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row,
|
305 |
+
.user-edit-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row,
|
306 |
+
.user-new-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row {
|
307 |
+
display: -webkit-box;
|
308 |
+
display: -ms-flexbox;
|
309 |
+
display: flex;
|
310 |
+
border-top: 1px solid #eee;
|
311 |
+
}
|
312 |
+
|
313 |
+
.profile-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row:first-child,
|
314 |
+
.user-edit-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row:first-child,
|
315 |
+
.user-new-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row:first-child {
|
316 |
+
border-top: 0;
|
317 |
+
}
|
318 |
+
|
319 |
+
.profile-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-label,
|
320 |
+
.user-edit-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-label,
|
321 |
+
.user-new-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-label {
|
322 |
+
-webkit-box-flex: 0;
|
323 |
+
-ms-flex: 0 0 20%;
|
324 |
+
flex: 0 0 20%;
|
325 |
+
border-right: 1px solid #e1e1e1;
|
326 |
+
background: #f9f9f9;
|
327 |
+
padding: 15px 12px;
|
328 |
+
}
|
329 |
+
|
330 |
+
.profile-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input,
|
331 |
+
.user-edit-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input,
|
332 |
+
.user-new-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input {
|
333 |
+
-webkit-box-flex: 1;
|
334 |
+
-ms-flex: 1;
|
335 |
+
flex: 1;
|
336 |
+
background: #fff;
|
337 |
+
padding: 15px 12px;
|
338 |
+
}
|
339 |
+
|
340 |
+
.profile-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input .yoast-settings__checkbox,
|
341 |
+
.user-edit-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input .yoast-settings__checkbox,
|
342 |
+
.user-new-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input .yoast-settings__checkbox {
|
343 |
+
margin-right: 5px;
|
344 |
+
}
|
345 |
+
|
346 |
+
.profile-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input .yoast-settings-spacer,
|
347 |
+
.user-edit-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input .yoast-settings-spacer,
|
348 |
+
.user-new-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input .yoast-settings-spacer {
|
349 |
+
height: 3px;
|
350 |
+
}
|
351 |
+
|
352 |
+
@media only screen and (max-width: 850px) {
|
353 |
+
.profile-php .wrap > form .yoast-settings h2,
|
354 |
+
.user-edit-php .wrap > form .yoast-settings h2,
|
355 |
+
.user-new-php .wrap > form .yoast-settings h2 {
|
356 |
+
padding: 12px;
|
357 |
+
}
|
358 |
+
|
359 |
+
.profile-php .wrap > form .yoast-settings .yoast-settings-table,
|
360 |
+
.user-edit-php .wrap > form .yoast-settings .yoast-settings-table,
|
361 |
+
.user-new-php .wrap > form .yoast-settings .yoast-settings-table {
|
362 |
+
background: #fff;
|
363 |
+
}
|
364 |
+
|
365 |
+
.profile-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row,
|
366 |
+
.user-edit-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row,
|
367 |
+
.user-new-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row {
|
368 |
+
-webkit-box-orient: vertical;
|
369 |
+
-webkit-box-direction: normal;
|
370 |
+
-ms-flex-direction: column;
|
371 |
+
flex-direction: column;
|
372 |
+
padding: 15px 12px;
|
373 |
+
}
|
374 |
+
|
375 |
+
.profile-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-label,
|
376 |
+
.user-edit-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-label,
|
377 |
+
.user-new-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-label {
|
378 |
+
-webkit-box-flex: 1;
|
379 |
+
-ms-flex: 1;
|
380 |
+
flex: 1;
|
381 |
+
border-right: 0;
|
382 |
+
background: #fff;
|
383 |
+
margin-bottom: 10px;
|
384 |
+
padding: 0;
|
385 |
+
}
|
386 |
+
|
387 |
+
.profile-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input,
|
388 |
+
.user-edit-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input,
|
389 |
+
.user-new-php .wrap > form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input {
|
390 |
+
padding: 0;
|
391 |
+
}
|
392 |
+
}
|
393 |
+
|
394 |
+
.profile-php .wrap>form .form-table[role=presentation]:first-of-type tr.user-language-wrap th[colspan="2"],
|
395 |
+
.user-edit-php .wrap>form .form-table[role=presentation]:first-of-type tr.user-language-wrap th[colspan="2"],
|
396 |
+
.user-new-php .wrap>form .form-table[role=presentation]:first-of-type tr.user-language-wrap th[colspan="2"] {
|
397 |
+
display: none;
|
398 |
+
}
|
399 |
+
|
400 |
+
.term-php .wrap > form {
|
401 |
+
margin-top: 13px;
|
402 |
+
}
|
403 |
+
|
404 |
+
.term-php .acf-column-1 > #wp-description-wrap {
|
405 |
+
display: none !important;
|
406 |
+
}
|
407 |
+
|
408 |
+
.term-php .postbox.wpseo-taxonomy-metabox-postbox > h2 {
|
409 |
+
border-bottom: 1px solid #ccd0d4;
|
410 |
+
}
|
411 |
+
|
412 |
+
.term-php tr.wpml-term-languages-wrap {
|
413 |
+
display: none;
|
414 |
+
}
|
415 |
+
|
416 |
+
.term-php #icl_tax_category_lang .inside {
|
417 |
+
padding: 10px;
|
418 |
+
clear: both;
|
419 |
+
border-top: 1px solid #ddd;
|
420 |
+
}
|
421 |
+
|
422 |
+
.edit-tags-php #col-left {
|
423 |
+
display: none;
|
424 |
+
}
|
425 |
+
|
426 |
+
.edit-tags-php #col-container #col-right {
|
427 |
+
float: none;
|
428 |
+
width: auto;
|
429 |
+
}
|
430 |
+
|
431 |
+
.edit-tags-php #col-container #col-right .col-wrap {
|
432 |
+
padding: 0;
|
433 |
+
}
|
434 |
+
|
435 |
+
.edit-tags-php #col-left.acfe-bt {
|
436 |
+
float: none;
|
437 |
+
width: 100%;
|
438 |
+
}
|
439 |
+
|
440 |
+
.edit-tags-php #col-left.acfe-bt .col-wrap {
|
441 |
+
padding: 0;
|
442 |
+
}
|
443 |
+
|
444 |
+
.edit-tags-php #col-left.acfe-bt #poststuff {
|
445 |
+
min-width: 100%;
|
446 |
+
}
|
447 |
+
|
448 |
+
.edit-tags-php #acfe-bt-form .inside .term-name-wrap {
|
449 |
+
border-top: 1px solid #ccd0d4;
|
450 |
+
}
|
451 |
+
|
452 |
+
.edit-tags-php #acfe-bt-form .submit.acf-field {
|
453 |
+
display: block !important;
|
454 |
+
margin: 0;
|
455 |
+
}
|
@@ -0,0 +1 @@
|
|
|
1 |
+
.wrap>form:not(.search-form){max-width:100%!important;width:100%;float:left}.wrap>form>div>div>h2,.wrap>form>div>div>h3,.wrap>form>h2,.wrap>form>h3{background:#fff;border:1px solid #ccd0d4;border-bottom:0;margin:0;color:#23282d;font-size:14px;padding:8px 12px;line-height:1.4}.wrap>form>div>div>h2+p,.wrap>form>div>div>h3+p,.wrap>form>h2+p,.wrap>form>h3+p{margin:0;border:1px solid #ccd0d4;border-bottom:0;padding:15px 12px}.wrap>form>div>div>h2+.form-table,.wrap>form>div>div>h2+p+.form-table,.wrap>form>div>div>h3+.form-table,.wrap>form>div>div>h3+p+.form-table,.wrap>form>h2+.form-table,.wrap>form>h2+p+.form-table,.wrap>form>h3+.form-table,.wrap>form>h3+p+.form-table{margin-top:0}.wrap>form .form-table{background:#fff;width:100%;border:1px solid #ccd0d4;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);margin-bottom:20px}.wrap>form .form-table>tbody>tr.acf-field{position:static}.wrap>form .form-table>tbody>tr.acf-tab-wrap>td{background:#f9f9f9;padding:15px 0 0}.wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group{border-bottom:0;padding:0 0 0 20%}.wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group>li.active a{background:#fff}.wrap>form .form-table>tbody>tr>td{background:#fff;border-top:1px solid #eee;position:static}.wrap>form .form-table>tbody>tr>td.td-full{padding:15px 12px}.wrap>form .form-table>tbody>tr>td p{font-size:13px}.wrap>form .form-table>tbody>tr>td.acf-label,.wrap>form .form-table>tbody>tr>th{border-top:1px solid #eee;border-right:1px solid #e1e1e1;background:#f9f9f9;padding:15px 12px;width:20%;font-size:13px;position:static;color:#444}.wrap>form .form-table>tbody>tr:first-of-type td,.wrap>form .form-table>tbody>tr:first-of-type th{border-top:1px solid #ccd0d4}.wrap>form #poststuff{min-width:auto}.wrap>form #poststuff.acfe-acfe-bt-admin-column{min-width:auto;padding:0}.wrap>form #poststuff.acfe-acfe-bt-admin-column .inside{margin:0;padding:0}.wrap>form p.submit{display:none}@media only screen and (max-width:850px){.wrap>form>div>div>h2,.wrap>form>div>div>h3,.wrap>form>h2,.wrap>form>h3{padding:12px}.wrap>form table.form-table>tbody>tr{display:block;padding:15px 12px;border-top:1px solid #eee}.wrap>form table.form-table>tbody>tr>td.acf-label,.wrap>form table.form-table>tbody>tr>th{margin-bottom:10px}.wrap>form table.form-table>tbody>tr>td,.wrap>form table.form-table>tbody>tr>td.acf-label,.wrap>form table.form-table>tbody>tr>th{padding:0;display:block;width:auto;background:none;border:0!important}.wrap>form table.form-table>tbody>tr:first-child{border-top:0}}.wrap .form-table>tbody>.acf-field>.acf-label label{font-size:13px;color:#444}.wrap .acf-fields.-left>.acf-field{padding-left:0}.wrap .acf-fields.-left>.acf-field.acfe-bt-no-label{padding-left:20%}@media only screen and (max-width:640px){.wrap .acf-fields.-left>.acf-field.acfe-bt-no-label{padding-left:0}}.wrap .acf-fields.-left>.acf-field:before{width:20%}.wrap .acf-fields.-left>.acf-field>.acf-label{width:20%;margin-left:0;padding:0 12px}.wrap .acf-fields.-left>.acf-field>.acf-input{padding:0 12px}.wrap .postbox .hndle{cursor:auto;-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.wrap .postbox .handle-actions{display:none}.profile-php .wrap#profile-page .form-table textarea,.user-edit-php .wrap#profile-page .form-table textarea,.user-new-php .wrap#profile-page .form-table textarea{width:100%;max-width:500px}.profile-php .wrap>form select#ure_select_other_roles,.profile-php .wrap>form select#ure_select_other_roles+.ms-parent,.user-edit-php .wrap>form select#ure_select_other_roles,.user-edit-php .wrap>form select#ure_select_other_roles+.ms-parent,.user-new-php .wrap>form select#ure_select_other_roles,.user-new-php .wrap>form select#ure_select_other_roles+.ms-parent{width:100%!important;max-width:500px!important}.profile-php .wrap>form select#ure_select_other_roles+.ms-parent .ms-choice,.user-edit-php .wrap>form select#ure_select_other_roles+.ms-parent .ms-choice,.user-new-php .wrap>form select#ure_select_other_roles+.ms-parent .ms-choice{-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;border-radius:3px;border:1px solid #7e8993;color:#32373c;padding:4px 8px;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px;line-height:2.1;min-height:30px;background:#fff url("data:image/svg+xml;charset=US-ASCII, %3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") no-repeat right 5px top 55%;background-size:16px 16px;cursor:pointer}.profile-php .wrap>form select#ure_select_other_roles+.ms-parent .ms-choice>span.placeholder,.user-edit-php .wrap>form select#ure_select_other_roles+.ms-parent .ms-choice>span.placeholder,.user-new-php .wrap>form select#ure_select_other_roles+.ms-parent .ms-choice>span.placeholder{color:#32373c}.profile-php .wrap>form .form-table>tbody>tr>td>br:first-child,.profile-php .wrap>form select#ure_select_other_roles+.ms-parent .ms-choice>div,.user-edit-php .wrap>form .form-table>tbody>tr>td>br:first-child,.user-edit-php .wrap>form select#ure_select_other_roles+.ms-parent .ms-choice>div,.user-new-php .wrap>form .form-table>tbody>tr>td>br:first-child,.user-new-php .wrap>form select#ure_select_other_roles+.ms-parent .ms-choice>div{display:none}.profile-php .wrap>form .yoast-settings,.user-edit-php .wrap>form .yoast-settings,.user-new-php .wrap>form .yoast-settings{border:1px solid #ccd0d4;padding:0;margin-bottom:20px;font-size:13px}.profile-php .wrap>form .yoast-settings h2,.user-edit-php .wrap>form .yoast-settings h2,.user-new-php .wrap>form .yoast-settings h2{background:#fff;border-bottom:1px solid #ccd0d4;margin:0;color:#23282d;font-size:14px;padding:8px 12px;line-height:1.4}.profile-php .wrap>form .yoast-settings label,.user-edit-php .wrap>form .yoast-settings label,.user-new-php .wrap>form .yoast-settings label{margin:0;padding:0;width:auto;font-size:13px;color:#444}.profile-php .wrap>form .yoast-settings p.description,.user-edit-php .wrap>form .yoast-settings p.description,.user-new-php .wrap>form .yoast-settings p.description{font-size:13px;margin:0 0 5px;color:#666}.profile-php .wrap>form .yoast-settings input,.profile-php .wrap>form .yoast-settings textarea,.user-edit-php .wrap>form .yoast-settings input,.user-edit-php .wrap>form .yoast-settings textarea,.user-new-php .wrap>form .yoast-settings input,.user-new-php .wrap>form .yoast-settings textarea{margin:0}.profile-php .wrap>form .yoast-settings .yoast-settings-table *,.user-edit-php .wrap>form .yoast-settings .yoast-settings-table *,.user-new-php .wrap>form .yoast-settings .yoast-settings-table *{-webkit-box-sizing:border-box;box-sizing:border-box}.profile-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row,.user-edit-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row,.user-new-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row{display:-webkit-box;display:-ms-flexbox;display:flex;border-top:1px solid #eee}.profile-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row:first-child,.user-edit-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row:first-child,.user-new-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row:first-child{border-top:0}.profile-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-label,.user-edit-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-label,.user-new-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-label{-webkit-box-flex:0;-ms-flex:0 0 20%;flex:0 0 20%;border-right:1px solid #e1e1e1;background:#f9f9f9;padding:15px 12px}.profile-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input,.user-edit-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input,.user-new-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input{-webkit-box-flex:1;-ms-flex:1;flex:1;background:#fff;padding:15px 12px}.profile-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input .yoast-settings__checkbox,.user-edit-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input .yoast-settings__checkbox,.user-new-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input .yoast-settings__checkbox{margin-right:5px}.profile-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input .yoast-settings-spacer,.user-edit-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input .yoast-settings-spacer,.user-new-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input .yoast-settings-spacer{height:3px}@media only screen and (max-width:850px){.profile-php .wrap>form .yoast-settings h2,.user-edit-php .wrap>form .yoast-settings h2,.user-new-php .wrap>form .yoast-settings h2{padding:12px}.profile-php .wrap>form .yoast-settings .yoast-settings-table,.user-edit-php .wrap>form .yoast-settings .yoast-settings-table,.user-new-php .wrap>form .yoast-settings .yoast-settings-table{background:#fff}.profile-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row,.user-edit-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row,.user-new-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:15px 12px}.profile-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-label,.user-edit-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-label,.user-new-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-label{-webkit-box-flex:1;-ms-flex:1;flex:1;border-right:0;background:#fff;margin-bottom:10px;padding:0}.profile-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input,.user-edit-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input,.user-new-php .wrap>form .yoast-settings .yoast-settings-table .yoast-settings-row .yoast-settings-input{padding:0}}.profile-php .wrap>form .form-table[role=presentation]:first-of-type tr.user-language-wrap th[colspan="2"],.user-edit-php .wrap>form .form-table[role=presentation]:first-of-type tr.user-language-wrap th[colspan="2"],.user-new-php .wrap>form .form-table[role=presentation]:first-of-type tr.user-language-wrap th[colspan="2"]{display:none}.term-php .wrap>form{margin-top:13px}.term-php .acf-column-1>#wp-description-wrap{display:none!important}.term-php .postbox.wpseo-taxonomy-metabox-postbox>h2{border-bottom:1px solid #ccd0d4}.term-php tr.wpml-term-languages-wrap{display:none}.term-php #icl_tax_category_lang .inside{padding:10px;clear:both;border-top:1px solid #ddd}.edit-tags-php #col-left{display:none}.edit-tags-php #col-container #col-right{float:none;width:auto}.edit-tags-php #col-container #col-right .col-wrap{padding:0}.edit-tags-php #col-left.acfe-bt{float:none;width:100%}.edit-tags-php #col-left.acfe-bt .col-wrap{padding:0}.edit-tags-php #col-left.acfe-bt #poststuff{min-width:100%}.edit-tags-php #acfe-bt-form .inside .term-name-wrap{border-top:1px solid #ccd0d4}.edit-tags-php #acfe-bt-form .submit.acf-field{display:block!important;margin:0}
|
@@ -0,0 +1,578 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
body.acfe-modal-opened {
|
2 |
+
overflow: hidden;
|
3 |
+
}
|
4 |
+
|
5 |
+
.acfe-modal-overlay {
|
6 |
+
background: rgba(0, 0, 0, .7);
|
7 |
+
position: fixed;
|
8 |
+
top: 0;
|
9 |
+
left: 0;
|
10 |
+
right: 0;
|
11 |
+
bottom: 0;
|
12 |
+
height: 100%;
|
13 |
+
width: 100%;
|
14 |
+
z-index: 100000;
|
15 |
+
}
|
16 |
+
|
17 |
+
.acfe-modal {
|
18 |
+
display: none;
|
19 |
+
-webkit-transition: all .3s ease-in-out;
|
20 |
+
-o-transition: all .3s ease-in-out;
|
21 |
+
transition: all .3s ease-in-out;
|
22 |
+
}
|
23 |
+
|
24 |
+
.acfe-modal.-open {
|
25 |
+
position: fixed;
|
26 |
+
z-index: 100001;
|
27 |
+
height: 100%;
|
28 |
+
width: 100%;
|
29 |
+
top: 0;
|
30 |
+
left: 0;
|
31 |
+
bottom: 0;
|
32 |
+
right: 0;
|
33 |
+
-webkit-font-smoothing: subpixel-antialiased;
|
34 |
+
-webkit-box-pack: center;
|
35 |
+
-ms-flex-pack: center;
|
36 |
+
justify-content: center;
|
37 |
+
-webkit-box-align: center;
|
38 |
+
-ms-flex-align: center;
|
39 |
+
align-items: center;
|
40 |
+
pointer-events: none;
|
41 |
+
}
|
42 |
+
|
43 |
+
.acfe-modal.-open,
|
44 |
+
.acfe-modal.-open > .acfe-modal-wrapper {
|
45 |
+
display: -webkit-box;
|
46 |
+
display: -ms-flexbox;
|
47 |
+
display: flex;
|
48 |
+
-webkit-box-orient: vertical;
|
49 |
+
-webkit-box-direction: normal;
|
50 |
+
-ms-flex-direction: column;
|
51 |
+
flex-direction: column;
|
52 |
+
}
|
53 |
+
|
54 |
+
.acfe-modal.-open > .acfe-modal-wrapper {
|
55 |
+
-webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .7);
|
56 |
+
box-shadow: 0 5px 15px rgba(0, 0, 0, .7);
|
57 |
+
width: calc(100vw - 60px);
|
58 |
+
max-width: 1100px;
|
59 |
+
max-height: calc(100vh - 60px);
|
60 |
+
position: relative;
|
61 |
+
}
|
62 |
+
|
63 |
+
.acfe-modal.-open.acfe-modal-sub > .acfe-modal-wrapper > .acfe-modal-wrapper-overlay {
|
64 |
+
position: absolute;
|
65 |
+
z-index: 10;
|
66 |
+
background: rgba(0, 0, 0, .7);
|
67 |
+
height: 100%;
|
68 |
+
width: 100%;
|
69 |
+
pointer-events: none;
|
70 |
+
}
|
71 |
+
|
72 |
+
.acfe-modal.-open.-small > .acfe-modal-wrapper {
|
73 |
+
max-width: 450px;
|
74 |
+
}
|
75 |
+
|
76 |
+
.acfe-modal.-open.-medium > .acfe-modal-wrapper {
|
77 |
+
max-width: 700px;
|
78 |
+
}
|
79 |
+
|
80 |
+
.acfe-modal.-open.-large > .acfe-modal-wrapper {
|
81 |
+
max-width: 1100px;
|
82 |
+
}
|
83 |
+
|
84 |
+
.acfe-modal.-open.-xlarge > .acfe-modal-wrapper {
|
85 |
+
max-width: 1400px;
|
86 |
+
}
|
87 |
+
|
88 |
+
.acfe-modal.-open.-full > .acfe-modal-wrapper {
|
89 |
+
max-width: 100%;
|
90 |
+
-webkit-box-flex: 1;
|
91 |
+
-ms-flex: 1;
|
92 |
+
flex: 1;
|
93 |
+
}
|
94 |
+
|
95 |
+
.acfe-modal.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields.-left {
|
96 |
+
height: 100%;
|
97 |
+
}
|
98 |
+
|
99 |
+
.acfe-modal.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields.-left:before {
|
100 |
+
content: "";
|
101 |
+
display: block;
|
102 |
+
position: absolute;
|
103 |
+
z-index: 0;
|
104 |
+
background: #f9f9f9;
|
105 |
+
border: solid #e1e1e1;
|
106 |
+
border-width: 0 1px 0 0;
|
107 |
+
top: 0;
|
108 |
+
bottom: 0;
|
109 |
+
left: 0;
|
110 |
+
width: 20%;
|
111 |
+
}
|
112 |
+
|
113 |
+
.acfe-modal.-settings.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields,
|
114 |
+
.acfe-modal.-settings.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields > .acf-field-clone,
|
115 |
+
.acfe-modal.-settings.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields > .acf-field-clone > .acf-input,
|
116 |
+
.acfe-modal.-settings.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields > .acf-field-clone > .acf-input > .acf-clone-fields.acf-fields.-left {
|
117 |
+
height: 100%;
|
118 |
+
}
|
119 |
+
|
120 |
+
.acfe-modal.-settings.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields > .acf-field-clone {
|
121 |
+
padding: 0;
|
122 |
+
}
|
123 |
+
|
124 |
+
.acfe-modal.-settings.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields > .acf-field-clone > .acf-input {
|
125 |
+
margin: 0;
|
126 |
+
}
|
127 |
+
|
128 |
+
.acfe-modal.-settings.-open.-full > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields > .acf-field-clone > .acf-input > .acf-clone-fields.acf-fields.-left:before {
|
129 |
+
content: "";
|
130 |
+
display: block;
|
131 |
+
position: absolute;
|
132 |
+
z-index: 0;
|
133 |
+
background: #f9f9f9;
|
134 |
+
border: solid #e1e1e1;
|
135 |
+
border-width: 0 1px 0 0;
|
136 |
+
top: 0;
|
137 |
+
bottom: 0;
|
138 |
+
left: 0;
|
139 |
+
width: 20%;
|
140 |
+
}
|
141 |
+
|
142 |
+
.acfe-modal.-open .acfe-modal-title *,
|
143 |
+
.acfe-modal.-open > .acfe-modal-title {
|
144 |
+
-webkit-box-sizing: border-box;
|
145 |
+
box-sizing: border-box;
|
146 |
+
}
|
147 |
+
|
148 |
+
.acfe-modal.-open .acfe-modal-title {
|
149 |
+
display: block;
|
150 |
+
height: 50px;
|
151 |
+
line-height: 50px;
|
152 |
+
font-size: 22px;
|
153 |
+
color: #23282d;
|
154 |
+
border-bottom: 1px solid #ddd;
|
155 |
+
-o-text-overflow: ellipsis;
|
156 |
+
text-overflow: ellipsis;
|
157 |
+
background: #fcfcfc;
|
158 |
+
padding: 0 0 0 16px;
|
159 |
+
position: relative;
|
160 |
+
text-align: left;
|
161 |
+
pointer-events: auto;
|
162 |
+
}
|
163 |
+
|
164 |
+
.acfe-modal.-open.acfe-modal-sub > .acfe-modal-wrapper > .acfe-modal-title {
|
165 |
+
pointer-events: none;
|
166 |
+
}
|
167 |
+
|
168 |
+
.acfe-modal.-open .acfe-modal-title > span.title {
|
169 |
+
line-height: 50px;
|
170 |
+
color: #23282d;
|
171 |
+
font-weight: 600;
|
172 |
+
}
|
173 |
+
|
174 |
+
.acfe-modal.-open .acfe-modal-title > span.title .acf-fc-layout-order {
|
175 |
+
width: 30px;
|
176 |
+
height: 30px;
|
177 |
+
border-radius: 30px;
|
178 |
+
display: inline-block;
|
179 |
+
text-align: center;
|
180 |
+
line-height: 30px;
|
181 |
+
margin: 0 2px 0 0;
|
182 |
+
background: #f1f1f1;
|
183 |
+
font-size: 14px;
|
184 |
+
color: #666;
|
185 |
+
vertical-align: 2px;
|
186 |
+
}
|
187 |
+
|
188 |
+
.acfe-modal.-open .acfe-modal-title > button.close {
|
189 |
+
height: 50px;
|
190 |
+
width: 50px;
|
191 |
+
color: #666;
|
192 |
+
border: 0;
|
193 |
+
border-left: 0;
|
194 |
+
margin: 0;
|
195 |
+
padding: 0;
|
196 |
+
border-radius: 0;
|
197 |
+
position: absolute;
|
198 |
+
top: 0;
|
199 |
+
right: 0;
|
200 |
+
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
201 |
+
-o-transition: color .1s ease-in-out, background .1s ease-in-out;
|
202 |
+
transition: color .1s ease-in-out, background .1s ease-in-out;
|
203 |
+
background: none;
|
204 |
+
cursor: pointer;
|
205 |
+
}
|
206 |
+
|
207 |
+
.acfe-modal.-open .acfe-modal-title > button.close:hover {
|
208 |
+
color: #00a0d2;
|
209 |
+
}
|
210 |
+
|
211 |
+
.acfe-modal.-open .acfe-modal-title > button.close:before {
|
212 |
+
height: 50px;
|
213 |
+
width: 50px;
|
214 |
+
line-height: 50px !important;
|
215 |
+
font: normal 20px/1 dashicons;
|
216 |
+
content: "\f158";
|
217 |
+
margin: 0;
|
218 |
+
padding: 0;
|
219 |
+
}
|
220 |
+
|
221 |
+
.acfe-modal.-open .acfe-modal-content {
|
222 |
+
height: 100%;
|
223 |
+
background: #fff;
|
224 |
+
display: block;
|
225 |
+
position: relative;
|
226 |
+
pointer-events: auto;
|
227 |
+
overflow: auto;
|
228 |
+
}
|
229 |
+
|
230 |
+
.acfe-modal.-open.-iframe .acfe-modal-content {
|
231 |
+
overflow: hidden;
|
232 |
+
}
|
233 |
+
|
234 |
+
.acfe-modal.-open.acfe-modal-sub > .acfe-modal-wrapper > .acfe-modal-content {
|
235 |
+
pointer-events: none;
|
236 |
+
}
|
237 |
+
|
238 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper {
|
239 |
+
padding: 0;
|
240 |
+
margin: 0;
|
241 |
+
border-bottom: 1px solid #ddd;
|
242 |
+
}
|
243 |
+
|
244 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a {
|
245 |
+
margin: 0;
|
246 |
+
border-left: 0;
|
247 |
+
border-top: 0;
|
248 |
+
border-bottom: 0;
|
249 |
+
background: #fff;
|
250 |
+
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
251 |
+
-o-transition: color .1s ease-in-out, background .1s ease-in-out;
|
252 |
+
transition: color .1s ease-in-out, background .1s ease-in-out;
|
253 |
+
padding: 7px 15px;
|
254 |
+
border-color: #ddd;
|
255 |
+
}
|
256 |
+
|
257 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a span.dashicons-menu {
|
258 |
+
line-height: 27px;
|
259 |
+
}
|
260 |
+
|
261 |
+
.acfe-modal.-open > .acfe-modal-content .nav-tab-wrapper a:hover {
|
262 |
+
background: #f9f9f9;
|
263 |
+
color: #23282d;
|
264 |
+
}
|
265 |
+
|
266 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a.nav-tab-active,
|
267 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a.nav-tab-active:hover {
|
268 |
+
background: #fcfcfc;
|
269 |
+
color: #23282d;
|
270 |
+
}
|
271 |
+
|
272 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab:focus,
|
273 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab:focus:active {
|
274 |
+
border-bottom: 0;
|
275 |
+
-webkit-box-shadow: none;
|
276 |
+
box-shadow: none;
|
277 |
+
outline: 0;
|
278 |
+
}
|
279 |
+
|
280 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container,
|
281 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container * {
|
282 |
+
-webkit-box-sizing: border-box;
|
283 |
+
box-sizing: border-box;
|
284 |
+
}
|
285 |
+
|
286 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container {
|
287 |
+
width: 100%;
|
288 |
+
padding: 14px;
|
289 |
+
margin-right: auto;
|
290 |
+
margin-left: auto;
|
291 |
+
}
|
292 |
+
|
293 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flexible-categories ~ .acfe-flex-container {
|
294 |
+
overflow: auto;
|
295 |
+
height: calc(100% - 39px);
|
296 |
+
}
|
297 |
+
|
298 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul {
|
299 |
+
margin: 0 -7px;
|
300 |
+
display: -webkit-box;
|
301 |
+
display: -ms-flexbox;
|
302 |
+
display: flex;
|
303 |
+
-ms-flex-wrap: wrap;
|
304 |
+
flex-wrap: wrap;
|
305 |
+
}
|
306 |
+
|
307 |
+
.acfe-modal.-open > .acfe-modal-content .acfe-flex-container ul:after {
|
308 |
+
content: "";
|
309 |
+
clear: both;
|
310 |
+
display: table;
|
311 |
+
}
|
312 |
+
|
313 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li {
|
314 |
+
position: relative;
|
315 |
+
width: 100%;
|
316 |
+
padding-right: 7px;
|
317 |
+
padding-left: 7px;
|
318 |
+
padding-bottom: 14px;
|
319 |
+
margin: 0;
|
320 |
+
-webkit-box-flex: 0;
|
321 |
+
-ms-flex: 0 0 25%;
|
322 |
+
flex: 0 0 25%;
|
323 |
+
max-width: 25%;
|
324 |
+
}
|
325 |
+
|
326 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a {
|
327 |
+
border: 1px solid #ddd;
|
328 |
+
background: #f9f9f9;
|
329 |
+
padding: 15px;
|
330 |
+
color: #333;
|
331 |
+
display: block;
|
332 |
+
text-decoration: none;
|
333 |
+
height: 100%;
|
334 |
+
}
|
335 |
+
|
336 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-flex-thumbnails ul li a {
|
337 |
+
text-align: center;
|
338 |
+
}
|
339 |
+
|
340 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover {
|
341 |
+
background: #007cba;
|
342 |
+
color: #fff;
|
343 |
+
}
|
344 |
+
|
345 |
+
body:not(.acf-admin-5-3) .acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover {
|
346 |
+
background: #0073aa;
|
347 |
+
}
|
348 |
+
|
349 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span {
|
350 |
+
display: inline-block;
|
351 |
+
font-size: 16px;
|
352 |
+
font-weight: 600;
|
353 |
+
}
|
354 |
+
|
355 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span.badge.acf-js-tooltip {
|
356 |
+
color: #999;
|
357 |
+
font-weight: 400;
|
358 |
+
margin-left: 2px;
|
359 |
+
line-height: 1.2;
|
360 |
+
font-size: 0;
|
361 |
+
}
|
362 |
+
|
363 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span.badge.acf-js-tooltip:before {
|
364 |
+
font-size: 16px;
|
365 |
+
}
|
366 |
+
|
367 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover span.badge.acf-js-tooltip {
|
368 |
+
color: #fff;
|
369 |
+
}
|
370 |
+
|
371 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled {
|
372 |
+
pointer-events: none;
|
373 |
+
opacity: .67;
|
374 |
+
}
|
375 |
+
|
376 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled:hover {
|
377 |
+
cursor: default;
|
378 |
+
}
|
379 |
+
|
380 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled:focus {
|
381 |
+
-webkit-box-shadow: none;
|
382 |
+
box-shadow: none;
|
383 |
+
outline: none;
|
384 |
+
}
|
385 |
+
|
386 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li {
|
387 |
+
-webkit-box-flex: 0;
|
388 |
+
-ms-flex: 0 0 100%;
|
389 |
+
flex: 0 0 100%;
|
390 |
+
max-width: 100%;
|
391 |
+
}
|
392 |
+
|
393 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-2 ul li {
|
394 |
+
-webkit-box-flex: 0;
|
395 |
+
-ms-flex: 0 0 50%;
|
396 |
+
flex: 0 0 50%;
|
397 |
+
max-width: 50%;
|
398 |
+
}
|
399 |
+
|
400 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-3 ul li {
|
401 |
+
-webkit-box-flex: 0;
|
402 |
+
-ms-flex: 0 0 33.333333%;
|
403 |
+
flex: 0 0 33.333333%;
|
404 |
+
max-width: 33.333333%;
|
405 |
+
}
|
406 |
+
|
407 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-4 ul li {
|
408 |
+
-webkit-box-flex: 0;
|
409 |
+
-ms-flex: 0 0 25%;
|
410 |
+
flex: 0 0 25%;
|
411 |
+
max-width: 25%;
|
412 |
+
}
|
413 |
+
|
414 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-5 ul li {
|
415 |
+
-webkit-box-flex: 0;
|
416 |
+
-ms-flex: 0 0 20%;
|
417 |
+
flex: 0 0 20%;
|
418 |
+
max-width: 20%;
|
419 |
+
}
|
420 |
+
|
421 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-6 ul li {
|
422 |
+
-webkit-box-flex: 0;
|
423 |
+
-ms-flex: 0 0 16.66%;
|
424 |
+
flex: 0 0 16.66%;
|
425 |
+
max-width: 16.66%;
|
426 |
+
}
|
427 |
+
|
428 |
+
@media only screen and (max-width: 960px) {
|
429 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li {
|
430 |
+
-webkit-box-flex: 0 !important;
|
431 |
+
-ms-flex: 0 0 50% !important;
|
432 |
+
flex: 0 0 50% !important;
|
433 |
+
max-width: 50% !important;
|
434 |
+
}
|
435 |
+
|
436 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li {
|
437 |
+
-webkit-box-flex: 0 !important;
|
438 |
+
-ms-flex: 0 0 100% !important;
|
439 |
+
flex: 0 0 100% !important;
|
440 |
+
max-width: 100% !important;
|
441 |
+
}
|
442 |
+
|
443 |
+
.acfe-modal.-open .acfe-modal-content ul li a {
|
444 |
+
padding: 7px;
|
445 |
+
}
|
446 |
+
}
|
447 |
+
|
448 |
+
@media only screen and (max-width: 720px) {
|
449 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li,
|
450 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li {
|
451 |
+
-webkit-box-flex: 0 !important;
|
452 |
+
-ms-flex: 0 0 100% !important;
|
453 |
+
flex: 0 0 100% !important;
|
454 |
+
max-width: 100% !important;
|
455 |
+
}
|
456 |
+
}
|
457 |
+
|
458 |
+
.acfe-modal.-open .acfe-modal-footer,
|
459 |
+
.acfe-modal.-open .acfe-modal-footer * {
|
460 |
+
-webkit-box-sizing: border-box;
|
461 |
+
box-sizing: border-box;
|
462 |
+
}
|
463 |
+
|
464 |
+
.acfe-modal.-open .acfe-modal-footer {
|
465 |
+
display: block;
|
466 |
+
height: 50px;
|
467 |
+
line-height: 50px;
|
468 |
+
color: #23282d;
|
469 |
+
background: #fcfcfc;
|
470 |
+
padding: 0 16px;
|
471 |
+
position: relative;
|
472 |
+
text-align: right;
|
473 |
+
border-top: 1px solid #ddd;
|
474 |
+
pointer-events: auto;
|
475 |
+
}
|
476 |
+
|
477 |
+
.acfe-modal.-open.acfe-modal-sub > .acfe-modal-wrapper > .acfe-modal-footer {
|
478 |
+
pointer-events: none;
|
479 |
+
}
|
480 |
+
|
481 |
+
.acfe-modal.-open .acfe-modal-footer > button {
|
482 |
+
vertical-align: baseline;
|
483 |
+
}
|
484 |
+
|
485 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open {
|
486 |
+
-webkit-box-pack: start;
|
487 |
+
-ms-flex-pack: start;
|
488 |
+
justify-content: start;
|
489 |
+
-webkit-box-align: start;
|
490 |
+
-ms-flex-align: start;
|
491 |
+
align-items: start;
|
492 |
+
}
|
493 |
+
|
494 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper {
|
495 |
+
margin-top: 88px;
|
496 |
+
height: 100%;
|
497 |
+
width: 100%;
|
498 |
+
max-height: calc(100vh - 88px);
|
499 |
+
}
|
500 |
+
|
501 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields.-left {
|
502 |
+
height: 100%;
|
503 |
+
}
|
504 |
+
|
505 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper > .acfe-modal-content > .acf-fields.-left:before {
|
506 |
+
content: "";
|
507 |
+
display: block;
|
508 |
+
position: absolute;
|
509 |
+
z-index: 0;
|
510 |
+
background: #f9f9f9;
|
511 |
+
border: solid #e1e1e1;
|
512 |
+
border-width: 0 1px 0 0;
|
513 |
+
top: 0;
|
514 |
+
bottom: 0;
|
515 |
+
left: 0;
|
516 |
+
width: 20%;
|
517 |
+
}
|
518 |
+
|
519 |
+
@media only screen and (max-width: 1080px) {
|
520 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper {
|
521 |
+
margin-top: 88px;
|
522 |
+
}
|
523 |
+
}
|
524 |
+
|
525 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper {
|
526 |
+
max-width: calc(100vw - 160px);
|
527 |
+
margin-left: 160px;
|
528 |
+
}
|
529 |
+
|
530 |
+
body.block-editor-page .edit-post-layout.is-sidebar-opened .acfe-modal.-open > .acfe-modal-wrapper {
|
531 |
+
max-width: calc(100vw - 440px);
|
532 |
+
}
|
533 |
+
|
534 |
+
body.block-editor-page.folded .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper {
|
535 |
+
max-width: calc(100vw - 36px);
|
536 |
+
margin-left: 36px;
|
537 |
+
}
|
538 |
+
|
539 |
+
@media only screen and (max-width: 960px) {
|
540 |
+
body.block-editor-page.auto-fold .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper {
|
541 |
+
max-width: calc(100vw - 36px);
|
542 |
+
margin-left: 36px;
|
543 |
+
}
|
544 |
+
}
|
545 |
+
|
546 |
+
@media only screen and (max-width: 782px) {
|
547 |
+
body.block-editor-page.auto-fold .edit-post-layout .acfe-modal.-open > .acfe-modal-wrapper {
|
548 |
+
max-width: 100vw;
|
549 |
+
margin-left: 0;
|
550 |
+
margin-top: 100px;
|
551 |
+
}
|
552 |
+
}
|
553 |
+
|
554 |
+
body.block-editor-page.folded .edit-post-layout.is-sidebar-opened .acfe-modal.-open > .acfe-modal-wrapper {
|
555 |
+
max-width: calc(100vw - 316px);
|
556 |
+
}
|
557 |
+
|
558 |
+
@media (min-width: 600px) {
|
559 |
+
body.block-editor-page.acfe-modal-opened .edit-post-layout__content {
|
560 |
+
overflow-y: hidden;
|
561 |
+
}
|
562 |
+
}
|
563 |
+
|
564 |
+
body.block-editor-page .acfe-modal-overlay {
|
565 |
+
display: none;
|
566 |
+
}
|
567 |
+
|
568 |
+
body.wp-admin.upload-php.acfe-modal-opened>div:not([style*="display: none;"])>.media-modal.wp-core-ui:not(.acf-media-modal):before {
|
569 |
+
content: "";
|
570 |
+
display: block;
|
571 |
+
position: absolute;
|
572 |
+
background: rgba(0, 0, 0, .7);
|
573 |
+
top: 0;
|
574 |
+
left: 0;
|
575 |
+
width: 100%;
|
576 |
+
height: 100%;
|
577 |
+
z-index: 10000;
|
578 |
+
}
|
@@ -0,0 +1 @@
|
|
|
1 |
+
body.acfe-modal-opened{overflow:hidden}.acfe-modal-overlay{background:rgba(0,0,0,.7);position:fixed;top:0;left:0;right:0;bottom:0;height:100%;width:100%;z-index:100000}.acfe-modal{display:none;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.acfe-modal.-open{position:fixed;z-index:100001;height:100%;width:100%;top:0;left:0;bottom:0;right:0;-webkit-font-smoothing:subpixel-antialiased;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;pointer-events:none}.acfe-modal.-open,.acfe-modal.-open>.acfe-modal-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.acfe-modal.-open>.acfe-modal-wrapper{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.7);box-shadow:0 5px 15px rgba(0,0,0,.7);width:calc(100vw - 60px);max-width:1100px;max-height:calc(100vh - 60px);position:relative}.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-wrapper-overlay{position:absolute;z-index:10;background:rgba(0,0,0,.7);height:100%;width:100%;pointer-events:none}.acfe-modal.-open.-small>.acfe-modal-wrapper{max-width:450px}.acfe-modal.-open.-medium>.acfe-modal-wrapper{max-width:700px}.acfe-modal.-open.-large>.acfe-modal-wrapper{max-width:1100px}.acfe-modal.-open.-xlarge>.acfe-modal-wrapper{max-width:1400px}.acfe-modal.-open.-full>.acfe-modal-wrapper{max-width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left{height:100%}.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left:before{content:"";display:block;position:absolute;z-index:0;background:#f9f9f9;border:solid #e1e1e1;border-width:0 1px 0 0;top:0;bottom:0;left:0;width:20%}.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone,.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input,.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input>.acf-clone-fields.acf-fields.-left{height:100%}.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone{padding:0}.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input{margin:0}.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input>.acf-clone-fields.acf-fields.-left:before{content:"";display:block;position:absolute;z-index:0;background:#f9f9f9;border:solid #e1e1e1;border-width:0 1px 0 0;top:0;bottom:0;left:0;width:20%}.acfe-modal.-open .acfe-modal-title *,.acfe-modal.-open>.acfe-modal-title{-webkit-box-sizing:border-box;box-sizing:border-box}.acfe-modal.-open .acfe-modal-title{display:block;height:50px;line-height:50px;font-size:22px;color:#23282d;border-bottom:1px solid #ddd;-o-text-overflow:ellipsis;text-overflow:ellipsis;background:#fcfcfc;padding:0 0 0 16px;position:relative;text-align:left;pointer-events:auto}.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-title{pointer-events:none}.acfe-modal.-open .acfe-modal-title>span.title{line-height:50px;color:#23282d;font-weight:600}.acfe-modal.-open .acfe-modal-title>span.title .acf-fc-layout-order{width:30px;height:30px;border-radius:30px;display:inline-block;text-align:center;line-height:30px;margin:0 2px 0 0;background:#f1f1f1;font-size:14px;color:#666;vertical-align:2px}.acfe-modal.-open .acfe-modal-title>button.close{height:50px;width:50px;color:#666;border:0;border-left:0;margin:0;padding:0;border-radius:0;position:absolute;top:0;right:0;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;-o-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out;background:none;cursor:pointer}.acfe-modal.-open .acfe-modal-title>button.close:hover{color:#00a0d2}.acfe-modal.-open .acfe-modal-title>button.close:before{height:50px;width:50px;line-height:50px!important;font:normal 20px/1 dashicons;content:"\f158";margin:0;padding:0}.acfe-modal.-open .acfe-modal-content{height:100%;background:#fff;display:block;position:relative;pointer-events:auto;overflow:auto}.acfe-modal.-open.-iframe .acfe-modal-content{overflow:hidden}.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-content{pointer-events:none}.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper{padding:0;margin:0;border-bottom:1px solid #ddd}.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a{margin:0;border-left:0;border-top:0;border-bottom:0;background:#fff;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;-o-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out;padding:7px 15px;border-color:#ddd}.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a span.dashicons-menu{line-height:27px}.acfe-modal.-open>.acfe-modal-content .nav-tab-wrapper a:hover{background:#f9f9f9;color:#23282d}.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a.nav-tab-active,.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a.nav-tab-active:hover{background:#fcfcfc;color:#23282d}.acfe-modal.-open .acfe-modal-content .nav-tab:focus,.acfe-modal.-open .acfe-modal-content .nav-tab:focus:active{border-bottom:0;-webkit-box-shadow:none;box-shadow:none;outline:0}.acfe-modal.-open .acfe-modal-content .acfe-flex-container,.acfe-modal.-open .acfe-modal-content .acfe-flex-container *{-webkit-box-sizing:border-box;box-sizing:border-box}.acfe-modal.-open .acfe-modal-content .acfe-flex-container{width:100%;padding:14px;margin-right:auto;margin-left:auto}.acfe-modal.-open .acfe-modal-content .acfe-flexible-categories~.acfe-flex-container{overflow:auto;height:calc(100% - 39px)}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul{margin:0 -7px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.acfe-modal.-open>.acfe-modal-content .acfe-flex-container ul:after{content:"";clear:both;display:table}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li{position:relative;width:100%;padding-right:7px;padding-left:7px;padding-bottom:14px;margin:0;-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a{border:1px solid #ddd;background:#f9f9f9;padding:15px;color:#333;display:block;text-decoration:none;height:100%}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-flex-thumbnails ul li a{text-align:center}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover{background:#007cba;color:#fff}body:not(.acf-admin-5-3) .acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover{background:#0073aa}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span{display:inline-block;font-size:16px;font-weight:600}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span.badge.acf-js-tooltip{color:#999;font-weight:400;margin-left:2px;line-height:1.2;font-size:0}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span.badge.acf-js-tooltip:before{font-size:16px}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover span.badge.acf-js-tooltip{color:#fff}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled{pointer-events:none;opacity:.67}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled:hover{cursor:default}.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled:focus{-webkit-box-shadow:none;box-shadow:none;outline:none}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-2 ul li{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-3 ul li{-webkit-box-flex:0;-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-4 ul li{-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-5 ul li{-webkit-box-flex:0;-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-6 ul li{-webkit-box-flex:0;-ms-flex:0 0 16.66%;flex:0 0 16.66%;max-width:16.66%}@media only screen and (max-width:960px){.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li{-webkit-box-flex:0!important;-ms-flex:0 0 50%!important;flex:0 0 50%!important;max-width:50%!important}.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li{-webkit-box-flex:0!important;-ms-flex:0 0 100%!important;flex:0 0 100%!important;max-width:100%!important}.acfe-modal.-open .acfe-modal-content ul li a{padding:7px}}@media only screen and (max-width:720px){.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li,.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li{-webkit-box-flex:0!important;-ms-flex:0 0 100%!important;flex:0 0 100%!important;max-width:100%!important}}.acfe-modal.-open .acfe-modal-footer,.acfe-modal.-open .acfe-modal-footer *{-webkit-box-sizing:border-box;box-sizing:border-box}.acfe-modal.-open .acfe-modal-footer{display:block;height:50px;line-height:50px;color:#23282d;background:#fcfcfc;padding:0 16px;position:relative;text-align:right;border-top:1px solid #ddd;pointer-events:auto}.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-footer{pointer-events:none}.acfe-modal.-open .acfe-modal-footer>button{vertical-align:baseline}body.block-editor-page .edit-post-layout .acfe-modal.-open{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start;-webkit-box-align:start;-ms-flex-align:start;align-items:start}body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{margin-top:88px;height:100%;width:100%;max-height:calc(100vh - 88px)}body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left{height:100%}body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left:before{content:"";display:block;position:absolute;z-index:0;background:#f9f9f9;border:solid #e1e1e1;border-width:0 1px 0 0;top:0;bottom:0;left:0;width:20%}@media only screen and (max-width:1080px){body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{margin-top:88px}}body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 160px);margin-left:160px}body.block-editor-page .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 440px)}body.block-editor-page.folded .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 36px);margin-left:36px}@media only screen and (max-width:960px){body.block-editor-page.auto-fold .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 36px);margin-left:36px}}@media only screen and (max-width:782px){body.block-editor-page.auto-fold .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{max-width:100vw;margin-left:0;margin-top:100px}}body.block-editor-page.folded .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 316px)}@media (min-width:600px){body.block-editor-page.acfe-modal-opened .edit-post-layout__content{overflow-y:hidden}}body.block-editor-page .acfe-modal-overlay{display:none}body.wp-admin.upload-php.acfe-modal-opened>div:not([style*="display: none;"])>.media-modal.wp-core-ui:not(.acf-media-modal):before{content:"";display:block;position:absolute;background:rgba(0,0,0,.7);top:0;left:0;width:100%;height:100%;z-index:10000}
|
@@ -0,0 +1,525 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function($){
|
2 |
+
|
3 |
+
if(typeof acf === 'undefined')
|
4 |
+
return;
|
5 |
+
|
6 |
+
/*
|
7 |
+
* ACFE Form
|
8 |
+
*/
|
9 |
+
new acf.Model({
|
10 |
+
|
11 |
+
actions: {
|
12 |
+
|
13 |
+
// Buttons
|
14 |
+
'new_field/name=acfe_form_actions': 'actionsButton',
|
15 |
+
'new_field/name=acfe_form_email_files': 'filesButton',
|
16 |
+
'new_field/name=acfe_form_email_files_static': 'filesButton',
|
17 |
+
|
18 |
+
// Post
|
19 |
+
'new_field/name=acfe_form_post_map_target': 'mapFields',
|
20 |
+
'new_field/name=acfe_form_post_map_post_type': 'mapFields',
|
21 |
+
'new_field/name=acfe_form_post_map_post_status': 'mapFields',
|
22 |
+
'new_field/name=acfe_form_post_map_post_title': 'mapFields',
|
23 |
+
'new_field/name=acfe_form_post_map_post_name': 'mapFields',
|
24 |
+
'new_field/name=acfe_form_post_map_post_content': 'mapFields',
|
25 |
+
'new_field/name=acfe_form_post_map_post_author': 'mapFields',
|
26 |
+
'new_field/name=acfe_form_post_map_post_parent': 'mapFields',
|
27 |
+
'new_field/name=acfe_form_post_map_post_terms': 'mapFields',
|
28 |
+
|
29 |
+
// User
|
30 |
+
'new_field/name=acfe_form_user_map_email': 'mapFields',
|
31 |
+
'new_field/name=acfe_form_user_map_username': 'mapFields',
|
32 |
+
'new_field/name=acfe_form_user_map_password': 'mapFields',
|
33 |
+
'new_field/name=acfe_form_user_map_first_name': 'mapFields',
|
34 |
+
'new_field/name=acfe_form_user_map_last_name': 'mapFields',
|
35 |
+
'new_field/name=acfe_form_user_map_nickname': 'mapFields',
|
36 |
+
'new_field/name=acfe_form_user_map_display_name': 'mapFields',
|
37 |
+
'new_field/name=acfe_form_user_map_website': 'mapFields',
|
38 |
+
'new_field/name=acfe_form_user_map_description': 'mapFields',
|
39 |
+
'new_field/name=acfe_form_user_map_role': 'mapFields',
|
40 |
+
|
41 |
+
// Term
|
42 |
+
'new_field/name=acfe_form_term_map_name': 'mapFields',
|
43 |
+
'new_field/name=acfe_form_term_map_slug': 'mapFields',
|
44 |
+
'new_field/name=acfe_form_term_map_taxonomy': 'mapFields',
|
45 |
+
'new_field/name=acfe_form_term_map_parent': 'mapFields',
|
46 |
+
'new_field/name=acfe_form_term_map_description': 'mapFields',
|
47 |
+
},
|
48 |
+
|
49 |
+
filters: {
|
50 |
+
'select2_args': 'select2Args'
|
51 |
+
},
|
52 |
+
|
53 |
+
actionsButton: function(field){
|
54 |
+
|
55 |
+
field.on('click', '[data-name="add-layout"]', function(e){
|
56 |
+
|
57 |
+
$('body').find('.acf-fc-popup').addClass('acfe-fc-popup-grey');
|
58 |
+
|
59 |
+
});
|
60 |
+
|
61 |
+
},
|
62 |
+
|
63 |
+
filesButton: function(field){
|
64 |
+
|
65 |
+
field.$('> .acf-input > .acf-repeater > .acf-actions > .acf-button').removeClass('button-primary');
|
66 |
+
|
67 |
+
},
|
68 |
+
|
69 |
+
mapFields: function(field){
|
70 |
+
|
71 |
+
var $layout = field.$el.closest('.layout');
|
72 |
+
var $message = $layout.find('> .acf-fields > .acf-field[data-name="' + field.get('name') + '_message"] > .acf-input');
|
73 |
+
|
74 |
+
var selected = field.$input().find('option:selected').text();
|
75 |
+
|
76 |
+
if(selected.length){
|
77 |
+
$message.html(selected);
|
78 |
+
}
|
79 |
+
|
80 |
+
field.$input().on('change', function(){
|
81 |
+
|
82 |
+
// Message
|
83 |
+
var text = $(this).find('option:selected').text();
|
84 |
+
|
85 |
+
$message.html(text);
|
86 |
+
|
87 |
+
});
|
88 |
+
|
89 |
+
},
|
90 |
+
|
91 |
+
select2Args: function(options, $select, fieldData, field, instance){
|
92 |
+
|
93 |
+
if(field.get('acfeAllowCustom')){
|
94 |
+
|
95 |
+
options.templateSelection = function(state){
|
96 |
+
|
97 |
+
if(!state.id){
|
98 |
+
return state.text;
|
99 |
+
}
|
100 |
+
|
101 |
+
var text = state.text;
|
102 |
+
|
103 |
+
var match_field = /{field:(.*)}/g;
|
104 |
+
var match_fields = /{fields}/g;
|
105 |
+
var match_get_field = /{get_field:(.*)}/g;
|
106 |
+
var match_query_var = /{query_var:(.*)}/g;
|
107 |
+
var match_request = /{request:(.*)}/g;
|
108 |
+
var match_current = /{current:(.*)}/g;
|
109 |
+
var match_form = /{(form|form:.*?)}/g;
|
110 |
+
var match_action = /{action:(.*)}/g;
|
111 |
+
|
112 |
+
text = text.replace(match_field, "<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{field:$1}</code>");
|
113 |
+
text = text.replace(match_fields, "<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{fields}</code>");
|
114 |
+
text = text.replace(match_current, "<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{current:$1}</code>");
|
115 |
+
text = text.replace(match_form, "<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{$1}</code>");
|
116 |
+
text = text.replace(match_action, "<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{action:$1}</code>");
|
117 |
+
text = text.replace(match_get_field, "<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{get_field:$1}</code>");
|
118 |
+
text = text.replace(match_query_var, "<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{query_var:$1}</code>");
|
119 |
+
text = text.replace(match_request, "<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{request:$1}</code>");
|
120 |
+
|
121 |
+
|
122 |
+
return text;
|
123 |
+
|
124 |
+
};
|
125 |
+
|
126 |
+
options.templateResult = function(state){
|
127 |
+
|
128 |
+
if(!state.id){
|
129 |
+
return state.text;
|
130 |
+
}
|
131 |
+
|
132 |
+
var text = state.text;
|
133 |
+
|
134 |
+
var match_field = /{field:(.*?)}/g;
|
135 |
+
var match_fields = /{fields}/g;
|
136 |
+
var match_get_field = /{get_field:(.*?)}/g;
|
137 |
+
var match_query_var = /{query_var:(.*?)}/g;
|
138 |
+
var match_request = /{request:(.*?)}/g;
|
139 |
+
var match_current = /{current:(.*?)}/g;
|
140 |
+
var match_form = /{(form|form:.*?)}/g;
|
141 |
+
var match_action = /{action:(.*?)}/g;
|
142 |
+
|
143 |
+
text = text.replace(match_field, "<code style='font-size:12px;'>{field:$1}</code>");
|
144 |
+
text = text.replace(match_fields, "<code style='font-size:12px;'>{fields}</code>");
|
145 |
+
text = text.replace(match_get_field, "<code style='font-size:12px;'>{get_field:$1}</code>");
|
146 |
+
text = text.replace(match_query_var, "<code style='font-size:12px;'>{query_var:$1}</code>");
|
147 |
+
text = text.replace(match_request, "<code style='font-size:12px;'>{request:$1}</code>");
|
148 |
+
text = text.replace(match_current, "<code style='font-size:12px;'>{current:$1}</code>");
|
149 |
+
text = text.replace(match_form, "<code style='font-size:12px;'>{$1}</code>");
|
150 |
+
text = text.replace(match_action, "<code style='font-size:12px;'>{action:$1}</code>");
|
151 |
+
|
152 |
+
return text;
|
153 |
+
|
154 |
+
};
|
155 |
+
|
156 |
+
}
|
157 |
+
|
158 |
+
return options;
|
159 |
+
|
160 |
+
}
|
161 |
+
|
162 |
+
});
|
163 |
+
|
164 |
+
/*
|
165 |
+
* Dev Mode
|
166 |
+
*/
|
167 |
+
new acf.Model({
|
168 |
+
|
169 |
+
wait: 'prepare',
|
170 |
+
|
171 |
+
events: {
|
172 |
+
'click .acfe_delete_meta': 'onClickSingle',
|
173 |
+
'click #acfe_bulk_delete_meta_submit': 'onSubmitBulk',
|
174 |
+
'click.postboxes .hide-postbox-tog': 'onClickPostbox',
|
175 |
+
},
|
176 |
+
|
177 |
+
$acfWrap: function(){
|
178 |
+
return $('#acfe-acf-custom-fields');
|
179 |
+
},
|
180 |
+
|
181 |
+
$wpWrap: function(){
|
182 |
+
return $('#acfe-wp-custom-fields');
|
183 |
+
},
|
184 |
+
|
185 |
+
acfCount: function(){
|
186 |
+
return $('#acfe-acf-custom-fields tbody tr').length;
|
187 |
+
},
|
188 |
+
|
189 |
+
wpCount: function(){
|
190 |
+
return $('#acfe-wp-custom-fields tbody tr').length;
|
191 |
+
},
|
192 |
+
|
193 |
+
$bulkActions: function(){
|
194 |
+
return $('.acfe_dev_bulk_actions');
|
195 |
+
},
|
196 |
+
|
197 |
+
initialize: function(){
|
198 |
+
|
199 |
+
var $acfWrap = this.$acfWrap();
|
200 |
+
var $wpWrap = this.$wpWrap();
|
201 |
+
var $bulkActions = this.$bulkActions();
|
202 |
+
|
203 |
+
// Move Bulk Button
|
204 |
+
$acfWrap.find('.tablenav.bottom').insertAfter($acfWrap);
|
205 |
+
$wpWrap.find('.tablenav.bottom').insertAfter($wpWrap);
|
206 |
+
|
207 |
+
if(!$acfWrap.is(':visible') && !$wpWrap.is(':visible')){
|
208 |
+
|
209 |
+
$bulkActions.hide();
|
210 |
+
|
211 |
+
}
|
212 |
+
|
213 |
+
},
|
214 |
+
|
215 |
+
sync: function(){
|
216 |
+
|
217 |
+
var self = this;
|
218 |
+
|
219 |
+
setTimeout(function(){
|
220 |
+
|
221 |
+
var acfCount = self.acfCount();
|
222 |
+
var wpCount = self.wpCount();
|
223 |
+
|
224 |
+
var $acfWrap = self.$acfWrap();
|
225 |
+
var $wpWrap = self.$wpWrap();
|
226 |
+
|
227 |
+
var $bulkActions = self.$bulkActions();
|
228 |
+
|
229 |
+
$acfWrap.find('.acfe_dev_meta_count').text(acfCount);
|
230 |
+
$wpWrap.find('.acfe_dev_meta_count').text(wpCount);
|
231 |
+
|
232 |
+
if(!acfCount){
|
233 |
+
$acfWrap.remove();
|
234 |
+
}
|
235 |
+
|
236 |
+
if(!wpCount){
|
237 |
+
$wpWrap.remove();
|
238 |
+
}
|
239 |
+
|
240 |
+
if(!acfCount && !wpCount){
|
241 |
+
$bulkActions.remove();
|
242 |
+
}
|
243 |
+
|
244 |
+
}, 351);
|
245 |
+
|
246 |
+
},
|
247 |
+
|
248 |
+
onClickSingle: function(e, $el){
|
249 |
+
|
250 |
+
e.preventDefault();
|
251 |
+
|
252 |
+
var self = this;
|
253 |
+
var $tr = $el.closest('tr');
|
254 |
+
|
255 |
+
$.ajax({
|
256 |
+
url: acf.get('ajaxurl'),
|
257 |
+
type: 'post',
|
258 |
+
data: {
|
259 |
+
action: 'acfe/delete_meta',
|
260 |
+
id: $el.attr('data-meta-id'),
|
261 |
+
key: $el.attr('data-meta-key'),
|
262 |
+
type: $el.attr('data-type'),
|
263 |
+
_wpnonce: $el.attr('data-nonce'),
|
264 |
+
},
|
265 |
+
beforeSend: function(){
|
266 |
+
|
267 |
+
$tr.css({backgroundColor:'#faafaa'}).fadeOut(350, function(){
|
268 |
+
$tr.remove();
|
269 |
+
});
|
270 |
+
|
271 |
+
self.sync();
|
272 |
+
|
273 |
+
},
|
274 |
+
success: function(response){
|
275 |
+
|
276 |
+
if(response !== '1'){
|
277 |
+
$tr.css({backgroundColor:''});
|
278 |
+
$tr.show();
|
279 |
+
}
|
280 |
+
|
281 |
+
}
|
282 |
+
});
|
283 |
+
|
284 |
+
},
|
285 |
+
|
286 |
+
onSubmitBulk: function(e, $el){
|
287 |
+
|
288 |
+
e.preventDefault();
|
289 |
+
|
290 |
+
var self = this;
|
291 |
+
var action = $el.prevAll('.acfe_bulk_delete_meta_action').val();
|
292 |
+
var type = $el.prevAll('.acfe_bulk_delete_meta_type').val();
|
293 |
+
var nonce = $el.prevAll('.acfe_bulk_delete_meta_nonce').val();
|
294 |
+
|
295 |
+
if(action === 'delete'){
|
296 |
+
|
297 |
+
var ids = [];
|
298 |
+
var trs = [];
|
299 |
+
|
300 |
+
$('input.acfe_bulk_delete_meta:checked').each(function(){
|
301 |
+
ids.push($(this).val());
|
302 |
+
trs.push($(this).closest('tr'));
|
303 |
+
});
|
304 |
+
|
305 |
+
if(ids.length){
|
306 |
+
|
307 |
+
$.ajax({
|
308 |
+
url: acf.get('ajaxurl'),
|
309 |
+
type: 'post',
|
310 |
+
data: {
|
311 |
+
action: 'acfe/bulk_delete_meta',
|
312 |
+
ids: ids,
|
313 |
+
type: type,
|
314 |
+
_wpnonce: nonce,
|
315 |
+
},
|
316 |
+
beforeSend: function(){
|
317 |
+
|
318 |
+
trs.map(function(tr){
|
319 |
+
$(tr).css({backgroundColor:'#faafaa'}).fadeOut(350, function(){
|
320 |
+
$(tr).remove();
|
321 |
+
});
|
322 |
+
});
|
323 |
+
|
324 |
+
self.sync();
|
325 |
+
|
326 |
+
}
|
327 |
+
});
|
328 |
+
|
329 |
+
}
|
330 |
+
|
331 |
+
}
|
332 |
+
|
333 |
+
},
|
334 |
+
|
335 |
+
onClickPostbox: function(e, $el){
|
336 |
+
|
337 |
+
var val = $el.val();
|
338 |
+
|
339 |
+
var $acfWrap = this.$acfWrap();
|
340 |
+
var $wpWrap = this.$wpWrap();
|
341 |
+
var $bulkActions = this.$bulkActions();
|
342 |
+
|
343 |
+
if(!acfe.inArray(val, ['acfe-wp-custom-fields', 'acfe-acf-custom-fields']))
|
344 |
+
return;
|
345 |
+
|
346 |
+
if($el.prop('checked')){
|
347 |
+
|
348 |
+
if(!$bulkActions.is(':visible'))
|
349 |
+
$bulkActions.show();
|
350 |
+
|
351 |
+
}else if((val === 'acfe-wp-custom-fields' && !$acfWrap.is(':visible')) || (val === 'acfe-acf-custom-fields' && !$wpWrap.is(':visible'))){
|
352 |
+
|
353 |
+
$bulkActions.hide();
|
354 |
+
|
355 |
+
}
|
356 |
+
|
357 |
+
}
|
358 |
+
|
359 |
+
});
|
360 |
+
|
361 |
+
/*
|
362 |
+
* Module: Author
|
363 |
+
*/
|
364 |
+
new acf.Model({
|
365 |
+
|
366 |
+
actions: {
|
367 |
+
'new_field/name=acfe_author': 'newField',
|
368 |
+
},
|
369 |
+
|
370 |
+
newField: function(field){
|
371 |
+
|
372 |
+
field.on('change', function(e){
|
373 |
+
e.stopPropagation();
|
374 |
+
});
|
375 |
+
|
376 |
+
}
|
377 |
+
|
378 |
+
});
|
379 |
+
|
380 |
+
/*
|
381 |
+
* Postbox: ACFE Class
|
382 |
+
*/
|
383 |
+
acf.addAction('show_postbox', function(postbox){
|
384 |
+
postbox.$el.removeClass('acfe-postbox-left acfe-postbox-top');
|
385 |
+
});
|
386 |
+
|
387 |
+
/*
|
388 |
+
* Field: Enable Switch
|
389 |
+
*/
|
390 |
+
new acf.Model({
|
391 |
+
|
392 |
+
actions: {
|
393 |
+
'new_field': 'newField',
|
394 |
+
},
|
395 |
+
|
396 |
+
isRepeater: function(field){
|
397 |
+
return field.get('type') === 'repeater' || field.get('type') === 'flexible_content';
|
398 |
+
},
|
399 |
+
|
400 |
+
getCondition: function(target){
|
401 |
+
return this.isRepeater(target) ? target.val() === 0 : !target.val().length;
|
402 |
+
},
|
403 |
+
|
404 |
+
enableSwitcher: function(field){
|
405 |
+
|
406 |
+
var self = this;
|
407 |
+
var switcher, target;
|
408 |
+
|
409 |
+
if(field.get('switched')){
|
410 |
+
|
411 |
+
switcher = acf.getField(field.$el.prev());
|
412 |
+
target = field;
|
413 |
+
|
414 |
+
}else if(field.get('switcher')){
|
415 |
+
|
416 |
+
switcher = field;
|
417 |
+
target = acf.getField(field.$el.next());
|
418 |
+
|
419 |
+
}
|
420 |
+
|
421 |
+
if(self.getCondition(target)){
|
422 |
+
|
423 |
+
switcher.switchOff();
|
424 |
+
switcher.show('switcher');
|
425 |
+
target.hide('switcher');
|
426 |
+
|
427 |
+
}else{
|
428 |
+
|
429 |
+
switcher.hide('switcher');
|
430 |
+
target.show('switcher');
|
431 |
+
|
432 |
+
}
|
433 |
+
|
434 |
+
if(field.get('switcher')){
|
435 |
+
|
436 |
+
// Switch Action
|
437 |
+
switcher.on('change', function(){
|
438 |
+
|
439 |
+
if(switcher.$input().prop('checked')){
|
440 |
+
|
441 |
+
switcher.hide('switcher');
|
442 |
+
|
443 |
+
target.show('switcher');
|
444 |
+
|
445 |
+
if(self.isRepeater(target)){
|
446 |
+
target.add();
|
447 |
+
}
|
448 |
+
|
449 |
+
}
|
450 |
+
|
451 |
+
});
|
452 |
+
|
453 |
+
// Field Action
|
454 |
+
target.on('change', function(e, $el){
|
455 |
+
|
456 |
+
if(self.getCondition(target)){
|
457 |
+
|
458 |
+
switcher.switchOff();
|
459 |
+
switcher.show('switcher');
|
460 |
+
target.hide('switcher');
|
461 |
+
|
462 |
+
}
|
463 |
+
|
464 |
+
});
|
465 |
+
|
466 |
+
}
|
467 |
+
|
468 |
+
},
|
469 |
+
|
470 |
+
enableSwitch: function(field){
|
471 |
+
|
472 |
+
// Clone
|
473 |
+
var $row = field.$el.clone();
|
474 |
+
|
475 |
+
// Params
|
476 |
+
$row.removeAttr('data-enable-switch');
|
477 |
+
$row.attr('data-switcher', true);
|
478 |
+
$row.attr('data-name', field.get('name') + '_acfe_switch');
|
479 |
+
$row.attr('data-key', field.get('name') + '_acfe_switch');
|
480 |
+
$row.attr('data-type', 'true_false');
|
481 |
+
|
482 |
+
// HTML
|
483 |
+
$row.find('>.acf-input').html('<div class="acf-true-false">\n' +
|
484 |
+
'<input type="hidden" value="0">' +
|
485 |
+
'<label>\n' +
|
486 |
+
'<input type="checkbox" value="1" class="acf-switch-input" autocomplete="off">\n' +
|
487 |
+
'<div class="acf-switch"><span class="acf-switch-on" style="min-width: 18px;">' + acf.__('Yes') + '</span>' +
|
488 |
+
'<span class="acf-switch-off" style="min-width: 18px;">' + acf.__('No') + '</span><div class="acf-switch-slider"></div></div>' +
|
489 |
+
'</label>\n' +
|
490 |
+
'</div>');
|
491 |
+
|
492 |
+
// Insert
|
493 |
+
$row = $row.insertBefore(field.$el);
|
494 |
+
|
495 |
+
// New Switch
|
496 |
+
acf.getField($row);
|
497 |
+
|
498 |
+
// Remove Attribute
|
499 |
+
field.$el.removeAttr('data-enable-switch');
|
500 |
+
field.set('enableSwitch', false);
|
501 |
+
|
502 |
+
field.$el.attr('data-switched', true);
|
503 |
+
field.set('switched', true);
|
504 |
+
|
505 |
+
},
|
506 |
+
|
507 |
+
newField: function(field){
|
508 |
+
|
509 |
+
if(field.get('enableSwitch')){
|
510 |
+
|
511 |
+
this.enableSwitch(field);
|
512 |
+
|
513 |
+
}
|
514 |
+
|
515 |
+
else if(field.get('switched') || field.get('switcher')){
|
516 |
+
|
517 |
+
this.enableSwitcher(field);
|
518 |
+
|
519 |
+
}
|
520 |
+
|
521 |
+
}
|
522 |
+
|
523 |
+
});
|
524 |
+
|
525 |
+
})(jQuery);
|
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(o){"undefined"!=typeof acf&&(new acf.Model({actions:{"new_field/name=acfe_form_actions":"actionsButton","new_field/name=acfe_form_email_files":"filesButton","new_field/name=acfe_form_email_files_static":"filesButton","new_field/name=acfe_form_post_map_target":"mapFields","new_field/name=acfe_form_post_map_post_type":"mapFields","new_field/name=acfe_form_post_map_post_status":"mapFields","new_field/name=acfe_form_post_map_post_title":"mapFields","new_field/name=acfe_form_post_map_post_name":"mapFields","new_field/name=acfe_form_post_map_post_content":"mapFields","new_field/name=acfe_form_post_map_post_author":"mapFields","new_field/name=acfe_form_post_map_post_parent":"mapFields","new_field/name=acfe_form_post_map_post_terms":"mapFields","new_field/name=acfe_form_user_map_email":"mapFields","new_field/name=acfe_form_user_map_username":"mapFields","new_field/name=acfe_form_user_map_password":"mapFields","new_field/name=acfe_form_user_map_first_name":"mapFields","new_field/name=acfe_form_user_map_last_name":"mapFields","new_field/name=acfe_form_user_map_nickname":"mapFields","new_field/name=acfe_form_user_map_display_name":"mapFields","new_field/name=acfe_form_user_map_website":"mapFields","new_field/name=acfe_form_user_map_description":"mapFields","new_field/name=acfe_form_user_map_role":"mapFields","new_field/name=acfe_form_term_map_name":"mapFields","new_field/name=acfe_form_term_map_slug":"mapFields","new_field/name=acfe_form_term_map_taxonomy":"mapFields","new_field/name=acfe_form_term_map_parent":"mapFields","new_field/name=acfe_form_term_map_description":"mapFields"},filters:{select2_args:"select2Args"},actionsButton:function(e){e.on("click",'[data-name="add-layout"]',function(e){o("body").find(".acf-fc-popup").addClass("acfe-fc-popup-grey")})},filesButton:function(e){e.$("> .acf-input > .acf-repeater > .acf-actions > .acf-button").removeClass("button-primary")},mapFields:function(e){var t=e.$el.closest(".layout").find('> .acf-fields > .acf-field[data-name="'+e.get("name")+'_message"] > .acf-input'),a=e.$input().find("option:selected").text();a.length&&t.html(a),e.$input().on("change",function(){var e=o(this).find("option:selected").text();t.html(e)})},select2Args:function(e,t,a,i,n){return i.get("acfeAllowCustom")&&(e.templateSelection=function(e){if(!e.id)return e.text;e=e.text;return e=(e=(e=(e=(e=(e=(e=(e=e.replace(/{field:(.*)}/g,"<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{field:$1}</code>")).replace(/{fields}/g,"<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{fields}</code>")).replace(/{current:(.*)}/g,"<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{current:$1}</code>")).replace(/{(form|form:.*?)}/g,"<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{$1}</code>")).replace(/{action:(.*)}/g,"<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{action:$1}</code>")).replace(/{get_field:(.*)}/g,"<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{get_field:$1}</code>")).replace(/{query_var:(.*)}/g,"<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{query_var:$1}</code>")).replace(/{request:(.*)}/g,"<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{request:$1}</code>")},e.templateResult=function(e){if(!e.id)return e.text;e=e.text;return e=(e=(e=(e=(e=(e=(e=(e=e.replace(/{field:(.*?)}/g,"<code style='font-size:12px;'>{field:$1}</code>")).replace(/{fields}/g,"<code style='font-size:12px;'>{fields}</code>")).replace(/{get_field:(.*?)}/g,"<code style='font-size:12px;'>{get_field:$1}</code>")).replace(/{query_var:(.*?)}/g,"<code style='font-size:12px;'>{query_var:$1}</code>")).replace(/{request:(.*?)}/g,"<code style='font-size:12px;'>{request:$1}</code>")).replace(/{current:(.*?)}/g,"<code style='font-size:12px;'>{current:$1}</code>")).replace(/{(form|form:.*?)}/g,"<code style='font-size:12px;'>{$1}</code>")).replace(/{action:(.*?)}/g,"<code style='font-size:12px;'>{action:$1}</code>")}),e}}),new acf.Model({wait:"prepare",events:{"click .acfe_delete_meta":"onClickSingle","click #acfe_bulk_delete_meta_submit":"onSubmitBulk","click.postboxes .hide-postbox-tog":"onClickPostbox"},$acfWrap:function(){return o("#acfe-acf-custom-fields")},$wpWrap:function(){return o("#acfe-wp-custom-fields")},acfCount:function(){return o("#acfe-acf-custom-fields tbody tr").length},wpCount:function(){return o("#acfe-wp-custom-fields tbody tr").length},$bulkActions:function(){return o(".acfe_dev_bulk_actions")},initialize:function(){var e=this.$acfWrap(),t=this.$wpWrap(),a=this.$bulkActions();e.find(".tablenav.bottom").insertAfter(e),t.find(".tablenav.bottom").insertAfter(t),e.is(":visible")||t.is(":visible")||a.hide()},sync:function(){var c=this;setTimeout(function(){var e=c.acfCount(),t=c.wpCount(),a=c.$acfWrap(),i=c.$wpWrap(),n=c.$bulkActions();a.find(".acfe_dev_meta_count").text(e),i.find(".acfe_dev_meta_count").text(t),e||a.remove(),t||i.remove(),e||t||n.remove()},351)},onClickSingle:function(e,t){e.preventDefault();var a=this,i=t.closest("tr");o.ajax({url:acf.get("ajaxurl"),type:"post",data:{action:"acfe/delete_meta",id:t.attr("data-meta-id"),key:t.attr("data-meta-key"),type:t.attr("data-type"),_wpnonce:t.attr("data-nonce")},beforeSend:function(){i.css({backgroundColor:"#faafaa"}).fadeOut(350,function(){i.remove()}),a.sync()},success:function(e){"1"!==e&&(i.css({backgroundColor:""}),i.show())}})},onSubmitBulk:function(e,t){e.preventDefault();var a,i,n=this,c=t.prevAll(".acfe_bulk_delete_meta_action").val(),e=t.prevAll(".acfe_bulk_delete_meta_type").val(),t=t.prevAll(".acfe_bulk_delete_meta_nonce").val();"delete"===c&&(a=[],i=[],o("input.acfe_bulk_delete_meta:checked").each(function(){a.push(o(this).val()),i.push(o(this).closest("tr"))}),a.length&&o.ajax({url:acf.get("ajaxurl"),type:"post",data:{action:"acfe/bulk_delete_meta",ids:a,type:e,_wpnonce:t},beforeSend:function(){i.map(function(e){o(e).css({backgroundColor:"#faafaa"}).fadeOut(350,function(){o(e).remove()})}),n.sync()}}))},onClickPostbox:function(e,t){var a=t.val(),i=this.$acfWrap(),n=this.$wpWrap(),c=this.$bulkActions();acfe.inArray(a,["acfe-wp-custom-fields","acfe-acf-custom-fields"])&&(t.prop("checked")?c.is(":visible")||c.show():("acfe-wp-custom-fields"===a&&!i.is(":visible")||"acfe-acf-custom-fields"===a&&!n.is(":visible"))&&c.hide())}}),new acf.Model({actions:{"new_field/name=acfe_author":"newField"},newField:function(e){e.on("change",function(e){e.stopPropagation()})}}),acf.addAction("show_postbox",function(e){e.$el.removeClass("acfe-postbox-left acfe-postbox-top")}),new acf.Model({actions:{new_field:"newField"},isRepeater:function(e){return"repeater"===e.get("type")||"flexible_content"===e.get("type")},getCondition:function(e){return this.isRepeater(e)?0===e.val():!e.val().length},enableSwitcher:function(e){var a,i,n=this;e.get("switched")?(a=acf.getField(e.$el.prev()),i=e):e.get("switcher")&&(a=e,i=acf.getField(e.$el.next())),n.getCondition(i)?(a.switchOff(),a.show("switcher"),i.hide("switcher")):(a.hide("switcher"),i.show("switcher")),e.get("switcher")&&(a.on("change",function(){a.$input().prop("checked")&&(a.hide("switcher"),i.show("switcher"),n.isRepeater(i)&&i.add())}),i.on("change",function(e,t){n.getCondition(i)&&(a.switchOff(),a.show("switcher"),i.hide("switcher"))}))},enableSwitch:function(e){var t=e.$el.clone();t.removeAttr("data-enable-switch"),t.attr("data-switcher",!0),t.attr("data-name",e.get("name")+"_acfe_switch"),t.attr("data-key",e.get("name")+"_acfe_switch"),t.attr("data-type","true_false"),t.find(">.acf-input").html('<div class="acf-true-false">\n<input type="hidden" value="0"><label>\n<input type="checkbox" value="1" class="acf-switch-input" autocomplete="off">\n<div class="acf-switch"><span class="acf-switch-on" style="min-width: 18px;">'+acf.__("Yes")+'</span><span class="acf-switch-off" style="min-width: 18px;">'+acf.__("No")+'</span><div class="acf-switch-slider"></div></div></label>\n</div>'),t=t.insertBefore(e.$el),acf.getField(t),e.$el.removeAttr("data-enable-switch"),e.set("enableSwitch",!1),e.$el.attr("data-switched",!0),e.set("switched",!0)},newField:function(e){e.get("enableSwitch")?this.enableSwitch(e):(e.get("switched")||e.get("switcher"))&&this.enableSwitcher(e)}}))}(jQuery);
|
@@ -0,0 +1,418 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function($){
|
2 |
+
|
3 |
+
if(typeof acf === 'undefined')
|
4 |
+
return;
|
5 |
+
|
6 |
+
/*
|
7 |
+
* Field: Code Editor
|
8 |
+
*/
|
9 |
+
new acf.Model({
|
10 |
+
|
11 |
+
actions: {
|
12 |
+
'append_field_object': 'appendCodeEditor'
|
13 |
+
},
|
14 |
+
|
15 |
+
// Fix duplicate Code Editor
|
16 |
+
appendCodeEditor: function(field){
|
17 |
+
|
18 |
+
if(field.get('type') !== 'acfe_code_editor')
|
19 |
+
return;
|
20 |
+
|
21 |
+
field.$setting('default_value').find('> .acf-input > .acf-input-wrap > .CodeMirror:last').remove();
|
22 |
+
field.$setting('placeholder').find('> .acf-input > .acf-input-wrap > .CodeMirror:last').remove();
|
23 |
+
|
24 |
+
},
|
25 |
+
|
26 |
+
});
|
27 |
+
|
28 |
+
/*
|
29 |
+
* Field: Column
|
30 |
+
*/
|
31 |
+
new acf.Model({
|
32 |
+
|
33 |
+
actions: {
|
34 |
+
'change_field_label/type=acfe_column': 'renderTitle',
|
35 |
+
'change_field_type/type=acfe_column': 'renderTitle',
|
36 |
+
'render_field_settings/type=acfe_column': 'renderField',
|
37 |
+
},
|
38 |
+
|
39 |
+
renderTitle: function($el){
|
40 |
+
|
41 |
+
var field = acf.getInstance($el);
|
42 |
+
|
43 |
+
var $columns = field.$setting('columns');
|
44 |
+
var columns = acf.getInstance($columns).getValue();
|
45 |
+
|
46 |
+
var $endpoint = field.$setting('endpoint');
|
47 |
+
var endpoint = acf.getInstance($endpoint).getValue();
|
48 |
+
|
49 |
+
if(endpoint){
|
50 |
+
|
51 |
+
field.set('label', '(Column endpoint)');
|
52 |
+
|
53 |
+
}else{
|
54 |
+
|
55 |
+
field.set('label', '(Column ' + columns + ')');
|
56 |
+
|
57 |
+
}
|
58 |
+
|
59 |
+
},
|
60 |
+
|
61 |
+
renderField: function($el){
|
62 |
+
|
63 |
+
var field = acf.getFieldObject($el);
|
64 |
+
|
65 |
+
var setLabel = function(){
|
66 |
+
field.set('label', true);
|
67 |
+
}
|
68 |
+
|
69 |
+
field.on('change', '.acfe-field-columns', setLabel);
|
70 |
+
field.on('change', '.acfe-field-columns-endpoint', setLabel);
|
71 |
+
|
72 |
+
}
|
73 |
+
|
74 |
+
});
|
75 |
+
|
76 |
+
/*
|
77 |
+
* Field: Taxonomy Terms
|
78 |
+
*/
|
79 |
+
new acf.Model({
|
80 |
+
|
81 |
+
filters: {
|
82 |
+
'select2_ajax_data/action=acfe/fields/taxonomy_terms/allow_query': 'taxonomyTermsAjax',
|
83 |
+
},
|
84 |
+
|
85 |
+
taxonomyTermsAjax: function(ajaxData, data, $el, field, select){
|
86 |
+
|
87 |
+
// Taxonomies
|
88 |
+
var $taxonomies = $el.closest('.acf-field-settings').find('> .acf-field-setting-taxonomy > .acf-input > select > option:selected');
|
89 |
+
|
90 |
+
var tax = [];
|
91 |
+
|
92 |
+
$taxonomies.each(function(){
|
93 |
+
tax.push($(this).val());
|
94 |
+
});
|
95 |
+
|
96 |
+
ajaxData.taxonomies = tax;
|
97 |
+
|
98 |
+
// Terms level
|
99 |
+
var $level = $el.closest('.acf-field-settings').find('> .acf-field-setting-allow_terms > .acf-input input[type="number"]');
|
100 |
+
|
101 |
+
ajaxData.level = $level.val();
|
102 |
+
|
103 |
+
return ajaxData;
|
104 |
+
|
105 |
+
}
|
106 |
+
|
107 |
+
});
|
108 |
+
|
109 |
+
/*
|
110 |
+
* Field: Data
|
111 |
+
*/
|
112 |
+
new acf.Model({
|
113 |
+
|
114 |
+
wait: 'prepare',
|
115 |
+
|
116 |
+
events: {
|
117 |
+
'click .acfe_modal_open': 'onClickOpen'
|
118 |
+
},
|
119 |
+
|
120 |
+
onClickOpen: function(e, $el){
|
121 |
+
|
122 |
+
new acfe.Popup($('.acfe-modal[data-modal-key=' + $el.attr('data-modal-key') + ']'), {
|
123 |
+
title: 'Data',
|
124 |
+
size: 'medium',
|
125 |
+
footer: acf.__('Close')
|
126 |
+
});
|
127 |
+
|
128 |
+
},
|
129 |
+
|
130 |
+
initialize: function(){
|
131 |
+
|
132 |
+
$('.button.edit-field').each(function(){
|
133 |
+
|
134 |
+
var tbody = $(this).closest('tbody');
|
135 |
+
$(tbody).find('.acfe_modal_open:first').insertAfter($(this));
|
136 |
+
$(tbody).find('.acfe-modal:first').appendTo($('body'));
|
137 |
+
$(tbody).find('tr.acf-field-setting-acfe_field_data:first').remove();
|
138 |
+
|
139 |
+
});
|
140 |
+
|
141 |
+
}
|
142 |
+
|
143 |
+
});
|
144 |
+
|
145 |
+
/*
|
146 |
+
* Field Attribute: Before/After
|
147 |
+
*/
|
148 |
+
new acf.Model({
|
149 |
+
|
150 |
+
actions: {
|
151 |
+
'new_field' : 'onNewField'
|
152 |
+
},
|
153 |
+
|
154 |
+
onNewField: function(field){
|
155 |
+
|
156 |
+
if(field.get('type') === 'tab')
|
157 |
+
return;
|
158 |
+
|
159 |
+
var $sibling;
|
160 |
+
|
161 |
+
if(field.has('before')){
|
162 |
+
|
163 |
+
// vars
|
164 |
+
$sibling = field.$el.siblings('[data-name="' + field.get('before') + '"]').first();
|
165 |
+
|
166 |
+
if($sibling.length)
|
167 |
+
$sibling.before(field.$el);
|
168 |
+
|
169 |
+
}else if(field.has('after')){
|
170 |
+
|
171 |
+
// vars
|
172 |
+
$sibling = field.$el.siblings('[data-name="' + field.get('after') + '"]').first();
|
173 |
+
|
174 |
+
if($sibling.length)
|
175 |
+
$sibling.after(field.$el);
|
176 |
+
|
177 |
+
}
|
178 |
+
|
179 |
+
}
|
180 |
+
});
|
181 |
+
|
182 |
+
/*
|
183 |
+
* Tab Attribute: Before/After
|
184 |
+
*/
|
185 |
+
var Tab = acf.models.TabField;
|
186 |
+
|
187 |
+
acf.models.TabField = Tab.extend({
|
188 |
+
|
189 |
+
initialize: function(){
|
190 |
+
|
191 |
+
if(this.has('before')){
|
192 |
+
|
193 |
+
// vars
|
194 |
+
$sibling = this.$el.siblings('[data-name="' + this.get('before') + '"]').first();
|
195 |
+
|
196 |
+
if($sibling.length)
|
197 |
+
$sibling.before(this.$el);
|
198 |
+
|
199 |
+
}else if(this.has('after')){
|
200 |
+
|
201 |
+
// vars
|
202 |
+
$sibling = this.$el.siblings('[data-name="' + this.get('after') + '"]').first();
|
203 |
+
|
204 |
+
if($sibling.length)
|
205 |
+
$sibling.after(this.$el);
|
206 |
+
|
207 |
+
}
|
208 |
+
|
209 |
+
// Setup
|
210 |
+
Tab.prototype.initialize.apply(this, arguments);
|
211 |
+
|
212 |
+
}
|
213 |
+
|
214 |
+
});
|
215 |
+
|
216 |
+
/*
|
217 |
+
* Field Group: Locations - Date/Time Picker
|
218 |
+
*/
|
219 |
+
new acf.Model({
|
220 |
+
|
221 |
+
wait: 'ready',
|
222 |
+
|
223 |
+
actions:{
|
224 |
+
'append': 'onAppend',
|
225 |
+
'acfe/field_group/rule_refresh': 'refreshFields'
|
226 |
+
},
|
227 |
+
|
228 |
+
initialize: function(){
|
229 |
+
this.$el = $('#acf-field-group-locations');
|
230 |
+
},
|
231 |
+
|
232 |
+
onAppend: function($el){
|
233 |
+
|
234 |
+
if(!$el.is('.rule-group') && !$el.parent().parent().parent().is('.rule-group'))
|
235 |
+
return;
|
236 |
+
|
237 |
+
this.refreshFields();
|
238 |
+
|
239 |
+
},
|
240 |
+
|
241 |
+
refreshFields: function(){
|
242 |
+
|
243 |
+
var fields = acf.getFields({
|
244 |
+
parent: this.$('td.value')
|
245 |
+
});
|
246 |
+
|
247 |
+
fields.map(function(field){
|
248 |
+
|
249 |
+
if(!acfe.inArray(field.get('type'), ['date_picker', 'date_time_picker', 'time_picker']))
|
250 |
+
return;
|
251 |
+
|
252 |
+
field.$inputText().removeClass('hasDatepicker').removeAttr('id');
|
253 |
+
|
254 |
+
field.initialize();
|
255 |
+
|
256 |
+
});
|
257 |
+
|
258 |
+
}
|
259 |
+
|
260 |
+
});
|
261 |
+
|
262 |
+
/*
|
263 |
+
* Field Group: Meta
|
264 |
+
*/
|
265 |
+
new acf.Model({
|
266 |
+
|
267 |
+
actions: {
|
268 |
+
'new_field/name=acfe_meta': 'renderClass',
|
269 |
+
'new_field/name=acfe_settings': 'renderClass',
|
270 |
+
'new_field/name=acfe_validate': 'renderClass',
|
271 |
+
},
|
272 |
+
|
273 |
+
renderClass: function(field){
|
274 |
+
|
275 |
+
field.$('.acf-button').removeClass('button-primary');
|
276 |
+
|
277 |
+
}
|
278 |
+
|
279 |
+
});
|
280 |
+
|
281 |
+
/*
|
282 |
+
* Field Group Enhanced UI
|
283 |
+
*/
|
284 |
+
new acf.Model({
|
285 |
+
|
286 |
+
actions: {
|
287 |
+
'prepare_field/name=acfe_note': 'note',
|
288 |
+
'prepare_field/name=hide_on_screen': 'hideOnScreen',
|
289 |
+
'prepare_field/name=acfe_permissions': 'permissions',
|
290 |
+
'prepare_field/name=acfe_meta': 'meta',
|
291 |
+
},
|
292 |
+
|
293 |
+
getTab: function(field, key){
|
294 |
+
|
295 |
+
return field.$el.closest('.inside').find('.acf-tab-group a[data-key=' + key + ']');
|
296 |
+
|
297 |
+
},
|
298 |
+
|
299 |
+
hideOnScreen: function(field){
|
300 |
+
|
301 |
+
var $tab = this.getTab(field, 'screen');
|
302 |
+
var tabTitle = $tab.text();
|
303 |
+
|
304 |
+
var val = field.val();
|
305 |
+
$tab.html(tabTitle + (val.length ? ' <span class="acfe-tab-badge">' + val.length + '</span>' : ''));
|
306 |
+
|
307 |
+
field.on('change', function(){
|
308 |
+
|
309 |
+
var val = field.val();
|
310 |
+
$tab.html(tabTitle + (val.length ? ' <span class="acfe-tab-badge">' + val.length + '</span>' : ''));
|
311 |
+
|
312 |
+
});
|
313 |
+
|
314 |
+
},
|
315 |
+
|
316 |
+
permissions: function(field){
|
317 |
+
|
318 |
+
var $tab = this.getTab(field, 'permissions');
|
319 |
+
var tabTitle = $tab.text();
|
320 |
+
|
321 |
+
var val = field.val();
|
322 |
+
$tab.html(tabTitle + (val.length ? ' <span class="acfe-tab-badge">' + val.length + '</span>' : ''));
|
323 |
+
|
324 |
+
field.on('change', function(){
|
325 |
+
|
326 |
+
var val = field.val();
|
327 |
+
$tab.html(tabTitle + (val.length ? ' <span class="acfe-tab-badge">' + val.length + '</span>' : ''));
|
328 |
+
|
329 |
+
});
|
330 |
+
|
331 |
+
},
|
332 |
+
|
333 |
+
meta: function(field){
|
334 |
+
|
335 |
+
var $tab = this.getTab(field, 'advanced');
|
336 |
+
var tabTitle = $tab.text();
|
337 |
+
|
338 |
+
var val = field.val();
|
339 |
+
$tab.html(tabTitle + (val ? ' <span class="acfe-tab-badge">' + val + '</span>' : ''));
|
340 |
+
|
341 |
+
field.on('change', function(){
|
342 |
+
|
343 |
+
var val = field.val();
|
344 |
+
$tab.html(tabTitle + (val ? ' <span class="acfe-tab-badge">' + val + '</span>' : ''));
|
345 |
+
|
346 |
+
});
|
347 |
+
|
348 |
+
},
|
349 |
+
|
350 |
+
note: function(field){
|
351 |
+
|
352 |
+
var $tab = this.getTab(field, 'note');
|
353 |
+
var tabTitle = $tab.text();
|
354 |
+
|
355 |
+
var val = field.val();
|
356 |
+
$tab.html(tabTitle + (val.length ? ' <span class="acfe-tab-badge">1</span>' : ''));
|
357 |
+
|
358 |
+
field.on('change', function(){
|
359 |
+
|
360 |
+
var val = field.val();
|
361 |
+
$tab.html(tabTitle + (val.length ? ' <span class="acfe-tab-badge">1</span>' : ''));
|
362 |
+
|
363 |
+
});
|
364 |
+
|
365 |
+
},
|
366 |
+
|
367 |
+
});
|
368 |
+
|
369 |
+
/*
|
370 |
+
* Field Group Custom Slug
|
371 |
+
*/
|
372 |
+
new acf.Model({
|
373 |
+
|
374 |
+
events: {
|
375 |
+
'keyup #post_name': 'onInput'
|
376 |
+
},
|
377 |
+
|
378 |
+
onInput: function(e, $el){
|
379 |
+
|
380 |
+
var val = $el.val();
|
381 |
+
|
382 |
+
if(!val.startsWith('group_')){
|
383 |
+
|
384 |
+
val = 'group_' + val;
|
385 |
+
$el.val(val);
|
386 |
+
|
387 |
+
}
|
388 |
+
|
389 |
+
$('[name="acf_field_group[key]"]').val(val);
|
390 |
+
$('.misc-pub-acfe-field-group-key code').html(val);
|
391 |
+
|
392 |
+
},
|
393 |
+
|
394 |
+
});
|
395 |
+
|
396 |
+
/*
|
397 |
+
* Compatibility
|
398 |
+
*/
|
399 |
+
new acf.Model({
|
400 |
+
|
401 |
+
actions: {
|
402 |
+
'ready_field_object': 'flexibleContent'
|
403 |
+
},
|
404 |
+
|
405 |
+
// 0.8.4.5 Flexible Content: Fix duplicated "layout_settings" & "layout_title"
|
406 |
+
flexibleContent: function(field){
|
407 |
+
|
408 |
+
// field_acfe_layout_abc123456_settings + field_acfe_layout_abc123456_title
|
409 |
+
if(!field.get('key').startsWith('field_acfe_layout_'))
|
410 |
+
return;
|
411 |
+
|
412 |
+
field.delete();
|
413 |
+
|
414 |
+
},
|
415 |
+
|
416 |
+
});
|
417 |
+
|
418 |
+
})(jQuery);
|
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(o){var e;"undefined"!=typeof acf&&(new acf.Model({actions:{append_field_object:"appendCodeEditor"},appendCodeEditor:function(e){"acfe_code_editor"===e.get("type")&&(e.$setting("default_value").find("> .acf-input > .acf-input-wrap > .CodeMirror:last").remove(),e.$setting("placeholder").find("> .acf-input > .acf-input-wrap > .CodeMirror:last").remove())}}),new acf.Model({actions:{"change_field_label/type=acfe_column":"renderTitle","change_field_type/type=acfe_column":"renderTitle","render_field_settings/type=acfe_column":"renderField"},renderTitle:function(e){var a=acf.getInstance(e),t=a.$setting("columns"),e=acf.getInstance(t).getValue(),t=a.$setting("endpoint");acf.getInstance(t).getValue()?a.set("label","(Column endpoint)"):a.set("label","(Column "+e+")")},renderField:function(e){var a=acf.getFieldObject(e),e=function(){a.set("label",!0)};a.on("change",".acfe-field-columns",e),a.on("change",".acfe-field-columns-endpoint",e)}}),new acf.Model({filters:{"select2_ajax_data/action=acfe/fields/taxonomy_terms/allow_query":"taxonomyTermsAjax"},taxonomyTermsAjax:function(e,a,t,n,i){var l=t.closest(".acf-field-settings").find("> .acf-field-setting-taxonomy > .acf-input > select > option:selected"),s=[];l.each(function(){s.push(o(this).val())}),e.taxonomies=s;t=t.closest(".acf-field-settings").find('> .acf-field-setting-allow_terms > .acf-input input[type="number"]');return e.level=t.val(),e}}),new acf.Model({wait:"prepare",events:{"click .acfe_modal_open":"onClickOpen"},onClickOpen:function(e,a){new acfe.Popup(o(".acfe-modal[data-modal-key="+a.attr("data-modal-key")+"]"),{title:"Data",size:"medium",footer:acf.__("Close")})},initialize:function(){o(".button.edit-field").each(function(){var e=o(this).closest("tbody");o(e).find(".acfe_modal_open:first").insertAfter(o(this)),o(e).find(".acfe-modal:first").appendTo(o("body")),o(e).find("tr.acf-field-setting-acfe_field_data:first").remove()})}}),new acf.Model({actions:{new_field:"onNewField"},onNewField:function(e){var a;"tab"!==e.get("type")&&(e.has("before")?(a=e.$el.siblings('[data-name="'+e.get("before")+'"]').first()).length&&a.before(e.$el):e.has("after")&&(a=e.$el.siblings('[data-name="'+e.get("after")+'"]').first()).length&&a.after(e.$el))}}),e=acf.models.TabField,acf.models.TabField=e.extend({initialize:function(){this.has("before")?($sibling=this.$el.siblings('[data-name="'+this.get("before")+'"]').first(),$sibling.length&&$sibling.before(this.$el)):this.has("after")&&($sibling=this.$el.siblings('[data-name="'+this.get("after")+'"]').first(),$sibling.length&&$sibling.after(this.$el)),e.prototype.initialize.apply(this,arguments)}}),new acf.Model({wait:"ready",actions:{append:"onAppend","acfe/field_group/rule_refresh":"refreshFields"},initialize:function(){this.$el=o("#acf-field-group-locations")},onAppend:function(e){(e.is(".rule-group")||e.parent().parent().parent().is(".rule-group"))&&this.refreshFields()},refreshFields:function(){acf.getFields({parent:this.$("td.value")}).map(function(e){acfe.inArray(e.get("type"),["date_picker","date_time_picker","time_picker"])&&(e.$inputText().removeClass("hasDatepicker").removeAttr("id"),e.initialize())})}}),new acf.Model({actions:{"new_field/name=acfe_meta":"renderClass","new_field/name=acfe_settings":"renderClass","new_field/name=acfe_validate":"renderClass"},renderClass:function(e){e.$(".acf-button").removeClass("button-primary")}}),new acf.Model({actions:{"prepare_field/name=acfe_note":"note","prepare_field/name=hide_on_screen":"hideOnScreen","prepare_field/name=acfe_permissions":"permissions","prepare_field/name=acfe_meta":"meta"},getTab:function(e,a){return e.$el.closest(".inside").find(".acf-tab-group a[data-key="+a+"]")},hideOnScreen:function(a){var t=this.getTab(a,"screen"),n=t.text(),e=a.val();t.html(n+(e.length?' <span class="acfe-tab-badge">'+e.length+"</span>":"")),a.on("change",function(){var e=a.val();t.html(n+(e.length?' <span class="acfe-tab-badge">'+e.length+"</span>":""))})},permissions:function(a){var t=this.getTab(a,"permissions"),n=t.text(),e=a.val();t.html(n+(e.length?' <span class="acfe-tab-badge">'+e.length+"</span>":"")),a.on("change",function(){var e=a.val();t.html(n+(e.length?' <span class="acfe-tab-badge">'+e.length+"</span>":""))})},meta:function(a){var t=this.getTab(a,"advanced"),n=t.text(),e=a.val();t.html(n+(e?' <span class="acfe-tab-badge">'+e+"</span>":"")),a.on("change",function(){var e=a.val();t.html(n+(e?' <span class="acfe-tab-badge">'+e+"</span>":""))})},note:function(a){var t=this.getTab(a,"note"),n=t.text(),e=a.val();t.html(n+(e.length?' <span class="acfe-tab-badge">1</span>':"")),a.on("change",function(){var e=a.val();t.html(n+(e.length?' <span class="acfe-tab-badge">1</span>':""))})}}),new acf.Model({events:{"keyup #post_name":"onInput"},onInput:function(e,a){var t=a.val();t.startsWith("group_")||(t="group_"+t,a.val(t)),o('[name="acf_field_group[key]"]').val(t),o(".misc-pub-acfe-field-group-key code").html(t)}}),new acf.Model({actions:{ready_field_object:"flexibleContent"},flexibleContent:function(e){e.get("key").startsWith("field_acfe_layout_")&&e.delete()}}))}(jQuery);
|
@@ -1,514 +1,5 @@
|
|
1 |
(function($){
|
2 |
|
3 |
-
if(typeof acf === 'undefined')
|
4 |
-
return;
|
5 |
-
|
6 |
-
// init
|
7 |
-
var acfe = {};
|
8 |
-
|
9 |
-
window.acfe = acfe;
|
10 |
-
|
11 |
-
acfe.modal = {
|
12 |
-
|
13 |
-
modals: [],
|
14 |
-
|
15 |
-
// Open
|
16 |
-
open: function($target, args){
|
17 |
-
|
18 |
-
var model = this;
|
19 |
-
|
20 |
-
args = acf.parseArgs(args, {
|
21 |
-
title: '',
|
22 |
-
footer: false,
|
23 |
-
size: false,
|
24 |
-
destroy: false,
|
25 |
-
onOpen: false,
|
26 |
-
onClose: false,
|
27 |
-
});
|
28 |
-
|
29 |
-
model.args = args;
|
30 |
-
|
31 |
-
$target.addClass('-open');
|
32 |
-
|
33 |
-
if(args.size){
|
34 |
-
|
35 |
-
$target.addClass('-' + args.size);
|
36 |
-
|
37 |
-
}
|
38 |
-
|
39 |
-
if(!$target.find('> .acfe-modal-wrapper').length){
|
40 |
-
|
41 |
-
$target.wrapInner('<div class="acfe-modal-wrapper" />');
|
42 |
-
|
43 |
-
}
|
44 |
-
|
45 |
-
if(!$target.find('> .acfe-modal-wrapper > .acfe-modal-content').length){
|
46 |
-
|
47 |
-
$target.find('> .acfe-modal-wrapper').wrapInner('<div class="acfe-modal-content" />');
|
48 |
-
|
49 |
-
}
|
50 |
-
|
51 |
-
$target.find('> .acfe-modal-wrapper').prepend('<div class="acfe-modal-wrapper-overlay"></div><div class="acfe-modal-title"><span class="title">' + args.title + '</span><button class="close"></button></div>');
|
52 |
-
|
53 |
-
$target.find('.acfe-modal-title > .close').click(function(e){
|
54 |
-
|
55 |
-
e.preventDefault();
|
56 |
-
model.close(args);
|
57 |
-
|
58 |
-
});
|
59 |
-
|
60 |
-
if(args.footer){
|
61 |
-
|
62 |
-
$target.find('> .acfe-modal-wrapper').append('<div class="acfe-modal-footer"><button class="button button-primary">' + args.footer + '</button></div>');
|
63 |
-
|
64 |
-
$target.find('.acfe-modal-footer > button').click(function(e){
|
65 |
-
|
66 |
-
e.preventDefault();
|
67 |
-
model.close(args);
|
68 |
-
|
69 |
-
});
|
70 |
-
|
71 |
-
}
|
72 |
-
|
73 |
-
acfe.modal.modals.push($target);
|
74 |
-
|
75 |
-
var $body = $('body');
|
76 |
-
|
77 |
-
if(!$body.hasClass('acfe-modal-opened')){
|
78 |
-
|
79 |
-
var overlay = $('<div class="acfe-modal-overlay" />');
|
80 |
-
|
81 |
-
$body.addClass('acfe-modal-opened').append(overlay);
|
82 |
-
|
83 |
-
$body.find('.acfe-modal-overlay').click(function(e){
|
84 |
-
|
85 |
-
e.preventDefault();
|
86 |
-
model.close(model.args);
|
87 |
-
|
88 |
-
});
|
89 |
-
|
90 |
-
$(window).keydown(function(e){
|
91 |
-
|
92 |
-
if(e.keyCode !== 27 || !$('body').hasClass('acfe-modal-opened'))
|
93 |
-
return;
|
94 |
-
|
95 |
-
e.preventDefault();
|
96 |
-
model.close(model.args);
|
97 |
-
|
98 |
-
});
|
99 |
-
|
100 |
-
}
|
101 |
-
|
102 |
-
acfe.modal.multiple();
|
103 |
-
|
104 |
-
acfe.modal.onOpen($target, args);
|
105 |
-
|
106 |
-
acf.doAction('acfe/modal/open', $target, args);
|
107 |
-
|
108 |
-
return $target;
|
109 |
-
|
110 |
-
},
|
111 |
-
|
112 |
-
// Close
|
113 |
-
close: function(args){
|
114 |
-
|
115 |
-
args = acf.parseArgs(args, {
|
116 |
-
destroy: false,
|
117 |
-
onClose: false,
|
118 |
-
});
|
119 |
-
|
120 |
-
var $target = acfe.modal.modals.pop();
|
121 |
-
|
122 |
-
$target.find('.acfe-modal-wrapper-overlay').remove();
|
123 |
-
$target.find('.acfe-modal-title').remove();
|
124 |
-
$target.find('.acfe-modal-footer').remove();
|
125 |
-
|
126 |
-
$target.removeAttr('style');
|
127 |
-
|
128 |
-
//$target.removeClass('-open -small -medium -full');
|
129 |
-
$target.removeClass('-open');
|
130 |
-
|
131 |
-
if(args.destroy){
|
132 |
-
|
133 |
-
$target.remove();
|
134 |
-
|
135 |
-
}
|
136 |
-
|
137 |
-
if(!acfe.modal.modals.length){
|
138 |
-
|
139 |
-
$('.acfe-modal-overlay').remove();
|
140 |
-
$('body').removeClass('acfe-modal-opened');
|
141 |
-
|
142 |
-
}
|
143 |
-
|
144 |
-
acfe.modal.multiple();
|
145 |
-
|
146 |
-
acf.doAction('acfe/modal/close', $target, args);
|
147 |
-
|
148 |
-
acfe.modal.onClose($target, args);
|
149 |
-
|
150 |
-
},
|
151 |
-
|
152 |
-
// Multiple
|
153 |
-
multiple: function(){
|
154 |
-
|
155 |
-
var last = acfe.modal.modals.length - 1;
|
156 |
-
|
157 |
-
$.each(acfe.modal.modals, function(i){
|
158 |
-
|
159 |
-
if(last == i){
|
160 |
-
$(this).removeClass('acfe-modal-sub').css('margin-left', '');
|
161 |
-
return;
|
162 |
-
}
|
163 |
-
|
164 |
-
$(this).addClass('acfe-modal-sub').css('margin-left', - (500 / (i+1)));
|
165 |
-
|
166 |
-
});
|
167 |
-
|
168 |
-
},
|
169 |
-
|
170 |
-
onOpen: function($target, args){
|
171 |
-
|
172 |
-
if(!args.onOpen || !(args.onOpen instanceof Function))
|
173 |
-
return;
|
174 |
-
|
175 |
-
args.onOpen($target);
|
176 |
-
|
177 |
-
},
|
178 |
-
|
179 |
-
onClose: function($target, args){
|
180 |
-
|
181 |
-
if(!args.onClose || !(args.onClose instanceof Function))
|
182 |
-
return;
|
183 |
-
|
184 |
-
args.onClose($target);
|
185 |
-
|
186 |
-
}
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
};
|
191 |
-
|
192 |
-
acfe.filters = [];
|
193 |
-
|
194 |
-
acfe.disableFilters = function(){
|
195 |
-
|
196 |
-
acfe.filters = [];
|
197 |
-
|
198 |
-
};
|
199 |
-
|
200 |
-
acfe.enableFilter = function(name){
|
201 |
-
|
202 |
-
if(acfe.filters.indexOf(name) === -1)
|
203 |
-
acfe.filters.push(name);
|
204 |
-
|
205 |
-
};
|
206 |
-
|
207 |
-
acfe.disableFilter = function(name){
|
208 |
-
|
209 |
-
for(var i = acfe.filters.length; i--;){
|
210 |
-
|
211 |
-
if(acfe.filters[i] !== name)
|
212 |
-
continue;
|
213 |
-
|
214 |
-
acfe.filters.splice(i, 1);
|
215 |
-
|
216 |
-
}
|
217 |
-
|
218 |
-
};
|
219 |
-
|
220 |
-
acfe.isFilterEnabled = function(name){
|
221 |
-
|
222 |
-
return acfe.filters.indexOf(name) > -1;
|
223 |
-
|
224 |
-
};
|
225 |
-
|
226 |
-
acfe.getFilters = function(){
|
227 |
-
|
228 |
-
return acfe.filters;
|
229 |
-
|
230 |
-
};
|
231 |
-
|
232 |
-
acf.addAction('ready_field', function(field){
|
233 |
-
|
234 |
-
if(!field.has('acfeInstructionsTooltip'))
|
235 |
-
return;
|
236 |
-
|
237 |
-
var $label = field.$labelWrap().find('> label');
|
238 |
-
var $instructions = field.$labelWrap().find('> .description');
|
239 |
-
var instructions_html = $instructions.html();
|
240 |
-
var instructions_html_2 = field.get('acfeInstructionsTooltip');
|
241 |
-
|
242 |
-
var instructions = instructions_html_2;
|
243 |
-
|
244 |
-
if($instructions.length){
|
245 |
-
|
246 |
-
$instructions.remove();
|
247 |
-
instructions = instructions_html;
|
248 |
-
|
249 |
-
}
|
250 |
-
$label.before('<span class="acfe-field-tooltip acf-js-tooltip dashicons dashicons-info" title="' + _.escape(instructions) + '"></span>');
|
251 |
-
|
252 |
-
});
|
253 |
-
|
254 |
-
var acfe_form_move_instructions_above = function(field){
|
255 |
-
|
256 |
-
var $instructions = field.$el.find('> .acf-label > .description');
|
257 |
-
|
258 |
-
field.$el.find('> .acf-input').prepend($instructions);
|
259 |
-
|
260 |
-
};
|
261 |
-
|
262 |
-
var acfe_form_move_instructions_below = function(field){
|
263 |
-
|
264 |
-
var $instructions = field.$el.find('> .acf-label > .description');
|
265 |
-
|
266 |
-
field.$el.find('> .acf-input').append($instructions);
|
267 |
-
|
268 |
-
};
|
269 |
-
|
270 |
-
acf.addAction('new_field/name=acfe_form_updated_message', acfe_form_move_instructions_below);
|
271 |
-
acf.addAction('new_field/name=acfe_form_return', acfe_form_move_instructions_below);
|
272 |
-
|
273 |
-
acf.addAction('new_field/name=acfe_form_custom_alias', acfe_form_move_instructions_below);
|
274 |
-
acf.addAction('new_field/name=acfe_form_custom_query_var', acfe_form_move_instructions_below);
|
275 |
-
|
276 |
-
acf.addAction('new_field/name=acfe_form_email_content', acfe_form_move_instructions_below);
|
277 |
-
|
278 |
-
acf.addAction('new_field/name=acfe_form_post_save_target', acfe_form_move_instructions_below);
|
279 |
-
acf.addAction('new_field/name=acfe_form_post_load_source', acfe_form_move_instructions_below);
|
280 |
-
|
281 |
-
acf.addAction('new_field/name=acfe_form_term_save_target', acfe_form_move_instructions_below);
|
282 |
-
acf.addAction('new_field/name=acfe_form_term_load_source', acfe_form_move_instructions_below);
|
283 |
-
|
284 |
-
acf.addAction('new_field/name=acfe_form_user_save_target', acfe_form_move_instructions_below);
|
285 |
-
acf.addAction('new_field/name=acfe_form_user_load_source', acfe_form_move_instructions_below);
|
286 |
-
|
287 |
-
acf.addAction('new_field/name=acfe_form_email_files', function(field){
|
288 |
-
|
289 |
-
field.$el.find('> .acf-input > .acf-repeater > .acf-actions > .acf-button').removeClass('button-primary');
|
290 |
-
|
291 |
-
});
|
292 |
-
|
293 |
-
acf.addAction('new_field/name=acfe_form_email_files_static', function(field){
|
294 |
-
|
295 |
-
field.$el.find('> .acf-input > .acf-repeater > .acf-actions > .acf-button').removeClass('button-primary');
|
296 |
-
|
297 |
-
});
|
298 |
-
|
299 |
-
function acfe_dev_meta_count(){
|
300 |
-
|
301 |
-
var $wp_meta_count = $('#acfe-wp-custom-fields .acfe_dev_meta_count');
|
302 |
-
var $acf_meta_count = $('#acfe-acf-custom-fields .acfe_dev_meta_count');
|
303 |
-
|
304 |
-
$wp_meta_count.text($('#acfe-wp-custom-fields tbody tr').length);
|
305 |
-
$acf_meta_count.text($('#acfe-acf-custom-fields tbody tr').length);
|
306 |
-
|
307 |
-
}
|
308 |
-
|
309 |
-
acf.addAction('prepare', function(){
|
310 |
-
|
311 |
-
var $acf_meta = $('#acfe-acf-custom-fields');
|
312 |
-
var $wp_meta = $('#acfe-wp-custom-fields');
|
313 |
-
var $bulk_actions = $('.acfe_dev_bulk_actions');
|
314 |
-
|
315 |
-
// Move Bulk Button
|
316 |
-
$('#acfe-wp-custom-fields .tablenav.bottom').insertAfter($wp_meta);
|
317 |
-
$('#acfe-acf-custom-fields .tablenav.bottom').insertAfter($acf_meta);
|
318 |
-
|
319 |
-
if(!$acf_meta.is(':visible') && !$wp_meta.is(':visible')){
|
320 |
-
|
321 |
-
$bulk_actions.hide();
|
322 |
-
|
323 |
-
}
|
324 |
-
|
325 |
-
// Bulk Delete
|
326 |
-
$('#acfe_bulk_deleta_meta_submit').click(function(e){
|
327 |
-
|
328 |
-
e.preventDefault();
|
329 |
-
var $this = $(this);
|
330 |
-
|
331 |
-
var action = $this.prevAll('.acfe_bulk_delete_meta_action').val();
|
332 |
-
var type = $this.prevAll('.acfe_bulk_delete_meta_type').val();
|
333 |
-
var nonce = $this.prevAll('.acfe_bulk_delete_meta_nonce').val();
|
334 |
-
|
335 |
-
if(action === 'delete'){
|
336 |
-
|
337 |
-
var ids = [];
|
338 |
-
var trs = [];
|
339 |
-
|
340 |
-
$('#acfe-wp-custom-fields input.acfe_bulk_delete_meta:checked').each(function(){
|
341 |
-
|
342 |
-
ids.push($(this).val());
|
343 |
-
trs.push($(this).closest('tr'));
|
344 |
-
|
345 |
-
});
|
346 |
-
|
347 |
-
$('#acfe-acf-custom-fields input.acfe_bulk_delete_meta:checked').each(function(){
|
348 |
-
|
349 |
-
ids.push($(this).val());
|
350 |
-
trs.push($(this).closest('tr'));
|
351 |
-
|
352 |
-
});
|
353 |
-
|
354 |
-
if(ids.length){
|
355 |
-
|
356 |
-
var ajaxData = {
|
357 |
-
action: 'acfe/bulk_delete_meta',
|
358 |
-
ids: ids,
|
359 |
-
type: type,
|
360 |
-
_wpnonce: nonce,
|
361 |
-
};
|
362 |
-
|
363 |
-
$.ajax({
|
364 |
-
url: acf.get('ajaxurl'),
|
365 |
-
data: ajaxData,
|
366 |
-
type: 'post',
|
367 |
-
beforeSend: function(){
|
368 |
-
|
369 |
-
$.each(trs, function(){
|
370 |
-
|
371 |
-
$(this).css({backgroundColor:'#faafaa'}).fadeOut(350, function(){
|
372 |
-
$(this).remove();
|
373 |
-
});
|
374 |
-
|
375 |
-
});
|
376 |
-
|
377 |
-
setTimeout(function(){
|
378 |
-
|
379 |
-
if(!$('#acfe-wp-custom-fields tbody tr').length){
|
380 |
-
|
381 |
-
$wp_meta.remove();
|
382 |
-
|
383 |
-
}
|
384 |
-
|
385 |
-
if(!$('#acfe-acf-custom-fields tbody tr').length){
|
386 |
-
|
387 |
-
$acf_meta.remove();
|
388 |
-
|
389 |
-
}
|
390 |
-
|
391 |
-
if(!$('#acfe-wp-custom-fields tbody tr').length && !$('#acfe-acf-custom-fields tbody tr').length){
|
392 |
-
|
393 |
-
$bulk_actions.remove();
|
394 |
-
|
395 |
-
}
|
396 |
-
|
397 |
-
acfe_dev_meta_count();
|
398 |
-
|
399 |
-
}, 351);
|
400 |
-
|
401 |
-
},
|
402 |
-
success: function(response){
|
403 |
-
|
404 |
-
if(response !== '1'){
|
405 |
-
|
406 |
-
}
|
407 |
-
|
408 |
-
}
|
409 |
-
});
|
410 |
-
|
411 |
-
}
|
412 |
-
|
413 |
-
}
|
414 |
-
|
415 |
-
});
|
416 |
-
|
417 |
-
// Single Delete
|
418 |
-
$('.acfe_delete_meta').click(function(e){
|
419 |
-
|
420 |
-
e.preventDefault();
|
421 |
-
var $this = $(this);
|
422 |
-
var $tr = $this.closest('tr');
|
423 |
-
var $tbody = $this.closest('tbody');
|
424 |
-
var $postbox = $this.closest('.postbox');
|
425 |
-
|
426 |
-
var ajaxData = {
|
427 |
-
action: 'acfe/delete_meta',
|
428 |
-
id: $this.attr('data-meta-id'),
|
429 |
-
key: $this.attr('data-meta-key'),
|
430 |
-
type: $this.attr('data-type'),
|
431 |
-
_wpnonce: $this.attr('data-nonce'),
|
432 |
-
};
|
433 |
-
|
434 |
-
$.ajax({
|
435 |
-
url: acf.get('ajaxurl'),
|
436 |
-
data: ajaxData,
|
437 |
-
type: 'post',
|
438 |
-
beforeSend: function(){
|
439 |
-
|
440 |
-
var $tr = $this.closest('tr');
|
441 |
-
|
442 |
-
$tr.css({backgroundColor:'#faafaa'}).fadeOut(350, function(){
|
443 |
-
$(this).remove();
|
444 |
-
});
|
445 |
-
|
446 |
-
setTimeout(function(){
|
447 |
-
|
448 |
-
if(!$tbody.find('tr').length){
|
449 |
-
|
450 |
-
$postbox.remove();
|
451 |
-
|
452 |
-
}
|
453 |
-
|
454 |
-
if(!$('#acfe-wp-custom-fields tbody tr').length && !$('#acfe-acf-custom-fields tbody tr').length){
|
455 |
-
|
456 |
-
$bulk_actions.remove();
|
457 |
-
|
458 |
-
}
|
459 |
-
|
460 |
-
acfe_dev_meta_count();
|
461 |
-
|
462 |
-
}, 351);
|
463 |
-
|
464 |
-
},
|
465 |
-
success: function(response){
|
466 |
-
|
467 |
-
if(response !== '1'){
|
468 |
-
|
469 |
-
$tr.css({backgroundColor:''});
|
470 |
-
$tr.show();
|
471 |
-
|
472 |
-
}
|
473 |
-
|
474 |
-
}
|
475 |
-
});
|
476 |
-
|
477 |
-
});
|
478 |
-
|
479 |
-
/*
|
480 |
-
* Screen preference for builk actions
|
481 |
-
*/
|
482 |
-
$('.hide-postbox-tog').bind('click.postboxes', function(){
|
483 |
-
|
484 |
-
var $el = $(this),
|
485 |
-
boxId = $el.val();
|
486 |
-
|
487 |
-
if(boxId !== 'acfe-wp-custom-fields' && boxId !== 'acfe-acf-custom-fields')
|
488 |
-
return;
|
489 |
-
|
490 |
-
if($el.prop('checked')){
|
491 |
-
|
492 |
-
if(!$bulk_actions.is(':visible'))
|
493 |
-
$bulk_actions.show();
|
494 |
-
|
495 |
-
}else{
|
496 |
-
|
497 |
-
if((boxId === 'acfe-wp-custom-fields' && !$acf_meta.is(':visible')) || (boxId === 'acfe-acf-custom-fields' && !$wp_meta.is(':visible'))){
|
498 |
-
|
499 |
-
$bulk_actions.hide();
|
500 |
-
|
501 |
-
}
|
502 |
-
|
503 |
-
}
|
504 |
-
|
505 |
-
});
|
506 |
-
|
507 |
-
});
|
508 |
-
|
509 |
-
})(jQuery);
|
510 |
-
(function($){
|
511 |
-
|
512 |
if(typeof acf === 'undefined')
|
513 |
return;
|
514 |
|
@@ -521,10 +12,10 @@
|
|
521 |
/*
|
522 |
* Drag & Drop
|
523 |
*/
|
524 |
-
model.addSortable = function(
|
525 |
|
526 |
// bail early if max 1 row
|
527 |
-
if(
|
528 |
return;
|
529 |
}
|
530 |
|
@@ -534,6 +25,7 @@
|
|
534 |
handle: '> .acf-fc-layout-handle',
|
535 |
forceHelperSize: false, // Changed to false
|
536 |
forcePlaceholderSize: true,
|
|
|
537 |
tolerance: "pointer", // Changed to pointer
|
538 |
scroll: true,
|
539 |
stop: function(event, ui) {
|
@@ -570,8 +62,12 @@
|
|
570 |
});
|
571 |
|
572 |
// Hide native tooltip
|
573 |
-
|
574 |
-
|
|
|
|
|
|
|
|
|
575 |
|
576 |
};
|
577 |
|
@@ -926,6 +422,18 @@
|
|
926 |
scrollTop: parseInt($el.offset().top) - 200
|
927 |
}, 200);
|
928 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
929 |
}
|
930 |
|
931 |
}
|
@@ -1101,20 +609,16 @@
|
|
1101 |
var $layout_title = $handle.find('.acfe-layout-title-text').text();
|
1102 |
|
1103 |
// Open modal
|
1104 |
-
acfe.
|
1105 |
title: $layout_order + ' ' + $layout_title,
|
1106 |
footer: acf.__('Close'),
|
1107 |
-
onOpen: function(){
|
1108 |
-
|
1109 |
-
},
|
1110 |
onClose: function(){
|
1111 |
-
|
1112 |
-
if(flexible.has('acfeFlexiblePreview'))
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
}
|
1119 |
});
|
1120 |
|
@@ -1907,21 +1411,16 @@
|
|
1907 |
}
|
1908 |
|
1909 |
// Get Categories
|
1910 |
-
$(layouts).find('li a span').each(function(){
|
1911 |
-
|
1912 |
-
var $link = $(this);
|
1913 |
-
|
1914 |
-
if(!$link.data('acfe-flexible-category'))
|
1915 |
-
return true;
|
1916 |
|
1917 |
-
var
|
1918 |
|
1919 |
-
$.each(
|
1920 |
|
1921 |
-
if(SearchArray(
|
1922 |
-
return
|
1923 |
|
1924 |
-
categories.array.push(
|
1925 |
|
1926 |
});
|
1927 |
|
@@ -1947,10 +1446,11 @@
|
|
1947 |
}
|
1948 |
|
1949 |
// Modal Title
|
1950 |
-
var
|
1951 |
|
1952 |
-
if(flexible.has('acfeFlexibleModalTitle'))
|
1953 |
-
|
|
|
1954 |
|
1955 |
// Create Modal
|
1956 |
var $modal = $('' +
|
@@ -1966,66 +1466,37 @@
|
|
1966 |
).appendTo('body');
|
1967 |
|
1968 |
// Open Modal
|
1969 |
-
|
1970 |
-
title:
|
1971 |
size: 'full',
|
1972 |
destroy: true
|
1973 |
});
|
1974 |
|
1975 |
// Modal: Columns
|
1976 |
-
if(flexible.has('acfeFlexibleModalCol'))
|
|
|
1977 |
$modal.find('.acfe-modal-content .acfe-flex-container').addClass('acfe-col-' + flexible.get('acfeFlexibleModalCol'));
|
1978 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1979 |
// Modal: ACF autofocus fix
|
1980 |
$modal.find('li:first-of-type a').blur();
|
1981 |
-
|
1982 |
-
//
|
1983 |
-
|
1984 |
-
|
1985 |
-
|
1986 |
-
|
1987 |
-
return $(this).data('layout') === name;
|
1988 |
-
}).length;
|
1989 |
-
|
1990 |
-
};
|
1991 |
-
|
1992 |
-
$modal.find('a[data-layout]').each(function(){
|
1993 |
-
|
1994 |
-
// vars
|
1995 |
-
var $a = $(this);
|
1996 |
-
var min = $a.data('min') || 0;
|
1997 |
-
var max = $a.data('max') || 0;
|
1998 |
-
var name = $a.data('layout') || '';
|
1999 |
-
var count = countLayouts( name );
|
2000 |
-
|
2001 |
-
// max
|
2002 |
-
if(max && count >= max){
|
2003 |
-
$a.addClass('disabled');
|
2004 |
-
return;
|
2005 |
-
}
|
2006 |
-
|
2007 |
-
// min
|
2008 |
-
if(min && count < min){
|
2009 |
-
|
2010 |
-
// vars
|
2011 |
-
var required = min - count;
|
2012 |
-
var title = acf.__('{required} {label} {identifier} required (min {min})');
|
2013 |
-
var identifier = acf._n('layout', 'layouts', required);
|
2014 |
-
|
2015 |
-
// translate
|
2016 |
-
title = title.replace('{required}', required);
|
2017 |
-
title = title.replace('{label}', name); // 5.5.0
|
2018 |
-
title = title.replace('{identifier}', identifier);
|
2019 |
-
title = title.replace('{min}', min);
|
2020 |
-
|
2021 |
-
// badge
|
2022 |
-
$a.append('<span class="badge" title="' + title + '">' + required + '</span>');
|
2023 |
-
|
2024 |
-
}
|
2025 |
-
|
2026 |
});
|
2027 |
-
|
2028 |
-
// Modal: Click
|
2029 |
$modal.find('.acfe-flexible-categories a').click(function(e){
|
2030 |
|
2031 |
e.preventDefault();
|
@@ -2037,7 +1508,7 @@
|
|
2037 |
|
2038 |
var selected_category = $link.data('acfe-flexible-category');
|
2039 |
|
2040 |
-
$modal.find('a[data-layout] span').each(function(){
|
2041 |
|
2042 |
// Get span
|
2043 |
var $span = $(this);
|
@@ -2077,10 +1548,10 @@
|
|
2077 |
e.preventDefault();
|
2078 |
|
2079 |
// Close modal
|
2080 |
-
acfe.
|
2081 |
|
2082 |
// Add layout
|
2083 |
-
|
2084 |
layout: $(this).data('layout'),
|
2085 |
before: $layout_source
|
2086 |
});
|
@@ -2149,18 +1620,18 @@
|
|
2149 |
}
|
2150 |
|
2151 |
// Open modal
|
2152 |
-
acfe.
|
2153 |
title: $layout_order + ' ' + $layout_title,
|
2154 |
footer: close,
|
2155 |
onOpen: function(){
|
2156 |
-
|
2157 |
flexible.openLayout($layout);
|
2158 |
-
|
2159 |
},
|
2160 |
onClose: function(){
|
2161 |
-
|
2162 |
flexible.closeLayout($layout);
|
2163 |
-
|
2164 |
}
|
2165 |
});
|
2166 |
|
@@ -2184,20 +1655,18 @@
|
|
2184 |
});
|
2185 |
|
2186 |
})(jQuery);
|
|
|
|
|
|
|
2187 |
function acfe_recaptcha(){
|
2188 |
|
2189 |
(function($){
|
2190 |
|
2191 |
if(typeof acf === 'undefined')
|
2192 |
return;
|
2193 |
-
|
2194 |
-
|
2195 |
-
|
2196 |
-
*/
|
2197 |
-
$.each(acf.getFields({type: 'acfe_recaptcha'}), function(i, field){
|
2198 |
-
|
2199 |
-
field.render();
|
2200 |
-
|
2201 |
});
|
2202 |
|
2203 |
})(jQuery);
|
@@ -2209,7 +1678,7 @@ function acfe_recaptcha(){
|
|
2209 |
if(typeof acf === 'undefined')
|
2210 |
return;
|
2211 |
|
2212 |
-
|
2213 |
* Field: reCaptcha
|
2214 |
*/
|
2215 |
var reCaptcha = acf.Field.extend({
|
@@ -2303,7 +1772,7 @@ function acfe_recaptcha(){
|
|
2303 |
|
2304 |
acf.registerFieldType(reCaptcha);
|
2305 |
|
2306 |
-
|
2307 |
* Field: Code Editor
|
2308 |
*/
|
2309 |
var CodeEditor = acf.Field.extend({
|
@@ -2411,150 +1880,22 @@ function acfe_recaptcha(){
|
|
2411 |
});
|
2412 |
|
2413 |
},
|
2414 |
-
|
2415 |
-
onShow: function(){
|
2416 |
-
|
2417 |
-
if(this.editor.codemirror){
|
2418 |
-
|
2419 |
-
this.editor.codemirror.refresh();
|
2420 |
-
|
2421 |
-
}
|
2422 |
-
|
2423 |
-
},
|
2424 |
-
|
2425 |
-
});
|
2426 |
-
|
2427 |
-
acf.registerFieldType(CodeEditor);
|
2428 |
-
|
2429 |
-
acf.registerConditionForFieldType('equalTo', 'acfe_code_editor');
|
2430 |
-
acf.registerConditionForFieldType('notEqualTo', 'acfe_code_editor');
|
2431 |
-
acf.registerConditionForFieldType('patternMatch', 'acfe_code_editor');
|
2432 |
-
acf.registerConditionForFieldType('contains', 'acfe_code_editor');
|
2433 |
-
acf.registerConditionForFieldType('hasValue', 'acfe_code_editor');
|
2434 |
-
acf.registerConditionForFieldType('hasNoValue', 'acfe_code_editor');
|
2435 |
-
|
2436 |
-
/**
|
2437 |
-
* Field Group Admin: Code Editor
|
2438 |
-
* Fix duplicate action
|
2439 |
-
*/
|
2440 |
-
acf.addAction('append_field_object', function(field){
|
2441 |
-
|
2442 |
-
if(field.get('type') !== 'acfe_code_editor')
|
2443 |
-
return;
|
2444 |
-
|
2445 |
-
field.$setting('default_value').find('> .acf-input > .acf-input-wrap > .CodeMirror:last').remove();
|
2446 |
-
field.$setting('placeholder').find('> .acf-input > .acf-input-wrap > .CodeMirror:last').remove();
|
2447 |
-
|
2448 |
-
});
|
2449 |
-
|
2450 |
-
/*
|
2451 |
-
var preCodeMirror = new acf.Model({
|
2452 |
-
codemirror: false,
|
2453 |
-
data: {
|
2454 |
-
type: 'pre',
|
2455 |
-
mode: 'htmlmixed',
|
2456 |
-
codemirror: false,
|
2457 |
-
},
|
2458 |
-
actions: {
|
2459 |
-
'new_field': 'new_field',
|
2460 |
-
},
|
2461 |
-
new_field: function(field){
|
2462 |
-
|
2463 |
-
var self = this;
|
2464 |
-
|
2465 |
-
field.$('pre[data-codemirror]:visible, code[data-codemirror]:visible').each(function(){
|
2466 |
-
|
2467 |
-
self.setup(this);
|
2468 |
-
|
2469 |
-
});
|
2470 |
-
|
2471 |
-
},
|
2472 |
-
setup: function(el){
|
2473 |
-
|
2474 |
-
this.$el = $(el);
|
2475 |
-
|
2476 |
-
this.set('type', this.$el.prop('tagName').toLowerCase());
|
2477 |
-
this.set('mode', this.$el.attr('data-codemirror'));
|
2478 |
-
|
2479 |
-
if(this.get('mode') === 'php'){
|
2480 |
-
|
2481 |
-
this.set('mode', 'application/x-httpd-php');
|
2482 |
-
|
2483 |
-
}else if(this.get('mode') === 'php-plain'){
|
2484 |
-
|
2485 |
-
this.set('mode', 'text/x-php');
|
2486 |
-
|
2487 |
-
}else if(this.get('mode') === 'html'){
|
2488 |
-
|
2489 |
-
this.set('mode', 'text/html');
|
2490 |
-
|
2491 |
-
}else if(this.get('mode') === 'javascript'){
|
2492 |
-
|
2493 |
-
this.set('mode', 'javascript');
|
2494 |
-
|
2495 |
-
}else if(this.get('mode') === 'css'){
|
2496 |
-
|
2497 |
-
this.set('mode', 'css');
|
2498 |
-
|
2499 |
-
}
|
2500 |
-
|
2501 |
-
this.render();
|
2502 |
-
|
2503 |
-
this.getClosestField();
|
2504 |
-
|
2505 |
-
},
|
2506 |
-
initialize: function(){
|
2507 |
-
// ...
|
2508 |
-
},
|
2509 |
-
render: function(){
|
2510 |
-
|
2511 |
-
var $code = this.$el.html();
|
2512 |
-
var $div = $('<div class="' + this.get('type') + '-codemirror" />').insertAfter(this.$el);
|
2513 |
-
var $unescaped = this.$el.html($code).text();
|
2514 |
-
|
2515 |
-
this.codemirror = wp.CodeMirror($div[0], {
|
2516 |
-
value: $unescaped,
|
2517 |
-
mode: this.get('mode'),
|
2518 |
-
lineNumbers: false,
|
2519 |
-
lineWrapping: false,
|
2520 |
-
styleActiveLine: false,
|
2521 |
-
continueComments: true,
|
2522 |
-
indentUnit: 4,
|
2523 |
-
tabSize: 1,
|
2524 |
-
readOnly: true,
|
2525 |
-
});
|
2526 |
-
|
2527 |
-
this.$el.remove();
|
2528 |
-
|
2529 |
-
},
|
2530 |
-
refresh: function(){
|
2531 |
-
|
2532 |
-
if(this.codemirror)
|
2533 |
-
this.codemirror.refresh();
|
2534 |
-
|
2535 |
-
},
|
2536 |
-
getClosestField: function(){
|
2537 |
-
|
2538 |
-
var self = this;
|
2539 |
-
|
2540 |
-
field = acf.getClosestField(this.$el);
|
2541 |
|
2542 |
-
if(
|
2543 |
|
2544 |
-
|
2545 |
-
|
2546 |
-
self.refresh();
|
2547 |
-
|
2548 |
-
});
|
2549 |
|
2550 |
}
|
2551 |
|
2552 |
-
}
|
2553 |
|
2554 |
});
|
2555 |
-
|
|
|
2556 |
|
2557 |
-
|
2558 |
* Field: Textarea
|
2559 |
*/
|
2560 |
var Textarea = acf.Field.extend({
|
@@ -2593,7 +1934,7 @@ function acfe_recaptcha(){
|
|
2593 |
|
2594 |
acf.registerFieldType(Textarea);
|
2595 |
|
2596 |
-
|
2597 |
* Field: Slug
|
2598 |
*/
|
2599 |
var ACFE_Slug = acf.Field.extend({
|
@@ -2628,14 +1969,7 @@ function acfe_recaptcha(){
|
|
2628 |
|
2629 |
acf.registerFieldType(ACFE_Slug);
|
2630 |
|
2631 |
-
|
2632 |
-
acf.registerConditionForFieldType('notEqualTo', 'acfe_slug');
|
2633 |
-
acf.registerConditionForFieldType('patternMatch', 'acfe_slug');
|
2634 |
-
acf.registerConditionForFieldType('contains', 'acfe_slug');
|
2635 |
-
acf.registerConditionForFieldType('hasValue', 'acfe_slug');
|
2636 |
-
acf.registerConditionForFieldType('hasNoValue', 'acfe_slug');
|
2637 |
-
|
2638 |
-
/**
|
2639 |
* Field: Button
|
2640 |
*/
|
2641 |
var ACFE_Button = acf.Field.extend({
|
@@ -2736,7 +2070,7 @@ function acfe_recaptcha(){
|
|
2736 |
|
2737 |
acf.registerFieldType(ACFE_Button);
|
2738 |
|
2739 |
-
|
2740 |
* Field: Advanced Link
|
2741 |
*/
|
2742 |
var ACFE_Advanced_Link = acf.Field.extend({
|
@@ -2832,8 +2166,8 @@ function acfe_recaptcha(){
|
|
2832 |
var title = $modal.attr('data-modal-title');
|
2833 |
|
2834 |
var model = this;
|
2835 |
-
|
2836 |
-
acfe.
|
2837 |
title: title,
|
2838 |
size: 'medium',
|
2839 |
footer: acf.__('Close'),
|
@@ -2866,52 +2200,64 @@ function acfe_recaptcha(){
|
|
2866 |
|
2867 |
acf.registerFieldType(ACFE_Advanced_Link);
|
2868 |
|
2869 |
-
|
2870 |
-
* Field: Advanced Link
|
2871 |
*/
|
2872 |
-
acf.
|
2873 |
-
|
2874 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2875 |
return ajaxData;
|
2876 |
-
|
2877 |
-
|
2878 |
-
|
2879 |
-
if(advanced_link){
|
2880 |
-
|
2881 |
-
ajaxData.field_key = advanced_link.get('key');
|
2882 |
-
|
2883 |
-
}
|
2884 |
-
|
2885 |
-
return ajaxData;
|
2886 |
-
|
2887 |
});
|
2888 |
|
2889 |
/*
|
2890 |
-
* Field: Advanced Link - Error
|
2891 |
-
*/
|
2892 |
-
acf.addAction('invalid_field', function(field){
|
2893 |
-
|
2894 |
-
var $advanced_link = field.$el.closest('.acf-field-acfe-advanced-link').not('.acf-error');
|
2895 |
-
|
2896 |
-
if($advanced_link.length){
|
2897 |
-
|
2898 |
-
var advanced_link_field = acf.getInstance($advanced_link);
|
2899 |
-
|
2900 |
-
advanced_link_field.showError(field.notice.get('text'));
|
2901 |
-
|
2902 |
-
}
|
2903 |
-
|
2904 |
-
});
|
2905 |
-
|
2906 |
-
/**
|
2907 |
* Field: Group
|
2908 |
*/
|
2909 |
var Group = acf.Field.extend({
|
|
|
|
|
2910 |
|
2911 |
type: 'group',
|
2912 |
|
2913 |
events: {
|
2914 |
'click [data-name="edit"]': 'onClick',
|
|
|
2915 |
},
|
2916 |
|
2917 |
initialize: function(){
|
@@ -2958,27 +2304,34 @@ function acfe_recaptcha(){
|
|
2958 |
}
|
2959 |
|
2960 |
// Open modal
|
2961 |
-
acfe.
|
2962 |
title: title,
|
2963 |
size: size,
|
2964 |
footer: close
|
2965 |
});
|
2966 |
|
2967 |
},
|
|
|
|
|
|
|
|
|
2968 |
|
2969 |
});
|
2970 |
|
2971 |
acf.registerFieldType(Group);
|
2972 |
|
2973 |
-
|
2974 |
* Field: Clone
|
2975 |
*/
|
2976 |
var Clone = acf.Field.extend({
|
|
|
|
|
2977 |
|
2978 |
type: 'clone',
|
2979 |
|
2980 |
events: {
|
2981 |
'click [data-name="edit"]': 'onClick',
|
|
|
2982 |
},
|
2983 |
|
2984 |
initialize: function(){
|
@@ -3026,19 +2379,23 @@ function acfe_recaptcha(){
|
|
3026 |
}
|
3027 |
|
3028 |
// Open modal
|
3029 |
-
acfe.
|
3030 |
title: title,
|
3031 |
size: size,
|
3032 |
footer: close
|
3033 |
});
|
3034 |
|
3035 |
},
|
|
|
|
|
|
|
|
|
3036 |
|
3037 |
});
|
3038 |
|
3039 |
acf.registerFieldType(Clone);
|
3040 |
|
3041 |
-
|
3042 |
* Field: Column
|
3043 |
*/
|
3044 |
var Column = acf.Field.extend({
|
@@ -3083,242 +2440,485 @@ function acfe_recaptcha(){
|
|
3083 |
$wrap.append($field.nextUntil('.acf-field-acfe-column', '.acf-field'));
|
3084 |
|
3085 |
}
|
3086 |
-
|
3087 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3088 |
|
3089 |
-
acf.registerFieldType(Column);
|
3090 |
-
|
3091 |
-
/**
|
3092 |
-
* Field: Taxonomy Terms - Ajax
|
3093 |
-
*/
|
3094 |
-
acf.addFilter('select2_ajax_data/action=acfe/fields/taxonomy_terms/allow_query', function(ajaxData, data, $el, field, select){
|
3095 |
-
|
3096 |
-
// Taxonomies
|
3097 |
-
var $taxonomies = $el.closest('.acf-field-settings').find('> .acf-field-setting-taxonomy > .acf-input > select > option:selected');
|
3098 |
-
|
3099 |
-
var tax = [];
|
3100 |
-
|
3101 |
-
$taxonomies.each(function(){
|
3102 |
-
tax.push($(this).val());
|
3103 |
-
});
|
3104 |
-
|
3105 |
-
ajaxData.taxonomies = tax;
|
3106 |
-
|
3107 |
-
// Terms level
|
3108 |
-
var $level = $el.closest('.acf-field-settings').find('> .acf-field-setting-allow_terms > .acf-input input[type="number"]');
|
3109 |
-
|
3110 |
-
ajaxData.level = $level.val();
|
3111 |
-
|
3112 |
-
return ajaxData;
|
3113 |
-
|
3114 |
});
|
3115 |
-
|
3116 |
-
|
3117 |
-
*
|
3118 |
*/
|
3119 |
-
acf.
|
3120 |
-
|
3121 |
-
|
3122 |
-
|
3123 |
-
|
3124 |
-
|
3125 |
-
|
3126 |
-
|
3127 |
-
|
3128 |
-
|
3129 |
-
|
3130 |
-
|
3131 |
-
|
3132 |
-
|
3133 |
-
|
3134 |
-
}
|
3135 |
-
|
3136 |
-
}else{
|
3137 |
-
|
3138 |
-
$('.select2-search.select2-search--dropdown > .select2-search__field').attr('placeholder', search_placeholder);
|
3139 |
-
|
3140 |
-
}
|
3141 |
-
|
3142 |
});
|
3143 |
-
|
3144 |
-
if(field.
|
3145 |
-
|
3146 |
-
|
3147 |
-
|
3148 |
-
|
3149 |
-
|
3150 |
-
field.$('.select2-search__field').attr('placeholder', field.get('placeholder'));
|
3151 |
-
|
3152 |
-
}
|
3153 |
-
|
3154 |
});
|
3155 |
-
|
3156 |
}
|
3157 |
-
|
3158 |
}
|
3159 |
-
|
3160 |
});
|
3161 |
-
|
3162 |
-
|
3163 |
-
*
|
3164 |
*/
|
3165 |
-
acf.
|
3166 |
-
|
3167 |
-
if(field.get('acfeAllowCustom')){
|
3168 |
-
|
3169 |
-
options.tags = true;
|
3170 |
|
3171 |
-
|
|
|
3172 |
|
3173 |
-
|
|
|
|
|
3174 |
|
3175 |
-
|
3176 |
-
return null;
|
3177 |
|
3178 |
-
|
3179 |
|
3180 |
-
|
|
|
|
|
3181 |
|
3182 |
-
|
3183 |
-
|
3184 |
-
|
3185 |
|
3186 |
-
|
|
|
|
|
3187 |
|
3188 |
-
|
3189 |
-
return null;
|
3190 |
|
3191 |
-
|
3192 |
-
id: term,
|
3193 |
-
text: term
|
3194 |
-
};
|
3195 |
-
|
3196 |
-
};
|
3197 |
|
|
|
|
|
3198 |
|
3199 |
-
|
3200 |
-
|
3201 |
-
var found = false;
|
3202 |
-
|
3203 |
-
$.each(data, function(index, value){
|
3204 |
-
|
3205 |
-
if($.trim(tag.text).toUpperCase() === $.trim(value.text).toUpperCase()){
|
3206 |
-
|
3207 |
-
found = true;
|
3208 |
-
return false;
|
3209 |
-
|
3210 |
-
}
|
3211 |
-
|
3212 |
-
});
|
3213 |
|
3214 |
-
|
3215 |
-
data.unshift(tag);
|
3216 |
-
|
3217 |
-
};
|
3218 |
-
|
3219 |
-
options.templateSelection = function(state){
|
3220 |
-
|
3221 |
-
if(!state.id){
|
3222 |
-
return state.text;
|
3223 |
-
}
|
3224 |
|
3225 |
-
|
3226 |
-
|
3227 |
-
var match_field = /{field:(.*)}/g;
|
3228 |
-
var match_fields = /{fields}/g;
|
3229 |
-
var match_get_field = /{get_field:(.*)}/g;
|
3230 |
-
var match_query_var = /{query_var:(.*)}/g;
|
3231 |
-
var match_request = /{request:(.*)}/g;
|
3232 |
-
var match_current = /{current:(.*)}/g;
|
3233 |
-
|
3234 |
-
text = text.replace(match_field, "<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{field:$1}</code>");
|
3235 |
-
text = text.replace(match_fields, "<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{fields}</code>");
|
3236 |
-
text = text.replace(match_current, "<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{current:$1}</code>");
|
3237 |
-
text = text.replace(match_get_field, "<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{get_field:$1}</code>");
|
3238 |
-
text = text.replace(match_query_var, "<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{query_var:$1}</code>");
|
3239 |
-
text = text.replace(match_request, "<code style='font-size:12px;padding:3px;vertical-align: 1px;line-height: 12px;'>{request:$1}</code>");
|
3240 |
|
|
|
3241 |
|
3242 |
-
|
3243 |
-
|
3244 |
-
};
|
3245 |
-
|
3246 |
-
options.templateResult = function(state){
|
3247 |
-
|
3248 |
-
if(!state.id){
|
3249 |
-
return state.text;
|
3250 |
-
}
|
3251 |
|
3252 |
-
|
3253 |
-
|
3254 |
-
|
3255 |
-
|
3256 |
-
|
3257 |
-
|
3258 |
-
|
3259 |
-
|
3260 |
-
|
3261 |
-
|
3262 |
-
|
3263 |
-
|
3264 |
-
|
3265 |
-
|
3266 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3267 |
|
3268 |
-
return text;
|
3269 |
-
|
3270 |
-
};
|
3271 |
-
|
3272 |
}
|
3273 |
-
|
3274 |
-
return options;
|
3275 |
-
|
3276 |
-
});
|
3277 |
-
|
3278 |
-
/**
|
3279 |
-
* Fields: Select2 - Args Variations
|
3280 |
-
*/
|
3281 |
-
acf.addFilter('select2_args', function(options, $select, data, field, instance){
|
3282 |
-
|
3283 |
-
options = acf.applyFilters('select2_args/type=' + field.get('type'), options, $select, data, field, instance);
|
3284 |
-
options = acf.applyFilters('select2_args/name=' + field.get('name'), options, $select, data, field, instance);
|
3285 |
-
options = acf.applyFilters('select2_args/key=' + field.get('key'), options, $select, data, field, instance);
|
3286 |
-
|
3287 |
-
return options;
|
3288 |
-
|
3289 |
});
|
|
|
|
|
|
|
3290 |
|
3291 |
-
|
3292 |
-
|
3293 |
-
*/
|
3294 |
-
acf.addAction('select2_init', function($select, options, data, field, instance){
|
3295 |
-
|
3296 |
-
acf.doAction('select2_init/type=' + field.get('type'), $select, options, data, field, instance);
|
3297 |
-
acf.doAction('select2_init/name=' + field.get('name'), $select, options, data, field, instance);
|
3298 |
-
acf.doAction('select2_init/key=' + field.get('key'), $select, options, data, field, instance);
|
3299 |
-
|
3300 |
-
});
|
3301 |
|
3302 |
-
|
3303 |
-
*
|
3304 |
*/
|
3305 |
-
acf.
|
3306 |
-
|
3307 |
-
|
3308 |
-
|
3309 |
-
|
3310 |
-
|
3311 |
-
if(ajaxData.action){
|
3312 |
-
|
3313 |
-
ajaxData = acf.applyFilters('select2_ajax_data/action=' + ajaxData.action, ajaxData, data, $el, field, instance);
|
3314 |
-
|
3315 |
-
}
|
3316 |
-
|
3317 |
-
return ajaxData;
|
3318 |
-
|
3319 |
-
});
|
3320 |
|
3321 |
-
|
3322 |
* Field Conditions: Datepicker
|
3323 |
*/
|
3324 |
acf.registerConditionForFieldType('equalTo', 'date_picker');
|
@@ -3328,7 +2928,23 @@ function acfe_recaptcha(){
|
|
3328 |
acf.registerConditionForFieldType('greaterThan', 'date_picker');
|
3329 |
acf.registerConditionForFieldType('lessThan', 'date_picker');
|
3330 |
|
3331 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3332 |
* Field Conditions: Taxonomy
|
3333 |
*/
|
3334 |
acf.registerConditionForFieldType('equalTo', 'taxonomy');
|
@@ -3337,8 +2953,8 @@ function acfe_recaptcha(){
|
|
3337 |
acf.registerConditionForFieldType('contains', 'taxonomy');
|
3338 |
acf.registerConditionForFieldType('hasValue', 'taxonomy');
|
3339 |
acf.registerConditionForFieldType('hasNoValue', 'taxonomy');
|
3340 |
-
|
3341 |
-
|
3342 |
* Field Conditions: Forms
|
3343 |
*/
|
3344 |
acf.registerConditionForFieldType('equalTo', 'acfe_forms');
|
@@ -3346,9 +2962,19 @@ function acfe_recaptcha(){
|
|
3346 |
acf.registerConditionForFieldType('patternMatch', 'acfe_forms');
|
3347 |
acf.registerConditionForFieldType('contains', 'acfe_forms');
|
3348 |
acf.registerConditionForFieldType('hasValue', 'acfe_forms');
|
3349 |
-
|
3350 |
-
|
3351 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3352 |
* Field Conditions: Post Status
|
3353 |
*/
|
3354 |
acf.registerConditionForFieldType('equalTo', 'acfe_post_statuses');
|
@@ -3356,9 +2982,9 @@ function acfe_recaptcha(){
|
|
3356 |
acf.registerConditionForFieldType('patternMatch', 'acfe_post_statuses');
|
3357 |
acf.registerConditionForFieldType('contains', 'acfe_post_statuses');
|
3358 |
acf.registerConditionForFieldType('hasValue', 'acfe_post_statuses');
|
3359 |
-
|
3360 |
-
|
3361 |
-
|
3362 |
* Field Conditions: Post Types
|
3363 |
*/
|
3364 |
acf.registerConditionForFieldType('equalTo', 'acfe_post_types');
|
@@ -3366,9 +2992,19 @@ function acfe_recaptcha(){
|
|
3366 |
acf.registerConditionForFieldType('patternMatch', 'acfe_post_types');
|
3367 |
acf.registerConditionForFieldType('contains', 'acfe_post_types');
|
3368 |
acf.registerConditionForFieldType('hasValue', 'acfe_post_types');
|
3369 |
-
|
3370 |
-
|
3371 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3372 |
* Field Conditions: Taxonomies
|
3373 |
*/
|
3374 |
acf.registerConditionForFieldType('equalTo', 'acfe_taxonomies');
|
@@ -3376,9 +3012,9 @@ function acfe_recaptcha(){
|
|
3376 |
acf.registerConditionForFieldType('patternMatch', 'acfe_taxonomies');
|
3377 |
acf.registerConditionForFieldType('contains', 'acfe_taxonomies');
|
3378 |
acf.registerConditionForFieldType('hasValue', 'acfe_taxonomies');
|
3379 |
-
|
3380 |
-
|
3381 |
-
|
3382 |
* Field Conditions: Taxonomy Terms
|
3383 |
*/
|
3384 |
acf.registerConditionForFieldType('equalTo', 'acfe_taxonomy_terms');
|
@@ -3386,9 +3022,9 @@ function acfe_recaptcha(){
|
|
3386 |
acf.registerConditionForFieldType('patternMatch', 'acfe_taxonomy_terms');
|
3387 |
acf.registerConditionForFieldType('contains', 'acfe_taxonomy_terms');
|
3388 |
acf.registerConditionForFieldType('hasValue', 'acfe_taxonomy_terms');
|
3389 |
-
|
3390 |
-
|
3391 |
-
|
3392 |
* Field Conditions: User Roles
|
3393 |
*/
|
3394 |
acf.registerConditionForFieldType('equalTo', 'acfe_user_roles');
|
@@ -3396,431 +3032,283 @@ function acfe_recaptcha(){
|
|
3396 |
acf.registerConditionForFieldType('patternMatch', 'acfe_user_roles');
|
3397 |
acf.registerConditionForFieldType('contains', 'acfe_user_roles');
|
3398 |
acf.registerConditionForFieldType('hasValue', 'acfe_user_roles');
|
3399 |
-
|
3400 |
-
|
3401 |
-
|
3402 |
-
|
3403 |
-
*/
|
3404 |
-
acf.add_action('new_field/name=acfe_author', function(field){
|
3405 |
-
|
3406 |
-
field.on('change', function(e){
|
3407 |
-
|
3408 |
-
e.stopPropagation();
|
3409 |
-
|
3410 |
-
});
|
3411 |
-
|
3412 |
-
});
|
3413 |
|
3414 |
-
|
3415 |
-
|
|
|
|
|
|
|
3416 |
*/
|
3417 |
-
|
3418 |
-
|
3419 |
-
|
3420 |
-
|
3421 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3422 |
|
3423 |
-
|
3424 |
-
|
3425 |
-
if(selected.length){
|
3426 |
-
$message.html(selected);
|
3427 |
-
}
|
3428 |
-
|
3429 |
-
field.$input().on('change', function(){
|
3430 |
|
3431 |
-
|
3432 |
-
var text = $(this).find('option:selected').text();
|
3433 |
|
3434 |
-
$
|
3435 |
-
|
3436 |
-
});
|
3437 |
-
|
3438 |
-
};
|
3439 |
-
|
3440 |
-
acf.addAction('new_field/name=acfe_form_post_map_target', acfe_form_map_fields);
|
3441 |
-
acf.addAction('new_field/name=acfe_form_post_map_post_type', acfe_form_map_fields);
|
3442 |
-
acf.addAction('new_field/name=acfe_form_post_map_post_status', acfe_form_map_fields);
|
3443 |
-
acf.addAction('new_field/name=acfe_form_post_map_post_title', acfe_form_map_fields);
|
3444 |
-
acf.addAction('new_field/name=acfe_form_post_map_post_name', acfe_form_map_fields);
|
3445 |
-
acf.addAction('new_field/name=acfe_form_post_map_post_content', acfe_form_map_fields);
|
3446 |
-
acf.addAction('new_field/name=acfe_form_post_map_post_author', acfe_form_map_fields);
|
3447 |
-
acf.addAction('new_field/name=acfe_form_post_map_post_parent', acfe_form_map_fields);
|
3448 |
-
acf.addAction('new_field/name=acfe_form_post_map_post_terms', acfe_form_map_fields);
|
3449 |
-
|
3450 |
-
acf.addAction('new_field/name=acfe_form_user_map_email', acfe_form_map_fields);
|
3451 |
-
acf.addAction('new_field/name=acfe_form_user_map_username', acfe_form_map_fields);
|
3452 |
-
acf.addAction('new_field/name=acfe_form_user_map_password', acfe_form_map_fields);
|
3453 |
-
acf.addAction('new_field/name=acfe_form_user_map_first_name', acfe_form_map_fields);
|
3454 |
-
acf.addAction('new_field/name=acfe_form_user_map_last_name', acfe_form_map_fields);
|
3455 |
-
acf.addAction('new_field/name=acfe_form_user_map_nickname', acfe_form_map_fields);
|
3456 |
-
acf.addAction('new_field/name=acfe_form_user_map_display_name', acfe_form_map_fields);
|
3457 |
-
acf.addAction('new_field/name=acfe_form_user_map_website', acfe_form_map_fields);
|
3458 |
-
acf.addAction('new_field/name=acfe_form_user_map_description', acfe_form_map_fields);
|
3459 |
-
acf.addAction('new_field/name=acfe_form_user_map_role', acfe_form_map_fields);
|
3460 |
-
|
3461 |
-
acf.addAction('new_field/name=acfe_form_term_map_name', acfe_form_map_fields);
|
3462 |
-
acf.addAction('new_field/name=acfe_form_term_map_slug', acfe_form_map_fields);
|
3463 |
-
acf.addAction('new_field/name=acfe_form_term_map_taxonomy', acfe_form_map_fields);
|
3464 |
-
acf.addAction('new_field/name=acfe_form_term_map_parent', acfe_form_map_fields);
|
3465 |
-
acf.addAction('new_field/name=acfe_form_term_map_description', acfe_form_map_fields);
|
3466 |
-
|
3467 |
-
/**
|
3468 |
-
* Module: Dynamic Forms (actions)
|
3469 |
-
*/
|
3470 |
-
acf.addAction('new_field/name=acfe_form_actions', function(field){
|
3471 |
-
|
3472 |
-
var $tab = $('a[data-key=field_acfe_form_tab_actions]');
|
3473 |
-
|
3474 |
-
var $layouts = field.$layouts();
|
3475 |
-
|
3476 |
-
$tab.html('Actions <span class="acfe-tab-badge">' + $layouts.length + '</span>');
|
3477 |
-
|
3478 |
-
field.on('change', function(){
|
3479 |
-
|
3480 |
-
var $layouts = field.$layouts();
|
3481 |
-
|
3482 |
-
$tab.html('Actions <span class="acfe-tab-badge">' + $layouts.length + '</span>');
|
3483 |
-
|
3484 |
-
});
|
3485 |
-
|
3486 |
-
field.on('click', '[data-name="add-layout"]', function(e){
|
3487 |
-
|
3488 |
-
$('body').find('.acf-fc-popup').addClass('acfe-fc-popup-grey');
|
3489 |
-
|
3490 |
-
});
|
3491 |
-
|
3492 |
-
});
|
3493 |
|
3494 |
-
|
|
|
|
|
|
|
3495 |
|
3496 |
-
|
3497 |
-
var tabs = acf.getInstances($tabs);
|
3498 |
-
var key = field.get('key');
|
3499 |
|
3500 |
-
|
|
|
3501 |
|
3502 |
-
|
|
|
|
|
3503 |
|
3504 |
-
|
3505 |
-
return;
|
3506 |
|
3507 |
-
|
3508 |
|
3509 |
-
|
3510 |
-
|
3511 |
|
3512 |
-
if(
|
3513 |
-
|
3514 |
-
|
|
|
3515 |
|
3516 |
});
|
3517 |
|
3518 |
-
|
3519 |
-
acf.setPreference('this.tabs', preference);
|
3520 |
|
3521 |
-
|
|
|
3522 |
|
3523 |
-
|
|
|
3524 |
|
3525 |
-
|
3526 |
-
acf.addAction('prepare_field/key=field_acfe_form_email_tab_action', acfe_tab_forget_tab_preference);
|
3527 |
-
acf.addAction('prepare_field/key=field_acfe_form_post_tab_action', acfe_tab_forget_tab_preference);
|
3528 |
-
acf.addAction('prepare_field/key=field_acfe_form_term_tab_action', acfe_tab_forget_tab_preference);
|
3529 |
-
acf.addAction('prepare_field/key=field_acfe_form_user_tab_action', acfe_tab_forget_tab_preference);
|
3530 |
|
3531 |
-
|
3532 |
-
|
3533 |
|
3534 |
-
|
3535 |
-
postbox.$el.removeClass('acfe-postbox-left acfe-postbox-top');
|
3536 |
-
});
|
3537 |
-
|
3538 |
-
// Allow conditions to work within wrapped div
|
3539 |
-
acf.newCondition = function( rule, conditions ){
|
3540 |
|
3541 |
-
|
3542 |
-
|
3543 |
|
3544 |
-
|
3545 |
-
// - this field is used to setup the conditional logic events
|
3546 |
-
var field = target.getField( rule.field );
|
3547 |
|
3548 |
-
//
|
3549 |
-
|
3550 |
|
3551 |
-
|
|
|
3552 |
|
3553 |
-
|
3554 |
|
3555 |
-
|
3556 |
-
|
3557 |
-
return false;
|
3558 |
-
}
|
3559 |
|
3560 |
-
|
3561 |
-
var args = {
|
3562 |
-
rule: rule,
|
3563 |
-
target: target,
|
3564 |
-
conditions: conditions,
|
3565 |
-
field: field
|
3566 |
-
};
|
3567 |
|
3568 |
-
|
3569 |
-
|
3570 |
-
var operator = rule.operator;
|
3571 |
|
3572 |
-
|
3573 |
-
var conditionTypes = acf.getConditionTypes({
|
3574 |
-
fieldType: fieldType,
|
3575 |
-
operator: operator,
|
3576 |
-
});
|
3577 |
|
3578 |
-
//
|
3579 |
-
|
3580 |
|
3581 |
-
|
3582 |
-
|
3583 |
|
3584 |
-
|
3585 |
-
return condition;
|
3586 |
|
3587 |
-
|
|
|
3588 |
|
3589 |
-
|
3590 |
-
|
3591 |
-
*/
|
3592 |
-
acf.addAction('new_field/type=checkbox', function(field){
|
3593 |
|
3594 |
-
|
3595 |
-
|
3596 |
|
3597 |
-
|
3598 |
|
3599 |
-
|
3600 |
|
3601 |
-
|
|
|
3602 |
|
3603 |
-
|
3604 |
|
3605 |
-
|
3606 |
-
* Field: Radio
|
3607 |
-
*/
|
3608 |
-
acf.addAction('new_field/type=radio', function(field){
|
3609 |
|
3610 |
-
|
3611 |
-
return;
|
3612 |
|
3613 |
-
|
3614 |
|
3615 |
-
|
3616 |
|
3617 |
-
|
3618 |
|
3619 |
-
|
3620 |
|
3621 |
-
|
3622 |
|
3623 |
-
|
3624 |
|
3625 |
-
|
3626 |
|
3627 |
-
|
3628 |
|
3629 |
-
|
|
|
3630 |
|
3631 |
-
}
|
3632 |
-
(function($){
|
3633 |
-
|
3634 |
-
if(typeof acf === 'undefined')
|
3635 |
-
return;
|
3636 |
-
|
3637 |
-
acf.addAction('prepare', function(){
|
3638 |
|
3639 |
-
|
3640 |
-
|
3641 |
|
3642 |
-
|
3643 |
-
|
|
|
3644 |
|
3645 |
-
|
3646 |
-
wp.media.view.settings.post = false;
|
3647 |
|
3648 |
-
|
|
|
|
|
|
|
3649 |
|
3650 |
-
|
3651 |
|
3652 |
-
|
|
|
3653 |
|
3654 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3655 |
|
3656 |
-
|
|
|
|
|
|
|
3657 |
|
3658 |
-
if(window.history.replaceState){
|
3659 |
-
window.history.replaceState(null, null, window.location.href);
|
3660 |
}
|
3661 |
|
3662 |
-
|
|
|
|
|
|
|
3663 |
|
3664 |
-
|
3665 |
-
|
|
|
3666 |
|
3667 |
-
|
3668 |
-
|
3669 |
-
acf.doAction('acfe/form/submit/success/name=' + form_name);
|
3670 |
|
3671 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3672 |
|
3673 |
}
|
3674 |
-
|
3675 |
-
});
|
3676 |
-
|
3677 |
-
// Datepicker: Add field class
|
3678 |
-
acf.addAction('new_field/type=date_picker', function(field){
|
3679 |
|
3680 |
-
if(acf.get('is_admin'))
|
3681 |
-
return;
|
3682 |
-
|
3683 |
-
var $form = field.$el.closest('.acfe-form');
|
3684 |
-
|
3685 |
-
if(!$form.length)
|
3686 |
-
return;
|
3687 |
-
|
3688 |
-
var field_class = $form.data('fields-class');
|
3689 |
-
|
3690 |
-
if(field_class)
|
3691 |
-
field.$inputText().addClass(field_class);
|
3692 |
-
|
3693 |
});
|
3694 |
-
|
3695 |
-
// Google Maps: Add field class
|
3696 |
-
acf.addAction('new_field/type=google_map', function(field){
|
3697 |
|
3698 |
-
|
3699 |
-
|
3700 |
-
|
3701 |
-
|
3702 |
-
|
3703 |
-
|
3704 |
-
|
3705 |
-
|
3706 |
-
|
3707 |
-
|
3708 |
-
|
3709 |
-
|
3710 |
-
|
3711 |
-
|
3712 |
-
|
3713 |
-
// Error: Move error
|
3714 |
-
acf.addAction('invalid_field', function(field){
|
3715 |
|
3716 |
-
if(acf.get('is_admin'))
|
3717 |
-
return;
|
3718 |
-
|
3719 |
-
var $form = field.$el.closest('.acfe-form');
|
3720 |
-
|
3721 |
-
if(!$form.length)
|
3722 |
-
return;
|
3723 |
-
|
3724 |
-
var errors_position = $form.data('errors-position');
|
3725 |
-
var errors_class = $form.data('errors-class');
|
3726 |
-
|
3727 |
-
// Class
|
3728 |
-
if(errors_class && errors_class.length){
|
3729 |
-
|
3730 |
-
field.$el.find('.acf-notice.-error').addClass(errors_class);
|
3731 |
-
|
3732 |
-
}
|
3733 |
-
|
3734 |
-
// Move below
|
3735 |
-
if(errors_position && errors_position === 'below'){
|
3736 |
-
|
3737 |
-
if(field.$control().length){
|
3738 |
-
|
3739 |
-
field.$el.find('.acf-notice.-error').insertAfter(field.$control());
|
3740 |
-
|
3741 |
-
}else if(field.$input().length){
|
3742 |
-
|
3743 |
-
field.$el.find('.acf-notice.-error').insertAfter(field.$input());
|
3744 |
-
|
3745 |
-
}
|
3746 |
-
|
3747 |
-
var $selector = false;
|
3748 |
-
|
3749 |
-
if(field.$control().length){
|
3750 |
-
|
3751 |
-
$selector = field.$control();
|
3752 |
-
|
3753 |
-
}else if(field.$input().length){
|
3754 |
-
|
3755 |
-
$selector = field.$input();
|
3756 |
-
|
3757 |
-
}
|
3758 |
-
|
3759 |
-
if($selector)
|
3760 |
-
field.$el.find('.acf-notice.-error').insertAfter($selector);
|
3761 |
-
|
3762 |
-
}
|
3763 |
-
|
3764 |
-
// Group errors
|
3765 |
-
else if(errors_position && errors_position === 'group'){
|
3766 |
-
|
3767 |
-
var label = field.$el.find('.acf-label label').text().trim();
|
3768 |
-
var placeholder = field.$el.find('.acf-input-wrap [placeholder!=""]').attr('placeholder');
|
3769 |
-
var message = field.$el.find('.acf-notice.-error').text().trim();
|
3770 |
-
|
3771 |
-
field.$el.find('.acf-notice.-error').remove();
|
3772 |
-
|
3773 |
-
// Try label
|
3774 |
-
if(label && label.length && label !== '*'){
|
3775 |
-
|
3776 |
-
message = label + ': ' + message;
|
3777 |
-
|
3778 |
-
}
|
3779 |
-
|
3780 |
-
// Try placeholder
|
3781 |
-
else if(placeholder && placeholder.length && placeholder !== ''){
|
3782 |
-
|
3783 |
-
message = placeholder + ': ' + message;
|
3784 |
-
|
3785 |
-
}
|
3786 |
-
|
3787 |
-
// If everything fails, use field name
|
3788 |
-
else{
|
3789 |
-
|
3790 |
-
message = field.get('name') + ': ' + message;
|
3791 |
-
|
3792 |
-
}
|
3793 |
-
|
3794 |
-
var $form_error = $form.find('> .acfe-form-error')
|
3795 |
-
|
3796 |
-
if(!$form_error.length)
|
3797 |
-
$form_error = $('<div class="acf-notice -error acf-error-message acfe-form-error" />').prependTo($form);
|
3798 |
-
|
3799 |
-
$form_error.append('<p>' + message + '</p>');
|
3800 |
-
|
3801 |
}
|
3802 |
-
|
3803 |
-
//
|
3804 |
-
|
3805 |
-
|
3806 |
-
field.$el.find('.acf-notice.-error').remove();
|
3807 |
-
|
3808 |
}
|
3809 |
-
|
3810 |
-
});
|
3811 |
-
|
3812 |
-
// Remove error message on validation
|
3813 |
-
acf.addAction('validation_begin', function($form){
|
3814 |
|
3815 |
-
|
3816 |
-
|
3817 |
-
|
3818 |
-
|
3819 |
-
|
3820 |
-
|
3821 |
-
|
3822 |
-
|
3823 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3824 |
|
3825 |
})(jQuery);
|
3826 |
(function($){
|
1 |
(function($){
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
if(typeof acf === 'undefined')
|
4 |
return;
|
5 |
|
12 |
/*
|
13 |
* Drag & Drop
|
14 |
*/
|
15 |
+
model.addSortable = function(self){
|
16 |
|
17 |
// bail early if max 1 row
|
18 |
+
if(this.get('max') == 1){
|
19 |
return;
|
20 |
}
|
21 |
|
25 |
handle: '> .acf-fc-layout-handle',
|
26 |
forceHelperSize: false, // Changed to false
|
27 |
forcePlaceholderSize: true,
|
28 |
+
revert: 50,
|
29 |
tolerance: "pointer", // Changed to pointer
|
30 |
scroll: true,
|
31 |
stop: function(event, ui) {
|
62 |
});
|
63 |
|
64 |
// Hide native tooltip
|
65 |
+
var acfPopup = $('.acf-fc-popup');
|
66 |
+
|
67 |
+
if(acfPopup.length){
|
68 |
+
acfPopup.hide();
|
69 |
+
}
|
70 |
+
|
71 |
|
72 |
};
|
73 |
|
422 |
scrollTop: parseInt($el.offset().top) - 200
|
423 |
}, 200);
|
424 |
|
425 |
+
}else{
|
426 |
+
|
427 |
+
// Avoid native ACF duplicate
|
428 |
+
if(!$el.hasClass('-focused')){
|
429 |
+
|
430 |
+
// Scroll to new layout
|
431 |
+
$('html, body').animate({
|
432 |
+
scrollTop: parseInt($el.offset().top) - 200
|
433 |
+
}, 200);
|
434 |
+
|
435 |
+
}
|
436 |
+
|
437 |
}
|
438 |
|
439 |
}
|
609 |
var $layout_title = $handle.find('.acfe-layout-title-text').text();
|
610 |
|
611 |
// Open modal
|
612 |
+
new acfe.Popup($modal, {
|
613 |
title: $layout_order + ' ' + $layout_title,
|
614 |
footer: acf.__('Close'),
|
|
|
|
|
|
|
615 |
onClose: function(){
|
616 |
+
|
617 |
+
if(!flexible.has('acfeFlexiblePreview'))
|
618 |
+
return;
|
619 |
+
|
620 |
+
flexible.closeLayout($layout);
|
621 |
+
|
|
|
622 |
}
|
623 |
});
|
624 |
|
1411 |
}
|
1412 |
|
1413 |
// Get Categories
|
1414 |
+
$(layouts).find('li a span[data-acfe-flexible-category]').each(function(){
|
|
|
|
|
|
|
|
|
|
|
1415 |
|
1416 |
+
var spanCats = $(this).data('acfe-flexible-category');
|
1417 |
|
1418 |
+
$.each(spanCats, function(){
|
1419 |
|
1420 |
+
if(SearchArray(this, categories.array) !== -1)
|
1421 |
+
return;
|
1422 |
|
1423 |
+
categories.array.push(this);
|
1424 |
|
1425 |
});
|
1426 |
|
1446 |
}
|
1447 |
|
1448 |
// Modal Title
|
1449 |
+
var modalTitle = acf.__('Add Row');
|
1450 |
|
1451 |
+
if(flexible.has('acfeFlexibleModalTitle')){
|
1452 |
+
modalTitle = flexible.get('acfeFlexibleModalTitle');
|
1453 |
+
}
|
1454 |
|
1455 |
// Create Modal
|
1456 |
var $modal = $('' +
|
1466 |
).appendTo('body');
|
1467 |
|
1468 |
// Open Modal
|
1469 |
+
new acfe.Popup($modal, {
|
1470 |
+
title: modalTitle,
|
1471 |
size: 'full',
|
1472 |
destroy: true
|
1473 |
});
|
1474 |
|
1475 |
// Modal: Columns
|
1476 |
+
if(flexible.has('acfeFlexibleModalCol')){
|
1477 |
+
|
1478 |
$modal.find('.acfe-modal-content .acfe-flex-container').addClass('acfe-col-' + flexible.get('acfeFlexibleModalCol'));
|
1479 |
+
|
1480 |
+
}
|
1481 |
+
|
1482 |
+
// Modal: Columns
|
1483 |
+
if(flexible.has('acfeFlexibleThumbnails')){
|
1484 |
+
|
1485 |
+
$modal.find('.acfe-modal-content .acfe-flex-container').addClass('acfe-flex-thumbnails');
|
1486 |
+
|
1487 |
+
}
|
1488 |
+
|
1489 |
// Modal: ACF autofocus fix
|
1490 |
$modal.find('li:first-of-type a').blur();
|
1491 |
+
|
1492 |
+
// Modal: Layouts Badges
|
1493 |
+
$modal.find('li a span.badge').each(function(){
|
1494 |
+
|
1495 |
+
$(this).addClass('acf-js-tooltip dashicons dashicons-info');
|
1496 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1497 |
});
|
1498 |
+
|
1499 |
+
// Modal: Categories Click
|
1500 |
$modal.find('.acfe-flexible-categories a').click(function(e){
|
1501 |
|
1502 |
e.preventDefault();
|
1508 |
|
1509 |
var selected_category = $link.data('acfe-flexible-category');
|
1510 |
|
1511 |
+
$modal.find('a[data-layout] span[data-acfe-flexible-category]').each(function(){
|
1512 |
|
1513 |
// Get span
|
1514 |
var $span = $(this);
|
1548 |
e.preventDefault();
|
1549 |
|
1550 |
// Close modal
|
1551 |
+
acfe.closePopup();
|
1552 |
|
1553 |
// Add layout
|
1554 |
+
flexible.add({
|
1555 |
layout: $(this).data('layout'),
|
1556 |
before: $layout_source
|
1557 |
});
|
1620 |
}
|
1621 |
|
1622 |
// Open modal
|
1623 |
+
new acfe.Popup($modal, {
|
1624 |
title: $layout_order + ' ' + $layout_title,
|
1625 |
footer: close,
|
1626 |
onOpen: function(){
|
1627 |
+
|
1628 |
flexible.openLayout($layout);
|
1629 |
+
|
1630 |
},
|
1631 |
onClose: function(){
|
1632 |
+
|
1633 |
flexible.closeLayout($layout);
|
1634 |
+
|
1635 |
}
|
1636 |
});
|
1637 |
|
1655 |
});
|
1656 |
|
1657 |
})(jQuery);
|
1658 |
+
/*
|
1659 |
+
* Field: reCaptcha Callback
|
1660 |
+
*/
|
1661 |
function acfe_recaptcha(){
|
1662 |
|
1663 |
(function($){
|
1664 |
|
1665 |
if(typeof acf === 'undefined')
|
1666 |
return;
|
1667 |
+
|
1668 |
+
$.each(acf.getFields({type: 'acfe_recaptcha'}), function(){
|
1669 |
+
this.render();
|
|
|
|
|
|
|
|
|
|
|
1670 |
});
|
1671 |
|
1672 |
})(jQuery);
|
1678 |
if(typeof acf === 'undefined')
|
1679 |
return;
|
1680 |
|
1681 |
+
/*
|
1682 |
* Field: reCaptcha
|
1683 |
*/
|
1684 |
var reCaptcha = acf.Field.extend({
|
1772 |
|
1773 |
acf.registerFieldType(reCaptcha);
|
1774 |
|
1775 |
+
/*
|
1776 |
* Field: Code Editor
|
1777 |
*/
|
1778 |
var CodeEditor = acf.Field.extend({
|
1880 |
});
|
1881 |
|
1882 |
},
|
1883 |
+
|
1884 |
+
onShow: function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1885 |
|
1886 |
+
if(this.editor.codemirror){
|
1887 |
|
1888 |
+
this.editor.codemirror.refresh();
|
|
|
|
|
|
|
|
|
1889 |
|
1890 |
}
|
1891 |
|
1892 |
+
},
|
1893 |
|
1894 |
});
|
1895 |
+
|
1896 |
+
acf.registerFieldType(CodeEditor);
|
1897 |
|
1898 |
+
/*
|
1899 |
* Field: Textarea
|
1900 |
*/
|
1901 |
var Textarea = acf.Field.extend({
|
1934 |
|
1935 |
acf.registerFieldType(Textarea);
|
1936 |
|
1937 |
+
/*
|
1938 |
* Field: Slug
|
1939 |
*/
|
1940 |
var ACFE_Slug = acf.Field.extend({
|
1969 |
|
1970 |
acf.registerFieldType(ACFE_Slug);
|
1971 |
|
1972 |
+
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1973 |
* Field: Button
|
1974 |
*/
|
1975 |
var ACFE_Button = acf.Field.extend({
|
2070 |
|
2071 |
acf.registerFieldType(ACFE_Button);
|
2072 |
|
2073 |
+
/*
|
2074 |
* Field: Advanced Link
|
2075 |
*/
|
2076 |
var ACFE_Advanced_Link = acf.Field.extend({
|
2166 |
var title = $modal.attr('data-modal-title');
|
2167 |
|
2168 |
var model = this;
|
2169 |
+
|
2170 |
+
new acfe.Popup($modal, {
|
2171 |
title: title,
|
2172 |
size: 'medium',
|
2173 |
footer: acf.__('Close'),
|
2200 |
|
2201 |
acf.registerFieldType(ACFE_Advanced_Link);
|
2202 |
|
2203 |
+
/*
|
2204 |
+
* Field: Advanced Link Manager
|
2205 |
*/
|
2206 |
+
new acf.Model({
|
2207 |
+
|
2208 |
+
actions: {
|
2209 |
+
'invalid_field': 'invalidField',
|
2210 |
+
},
|
2211 |
+
|
2212 |
+
filters: {
|
2213 |
+
'select2_ajax_data/type=post_object': 'ajaxField',
|
2214 |
+
},
|
2215 |
+
|
2216 |
+
invalidField: function(field){
|
2217 |
+
|
2218 |
+
var $advanced_link = field.$el.closest('.acf-field-acfe-advanced-link').not('.acf-error');
|
2219 |
+
|
2220 |
+
if($advanced_link.length){
|
2221 |
+
|
2222 |
+
var advanced_link_field = acf.getInstance($advanced_link);
|
2223 |
+
|
2224 |
+
advanced_link_field.showError(field.notice.get('text'));
|
2225 |
+
|
2226 |
+
}
|
2227 |
+
|
2228 |
+
},
|
2229 |
+
|
2230 |
+
ajaxField: function(ajaxData, data, $el, field, select){
|
2231 |
+
|
2232 |
+
if(field.get('key') !== 'post')
|
2233 |
+
return ajaxData;
|
2234 |
+
|
2235 |
+
var advanced_link = acf.getInstance($el.closest('.acf-field-acfe-advanced-link'));
|
2236 |
+
|
2237 |
+
if(advanced_link){
|
2238 |
+
|
2239 |
+
ajaxData.field_key = advanced_link.get('key');
|
2240 |
+
|
2241 |
+
}
|
2242 |
+
|
2243 |
return ajaxData;
|
2244 |
+
|
2245 |
+
},
|
2246 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2247 |
});
|
2248 |
|
2249 |
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2250 |
* Field: Group
|
2251 |
*/
|
2252 |
var Group = acf.Field.extend({
|
2253 |
+
|
2254 |
+
wait: false,
|
2255 |
|
2256 |
type: 'group',
|
2257 |
|
2258 |
events: {
|
2259 |
'click [data-name="edit"]': 'onClick',
|
2260 |
+
'duplicateField': 'onDuplicate'
|
2261 |
},
|
2262 |
|
2263 |
initialize: function(){
|
2304 |
}
|
2305 |
|
2306 |
// Open modal
|
2307 |
+
new acfe.Popup($modal, {
|
2308 |
title: title,
|
2309 |
size: size,
|
2310 |
footer: close
|
2311 |
});
|
2312 |
|
2313 |
},
|
2314 |
+
|
2315 |
+
onDuplicate: function(e, $el, $duplicate){
|
2316 |
+
$duplicate.find('a[data-name="edit"]').remove();
|
2317 |
+
}
|
2318 |
|
2319 |
});
|
2320 |
|
2321 |
acf.registerFieldType(Group);
|
2322 |
|
2323 |
+
/*
|
2324 |
* Field: Clone
|
2325 |
*/
|
2326 |
var Clone = acf.Field.extend({
|
2327 |
+
|
2328 |
+
wait: false,
|
2329 |
|
2330 |
type: 'clone',
|
2331 |
|
2332 |
events: {
|
2333 |
'click [data-name="edit"]': 'onClick',
|
2334 |
+
'duplicateField': 'onDuplicate'
|
2335 |
},
|
2336 |
|
2337 |
initialize: function(){
|
2379 |
}
|
2380 |
|
2381 |
// Open modal
|
2382 |
+
new acfe.Popup($modal, {
|
2383 |
title: title,
|
2384 |
size: size,
|
2385 |
footer: close
|
2386 |
});
|
2387 |
|
2388 |
},
|
2389 |
+
|
2390 |
+
onDuplicate: function(e, $el, $duplicate){
|
2391 |
+
$duplicate.find('a[data-name="edit"]').remove();
|
2392 |
+
}
|
2393 |
|
2394 |
});
|
2395 |
|
2396 |
acf.registerFieldType(Clone);
|
2397 |
|
2398 |
+
/*
|
2399 |
* Field: Column
|
2400 |
*/
|
2401 |
var Column = acf.Field.extend({
|
2440 |
$wrap.append($field.nextUntil('.acf-field-acfe-column', '.acf-field'));
|
2441 |
|
2442 |
}
|
2443 |
+
|
2444 |
+
});
|
2445 |
+
|
2446 |
+
acf.registerFieldType(Column);
|
2447 |
+
|
2448 |
+
/*
|
2449 |
+
* Field: Select
|
2450 |
+
*/
|
2451 |
+
new acf.Model({
|
2452 |
+
|
2453 |
+
actions: {
|
2454 |
+
'new_field/type=select': 'newField',
|
2455 |
+
},
|
2456 |
+
|
2457 |
+
newField: function(field){
|
2458 |
+
|
2459 |
+
field.inherit(field.$input());
|
2460 |
+
|
2461 |
+
// Remove "- -" characters from placeholder
|
2462 |
+
if(!field.get('ui') && field.get('allow_null')){
|
2463 |
+
|
2464 |
+
field.$input().find('option').each(function(i, option){
|
2465 |
+
|
2466 |
+
if(option.value)
|
2467 |
+
return;
|
2468 |
+
|
2469 |
+
if(!option.text.startsWith('- ') || !option.text.endsWith(' -'))
|
2470 |
+
return;
|
2471 |
+
|
2472 |
+
option.text = option.text.substring(2);
|
2473 |
+
option.text = option.text.substring(0, option.text.length - 2);
|
2474 |
+
|
2475 |
+
});
|
2476 |
+
|
2477 |
+
}
|
2478 |
+
|
2479 |
+
if(field.has('acfePrepend') || field.has('acfeAppend')){
|
2480 |
+
|
2481 |
+
if(!field.$input().parent('.acf-input-wrap').length){
|
2482 |
+
|
2483 |
+
field.$input().wrapAll('<div class="acf-input-wrap"></div>');
|
2484 |
+
|
2485 |
+
if(field.get('ui')){
|
2486 |
+
|
2487 |
+
field.$('.acf-input-wrap:first').append(field.$('.select2'));
|
2488 |
+
|
2489 |
+
}
|
2490 |
+
|
2491 |
+
if(field.has('acfePrepend')){
|
2492 |
+
|
2493 |
+
field.$('.acf-input-wrap:first').before('<div class="acf-input-prepend">' + field.get('acfePrepend') + '</div>');
|
2494 |
+
field.$input().addClass('acf-is-prepended');
|
2495 |
+
|
2496 |
+
}
|
2497 |
+
|
2498 |
+
if(field.has('acfeAppend')){
|
2499 |
+
|
2500 |
+
field.$('.acf-input-wrap:first').before('<div class="acf-input-append">' + field.get('acfeAppend') + '</div>');
|
2501 |
+
field.$input().addClass('acf-is-appended');
|
2502 |
+
|
2503 |
+
}
|
2504 |
+
|
2505 |
+
}
|
2506 |
+
|
2507 |
+
}
|
2508 |
+
|
2509 |
+
}
|
2510 |
+
|
2511 |
+
});
|
2512 |
+
|
2513 |
+
/*
|
2514 |
+
* Field: Select2
|
2515 |
+
*/
|
2516 |
+
new acf.Model({
|
2517 |
+
|
2518 |
+
actions:{
|
2519 |
+
'select2_init': 'select2Init',
|
2520 |
+
},
|
2521 |
+
|
2522 |
+
filters: {
|
2523 |
+
'select2_args': 'select2Args',
|
2524 |
+
'select2_ajax_data': 'select2Ajax',
|
2525 |
+
},
|
2526 |
+
|
2527 |
+
select2Init: function($select, options, data, field, instance){
|
2528 |
+
|
2529 |
+
// Search Placeholder
|
2530 |
+
if(field.get('acfeSearchPlaceholder')){
|
2531 |
+
|
2532 |
+
var search_placeholder = field.get('acfeSearchPlaceholder');
|
2533 |
+
|
2534 |
+
$select.on('select2:open', function(e){
|
2535 |
+
|
2536 |
+
if(field.get('multiple')){
|
2537 |
+
|
2538 |
+
if(!$select.val()){
|
2539 |
+
|
2540 |
+
field.$('.select2-search__field').attr('placeholder', search_placeholder);
|
2541 |
+
|
2542 |
+
}
|
2543 |
+
|
2544 |
+
}else{
|
2545 |
+
|
2546 |
+
$('.select2-search.select2-search--dropdown > .select2-search__field').attr('placeholder', search_placeholder);
|
2547 |
+
|
2548 |
+
}
|
2549 |
+
|
2550 |
+
});
|
2551 |
+
|
2552 |
+
if(field.get('multiple')){
|
2553 |
+
|
2554 |
+
$select.on('select2:close', function(e){
|
2555 |
+
|
2556 |
+
if(!$select.val()){
|
2557 |
+
|
2558 |
+
field.$('.select2-search__field').attr('placeholder', field.get('placeholder'));
|
2559 |
+
|
2560 |
+
}
|
2561 |
+
|
2562 |
+
});
|
2563 |
+
|
2564 |
+
}
|
2565 |
+
|
2566 |
+
}
|
2567 |
+
|
2568 |
+
acf.doAction('select2_init/type=' + field.get('type'), $select, options, data, field, instance);
|
2569 |
+
acf.doAction('select2_init/name=' + field.get('name'), $select, options, data, field, instance);
|
2570 |
+
acf.doAction('select2_init/key=' + field.get('key'), $select, options, data, field, instance);
|
2571 |
+
|
2572 |
+
},
|
2573 |
+
|
2574 |
+
select2Args: function(options, $select, data, field, instance){
|
2575 |
+
|
2576 |
+
// Allow Custom tags
|
2577 |
+
if(field.get('acfeAllowCustom')){
|
2578 |
+
|
2579 |
+
options.tags = true;
|
2580 |
+
|
2581 |
+
options.createTag = function(params){
|
2582 |
+
|
2583 |
+
var term = $.trim(params.term);
|
2584 |
+
|
2585 |
+
if(term === '')
|
2586 |
+
return null;
|
2587 |
+
|
2588 |
+
var optionsMatch = false;
|
2589 |
+
|
2590 |
+
this.$element.find('option').each(function(){
|
2591 |
+
|
2592 |
+
if(this.value.toLowerCase() !== term.toLowerCase())
|
2593 |
+
return;
|
2594 |
+
|
2595 |
+
optionsMatch = true;
|
2596 |
+
return false;
|
2597 |
+
|
2598 |
+
});
|
2599 |
+
|
2600 |
+
if(optionsMatch)
|
2601 |
+
return null;
|
2602 |
+
|
2603 |
+
return {
|
2604 |
+
id: term,
|
2605 |
+
text: term
|
2606 |
+
};
|
2607 |
+
|
2608 |
+
};
|
2609 |
+
|
2610 |
+
|
2611 |
+
options.insertTag = function(data, tag){
|
2612 |
+
|
2613 |
+
var found = false;
|
2614 |
+
|
2615 |
+
$.each(data, function(){
|
2616 |
+
|
2617 |
+
if($.trim(tag.text).toUpperCase() !== $.trim(this.text).toUpperCase())
|
2618 |
+
return;
|
2619 |
+
|
2620 |
+
found = true;
|
2621 |
+
return false;
|
2622 |
+
|
2623 |
+
});
|
2624 |
+
|
2625 |
+
if(!found)
|
2626 |
+
data.unshift(tag);
|
2627 |
+
|
2628 |
+
};
|
2629 |
+
|
2630 |
+
}
|
2631 |
+
|
2632 |
+
options = acf.applyFilters('select2_args/type=' + field.get('type'), options, $select, data, field, instance);
|
2633 |
+
options = acf.applyFilters('select2_args/name=' + field.get('name'), options, $select, data, field, instance);
|
2634 |
+
options = acf.applyFilters('select2_args/key=' + field.get('key'), options, $select, data, field, instance);
|
2635 |
+
|
2636 |
+
return options;
|
2637 |
+
|
2638 |
+
},
|
2639 |
+
|
2640 |
+
select2Ajax: function(ajaxData, data, $el, field, instance){
|
2641 |
+
|
2642 |
+
ajaxData = acf.applyFilters('select2_ajax_data/type=' + field.get('type'), ajaxData, data, $el, field, instance);
|
2643 |
+
ajaxData = acf.applyFilters('select2_ajax_data/name=' + field.get('name'), ajaxData, data, $el, field, instance);
|
2644 |
+
ajaxData = acf.applyFilters('select2_ajax_data/key=' + field.get('key'), ajaxData, data, $el, field, instance);
|
2645 |
+
|
2646 |
+
if(ajaxData.action){
|
2647 |
+
|
2648 |
+
ajaxData = acf.applyFilters('select2_ajax_data/action=' + ajaxData.action, ajaxData, data, $el, field, instance);
|
2649 |
+
|
2650 |
+
}
|
2651 |
+
|
2652 |
+
return ajaxData;
|
2653 |
+
|
2654 |
+
}
|
2655 |
+
|
2656 |
+
});
|
2657 |
+
|
2658 |
+
/*
|
2659 |
+
* Field: Tab
|
2660 |
+
*/
|
2661 |
+
new acf.Model({
|
2662 |
+
|
2663 |
+
actions: {
|
2664 |
+
'prepare_field/type=tab': 'prepareField',
|
2665 |
+
},
|
2666 |
+
|
2667 |
+
prepareField: function(field){
|
2668 |
+
|
2669 |
+
if(!field.has('noPreference'))
|
2670 |
+
return;
|
2671 |
+
|
2672 |
+
var $tabs = field.findTabs();
|
2673 |
+
var tabs = acf.getInstances($tabs);
|
2674 |
+
var key = field.get('key');
|
2675 |
+
|
2676 |
+
if(tabs.length){
|
2677 |
+
|
2678 |
+
var preference = acf.getPreference('this.tabs');
|
2679 |
+
|
2680 |
+
if(!preference)
|
2681 |
+
return;
|
2682 |
+
|
2683 |
+
$.each(tabs, function(i, group){
|
2684 |
+
|
2685 |
+
var groupIndex = group.get('index');
|
2686 |
+
|
2687 |
+
if(group.data.key !== key)
|
2688 |
+
return;
|
2689 |
+
|
2690 |
+
preference[groupIndex] = 0;
|
2691 |
+
|
2692 |
+
});
|
2693 |
+
|
2694 |
+
// update
|
2695 |
+
acf.setPreference('this.tabs', preference);
|
2696 |
+
|
2697 |
+
}
|
2698 |
+
|
2699 |
+
}
|
2700 |
+
|
2701 |
+
});
|
2702 |
+
|
2703 |
+
/*
|
2704 |
+
* Field: Checkbox
|
2705 |
+
*/
|
2706 |
+
new acf.Model({
|
2707 |
+
|
2708 |
+
actions: {
|
2709 |
+
'new_field/type=checkbox': 'newField',
|
2710 |
+
},
|
2711 |
+
|
2712 |
+
newField: function(field){
|
2713 |
+
|
2714 |
+
if(!field.has('acfeLabels'))
|
2715 |
+
return;
|
2716 |
+
|
2717 |
+
$.each(field.get('acfeLabels'), function(group, key){
|
2718 |
+
|
2719 |
+
field.$control().find('input[type=checkbox][value="' + key + '"]').closest('ul').before('<strong>' + group + '</strong>');
|
2720 |
+
|
2721 |
+
});
|
2722 |
+
|
2723 |
+
}
|
2724 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2725 |
});
|
2726 |
+
|
2727 |
+
/*
|
2728 |
+
* Field: Radio
|
2729 |
*/
|
2730 |
+
new acf.Model({
|
2731 |
+
|
2732 |
+
actions: {
|
2733 |
+
'new_field/type=radio': 'newField',
|
2734 |
+
},
|
2735 |
+
|
2736 |
+
newField: function(field){
|
2737 |
+
|
2738 |
+
if(!field.has('acfeLabels'))
|
2739 |
+
return;
|
2740 |
+
|
2741 |
+
$.each(field.get('acfeLabels'), function(group, key){
|
2742 |
+
|
2743 |
+
field.$control().find('input[type=radio][value="' + key + '"]').closest('li').addClass('parent').prepend('<strong>' + group + '</strong>');
|
2744 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2745 |
});
|
2746 |
+
|
2747 |
+
if(field.$control().hasClass('acf-hl')){
|
2748 |
+
|
2749 |
+
field.$control().find('li.parent').each(function(){
|
2750 |
+
|
2751 |
+
$(this).nextUntil('li.parent').addBack().wrapAll('<li><ul></ul></li>');
|
2752 |
+
|
|
|
|
|
|
|
|
|
2753 |
});
|
2754 |
+
|
2755 |
}
|
2756 |
+
|
2757 |
}
|
2758 |
+
|
2759 |
});
|
2760 |
+
|
2761 |
+
/*
|
2762 |
+
* Field: Instructions
|
2763 |
*/
|
2764 |
+
new acf.Model({
|
|
|
|
|
|
|
|
|
2765 |
|
2766 |
+
field: false,
|
2767 |
+
placement: false,
|
2768 |
|
2769 |
+
actions: {
|
2770 |
+
'new_field': 'newField',
|
2771 |
+
},
|
2772 |
|
2773 |
+
newField: function(field){
|
|
|
2774 |
|
2775 |
+
this.field = field;
|
2776 |
|
2777 |
+
if(field.has('instructionTooltip')){
|
2778 |
+
this.setTooltip();
|
2779 |
+
}
|
2780 |
|
2781 |
+
if(field.has('instructionAboveField')){
|
2782 |
+
this.setAboveField();
|
2783 |
+
}
|
2784 |
|
2785 |
+
if(field.has('instructionPlacement')){
|
2786 |
+
this.overridePlacement(field.get('instructionPlacement'));
|
2787 |
+
}
|
2788 |
|
2789 |
+
},
|
|
|
2790 |
|
2791 |
+
setTooltip: function(){
|
|
|
|
|
|
|
|
|
|
|
2792 |
|
2793 |
+
this.field.$labelWrap().prepend('<span class="acfe-field-tooltip acf-js-tooltip dashicons dashicons-info" title="' + _.escape(this.field.get('instructionTooltip')) + '"></span>');
|
2794 |
+
this.field.$labelWrap().find('.description').remove();
|
2795 |
|
2796 |
+
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2797 |
|
2798 |
+
setAboveField: function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2799 |
|
2800 |
+
this.field.$inputWrap().prepend('<p class="description">' + this.field.get('instructionAboveField') + '</p>');
|
2801 |
+
this.field.$labelWrap().find('.description').remove();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2802 |
|
2803 |
+
},
|
2804 |
|
2805 |
+
overridePlacement: function(target){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2806 |
|
2807 |
+
var current = this.getPlacement();
|
2808 |
+
|
2809 |
+
// No instruction
|
2810 |
+
if(!current)
|
2811 |
+
return;
|
2812 |
+
|
2813 |
+
// Placement is correct
|
2814 |
+
if(current === target)
|
2815 |
+
return;
|
2816 |
+
|
2817 |
+
this.setPlacement(target);
|
2818 |
+
|
2819 |
+
},
|
2820 |
+
|
2821 |
+
getPlacement: function(){
|
2822 |
+
|
2823 |
+
var placement = false;
|
2824 |
+
|
2825 |
+
if(this.field.$labelWrap().find('>.description').length)
|
2826 |
+
placement = 'label';
|
2827 |
+
|
2828 |
+
else if(this.field.$inputWrap().find('>.description:first-child').length)
|
2829 |
+
placement = 'above_field';
|
2830 |
+
|
2831 |
+
else if(this.field.$inputWrap().find('>.description:last-child').length)
|
2832 |
+
placement = 'field';
|
2833 |
+
|
2834 |
+
else if(this.field.$labelWrap().find('>.acfe-field-tooltip').length)
|
2835 |
+
placement = 'tooltip';
|
2836 |
+
|
2837 |
+
this.placement = placement;
|
2838 |
+
|
2839 |
+
return this.placement;
|
2840 |
+
|
2841 |
+
},
|
2842 |
+
|
2843 |
+
$getInstruction: function(){
|
2844 |
+
|
2845 |
+
var placement = this.getPlacement();
|
2846 |
+
|
2847 |
+
if(placement === 'label'){
|
2848 |
+
|
2849 |
+
return this.field.$labelWrap().find('>.description');
|
2850 |
+
|
2851 |
+
}else if(placement === 'above_field'){
|
2852 |
+
|
2853 |
+
return this.field.$inputWrap().find('>.description:first-child');
|
2854 |
+
|
2855 |
+
}else if(placement === 'field'){
|
2856 |
+
|
2857 |
+
return this.field.$inputWrap().find('>.description:last-child');
|
2858 |
+
|
2859 |
+
}else if(placement === 'tooltip'){
|
2860 |
+
|
2861 |
+
return this.field.$labelWrap().find('>.acfe-field-tooltip');
|
2862 |
+
|
2863 |
+
}
|
2864 |
+
|
2865 |
+
return false;
|
2866 |
+
|
2867 |
+
},
|
2868 |
+
|
2869 |
+
setPlacement: function(target){
|
2870 |
+
|
2871 |
+
var $instruction = this.$getInstruction();
|
2872 |
+
|
2873 |
+
if(this.placement === 'tooltip'){
|
2874 |
+
|
2875 |
+
var text = $instruction.attr('title');
|
2876 |
+
|
2877 |
+
$instruction.remove();
|
2878 |
+
$instruction = $('<p class="description">' + text + '</p>');
|
2879 |
+
|
2880 |
+
}
|
2881 |
+
|
2882 |
+
if(target === 'label'){
|
2883 |
+
|
2884 |
+
this.field.$labelWrap().append($instruction);
|
2885 |
+
|
2886 |
+
}else if(target === 'above_field'){
|
2887 |
+
|
2888 |
+
this.field.$inputWrap().prepend($instruction);
|
2889 |
+
|
2890 |
+
}else if(target === 'field'){
|
2891 |
+
|
2892 |
+
this.field.$inputWrap().append($instruction);
|
2893 |
+
|
2894 |
+
}else if(target === 'tooltip'){
|
2895 |
+
|
2896 |
+
this.field.$labelWrap().prepend($('<span class="acfe-field-tooltip acf-js-tooltip dashicons dashicons-info" title="' + _.escape($instruction.html()) + '"></span>'));
|
2897 |
+
$instruction.remove();
|
2898 |
+
|
2899 |
+
}
|
2900 |
|
|
|
|
|
|
|
|
|
2901 |
}
|
2902 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2903 |
});
|
2904 |
+
|
2905 |
+
})(jQuery);
|
2906 |
+
(function($){
|
2907 |
|
2908 |
+
if(typeof acf === 'undefined')
|
2909 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2910 |
|
2911 |
+
/*
|
2912 |
+
* Field Conditions: Code Editor
|
2913 |
*/
|
2914 |
+
acf.registerConditionForFieldType('equalTo', 'acfe_code_editor');
|
2915 |
+
acf.registerConditionForFieldType('notEqualTo', 'acfe_code_editor');
|
2916 |
+
acf.registerConditionForFieldType('patternMatch', 'acfe_code_editor');
|
2917 |
+
acf.registerConditionForFieldType('contains', 'acfe_code_editor');
|
2918 |
+
acf.registerConditionForFieldType('hasValue', 'acfe_code_editor');
|
2919 |
+
acf.registerConditionForFieldType('hasNoValue', 'acfe_code_editor');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2920 |
|
2921 |
+
/*
|
2922 |
* Field Conditions: Datepicker
|
2923 |
*/
|
2924 |
acf.registerConditionForFieldType('equalTo', 'date_picker');
|
2928 |
acf.registerConditionForFieldType('greaterThan', 'date_picker');
|
2929 |
acf.registerConditionForFieldType('lessThan', 'date_picker');
|
2930 |
|
2931 |
+
/*
|
2932 |
+
* Field Conditions: Datetime picker
|
2933 |
+
*/
|
2934 |
+
acf.registerConditionForFieldType('equalTo', 'date_time_picker');
|
2935 |
+
acf.registerConditionForFieldType('notEqualTo', 'date_time_picker');
|
2936 |
+
acf.registerConditionForFieldType('patternMatch', 'date_time_picker');
|
2937 |
+
acf.registerConditionForFieldType('contains', 'date_time_picker');
|
2938 |
+
|
2939 |
+
/*
|
2940 |
+
* Field Conditions: Timepicker
|
2941 |
+
*/
|
2942 |
+
acf.registerConditionForFieldType('equalTo', 'time_picker');
|
2943 |
+
acf.registerConditionForFieldType('notEqualTo', 'time_picker');
|
2944 |
+
acf.registerConditionForFieldType('patternMatch', 'time_picker');
|
2945 |
+
acf.registerConditionForFieldType('contains', 'time_picker');
|
2946 |
+
|
2947 |
+
/*
|
2948 |
* Field Conditions: Taxonomy
|
2949 |
*/
|
2950 |
acf.registerConditionForFieldType('equalTo', 'taxonomy');
|
2953 |
acf.registerConditionForFieldType('contains', 'taxonomy');
|
2954 |
acf.registerConditionForFieldType('hasValue', 'taxonomy');
|
2955 |
acf.registerConditionForFieldType('hasNoValue', 'taxonomy');
|
2956 |
+
|
2957 |
+
/*
|
2958 |
* Field Conditions: Forms
|
2959 |
*/
|
2960 |
acf.registerConditionForFieldType('equalTo', 'acfe_forms');
|
2962 |
acf.registerConditionForFieldType('patternMatch', 'acfe_forms');
|
2963 |
acf.registerConditionForFieldType('contains', 'acfe_forms');
|
2964 |
acf.registerConditionForFieldType('hasValue', 'acfe_forms');
|
2965 |
+
acf.registerConditionForFieldType('hasNoValue', 'acfe_forms');
|
2966 |
+
|
2967 |
+
/*
|
2968 |
+
* Field Conditions: Hidden
|
2969 |
+
*/
|
2970 |
+
acf.registerConditionForFieldType('equalTo', 'acfe_hidden');
|
2971 |
+
acf.registerConditionForFieldType('notEqualTo', 'acfe_hidden');
|
2972 |
+
acf.registerConditionForFieldType('patternMatch', 'acfe_hidden');
|
2973 |
+
acf.registerConditionForFieldType('contains', 'acfe_hidden');
|
2974 |
+
acf.registerConditionForFieldType('hasValue', 'acfe_hidden');
|
2975 |
+
acf.registerConditionForFieldType('hasNoValue', 'acfe_hidden');
|
2976 |
+
|
2977 |
+
/*
|
2978 |
* Field Conditions: Post Status
|
2979 |
*/
|
2980 |
acf.registerConditionForFieldType('equalTo', 'acfe_post_statuses');
|
2982 |
acf.registerConditionForFieldType('patternMatch', 'acfe_post_statuses');
|
2983 |
acf.registerConditionForFieldType('contains', 'acfe_post_statuses');
|
2984 |
acf.registerConditionForFieldType('hasValue', 'acfe_post_statuses');
|
2985 |
+
acf.registerConditionForFieldType('hasNoValue', 'acfe_post_statuses');
|
2986 |
+
|
2987 |
+
/*
|
2988 |
* Field Conditions: Post Types
|
2989 |
*/
|
2990 |
acf.registerConditionForFieldType('equalTo', 'acfe_post_types');
|
2992 |
acf.registerConditionForFieldType('patternMatch', 'acfe_post_types');
|
2993 |
acf.registerConditionForFieldType('contains', 'acfe_post_types');
|
2994 |
acf.registerConditionForFieldType('hasValue', 'acfe_post_types');
|
2995 |
+
acf.registerConditionForFieldType('hasNoValue', 'acfe_post_types');
|
2996 |
+
|
2997 |
+
/*
|
2998 |
+
* Field Conditions: Slug
|
2999 |
+
*/
|
3000 |
+
acf.registerConditionForFieldType('equalTo', 'acfe_slug');
|
3001 |
+
acf.registerConditionForFieldType('notEqualTo', 'acfe_slug');
|
3002 |
+
acf.registerConditionForFieldType('patternMatch', 'acfe_slug');
|
3003 |
+
acf.registerConditionForFieldType('contains', 'acfe_slug');
|
3004 |
+
acf.registerConditionForFieldType('hasValue', 'acfe_slug');
|
3005 |
+
acf.registerConditionForFieldType('hasNoValue', 'acfe_slug');
|
3006 |
+
|
3007 |
+
/*
|
3008 |
* Field Conditions: Taxonomies
|
3009 |
*/
|
3010 |
acf.registerConditionForFieldType('equalTo', 'acfe_taxonomies');
|
3012 |
acf.registerConditionForFieldType('patternMatch', 'acfe_taxonomies');
|
3013 |
acf.registerConditionForFieldType('contains', 'acfe_taxonomies');
|
3014 |
acf.registerConditionForFieldType('hasValue', 'acfe_taxonomies');
|
3015 |
+
acf.registerConditionForFieldType('hasNoValue', 'acfe_taxonomies');
|
3016 |
+
|
3017 |
+
/*
|
3018 |
* Field Conditions: Taxonomy Terms
|
3019 |
*/
|
3020 |
acf.registerConditionForFieldType('equalTo', 'acfe_taxonomy_terms');
|
3022 |
acf.registerConditionForFieldType('patternMatch', 'acfe_taxonomy_terms');
|
3023 |
acf.registerConditionForFieldType('contains', 'acfe_taxonomy_terms');
|
3024 |
acf.registerConditionForFieldType('hasValue', 'acfe_taxonomy_terms');
|
3025 |
+
acf.registerConditionForFieldType('hasNoValue', 'acfe_taxonomy_terms');
|
3026 |
+
|
3027 |
+
/*
|
3028 |
* Field Conditions: User Roles
|
3029 |
*/
|
3030 |
acf.registerConditionForFieldType('equalTo', 'acfe_user_roles');
|
3032 |
acf.registerConditionForFieldType('patternMatch', 'acfe_user_roles');
|
3033 |
acf.registerConditionForFieldType('contains', 'acfe_user_roles');
|
3034 |
acf.registerConditionForFieldType('hasValue', 'acfe_user_roles');
|
3035 |
+
acf.registerConditionForFieldType('hasNoValue', 'acfe_user_roles');
|
3036 |
+
|
3037 |
+
})(jQuery);
|
3038 |
+
(function($){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3039 |
|
3040 |
+
if(typeof acf === 'undefined')
|
3041 |
+
return;
|
3042 |
+
|
3043 |
+
/*
|
3044 |
+
* ACFE Form
|
3045 |
*/
|
3046 |
+
new acf.Model({
|
3047 |
+
|
3048 |
+
actions: {
|
3049 |
+
'prepare': 'prepare',
|
3050 |
+
'new_field/type=date_picker': 'datePicker',
|
3051 |
+
'new_field/type=date_time_picker': 'datePicker',
|
3052 |
+
'new_field/type=time_picker': 'datePicker',
|
3053 |
+
'new_field/type=google_map': 'googleMap',
|
3054 |
+
'invalid_field': 'invalidField',
|
3055 |
+
'validation_begin': 'validationBegin',
|
3056 |
+
},
|
3057 |
+
|
3058 |
+
prepare: function(){
|
3059 |
+
|
3060 |
+
if(acfe.get('is_admin'))
|
3061 |
+
return;
|
3062 |
+
|
3063 |
+
// Fix Image/File WP Media upload
|
3064 |
+
if(acf.isset(window, 'wp', 'media', 'view', 'settings', 'post')){
|
3065 |
+
|
3066 |
+
// Unset Post ID
|
3067 |
+
wp.media.view.settings.post = false;
|
3068 |
+
|
3069 |
+
}
|
3070 |
+
|
3071 |
+
if($('.acfe-form[data-hide-unload="1"]').length){
|
3072 |
+
|
3073 |
+
acf.unload.disable();
|
3074 |
|
3075 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
3076 |
|
3077 |
+
var $form_success = $('.acfe-form-success');
|
|
|
3078 |
|
3079 |
+
if($form_success.length){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3080 |
|
3081 |
+
// Prevent refresh sending post fields again
|
3082 |
+
if(window.history.replaceState){
|
3083 |
+
window.history.replaceState(null, null, window.location.href);
|
3084 |
+
}
|
3085 |
|
3086 |
+
$form_success.each(function(){
|
|
|
|
|
3087 |
|
3088 |
+
var form_name = $(this).data('form-name');
|
3089 |
+
var form_id = $(this).data('form-id');
|
3090 |
|
3091 |
+
acf.doAction('acfe/form/submit/success');
|
3092 |
+
acf.doAction('acfe/form/submit/success/id=' + form_id);
|
3093 |
+
acf.doAction('acfe/form/submit/success/name=' + form_name);
|
3094 |
|
3095 |
+
});
|
|
|
3096 |
|
3097 |
+
}
|
3098 |
|
3099 |
+
// Prevent form submission click spam
|
3100 |
+
$('.acf-form .button, .acf-form [type="submit"], .acfe-form .button, .acfe-form [type="submit"]').click(function(e){
|
3101 |
|
3102 |
+
if(!$(this).hasClass('disabled'))
|
3103 |
+
return;
|
3104 |
+
|
3105 |
+
e.preventDefault();
|
3106 |
|
3107 |
});
|
3108 |
|
3109 |
+
},
|
|
|
3110 |
|
3111 |
+
// Datepicker: Add field class
|
3112 |
+
datePicker: function(field){
|
3113 |
|
3114 |
+
if(acfe.get('is_admin'))
|
3115 |
+
return;
|
3116 |
|
3117 |
+
var $form = field.$el.closest('.acfe-form');
|
|
|
|
|
|
|
|
|
3118 |
|
3119 |
+
if(!$form.length)
|
3120 |
+
return;
|
3121 |
|
3122 |
+
var field_class = $form.data('fields-class');
|
|
|
|
|
|
|
|
|
|
|
3123 |
|
3124 |
+
if(field_class)
|
3125 |
+
field.$inputText().addClass(field_class);
|
3126 |
|
3127 |
+
},
|
|
|
|
|
3128 |
|
3129 |
+
// Google Maps: Add field class
|
3130 |
+
googleMap: function(field){
|
3131 |
|
3132 |
+
if(acfe.get('is_admin'))
|
3133 |
+
return;
|
3134 |
|
3135 |
+
var $form = field.$el.closest('.acfe-form');
|
3136 |
|
3137 |
+
if(!$form.length)
|
3138 |
+
return;
|
|
|
|
|
3139 |
|
3140 |
+
var field_class = $form.data('fields-class');
|
|
|
|
|
|
|
|
|
|
|
|
|
3141 |
|
3142 |
+
if(field_class)
|
3143 |
+
field.$search().addClass(field_class);
|
|
|
3144 |
|
3145 |
+
},
|
|
|
|
|
|
|
|
|
3146 |
|
3147 |
+
// Error: Move error
|
3148 |
+
invalidField: function(field){
|
3149 |
|
3150 |
+
if(acfe.get('is_admin'))
|
3151 |
+
return;
|
3152 |
|
3153 |
+
var $form = field.$el.closest('.acfe-form');
|
|
|
3154 |
|
3155 |
+
if(!$form.length)
|
3156 |
+
return;
|
3157 |
|
3158 |
+
var errors_position = $form.data('errors-position');
|
3159 |
+
var errors_class = $form.data('errors-class');
|
|
|
|
|
3160 |
|
3161 |
+
// Class
|
3162 |
+
if(errors_class && errors_class.length){
|
3163 |
|
3164 |
+
field.$el.find('.acf-notice.-error').addClass(errors_class);
|
3165 |
|
3166 |
+
}
|
3167 |
|
3168 |
+
// Move below
|
3169 |
+
if(errors_position && errors_position === 'below'){
|
3170 |
|
3171 |
+
if(field.$control().length){
|
3172 |
|
3173 |
+
field.$el.find('.acf-notice.-error').insertAfter(field.$control());
|
|
|
|
|
|
|
3174 |
|
3175 |
+
}else if(field.$input().length){
|
|
|
3176 |
|
3177 |
+
field.$el.find('.acf-notice.-error').insertAfter(field.$input());
|
3178 |
|
3179 |
+
}
|
3180 |
|
3181 |
+
var $selector = false;
|
3182 |
|
3183 |
+
if(field.$control().length){
|
3184 |
|
3185 |
+
$selector = field.$control();
|
3186 |
|
3187 |
+
}else if(field.$input().length){
|
3188 |
|
3189 |
+
$selector = field.$input();
|
3190 |
|
3191 |
+
}
|
3192 |
|
3193 |
+
if($selector)
|
3194 |
+
field.$el.find('.acf-notice.-error').insertAfter($selector);
|
3195 |
|
3196 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
3197 |
|
3198 |
+
// Group errors
|
3199 |
+
else if(errors_position && errors_position === 'group'){
|
3200 |
|
3201 |
+
var label = field.$el.find('.acf-label label').text().trim();
|
3202 |
+
var placeholder = field.$el.find('.acf-input-wrap [placeholder!=""]').attr('placeholder');
|
3203 |
+
var message = field.$el.find('.acf-notice.-error').text().trim();
|
3204 |
|
3205 |
+
field.$el.find('.acf-notice.-error').remove();
|
|
|
3206 |
|
3207 |
+
// Try label
|
3208 |
+
if(label && label.length && label !== '*'){
|
3209 |
+
|
3210 |
+
message = label + ': ' + message;
|
3211 |
|
3212 |
+
}
|
3213 |
|
3214 |
+
// Try placeholder
|
3215 |
+
else if(placeholder && placeholder.length && placeholder !== ''){
|
3216 |
|
3217 |
+
message = placeholder + ': ' + message;
|
3218 |
+
|
3219 |
+
}
|
3220 |
+
|
3221 |
+
// If everything fails, use field name
|
3222 |
+
else{
|
3223 |
+
|
3224 |
+
message = field.get('name') + ': ' + message;
|
3225 |
+
|
3226 |
+
}
|
3227 |
+
|
3228 |
+
var $form_error = $form.find('> .acfe-form-error')
|
3229 |
|
3230 |
+
if(!$form_error.length)
|
3231 |
+
$form_error = $('<div class="acf-notice -error acf-error-message acfe-form-error" />').prependTo($form);
|
3232 |
+
|
3233 |
+
$form_error.append('<p>' + message + '</p>');
|
3234 |
|
|
|
|
|
3235 |
}
|
3236 |
|
3237 |
+
// Hide errors
|
3238 |
+
else if(errors_position && errors_position === 'hide'){
|
3239 |
+
|
3240 |
+
field.$el.find('.acf-notice.-error').remove();
|
3241 |
|
3242 |
+
}
|
3243 |
+
|
3244 |
+
},
|
3245 |
|
3246 |
+
// Ajax Validation
|
3247 |
+
validationBegin: function($form){
|
|
|
3248 |
|
3249 |
+
if(acfe.get('is_admin'))
|
3250 |
+
return;
|
3251 |
+
|
3252 |
+
if(typeof $form === 'undefined')
|
3253 |
+
return;
|
3254 |
+
|
3255 |
+
$form.find('.acf-error-message').remove();
|
3256 |
|
3257 |
}
|
|
|
|
|
|
|
|
|
|
|
3258 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3259 |
});
|
|
|
|
|
|
|
3260 |
|
3261 |
+
// Rewrite ACF New Condition
|
3262 |
+
// Allow conditions to work within wrapped div
|
3263 |
+
acf.newCondition = function(rule, conditions){
|
3264 |
+
|
3265 |
+
// currently setting up conditions for fieldX, this field is the 'target'
|
3266 |
+
var target = conditions.get('field');
|
3267 |
+
|
3268 |
+
// use the 'target' to find the 'trigger' field.
|
3269 |
+
// - this field is used to setup the conditional logic events
|
3270 |
+
var field = target.getField( rule.field );
|
3271 |
+
|
3272 |
+
// ACF Extended: Check in all form if targeted field not found
|
3273 |
+
if( target && !field ) {
|
3274 |
+
|
3275 |
+
field = acf.getField( rule.field );
|
|
|
|
|
3276 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3277 |
}
|
3278 |
+
|
3279 |
+
// bail ealry if no target or no field (possible if field doesn't exist due to HTML error)
|
3280 |
+
if( !target || !field ) {
|
3281 |
+
return false;
|
|
|
|
|
3282 |
}
|
|
|
|
|
|
|
|
|
|
|
3283 |
|
3284 |
+
// vars
|
3285 |
+
var args = {
|
3286 |
+
rule: rule,
|
3287 |
+
target: target,
|
3288 |
+
conditions: conditions,
|
3289 |
+
field: field
|
3290 |
+
};
|
3291 |
+
|
3292 |
+
// vars
|
3293 |
+
var fieldType = field.get('type');
|
3294 |
+
var operator = rule.operator;
|
3295 |
+
|
3296 |
+
// get avaibale conditions
|
3297 |
+
var conditionTypes = acf.getConditionTypes({
|
3298 |
+
fieldType: fieldType,
|
3299 |
+
operator: operator,
|
3300 |
+
});
|
3301 |
+
|
3302 |
+
// instantiate
|
3303 |
+
var model = conditionTypes[0] || acf.Condition;
|
3304 |
+
|
3305 |
+
// instantiate
|
3306 |
+
var condition = new model( args );
|
3307 |
+
|
3308 |
+
// return
|
3309 |
+
return condition;
|
3310 |
+
|
3311 |
+
};
|
3312 |
|
3313 |
})(jQuery);
|
3314 |
(function($){
|
@@ -0,0 +1 @@
|
|
|
1 |
+
function acfe_recaptcha(){var e;e=jQuery,"undefined"!=typeof acf&&e.each(acf.getFields({type:"acfe_recaptcha"}),function(){this.render()})}!function(c){var e;"undefined"!=typeof acf&&((e=acf.getFieldType("flexible_content").prototype).addSortable=function(a){1!=this.get("max")&&this.$layoutsWrap().sortable({items:" > .layout",handle:"> .acf-fc-layout-handle",forceHelperSize:!1,forcePlaceholderSize:!0,revert:50,tolerance:"pointer",scroll:!0,stop:function(e,t){a.render()},update:function(e,t){a.$input().trigger("change")}})},e.acfeOneClick=function(e,t){var a=this.$clones(),i=c(a[0]).data("layout"),a=null;t.hasClass("acf-icon")&&(a=t.closest(".layout"));this.add({layout:i,before:a});a=c(".acf-fc-popup");a.length&&a.hide()},e.acfeLayoutInit=function(t){var e,a,i=this,n=(t.find("> .acf-fc-layout-controls"),t.find("> .acf-fc-layout-handle"),t.find("> .acfe-fc-placeholder"));n.removeClass("acf-hidden"),i.has("acfeFlexibleModalEdition")||i.isLayoutClosed(t)||n.addClass("acf-hidden"),i.isLayoutClosed(t)&&i.has("acfeFlexiblePreview")&&!n.hasClass("-loading")&&(n.addClass("acfe-fc-preview -loading").find("> .acfe-flexible-placeholder").prepend('<span class="spinner"></span>'),n.find("> .acfe-fc-overlay").addClass("-hover"),e=t.children("input").attr("name").replace("[acf_fc_layout]",""),a={action:"acfe/flexible/layout_preview",field_key:i.get("key"),i:t.index(),layout:t.data("layout"),value:acf.serialize(t,e)},acf.doAction("acfe/fields/flexible_content/before_preview",i.$el,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/name="+i.get("name"),i.$el,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/key="+i.get("key"),i.$el,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/name="+i.get("name")+"&layout="+t.data("layout"),i.$el,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/key="+i.get("key")+"&layout="+t.data("layout"),i.$el,t,a),c.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),dataType:"html",type:"post",success:function(e){e?n.find("> .acfe-flexible-placeholder").html(e):n.removeClass("acfe-fc-preview"),acf.doAction("acfe/fields/flexible_content/preview",e,i.$el,t,a),acf.doAction("acfe/fields/flexible_content/preview/name="+i.get("name"),e,i.$el,t,a),acf.doAction("acfe/fields/flexible_content/preview/key="+i.get("key"),e,i.$el,t,a),acf.doAction("acfe/fields/flexible_content/preview/name="+i.get("name")+"&layout="+t.data("layout"),e,i.$el,t,a),acf.doAction("acfe/fields/flexible_content/preview/key="+i.get("key")+"&layout="+t.data("layout"),e,i.$el,t,a)},complete:function(){n.find("> .acfe-fc-overlay").removeClass("-hover"),n.removeClass("-loading").find("> .acfe-flexible-placeholder > .spinner").remove()}}))},acf.getFieldType("wysiwyg").prototype.initialize=function(){this.has("id")||this.$control().hasClass("delay")||this.initializeEditor()},acf.addAction("show_field/type=wysiwyg",e=function(e){var t;e.has("id")||!e.$el.is(":visible")||acfe.isFilterEnabled("acfeForceOpen")||(t=e.$control()).hasClass("delay")&&(t.removeClass("delay"),t.find(".acf-editor-toolbar").remove(),e.initializeEditor())}),acf.addAction("ready_field/type=wysiwyg",e),acf.addAction("new_field/type=flexible_content",function(a){var e=a.$clones(),t=a.$layouts();c.merge(t,e);t.each(function(){var e=c(this),t=e.data("layout");acf.doAction("acfe/flexible/layouts",e,a),acf.doAction("acfe/flexible/layout/name="+t,e,a)}),1===e.length&&(a.removeEvents({'click [data-name="add-layout"]':"onClickAdd"}),a.addEvents({'click [data-name="add-layout"]':"acfeOneClick"})),a.addEvents({"click .acfe-fc-placeholder":"onClickCollapse"}),a.addEvents({"click .acfe-flexible-opened-actions > a":"onClickCollapse"}),a.has("acfeFlexibleAjax")&&(a.add=function(n){var o=this;if(n=acf.parseArgs(n,{layout:"",before:!1}),!this.allowAdd())return!1;c.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax({action:"acfe/flexible/models",field_key:this.get("key"),layout:n.layout}),dataType:"html",type:"post",beforeSend:function(){c("body").addClass("-loading")},success:function(e){if(e){var t=c(e),a=acf.uniqid(),i="acf["+o.get("key")+"][acfcloneindex]",e=o.$control().find("> input[type=hidden]").attr("name")+"["+a+"]",e=acf.duplicate({target:t,search:i,replace:e,append:o.proxy(function(e,t){n.before?n.before.before(t):o.$layoutsWrap().append(t),acf.enable(t,o.cid),o.render()})});return e.attr("data-id",a),o.$input().trigger("change"),e}},complete:function(){c("body").removeClass("-loading")}})})}),acf.addAction("acfe/flexible/layouts",function(e,t){t.isLayoutClosed(e)&&(e.find("> .acfe-fc-placeholder").removeClass("acf-hidden"),t.has("acfeFlexibleOpen")&&(acfe.enableFilter("acfeForceOpen"),t.openLayout(e),acfe.disableFilter("acfeForceOpen")))}),acf.addAction("show",function(e,t){"collapse"===t&&e.is(".layout")&&(acf.getInstance(e.closest(".acf-field-flexible-content")).has("acfeFlexibleModalEdition")||e.find("> .acfe-fc-placeholder").addClass("acf-hidden"))}),acf.addAction("hide",function(e,t){"collapse"===t&&e.is(".layout")&&!e.is(".acf-clone")&&((t=acf.getInstance(e.closest(".acf-field-flexible-content"))).has("acfeFlexibleRemoveAjaxTitle")&&(t.renderLayout=function(e){}),t.acfeLayoutInit(e))}),acf.addAction("append",function(e){var t;e.is(".layout")&&(t=acf.getInstance(e.closest(".acf-field-flexible-content")),e.is(".acfe-layout-duplicated")||(t.has("acfeFlexibleModalEdition")?e.find('> [data-action="acfe-flexible-modal-edit"]:first').trigger("click"):t.openLayout(e)),t.acfeLayoutInit(e),(t=t.$el.closest(".acfe-modal.-open")).length?t.find("> .acfe-modal-wrapper > .acfe-modal-content").animate({scrollTop:parseInt(e.offset().top)-200},200):!(parseFloat(acf.get("acf_version"))<5.9)&&e.hasClass("-focused")||c("html, body").animate({scrollTop:parseInt(e.offset().top)-200},200))}),acf.addAction("invalid_field",function(e){e.$el.parents(".layout").addClass("acfe-flexible-modal-edit-error")}),acf.addAction("valid_field",function(e){e.$el.parents(".layout").each(function(){var e=c(this);e.find(".acf-error").length||e.removeClass("acfe-flexible-modal-edit-error")})}))}(jQuery),function(r){var n;"undefined"!=typeof acf&&((n=acf.getFieldType("flexible_content").prototype).events["click .acf-fc-layout-handle"]="acfeEditLayoutTitleToggleHandle",n.acfeEditLayoutTitleToggleHandle=function(e,t){!this.has("acfeFlexibleTitleEdition")||(t=t.closest(".layout")).hasClass("acfe-flexible-title-edition")&&t.find("> .acf-fc-layout-handle > .acfe-layout-title > input.acfe-flexible-control-title").trigger("blur")},n.events["click .acfe-layout-title-text"]="acfeEditLayoutTitle",n.acfeEditLayoutTitle=function(e,t){this.has("acfeFlexibleTitleEdition")&&(e.stopPropagation(),this.acfeEditLayoutTitleToggle(e,t))},n.events["blur input.acfe-flexible-control-title"]="acfeEditLayoutTitleToggle",n.acfeEditLayoutTitleToggle=function(e,t){var a,i=t.closest(".layout"),n=i.find("> .acf-fc-layout-handle"),t=n.find(".acfe-layout-title");i.hasClass("acfe-flexible-title-edition")?(""===(a=t.find("> input[data-acfe-flexible-control-title-input]")).val()&&a.val(a.attr("placeholder")).trigger("input"),i.removeClass("acfe-flexible-title-edition"),a.insertAfter(n)):(a=(a=i.find("> input[data-acfe-flexible-control-title-input]")).appendTo(t),i.addClass("acfe-flexible-title-edition"),a.focus().attr("size",a.val().length))},n.events["click input.acfe-flexible-control-title"]="acfeEditLayoutTitlePropagation",n.acfeEditLayoutTitlePropagation=function(e,t){e.stopPropagation()},n.events["input [data-acfe-flexible-control-title-input]"]="acfeEditLayoutTitleInput",n.acfeEditLayoutTitleInput=function(e,t){var a=t.closest(".layout").find("> .acf-fc-layout-handle .acfe-layout-title .acfe-layout-title-text"),i=t.val();t.attr("size",i.length),a.html(i)},n.events["keypress [data-acfe-flexible-control-title-input]"]="acfeEditLayoutTitleInputEnter",n.acfeEditLayoutTitleInputEnter=function(e,t){13===e.keyCode&&(e.preventDefault(),t.blur())},n.events["click [data-acfe-flexible-settings]"]="acfeLayoutSettings",n.acfeLayoutSettings=function(e,t){var a=this,i=t.closest(".layout"),n=i.find("> .acfe-modal.-settings"),o=i.find("> .acf-fc-layout-handle"),t=o.find("> .acf-fc-layout-order").outerHTML(),o=o.find(".acfe-layout-title-text").text();new acfe.Popup(n,{title:t+" "+o,footer:acf.__("Close"),onClose:function(){a.has("acfeFlexiblePreview")&&a.closeLayout(i)}})},n.events["click [data-acfe-flexible-control-toggle]"]="acfeLayoutToggle",n.acfeLayoutToggle=function(e,t){var a=t.closest(".layout"),t=a.find("> .acfe-flexible-layout-toggle");t.length&&("1"===t.val()?(a.removeClass("acfe-flexible-layout-hidden"),t.val("")):(a.addClass("acfe-flexible-layout-hidden"),t.val("1")))},acf.addAction("acfe/flexible/layouts",function(e,t){!t.has("acfeFlexibleToggle")||(t=e.find("> .acfe-flexible-layout-toggle")).length&&("1"===t.val()?e.addClass("acfe-flexible-layout-hidden"):e.removeClass("acfe-flexible-layout-hidden"))}),n.events["click [data-acfe-flexible-control-clone]"]="acfeCloneLayout",n.acfeCloneLayout=function(e,t){var a,i=this,n=t.closest(".layout"),o=n.data("layout"),c=r(i.$popup().html()),l=i.$layouts(),c=c.find('[data-layout="'+o+'"]'),c=(c.data("min"),c.data("max")||0),o=(a=o,l.filter(function(){return r(this).data("layout")===a}).length);if(c&&c<=o)return t.addClass("disabled"),!1;t.removeClass("disabled"),i.acfeFixInputs(n);o=n.clone();i.acfeCleanLayouts(o);t=t.closest(".acf-flexible-content").find("> input[type=hidden]").attr("name"),i.acfeDuplicate({layout:o,before:n,parent:t})},n.events["click [data-acfe-flexible-control-copy]"]="acfeCopyLayout",n.acfeCopyLayout=function(e,t){var a=t.closest(".layout").clone(),t=this.$control().find("> input[type=hidden]").attr("name");this.acfeFixInputs(a),this.acfeCleanLayouts(a);t=JSON.stringify({source:t,layouts:a[0].outerHTML}),a=r('<input type="text" style="clip:rect(0,0,0,0);clip-path:rect(0,0,0,0);position:absolute;" value="" />').appendTo(r("body"));a.attr("value",t).select(),document.execCommand("copy")?alert("Layout has been transferred to your clipboard"):prompt("Copy the following layout data to your clipboard",t),a.remove()},n.acfeCopyLayouts=function(){var e=this,t=e.$layoutsWrap().clone(),a=e.$control().find("> input[type=hidden]").attr("name");e.acfeFixInputs(t),e.acfeCleanLayouts(t);t=JSON.stringify({source:a,layouts:t.html()}),e=r('<input type="text" style="clip:rect(0,0,0,0);clip-path:rect(0,0,0,0);position:absolute;" value="" />').appendTo(e.$el);e.attr("value",t).select(),document.execCommand("copy")?alert("Layouts have been transferred to your clipboard"):prompt("Copy the following layouts data to your clipboard",t),e.remove()},n.acfePasteLayouts=function(){var n=this,e=prompt("Paste layouts data in the following field");if(null!=e&&""!==e)try{var t=JSON.parse(e),i=t.source,t=r(t.layouts).closest("[data-layout]");if(!t.length)return alert("No layouts data available");var o=r(n.$popup().html()),c=n.$layouts(),l=[];if(t.each(function(){var e,t=r(this),a=t.data("layout"),i=o.find('[data-layout="'+a+'"]'),i=(i.data("min"),i.data("max")||0),a=(e=a,c.filter(function(){return r(this).data("layout")===e}).length);i&&i<=a||n.$clone(t.attr("data-layout")).length&&l.push(t)}),!l.length)return alert("No layouts could be pasted");r.each(l,function(){var e=r(this),t=i+"["+e.attr("data-id")+"]",a=n.$control().find("> input[type=hidden]").attr("name");n.acfeDuplicate({layout:e,before:!1,search:t,parent:a})})}catch(e){console.log(e),alert("Invalid data")}},n.events['click [data-name="acfe-flexible-control-button"]']="acfeControl",n.acfeControl=function(e,t){var a=this,i=t.next(".tmpl-acfe-flexible-control-popup").html();new(acf.models.TooltipConfirm.extend({render:function(){this.html(this.get("text")),this.$el.addClass("acf-fc-popup")}}))({target:t,targetConfirm:!1,text:i,context:a,confirm:function(e,t){"paste"===t.attr("data-acfe-flexible-control-action")?a.acfePasteLayouts():"copy"===t.attr("data-acfe-flexible-control-action")&&a.acfeCopyLayouts()}}).on("click","a","onConfirm")},n.acfeDuplicate=function(a){if(a=acf.parseArgs(a,{layout:"",before:!1,parent:!1,search:"",replace:""}),!this.allowAdd())return!1;var i=acf.uniqid();a.parent&&(a.search||(a.search=a.parent+"["+a.layout.attr("data-id")+"]"),a.replace=a.parent+"["+i+"]");var e,t={target:a.layout,search:a.search,replace:a.replace,append:this.proxy(function(e,t){t.addClass("acfe-layout-duplicated"),t.attr("data-id",i),a.before?a.before.after(t):this.$layoutsWrap().append(t),acf.enable(t,this.cid),this.render()})};e=parseFloat(acf.get("acf_version"))<5.9?acf.duplicate(t):n.acfeNewAcfDuplicate(t),this.$input().trigger("change");t=acf.getFields({type:"tab",parent:e});return t.length&&r.each(t,function(){this.$el.hasClass("acf-hidden")&&this.tab.$el.addClass("acf-hidden")}),e},n.acfeNewAcfDuplicate=function(e){e instanceof jQuery&&(e={target:e}),(e=acf.parseArgs(e,{target:!1,search:"",replace:"",rename:!0,before:function(e){},after:function(e,t){},append:function(e,t){e.after(t)}})).target=e.target||e.$el;var t=e.target;e.search=e.search||t.attr("data-id"),e.replace=e.replace||acf.uniqid(),e.before(t),acf.doAction("before_duplicate",t);var a=t.clone();return e.rename&&acf.rename({target:a,search:e.search,replace:e.replace,replacer:"function"==typeof e.rename?e.rename:null}),a.removeClass("acf-clone"),a.find(".ui-sortable").removeClass("ui-sortable"),e.after(t,a),acf.doAction("after_duplicate",t,a),e.append(t,a),acf.doAction("append",a),a},n.acfeFixInputs=function(e){e.find("input").each(function(){r(this).attr("value",this.value)}),e.find("textarea").each(function(){r(this).html(this.value)}),e.find("input:radio,input:checkbox").each(function(){this.checked?r(this).attr("checked","checked"):r(this).attr("checked",!1)}),e.find("option").each(function(){this.selected?r(this).attr("selected","selected"):r(this).attr("selected",!1)})},n.acfeCleanLayouts=function(e){e.find(".acf-editor-wrap").each(function(){var e=r(this);e.find(".wp-editor-container div").remove(),e.find(".wp-editor-container textarea").css("display","")}),e.find(".acf-date-picker").each(function(){r(this).find("input.input").removeClass("hasDatepicker").removeAttr("id")}),e.find(".acf-time-picker").each(function(){r(this).find("input.input").removeClass("hasDatepicker").removeAttr("id")}),e.find(".acf-date-time-picker").each(function(){r(this).find("input.input").removeClass("hasDatepicker").removeAttr("id")}),e.find(".acfe-field-code-editor").each(function(){r(this).find(".CodeMirror").remove()}),e.find(".acf-color-picker").each(function(){var e=r(this),t=e.find("> input"),a=e.find(".wp-picker-container input.wp-color-picker").clone();t.after(a),e.find(".wp-picker-container").remove()}),e.find(".acf-field-post-object").each(function(){var e=r(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden").removeClass()}),e.find(".acf-field-page-link").each(function(){var e=r(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden").removeClass()}),e.find(".acf-field-select").each(function(){var e=r(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden").removeClass()}),e.find(".acf-field-font-awesome").each(function(){var e=r(this);e.find("> .acf-input span").remove(),e.find("> .acf-input select").removeAttr("tabindex aria-hidden")}),e.find(".acf-tab-wrap").each(function(){var e=r(this),t=e.closest(".acf-fields"),a=[];r.each(e.find("li a"),function(){a.push(r(this))}),t.find("> .acf-field-tab").each(function(){$current_tab=r(this),r.each(a,function(){var e=r(this);e.attr("data-key")===$current_tab.attr("data-key")&&$current_tab.find("> .acf-input").append(e)})}),e.remove()}),e.find(".acf-field-accordion").each(function(){var e=r(this);e.find("> .acf-accordion-title > .acf-accordion-icon").remove(),e.after('<div class="acf-field acf-field-accordion" data-type="accordion"><div class="acf-input"><div class="acf-fields" data-endpoint="1"></div></div></div>')})},acf.addAction("new_field/type=flexible_content",function(e){e.has("acfeFlexibleLock")&&e.removeEvents({mouseover:"onHover"})}))}(jQuery),function(l){"undefined"!=typeof acf&&(acf.getFieldType("flexible_content").prototype.acfeModalSelect=function(e,t){var a=this;if(!a.validateAdd())return!1;var i=null;t.hasClass("acf-icon")&&(i=t.closest(".layout"));var n=a.getPopupHTML(),o={array:[],html:""};l(n).find("li a span[data-acfe-flexible-category]").each(function(){var e=l(this).data("acfe-flexible-category");l.each(e,function(){-1===function(e,t){for(var a=t.length,i=e.toString().toLowerCase(),n=0;n<a;n++)if(t[n].toLowerCase()===i)return n;return-1}(this,o.array)&&o.array.push(this)})}),o.array.length&&(o.array.sort(),o.html+='<h2 class="acfe-flexible-categories nav-tab-wrapper">',o.html+='<a href="#" data-acfe-flexible-category="acfe-all" class="nav-tab nav-tab-active"><span class="dashicons dashicons-menu"></span></a>',l(o.array).each(function(e,t){o.html+='<a href="#" data-acfe-flexible-category="'+t+'" class="nav-tab">'+t+"</a>"}),o.html+="</h2>");t=acf.__("Add Row");a.has("acfeFlexibleModalTitle")&&(t=a.get("acfeFlexibleModalTitle"));var c=l('<div class="acfe-modal">'+o.html+'<div class="acfe-flex-container">'+n+"</div></div>").appendTo("body");new acfe.Popup(c,{title:t,size:"full",destroy:!0}),a.has("acfeFlexibleModalCol")&&c.find(".acfe-modal-content .acfe-flex-container").addClass("acfe-col-"+a.get("acfeFlexibleModalCol")),a.has("acfeFlexibleThumbnails")&&c.find(".acfe-modal-content .acfe-flex-container").addClass("acfe-flex-thumbnails"),c.find("li:first-of-type a").blur(),c.find("li a span.badge").each(function(){l(this).addClass("acf-js-tooltip dashicons dashicons-info")}),c.find(".acfe-flexible-categories a").click(function(e){e.preventDefault();e=l(this);e.closest(".acfe-flexible-categories").find("a").removeClass("nav-tab-active"),e.addClass("nav-tab-active");var i=e.data("acfe-flexible-category");c.find("a[data-layout] span[data-acfe-flexible-category]").each(function(){var a=l(this);a.closest("li").show();var e=a.data("acfe-flexible-category");"acfe-all"!==i&&(a.closest("li").hide(),l.each(e,function(e,t){if(i.toLowerCase()===t.toLowerCase())return a.closest("li").show(),!1}))})}),c.on("click","a[data-layout]",function(e){e.preventDefault(),acfe.closePopup(),a.add({layout:l(this).data("layout"),before:i})})},acf.addAction("new_field/type=flexible_content",function(e){e.has("acfeFlexibleModal")&&(e.$clones().length<=1||(e.removeEvents({'click [data-name="add-layout"]':"onClickAdd"}),e.addEvents({'click [data-name="add-layout"]':"acfeModalSelect"})))}))}(jQuery),function(){var e;"undefined"!=typeof acf&&((e=acf.getFieldType("flexible_content").prototype).events['click [data-action="acfe-flexible-modal-edit"]']="acfeModalEdit",e.acfeModalEdit=function(e,t){var a=this,i=t.closest(".layout"),n=i.find("> .acfe-modal.-fields"),o=i.find("> .acf-fc-layout-handle"),c=o.find("> .acf-fc-layout-order").outerHTML(),t=o.find(".acfe-layout-title-text").text(),o=!1;a.has("acfeFlexibleCloseButton")&&(o=acf.__("Close")),new acfe.Popup(n,{title:c+" "+t,footer:o,onOpen:function(){a.openLayout(i)},onClose:function(){a.closeLayout(i)}})},acf.addAction("new_field/type=flexible_content",function(e){e.has("acfeFlexibleModalEdition")&&(e.has("acfeFlexiblePlaceholder")||e.has("acfeFlexiblePreview"))&&(e.removeEvents({'click [data-name="collapse-layout"]':"onClickCollapse"}),e.removeEvents({"click .acfe-fc-placeholder":"onClickCollapse"}))}))}(jQuery),function(c){var e;"undefined"!=typeof acf&&(e=acf.Field.extend({type:"acfe_recaptcha",actions:{validation_failure:"validationFailure"},$control:function(){return this.$(".acfe-field-recaptcha")},$input:function(){return this.$('input[type="hidden"]')},$selector:function(){return this.$control().find("> div")},selector:function(){return this.$selector()[0]},version:function(){return this.get("version")},render:function(){var t=this;"v2"===this.version()?this.recaptcha=grecaptcha.render(t.selector(),{sitekey:t.$control().data("site-key"),theme:t.$control().data("theme"),size:t.$control().data("size"),callback:function(e){t.$input().val(e).change(),t.$input().closest(".acf-input").find("> .acf-notice.-error").hide()},"error-callback":function(){t.$input().val("error").change()},"expired-callback":function(){t.$input().val("expired").change()}}):"v3"===this.version()&&grecaptcha.ready(function(){grecaptcha.execute(t.$control().data("site-key"),{action:"homepage"}).then(function(e){t.$input().val(e).change(),t.$input().closest(".acf-input").find("> .acf-notice.-error").hide()})})},validationFailure:function(e){"v2"===this.version()&&grecaptcha.reset(this.recaptcha)}}),acf.registerFieldType(e),e=acf.Field.extend({wait:"ready",type:"acfe_code_editor",events:{showField:"onShow"},$control:function(){return this.$el.find("> .acf-input > .acf-input-wrap")},$input:function(){return this.$el.find("> .acf-input > .acf-input-wrap > textarea")},input:function(){return this.$input()[0]},rows:function(){return this.$input().attr("rows")},initialize:function(){this.rows=this.$control().data("rows"),this.max_rows=this.$control().data("max-rows"),this.mode=this.$control().data("mode"),this.lines=this.$control().data("lines"),this.indentUnit=this.$control().data("indent-unit");var e=[],t=wp.codeEditor.defaultSettings.codemirror,a={lineNumbers:this.lines,lineWrapping:!0,styleActiveLine:!1,continueComments:!0,indentUnit:this.indentUnit,tabSize:1,indentWithTabs:!0,mode:this.mode,extraKeys:{Tab:function(e){e.execCommand("indentMore")},"Shift-Tab":function(e){e.execCommand("indentLess")}}},a=jQuery.extend(t,a);e.codemirror=a,this.editor=wp.codeEditor.initialize(this.input(),e),(this.rows||this.max_rows)&&(this.rows&&(this.editor.codemirror.getScrollerElement().style.minHeight=18.5*this.rows+"px"),this.max_rows&&(this.editor.codemirror.getScrollerElement().style.maxHeight=18.5*this.max_rows+"px"),this.editor.codemirror.refresh()),(field=this).editor.codemirror.on("change",function(){field.editor.codemirror.save(),field.$input().change()})},onShow:function(){this.editor.codemirror&&this.editor.codemirror.refresh()}}),acf.registerFieldType(e),e=acf.Field.extend({type:"textarea",events:{"keydown textarea":"onInput"},onInput:function(e,t){var a,i;this.has("acfeTextareaCode")&&9===e.keyCode&&(e.preventDefault(),a=this.$el.find("textarea")[0],i=a.selectionStart,this.$el.find("textarea").val(function(e,t){return t.substring(0,i)+" "+t.substring(a.selectionEnd)}),a.selectionEnd=i+4)}}),acf.registerFieldType(e),e=acf.Field.extend({type:"acfe_slug",events:{"input input":"onInput","focusout input":"onFocusOut"},onInput:function(e,t){t.val(t.val().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/\_\_+/g,"_").replace(/^-+/,""))},onFocusOut:function(e,t){t.val(t.val().toLowerCase().replace(/-+$/,"").replace(/_+$/,""))}}),acf.registerFieldType(e),e=acf.Field.extend({type:"acfe_button",events:{"click input":"onClick","click button":"onClick"},$input:function(){return this.$("input").length?this.$("input"):this.$("button").length?this.$("button"):void 0},initialize:function(){var e=this.$input();this.inherit(e)},onClick:function(e,t){var a;this.get("ajax")&&(e.preventDefault(),a={action:"acfe/fields/button",field_name:this.get("name"),field_key:this.get("key")},acf.doAction("acfe/fields/button/before_ajax",this.$el,a),acf.doAction("acfe/fields/button/before",this.$el,a),acf.doAction("acfe/fields/button/before/key="+this.get("key"),this.$el,a),acf.doAction("acfe/fields/button/before/name="+this.get("name"),this.$el,a),c.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",context:this,success:function(e){acf.doAction("acfe/fields/button/ajax_success",e,this.$el,a),acf.doAction("acfe/fields/button/success",e,this.$el,a),acf.doAction("acfe/fields/button/success/key="+this.get("key"),e,this.$el,a),acf.doAction("acfe/fields/button/success/name="+this.get("name"),e,this.$el,a)},complete:function(e){e=e.responseText;acf.doAction("acfe/fields/button/complete",e,this.$el,a),acf.doAction("acfe/fields/button/complete/key="+this.get("key"),e,this.$el,a),acf.doAction("acfe/fields/button/complete/name="+this.get("name"),e,this.$el,a)}}))}}),acf.registerFieldType(e),e=acf.Field.extend({type:"acfe_advanced_link",events:{'click a[data-name="add"]':"onClickEdit",'click a[data-name="edit"]':"onClickEdit",'click a[data-name="remove"]':"onClickRemove"},$control:function(){return this.$(".acf-link")},initialize:function(){},getValue:function(){var e={type:this.$(".input-type :checked").val(),title:this.$(".input-title").val(),url:this.$(".input-url").val(),post:this.$(".input-post :selected").text(),term:this.$(".input-term :selected").text(),target:this.$(".input-target").is(":checked")};return"post"===e.type?e.url=e.post:"term"===e.type&&(e.url=e.term),e},setValue:function(e){e=acf.parseArgs(e,{remove:!1,title:"",url:"",target:!1});var t=this.$control();t.removeClass("-value -external"),e.url&&t.addClass("-value"),e.target&&t.addClass("-external"),this.$(".link-title").html(e.title),this.$(".link-url").attr("href",e.url).html(e.url),e.remove&&(this.$(".input-type :checked").prop("checked",!1),this.$('.input-type [value="url"]').prop("checked",!0).trigger("change"),this.$(".input-title").val(""),this.$(".input-target").prop("checked",!1),this.$(".input-url").val("").trigger("change"),this.$(".input-post").val("").trigger("change"),this.$(".input-term").val("").trigger("change"))},onClickEdit:function(e,t){var a=t.closest(".acf-input").find(".acfe-modal"),t=a.attr("data-modal-title"),i=this;new acfe.Popup(a,{title:t,size:"medium",footer:acf.__("Close"),onClose:function(){i.onChange()}})},onClickRemove:function(e,t){this.setValue({remove:!0})},onChange:function(e,t){var a=this.getValue();this.setValue(a)}}),acf.registerFieldType(e),new acf.Model({actions:{invalid_field:"invalidField"},filters:{"select2_ajax_data/type=post_object":"ajaxField"},invalidField:function(e){var t=e.$el.closest(".acf-field-acfe-advanced-link").not(".acf-error");t.length&&acf.getInstance(t).showError(e.notice.get("text"))},ajaxField:function(e,t,a,i,n){if("post"!==i.get("key"))return e;a=acf.getInstance(a.closest(".acf-field-acfe-advanced-link"));return a&&(e.field_key=a.get("key")),e}}),e=acf.Field.extend({wait:!1,type:"group",events:{'click [data-name="edit"]':"onClick",duplicateField:"onDuplicate"},initialize:function(){var e;this.has("acfeGroupModal")&&(e=this.get("acfeGroupModalButton"),this.$el.find("> .acf-input > .acf-fields, > .acf-input > .acf-table").wrapAll('<div class="acfe-modal"><div class="acfe-modal-wrapper"><div class="acfe-modal-content"></div></div></div>'),this.$el.find("> .acf-input").append('<a data-name="edit" class="acf-button button" href="#">'+e+"</a>"))},onClick:function(e,t){var a=this.$el.find("> .acf-label").text().trim(),i=this.$el.find("> .acf-input > .acfe-modal");a.length||(a=this.get("acfeGroupModalButton"));var n=!1;this.has("acfeGroupModalClose")&&(n=acf.__("Close"));var o="large";this.has("acfeGroupModalSize")&&(o=this.get("acfeGroupModalSize")),new acfe.Popup(i,{title:a,size:o,footer:n})},onDuplicate:function(e,t,a){a.find('a[data-name="edit"]').remove()}}),acf.registerFieldType(e),e=acf.Field.extend({wait:!1,type:"clone",events:{'click [data-name="edit"]':"onClick",duplicateField:"onDuplicate"},initialize:function(){var e;this.has("acfeCloneModal")&&(e=this.get("acfeCloneModalButton"),this.$el.find("> .acf-input > .acf-fields, > .acf-input > .acf-table").wrapAll('<div class="acfe-modal"><div class="acfe-modal-wrapper"><div class="acfe-modal-content"></div></div></div>'),this.$el.find("> .acf-input").append('<a data-name="edit" class="acf-button button" href="#">'+e+"</a>"))},onClick:function(e,t){var a=this.$el.find("> .acf-label").text().trim(),i=this.$el.find("> .acf-input > .acfe-modal");a.length||(a=this.get("acfeCloneModalButton"));var n=!1;this.has("acfeCloneModalClose")&&(n=acf.__("Close"));var o="large";this.has("acfeCloneModalSize")&&(o=this.get("acfeCloneModalSize")),new acfe.Popup(i,{title:a,size:o,footer:n})},onDuplicate:function(e,t,a){a.find('a[data-name="edit"]').remove()}}),acf.registerFieldType(e),e=acf.Field.extend({wait:"new_field",type:"acfe_column",$control:function(){return this.$(".acf-fields:first")},initialize:function(){if(this.$el.is("td")&&(this.$el.closest(".acf-table").find('th[data-type="acfe_column"]').remove(),this.remove()),this.get("endpoint"))return this.$el.find("> .acf-label").remove(),void this.$el.find("> .acf-input").remove();var e=this.$el,t=this.$el.find("> .acf-label"),a=(this.$inputWrap(),this.$control());t.remove();t=e.parent();a.addClass(t.hasClass("-left")?"-left":""),a.addClass(t.hasClass("-clear")?"-clear":""),a.append(e.nextUntil(".acf-field-acfe-column",".acf-field"))}}),acf.registerFieldType(e),new acf.Model({actions:{"new_field/type=select":"newField"},newField:function(e){e.inherit(e.$input()),!e.get("ui")&&e.get("allow_null")&&e.$input().find("option").each(function(e,t){t.value||t.text.startsWith("- ")&&t.text.endsWith(" -")&&(t.text=t.text.substring(2),t.text=t.text.substring(0,t.text.length-2))}),(e.has("acfePrepend")||e.has("acfeAppend"))&&(e.$input().parent(".acf-input-wrap").length||(e.$input().wrapAll('<div class="acf-input-wrap"></div>'),e.get("ui")&&e.$(".acf-input-wrap:first").append(e.$(".select2")),e.has("acfePrepend")&&(e.$(".acf-input-wrap:first").before('<div class="acf-input-prepend">'+e.get("acfePrepend")+"</div>"),e.$input().addClass("acf-is-prepended")),e.has("acfeAppend")&&(e.$(".acf-input-wrap:first").before('<div class="acf-input-append">'+e.get("acfeAppend")+"</div>"),e.$input().addClass("acf-is-appended"))))}}),new acf.Model({actions:{select2_init:"select2Init"},filters:{select2_args:"select2Args",select2_ajax_data:"select2Ajax"},select2Init:function(t,e,a,i,n){var o;i.get("acfeSearchPlaceholder")&&(o=i.get("acfeSearchPlaceholder"),t.on("select2:open",function(e){i.get("multiple")?t.val()||i.$(".select2-search__field").attr("placeholder",o):c(".select2-search.select2-search--dropdown > .select2-search__field").attr("placeholder",o)}),i.get("multiple")&&t.on("select2:close",function(e){t.val()||i.$(".select2-search__field").attr("placeholder",i.get("placeholder"))})),acf.doAction("select2_init/type="+i.get("type"),t,e,a,i,n),acf.doAction("select2_init/name="+i.get("name"),t,e,a,i,n),acf.doAction("select2_init/key="+i.get("key"),t,e,a,i,n)},select2Args:function(e,t,a,i,n){return i.get("acfeAllowCustom")&&(e.tags=!0,e.createTag=function(e){var t=c.trim(e.term);if(""===t)return null;var a=!1;return this.$element.find("option").each(function(){if(this.value.toLowerCase()===t.toLowerCase())return!(a=!0)}),a?null:{id:t,text:t}},e.insertTag=function(e,t){var a=!1;c.each(e,function(){if(c.trim(t.text).toUpperCase()===c.trim(this.text).toUpperCase())return!(a=!0)}),a||e.unshift(t)}),e=acf.applyFilters("select2_args/type="+i.get("type"),e,t,a,i,n),e=acf.applyFilters("select2_args/name="+i.get("name"),e,t,a,i,n),e=acf.applyFilters("select2_args/key="+i.get("key"),e,t,a,i,n)},select2Ajax:function(e,t,a,i,n){return e=acf.applyFilters("select2_ajax_data/type="+i.get("type"),e,t,a,i,n),e=acf.applyFilters("select2_ajax_data/name="+i.get("name"),e,t,a,i,n),(e=acf.applyFilters("select2_ajax_data/key="+i.get("key"),e,t,a,i,n)).action&&(e=acf.applyFilters("select2_ajax_data/action="+e.action,e,t,a,i,n)),e}}),new acf.Model({actions:{"prepare_field/type=tab":"prepareField"},prepareField:function(e){if(e.has("noPreference")){var t=e.findTabs(),t=acf.getInstances(t),i=e.get("key");if(t.length){var n=acf.getPreference("this.tabs");if(!n)return;c.each(t,function(e,t){var a=t.get("index");t.data.key===i&&(n[a]=0)}),acf.setPreference("this.tabs",n)}}}}),new acf.Model({actions:{"new_field/type=checkbox":"newField"},newField:function(a){a.has("acfeLabels")&&c.each(a.get("acfeLabels"),function(e,t){a.$control().find('input[type=checkbox][value="'+t+'"]').closest("ul").before("<strong>"+e+"</strong>")})}}),new acf.Model({actions:{"new_field/type=radio":"newField"},newField:function(a){a.has("acfeLabels")&&(c.each(a.get("acfeLabels"),function(e,t){a.$control().find('input[type=radio][value="'+t+'"]').closest("li").addClass("parent").prepend("<strong>"+e+"</strong>")}),a.$control().hasClass("acf-hl")&&a.$control().find("li.parent").each(function(){c(this).nextUntil("li.parent").addBack().wrapAll("<li><ul></ul></li>")}))}}),new acf.Model({field:!1,placement:!1,actions:{new_field:"newField"},newField:function(e){(this.field=e).has("instructionTooltip")&&this.setTooltip(),e.has("instructionAboveField")&&this.setAboveField(),e.has("instructionPlacement")&&this.overridePlacement(e.get("instructionPlacement"))},setTooltip:function(){this.field.$labelWrap().prepend('<span class="acfe-field-tooltip acf-js-tooltip dashicons dashicons-info" title="'+_.escape(this.field.get("instructionTooltip"))+'"></span>'),this.field.$labelWrap().find(".description").remove()},setAboveField:function(){this.field.$inputWrap().prepend('<p class="description">'+this.field.get("instructionAboveField")+"</p>"),this.field.$labelWrap().find(".description").remove()},overridePlacement:function(e){var t=this.getPlacement();t&&t!==e&&this.setPlacement(e)},getPlacement:function(){var e=!1;return this.field.$labelWrap().find(">.description").length?e="label":this.field.$inputWrap().find(">.description:first-child").length?e="above_field":this.field.$inputWrap().find(">.description:last-child").length?e="field":this.field.$labelWrap().find(">.acfe-field-tooltip").length&&(e="tooltip"),this.placement=e,this.placement},$getInstruction:function(){var e=this.getPlacement();return"label"===e?this.field.$labelWrap().find(">.description"):"above_field"===e?this.field.$inputWrap().find(">.description:first-child"):"field"===e?this.field.$inputWrap().find(">.description:last-child"):"tooltip"===e&&this.field.$labelWrap().find(">.acfe-field-tooltip")},setPlacement:function(e){var t,a=this.$getInstruction();"tooltip"===this.placement&&(t=a.attr("title"),a.remove(),a=c('<p class="description">'+t+"</p>")),"label"===e?this.field.$labelWrap().append(a):"above_field"===e?this.field.$inputWrap().prepend(a):"field"===e?this.field.$inputWrap().append(a):"tooltip"===e&&(this.field.$labelWrap().prepend(c('<span class="acfe-field-tooltip acf-js-tooltip dashicons dashicons-info" title="'+_.escape(a.html())+'"></span>')),a.remove())}}))}(jQuery),jQuery,"undefined"!=typeof acf&&(acf.registerConditionForFieldType("equalTo","acfe_code_editor"),acf.registerConditionForFieldType("notEqualTo","acfe_code_editor"),acf.registerConditionForFieldType("patternMatch","acfe_code_editor"),acf.registerConditionForFieldType("contains","acfe_code_editor"),acf.registerConditionForFieldType("hasValue","acfe_code_editor"),acf.registerConditionForFieldType("hasNoValue","acfe_code_editor"),acf.registerConditionForFieldType("equalTo","date_picker"),acf.registerConditionForFieldType("notEqualTo","date_picker"),acf.registerConditionForFieldType("patternMatch","date_picker"),acf.registerConditionForFieldType("contains","date_picker"),acf.registerConditionForFieldType("greaterThan","date_picker"),acf.registerConditionForFieldType("lessThan","date_picker"),acf.registerConditionForFieldType("equalTo","date_time_picker"),acf.registerConditionForFieldType("notEqualTo","date_time_picker"),acf.registerConditionForFieldType("patternMatch","date_time_picker"),acf.registerConditionForFieldType("contains","date_time_picker"),acf.registerConditionForFieldType("equalTo","time_picker"),acf.registerConditionForFieldType("notEqualTo","time_picker"),acf.registerConditionForFieldType("patternMatch","time_picker"),acf.registerConditionForFieldType("contains","time_picker"),acf.registerConditionForFieldType("equalTo","taxonomy"),acf.registerConditionForFieldType("notEqualTo","taxonomy"),acf.registerConditionForFieldType("patternMatch","taxonomy"),acf.registerConditionForFieldType("contains","taxonomy"),acf.registerConditionForFieldType("hasValue","taxonomy"),acf.registerConditionForFieldType("hasNoValue","taxonomy"),acf.registerConditionForFieldType("equalTo","acfe_forms"),acf.registerConditionForFieldType("notEqualTo","acfe_forms"),acf.registerConditionForFieldType("patternMatch","acfe_forms"),acf.registerConditionForFieldType("contains","acfe_forms"),acf.registerConditionForFieldType("hasValue","acfe_forms"),acf.registerConditionForFieldType("hasNoValue","acfe_forms"),acf.registerConditionForFieldType("equalTo","acfe_hidden"),acf.registerConditionForFieldType("notEqualTo","acfe_hidden"),acf.registerConditionForFieldType("patternMatch","acfe_hidden"),acf.registerConditionForFieldType("contains","acfe_hidden"),acf.registerConditionForFieldType("hasValue","acfe_hidden"),acf.registerConditionForFieldType("hasNoValue","acfe_hidden"),acf.registerConditionForFieldType("equalTo","acfe_post_statuses"),acf.registerConditionForFieldType("notEqualTo","acfe_post_statuses"),acf.registerConditionForFieldType("patternMatch","acfe_post_statuses"),acf.registerConditionForFieldType("contains","acfe_post_statuses"),acf.registerConditionForFieldType("hasValue","acfe_post_statuses"),acf.registerConditionForFieldType("hasNoValue","acfe_post_statuses"),acf.registerConditionForFieldType("equalTo","acfe_post_types"),acf.registerConditionForFieldType("notEqualTo","acfe_post_types"),acf.registerConditionForFieldType("patternMatch","acfe_post_types"),acf.registerConditionForFieldType("contains","acfe_post_types"),acf.registerConditionForFieldType("hasValue","acfe_post_types"),acf.registerConditionForFieldType("hasNoValue","acfe_post_types"),acf.registerConditionForFieldType("equalTo","acfe_slug"),acf.registerConditionForFieldType("notEqualTo","acfe_slug"),acf.registerConditionForFieldType("patternMatch","acfe_slug"),acf.registerConditionForFieldType("contains","acfe_slug"),acf.registerConditionForFieldType("hasValue","acfe_slug"),acf.registerConditionForFieldType("hasNoValue","acfe_slug"),acf.registerConditionForFieldType("equalTo","acfe_taxonomies"),acf.registerConditionForFieldType("notEqualTo","acfe_taxonomies"),acf.registerConditionForFieldType("patternMatch","acfe_taxonomies"),acf.registerConditionForFieldType("contains","acfe_taxonomies"),acf.registerConditionForFieldType("hasValue","acfe_taxonomies"),acf.registerConditionForFieldType("hasNoValue","acfe_taxonomies"),acf.registerConditionForFieldType("equalTo","acfe_taxonomy_terms"),acf.registerConditionForFieldType("notEqualTo","acfe_taxonomy_terms"),acf.registerConditionForFieldType("patternMatch","acfe_taxonomy_terms"),acf.registerConditionForFieldType("contains","acfe_taxonomy_terms"),acf.registerConditionForFieldType("hasValue","acfe_taxonomy_terms"),acf.registerConditionForFieldType("hasNoValue","acfe_taxonomy_terms"),acf.registerConditionForFieldType("equalTo","acfe_user_roles"),acf.registerConditionForFieldType("notEqualTo","acfe_user_roles"),acf.registerConditionForFieldType("patternMatch","acfe_user_roles"),acf.registerConditionForFieldType("contains","acfe_user_roles"),acf.registerConditionForFieldType("hasValue","acfe_user_roles"),acf.registerConditionForFieldType("hasNoValue","acfe_user_roles")),function(c){"undefined"!=typeof acf&&(new acf.Model({actions:{prepare:"prepare","new_field/type=date_picker":"datePicker","new_field/type=date_time_picker":"datePicker","new_field/type=time_picker":"datePicker","new_field/type=google_map":"googleMap",invalid_field:"invalidField",validation_begin:"validationBegin"},prepare:function(){var e;acfe.get("is_admin")||(acf.isset(window,"wp","media","view","settings","post")&&(wp.media.view.settings.post=!1),c('.acfe-form[data-hide-unload="1"]').length&&acf.unload.disable(),(e=c(".acfe-form-success")).length&&(window.history.replaceState&&window.history.replaceState(null,null,window.location.href),e.each(function(){var e=c(this).data("form-name"),t=c(this).data("form-id");acf.doAction("acfe/form/submit/success"),acf.doAction("acfe/form/submit/success/id="+t),acf.doAction("acfe/form/submit/success/name="+e)})),c('.acf-form .button, .acf-form [type="submit"], .acfe-form .button, .acfe-form [type="submit"]').click(function(e){c(this).hasClass("disabled")&&e.preventDefault()}))},datePicker:function(e){var t;acfe.get("is_admin")||(!(t=e.$el.closest(".acfe-form")).length||(t=t.data("fields-class"))&&e.$inputText().addClass(t))},googleMap:function(e){var t;acfe.get("is_admin")||(!(t=e.$el.closest(".acfe-form")).length||(t=t.data("fields-class"))&&e.$search().addClass(t))},invalidField:function(e){var t,a,i,n,o;acfe.get("is_admin")||(t=e.$el.closest(".acfe-form")).length&&(a=t.data("errors-position"),(o=t.data("errors-class"))&&o.length&&e.$el.find(".acf-notice.-error").addClass(o),a&&"below"===a?(e.$control().length?e.$el.find(".acf-notice.-error").insertAfter(e.$control()):e.$input().length&&e.$el.find(".acf-notice.-error").insertAfter(e.$input()),n=!1,e.$control().length?n=e.$control():e.$input().length&&(n=e.$input()),n&&e.$el.find(".acf-notice.-error").insertAfter(n)):a&&"group"===a?(i=e.$el.find(".acf-label label").text().trim(),o=e.$el.find('.acf-input-wrap [placeholder!=""]').attr("placeholder"),n=e.$el.find(".acf-notice.-error").text().trim(),e.$el.find(".acf-notice.-error").remove(),n=i&&i.length&&"*"!==i?i+": "+n:o&&o.length&&""!==o?o+": "+n:e.get("name")+": "+n,(o=t.find("> .acfe-form-error")).length||(o=c('<div class="acf-notice -error acf-error-message acfe-form-error" />').prependTo(t)),o.append("<p>"+n+"</p>")):a&&"hide"===a&&e.$el.find(".acf-notice.-error").remove())},validationBegin:function(e){acfe.get("is_admin")||void 0!==e&&e.find(".acf-error-message").remove()}}),acf.newCondition=function(e,t){var a=t.get("field"),i=a.getField(e.field);if(a&&!i&&(i=acf.getField(e.field)),!a||!i)return!1;t={rule:e,target:a,conditions:t,field:i},i=i.get("type"),e=e.operator;return new(acf.getConditionTypes({fieldType:i,operator:e})[0]||acf.Condition)(t)})}(jQuery),jQuery,"undefined"!=typeof acf&&(acf.getFieldType("repeater").prototype.acfeOnHover=function(){this.off("mouseover")},acf.addAction("new_field/type=repeater",function(e){e.has("acfeRepeaterLock")&&(e.removeEvents({mouseover:"onHover"}),e.addEvents({mouseover:"acfeOnHover"})),e.has("acfeRepeaterRemoveActions")&&(e.$actions().remove(),e.$el.find("thead:first > tr > th.acf-row-handle:last").remove(),e.$rows().find("> .acf-row-handle:last").remove(),e.$control().find("> .acfe-repeater-stylised-button").remove()),e.has("acfeRepeaterStylisedButton")&&(e.$button().removeClass("button-primary"),e.$actions().wrap('<div class="acfe-repeater-stylised-button" />'))}));
|
@@ -0,0 +1,427 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function($){
|
2 |
+
|
3 |
+
if(typeof acf === 'undefined')
|
4 |
+
return;
|
5 |
+
|
6 |
+
/*
|
7 |
+
* ACFE
|
8 |
+
*/
|
9 |
+
var acfe = {};
|
10 |
+
|
11 |
+
window.acfe = acfe;
|
12 |
+
|
13 |
+
/*
|
14 |
+
* Get
|
15 |
+
*/
|
16 |
+
acfe.get = function(name){
|
17 |
+
return acf.data.acfe[name] || null;
|
18 |
+
};
|
19 |
+
|
20 |
+
/*
|
21 |
+
* Has
|
22 |
+
*/
|
23 |
+
acfe.has = function(name){
|
24 |
+
return this.get(name) !== null;
|
25 |
+
};
|
26 |
+
|
27 |
+
/*
|
28 |
+
* Set
|
29 |
+
*/
|
30 |
+
acfe.set = function(name, value){
|
31 |
+
acf.data.acfe[name] = value;
|
32 |
+
return this;
|
33 |
+
};
|
34 |
+
|
35 |
+
/*
|
36 |
+
* Popup
|
37 |
+
*/
|
38 |
+
var popups = [];
|
39 |
+
|
40 |
+
acfe.Popup = acf.Model.extend({
|
41 |
+
|
42 |
+
data: {
|
43 |
+
title: false,
|
44 |
+
footer: false,
|
45 |
+
size: false,
|
46 |
+
destroy: false,
|
47 |
+
onOpen: function(){},
|
48 |
+
onClose: function(){},
|
49 |
+
},
|
50 |
+
|
51 |
+
events: {
|
52 |
+
'click .acfe-modal-title>.close': 'onClickClose',
|
53 |
+
'click .acfe-modal-footer>button': 'onClickClose',
|
54 |
+
},
|
55 |
+
|
56 |
+
setup: function($content, args){
|
57 |
+
|
58 |
+
$.extend(this.data, args);
|
59 |
+
|
60 |
+
this.$el = $content;
|
61 |
+
this.render();
|
62 |
+
|
63 |
+
},
|
64 |
+
|
65 |
+
initialize: function(){
|
66 |
+
|
67 |
+
this.open();
|
68 |
+
|
69 |
+
},
|
70 |
+
|
71 |
+
render: function(){
|
72 |
+
|
73 |
+
// Size
|
74 |
+
if(this.get('size')){
|
75 |
+
|
76 |
+
this.$el.addClass('-' + this.get('size'));
|
77 |
+
|
78 |
+
}
|
79 |
+
|
80 |
+
// Wrapper
|
81 |
+
if(!this.$('> .acfe-modal-wrapper').length){
|
82 |
+
|
83 |
+
this.$el.wrapInner('<div class="acfe-modal-wrapper" />');
|
84 |
+
|
85 |
+
}
|
86 |
+
|
87 |
+
var $wrapper = this.$('> .acfe-modal-wrapper');
|
88 |
+
|
89 |
+
// Content
|
90 |
+
if(!$wrapper.find('> .acfe-modal-content').length){
|
91 |
+
|
92 |
+
$wrapper.wrapInner('<div class="acfe-modal-content" />');
|
93 |
+
|
94 |
+
}
|
95 |
+
|
96 |
+
// Title
|
97 |
+
if(this.get('title')){
|
98 |
+
|
99 |
+
$wrapper.prepend('<div class="acfe-modal-title"><span class="title">' + this.get('title') + '</span><button class="close"></button></div>');
|
100 |
+
|
101 |
+
}
|
102 |
+
|
103 |
+
// Overlay
|
104 |
+
$wrapper.prepend('<div class="acfe-modal-wrapper-overlay"></div>');
|
105 |
+
|
106 |
+
// Footer
|
107 |
+
if(this.get('footer')){
|
108 |
+
|
109 |
+
$wrapper.append('<div class="acfe-modal-footer"><button class="button button-primary">' + this.get('footer') + '</button></div>');
|
110 |
+
|
111 |
+
}
|
112 |
+
|
113 |
+
},
|
114 |
+
|
115 |
+
open: function(){
|
116 |
+
|
117 |
+
this.$el.addClass('-open');
|
118 |
+
|
119 |
+
popups.push(this);
|
120 |
+
|
121 |
+
acfe.syncPopup();
|
122 |
+
|
123 |
+
acf.doAction('acfe/modal/open', this.$el, this.data);
|
124 |
+
|
125 |
+
this.get('onOpen').apply(this.$el);
|
126 |
+
|
127 |
+
},
|
128 |
+
|
129 |
+
close: function(){
|
130 |
+
|
131 |
+
this.$('.acfe-modal-wrapper-overlay').remove();
|
132 |
+
this.$('.acfe-modal-title').remove();
|
133 |
+
this.$('.acfe-modal-footer').remove();
|
134 |
+
|
135 |
+
this.$el.removeAttr('style');
|
136 |
+
this.$el.removeClass('-open');
|
137 |
+
|
138 |
+
acfe.syncPopup();
|
139 |
+
|
140 |
+
acf.doAction('acfe/modal/close', this.$el, this.data);
|
141 |
+
|
142 |
+
this.get('onClose').apply(this.$el);
|
143 |
+
|
144 |
+
this.remove();
|
145 |
+
|
146 |
+
if(this.get('destroy')){
|
147 |
+
|
148 |
+
this.$el.remove();
|
149 |
+
|
150 |
+
}
|
151 |
+
|
152 |
+
},
|
153 |
+
|
154 |
+
remove: function(){
|
155 |
+
|
156 |
+
this.removeEvents();
|
157 |
+
this.removeActions();
|
158 |
+
this.removeFilters();
|
159 |
+
|
160 |
+
},
|
161 |
+
|
162 |
+
onClickClose: function(e){
|
163 |
+
|
164 |
+
e.preventDefault();
|
165 |
+
|
166 |
+
if(!popups.length)
|
167 |
+
return false;
|
168 |
+
|
169 |
+
popups.pop().close();
|
170 |
+
|
171 |
+
}
|
172 |
+
|
173 |
+
});
|
174 |
+
|
175 |
+
/*
|
176 |
+
* Popup: Close
|
177 |
+
*/
|
178 |
+
acfe.closePopup = function(){
|
179 |
+
|
180 |
+
if(!popups.length)
|
181 |
+
return false;
|
182 |
+
|
183 |
+
popups.pop().close();
|
184 |
+
|
185 |
+
};
|
186 |
+
|
187 |
+
/*
|
188 |
+
* Popup: Sync
|
189 |
+
*/
|
190 |
+
acfe.syncPopup = function(){
|
191 |
+
|
192 |
+
var $body = $('body');
|
193 |
+
|
194 |
+
if(popups.length){
|
195 |
+
|
196 |
+
// Prepare Body
|
197 |
+
if(!$body.hasClass('acfe-modal-opened')){
|
198 |
+
|
199 |
+
$body.addClass('acfe-modal-opened').append($('<div class="acfe-modal-overlay" />'));
|
200 |
+
|
201 |
+
$('.acfe-modal-overlay').on('click', function(e){
|
202 |
+
|
203 |
+
e.preventDefault();
|
204 |
+
acfe.closePopup();
|
205 |
+
|
206 |
+
});
|
207 |
+
|
208 |
+
}
|
209 |
+
|
210 |
+
// Prepare Multiple
|
211 |
+
popups.map(function(self, i){
|
212 |
+
|
213 |
+
if(i === popups.length - 1){
|
214 |
+
return self.$el.removeClass('acfe-modal-sub').css('margin-left', '');
|
215 |
+
}
|
216 |
+
|
217 |
+
self.$el.addClass('acfe-modal-sub').css('margin-left', - (500 / (i+1)));
|
218 |
+
|
219 |
+
});
|
220 |
+
|
221 |
+
}else{
|
222 |
+
|
223 |
+
$('.acfe-modal-overlay').remove();
|
224 |
+
$body.removeClass('acfe-modal-opened');
|
225 |
+
|
226 |
+
}
|
227 |
+
|
228 |
+
};
|
229 |
+
|
230 |
+
$(window).on('keydown', function(e){
|
231 |
+
|
232 |
+
if(e.keyCode !== 27 || !$('body').hasClass('acfe-modal-opened'))
|
233 |
+
return;
|
234 |
+
|
235 |
+
e.preventDefault();
|
236 |
+
acfe.closePopup();
|
237 |
+
|
238 |
+
});
|
239 |
+
|
240 |
+
// Compatibility
|
241 |
+
acfe.modal = {
|
242 |
+
|
243 |
+
open: function($modal, args){
|
244 |
+
|
245 |
+
new acfe.Popup($modal, args);
|
246 |
+
|
247 |
+
},
|
248 |
+
|
249 |
+
close: function(){
|
250 |
+
|
251 |
+
acfe.closePopup();
|
252 |
+
|
253 |
+
}
|
254 |
+
|
255 |
+
};
|
256 |
+
|
257 |
+
/*
|
258 |
+
* Filters
|
259 |
+
*/
|
260 |
+
var filters = [];
|
261 |
+
|
262 |
+
acfe.disableFilters = function(){
|
263 |
+
filters = [];
|
264 |
+
};
|
265 |
+
|
266 |
+
acfe.getFilters = function(){
|
267 |
+
return filters;
|
268 |
+
};
|
269 |
+
|
270 |
+
acfe.isFilterEnabled = function(name){
|
271 |
+
return filters.indexOf(name) > -1;
|
272 |
+
};
|
273 |
+
|
274 |
+
acfe.enableFilter = function(name){
|
275 |
+
|
276 |
+
if(filters.indexOf(name) === -1)
|
277 |
+
filters.push(name);
|
278 |
+
|
279 |
+
};
|
280 |
+
|
281 |
+
acfe.disableFilter = function(name){
|
282 |
+
|
283 |
+
for(var i = filters.length; i--;){
|
284 |
+
|
285 |
+
if(filters[i] !== name)
|
286 |
+
continue;
|
287 |
+
|
288 |
+
filters.splice(i, 1);
|
289 |
+
|
290 |
+
}
|
291 |
+
|
292 |
+
};
|
293 |
+
|
294 |
+
/*
|
295 |
+
* Parse String
|
296 |
+
*/
|
297 |
+
acfe.parseString = function(val){
|
298 |
+
return val ? '' + val : '';
|
299 |
+
};
|
300 |
+
|
301 |
+
/*
|
302 |
+
* In Array
|
303 |
+
*/
|
304 |
+
acfe.inArray = function(v1, array){
|
305 |
+
|
306 |
+
array = array.map(function(v2){
|
307 |
+
return acfe.parseString(v2);
|
308 |
+
});
|
309 |
+
|
310 |
+
return (array.indexOf(v1) > -1);
|
311 |
+
|
312 |
+
}
|
313 |
+
|
314 |
+
/*
|
315 |
+
* Parse URL
|
316 |
+
*/
|
317 |
+
acfe.parseURL = function(url){
|
318 |
+
|
319 |
+
url = url || acfe.currentURL;
|
320 |
+
|
321 |
+
var params = {};
|
322 |
+
|
323 |
+
var queryString = url.replace(/^[^\?]+\??/, '');
|
324 |
+
|
325 |
+
if (!queryString)
|
326 |
+
return params;
|
327 |
+
|
328 |
+
var Pairs = queryString.split(/[;&]/);
|
329 |
+
|
330 |
+
for(var i = 0; i < Pairs.length; i++){
|
331 |
+
|
332 |
+
var KeyVal = Pairs[i].split('=');
|
333 |
+
|
334 |
+
if (!KeyVal || KeyVal.length !== 2)
|
335 |
+
continue;
|
336 |
+
|
337 |
+
var key = decodeURI(KeyVal[0]);
|
338 |
+
var val = decodeURI(KeyVal[1]);
|
339 |
+
|
340 |
+
val = val.replace(/\+/g, ' ');
|
341 |
+
|
342 |
+
params[key] = val;
|
343 |
+
|
344 |
+
}
|
345 |
+
|
346 |
+
return params;
|
347 |
+
|
348 |
+
};
|
349 |
+
|
350 |
+
/*
|
351 |
+
* Current URL
|
352 |
+
*/
|
353 |
+
acfe.currentURL = function(){
|
354 |
+
|
355 |
+
return self.location.href;
|
356 |
+
|
357 |
+
};
|
358 |
+
|
359 |
+
/*
|
360 |
+
* Current Path
|
361 |
+
*/
|
362 |
+
acfe.currentPath = function(){
|
363 |
+
|
364 |
+
return self.location.pathname;
|
365 |
+
|
366 |
+
};
|
367 |
+
|
368 |
+
/*
|
369 |
+
* Current Filename
|
370 |
+
*/
|
371 |
+
acfe.currentFilename = function(){
|
372 |
+
|
373 |
+
return acfe.currentPath().split('/').pop();
|
374 |
+
|
375 |
+
};
|
376 |
+
|
377 |
+
/*
|
378 |
+
* Parent Object
|
379 |
+
*/
|
380 |
+
acfe.parentObject = function(obj){
|
381 |
+
return Object.getPrototypeOf(Object.getPrototypeOf(obj));
|
382 |
+
}
|
383 |
+
|
384 |
+
/*
|
385 |
+
* Tooltip
|
386 |
+
*/
|
387 |
+
new acf.Model({
|
388 |
+
|
389 |
+
tooltip: false,
|
390 |
+
|
391 |
+
events: {
|
392 |
+
'click .acfe-field-tooltip': 'showTitle',
|
393 |
+
},
|
394 |
+
|
395 |
+
showTitle: function(e, $el){
|
396 |
+
|
397 |
+
// vars
|
398 |
+
var title = $el.attr('title');
|
399 |
+
|
400 |
+
// bail ealry if no title
|
401 |
+
if( !title ) {
|
402 |
+
return;
|
403 |
+
}
|
404 |
+
|
405 |
+
// clear title to avoid default browser tooltip
|
406 |
+
$el.attr('title', '');
|
407 |
+
|
408 |
+
// create
|
409 |
+
if( !this.tooltip ) {
|
410 |
+
this.tooltip = acf.newTooltip({
|
411 |
+
text: title,
|
412 |
+
target: $el
|
413 |
+
});
|
414 |
+
|
415 |
+
// update
|
416 |
+
} else {
|
417 |
+
this.tooltip.update({
|
418 |
+
text: title,
|
419 |
+
target: $el
|
420 |
+
});
|
421 |
+
}
|
422 |
+
|
423 |
+
}
|
424 |
+
|
425 |
+
});
|
426 |
+
|
427 |
+
})(jQuery);
|
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(o){var l,n,a;"undefined"!=typeof acf&&(l={},(window.acfe=l).get=function(e){return acf.data.acfe[e]||null},l.has=function(e){return null!==this.get(e)},l.set=function(e,t){return acf.data.acfe[e]=t,this},n=[],l.Popup=acf.Model.extend({data:{title:!1,footer:!1,size:!1,destroy:!1,onOpen:function(){},onClose:function(){}},events:{"click .acfe-modal-title>.close":"onClickClose","click .acfe-modal-footer>button":"onClickClose"},setup:function(e,t){o.extend(this.data,t),this.$el=e,this.render()},initialize:function(){this.open()},render:function(){this.get("size")&&this.$el.addClass("-"+this.get("size")),this.$("> .acfe-modal-wrapper").length||this.$el.wrapInner('<div class="acfe-modal-wrapper" />');var e=this.$("> .acfe-modal-wrapper");e.find("> .acfe-modal-content").length||e.wrapInner('<div class="acfe-modal-content" />'),this.get("title")&&e.prepend('<div class="acfe-modal-title"><span class="title">'+this.get("title")+'</span><button class="close"></button></div>'),e.prepend('<div class="acfe-modal-wrapper-overlay"></div>'),this.get("footer")&&e.append('<div class="acfe-modal-footer"><button class="button button-primary">'+this.get("footer")+"</button></div>")},open:function(){this.$el.addClass("-open"),n.push(this),l.syncPopup(),acf.doAction("acfe/modal/open",this.$el,this.data),this.get("onOpen").apply(this.$el)},close:function(){this.$(".acfe-modal-wrapper-overlay").remove(),this.$(".acfe-modal-title").remove(),this.$(".acfe-modal-footer").remove(),this.$el.removeAttr("style"),this.$el.removeClass("-open"),l.syncPopup(),acf.doAction("acfe/modal/close",this.$el,this.data),this.get("onClose").apply(this.$el),this.remove(),this.get("destroy")&&this.$el.remove()},remove:function(){this.removeEvents(),this.removeActions(),this.removeFilters()},onClickClose:function(e){if(e.preventDefault(),!n.length)return!1;n.pop().close()}}),l.closePopup=function(){if(!n.length)return!1;n.pop().close()},l.syncPopup=function(){var e=o("body");n.length?(e.hasClass("acfe-modal-opened")||(e.addClass("acfe-modal-opened").append(o('<div class="acfe-modal-overlay" />')),o(".acfe-modal-overlay").on("click",function(e){e.preventDefault(),l.closePopup()})),n.map(function(e,t){return t===n.length-1?e.$el.removeClass("acfe-modal-sub").css("margin-left",""):void e.$el.addClass("acfe-modal-sub").css("margin-left",-500/(t+1))})):(o(".acfe-modal-overlay").remove(),e.removeClass("acfe-modal-opened"))},o(window).on("keydown",function(e){27===e.keyCode&&o("body").hasClass("acfe-modal-opened")&&(e.preventDefault(),l.closePopup())}),l.modal={open:function(e,t){new l.Popup(e,t)},close:function(){l.closePopup()}},a=[],l.disableFilters=function(){a=[]},l.getFilters=function(){return a},l.isFilterEnabled=function(e){return-1<a.indexOf(e)},l.enableFilter=function(e){-1===a.indexOf(e)&&a.push(e)},l.disableFilter=function(e){for(var t=a.length;t--;)a[t]===e&&a.splice(t,1)},l.parseString=function(e){return e?""+e:""},l.inArray=function(e,t){return-1<(t=t.map(function(e){return l.parseString(e)})).indexOf(e)},l.parseURL=function(e){var t={},e=(e=e||l.currentURL).replace(/^[^\?]+\??/,"");if(!e)return t;for(var o=e.split(/[;&]/),n=0;n<o.length;n++){var a,i=o[n].split("=");i&&2===i.length&&(a=decodeURI(i[0]),i=(i=decodeURI(i[1])).replace(/\+/g," "),t[a]=i)}return t},l.currentURL=function(){return self.location.href},l.currentPath=function(){return self.location.pathname},l.currentFilename=function(){return l.currentPath().split("/").pop()},l.parentObject=function(e){return Object.getPrototypeOf(Object.getPrototypeOf(e))},new acf.Model({tooltip:!1,events:{"click .acfe-field-tooltip":"showTitle"},showTitle:function(e,t){var o=t.attr("title");o&&(t.attr("title",""),this.tooltip?this.tooltip.update({text:o,target:t}):this.tooltip=acf.newTooltip({text:o,target:t}))}}))}(jQuery);
|
@@ -26,14 +26,14 @@ class acfe_enqueue{
|
|
26 |
*/
|
27 |
function admin_enqueue(){
|
28 |
|
29 |
-
//
|
30 |
-
wp_enqueue_style('acf-extended-admin', acfe_get_url('assets/
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
-
// ACF Extended: UI
|
33 |
-
if(acf_get_setting('acfe/modules/ui') && $this->is_screen_ui()){
|
34 |
-
|
35 |
-
wp_enqueue_style('acf-extended-ui', acfe_get_url('assets/acf-extended-ui' . $this->suffix . '.css'), false, $this->version);
|
36 |
-
|
37 |
}
|
38 |
|
39 |
}
|
@@ -43,66 +43,48 @@ class acfe_enqueue{
|
|
43 |
*/
|
44 |
function acf_enqueue(){
|
45 |
|
46 |
-
//
|
47 |
-
wp_enqueue_style('acf-extended', acfe_get_url('assets/
|
48 |
-
wp_enqueue_script('acf-extended', acfe_get_url('assets/
|
49 |
|
50 |
-
//
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
-
|
|
|
|
|
|
|
54 |
|
|
|
|
|
55 |
}
|
56 |
|
57 |
acf_localize_data(array(
|
58 |
-
'
|
|
|
|
|
|
|
|
|
|
|
59 |
));
|
60 |
|
|
|
|
|
|
|
|
|
61 |
acf_localize_text(array(
|
62 |
-
'Close'
|
|
|
63 |
));
|
64 |
|
65 |
}
|
66 |
|
67 |
-
function is_screen_admin(){
|
68 |
-
|
69 |
-
return acf_is_screen(array('edit-acf-field-group', 'acf-field-group'));
|
70 |
-
|
71 |
-
}
|
72 |
-
|
73 |
-
function is_screen_ui(){
|
74 |
-
|
75 |
-
return $this->is_screen(array('edit-tags', 'term', 'profile', 'user-edit', 'user', 'options-general', 'options-writing', 'options-reading', 'options-discussion', 'options-media', 'options-permalink'));
|
76 |
-
|
77 |
-
}
|
78 |
-
|
79 |
-
function is_screen($id = ''){
|
80 |
-
|
81 |
-
// bail early if not defined
|
82 |
-
if(!function_exists('get_current_screen'))
|
83 |
-
return false;
|
84 |
-
|
85 |
-
// vars
|
86 |
-
$current_screen = get_current_screen();
|
87 |
-
|
88 |
-
// no screen
|
89 |
-
if(!$current_screen){
|
90 |
-
|
91 |
-
return false;
|
92 |
-
|
93 |
-
// array
|
94 |
-
}elseif(is_array($id)){
|
95 |
-
|
96 |
-
return in_array($current_screen->base, $id);
|
97 |
-
|
98 |
-
// string
|
99 |
-
}else{
|
100 |
-
|
101 |
-
return ($id === $current_screen->base);
|
102 |
-
|
103 |
-
}
|
104 |
-
}
|
105 |
-
|
106 |
}
|
107 |
|
108 |
new acfe_enqueue();
|
26 |
*/
|
27 |
function admin_enqueue(){
|
28 |
|
29 |
+
// Admin
|
30 |
+
wp_enqueue_style('acf-extended-admin', acfe_get_url('assets/css/acfe-admin' . $this->suffix . '.css'), false, $this->version);
|
31 |
+
|
32 |
+
// Field Group
|
33 |
+
if(acf_is_screen(array('edit-acf-field-group', 'acf-field-group'))){
|
34 |
+
|
35 |
+
wp_enqueue_style('acf-extended-field-group', acfe_get_url('assets/css/acfe-field-group' . $this->suffix . '.css'), false, $this->version);
|
36 |
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
|
39 |
}
|
43 |
*/
|
44 |
function acf_enqueue(){
|
45 |
|
46 |
+
// Global
|
47 |
+
wp_enqueue_style('acf-extended', acfe_get_url('assets/css/acfe' . $this->suffix . '.css'), false, $this->version);
|
48 |
+
wp_enqueue_script('acf-extended', acfe_get_url('assets/js/acfe' . $this->suffix . '.js'), array('acf'), $this->version);
|
49 |
|
50 |
+
// Input
|
51 |
+
wp_enqueue_style('acf-extended-input', acfe_get_url('assets/css/acfe-input' . $this->suffix . '.css'), false, $this->version);
|
52 |
+
wp_enqueue_script('acf-extended-input', acfe_get_url('assets/js/acfe-input' . $this->suffix . '.js'), array('acf-input'), $this->version);
|
53 |
+
|
54 |
+
// Admin
|
55 |
+
if(is_admin()){
|
56 |
+
|
57 |
+
wp_enqueue_script('acf-extended-admin', acfe_get_url('assets/js/acfe-admin' . $this->suffix . '.js'), array('acf'), $this->version);
|
58 |
|
59 |
+
}
|
60 |
+
|
61 |
+
// Field Group
|
62 |
+
if(acf_is_screen(array('acf-field-group'))){
|
63 |
|
64 |
+
wp_enqueue_script('acf-extended-field-group', acfe_get_url('assets/js/acfe-field-group' . $this->suffix . '.js'), array('acf-field-group'), $this->version);
|
65 |
+
|
66 |
}
|
67 |
|
68 |
acf_localize_data(array(
|
69 |
+
'acfe_version' => ACFE_VERSION,
|
70 |
+
'acfe' => array(
|
71 |
+
'home_url' => home_url(),
|
72 |
+
'is_admin' => is_admin(),
|
73 |
+
'is_user_logged_in' => is_user_logged_in(),
|
74 |
+
)
|
75 |
));
|
76 |
|
77 |
+
$read_more = __('Read more...');
|
78 |
+
$read_more = str_replace('…', '', $read_more);
|
79 |
+
$read_more = str_replace('...', '', $read_more);
|
80 |
+
|
81 |
acf_localize_text(array(
|
82 |
+
'Close' => __('Close', 'acf'),
|
83 |
+
'Read more' => $read_more,
|
84 |
));
|
85 |
|
86 |
}
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
|
90 |
new acfe_enqueue();
|
@@ -38,7 +38,9 @@ function get_flexible($selector, $post_id = false){
|
|
38 |
global $is_preview;
|
39 |
|
40 |
// Vars
|
41 |
-
$is_preview
|
|
|
|
|
42 |
$name = $field['_name'];
|
43 |
$key = $field['key'];
|
44 |
|
@@ -471,69 +473,6 @@ function acfe_get_field_group_from_field($field){
|
|
471 |
|
472 |
}
|
473 |
|
474 |
-
/**
|
475 |
-
* Add fields isntructions tooltip
|
476 |
-
*/
|
477 |
-
function acfe_add_fields_instructions_tooltip(&$field){
|
478 |
-
|
479 |
-
$instructions = '';
|
480 |
-
|
481 |
-
if(acf_maybe_get($field, 'instructions'))
|
482 |
-
$instructions = acf_esc_html($field['instructions']);
|
483 |
-
|
484 |
-
if(isset($field['sub_fields'])){
|
485 |
-
|
486 |
-
foreach($field['sub_fields'] as &$sub_field){
|
487 |
-
|
488 |
-
acfe_add_fields_instructions_tooltip($sub_field);
|
489 |
-
|
490 |
-
}
|
491 |
-
|
492 |
-
}
|
493 |
-
|
494 |
-
elseif(isset($field['layouts'])){
|
495 |
-
|
496 |
-
foreach($field['layouts'] as &$layout){
|
497 |
-
|
498 |
-
acfe_add_fields_instructions_tooltip($layout);
|
499 |
-
|
500 |
-
}
|
501 |
-
|
502 |
-
}
|
503 |
-
|
504 |
-
$field['acfe_instructions_tooltip'] = $instructions;
|
505 |
-
|
506 |
-
}
|
507 |
-
|
508 |
-
/**
|
509 |
-
* Add custom key to fields and all sub fields
|
510 |
-
*/
|
511 |
-
function acfe_field_add_key_recursive(&$field, $key, $value){
|
512 |
-
|
513 |
-
if(isset($field['sub_fields'])){
|
514 |
-
|
515 |
-
foreach($field['sub_fields'] as &$sub_field){
|
516 |
-
|
517 |
-
acfe_field_add_key_recursive($sub_field, $key, $value);
|
518 |
-
|
519 |
-
}
|
520 |
-
|
521 |
-
}
|
522 |
-
|
523 |
-
elseif(isset($field['layouts'])){
|
524 |
-
|
525 |
-
foreach($field['layouts'] as &$layout){
|
526 |
-
|
527 |
-
acfe_field_add_key_recursive($layout, $key, $value);
|
528 |
-
|
529 |
-
}
|
530 |
-
|
531 |
-
}
|
532 |
-
|
533 |
-
$field[$key] = $value;
|
534 |
-
|
535 |
-
}
|
536 |
-
|
537 |
/**
|
538 |
* Is Json
|
539 |
* Source: https://stackoverflow.com/a/6041773
|
@@ -954,7 +893,7 @@ function acfe_form_decrypt_args(){
|
|
954 |
|
955 |
}
|
956 |
|
957 |
-
function
|
958 |
|
959 |
if(!acf_maybe_get_POST('_acf_form'))
|
960 |
return false;
|
@@ -971,6 +910,14 @@ function acfe_form_is_submitted($form_name = false){
|
|
971 |
|
972 |
}
|
973 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
974 |
function acfe_form_unique_action_id($form, $type){
|
975 |
|
976 |
$name = $form['name'] . '-' . $type;
|
@@ -994,6 +941,31 @@ function acfe_form_unique_action_id($form, $type){
|
|
994 |
|
995 |
}
|
996 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
997 |
function acfe_array_insert_before($key, array &$array, $new_key, $new_value){
|
998 |
|
999 |
if(!array_key_exists($key, $array))
|
@@ -1465,8 +1437,46 @@ function acfe_unset(&$array, $key){
|
|
1465 |
|
1466 |
}
|
1467 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1468 |
function acfe_get_post_id(){
|
1469 |
|
1470 |
return acf_get_valid_post_id();
|
1471 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1472 |
}
|
38 |
global $is_preview;
|
39 |
|
40 |
// Vars
|
41 |
+
if(!isset($is_preview))
|
42 |
+
$is_preview = false;
|
43 |
+
|
44 |
$name = $field['_name'];
|
45 |
$key = $field['key'];
|
46 |
|
473 |
|
474 |
}
|
475 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
476 |
/**
|
477 |
* Is Json
|
478 |
* Source: https://stackoverflow.com/a/6041773
|
893 |
|
894 |
}
|
895 |
|
896 |
+
function acfe_is_form_success($form_name = false){
|
897 |
|
898 |
if(!acf_maybe_get_POST('_acf_form'))
|
899 |
return false;
|
910 |
|
911 |
}
|
912 |
|
913 |
+
function acfe_form_is_submitted($form_name = false){
|
914 |
+
|
915 |
+
_deprecated_function('ACF Extended - Dynamic Forms: "acfe_form_is_submitted()" function', '0.8.7.5', "acfe_is_form_success()");
|
916 |
+
|
917 |
+
return acfe_is_form_success($form_name);
|
918 |
+
|
919 |
+
}
|
920 |
+
|
921 |
function acfe_form_unique_action_id($form, $type){
|
922 |
|
923 |
$name = $form['name'] . '-' . $type;
|
941 |
|
942 |
}
|
943 |
|
944 |
+
function acfe_form_get_actions(){
|
945 |
+
|
946 |
+
return get_query_var('acfe_form_actions', array());
|
947 |
+
|
948 |
+
}
|
949 |
+
|
950 |
+
function acfe_form_get_action($name = false){
|
951 |
+
|
952 |
+
$actions = acfe_form_get_actions();
|
953 |
+
|
954 |
+
// No Action
|
955 |
+
if(empty($actions))
|
956 |
+
return false;
|
957 |
+
|
958 |
+
// Last Action
|
959 |
+
if(empty($name))
|
960 |
+
return end($actions);
|
961 |
+
|
962 |
+
if(isset($actions[$name]))
|
963 |
+
return $actions[$name];
|
964 |
+
|
965 |
+
return false;
|
966 |
+
|
967 |
+
}
|
968 |
+
|
969 |
function acfe_array_insert_before($key, array &$array, $new_key, $new_value){
|
970 |
|
971 |
if(!array_key_exists($key, $array))
|
1437 |
|
1438 |
}
|
1439 |
|
1440 |
+
function acfe_unarray($val){
|
1441 |
+
|
1442 |
+
if(is_array($val)){
|
1443 |
+
return reset($val);
|
1444 |
+
}
|
1445 |
+
|
1446 |
+
return $val;
|
1447 |
+
}
|
1448 |
+
|
1449 |
function acfe_get_post_id(){
|
1450 |
|
1451 |
return acf_get_valid_post_id();
|
1452 |
|
1453 |
+
}
|
1454 |
+
|
1455 |
+
function acfe_highlight(){
|
1456 |
+
|
1457 |
+
ini_set("highlight.comment", "#555");
|
1458 |
+
/*
|
1459 |
+
ini_set("highlight.keyword", "#0000BB"); // #4B2AFF
|
1460 |
+
ini_set("highlight.default", "#222222");
|
1461 |
+
ini_set("highlight.string", "#777777");
|
1462 |
+
*/
|
1463 |
+
|
1464 |
+
static $on = false;
|
1465 |
+
|
1466 |
+
if ( !$on ) {
|
1467 |
+
ob_start();
|
1468 |
+
} else {
|
1469 |
+
$buffer = "<?php\n" . ob_get_contents();
|
1470 |
+
ob_end_clean();
|
1471 |
+
$code = highlight_string($buffer, true);
|
1472 |
+
|
1473 |
+
$code = str_replace("<?php<br />", '', $code);
|
1474 |
+
$code = str_replace("<code>", '', $code);
|
1475 |
+
$code = str_replace("</code>", '', $code);
|
1476 |
+
|
1477 |
+
echo '<div class="acfe-pre-highlight">' . $code . '</div>';
|
1478 |
+
}
|
1479 |
+
|
1480 |
+
$on = !$on;
|
1481 |
+
|
1482 |
}
|
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if(!defined('ABSPATH'))
|
4 |
+
exit;
|
5 |
+
|
6 |
+
if(!class_exists('acfe_hooks')):
|
7 |
+
|
8 |
+
class acfe_hooks{
|
9 |
+
|
10 |
+
public $field_group;
|
11 |
+
|
12 |
+
function __construct(){
|
13 |
+
|
14 |
+
// Field Groups
|
15 |
+
add_filter('acf/load_field_groups', array($this, 'load_field_groups'), 100);
|
16 |
+
add_filter('acf/pre_render_fields', array($this, 'pre_render_fields'), 10, 2);
|
17 |
+
add_action('acf/render_fields', array($this, 'render_fields'), 10, 2);
|
18 |
+
|
19 |
+
acf_add_filter_variations('acfe/prepare_field_group', array('ID', 'key'), 0);
|
20 |
+
acf_add_action_variations('acfe/pre_render_field_group', array('ID', 'key'), 0);
|
21 |
+
acf_add_action_variations('acfe/render_field_group', array('ID', 'key'), 0);
|
22 |
+
|
23 |
+
// Fields
|
24 |
+
add_filter('acf/field_wrapper_attributes', array($this, 'field_wrapper_attributes'), 10, 2);
|
25 |
+
add_filter('acf/load_fields', array($this, 'load_fields'), 10, 2);
|
26 |
+
add_filter('acf/load_field', array($this, 'load_field'));
|
27 |
+
|
28 |
+
acf_add_filter_variations('acfe/field_wrapper_attributes', array('type', 'name', 'key'), 1);
|
29 |
+
acf_add_filter_variations('acfe/load_fields', array('type', 'name', 'key'), 1);
|
30 |
+
acf_add_filter_variations('acfe/load_field', array('type', 'name', 'key'), 0);
|
31 |
+
acf_add_filter_variations('acfe/load_field_front', array('type', 'name', 'key'), 0);
|
32 |
+
acf_add_filter_variations('acfe/load_field_admin', array('type', 'name', 'key'), 0);
|
33 |
+
|
34 |
+
}
|
35 |
+
|
36 |
+
/*
|
37 |
+
* Load Field Groups
|
38 |
+
*/
|
39 |
+
function load_field_groups($field_groups){
|
40 |
+
|
41 |
+
if(acfe_is_admin_screen())
|
42 |
+
return $field_groups;
|
43 |
+
|
44 |
+
foreach($field_groups as $i => &$field_group){
|
45 |
+
|
46 |
+
$field_group = apply_filters('acfe/prepare_field_group', $field_group);
|
47 |
+
|
48 |
+
// Do not render if false
|
49 |
+
if($field_group === false){
|
50 |
+
|
51 |
+
unset($field_groups[$i]);
|
52 |
+
|
53 |
+
}
|
54 |
+
|
55 |
+
}
|
56 |
+
|
57 |
+
return $field_groups;
|
58 |
+
|
59 |
+
}
|
60 |
+
|
61 |
+
/*
|
62 |
+
* Pre Render Fields
|
63 |
+
*/
|
64 |
+
function pre_render_fields($fields, $post_id){
|
65 |
+
|
66 |
+
$this->field_group = array();
|
67 |
+
|
68 |
+
if(!isset($fields[0]))
|
69 |
+
return $fields;
|
70 |
+
|
71 |
+
if(!acf_maybe_get($fields[0], 'parent'))
|
72 |
+
return $fields;
|
73 |
+
|
74 |
+
$field_group = acf_get_field_group($fields[0]['parent']);
|
75 |
+
|
76 |
+
if(!$field_group)
|
77 |
+
return $fields;
|
78 |
+
|
79 |
+
$this->field_group = $field_group;
|
80 |
+
|
81 |
+
do_action('acfe/pre_render_field_group', $field_group, $fields, $post_id);
|
82 |
+
|
83 |
+
return $fields;
|
84 |
+
|
85 |
+
}
|
86 |
+
|
87 |
+
/*
|
88 |
+
* Pre Render Fields
|
89 |
+
*/
|
90 |
+
function render_fields($fields, $post_id){
|
91 |
+
|
92 |
+
if(empty($this->field_group))
|
93 |
+
return;
|
94 |
+
|
95 |
+
do_action('acfe/render_field_group', $this->field_group, $fields, $post_id);
|
96 |
+
|
97 |
+
}
|
98 |
+
|
99 |
+
/*
|
100 |
+
* Field Wrapper Attributes
|
101 |
+
*/
|
102 |
+
function field_wrapper_attributes($wrapper, $field){
|
103 |
+
|
104 |
+
$wrapper = apply_filters('acfe/field_wrapper_attributes', $wrapper, $field);
|
105 |
+
|
106 |
+
return $wrapper;
|
107 |
+
|
108 |
+
}
|
109 |
+
|
110 |
+
/*
|
111 |
+
* Load Fields
|
112 |
+
*/
|
113 |
+
function load_fields($fields, $parent){
|
114 |
+
|
115 |
+
// check if field (fitler is also called on field groups)
|
116 |
+
if(!acf_maybe_get($parent, 'type'))
|
117 |
+
return $fields;
|
118 |
+
|
119 |
+
$fields = apply_filters('acfe/load_fields', $fields, $parent);
|
120 |
+
|
121 |
+
return $fields;
|
122 |
+
|
123 |
+
}
|
124 |
+
|
125 |
+
/*
|
126 |
+
* Load Field
|
127 |
+
*/
|
128 |
+
function load_field($field){
|
129 |
+
|
130 |
+
if(acfe_is_admin_screen())
|
131 |
+
return $field;
|
132 |
+
|
133 |
+
// Everywhere
|
134 |
+
$field = apply_filters('acfe/load_field', $field);
|
135 |
+
|
136 |
+
// Admin
|
137 |
+
if(acfe_form_is_admin()){
|
138 |
+
|
139 |
+
$field = apply_filters('acfe/load_field_admin', $field);
|
140 |
+
|
141 |
+
}
|
142 |
+
|
143 |
+
// Front
|
144 |
+
elseif(acfe_form_is_front()){
|
145 |
+
|
146 |
+
$field = apply_filters('acfe/load_field_front', $field);
|
147 |
+
|
148 |
+
}
|
149 |
+
|
150 |
+
return $field;
|
151 |
+
|
152 |
+
}
|
153 |
+
|
154 |
+
}
|
155 |
+
|
156 |
+
new acfe_hooks();
|
157 |
+
|
158 |
+
endif;
|
@@ -162,8 +162,8 @@ class acfe_multilang{
|
|
162 |
|
163 |
// Copy from wp-content/plugins/polylang-pro/settings/settings.php:363
|
164 |
require_once ABSPATH . 'wp-admin/includes/translation-install.php';
|
165 |
-
|
166 |
-
$languages = include
|
167 |
$translations = wp_get_available_translations();
|
168 |
|
169 |
if (!empty($translations)){
|
162 |
|
163 |
// Copy from wp-content/plugins/polylang-pro/settings/settings.php:363
|
164 |
require_once ABSPATH . 'wp-admin/includes/translation-install.php';
|
165 |
+
|
166 |
+
$languages = include POLYLANG_DIR . '/settings/languages.php';
|
167 |
$translations = wp_get_available_translations();
|
168 |
|
169 |
if (!empty($translations)){
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if(!defined('ABSPATH'))
|
4 |
+
exit;
|
5 |
+
|
6 |
+
// Check setting
|
7 |
+
if(acfe_get_setting('modules/field_group_ui'))
|
8 |
+
return;
|
9 |
+
|
10 |
+
if(!class_exists('acfe_field_group_advanced')):
|
11 |
+
|
12 |
+
class acfe_field_group_advanced{
|
13 |
+
|
14 |
+
function __construct(){
|
15 |
+
|
16 |
+
add_action('acf/field_group/admin_head', array($this, 'admin_head'), 5);
|
17 |
+
add_action('acf/render_field_group_settings', array($this, 'render_settings'));
|
18 |
+
|
19 |
+
}
|
20 |
+
|
21 |
+
/*
|
22 |
+
* Admin Head
|
23 |
+
*/
|
24 |
+
function admin_head(){
|
25 |
+
|
26 |
+
global $field_group;
|
27 |
+
|
28 |
+
if(!acf_maybe_get($field_group, 'acfe_form'))
|
29 |
+
return;
|
30 |
+
|
31 |
+
acf_enable_filter('acfe/field_group/advanced');
|
32 |
+
|
33 |
+
}
|
34 |
+
|
35 |
+
/*
|
36 |
+
* Advanced Settings
|
37 |
+
*/
|
38 |
+
function render_settings($field_group){
|
39 |
+
|
40 |
+
// Form settings
|
41 |
+
acf_render_field_wrap(array(
|
42 |
+
'label' => __('Advanced settings'),
|
43 |
+
'name' => 'acfe_form',
|
44 |
+
'prefix' => 'acf_field_group',
|
45 |
+
'type' => 'true_false',
|
46 |
+
'ui' => 1,
|
47 |
+
'instructions' => __('Enable advanced fields settings & validation'),
|
48 |
+
'value' => (isset($field_group['acfe_form'])) ? $field_group['acfe_form'] : '',
|
49 |
+
'required' => false,
|
50 |
+
'wrapper' => array(
|
51 |
+
'data-after' => 'active'
|
52 |
+
)
|
53 |
+
));
|
54 |
+
|
55 |
+
}
|
56 |
+
|
57 |
+
}
|
58 |
+
|
59 |
+
// initialize
|
60 |
+
new acfe_field_group_advanced();
|
61 |
+
|
62 |
+
endif;
|
@@ -7,145 +7,255 @@ if(!defined('ABSPATH'))
|
|
7 |
if(!acf_get_setting('acfe/modules/categories'))
|
8 |
return;
|
9 |
|
10 |
-
|
11 |
-
function acfe_field_group_category_register(){
|
12 |
-
|
13 |
-
register_taxonomy('acf-field-group-category', array('acf-field-group'), array(
|
14 |
-
'hierarchical' => true,
|
15 |
-
'public' => false,
|
16 |
-
'show_ui' => 'ACFE',
|
17 |
-
'show_admin_column' => true,
|
18 |
-
'show_in_menu' => true,
|
19 |
-
'show_in_nav_menus' => true,
|
20 |
-
'show_tagcloud' => false,
|
21 |
-
'rewrite' => false,
|
22 |
-
'labels' => array(
|
23 |
-
'name' => _x('Categories', 'Category'),
|
24 |
-
'singular_name' => _x('Categories', 'Category'),
|
25 |
-
'search_items' => __('Search categories', 'acfe'),
|
26 |
-
'all_items' => __('All categories', 'acfe'),
|
27 |
-
'parent_item' => __('Parent category', 'acfe'),
|
28 |
-
'parent_item_colon' => __('Parent category:', 'acfe'),
|
29 |
-
'edit_item' => __('Edit category', 'acfe'),
|
30 |
-
'update_item' => __('Update category', 'acfe'),
|
31 |
-
'add_new_item' => __('Add New category', 'acfe'),
|
32 |
-
'new_item_name' => __('New category name', 'acfe'),
|
33 |
-
'menu_name' => __('category', 'acfe'),
|
34 |
-
),
|
35 |
-
));
|
36 |
-
|
37 |
-
}
|
38 |
|
39 |
-
|
40 |
-
function acfe_field_group_category_submenu(){
|
41 |
|
42 |
-
|
43 |
-
return;
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
global $submenu_file, $current_screen, $pagenow;
|
53 |
-
|
54 |
-
if($current_screen->taxonomy === 'acf-field-group-category' && ($pagenow === 'edit-tags.php' || $pagenow === 'term.php'))
|
55 |
-
$parent_file = 'edit.php?post_type=acf-field-group';
|
56 |
-
|
57 |
-
return $parent_file;
|
58 |
-
|
59 |
-
}
|
60 |
-
|
61 |
-
add_filter('manage_edit-acf-field-group_columns', 'acfe_field_group_category_column', 11);
|
62 |
-
function acfe_field_group_category_column($columns){
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
if($key === 'title')
|
67 |
-
$new_columns['acf-field-group-category'] = __('Categories');
|
68 |
|
69 |
-
$new_columns[$key] = $value;
|
70 |
}
|
71 |
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
-
|
80 |
-
|
81 |
-
|
|
|
|
|
|
|
82 |
return;
|
83 |
-
}
|
84 |
|
85 |
-
|
86 |
-
foreach($terms as $term){
|
87 |
-
$categories[] = '<a href="' . admin_url('edit.php?acf-field-group-category='.$term->slug.'&post_type=acf-field-group') . '">' . $term->name . '</a>';
|
88 |
-
}
|
89 |
|
90 |
-
echo implode(' ', $categories);
|
91 |
}
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
function
|
97 |
-
|
98 |
-
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
'posts_per_page' => -1,
|
106 |
-
'suppress_filters' => false,
|
107 |
-
'post_status' => array('publish', 'acf-disabled'),
|
108 |
-
'taxonomy' => 'acf-field-group-category',
|
109 |
-
'term' => $term->slug,
|
110 |
-
'fields' => 'ids'
|
111 |
-
));
|
112 |
-
|
113 |
-
$count = count($groups);
|
114 |
|
115 |
-
$
|
116 |
-
|
117 |
-
$
|
|
|
|
|
|
|
|
|
118 |
|
119 |
-
|
120 |
-
$class = '';
|
121 |
-
if(isset($wp_query->query_vars['acf-field-group-category']) && $wp_query->query_vars['acf-field-group-category'] === $term->slug)
|
122 |
-
$class = ' class="current"';
|
123 |
|
124 |
-
$views['category-' . $term->slug] = '<a href="' . admin_url('edit.php?acf-field-group-category=' . $term->slug . '&post_type=acf-field-group') . '"' . $class . '>' . $term->name . $html . '</a>';
|
125 |
}
|
126 |
|
127 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
|
137 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
return $taxonomies;
|
|
|
|
|
139 |
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
|
142 |
-
if($
|
143 |
-
|
144 |
|
145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
|
147 |
}
|
148 |
|
149 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
|
151 |
-
}
|
|
|
|
|
|
|
|
|
|
7 |
if(!acf_get_setting('acfe/modules/categories'))
|
8 |
return;
|
9 |
|
10 |
+
if(!class_exists('acfe_field_group_category')):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
+
class acfe_field_group_category{
|
|
|
13 |
|
14 |
+
function __construct(){
|
|
|
15 |
|
16 |
+
add_action('init', array($this, 'init'), 9);
|
17 |
+
add_action('admin_menu', array($this, 'admin_menu'));
|
18 |
+
add_filter('parent_file', array($this, 'parent_file'));
|
19 |
+
add_filter('manage_edit-acf-field-group_columns', array($this, 'columns'), 11);
|
20 |
+
add_action('manage_acf-field-group_posts_custom_column' , array($this, 'column_html'), 10, 2);
|
21 |
+
add_filter('views_edit-acf-field-group', array($this, 'views'), 9);
|
22 |
+
add_filter('acf/get_taxonomies', array($this, 'acf_get_taxonomies'), 10, 2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
+
add_filter('acf/prepare_field_group_for_export', array($this, 'prepare_for_export'));
|
25 |
+
add_action('acf/import_field_group', array($this, 'prepare_for_import'));
|
|
|
|
|
26 |
|
|
|
27 |
}
|
28 |
|
29 |
+
/*
|
30 |
+
* Register Taxonomy
|
31 |
+
*/
|
32 |
+
function init(){
|
33 |
+
|
34 |
+
register_taxonomy('acf-field-group-category', array('acf-field-group'), array(
|
35 |
+
'hierarchical' => true,
|
36 |
+
'public' => false,
|
37 |
+
'show_ui' => 'ACFE',
|
38 |
+
'show_admin_column' => true,
|
39 |
+
'show_in_menu' => true,
|
40 |
+
'show_in_nav_menus' => true,
|
41 |
+
'show_tagcloud' => false,
|
42 |
+
'rewrite' => false,
|
43 |
+
'labels' => array(
|
44 |
+
'name' => _x('Categories', 'Category'),
|
45 |
+
'singular_name' => _x('Categories', 'Category'),
|
46 |
+
'search_items' => __('Search categories', 'acfe'),
|
47 |
+
'all_items' => __('All categories', 'acfe'),
|
48 |
+
'parent_item' => __('Parent category', 'acfe'),
|
49 |
+
'parent_item_colon' => __('Parent category:', 'acfe'),
|
50 |
+
'edit_item' => __('Edit category', 'acfe'),
|
51 |
+
'update_item' => __('Update category', 'acfe'),
|
52 |
+
'add_new_item' => __('Add New category', 'acfe'),
|
53 |
+
'new_item_name' => __('New category name', 'acfe'),
|
54 |
+
'menu_name' => __('category', 'acfe'),
|
55 |
+
),
|
56 |
+
));
|
57 |
+
|
58 |
+
}
|
59 |
|
60 |
+
/*
|
61 |
+
* Admin Menu
|
62 |
+
*/
|
63 |
+
function admin_menu(){
|
64 |
+
|
65 |
+
if(!acf_get_setting('show_admin'))
|
66 |
return;
|
|
|
67 |
|
68 |
+
add_submenu_page('edit.php?post_type=acf-field-group', __('Categories'), __('Categories'), acf_get_setting('capability'), 'edit-tags.php?taxonomy=acf-field-group-category');
|
|
|
|
|
|
|
69 |
|
|
|
70 |
}
|
71 |
|
72 |
+
/*
|
73 |
+
* Menu Parent File
|
74 |
+
*/
|
75 |
+
function parent_file($parent_file){
|
76 |
+
|
77 |
+
global $submenu_file, $current_screen, $pagenow;
|
78 |
+
|
79 |
+
if($current_screen->taxonomy === 'acf-field-group-category' && ($pagenow === 'edit-tags.php' || $pagenow === 'term.php'))
|
80 |
+
$parent_file = 'edit.php?post_type=acf-field-group';
|
81 |
+
|
82 |
+
return $parent_file;
|
83 |
+
|
84 |
+
}
|
85 |
|
86 |
+
/*
|
87 |
+
* ACF Field Group: Columns
|
88 |
+
*/
|
89 |
+
function columns($columns){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
91 |
+
$new_columns = array();
|
92 |
+
foreach($columns as $key => $value) {
|
93 |
+
if($key === 'title')
|
94 |
+
$new_columns['acf-field-group-category'] = __('Categories');
|
95 |
+
|
96 |
+
$new_columns[$key] = $value;
|
97 |
+
}
|
98 |
|
99 |
+
return $new_columns;
|
|
|
|
|
|
|
100 |
|
|
|
101 |
}
|
102 |
|
103 |
+
/*
|
104 |
+
* ACF Field Group: Column HTML
|
105 |
+
*/
|
106 |
+
function column_html($column, $post_id){
|
107 |
+
|
108 |
+
if($column === 'acf-field-group-category'){
|
109 |
+
if(!$terms = get_the_terms($post_id, 'acf-field-group-category')){
|
110 |
+
echo '—';
|
111 |
+
return;
|
112 |
+
}
|
113 |
+
|
114 |
+
$categories = array();
|
115 |
+
foreach($terms as $term){
|
116 |
+
$categories[] = '<a href="' . admin_url('edit.php?acf-field-group-category='.$term->slug.'&post_type=acf-field-group') . '">' . $term->name . '</a>';
|
117 |
+
}
|
118 |
+
|
119 |
+
echo implode(' ', $categories);
|
120 |
+
}
|
121 |
+
|
122 |
+
}
|
123 |
|
124 |
+
/*
|
125 |
+
* ACF Field Group: Views
|
126 |
+
*/
|
127 |
+
function views($views){
|
128 |
+
|
129 |
+
if(!$terms = get_terms('acf-field-group-category', array('hide_empty' => false)))
|
130 |
+
return $views;
|
131 |
+
|
132 |
+
foreach($terms as $term){
|
133 |
+
|
134 |
+
$groups = get_posts( array(
|
135 |
+
'post_type' => 'acf-field-group',
|
136 |
+
'posts_per_page' => -1,
|
137 |
+
'suppress_filters' => false,
|
138 |
+
'post_status' => array('publish', 'acf-disabled'),
|
139 |
+
'taxonomy' => 'acf-field-group-category',
|
140 |
+
'term' => $term->slug,
|
141 |
+
'fields' => 'ids'
|
142 |
+
));
|
143 |
+
|
144 |
+
$count = count($groups);
|
145 |
+
|
146 |
+
$html = '';
|
147 |
+
if($count > 0)
|
148 |
+
$html = ' <span class="count">(' . $count . ')</span>';
|
149 |
+
|
150 |
+
global $wp_query;
|
151 |
+
$class = '';
|
152 |
+
if(isset($wp_query->query_vars['acf-field-group-category']) && $wp_query->query_vars['acf-field-group-category'] === $term->slug)
|
153 |
+
$class = ' class="current"';
|
154 |
+
|
155 |
+
$views['category-' . $term->slug] = '<a href="' . admin_url('edit.php?acf-field-group-category=' . $term->slug . '&post_type=acf-field-group') . '"' . $class . '>' . $term->name . $html . '</a>';
|
156 |
+
}
|
157 |
+
|
158 |
+
return $views;
|
159 |
+
|
160 |
+
}
|
161 |
|
162 |
+
/*
|
163 |
+
* ACF Exclude Field Group Category from available taxonomies
|
164 |
+
*/
|
165 |
+
function acf_get_taxonomies($taxonomies, $args){
|
166 |
+
|
167 |
+
if(empty($taxonomies))
|
168 |
+
return $taxonomies;
|
169 |
+
|
170 |
+
foreach($taxonomies as $k => $taxonomy){
|
171 |
+
|
172 |
+
if($taxonomy != 'acf-field-group-category')
|
173 |
+
continue;
|
174 |
+
|
175 |
+
unset($taxonomies[$k]);
|
176 |
+
|
177 |
+
}
|
178 |
+
|
179 |
return $taxonomies;
|
180 |
+
|
181 |
+
}
|
182 |
|
183 |
+
/*
|
184 |
+
* Prepare Export
|
185 |
+
*/
|
186 |
+
function prepare_for_export($field_group){
|
187 |
+
|
188 |
+
$_field_group = acf_get_field_group($field_group['key']);
|
189 |
+
|
190 |
+
if(empty($_field_group))
|
191 |
+
return $field_group;
|
192 |
+
|
193 |
+
if(!acf_maybe_get($_field_group, 'ID'))
|
194 |
+
return $field_group;
|
195 |
+
|
196 |
+
$categories = get_the_terms($_field_group['ID'], 'acf-field-group-category');
|
197 |
|
198 |
+
if(empty($categories) || is_wp_error($categories))
|
199 |
+
return $field_group;
|
200 |
|
201 |
+
$field_group['acfe_categories'] = array();
|
202 |
+
|
203 |
+
foreach($categories as $term){
|
204 |
+
|
205 |
+
$field_group['acfe_categories'][$term->slug] = $term->name;
|
206 |
+
|
207 |
+
}
|
208 |
+
|
209 |
+
return $field_group;
|
210 |
|
211 |
}
|
212 |
|
213 |
+
/*
|
214 |
+
* Prepare Import
|
215 |
+
*/
|
216 |
+
function prepare_for_import($field_group){
|
217 |
+
|
218 |
+
if(!$categories = acf_maybe_get($field_group, 'acfe_categories'))
|
219 |
+
return;
|
220 |
+
|
221 |
+
foreach($categories as $term_slug => $term_name){
|
222 |
+
|
223 |
+
$new_term_id = false;
|
224 |
+
$get_term = get_term_by('slug', $term_slug, 'acf-field-group-category');
|
225 |
+
|
226 |
+
// Term doesn't exists
|
227 |
+
if(empty($get_term)){
|
228 |
+
|
229 |
+
$new_term = wp_insert_term($term_name, 'acf-field-group-category', array(
|
230 |
+
'slug' => $term_slug
|
231 |
+
));
|
232 |
+
|
233 |
+
if(!is_wp_error($new_term)){
|
234 |
+
|
235 |
+
$new_term_id = $new_term['term_id'];
|
236 |
+
|
237 |
+
}
|
238 |
+
|
239 |
+
// Term already exists
|
240 |
+
}else{
|
241 |
+
|
242 |
+
$new_term_id = $get_term->term_id;
|
243 |
+
|
244 |
+
}
|
245 |
+
|
246 |
+
if($new_term_id){
|
247 |
+
|
248 |
+
wp_set_post_terms($field_group['ID'], array($new_term_id), 'acf-field-group-category', true);
|
249 |
+
|
250 |
+
}
|
251 |
+
|
252 |
+
}
|
253 |
+
|
254 |
+
}
|
255 |
|
256 |
+
}
|
257 |
+
|
258 |
+
// initialize
|
259 |
+
new acfe_field_group_category();
|
260 |
+
|
261 |
+
endif;
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if(!defined('ABSPATH'))
|
4 |
+
exit;
|
5 |
+
|
6 |
+
if(!class_exists('acfe_field_group_display_title')):
|
7 |
+
|
8 |
+
class acfe_field_group_display_title{
|
9 |
+
|
10 |
+
function __construct(){
|
11 |
+
|
12 |
+
add_filter('acfe/prepare_field_group', array($this, 'prepare_field_group'));
|
13 |
+
|
14 |
+
}
|
15 |
+
|
16 |
+
/*
|
17 |
+
* Prepare Field Group
|
18 |
+
*/
|
19 |
+
function prepare_field_group($field_group){
|
20 |
+
|
21 |
+
if(!acf_maybe_get($field_group, 'acfe_display_title'))
|
22 |
+
return $field_group;
|
23 |
+
|
24 |
+
$field_group['title'] = $field_group['acfe_display_title'];
|
25 |
+
|
26 |
+
return $field_group;
|
27 |
+
|
28 |
+
}
|
29 |
+
|
30 |
+
}
|
31 |
+
|
32 |
+
// initialize
|
33 |
+
new acfe_field_group_display_title();
|
34 |
+
|
35 |
+
endif;
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if(!defined('ABSPATH'))
|
4 |
+
exit;
|
5 |
+
|
6 |
+
if(!class_exists('acfe_field_group_hide_on_screen')):
|
7 |
+
|
8 |
+
class acfe_field_group_hide_on_screen{
|
9 |
+
|
10 |
+
function __construct(){
|
11 |
+
|
12 |
+
// Field Group
|
13 |
+
add_action('acf/field_group/admin_head', array($this, 'admin_head'));
|
14 |
+
|
15 |
+
// Post Metaboxes
|
16 |
+
add_action('acf/add_meta_boxes', array($this, 'acf_add_meta_boxes'), 10, 3);
|
17 |
+
|
18 |
+
// Hide Block Editor
|
19 |
+
add_action('load-post.php', array($this, 'hide_block_editor'));
|
20 |
+
add_action('load-post-new.php', array($this, 'hide_block_editor'));
|
21 |
+
|
22 |
+
}
|
23 |
+
|
24 |
+
function admin_head(){
|
25 |
+
|
26 |
+
add_filter('acf/prepare_field/name=hide_on_screen', array($this, 'prepare_hide_on_screen'));
|
27 |
+
|
28 |
+
}
|
29 |
+
|
30 |
+
/*
|
31 |
+
* Hide on screen: Settings
|
32 |
+
*/
|
33 |
+
function prepare_hide_on_screen($field){
|
34 |
+
|
35 |
+
$choices = array();
|
36 |
+
|
37 |
+
foreach($field['choices'] as $key => $value){
|
38 |
+
|
39 |
+
if($key === 'the_content'){
|
40 |
+
|
41 |
+
$choices['block_editor'] = __('Block Editor');
|
42 |
+
|
43 |
+
}
|
44 |
+
|
45 |
+
|
46 |
+
$choices[$key] = $value;
|
47 |
+
|
48 |
+
}
|
49 |
+
|
50 |
+
$field['choices'] = $choices;
|
51 |
+
|
52 |
+
return $field;
|
53 |
+
|
54 |
+
}
|
55 |
+
|
56 |
+
/*
|
57 |
+
* Add Metaboxes: Apply all Field Groups styles
|
58 |
+
* Fix ACF only which only use the first Field Group style
|
59 |
+
*/
|
60 |
+
function acf_add_meta_boxes($post_type, $post, $field_groups){
|
61 |
+
|
62 |
+
$instance = acf_get_instance('ACF_Form_Post');
|
63 |
+
|
64 |
+
$styles = '';
|
65 |
+
|
66 |
+
foreach($field_groups as $field_group){
|
67 |
+
|
68 |
+
$styles .= acf_get_field_group_style($field_group);
|
69 |
+
|
70 |
+
}
|
71 |
+
|
72 |
+
$instance->style = $styles;
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
/*
|
77 |
+
* Hide Block Editor
|
78 |
+
*/
|
79 |
+
function hide_block_editor(){
|
80 |
+
|
81 |
+
// globals
|
82 |
+
global $typenow;
|
83 |
+
|
84 |
+
// Restrict
|
85 |
+
$restricted = array('acf-field-group', 'attachment');
|
86 |
+
|
87 |
+
if(in_array($typenow, $restricted))
|
88 |
+
return;
|
89 |
+
|
90 |
+
$post_type = $typenow;
|
91 |
+
$post_id = 0;
|
92 |
+
|
93 |
+
if(isset( $_GET['post'])){
|
94 |
+
|
95 |
+
$post_id = (int) $_GET['post'];
|
96 |
+
|
97 |
+
}elseif(isset($_POST['post_ID'])){
|
98 |
+
|
99 |
+
$post_id = (int) $_POST['post_ID'];
|
100 |
+
|
101 |
+
}
|
102 |
+
|
103 |
+
$field_groups = acf_get_field_groups(array(
|
104 |
+
'post_id' => $post_id,
|
105 |
+
'post_type' => $post_type
|
106 |
+
));
|
107 |
+
|
108 |
+
$hide_block_editor = false;
|
109 |
+
|
110 |
+
foreach($field_groups as $field_group){
|
111 |
+
|
112 |
+
$hide_on_screen = acf_get_array($field_group['hide_on_screen']);
|
113 |
+
|
114 |
+
if(!in_array('block_editor', $hide_on_screen))
|
115 |
+
continue;
|
116 |
+
|
117 |
+
$hide_block_editor = true;
|
118 |
+
break;
|
119 |
+
|
120 |
+
}
|
121 |
+
|
122 |
+
if($hide_block_editor){
|
123 |
+
|
124 |
+
add_filter('use_block_editor_for_post_type', '__return_false');
|
125 |
+
|
126 |
+
}
|
127 |
+
|
128 |
+
}
|
129 |
+
|
130 |
+
}
|
131 |
+
|
132 |
+
// initialize
|
133 |
+
new acfe_field_group_hide_on_screen();
|
134 |
+
|
135 |
+
endif;
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if(!defined('ABSPATH'))
|
4 |
+
exit;
|
5 |
+
|
6 |
+
if(!class_exists('acfe_field_group_instruction_placement')):
|
7 |
+
|
8 |
+
class acfe_field_group_instruction_placement{
|
9 |
+
|
10 |
+
function __construct(){
|
11 |
+
|
12 |
+
// Field Group
|
13 |
+
add_action('acf/field_group/admin_head', array($this, 'admin_head'));
|
14 |
+
add_filter('acf/validate_field_group', array($this, 'validate_tooltip_compatibility'), 20);
|
15 |
+
|
16 |
+
}
|
17 |
+
|
18 |
+
function admin_head(){
|
19 |
+
|
20 |
+
add_filter('acf/prepare_field/name=instruction_placement', array($this, 'prepare_instruction_placement'));
|
21 |
+
|
22 |
+
}
|
23 |
+
|
24 |
+
/*
|
25 |
+
* Instruction Placement: Settings
|
26 |
+
*/
|
27 |
+
function prepare_instruction_placement($field){
|
28 |
+
|
29 |
+
$field['choices'] = array_merge($field['choices'], array(
|
30 |
+
'above_field' => 'Above fields',
|
31 |
+
'tooltip' => 'Tooltip'
|
32 |
+
));
|
33 |
+
|
34 |
+
return $field;
|
35 |
+
|
36 |
+
}
|
37 |
+
|
38 |
+
/*
|
39 |
+
* Instruction Placement: Tooltip 0.8.7.5 Compatibility
|
40 |
+
*/
|
41 |
+
function validate_tooltip_compatibility($field_group){
|
42 |
+
|
43 |
+
if(acf_maybe_get($field_group, 'instruction_placement') !== 'acfe_instructions_tooltip')
|
44 |
+
return $field_group;
|
45 |
+
|
46 |
+
$field_group['instruction_placement'] = 'tooltip';
|
47 |
+
|
48 |
+
return $field_group;
|
49 |
+
|
50 |
+
}
|
51 |
+
|
52 |
+
}
|
53 |
+
|
54 |
+
// initialize
|
55 |
+
new acfe_field_group_instruction_placement();
|
56 |
+
|
57 |
+
endif;
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if(!defined('ABSPATH'))
|
4 |
+
exit;
|
5 |
+
|
6 |
+
// Check setting
|
7 |
+
if(acfe_get_setting('modules/field_group_ui'))
|
8 |
+
return;
|
9 |
+
|
10 |
+
if(!class_exists('acfe_field_group_meta')):
|
11 |
+
|
12 |
+
class acfe_field_group_meta{
|
13 |
+
|
14 |
+
function __construct(){
|
15 |
+
|
16 |
+
add_action('acf/field_group/admin_head', array($this, 'admin_head'));
|
17 |
+
add_action('acf/field_group/admin_head', array($this, 'prepare_meta'));
|
18 |
+
|
19 |
+
}
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Admin Head
|
23 |
+
*/
|
24 |
+
function admin_head(){
|
25 |
+
|
26 |
+
add_action('acf/render_field/name=acfe_data', array($this, 'render_data'));
|
27 |
+
|
28 |
+
add_meta_box('acf-field-group-acfe', __('Field group', 'acf'), array($this, 'render_metabox'), 'acf-field-group', 'normal');
|
29 |
+
|
30 |
+
}
|
31 |
+
|
32 |
+
/*
|
33 |
+
* Render Metabox
|
34 |
+
*/
|
35 |
+
function render_metabox(){
|
36 |
+
|
37 |
+
global $field_group;
|
38 |
+
|
39 |
+
// Meta
|
40 |
+
acf_render_field_wrap(array(
|
41 |
+
'label' => __('Custom meta data'),
|
42 |
+
'name' => 'acfe_meta',
|
43 |
+
'key' => 'acfe_meta',
|
44 |
+
'instructions' => __('Add custom meta data to the field group.'),
|
45 |
+
'prefix' => 'acf_field_group',
|
46 |
+
'type' => 'repeater',
|
47 |
+
'button_label' => __('+ Meta'),
|
48 |
+
'required' => false,
|
49 |
+
'layout' => 'table',
|
50 |
+
'value' => (isset($field_group['acfe_meta'])) ? $field_group['acfe_meta'] : array(),
|
51 |
+
'wrapper' => array(
|
52 |
+
'data-enable-switch' => true
|
53 |
+
),
|
54 |
+
'sub_fields' => array(
|
55 |
+
array(
|
56 |
+
'ID' => false,
|
57 |
+
'label' => __('Key'),
|
58 |
+
'name' => 'acfe_meta_key',
|
59 |
+
'key' => 'acfe_meta_key',
|
60 |
+
'prefix' => '',
|
61 |
+
'_name' => '',
|
62 |
+
'_prepare' => '',
|
63 |
+
'type' => 'text',
|
64 |
+
'instructions' => false,
|
65 |
+
'required' => false,
|
66 |
+
'wrapper' => array(
|
67 |
+
'width' => '',
|
68 |
+
'class' => '',
|
69 |
+
'id' => '',
|
70 |
+
),
|
71 |
+
),
|
72 |
+
array(
|
73 |
+
'ID' => false,
|
74 |
+
'label' => __('Value'),
|
75 |
+
'name' => 'acfe_meta_value',
|
76 |
+
'key' => 'acfe_meta_value',
|
77 |
+
'prefix' => '',
|
78 |
+
'_name' => '',
|
79 |
+
'_prepare' => '',
|
80 |
+
'type' => 'text',
|
81 |
+
'instructions' => false,
|
82 |
+
'required' => false,
|
83 |
+
'wrapper' => array(
|
84 |
+
'width' => '',
|
85 |
+
'class' => '',
|
86 |
+
'id' => '',
|
87 |
+
),
|
88 |
+
),
|
89 |
+
)
|
90 |
+
));
|
91 |
+
|
92 |
+
// Note
|
93 |
+
acf_render_field_wrap(array(
|
94 |
+
'label' => __('Note'),
|
95 |
+
'name' => 'acfe_note',
|
96 |
+
'prefix' => 'acf_field_group',
|
97 |
+
'type' => 'textarea',
|
98 |
+
'instructions' => __('Add personal note. Only visible to administrators'),
|
99 |
+
'value' => (isset($field_group['acfe_note'])) ? $field_group['acfe_note'] : '',
|
100 |
+
'required' => false,
|
101 |
+
'wrapper' => array(
|
102 |
+
'data-enable-switch' => true
|
103 |
+
),
|
104 |
+
));
|
105 |
+
|
106 |
+
// Data
|
107 |
+
acf_render_field_wrap(array(
|
108 |
+
'label' => __('Field group data'),
|
109 |
+
'instructions' => __('View raw field group data, for development use'),
|
110 |
+
'type' => 'acfe_dynamic_message',
|
111 |
+
'name' => 'acfe_data',
|
112 |
+
'prefix' => 'acf_field_group',
|
113 |
+
'value' => $field_group['key'],
|
114 |
+
));
|
115 |
+
|
116 |
+
?>
|
117 |
+
<script type="text/javascript">
|
118 |
+
if(typeof acf !== 'undefined'){
|
119 |
+
acf.postbox.render({
|
120 |
+
'id': 'acf-field-group-acfe',
|
121 |
+
'label': 'left'
|
122 |
+
});
|
123 |
+
}
|
124 |
+
</script>
|
125 |
+
<?php
|
126 |
+
}
|
127 |
+
|
128 |
+
/*
|
129 |
+
* Render: Data button
|
130 |
+
*/
|
131 |
+
function render_data($field){
|
132 |
+
|
133 |
+
$field_group = acf_get_field_group($field['value']);
|
134 |
+
|
135 |
+
if(!$field_group){
|
136 |
+
|
137 |
+
echo '<a href="#" class="button disabled" disabled>' . __('Data') . '</a>';
|
138 |
+
return;
|
139 |
+
|
140 |
+
}
|
141 |
+
|
142 |
+
$field_group_key = $field_group['key'];
|
143 |
+
$raw_field_group = get_post($field_group['ID']);
|
144 |
+
|
145 |
+
?>
|
146 |
+
<a href="#" class="acf-button button acfe_modal_open" data-modal-key="<?php echo $field_group_key; ?>"><?php _e('Data'); ?></a>
|
147 |
+
<div class="acfe-modal" data-modal-key="<?php echo $field_group_key; ?>">
|
148 |
+
<div style="padding:15px;">
|
149 |
+
<pre style="margin-bottom:15px;"><?php print_r($field_group); ?></pre>
|
150 |
+
<pre><?php print_r($raw_field_group); ?></pre>
|
151 |
+
</div>
|
152 |
+
</div>
|
153 |
+
<?php
|
154 |
+
|
155 |
+
}
|
156 |
+
|
157 |
+
/*
|
158 |
+
* Prepare Meta
|
159 |
+
*/
|
160 |
+
function prepare_meta(){
|
161 |
+
|
162 |
+
$names = array('acfe_meta', 'acfe_meta_key', 'acfe_meta_value');
|
163 |
+
|
164 |
+
foreach($names as $name){
|
165 |
+
|
166 |
+
add_filter("acf/prepare_field/name={$name}", function($field){
|
167 |
+
|
168 |
+
$field['prefix'] = str_replace('row-', '', $field['prefix']);
|
169 |
+
$field['name'] = str_replace('row-', '', $field['name']);
|
170 |
+
|
171 |
+
return $field;
|
172 |
+
|
173 |
+
});
|
174 |
+
|
175 |
+
}
|
176 |
+
|
177 |
+
}
|
178 |
+
|
179 |
+
}
|
180 |
+
|
181 |
+
// initialize
|
182 |
+
new acfe_field_group_meta();
|
183 |
+
|
184 |
+
endif;
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if(!defined('ABSPATH'))
|
4 |
+
exit;
|
5 |
+
|
6 |
+
if(!class_exists('acfe_field_group_permissions')):
|
7 |
+
|
8 |
+
class acfe_field_group_permissions{
|
9 |
+
|
10 |
+
function __construct(){
|
11 |
+
|
12 |
+
add_filter('acfe/prepare_field_group', array($this, 'prepare_field_group'));
|
13 |
+
|
14 |
+
}
|
15 |
+
|
16 |
+
/*
|
17 |
+
* Prepare Field Group
|
18 |
+
*/
|
19 |
+
function prepare_field_group($field_group){
|
20 |
+
|
21 |
+
if(!acf_maybe_get($field_group, 'acfe_permissions'))
|
22 |
+
return $field_group;
|
23 |
+
|
24 |
+
$current_user_roles = acfe_get_current_user_roles();
|
25 |
+
$render_field_group = false;
|
26 |
+
|
27 |
+
foreach($current_user_roles as $current_user_role){
|
28 |
+
|
29 |
+
foreach($field_group['acfe_permissions'] as $field_group_role){
|
30 |
+
|
31 |
+
if($current_user_role !== $field_group_role)
|
32 |
+
continue;
|
33 |
+
|
34 |
+
$render_field_group = true;
|
35 |
+
break;
|
36 |
+
|
37 |
+
}
|
38 |
+
|
39 |
+
if($render_field_group)
|
40 |
+
break;
|
41 |
+
|
42 |
+
}
|
43 |
+
|
44 |
+
if(!$render_field_group)
|
45 |
+
$field_group = false;
|
46 |
+
|
47 |
+
return $field_group;
|
48 |
+
|
49 |
+
}
|
50 |
+
|
51 |
+
}
|
52 |
+
|
53 |
+
// initialize
|
54 |
+
new acfe_field_group_permissions();
|
55 |
+
|
56 |
+
endif;
|
@@ -13,274 +13,79 @@ class ACFE_Field_Group{
|
|
13 |
function __construct(){
|
14 |
|
15 |
// Actions
|
16 |
-
add_action('acf/
|
17 |
-
|
18 |
-
add_action('acf/field_group/admin_head', array($this, 'render_field_group_settings'));
|
19 |
-
add_action('post_submitbox_misc_actions', array($this, 'submitbox'), 11);
|
20 |
-
|
21 |
-
add_action('acf/render_field_group_settings', array($this, 'render_field_group_advanced_settings'));
|
22 |
-
add_action('acf/render_field/name=acfe_data', array($this, 'render_field_group_data'));
|
23 |
-
|
24 |
-
add_filter('acf/load_field_groups', array($this, 'render_field_group_alternative_title'), 999);
|
25 |
-
add_filter('acf/load_field_groups', array($this, 'render_field_group_permissions'), 999);
|
26 |
-
|
27 |
-
add_filter('acf/prepare_field/name=instruction_placement', array($this, 'render_field_group_instructions_settings'));
|
28 |
-
add_filter('acf/prepare_field/name=hide_on_screen', array($this, 'render_field_group_hide_on_screen_settings'));
|
29 |
-
add_filter('acf/validate_field_group', array($this, 'render_field_group_default_autosync'));
|
30 |
-
|
31 |
-
add_filter('acf/prepare_field_group_for_export', array($this, 'prepare_field_group_export_categories'));
|
32 |
-
add_action('acf/import_field_group', array($this, 'prepare_field_group_import_categories'));
|
33 |
-
add_action('load-post.php', array($this, 'render_disable_block_editor'));
|
34 |
-
add_action('load-post-new.php', array($this, 'render_disable_block_editor'));
|
35 |
-
|
36 |
-
add_filter('acf/prepare_field/name=acfe_meta', array($this, 'prepare_repeater'));
|
37 |
-
add_filter('acf/prepare_field/name=acfe_meta_key', array($this, 'prepare_repeater'));
|
38 |
-
add_filter('acf/prepare_field/name=acfe_meta_value', array($this, 'prepare_repeater'));
|
39 |
|
40 |
}
|
41 |
|
42 |
/*
|
43 |
-
*
|
44 |
*/
|
45 |
-
function
|
46 |
-
|
47 |
-
// Get Fields
|
48 |
-
$fields = acf_get_fields($field_group);
|
49 |
-
|
50 |
-
if(empty($fields))
|
51 |
-
return;
|
52 |
-
|
53 |
-
// Add acfe_form
|
54 |
-
if(acf_maybe_get($field_group, 'acfe_form')){
|
55 |
-
|
56 |
-
$this->add_field_advanced_settings($fields);
|
57 |
|
58 |
-
|
59 |
-
}else{
|
60 |
-
|
61 |
-
$this->add_field_advanced_settings($fields, false);
|
62 |
-
|
63 |
-
}
|
64 |
-
|
65 |
-
}
|
66 |
|
67 |
-
|
68 |
-
* Add Field Advanced Settings
|
69 |
-
*/
|
70 |
-
function add_field_advanced_settings($fields, $add = true){
|
71 |
-
|
72 |
-
if(empty($fields))
|
73 |
-
return;
|
74 |
-
|
75 |
-
foreach($fields as $field){
|
76 |
-
|
77 |
-
// bypass clone
|
78 |
-
if($field['type'] === 'clone')
|
79 |
-
continue;
|
80 |
-
|
81 |
-
// Group / Clone
|
82 |
-
if(isset($field['sub_fields']) && !empty($field['sub_fields'])){
|
83 |
-
|
84 |
-
$this->add_field_advanced_settings($field['sub_fields'], $add);
|
85 |
-
|
86 |
-
}
|
87 |
-
|
88 |
-
// Flexible Content
|
89 |
-
elseif(isset($field['layouts']) && !empty($field['layouts'])){
|
90 |
-
|
91 |
-
foreach($field['layouts'] as $layout){
|
92 |
-
|
93 |
-
if(isset($layout['sub_fields']) && !empty($layout['sub_fields'])){
|
94 |
-
|
95 |
-
$this->add_field_advanced_settings($layout['sub_fields'], $add);
|
96 |
-
|
97 |
-
}
|
98 |
-
|
99 |
-
}
|
100 |
-
|
101 |
-
}
|
102 |
-
|
103 |
-
// Add
|
104 |
-
if($add){
|
105 |
-
|
106 |
-
if(acf_maybe_get($field, 'acfe_form'))
|
107 |
-
continue;
|
108 |
-
|
109 |
-
$field['acfe_form'] = true;
|
110 |
-
|
111 |
-
// Remove
|
112 |
-
}else{
|
113 |
-
|
114 |
-
if(!acf_maybe_get($field, 'acfe_form'))
|
115 |
-
continue;
|
116 |
-
|
117 |
-
acfe_unset($field, 'acfe_form');
|
118 |
-
acfe_unset($field, 'acfe_settings');
|
119 |
-
acfe_unset($field, 'acfe_validate');
|
120 |
-
|
121 |
-
}
|
122 |
-
|
123 |
-
acf_update_field($field);
|
124 |
-
|
125 |
-
}
|
126 |
|
127 |
}
|
128 |
|
129 |
/*
|
130 |
-
*
|
131 |
-
*/
|
132 |
-
function render_field_group_advanced_settings($field_group){
|
133 |
-
|
134 |
-
// Form settings
|
135 |
-
acf_render_field_wrap(array(
|
136 |
-
'label' => __('Advanced settings'),
|
137 |
-
'name' => 'acfe_form',
|
138 |
-
'prefix' => 'acf_field_group',
|
139 |
-
'type' => 'true_false',
|
140 |
-
'ui' => 1,
|
141 |
-
'instructions' => __('Enable advanced fields settings & validation'),
|
142 |
-
'value' => (isset($field_group['acfe_form'])) ? $field_group['acfe_form'] : '',
|
143 |
-
'required' => false,
|
144 |
-
'wrapper' => array(
|
145 |
-
'data-after' => 'active'
|
146 |
-
)
|
147 |
-
));
|
148 |
-
|
149 |
-
}
|
150 |
-
|
151 |
-
/**
|
152 |
-
* Metabox
|
153 |
*/
|
154 |
-
function
|
155 |
-
|
156 |
-
add_meta_box('acf-field-group-acfe', __('Field group', 'acf'), array($this, 'render_field_group_setting_metabox'), 'acf-field-group', 'normal');
|
157 |
-
|
158 |
-
add_meta_box('acf-field-group-acfe-side', __('Advanced Settings', 'acfe'), array($this, 'render_field_group_setting_sidebar_metabox'), 'acf-field-group', 'side');
|
159 |
-
|
160 |
-
}
|
161 |
-
|
162 |
-
function render_field_group_setting_metabox(){
|
163 |
|
164 |
global $field_group;
|
165 |
|
166 |
-
|
167 |
-
|
168 |
-
'label' => __('Custom meta data'),
|
169 |
-
'name' => 'acfe_meta',
|
170 |
-
'key' => 'acfe_meta',
|
171 |
-
'instructions' => __('Add custom meta data to the field group.'),
|
172 |
-
'prefix' => 'acf_field_group',
|
173 |
-
'type' => 'repeater',
|
174 |
-
'button_label' => __('+ Meta'),
|
175 |
-
'required' => false,
|
176 |
-
'layout' => 'table',
|
177 |
-
'value' => (isset($field_group['acfe_meta'])) ? $field_group['acfe_meta'] : array(),
|
178 |
-
'sub_fields' => array(
|
179 |
-
array(
|
180 |
-
'ID' => false,
|
181 |
-
'label' => __('Key'),
|
182 |
-
'name' => 'acfe_meta_key',
|
183 |
-
'key' => 'acfe_meta_key',
|
184 |
-
'prefix' => '',
|
185 |
-
'_name' => '',
|
186 |
-
'_prepare' => '',
|
187 |
-
'type' => 'text',
|
188 |
-
'instructions' => false,
|
189 |
-
'required' => false,
|
190 |
-
'wrapper' => array(
|
191 |
-
'width' => '',
|
192 |
-
'class' => '',
|
193 |
-
'id' => '',
|
194 |
-
),
|
195 |
-
),
|
196 |
-
array(
|
197 |
-
'ID' => false,
|
198 |
-
'label' => __('Value'),
|
199 |
-
'name' => 'acfe_meta_value',
|
200 |
-
'key' => 'acfe_meta_value',
|
201 |
-
'prefix' => '',
|
202 |
-
'_name' => '',
|
203 |
-
'_prepare' => '',
|
204 |
-
'type' => 'text',
|
205 |
-
'instructions' => false,
|
206 |
-
'required' => false,
|
207 |
-
'wrapper' => array(
|
208 |
-
'width' => '',
|
209 |
-
'class' => '',
|
210 |
-
'id' => '',
|
211 |
-
),
|
212 |
-
),
|
213 |
-
)
|
214 |
-
));
|
215 |
-
|
216 |
-
// Data
|
217 |
-
acf_render_field_wrap(array(
|
218 |
-
'label' => __('Field group data'),
|
219 |
-
'instructions' => __('View raw field group data, for development use'),
|
220 |
-
'type' => 'acfe_dynamic_message',
|
221 |
-
'name' => 'acfe_data',
|
222 |
-
'prefix' => 'acf_field_group',
|
223 |
-
'value' => $field_group['key'],
|
224 |
-
));
|
225 |
-
|
226 |
-
// Note
|
227 |
-
acf_render_field_wrap(array(
|
228 |
-
'label' => __('Note'),
|
229 |
-
'name' => 'acfe_note',
|
230 |
-
'prefix' => 'acf_field_group',
|
231 |
-
'type' => 'textarea',
|
232 |
-
'instructions' => __('Add personal note. Only visible to administrators'),
|
233 |
-
'value' => (isset($field_group['acfe_note'])) ? $field_group['acfe_note'] : '',
|
234 |
-
'required' => false,
|
235 |
-
));
|
236 |
|
237 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
<script type="text/javascript">
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
});
|
244 |
-
}
|
245 |
-
|
246 |
-
jQuery(document).ready(function($){
|
247 |
-
|
248 |
-
$('#post_name').on('keyup', function(){
|
249 |
-
var val = $(this).val();
|
250 |
-
|
251 |
-
if(!val.startsWith('group_')){
|
252 |
-
val = 'group_' + val;
|
253 |
-
$(this).val(val);
|
254 |
-
}
|
255 |
-
|
256 |
-
$('[name="acf_field_group[key]"]').val(val);
|
257 |
-
$('.misc-pub-acfe-field-group-key code').html(val);
|
258 |
-
});
|
259 |
-
|
260 |
-
});
|
261 |
</script>
|
262 |
<?php
|
|
|
263 |
}
|
264 |
|
265 |
-
|
|
|
|
|
|
|
266 |
|
267 |
// Global
|
268 |
global $field_group;
|
269 |
-
|
|
|
|
|
|
|
|
|
270 |
/*
|
271 |
-
*
|
272 |
*/
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
|
|
|
|
|
|
|
|
284 |
|
285 |
/*
|
286 |
* Sync available
|
@@ -429,22 +234,31 @@ class ACFE_Field_Group{
|
|
429 |
'json' => $choices['json'],
|
430 |
)
|
431 |
));
|
432 |
-
|
|
|
433 |
/*
|
434 |
* Permissions
|
435 |
*/
|
436 |
-
|
437 |
-
|
438 |
-
'
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
448 |
|
449 |
?>
|
450 |
<script type="text/javascript">
|
@@ -551,137 +365,10 @@ class ACFE_Field_Group{
|
|
551 |
<?php
|
552 |
}
|
553 |
|
554 |
-
/**
|
555 |
-
* Submit Box
|
556 |
-
*/
|
557 |
-
function submitbox($post){
|
558 |
-
|
559 |
-
if($post->post_type !== 'acf-field-group')
|
560 |
-
return;
|
561 |
-
|
562 |
-
global $field_group;
|
563 |
-
?>
|
564 |
-
<div class="misc-pub-section misc-pub-acfe-field-group-key" style="padding-top:2px;">
|
565 |
-
<span style="font-size:16px;color: #82878c;width: 20px;margin-right: 2px;" class="dashicons dashicons-tag"></span> <code style="font-size: 12px;"><?php echo $field_group['key']; ?></code>
|
566 |
-
</div>
|
567 |
-
<div class="misc-pub-section misc-pub-acfe-field-group-export" style="padding-top:2px;">
|
568 |
-
<span style="font-size:17px;color: #82878c;line-height: 1.3;width: 20px;margin-right: 2px;" class="dashicons dashicons-editor-code"></span> Export: <a href="<?php echo admin_url('edit.php?post_type=acf-field-group&page=acf-tools&tool=export&action=php&keys=' . $field_group['key']); ?>">PHP</a> <a href="<?php echo admin_url('edit.php?post_type=acf-field-group&page=acf-tools&tool=export&action=json&keys=' . $field_group['key']); ?>">Json</a>
|
569 |
-
</div>
|
570 |
-
<script type="text/javascript">
|
571 |
-
(function($) {
|
572 |
-
$('.misc-pub-acfe-field-group-key').insertAfter('.misc-pub-post-status');
|
573 |
-
$('.misc-pub-acfe-field-group-export').insertAfter('.misc-pub-post-status');
|
574 |
-
})(jQuery);
|
575 |
-
</script>
|
576 |
-
<?php
|
577 |
-
|
578 |
-
}
|
579 |
-
|
580 |
-
/**
|
581 |
-
* Render: Data button
|
582 |
-
*/
|
583 |
-
function render_field_group_data($field){
|
584 |
-
|
585 |
-
$field_group = acf_get_field_group($field['value']);
|
586 |
-
$field_group_raw = get_post($field_group['ID']);
|
587 |
-
|
588 |
-
if(!$field_group){
|
589 |
-
|
590 |
-
echo '<a href="#" class="button disabled" disabled>' . __('Data') . '</a>';
|
591 |
-
return;
|
592 |
-
|
593 |
-
}
|
594 |
-
|
595 |
-
echo '<a href="#" class="acf-button button acfe_modal_open" data-modal-key="' . $field_group['key'] . '">' . __('Data') . '</a>';
|
596 |
-
echo '<div class="acfe-modal" data-modal-key="' . $field_group['key'] . '"><div style="padding:15px;"><pre style="margin-bottom:15px;">' . print_r($field_group, true) . '</pre><pre>' . print_r($field_group_raw, true) . '</pre></div></div>';
|
597 |
-
|
598 |
-
}
|
599 |
-
|
600 |
-
/**
|
601 |
-
* Alternative Title
|
602 |
-
*/
|
603 |
-
function render_field_group_alternative_title($field_groups){
|
604 |
-
|
605 |
-
if(!is_admin())
|
606 |
-
return $field_groups;
|
607 |
-
|
608 |
-
if(acfe_is_admin_screen())
|
609 |
-
return $field_groups;
|
610 |
-
|
611 |
-
foreach($field_groups as &$field_group){
|
612 |
-
|
613 |
-
if(!acf_maybe_get($field_group, 'acfe_display_title'))
|
614 |
-
continue;
|
615 |
-
|
616 |
-
$field_group['title'] = $field_group['acfe_display_title'];
|
617 |
-
|
618 |
-
}
|
619 |
-
|
620 |
-
return $field_groups;
|
621 |
-
|
622 |
-
}
|
623 |
-
|
624 |
-
/**
|
625 |
-
* Permissions
|
626 |
-
*/
|
627 |
-
function render_field_group_permissions($field_groups){
|
628 |
-
|
629 |
-
if(!is_admin())
|
630 |
-
return $field_groups;
|
631 |
-
|
632 |
-
if(acfe_is_admin_screen())
|
633 |
-
return $field_groups;
|
634 |
-
|
635 |
-
$current_user_roles = acfe_get_current_user_roles();
|
636 |
-
|
637 |
-
foreach($field_groups as $key => $field_group){
|
638 |
-
|
639 |
-
if(!acf_maybe_get($field_group, 'acfe_permissions'))
|
640 |
-
continue;
|
641 |
-
|
642 |
-
$render_field_group = false;
|
643 |
-
|
644 |
-
foreach($current_user_roles as $current_user_role){
|
645 |
-
|
646 |
-
foreach($field_group['acfe_permissions'] as $field_group_role){
|
647 |
-
|
648 |
-
if($current_user_role !== $field_group_role)
|
649 |
-
continue;
|
650 |
-
|
651 |
-
$render_field_group = true;
|
652 |
-
break;
|
653 |
-
|
654 |
-
}
|
655 |
-
|
656 |
-
if($render_field_group)
|
657 |
-
break;
|
658 |
-
|
659 |
-
}
|
660 |
-
|
661 |
-
if(!$render_field_group)
|
662 |
-
unset($field_groups[$key]);
|
663 |
-
|
664 |
-
}
|
665 |
-
|
666 |
-
return $field_groups;
|
667 |
-
|
668 |
-
}
|
669 |
-
|
670 |
-
/*
|
671 |
-
* Instructions
|
672 |
-
*/
|
673 |
-
function render_field_group_instructions_settings($field){
|
674 |
-
|
675 |
-
$field['choices'] = array_merge($field['choices'], array('acfe_instructions_tooltip' => 'Tooltip'));
|
676 |
-
|
677 |
-
return $field;
|
678 |
-
|
679 |
-
}
|
680 |
-
|
681 |
/**
|
682 |
* Default AutoSync
|
683 |
*/
|
684 |
-
function
|
685 |
|
686 |
// Only new field groups
|
687 |
if(!acf_maybe_get($field_group, 'location')){
|
@@ -716,160 +403,6 @@ class ACFE_Field_Group{
|
|
716 |
|
717 |
}
|
718 |
|
719 |
-
/**
|
720 |
-
* Hide on Screen Settings
|
721 |
-
*/
|
722 |
-
function render_field_group_hide_on_screen_settings($field){
|
723 |
-
|
724 |
-
$choices = array();
|
725 |
-
|
726 |
-
foreach($field['choices'] as $key => $value){
|
727 |
-
|
728 |
-
if($key == 'the_content'){
|
729 |
-
|
730 |
-
$choices['block_editor'] = __('Block Editor');
|
731 |
-
|
732 |
-
}
|
733 |
-
|
734 |
-
|
735 |
-
$choices[$key] = $value;
|
736 |
-
|
737 |
-
}
|
738 |
-
|
739 |
-
$field['choices'] = $choices;
|
740 |
-
|
741 |
-
return $field;
|
742 |
-
|
743 |
-
}
|
744 |
-
|
745 |
-
/*
|
746 |
-
* Prepare Export Categories
|
747 |
-
*/
|
748 |
-
function prepare_field_group_export_categories($field_group){
|
749 |
-
|
750 |
-
$_field_group = acf_get_field_group($field_group['key']);
|
751 |
-
|
752 |
-
if(empty($_field_group))
|
753 |
-
return $field_group;
|
754 |
-
|
755 |
-
if(!acf_maybe_get($_field_group, 'ID'))
|
756 |
-
return $field_group;
|
757 |
-
|
758 |
-
$categories = get_the_terms($_field_group['ID'], 'acf-field-group-category');
|
759 |
-
|
760 |
-
if(empty($categories) || is_wp_error($categories))
|
761 |
-
return $field_group;
|
762 |
-
|
763 |
-
$field_group['acfe_categories'] = array();
|
764 |
-
|
765 |
-
foreach($categories as $term){
|
766 |
-
|
767 |
-
$field_group['acfe_categories'][$term->slug] = $term->name;
|
768 |
-
|
769 |
-
}
|
770 |
-
|
771 |
-
return $field_group;
|
772 |
-
|
773 |
-
}
|
774 |
-
|
775 |
-
|
776 |
-
function prepare_field_group_import_categories($field_group){
|
777 |
-
|
778 |
-
if(!$categories = acf_maybe_get($field_group, 'acfe_categories'))
|
779 |
-
return;
|
780 |
-
|
781 |
-
foreach($categories as $term_slug => $term_name){
|
782 |
-
|
783 |
-
$new_term_id = false;
|
784 |
-
$get_term = get_term_by('slug', $term_slug, 'acf-field-group-category');
|
785 |
-
|
786 |
-
// Term doesn't exists
|
787 |
-
if(empty($get_term)){
|
788 |
-
|
789 |
-
$new_term = wp_insert_term($term_name, 'acf-field-group-category', array(
|
790 |
-
'slug' => $term_slug
|
791 |
-
));
|
792 |
-
|
793 |
-
if(!is_wp_error($new_term)){
|
794 |
-
|
795 |
-
$new_term_id = $new_term['term_id'];
|
796 |
-
|
797 |
-
}
|
798 |
-
|
799 |
-
// Term already exists
|
800 |
-
}else{
|
801 |
-
|
802 |
-
$new_term_id = $get_term->term_id;
|
803 |
-
|
804 |
-
}
|
805 |
-
|
806 |
-
if($new_term_id){
|
807 |
-
|
808 |
-
wp_set_post_terms($field_group['ID'], array($new_term_id), 'acf-field-group-category', true);
|
809 |
-
|
810 |
-
}
|
811 |
-
|
812 |
-
}
|
813 |
-
|
814 |
-
}
|
815 |
-
|
816 |
-
|
817 |
-
function render_disable_block_editor(){
|
818 |
-
|
819 |
-
// globals
|
820 |
-
global $typenow;
|
821 |
-
|
822 |
-
// Restrict
|
823 |
-
$restricted = array('acf-field-group', 'attachment');
|
824 |
-
|
825 |
-
if(in_array($typenow, $restricted))
|
826 |
-
return;
|
827 |
-
|
828 |
-
$post_type = $typenow;
|
829 |
-
$post_id = 0;
|
830 |
-
|
831 |
-
if ( isset( $_GET['post'] ) ) {
|
832 |
-
$post_id = (int) $_GET['post'];
|
833 |
-
} elseif ( isset( $_POST['post_ID'] ) ) {
|
834 |
-
$post_id = (int) $_POST['post_ID'];
|
835 |
-
}
|
836 |
-
|
837 |
-
$field_groups = acf_get_field_groups(array(
|
838 |
-
'post_id' => $post_id,
|
839 |
-
'post_type' => $post_type
|
840 |
-
));
|
841 |
-
|
842 |
-
$hide_block_editor = false;
|
843 |
-
|
844 |
-
foreach($field_groups as $field_group){
|
845 |
-
|
846 |
-
$hide_on_screen = acf_get_array($field_group['hide_on_screen']);
|
847 |
-
|
848 |
-
if(!in_array('block_editor', $hide_on_screen))
|
849 |
-
continue;
|
850 |
-
|
851 |
-
$hide_block_editor = true;
|
852 |
-
break;
|
853 |
-
|
854 |
-
}
|
855 |
-
|
856 |
-
if($hide_block_editor){
|
857 |
-
|
858 |
-
add_filter('use_block_editor_for_post_type', '__return_false');
|
859 |
-
|
860 |
-
}
|
861 |
-
|
862 |
-
}
|
863 |
-
|
864 |
-
function prepare_repeater($field){
|
865 |
-
|
866 |
-
$field['prefix'] = str_replace('row-', '', $field['prefix']);
|
867 |
-
$field['name'] = str_replace('row-', '', $field['name']);
|
868 |
-
|
869 |
-
return $field;
|
870 |
-
|
871 |
-
}
|
872 |
-
|
873 |
}
|
874 |
|
875 |
acf_new_instance('ACFE_Field_Group');
|
13 |
function __construct(){
|
14 |
|
15 |
// Actions
|
16 |
+
add_action('acf/field_group/admin_head', array($this, 'admin_head'));
|
17 |
+
add_filter('acf/validate_field_group', array($this, 'validate_default_autosync'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
}
|
20 |
|
21 |
/*
|
22 |
+
* Admin Head
|
23 |
*/
|
24 |
+
function admin_head(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
+
add_action('post_submitbox_misc_actions', array($this, 'submitbox'), 11);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
+
add_meta_box('acf-field-group-acfe-side', __('Advanced Settings', 'acfe'), array($this, 'render_sidebar_metabox'), 'acf-field-group', 'side');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
}
|
31 |
|
32 |
/*
|
33 |
+
* Submit Box
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
*/
|
35 |
+
function submitbox($post){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
global $field_group;
|
38 |
|
39 |
+
$export_php = admin_url('edit.php?post_type=acf-field-group&page=acf-tools&tool=export&action=php&keys=' . $field_group['key']);
|
40 |
+
$export_json = admin_url('edit.php?post_type=acf-field-group&page=acf-tools&tool=export&action=json&keys=' . $field_group['key']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
?>
|
43 |
+
<div class="misc-pub-section misc-pub-acfe-field-group-key">
|
44 |
+
<span class="dashicons dashicons-tag"></span> <code><?php echo $field_group['key']; ?></code>
|
45 |
+
</div>
|
46 |
+
<div class="misc-pub-section misc-pub-acfe-field-group-export">
|
47 |
+
<span class="dashicons dashicons-editor-code"></span> Export: <a href="<?php echo $export_php; ?>">PHP</a> <a href="<?php echo $export_json; ?>">Json</a>
|
48 |
+
</div>
|
49 |
<script type="text/javascript">
|
50 |
+
(function($) {
|
51 |
+
$('.misc-pub-acfe-field-group-key').insertAfter('.misc-pub-post-status');
|
52 |
+
$('.misc-pub-acfe-field-group-export').insertAfter('.misc-pub-post-status');
|
53 |
+
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
</script>
|
55 |
<?php
|
56 |
+
|
57 |
}
|
58 |
|
59 |
+
/*
|
60 |
+
* Render Sidebar
|
61 |
+
*/
|
62 |
+
function render_sidebar_metabox(){
|
63 |
|
64 |
// Global
|
65 |
global $field_group;
|
66 |
+
|
67 |
+
// Setting
|
68 |
+
$has_enhanced_ui = acfe_get_setting('modules/field_group_ui') ? true : false;
|
69 |
+
|
70 |
+
|
71 |
/*
|
72 |
+
* Display Title
|
73 |
*/
|
74 |
+
if(!$has_enhanced_ui){
|
75 |
+
|
76 |
+
acf_render_field_wrap(array(
|
77 |
+
'label' => __('Display title', 'acfe'),
|
78 |
+
'instructions' => __('Render this title on edit post screen', 'acfe'),
|
79 |
+
'type' => 'text',
|
80 |
+
'name' => 'acfe_display_title',
|
81 |
+
'prefix' => 'acf_field_group',
|
82 |
+
'value' => acf_maybe_get($field_group, 'acfe_display_title'),
|
83 |
+
'placeholder' => '',
|
84 |
+
'prepend' => '',
|
85 |
+
'append' => ''
|
86 |
+
));
|
87 |
+
|
88 |
+
}
|
89 |
|
90 |
/*
|
91 |
* Sync available
|
234 |
'json' => $choices['json'],
|
235 |
)
|
236 |
));
|
237 |
+
|
238 |
+
|
239 |
/*
|
240 |
* Permissions
|
241 |
*/
|
242 |
+
if(!$has_enhanced_ui){
|
243 |
+
|
244 |
+
if(acf_maybe_get($field_group, 'acfe_permissions') || acf_is_filter_enabled('acfe/field_group/advanced')){
|
245 |
+
|
246 |
+
acf_render_field_wrap(array(
|
247 |
+
'label' => __('Permissions'),
|
248 |
+
'name' => 'acfe_permissions',
|
249 |
+
'prefix' => 'acf_field_group',
|
250 |
+
'type' => 'checkbox',
|
251 |
+
'instructions' => __('Select user roles that are allowed to view and edit this field group in post edition'),
|
252 |
+
'required' => false,
|
253 |
+
'default_value' => false,
|
254 |
+
'choices' => acfe_get_roles(),
|
255 |
+
'value' => acf_maybe_get($field_group, 'acfe_permissions', array()),
|
256 |
+
'layout' => 'vertical'
|
257 |
+
));
|
258 |
+
|
259 |
+
}
|
260 |
+
|
261 |
+
}
|
262 |
|
263 |
?>
|
264 |
<script type="text/javascript">
|
365 |
<?php
|
366 |
}
|
367 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
368 |
/**
|
369 |
* Default AutoSync
|
370 |
*/
|
371 |
+
function validate_default_autosync($field_group){
|
372 |
|
373 |
// Only new field groups
|
374 |
if(!acf_maybe_get($field_group, 'location')){
|
403 |
|
404 |
}
|
405 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
406 |
}
|
407 |
|
408 |
acf_new_instance('ACFE_Field_Group');
|
@@ -3,79 +3,79 @@
|
|
3 |
if(!defined('ABSPATH'))
|
4 |
exit;
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
add_action('acf/render_field_settings', 'acfe_settings_field_data', 992);
|
10 |
-
function acfe_settings_field_data($field){
|
11 |
-
|
12 |
-
if(!isset($field['ID']) || $field['ID'] === 'acfcloneindex')
|
13 |
-
return;
|
14 |
|
15 |
-
|
16 |
-
if($field['ID'] != 'acfcloneindex')
|
17 |
-
$acfe_field_data_id = $field['ID'];
|
18 |
|
19 |
-
|
20 |
-
'
|
21 |
-
|
22 |
-
|
23 |
-
'required' => false,
|
24 |
-
'name' => 'acfe_field_data',
|
25 |
-
'key' => 'acfe_field_data',
|
26 |
-
'value' => $acfe_field_data_id,
|
27 |
-
), true);
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
/**
|
32 |
-
* Render: Field Data
|
33 |
-
*/
|
34 |
-
add_filter('acf/render_field/name=acfe_field_data', 'acfe_render_field_data');
|
35 |
-
function acfe_render_field_data($field){
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
if(!$acfe_field_data_id)
|
40 |
-
return;
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
if(!$get_field)
|
56 |
-
$get_field_debug = '<pre>Field data unavailable</pre>';
|
57 |
-
|
58 |
-
$get_post = get_post($acfe_field_data_id, ARRAY_A);
|
59 |
-
|
60 |
-
$get_post = array_map(function($value){
|
61 |
-
|
62 |
-
if(is_array($value))
|
63 |
-
return $value;
|
64 |
-
|
65 |
-
return esc_html($value);
|
66 |
-
|
67 |
-
}, $get_post);
|
68 |
-
|
69 |
-
$get_post_debug = '<pre>' . print_r($get_post, true) . '</pre>';
|
70 |
-
|
71 |
-
if(!$get_post || $get_post['post_type'] !== 'acf-field'){
|
72 |
-
$get_post_debug = '<pre>Post object unavailable</pre>';
|
73 |
}
|
74 |
|
75 |
-
|
76 |
-
if(!$get_field && !$get_post)
|
77 |
-
$button = '<a href="#" class="button disabled" disabled>' . __('Data') . '</a>';
|
78 |
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
-
}
|
|
|
|
|
|
|
|
3 |
if(!defined('ABSPATH'))
|
4 |
exit;
|
5 |
|
6 |
+
if(!class_exists('acfe_field_data')):
|
7 |
+
|
8 |
+
class acfe_field_data{
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
+
function __construct(){
|
|
|
|
|
11 |
|
12 |
+
add_action('acf/render_field_settings', array($this, 'render_field_settings'), 992);
|
13 |
+
add_filter('acf/render_field/name=acfe_field_data', array($this, 'render_field'));
|
14 |
+
|
15 |
+
}
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
+
function render_field_settings($field){
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
+
$id = acf_maybe_get($field, 'ID');
|
|
|
|
|
|
|
20 |
|
21 |
+
if(!$id || $id === 'acfcloneindex')
|
22 |
+
return;
|
23 |
+
|
24 |
+
acf_render_field_setting($field, array(
|
25 |
+
'label' => false,
|
26 |
+
'instructions' => '',
|
27 |
+
'type' => 'acfe_dynamic_message',
|
28 |
+
'required' => false,
|
29 |
+
'name' => 'acfe_field_data',
|
30 |
+
'key' => 'acfe_field_data',
|
31 |
+
'value' => $id,
|
32 |
+
), true);
|
33 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
|
36 |
+
function render_field($field){
|
|
|
|
|
37 |
|
38 |
+
$id = $field['value'];
|
39 |
+
|
40 |
+
if(!$id)
|
41 |
+
return;
|
42 |
+
|
43 |
+
// Field
|
44 |
+
$field = acf_get_field($id);
|
45 |
+
$field = array_map(function($value){
|
46 |
+
|
47 |
+
if(is_array($value))
|
48 |
+
return $value;
|
49 |
+
|
50 |
+
return esc_html($value);
|
51 |
+
|
52 |
+
}, $field);
|
53 |
+
|
54 |
+
$field_debug = $field ? '<pre>' . print_r($field, true) . '</pre>' : '<pre>Field data unavailable</pre>';
|
55 |
+
|
56 |
+
// Post
|
57 |
+
$post = get_post($id, ARRAY_A);
|
58 |
+
$post = array_map(function($value){
|
59 |
+
|
60 |
+
if(is_array($value))
|
61 |
+
return $value;
|
62 |
+
|
63 |
+
return esc_html($value);
|
64 |
+
|
65 |
+
}, $post);
|
66 |
+
|
67 |
+
$post_debug = $post ? '<pre style="margin-top:15px;">' . print_r($post, true) . '</pre>' : '<pre>Post object unavailable</pre>';
|
68 |
+
|
69 |
+
?>
|
70 |
+
<a href="#" class="button acfe_modal_open" style="margin-left:5px;" data-modal-key="<?php echo $id; ?>"><?php _e('Data', 'acf'); ?></a>
|
71 |
+
<div class="acfe-modal" data-modal-key="<?php echo $id; ?>">
|
72 |
+
<div style="padding:15px;"><?php echo $field_debug . $post_debug; ?></div>
|
73 |
+
</div>
|
74 |
+
<?php
|
75 |
+
}
|
76 |
|
77 |
+
}
|
78 |
+
|
79 |
+
new acfe_field_data();
|
80 |
+
|
81 |
+
endif;
|
@@ -1,127 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
-
exit;
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Field Wrapper Attributes
|
8 |
-
*/
|
9 |
-
add_filter('acf/field_wrapper_attributes', 'acfe_field_wrapper_attributes', 10, 2);
|
10 |
-
function acfe_field_wrapper_attributes($wrapper, $field){
|
11 |
-
|
12 |
-
$wrapper = apply_filters('acfe/field_wrapper_attributes', $wrapper, $field);
|
13 |
-
|
14 |
-
return $wrapper;
|
15 |
-
|
16 |
-
}
|
17 |
-
|
18 |
-
if(function_exists('acf_add_filter_variations')){
|
19 |
-
|
20 |
-
acf_add_filter_variations('acfe/field_wrapper_attributes', array('type', 'name', 'key'), 1);
|
21 |
-
|
22 |
-
}
|
23 |
-
|
24 |
-
/**
|
25 |
-
* Load Fields
|
26 |
-
*/
|
27 |
-
add_filter('acf/load_fields', 'acfe_field_load_fields', 10, 2);
|
28 |
-
function acfe_field_load_fields($fields, $parent){
|
29 |
-
|
30 |
-
// check if field (fitler is also called on field groups)
|
31 |
-
if(!acf_maybe_get($parent, 'type'))
|
32 |
-
return $fields;
|
33 |
-
|
34 |
-
$fields = apply_filters('acfe/load_fields', $fields, $parent);
|
35 |
-
|
36 |
-
return $fields;
|
37 |
-
|
38 |
-
}
|
39 |
-
|
40 |
-
if(function_exists('acf_add_filter_variations')){
|
41 |
-
|
42 |
-
acf_add_filter_variations('acfe/load_fields', array('type', 'name', 'key'), 1);
|
43 |
-
|
44 |
-
}
|
45 |
-
|
46 |
-
/**
|
47 |
-
* Load Field
|
48 |
-
*/
|
49 |
-
add_filter('acf/load_field', 'acfe_load_field');
|
50 |
-
function acfe_load_field($field){
|
51 |
-
|
52 |
-
if(acfe_is_admin_screen())
|
53 |
-
return $field;
|
54 |
-
|
55 |
-
// Everywhere
|
56 |
-
$field = apply_filters('acfe/load_field', $field);
|
57 |
-
|
58 |
-
// Admin
|
59 |
-
if(acfe_form_is_admin()){
|
60 |
-
|
61 |
-
$field = apply_filters('acfe/load_field_admin', $field);
|
62 |
-
|
63 |
-
}
|
64 |
-
|
65 |
-
// Front
|
66 |
-
elseif(acfe_form_is_front()){
|
67 |
-
|
68 |
-
$field = apply_filters('acfe/load_field_front', $field);
|
69 |
-
|
70 |
-
}
|
71 |
-
|
72 |
-
return $field;
|
73 |
-
|
74 |
-
}
|
75 |
-
|
76 |
-
if(function_exists('acf_add_filter_variations')){
|
77 |
-
|
78 |
-
acf_add_filter_variations('acfe/load_field', array('type', 'name', 'key'), 0);
|
79 |
-
acf_add_filter_variations('acfe/load_field_front', array('type', 'name', 'key'), 0);
|
80 |
-
acf_add_filter_variations('acfe/load_field_admin', array('type', 'name', 'key'), 0);
|
81 |
-
|
82 |
-
}
|
83 |
-
|
84 |
-
add_filter('acf/pre_render_fields', 'acfe_fields_wrapper_instructions', 10, 2);
|
85 |
-
function acfe_fields_wrapper_instructions($fields, $post_id){
|
86 |
-
|
87 |
-
$tooltip = false;
|
88 |
-
|
89 |
-
if(!isset($fields[0]))
|
90 |
-
return $fields;
|
91 |
-
|
92 |
-
$field_group = acfe_get_field_group_from_field($fields[0]);
|
93 |
-
|
94 |
-
if(!$field_group)
|
95 |
-
return $fields;
|
96 |
-
|
97 |
-
if($field_group['instruction_placement'] !== 'acfe_instructions_tooltip')
|
98 |
-
return $fields;
|
99 |
-
|
100 |
-
foreach($fields as &$field){
|
101 |
-
|
102 |
-
acfe_add_fields_instructions_tooltip($field);
|
103 |
-
|
104 |
-
}
|
105 |
-
|
106 |
-
return $fields;
|
107 |
-
|
108 |
-
}
|
109 |
-
|
110 |
-
add_filter('acf/field_wrapper_attributes', 'acfe_fields_wrapper', 10, 2);
|
111 |
-
function acfe_fields_wrapper($wrapper, $field){
|
112 |
-
|
113 |
-
if(!acf_maybe_get($field, 'label')){
|
114 |
-
|
115 |
-
$wrapper['class'] .= ' acfe-no-label';
|
116 |
-
|
117 |
-
}
|
118 |
-
|
119 |
-
if(acf_maybe_get($field, 'acfe_instructions_tooltip')){
|
120 |
-
|
121 |
-
$wrapper['data-acfe-instructions-tooltip'] = acf_esc_html($field['acfe_instructions_tooltip']);
|
122 |
-
|
123 |
-
}
|
124 |
-
|
125 |
-
return $wrapper;
|
126 |
-
|
127 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if(!defined('ABSPATH'))
|
4 |
+
exit;
|
5 |
+
|
6 |
+
if(!class_exists('acfe_instructions')):
|
7 |
+
|
8 |
+
class acfe_instructions{
|
9 |
+
|
10 |
+
function __construct(){
|
11 |
+
|
12 |
+
add_action('acfe/pre_render_field_group', array($this, 'pre_render_field_group'), 10, 3);
|
13 |
+
add_filter('acf/field_wrapper_attributes', array($this, 'field_wrapper_attributes'), 10, 2);
|
14 |
+
|
15 |
+
}
|
16 |
+
|
17 |
+
function pre_render_field_group($field_group, $fields, $post_id){
|
18 |
+
|
19 |
+
acf_disable_filter('acfe/instruction_tooltip');
|
20 |
+
acf_disable_filter('acfe/instruction_above_field');
|
21 |
+
|
22 |
+
if(acf_maybe_get($field_group, 'instruction_placement') === 'tooltip'){
|
23 |
+
|
24 |
+
acf_enable_filter('acfe/instruction_tooltip');
|
25 |
+
|
26 |
+
}elseif(acf_maybe_get($field_group, 'instruction_placement') === 'above_field'){
|
27 |
+
|
28 |
+
acf_enable_filter('acfe/instruction_above_field');
|
29 |
+
|
30 |
+
}
|
31 |
+
|
32 |
+
}
|
33 |
+
|
34 |
+
function field_wrapper_attributes($wrapper, $field){
|
35 |
+
|
36 |
+
if(!acf_maybe_get($field, 'label')){
|
37 |
+
|
38 |
+
$wrapper['class'] .= ' acfe-no-label';
|
39 |
+
|
40 |
+
}
|
41 |
+
|
42 |
+
if(acf_maybe_get($field, 'instructions')){
|
43 |
+
|
44 |
+
if(acf_is_filter_enabled('acfe/instruction_tooltip')){
|
45 |
+
|
46 |
+
$wrapper['data-instruction-tooltip'] = acf_esc_html($field['instructions']);
|
47 |
+
|
48 |
+
}elseif(acf_is_filter_enabled('acfe/instruction_above_field')){
|
49 |
+
|
50 |
+
$wrapper['data-instruction-above-field'] = acf_esc_html($field['instructions']);
|
51 |
+
|
52 |
+
}
|
53 |
+
|
54 |
+
}
|
55 |
+
|
56 |
+
return $wrapper;
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
}
|
61 |
+
|
62 |
+
new acfe_instructions();
|
63 |
+
|
64 |
+
endif;
|
@@ -3,53 +3,71 @@
|
|
3 |
if(!defined('ABSPATH'))
|
4 |
exit;
|
5 |
|
6 |
-
|
7 |
-
function acfe_permissions_settings($field){
|
8 |
-
|
9 |
-
// Settings
|
10 |
-
acf_render_field_setting($field, array(
|
11 |
-
'label' => __('Permissions'),
|
12 |
-
'name' => 'acfe_permissions',
|
13 |
-
'key' => 'acfe_permissions',
|
14 |
-
'instructions' => __('Select user roles that are allowed to view and edit this field. If nothing is selected, then this field will be available to everyone.'),
|
15 |
-
'type' => 'checkbox',
|
16 |
-
'required' => false,
|
17 |
-
'default_value' => false,
|
18 |
-
'choices' => acfe_get_roles(),
|
19 |
-
'layout' => 'horizontal'
|
20 |
-
), true);
|
21 |
-
|
22 |
-
}
|
23 |
|
24 |
-
|
25 |
-
function acfe_roles_prepare_field($field){
|
26 |
|
27 |
-
|
28 |
-
return $field;
|
29 |
|
30 |
-
|
31 |
-
|
|
|
|
|
32 |
|
33 |
-
|
34 |
|
35 |
-
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
}
|
44 |
|
45 |
-
if($render_field)
|
46 |
-
break;
|
47 |
-
|
48 |
}
|
49 |
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
-
}
|
|
|
|
|
|
|
|
3 |
if(!defined('ABSPATH'))
|
4 |
exit;
|
5 |
|
6 |
+
if(!class_exists('acfe_permissions')):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
+
class acfe_permissions{
|
|
|
9 |
|
10 |
+
function __construct(){
|
|
|
11 |
|
12 |
+
add_action('acf/render_field_settings', array($this, 'render_field_settings'));
|
13 |
+
add_filter('acf/prepare_field', array($this, 'prepare_field'));
|
14 |
+
|
15 |
+
}
|
16 |
|
17 |
+
function render_field_settings($field){
|
18 |
|
19 |
+
if(acf_is_filter_enabled('acfe/field_group/advanced') || acf_maybe_get($field, 'acfe_permissions')){
|
20 |
|
21 |
+
acf_render_field_setting($field, array(
|
22 |
+
'label' => __('Permissions'),
|
23 |
+
'name' => 'acfe_permissions',
|
24 |
+
'key' => 'acfe_permissions',
|
25 |
+
'instructions' => __('Restrict user roles that are allowed to view and edit this field'),
|
26 |
+
'type' => 'checkbox',
|
27 |
+
'required' => false,
|
28 |
+
'default_value' => false,
|
29 |
+
'choices' => acfe_get_roles(),
|
30 |
+
'layout' => 'horizontal',
|
31 |
+
'wrapper' => array(
|
32 |
+
'data-after' => 'instructions'
|
33 |
+
)
|
34 |
+
), true);
|
35 |
|
36 |
}
|
37 |
|
|
|
|
|
|
|
38 |
}
|
39 |
|
40 |
+
function prepare_field($field){
|
41 |
+
|
42 |
+
if(!acf_maybe_get($field, 'acfe_permissions'))
|
43 |
+
return $field;
|
44 |
+
|
45 |
+
$user_roles = acfe_get_current_user_roles();
|
46 |
+
$render = false;
|
47 |
+
|
48 |
+
foreach($user_roles as $user_role){
|
49 |
+
|
50 |
+
foreach($field['acfe_permissions'] as $field_role){
|
51 |
+
|
52 |
+
if($user_role !== $field_role)
|
53 |
+
continue;
|
54 |
|
55 |
+
$render = true;
|
56 |
+
break 2;
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
}
|
61 |
+
|
62 |
+
if(!$render)
|
63 |
+
return false;
|
64 |
+
|
65 |
+
return $field;
|
66 |
+
|
67 |
+
}
|
68 |
|
69 |
+
}
|
70 |
+
|
71 |
+
new acfe_permissions();
|
72 |
+
|
73 |
+
endif;
|
@@ -10,116 +10,54 @@ class acfe_field_settings{
|
|
10 |
function __construct(){
|
11 |
|
12 |
// Actions
|
13 |
-
add_action('
|
14 |
-
add_action('wp_ajax_acf/field_group/render_field_settings',
|
15 |
|
16 |
// Filters
|
17 |
-
add_filter('acfe/load_field', array($this, 'load_field'));
|
18 |
-
add_filter('
|
|
|
19 |
|
20 |
}
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
function load(){
|
26 |
-
|
27 |
-
if(!
|
28 |
return;
|
|
|
|
|
|
|
29 |
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
add_filter('acf/prepare_field/name=acfe_settings_location', array($this, 'fix_repeater'));
|
37 |
-
add_filter('acf/prepare_field/name=acfe_settings_settings', array($this, 'fix_repeater'));
|
38 |
-
add_filter('acf/prepare_field/name=acfe_settings_setting_type', array($this, 'fix_repeater'));
|
39 |
-
add_filter('acf/prepare_field/name=acfe_settings_setting_name', array($this, 'fix_repeater'));
|
40 |
-
add_filter('acf/prepare_field/name=acfe_settings_setting_operator', array($this, 'fix_repeater'));
|
41 |
-
add_filter('acf/prepare_field/name=acfe_settings_setting_value', array($this, 'fix_repeater'));
|
42 |
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
}
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
$valid = false;
|
51 |
-
|
52 |
-
$field_group = acfe_get_field_group_from_field($field);
|
53 |
-
|
54 |
-
if(acf_maybe_get($field_group, 'acfe_form'))
|
55 |
-
$valid = true;
|
56 |
-
|
57 |
-
if(!$valid && acf_maybe_get($field, '_name') === 'new_field'){
|
58 |
-
|
59 |
-
$field_group_id = get_the_ID();
|
60 |
-
|
61 |
-
if($field_group_id){
|
62 |
-
|
63 |
-
$field_group = acf_get_field_group($field_group_id);
|
64 |
-
|
65 |
-
if(acf_maybe_get($field_group, 'acfe_form'))
|
66 |
-
$valid = true;
|
67 |
-
|
68 |
-
}
|
69 |
-
|
70 |
-
}
|
71 |
-
|
72 |
-
if(!$valid)
|
73 |
-
return;
|
74 |
-
|
75 |
-
// Hide Field
|
76 |
-
acf_render_field_setting($field, array(
|
77 |
-
'label' => __('Hide Field', 'acfe'),
|
78 |
-
'instructions' => __('Hide field on specific location'),
|
79 |
-
'prepend' => '',
|
80 |
-
'append' => '',
|
81 |
-
'type' => 'group',
|
82 |
-
'name' => 'acfe_hide',
|
83 |
-
'sub_fields' => array(
|
84 |
-
array(
|
85 |
-
'label' => '',
|
86 |
-
'name' => 'hide_front',
|
87 |
-
'key' => 'hide_front',
|
88 |
-
'type' => 'true_false',
|
89 |
-
'ui' => true,
|
90 |
-
'message' => 'Hide on front',
|
91 |
-
'default_value' => false,
|
92 |
-
'required' => false,
|
93 |
-
'wrapper' => array(
|
94 |
-
'width' => 33,
|
95 |
-
'class' => 'acfe_width_auto',
|
96 |
-
'id' => '',
|
97 |
-
),
|
98 |
-
),
|
99 |
-
array(
|
100 |
-
'label' => '',
|
101 |
-
'name' => 'hide_admin',
|
102 |
-
'key' => 'hide_admin',
|
103 |
-
'type' => 'true_false',
|
104 |
-
'ui' => true,
|
105 |
-
'message' => 'Hide on admin',
|
106 |
-
'default_value' => false,
|
107 |
-
'required' => false,
|
108 |
-
'wrapper' => array(
|
109 |
-
'width' => 33,
|
110 |
-
'class' => 'acfe_width_auto',
|
111 |
-
'id' => '',
|
112 |
-
),
|
113 |
-
),
|
114 |
-
)
|
115 |
-
));
|
116 |
-
|
117 |
-
}
|
118 |
-
|
119 |
-
/**
|
120 |
-
* Get field types
|
121 |
*/
|
122 |
-
function
|
|
|
|
|
|
|
123 |
|
124 |
// Get Fields Types
|
125 |
foreach(acf_get_field_types_info() as $field){
|
@@ -127,62 +65,24 @@ class acfe_field_settings{
|
|
127 |
// Field type
|
128 |
$field_type = $field['name'];
|
129 |
|
130 |
-
//
|
131 |
-
if(in_array($field_type,
|
132 |
continue;
|
133 |
|
134 |
-
add_action(
|
135 |
|
136 |
}
|
137 |
|
138 |
}
|
139 |
|
140 |
-
|
141 |
-
*
|
142 |
*/
|
143 |
function render_field_settings($field){
|
144 |
|
145 |
-
$valid = false;
|
146 |
-
|
147 |
-
// Ajax
|
148 |
-
if(acf_verify_ajax()){
|
149 |
-
|
150 |
-
$field_group = acfe_get_field_group_from_field($field);
|
151 |
-
|
152 |
-
if(acf_maybe_get($field_group, 'acfe_form'))
|
153 |
-
$valid = true;
|
154 |
-
|
155 |
-
}
|
156 |
-
|
157 |
-
// Display
|
158 |
-
else{
|
159 |
-
|
160 |
-
if(acf_maybe_get($field, 'acfe_form'))
|
161 |
-
$valid = true;
|
162 |
-
|
163 |
-
if(!$valid && acf_maybe_get($field, '_name') === 'new_field'){
|
164 |
-
|
165 |
-
$field_group_id = get_the_ID();
|
166 |
-
|
167 |
-
if($field_group_id){
|
168 |
-
|
169 |
-
$field_group = acf_get_field_group($field_group_id);
|
170 |
-
|
171 |
-
if(acf_maybe_get($field_group, 'acfe_form'))
|
172 |
-
$valid = true;
|
173 |
-
|
174 |
-
}
|
175 |
-
|
176 |
-
}
|
177 |
-
|
178 |
-
}
|
179 |
-
|
180 |
-
if(!$valid)
|
181 |
-
return;
|
182 |
-
|
183 |
// Settings
|
184 |
acf_render_field_setting($field, array(
|
185 |
-
'label' => __('Advanced
|
186 |
'name' => 'acfe_settings',
|
187 |
'key' => 'acfe_settings',
|
188 |
'instructions' => __('Change field settings based on location'),
|
@@ -190,6 +90,9 @@ class acfe_field_settings{
|
|
190 |
'button_label' => __('Add settings'),
|
191 |
'required' => false,
|
192 |
'layout' => 'row',
|
|
|
|
|
|
|
193 |
'sub_fields' => array(
|
194 |
array(
|
195 |
'label' => 'Location',
|
@@ -242,13 +145,14 @@ class acfe_field_settings{
|
|
242 |
'id' => '',
|
243 |
),
|
244 |
'choices' => array(
|
245 |
-
'required'
|
246 |
-
'hide_field'
|
247 |
-
'hide_label'
|
248 |
-
'
|
249 |
-
'
|
250 |
-
'
|
251 |
-
'
|
|
|
252 |
)
|
253 |
),
|
254 |
array(
|
@@ -334,11 +238,11 @@ class acfe_field_settings{
|
|
334 |
)
|
335 |
),
|
336 |
)
|
337 |
-
)
|
338 |
|
339 |
}
|
340 |
|
341 |
-
|
342 |
* Load field
|
343 |
*/
|
344 |
function load_field($field){
|
@@ -441,51 +345,88 @@ class acfe_field_settings{
|
|
441 |
|
442 |
}
|
443 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
444 |
/*
|
445 |
-
*
|
446 |
*/
|
447 |
function prepare_field($field){
|
448 |
|
449 |
-
|
|
|
|
|
450 |
|
451 |
-
|
|
|
|
|
|
|
|
|
452 |
|
453 |
}
|
454 |
|
455 |
-
|
456 |
-
|
457 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
458 |
|
459 |
}
|
460 |
|
461 |
-
|
462 |
|
463 |
-
|
464 |
-
|
465 |
-
/**
|
466 |
-
* Process Setting
|
467 |
-
*/
|
468 |
-
function fix_repeater($field){
|
469 |
|
470 |
-
|
471 |
-
|
|
|
472 |
|
473 |
return $field;
|
474 |
|
475 |
}
|
476 |
|
477 |
-
|
478 |
-
*
|
479 |
*/
|
480 |
-
function
|
481 |
|
482 |
-
|
483 |
-
$field['acfe_settings'] = false;
|
484 |
|
485 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
486 |
|
487 |
}
|
488 |
|
|
|
489 |
}
|
490 |
|
491 |
// initialize
|
10 |
function __construct(){
|
11 |
|
12 |
// Actions
|
13 |
+
add_action('acf/field_group/admin_head', array($this, 'load'));
|
14 |
+
add_action('wp_ajax_acf/field_group/render_field_settings', array($this, 'load_ajax'), 5);
|
15 |
|
16 |
// Filters
|
17 |
+
add_filter('acfe/load_field', array($this, 'load_field'), 20);
|
18 |
+
add_filter('acfe/load_field', array($this, 'load_field_additional'), 20);
|
19 |
+
add_filter('acf/prepare_field', array($this, 'prepare_field'), 20);
|
20 |
|
21 |
}
|
22 |
+
|
23 |
+
/*
|
24 |
+
* Admin Head
|
25 |
+
*/
|
26 |
function load(){
|
27 |
+
|
28 |
+
if(!acf_is_filter_enabled('acfe/field_group/advanced'))
|
29 |
return;
|
30 |
+
|
31 |
+
$this->prepare_settings();
|
32 |
+
$this->add_settings();
|
33 |
|
34 |
+
}
|
35 |
+
|
36 |
+
/*
|
37 |
+
* Ajax Load
|
38 |
+
*/
|
39 |
+
function load_ajax(){
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
+
$post_id = acf_maybe_get_POST('post_id');
|
42 |
+
$field_group = acf_get_field_group($post_id);
|
43 |
+
|
44 |
+
if(!$field_group)
|
45 |
+
return;
|
46 |
+
|
47 |
+
if(!acf_maybe_get($field_group, 'acfe_form'))
|
48 |
+
return;
|
49 |
+
|
50 |
+
$this->add_settings();
|
51 |
|
52 |
}
|
53 |
|
54 |
+
/*
|
55 |
+
* Add Settings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
*/
|
57 |
+
function add_settings(){
|
58 |
+
|
59 |
+
// Exclude
|
60 |
+
$exclude = array('accordion', 'acfe_column', 'tab');
|
61 |
|
62 |
// Get Fields Types
|
63 |
foreach(acf_get_field_types_info() as $field){
|
65 |
// Field type
|
66 |
$field_type = $field['name'];
|
67 |
|
68 |
+
// check
|
69 |
+
if(in_array($field_type, $exclude))
|
70 |
continue;
|
71 |
|
72 |
+
add_action("acf/render_field_settings/type={$field_type}", array($this, 'render_field_settings'), 99);
|
73 |
|
74 |
}
|
75 |
|
76 |
}
|
77 |
|
78 |
+
/*
|
79 |
+
* Render Settings
|
80 |
*/
|
81 |
function render_field_settings($field){
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
// Settings
|
84 |
acf_render_field_setting($field, array(
|
85 |
+
'label' => __('Advanced Settings', 'acf'),
|
86 |
'name' => 'acfe_settings',
|
87 |
'key' => 'acfe_settings',
|
88 |
'instructions' => __('Change field settings based on location'),
|
90 |
'button_label' => __('Add settings'),
|
91 |
'required' => false,
|
92 |
'layout' => 'row',
|
93 |
+
'wrapper' => array(
|
94 |
+
'data-enable-switch' => true
|
95 |
+
),
|
96 |
'sub_fields' => array(
|
97 |
array(
|
98 |
'label' => 'Location',
|
145 |
'id' => '',
|
146 |
),
|
147 |
'choices' => array(
|
148 |
+
'required' => 'Required',
|
149 |
+
'hide_field' => 'Hide field',
|
150 |
+
'hide_label' => 'Hide label',
|
151 |
+
'hide_instructions' => 'Hide instructions',
|
152 |
+
'default_value' => 'Default value',
|
153 |
+
'placeholder' => 'Placeholder',
|
154 |
+
'instructions' => 'Instructions',
|
155 |
+
'custom' => 'Custom setting',
|
156 |
)
|
157 |
),
|
158 |
array(
|
238 |
)
|
239 |
),
|
240 |
)
|
241 |
+
));
|
242 |
|
243 |
}
|
244 |
|
245 |
+
/*
|
246 |
* Load field
|
247 |
*/
|
248 |
function load_field($field){
|
345 |
|
346 |
}
|
347 |
|
348 |
+
function load_field_additional($field){
|
349 |
+
|
350 |
+
$hide_required = acf_maybe_get($field, 'hide_required');
|
351 |
+
|
352 |
+
if($hide_required){
|
353 |
+
|
354 |
+
if(is_bool($hide_required) || $hide_required === 'all' || ($hide_required === 'front' && acfe_form_is_front()) || $hide_required === 'admin' && acfe_form_is_admin()){
|
355 |
+
|
356 |
+
$field['required'] = false;
|
357 |
+
|
358 |
+
}
|
359 |
+
|
360 |
+
}
|
361 |
+
|
362 |
+
return $field;
|
363 |
+
|
364 |
+
}
|
365 |
+
|
366 |
/*
|
367 |
+
* Prepare Field
|
368 |
*/
|
369 |
function prepare_field($field){
|
370 |
|
371 |
+
$hide_field = acf_maybe_get($field, 'hide_field');
|
372 |
+
|
373 |
+
if($hide_field){
|
374 |
|
375 |
+
if(is_bool($hide_field) || $hide_field === 'all' || ($hide_field === 'front' && acfe_form_is_front()) || $hide_field === 'admin' && acfe_form_is_admin()){
|
376 |
+
|
377 |
+
return false;
|
378 |
+
|
379 |
+
}
|
380 |
|
381 |
}
|
382 |
|
383 |
+
$hide_label = acf_maybe_get($field, 'hide_label');
|
384 |
+
|
385 |
+
if($hide_label){
|
386 |
+
|
387 |
+
if(is_bool($hide_label) || $hide_label === 'all' || ($hide_label === 'front' && acfe_form_is_front()) || $hide_label === 'admin' && acfe_form_is_admin()){
|
388 |
+
|
389 |
+
$field['label'] = '';
|
390 |
+
|
391 |
+
}
|
392 |
|
393 |
}
|
394 |
|
395 |
+
$hide_instructions = acf_maybe_get($field, 'hide_instructions');
|
396 |
|
397 |
+
if(is_bool($hide_instructions) || $hide_instructions === 'all' || ($hide_instructions === 'front' && acfe_form_is_front()) || $hide_instructions === 'admin' && acfe_form_is_admin()){
|
|
|
|
|
|
|
|
|
|
|
398 |
|
399 |
+
$field['instructions'] = '';
|
400 |
+
|
401 |
+
}
|
402 |
|
403 |
return $field;
|
404 |
|
405 |
}
|
406 |
|
407 |
+
/*
|
408 |
+
* Prepare Settings
|
409 |
*/
|
410 |
+
function prepare_settings(){
|
411 |
|
412 |
+
$fields = array('acfe_settings', 'acfe_settings_location', 'acfe_settings_settings', 'acfe_settings_setting_type', 'acfe_settings_setting_name', 'acfe_settings_setting_operator', 'acfe_settings_setting_value');
|
|
|
413 |
|
414 |
+
foreach($fields as $name){
|
415 |
+
|
416 |
+
add_filter("acf/prepare_field/name={$name}", function($field){
|
417 |
+
|
418 |
+
$field['prefix'] = str_replace('row-', '', $field['prefix']);
|
419 |
+
$field['name'] = str_replace('row-', '', $field['name']);
|
420 |
+
|
421 |
+
return $field;
|
422 |
+
|
423 |
+
});
|
424 |
+
|
425 |
+
}
|
426 |
|
427 |
}
|
428 |
|
429 |
+
|
430 |
}
|
431 |
|
432 |
// initialize
|
@@ -7,26 +7,85 @@ if(!class_exists('acfe_field_validation')):
|
|
7 |
|
8 |
class acfe_field_validation{
|
9 |
|
10 |
-
public $functions = array();
|
11 |
-
|
12 |
function __construct(){
|
13 |
-
|
14 |
// Actions
|
15 |
-
add_action('
|
16 |
-
add_action('wp_ajax_acf/field_group/render_field_settings',
|
17 |
|
18 |
// Filters
|
19 |
add_filter('acf/validate_value', array($this, 'validate_value'), 99, 4);
|
20 |
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
'General' => array(
|
25 |
'value' => 'If value',
|
26 |
'strlen' => 'If value length - strlen(value)',
|
27 |
'count' => 'If count value - count(value)',
|
28 |
),
|
29 |
-
|
30 |
'Exists' => array(
|
31 |
'email_exists' => 'If email exists - email_exists(value)',
|
32 |
'post_type_exists' => 'If post type exists - post_type_exists(value)',
|
@@ -34,7 +93,7 @@ class acfe_field_validation{
|
|
34 |
'term_exists' => 'If term exists - term_exists(value)',
|
35 |
'username_exists' => 'If username exists - username_exists(value)',
|
36 |
),
|
37 |
-
|
38 |
'Is' => array(
|
39 |
'is_email' => 'If is email - is_email(value)',
|
40 |
'is_user_logged_in' => 'If is user logged in - is_user_logged_in()',
|
@@ -42,14 +101,14 @@ class acfe_field_validation{
|
|
42 |
'is_string' => 'If is string - is_string(value)',
|
43 |
'is_numeric' => 'If is numeric - is_numeric(value)',
|
44 |
),
|
45 |
-
|
46 |
'Post' => array(
|
47 |
'get_post_type' => 'If get post type - get_post_type(value)',
|
48 |
'get_post_by_id' => 'If post id exists - get_post_by_id(value)',
|
49 |
'get_post_by_slug' => 'If post slug exists - get_post_by_slug(value)',
|
50 |
'get_post_by_title' => 'If post title exists - get_post_by_title(value)',
|
51 |
),
|
52 |
-
|
53 |
'Sanitize' => array(
|
54 |
'sanitize_email' => 'If sanitize email - sanitize_email(value)',
|
55 |
'sanitize_file_name' => 'If sanitize file name - sanitize_file_name(value)',
|
@@ -62,114 +121,24 @@ class acfe_field_validation{
|
|
62 |
'sanitize_title' => 'If sanitize title - sanitize_title(value)',
|
63 |
'sanitize_user' => 'If sanitize user - sanitize_user(value)',
|
64 |
),
|
65 |
-
|
66 |
'User' => array(
|
67 |
'get_user_by_id' => 'If get user by id - get_user_by(\'id\', value)',
|
68 |
'get_user_by_slug' => 'If get user by slug - get_user_by(\'slug\', value)',
|
69 |
'get_user_by_email' => 'If get user by email - get_user_by(\'email\', value)',
|
70 |
'get_user_by_login' => 'If get user by login - get_user_by(\'login\', value)',
|
71 |
)
|
72 |
-
|
73 |
-
);
|
74 |
-
|
75 |
-
}
|
76 |
|
77 |
-
|
78 |
-
* Load
|
79 |
-
*/
|
80 |
-
function load(){
|
81 |
-
|
82 |
-
if(!acf_is_screen('acf-field-group'))
|
83 |
-
return;
|
84 |
-
|
85 |
-
$this->field_types_action();
|
86 |
-
|
87 |
-
// Fix: Repeater
|
88 |
-
add_filter('acf/prepare_field/name=acfe_validate', array($this, 'fix_repeater'));
|
89 |
-
add_filter('acf/prepare_field/name=acfe_validate_location', array($this, 'fix_repeater'));
|
90 |
-
add_filter('acf/prepare_field/name=acfe_validate_rules_and', array($this, 'fix_repeater'));
|
91 |
-
add_filter('acf/prepare_field/name=acfe_validate_function', array($this, 'fix_repeater'));
|
92 |
-
add_filter('acf/prepare_field/name=acfe_validate_operator', array($this, 'fix_repeater'));
|
93 |
-
add_filter('acf/prepare_field/name=acfe_validate_match', array($this, 'fix_repeater'));
|
94 |
-
add_filter('acf/prepare_field/name=acfe_validate_error', array($this, 'fix_repeater'));
|
95 |
-
|
96 |
-
// Fix: Clone
|
97 |
-
add_filter('acf/update_field', array($this, 'fix_clone'));
|
98 |
-
|
99 |
-
}
|
100 |
-
|
101 |
-
/**
|
102 |
-
* Get field types
|
103 |
-
*/
|
104 |
-
function field_types_action(){
|
105 |
-
|
106 |
-
// Get Fields Types
|
107 |
-
foreach(acf_get_field_types_info() as $field){
|
108 |
-
|
109 |
-
// Field type
|
110 |
-
$field_type = $field['name'];
|
111 |
-
|
112 |
-
// Exclude
|
113 |
-
if(in_array($field_type, array('message', 'accordion', 'tab', 'acfe_button', 'acfe_column', 'acfe_dynamic_message', 'group', 'repeater', 'flexible_content', 'clone')))
|
114 |
-
continue;
|
115 |
-
|
116 |
-
add_action('acf/render_field_settings/type=' . $field_type, array($this, 'render_field_settings'), 990);
|
117 |
-
|
118 |
-
}
|
119 |
-
|
120 |
-
}
|
121 |
-
|
122 |
-
/**
|
123 |
-
* Add Setting
|
124 |
-
*/
|
125 |
-
function render_field_settings($field){
|
126 |
-
|
127 |
-
$valid = false;
|
128 |
-
|
129 |
-
// Ajax
|
130 |
-
if(acf_verify_ajax()){
|
131 |
-
|
132 |
-
$field_group = acfe_get_field_group_from_field($field);
|
133 |
-
|
134 |
-
if(acf_maybe_get($field_group, 'acfe_form'))
|
135 |
-
$valid = true;
|
136 |
-
|
137 |
-
}
|
138 |
-
|
139 |
-
// Display
|
140 |
-
else{
|
141 |
-
|
142 |
-
if(acf_maybe_get($field, 'acfe_form'))
|
143 |
-
$valid = true;
|
144 |
-
|
145 |
-
if(!$valid && acf_maybe_get($field, '_name') === 'new_field'){
|
146 |
-
|
147 |
-
$field_group_id = get_the_ID();
|
148 |
-
|
149 |
-
if($field_group_id){
|
150 |
-
|
151 |
-
$field_group = acf_get_field_group($field_group_id);
|
152 |
-
|
153 |
-
if(acf_maybe_get($field_group, 'acfe_form'))
|
154 |
-
$valid = true;
|
155 |
-
|
156 |
-
}
|
157 |
-
|
158 |
-
}
|
159 |
-
|
160 |
-
}
|
161 |
-
|
162 |
-
if(!$valid)
|
163 |
-
return;
|
164 |
|
165 |
-
$choices = apply_filters('acfe/validate/functions', $
|
166 |
|
167 |
if(empty($choices))
|
168 |
return;
|
169 |
|
170 |
// Settings
|
171 |
acf_render_field_setting($field, array(
|
172 |
-
'label' => __('Advanced
|
173 |
'name' => 'acfe_validate',
|
174 |
'key' => 'acfe_validate',
|
175 |
'instructions' => __('Validate value against rules'),
|
@@ -177,6 +146,9 @@ class acfe_field_validation{
|
|
177 |
'button_label' => __('Add validation'),
|
178 |
'required' => false,
|
179 |
'layout' => 'row',
|
|
|
|
|
|
|
180 |
'sub_fields' => array(
|
181 |
array(
|
182 |
'label' => 'Location',
|
@@ -412,12 +384,12 @@ class acfe_field_validation{
|
|
412 |
),
|
413 |
),
|
414 |
)
|
415 |
-
)
|
416 |
|
417 |
}
|
418 |
|
419 |
-
|
420 |
-
* Validate
|
421 |
*/
|
422 |
function validate_value($valid, $value, $field, $input){
|
423 |
|
@@ -699,30 +671,29 @@ class acfe_field_validation{
|
|
699 |
|
700 |
}
|
701 |
|
702 |
-
|
703 |
-
*
|
704 |
*/
|
705 |
-
function
|
706 |
-
|
707 |
-
$field['prefix'] = str_replace('row-', '', $field['prefix']);
|
708 |
-
$field['name'] = str_replace('row-', '', $field['name']);
|
709 |
-
|
710 |
-
return $field;
|
711 |
-
|
712 |
-
}
|
713 |
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
function fix_clone($field){
|
718 |
|
719 |
-
|
720 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
721 |
|
722 |
-
|
723 |
|
724 |
}
|
725 |
|
|
|
726 |
}
|
727 |
|
728 |
// initialize
|
7 |
|
8 |
class acfe_field_validation{
|
9 |
|
|
|
|
|
10 |
function __construct(){
|
11 |
+
|
12 |
// Actions
|
13 |
+
add_action('acf/field_group/admin_head', array($this, 'load'));
|
14 |
+
add_action('wp_ajax_acf/field_group/render_field_settings', array($this, 'load_ajax'), 5);
|
15 |
|
16 |
// Filters
|
17 |
add_filter('acf/validate_value', array($this, 'validate_value'), 99, 4);
|
18 |
|
19 |
+
}
|
20 |
+
|
21 |
+
/*
|
22 |
+
* Admin Head
|
23 |
+
*/
|
24 |
+
function load(){
|
25 |
+
|
26 |
+
if(!acf_is_filter_enabled('acfe/field_group/advanced'))
|
27 |
+
return;
|
28 |
+
|
29 |
+
$this->prepare_settings();
|
30 |
+
$this->add_settings();
|
31 |
+
|
32 |
+
}
|
33 |
+
|
34 |
+
/*
|
35 |
+
* Ajax Load
|
36 |
+
*/
|
37 |
+
function load_ajax(){
|
38 |
+
|
39 |
+
$post_id = acf_maybe_get_POST('post_id');
|
40 |
+
$field_group = acf_get_field_group($post_id);
|
41 |
+
|
42 |
+
if(!$field_group)
|
43 |
+
return;
|
44 |
+
|
45 |
+
if(!acf_maybe_get($field_group, 'acfe_form'))
|
46 |
+
return;
|
47 |
+
|
48 |
+
$this->add_settings();
|
49 |
+
|
50 |
+
}
|
51 |
+
|
52 |
+
/*
|
53 |
+
* Add Settings
|
54 |
+
*/
|
55 |
+
function add_settings(){
|
56 |
+
|
57 |
+
// Exclude
|
58 |
+
$exclude = array('accordion', 'acfe_button', 'acfe_column', 'acfe_dynamic_message', 'clone', 'flexible_content', 'group', 'message', 'repeater', 'tab');
|
59 |
+
|
60 |
+
// Get Fields Types
|
61 |
+
foreach(acf_get_field_types_info() as $field){
|
62 |
+
|
63 |
+
// Field type
|
64 |
+
$field_type = $field['name'];
|
65 |
+
|
66 |
+
// check
|
67 |
+
if(in_array($field_type, $exclude))
|
68 |
+
continue;
|
69 |
+
|
70 |
+
add_action("acf/render_field_settings/type={$field_type}", array($this, 'render_field_settings'), 99);
|
71 |
+
|
72 |
+
}
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
/*
|
77 |
+
* Render Settings
|
78 |
+
*/
|
79 |
+
function render_field_settings($field){
|
80 |
+
|
81 |
+
$functions = array(
|
82 |
|
83 |
'General' => array(
|
84 |
'value' => 'If value',
|
85 |
'strlen' => 'If value length - strlen(value)',
|
86 |
'count' => 'If count value - count(value)',
|
87 |
),
|
88 |
+
|
89 |
'Exists' => array(
|
90 |
'email_exists' => 'If email exists - email_exists(value)',
|
91 |
'post_type_exists' => 'If post type exists - post_type_exists(value)',
|
93 |
'term_exists' => 'If term exists - term_exists(value)',
|
94 |
'username_exists' => 'If username exists - username_exists(value)',
|
95 |
),
|
96 |
+
|
97 |
'Is' => array(
|
98 |
'is_email' => 'If is email - is_email(value)',
|
99 |
'is_user_logged_in' => 'If is user logged in - is_user_logged_in()',
|
101 |
'is_string' => 'If is string - is_string(value)',
|
102 |
'is_numeric' => 'If is numeric - is_numeric(value)',
|
103 |
),
|
104 |
+
|
105 |
'Post' => array(
|
106 |
'get_post_type' => 'If get post type - get_post_type(value)',
|
107 |
'get_post_by_id' => 'If post id exists - get_post_by_id(value)',
|
108 |
'get_post_by_slug' => 'If post slug exists - get_post_by_slug(value)',
|
109 |
'get_post_by_title' => 'If post title exists - get_post_by_title(value)',
|
110 |
),
|
111 |
+
|
112 |
'Sanitize' => array(
|
113 |
'sanitize_email' => 'If sanitize email - sanitize_email(value)',
|
114 |
'sanitize_file_name' => 'If sanitize file name - sanitize_file_name(value)',
|
121 |
'sanitize_title' => 'If sanitize title - sanitize_title(value)',
|
122 |
'sanitize_user' => 'If sanitize user - sanitize_user(value)',
|
123 |
),
|
124 |
+
|
125 |
'User' => array(
|
126 |
'get_user_by_id' => 'If get user by id - get_user_by(\'id\', value)',
|
127 |
'get_user_by_slug' => 'If get user by slug - get_user_by(\'slug\', value)',
|
128 |
'get_user_by_email' => 'If get user by email - get_user_by(\'email\', value)',
|
129 |
'get_user_by_login' => 'If get user by login - get_user_by(\'login\', value)',
|
130 |
)
|
|
|
|
|
|
|
|
|
131 |
|
132 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
|
134 |
+
$choices = apply_filters('acfe/validate/functions', $functions, $field);
|
135 |
|
136 |
if(empty($choices))
|
137 |
return;
|
138 |
|
139 |
// Settings
|
140 |
acf_render_field_setting($field, array(
|
141 |
+
'label' => __('Advanced Validation'),
|
142 |
'name' => 'acfe_validate',
|
143 |
'key' => 'acfe_validate',
|
144 |
'instructions' => __('Validate value against rules'),
|
146 |
'button_label' => __('Add validation'),
|
147 |
'required' => false,
|
148 |
'layout' => 'row',
|
149 |
+
'wrapper' => array(
|
150 |
+
'data-enable-switch' => true
|
151 |
+
),
|
152 |
'sub_fields' => array(
|
153 |
array(
|
154 |
'label' => 'Location',
|
384 |
),
|
385 |
),
|
386 |
)
|
387 |
+
));
|
388 |
|
389 |
}
|
390 |
|
391 |
+
/*
|
392 |
+
* Validate Value
|
393 |
*/
|
394 |
function validate_value($valid, $value, $field, $input){
|
395 |
|
671 |
|
672 |
}
|
673 |
|
674 |
+
/*
|
675 |
+
* Prepare Settings
|
676 |
*/
|
677 |
+
function prepare_settings(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
678 |
|
679 |
+
$fields = array('acfe_validate', 'acfe_validate_location', 'acfe_validate_rules_and', 'acfe_validate_function', 'acfe_validate_operator', 'acfe_validate_match', 'acfe_validate_error');
|
680 |
+
|
681 |
+
foreach($fields as $name){
|
|
|
682 |
|
683 |
+
add_filter("acf/prepare_field/name={$name}", function($field){
|
684 |
+
|
685 |
+
$field['prefix'] = str_replace('row-', '', $field['prefix']);
|
686 |
+
$field['name'] = str_replace('row-', '', $field['name']);
|
687 |
+
|
688 |
+
return $field;
|
689 |
+
|
690 |
+
});
|
691 |
|
692 |
+
}
|
693 |
|
694 |
}
|
695 |
|
696 |
+
|
697 |
}
|
698 |
|
699 |
// initialize
|
@@ -3,54 +3,126 @@
|
|
3 |
if(!defined('ABSPATH'))
|
4 |
exit;
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
return $translated_text;
|
|
|
|
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
'
|
30 |
-
'
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
'layout' => 'horizontal',
|
36 |
-
'return_format' => 'value',
|
37 |
-
'save_other_choice' => 0,
|
38 |
-
));
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
return $field;
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
acf_update_setting('uploader', $field['acfe_uploader']);
|
53 |
|
54 |
-
|
55 |
|
56 |
-
|
3 |
if(!defined('ABSPATH'))
|
4 |
exit;
|
5 |
|
6 |
+
if(!class_exists('acfe_field_file')):
|
7 |
+
|
8 |
+
class acfe_field_file{
|
9 |
+
|
10 |
+
function __construct(){
|
11 |
+
|
12 |
+
add_filter('gettext', array($this, 'gettext'), 99, 3);
|
13 |
+
add_action('acf/include_admin_tools', array($this, 'acf_admin_tools'));
|
14 |
+
add_filter('acf/validate_field/type=file', array($this, 'validate_field'), 20);
|
15 |
+
add_action('acf/render_field_settings/type=file', array($this, 'render_field_settings'), 0);
|
16 |
+
add_filter('acf/prepare_field/type=file', array($this, 'prepare_field'));
|
17 |
+
|
18 |
+
add_filter('acf/prepare_field/name=min_size', array($this, 'prepare_min_max_size'));
|
19 |
+
add_filter('acf/prepare_field/name=max_size', array($this, 'prepare_min_max_size'));
|
20 |
+
add_filter('acf/prepare_field/name=library', array($this, 'prepare_library'));
|
21 |
+
|
22 |
+
}
|
23 |
+
|
24 |
+
function prepare_min_max_size($field){
|
25 |
+
|
26 |
+
if(acf_maybe_get($field['wrapper'], 'data-setting') !== 'file')
|
27 |
+
return $field;
|
28 |
+
|
29 |
+
if($field['_name'] === 'min_size'){
|
30 |
+
|
31 |
+
$field['label'] = __('File size', 'acf');
|
32 |
+
$field['prepend'] = 'Min size';
|
33 |
+
|
34 |
+
}elseif($field['_name'] === 'max_size'){
|
35 |
+
|
36 |
+
$field['prepend'] = 'Max size';
|
37 |
+
$field['wrapper']['data-append'] = 'min_size';
|
38 |
+
|
39 |
+
}
|
40 |
+
|
41 |
+
return $field;
|
42 |
+
|
43 |
+
}
|
44 |
+
|
45 |
+
function prepare_library($field){
|
46 |
+
|
47 |
+
if(acf_maybe_get($field['wrapper'], 'data-setting') !== 'file')
|
48 |
+
return $field;
|
49 |
+
|
50 |
+
$field['conditional_logic'] = array(
|
51 |
+
array(
|
52 |
+
array(
|
53 |
+
'field' => 'uploader',
|
54 |
+
'operator' => '==',
|
55 |
+
'value' => 'wp',
|
56 |
+
)
|
57 |
+
)
|
58 |
+
);
|
59 |
+
|
60 |
+
return $field;
|
61 |
+
|
62 |
+
}
|
63 |
|
64 |
+
function acf_admin_tools(){
|
65 |
+
|
66 |
+
// Do not remove "No file selected" in the ACF Admin Tool
|
67 |
+
remove_filter('gettext', array($this, 'gettext'), 99);
|
68 |
+
|
69 |
+
}
|
70 |
+
|
71 |
+
function gettext($translated_text, $text, $domain){
|
72 |
+
|
73 |
+
if($domain !== 'acf')
|
74 |
+
return $translated_text;
|
75 |
+
|
76 |
+
if($text === 'No file selected')
|
77 |
+
return '';
|
78 |
+
|
79 |
return $translated_text;
|
80 |
+
|
81 |
+
}
|
82 |
|
83 |
+
function validate_field($field){
|
84 |
+
|
85 |
+
if(!acf_maybe_get($field, 'acfe_uploader'))
|
86 |
+
return $field;
|
87 |
+
|
88 |
+
$field['uploader'] = $field['acfe_uploader'];
|
89 |
+
unset($field['acfe_uploader']);
|
90 |
+
|
91 |
+
return $field;
|
92 |
+
|
93 |
+
}
|
94 |
|
95 |
+
function render_field_settings($field){
|
96 |
+
|
97 |
+
acf_render_field_setting($field, array(
|
98 |
+
'label' => __('Uploader type'),
|
99 |
+
'name' => 'uploader',
|
100 |
+
'key' => 'uploader',
|
101 |
+
'instructions' => __('Choose the uploader type'),
|
102 |
+
'type' => 'radio',
|
103 |
+
'choices' => array(
|
104 |
+
'wp' => 'WordPress',
|
105 |
+
'basic' => 'Browser',
|
106 |
+
),
|
107 |
+
'default_value' => 'wp',
|
108 |
+
'layout' => 'horizontal',
|
109 |
+
'return_format' => 'value',
|
110 |
+
));
|
111 |
+
|
112 |
+
}
|
|
|
|
|
|
|
|
|
113 |
|
114 |
+
function prepare_field($field){
|
115 |
+
|
116 |
+
// ACFE Form force uploader type
|
117 |
+
if(acf_is_filter_enabled('acfe/form/uploader'))
|
118 |
+
acfe_unset($field, 'uploader');
|
119 |
+
|
120 |
return $field;
|
121 |
+
|
122 |
+
}
|
123 |
+
|
124 |
+
}
|
|
|
|
|
125 |
|
126 |
+
new acfe_field_file();
|
127 |
|
128 |
+
endif;
|
@@ -96,7 +96,7 @@ class acfe_field_flexible_content extends acf_field_flexible_content{
|
|
96 |
$this->flexible = acf_get_field_type('flexible_content');
|
97 |
|
98 |
// Remove Inherit Actions
|
99 |
-
remove_action('acf/render_field/type=flexible_content',
|
100 |
|
101 |
// Field Action
|
102 |
$this->add_field_action('acf/render_field_settings', array($this, 'render_field_settings'), 0);
|
@@ -877,6 +877,10 @@ class acfe_field_flexible_content extends acf_field_flexible_content{
|
|
877 |
|
878 |
// Profit!
|
879 |
$flexible = acf_get_field($_field_id);
|
|
|
|
|
|
|
|
|
880 |
$layout = $flexible['layouts'][$_layout_key];
|
881 |
|
882 |
// Vars
|
@@ -1186,7 +1190,7 @@ class acfe_field_flexible_content extends acf_field_flexible_content{
|
|
1186 |
);
|
1187 |
|
1188 |
// Category
|
1189 |
-
if($layout
|
1190 |
|
1191 |
$categories = $layout['acfe_flexible_category'];
|
1192 |
|
@@ -1427,6 +1431,13 @@ class acfe_field_flexible_content extends acf_field_flexible_content{
|
|
1427 |
|
1428 |
}
|
1429 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1430 |
// Modal: Edition
|
1431 |
if($field['acfe_flexible_modal_edition']){
|
1432 |
|
@@ -1787,11 +1798,11 @@ class acfe_field_flexible_content extends acf_field_flexible_content{
|
|
1787 |
|
1788 |
}
|
1789 |
|
1790 |
-
$div = apply_filters('acfe/flexible/layouts/div', $div, $layout, $field);
|
1791 |
-
$div = apply_filters('acfe/flexible/layouts/div/name=' . $field['_name'], $div, $layout, $field);
|
1792 |
-
$div = apply_filters('acfe/flexible/layouts/div/key=' . $field['key'], $div, $layout, $field);
|
1793 |
-
$div = apply_filters('acfe/flexible/layouts/div/name=' . $field['_name'] . '&layout=' . $layout['name'], $div, $layout, $field);
|
1794 |
-
$div = apply_filters('acfe/flexible/layouts/div/key=' . $field['key'] . '&layout=' . $layout['name'], $div, $layout, $field);
|
1795 |
|
1796 |
// handle
|
1797 |
$handle = array(
|
96 |
$this->flexible = acf_get_field_type('flexible_content');
|
97 |
|
98 |
// Remove Inherit Actions
|
99 |
+
remove_action('acf/render_field/type=flexible_content', array($this->flexible, 'render_field'), 9);
|
100 |
|
101 |
// Field Action
|
102 |
$this->add_field_action('acf/render_field_settings', array($this, 'render_field_settings'), 0);
|
877 |
|
878 |
// Profit!
|
879 |
$flexible = acf_get_field($_field_id);
|
880 |
+
|
881 |
+
if(!acf_maybe_get($flexible, 'layouts'))
|
882 |
+
return;
|
883 |
+
|
884 |
$layout = $flexible['layouts'][$_layout_key];
|
885 |
|
886 |
// Vars
|
1190 |
);
|
1191 |
|
1192 |
// Category
|
1193 |
+
if(acf_maybe_get($layout, 'acfe_flexible_category') && acf_maybe_get($field['acfe_flexible_modal'], 'acfe_flexible_modal_categories')){
|
1194 |
|
1195 |
$categories = $layout['acfe_flexible_category'];
|
1196 |
|
1431 |
|
1432 |
}
|
1433 |
|
1434 |
+
// Thumbnails
|
1435 |
+
if($field['acfe_flexible_layouts_thumbnails']){
|
1436 |
+
|
1437 |
+
$wrapper['data-acfe-flexible-thumbnails'] = 1;
|
1438 |
+
|
1439 |
+
}
|
1440 |
+
|
1441 |
// Modal: Edition
|
1442 |
if($field['acfe_flexible_modal_edition']){
|
1443 |
|
1798 |
|
1799 |
}
|
1800 |
|
1801 |
+
$div = apply_filters('acfe/flexible/layouts/div', $div, $layout, $field, $value);
|
1802 |
+
$div = apply_filters('acfe/flexible/layouts/div/name=' . $field['_name'], $div, $layout, $field, $value);
|
1803 |
+
$div = apply_filters('acfe/flexible/layouts/div/key=' . $field['key'], $div, $layout, $field, $value);
|
1804 |
+
$div = apply_filters('acfe/flexible/layouts/div/name=' . $field['_name'] . '&layout=' . $layout['name'], $div, $layout, $field, $value);
|
1805 |
+
$div = apply_filters('acfe/flexible/layouts/div/key=' . $field['key'] . '&layout=' . $layout['name'], $div, $layout, $field, $value);
|
1806 |
|
1807 |
// handle
|
1808 |
$handle = array(
|
@@ -3,107 +3,148 @@
|
|
3 |
if(!defined('ABSPATH'))
|
4 |
exit;
|
5 |
|
6 |
-
|
7 |
-
function acfe_field_image_text($translated_text, $text, $domain){
|
8 |
-
|
9 |
-
if($domain !== 'acf')
|
10 |
-
return $translated_text;
|
11 |
-
|
12 |
-
if($text === 'No image selected')
|
13 |
-
return '';
|
14 |
-
|
15 |
-
return $translated_text;
|
16 |
-
|
17 |
-
}
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
'
|
24 |
-
'
|
25 |
-
'
|
26 |
-
'
|
27 |
-
'
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
'
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
'instructions' => __('Make this image the featured thumbnail'),
|
45 |
-
'type' => 'true_false',
|
46 |
-
'default_value' => false,
|
47 |
-
'ui' => true,
|
48 |
-
'ui_on_text' => '',
|
49 |
-
'ui_off_text' => '',
|
50 |
-
'required' => false,
|
51 |
-
));
|
52 |
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
return $field;
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
return $value;
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
return $value;
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
return $value;
|
88 |
|
89 |
}
|
90 |
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
add_filter('acf/load_value/type=image', 'acfe_thumbnail_load', 10, 3);
|
95 |
-
function acfe_thumbnail_load($value, $post_id, $field){
|
96 |
-
|
97 |
-
if(!acf_maybe_get($field, 'acfe_thumbnail'))
|
98 |
-
return $value;
|
99 |
-
|
100 |
-
$data = acf_get_post_id_info($post_id);
|
101 |
-
|
102 |
-
if($data['type'] !== 'post')
|
103 |
-
return $value;
|
104 |
-
|
105 |
-
$value = get_post_meta($post_id, '_thumbnail_id', true);
|
106 |
-
|
107 |
-
return $value;
|
108 |
-
|
109 |
-
}
|
3 |
if(!defined('ABSPATH'))
|
4 |
exit;
|
5 |
|
6 |
+
if(!class_exists('acfe_field_image')):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
+
class acfe_field_image{
|
9 |
+
|
10 |
+
function __construct(){
|
11 |
+
|
12 |
+
add_filter('gettext', array($this, 'gettext'), 99, 3);
|
13 |
+
add_filter('acf/validate_field/type=image', array($this, 'validate_field'), 20);
|
14 |
+
add_action('acf/render_field_settings/type=image', array($this, 'render_field_settings'), 0);
|
15 |
+
add_filter('acf/prepare_field/type=image', array($this, 'prepare_field'));
|
16 |
+
add_filter('acf/prepare_field/name=library', array($this, 'prepare_library'));
|
17 |
+
|
18 |
+
add_filter('acf/update_value/type=image', array($this, 'update_value'), 10, 3);
|
19 |
+
add_filter('acf/load_value/type=image', array($this, 'load_value'), 10, 3);
|
20 |
+
|
21 |
+
}
|
22 |
+
|
23 |
+
function prepare_library($field){
|
24 |
+
|
25 |
+
if(acf_maybe_get($field['wrapper'], 'data-setting') !== 'image')
|
26 |
+
return $field;
|
27 |
+
|
28 |
+
$field['conditional_logic'] = array(
|
29 |
+
array(
|
30 |
+
array(
|
31 |
+
'field' => 'uploader',
|
32 |
+
'operator' => '==',
|
33 |
+
'value' => 'wp',
|
34 |
+
)
|
35 |
+
)
|
36 |
+
);
|
37 |
+
|
38 |
+
return $field;
|
39 |
+
|
40 |
+
}
|
41 |
|
42 |
+
function gettext($translated_text, $text, $domain){
|
43 |
+
|
44 |
+
if($domain !== 'acf')
|
45 |
+
return $translated_text;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
+
if($text === 'No image selected')
|
48 |
+
return '';
|
49 |
+
|
50 |
+
return $translated_text;
|
51 |
+
|
52 |
+
}
|
53 |
+
|
54 |
+
function validate_field($field){
|
55 |
+
|
56 |
+
if(!acf_maybe_get($field, 'acfe_uploader'))
|
57 |
+
return $field;
|
58 |
+
|
59 |
+
$field['uploader'] = $field['acfe_uploader'];
|
60 |
+
unset($field['acfe_uploader']);
|
61 |
+
|
62 |
return $field;
|
63 |
+
|
64 |
+
}
|
65 |
+
|
66 |
+
function render_field_settings($field){
|
67 |
+
|
68 |
+
acf_render_field_setting($field, array(
|
69 |
+
'label' => __('Uploader type'),
|
70 |
+
'name' => 'uploader',
|
71 |
+
'key' => 'uploader',
|
72 |
+
'instructions' => __('Choose the uploader type'),
|
73 |
+
'type' => 'radio',
|
74 |
+
'choices' => array(
|
75 |
+
'wp' => 'WordPress',
|
76 |
+
'basic' => 'Browser',
|
77 |
+
),
|
78 |
+
'default_value' => 'wp',
|
79 |
+
'layout' => 'horizontal',
|
80 |
+
'return_format' => 'value',
|
81 |
+
));
|
82 |
+
|
83 |
+
acf_render_field_setting($field, array(
|
84 |
+
'label' => __('Featured thumbnail'),
|
85 |
+
'name' => 'acfe_thumbnail',
|
86 |
+
'key' => 'acfe_thumbnail',
|
87 |
+
'instructions' => __('Make this image the featured thumbnail'),
|
88 |
+
'type' => 'true_false',
|
89 |
+
'default_value' => false,
|
90 |
+
'ui' => true,
|
91 |
+
'ui_on_text' => '',
|
92 |
+
'ui_off_text' => '',
|
93 |
+
'required' => false,
|
94 |
+
));
|
95 |
+
|
96 |
+
}
|
97 |
+
|
98 |
+
function prepare_field($field){
|
99 |
+
|
100 |
+
if(!acf_maybe_get($field, 'uploader'))
|
101 |
+
$field['uploader'] = 'wp';
|
102 |
+
|
103 |
+
// ACFE Form force uploader type
|
104 |
+
if(acf_is_filter_enabled('acfe/form/uploader'))
|
105 |
+
acfe_unset($field, 'uploader');
|
106 |
+
|
107 |
+
if(acf_maybe_get($field, 'uploader'))
|
108 |
+
acf_update_setting('uploader', $field['uploader']);
|
109 |
+
|
110 |
+
return $field;
|
111 |
+
|
112 |
+
}
|
113 |
+
|
114 |
+
function update_value($value, $post_id, $field){
|
115 |
+
|
116 |
+
if(!acf_maybe_get($field, 'acfe_thumbnail'))
|
117 |
+
return $value;
|
118 |
+
|
119 |
+
$data = acf_get_post_id_info($post_id);
|
120 |
+
|
121 |
+
if($data['type'] !== 'post')
|
122 |
+
return $value;
|
123 |
+
|
124 |
+
update_post_meta($post_id, '_thumbnail_id', $value);
|
125 |
+
|
126 |
return $value;
|
127 |
+
|
128 |
+
}
|
129 |
+
|
130 |
+
function load_value($value, $post_id, $field){
|
131 |
+
|
132 |
+
if(!acf_maybe_get($field, 'acfe_thumbnail'))
|
133 |
+
return $value;
|
134 |
+
|
135 |
+
$data = acf_get_post_id_info($post_id);
|
136 |
+
|
137 |
+
if($data['type'] !== 'post')
|
138 |
+
return $value;
|
139 |
+
|
140 |
+
$value = get_post_meta($post_id, '_thumbnail_id', true);
|
141 |
+
|
142 |
return $value;
|
143 |
+
|
144 |
+
}
|
|
|
|
|
145 |
|
146 |
}
|
147 |
|
148 |
+
new acfe_field_image();
|
149 |
+
|
150 |
+
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1018,6 +1018,12 @@ class acfe_field_taxonomy_terms extends acf_field{
|
|
1018 |
|
1019 |
}
|
1020 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1021 |
// update value
|
1022 |
$value = $term_ids;
|
1023 |
|
1018 |
|
1019 |
}
|
1020 |
|
1021 |
+
if($field['field_type'] === 'radio'){
|
1022 |
+
|
1023 |
+
$term_ids = acfe_unarray($term_ids);
|
1024 |
+
|
1025 |
+
}
|
1026 |
+
|
1027 |
// update value
|
1028 |
$value = $term_ids;
|
1029 |
|
@@ -20,16 +20,19 @@ class acfe_dev{
|
|
20 |
if(!defined('SCRIPT_DEBUG'))
|
21 |
define('SCRIPT_DEBUG', true);
|
22 |
|
|
|
|
|
|
|
23 |
// Post
|
24 |
-
add_action('load-post.php',
|
25 |
-
add_action('load-post-new.php',
|
26 |
|
27 |
// Term
|
28 |
-
add_action('load-term.php',
|
29 |
|
30 |
// User
|
31 |
-
add_action('show_user_profile',
|
32 |
-
add_action('edit_user_profile',
|
33 |
|
34 |
// Options
|
35 |
add_action('acf/options_page/submitbox_before_major_actions', array($this, 'load_admin'));
|
@@ -38,6 +41,21 @@ class acfe_dev{
|
|
38 |
add_action('wp_ajax_acfe/bulk_delete_meta', array($this, 'ajax_bulk_delete_meta'));
|
39 |
|
40 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
/*
|
43 |
* Post
|
@@ -81,14 +99,14 @@ class acfe_dev{
|
|
81 |
$taxonomy = $screen->taxonomy;
|
82 |
|
83 |
// actions
|
84 |
-
add_action("{$taxonomy}_edit_form", array($this, 'edit_term'),
|
85 |
|
86 |
}
|
87 |
|
88 |
function edit_term($term, $taxonomy){
|
89 |
|
90 |
// Get Term ID
|
91 |
-
$post_id =
|
92 |
|
93 |
// Add Meta Boxes
|
94 |
$this->add_meta_boxes($post_id, 'edit-term');
|
@@ -321,7 +339,7 @@ class acfe_dev{
|
|
321 |
<option value="delete"><?php _e('Delete'); ?></option>
|
322 |
</select>
|
323 |
|
324 |
-
<input type="submit" id="
|
325 |
|
326 |
</div>
|
327 |
|
20 |
if(!defined('SCRIPT_DEBUG'))
|
21 |
define('SCRIPT_DEBUG', true);
|
22 |
|
23 |
+
// Additional Enqueue
|
24 |
+
add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));
|
25 |
+
|
26 |
// Post
|
27 |
+
add_action('load-post.php', array($this, 'load_post'));
|
28 |
+
add_action('load-post-new.php', array($this, 'load_post'));
|
29 |
|
30 |
// Term
|
31 |
+
add_action('load-term.php', array($this, 'load_term'));
|
32 |
|
33 |
// User
|
34 |
+
add_action('show_user_profile', array($this, 'load_user'), 99);
|
35 |
+
add_action('edit_user_profile', array($this, 'load_user'), 99);
|
36 |
|
37 |
// Options
|
38 |
add_action('acf/options_page/submitbox_before_major_actions', array($this, 'load_admin'));
|
41 |
add_action('wp_ajax_acfe/bulk_delete_meta', array($this, 'ajax_bulk_delete_meta'));
|
42 |
|
43 |
}
|
44 |
+
|
45 |
+
/*
|
46 |
+
* Enqueue Scripts
|
47 |
+
*/
|
48 |
+
function admin_enqueue_scripts(){
|
49 |
+
|
50 |
+
// bail early if not valid screen
|
51 |
+
if(!acf_is_screen(array('profile-network', 'user-edit-network', 'user-network'))){
|
52 |
+
return;
|
53 |
+
}
|
54 |
+
|
55 |
+
// enqueue
|
56 |
+
acf_enqueue_scripts();
|
57 |
+
|
58 |
+
}
|
59 |
|
60 |
/*
|
61 |
* Post
|
99 |
$taxonomy = $screen->taxonomy;
|
100 |
|
101 |
// actions
|
102 |
+
add_action("{$taxonomy}_edit_form", array($this, 'edit_term'), 99, 2);
|
103 |
|
104 |
}
|
105 |
|
106 |
function edit_term($term, $taxonomy){
|
107 |
|
108 |
// Get Term ID
|
109 |
+
$post_id = 'term_' . $term->term_id;
|
110 |
|
111 |
// Add Meta Boxes
|
112 |
$this->add_meta_boxes($post_id, 'edit-term');
|
339 |
<option value="delete"><?php _e('Delete'); ?></option>
|
340 |
</select>
|
341 |
|
342 |
+
<input type="submit" id="acfe_bulk_delete_meta_submit" class="button action" value="<?php _e('Apply'); ?>">
|
343 |
|
344 |
</div>
|
345 |
|
@@ -300,9 +300,9 @@ function acfe_dbt_filter_save($post_id){
|
|
300 |
// Supports: Experimental JSX
|
301 |
$experimental_jsx = get_field('supports_experimental_jsx', $post_id);
|
302 |
|
303 |
-
$register_args['supports']['
|
304 |
if(!empty($experimental_jsx))
|
305 |
-
$register_args['supports']['
|
306 |
|
307 |
// Supports: Align Content
|
308 |
$supports_align_content = get_field('supports_align_content', $post_id);
|
@@ -311,6 +311,13 @@ function acfe_dbt_filter_save($post_id){
|
|
311 |
if(!empty($supports_align_content))
|
312 |
$register_args['supports']['align_content'] = true;
|
313 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
314 |
|
315 |
// Get ACFE option
|
316 |
$option = acfe_settings('modules.dynamic_block_type.data');
|
@@ -1527,6 +1534,29 @@ full',
|
|
1527 |
'rows' => '',
|
1528 |
'new_lines' => '',
|
1529 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1530 |
|
1531 |
$experimental_jsx,
|
1532 |
|
300 |
// Supports: Experimental JSX
|
301 |
$experimental_jsx = get_field('supports_experimental_jsx', $post_id);
|
302 |
|
303 |
+
$register_args['supports']['jsx'] = false;
|
304 |
if(!empty($experimental_jsx))
|
305 |
+
$register_args['supports']['jsx'] = true;
|
306 |
|
307 |
// Supports: Align Content
|
308 |
$supports_align_content = get_field('supports_align_content', $post_id);
|
311 |
if(!empty($supports_align_content))
|
312 |
$register_args['supports']['align_content'] = true;
|
313 |
|
314 |
+
// Supports: Anchor
|
315 |
+
$supports_anchor = get_field('supports_anchor', $post_id);
|
316 |
+
|
317 |
+
$register_args['supports']['anchor'] = false;
|
318 |
+
if(!empty($supports_anchor))
|
319 |
+
$register_args['supports']['anchor'] = true;
|
320 |
+
|
321 |
|
322 |
// Get ACFE option
|
323 |
$option = acfe_settings('modules.dynamic_block_type.data');
|
1534 |
'rows' => '',
|
1535 |
'new_lines' => '',
|
1536 |
),
|
1537 |
+
|
1538 |
+
array(
|
1539 |
+
'key' => 'field_acfe_dbt_supports_anchor',
|
1540 |
+
'label' => 'Anchor',
|
1541 |
+
'name' => 'supports_anchor',
|
1542 |
+
'type' => 'true_false',
|
1543 |
+
'instructions' => '',
|
1544 |
+
'required' => 0,
|
1545 |
+
'conditional_logic' => 0,
|
1546 |
+
'wrapper' => array(
|
1547 |
+
'width' => '',
|
1548 |
+
'class' => '',
|
1549 |
+
'id' => '',
|
1550 |
+
),
|
1551 |
+
'acfe_validate' => '',
|
1552 |
+
'acfe_update' => '',
|
1553 |
+
'acfe_permissions' => '',
|
1554 |
+
'message' => '',
|
1555 |
+
'default_value' => 0,
|
1556 |
+
'ui' => 1,
|
1557 |
+
'ui_on_text' => 'True',
|
1558 |
+
'ui_off_text' => 'False',
|
1559 |
+
),
|
1560 |
|
1561 |
$experimental_jsx,
|
1562 |
|
@@ -10,9 +10,12 @@ if(!acf_get_setting('acfe/modules/dynamic_forms'))
|
|
10 |
return;
|
11 |
|
12 |
acfe_include('includes/modules/form/admin.php');
|
13 |
-
|
14 |
acfe_include('includes/modules/form/actions/custom.php');
|
15 |
acfe_include('includes/modules/form/actions/email.php');
|
16 |
acfe_include('includes/modules/form/actions/post.php');
|
|
|
17 |
acfe_include('includes/modules/form/actions/term.php');
|
18 |
-
acfe_include('includes/modules/form/actions/user.php');
|
|
|
|
10 |
return;
|
11 |
|
12 |
acfe_include('includes/modules/form/admin.php');
|
13 |
+
|
14 |
acfe_include('includes/modules/form/actions/custom.php');
|
15 |
acfe_include('includes/modules/form/actions/email.php');
|
16 |
acfe_include('includes/modules/form/actions/post.php');
|
17 |
+
acfe_include('includes/modules/form/actions/redirect.php');
|
18 |
acfe_include('includes/modules/form/actions/term.php');
|
19 |
+
acfe_include('includes/modules/form/actions/user.php');
|
20 |
+
|
21 |
+
acfe_include('includes/modules/form/field-group.php');
|
@@ -192,7 +192,7 @@ function acfe_dpt_filter_save($post_id){
|
|
192 |
}
|
193 |
|
194 |
// Menu
|
195 |
-
$menu_position =
|
196 |
$menu_icon = get_field('menu_icon', $post_id);
|
197 |
$show_ui = get_field('show_ui', $post_id);
|
198 |
$show_in_menu = get_field('show_in_menu', $post_id);
|
@@ -247,7 +247,6 @@ function acfe_dpt_filter_save($post_id){
|
|
247 |
'labels' => $labels_args,
|
248 |
|
249 |
// Menu
|
250 |
-
'menu_position' => $menu_position,
|
251 |
'menu_icon' => $menu_icon,
|
252 |
'show_ui' => $show_ui,
|
253 |
'show_in_menu' => $show_in_menu,
|
@@ -281,6 +280,10 @@ function acfe_dpt_filter_save($post_id){
|
|
281 |
'acfe_admin_order' => $admin_order,
|
282 |
);
|
283 |
|
|
|
|
|
|
|
|
|
284 |
// Has archive: override
|
285 |
if($has_archive && $has_archive_slug)
|
286 |
$register_args['has_archive'] = $has_archive_slug;
|
@@ -852,6 +855,7 @@ acf_add_local_field_group(array(
|
|
852 |
'width' => '',
|
853 |
'class' => '',
|
854 |
'id' => '',
|
|
|
855 |
),
|
856 |
'acfe_permissions' => '',
|
857 |
'placement' => 'top',
|
@@ -1135,7 +1139,7 @@ acf_add_local_field_group(array(
|
|
1135 |
'acfe_validate' => '',
|
1136 |
'acfe_update' => '',
|
1137 |
'acfe_permissions' => '',
|
1138 |
-
'default_value' =>
|
1139 |
'placeholder' => '',
|
1140 |
'prepend' => '',
|
1141 |
'append' => '',
|
192 |
}
|
193 |
|
194 |
// Menu
|
195 |
+
$menu_position = get_field('menu_position', $post_id);
|
196 |
$menu_icon = get_field('menu_icon', $post_id);
|
197 |
$show_ui = get_field('show_ui', $post_id);
|
198 |
$show_in_menu = get_field('show_in_menu', $post_id);
|
247 |
'labels' => $labels_args,
|
248 |
|
249 |
// Menu
|
|
|
250 |
'menu_icon' => $menu_icon,
|
251 |
'show_ui' => $show_ui,
|
252 |
'show_in_menu' => $show_in_menu,
|
280 |
'acfe_admin_order' => $admin_order,
|
281 |
);
|
282 |
|
283 |
+
// Menu Position
|
284 |
+
if(!acf_is_empty($menu_position))
|
285 |
+
$register_args['menu_position'] = (int) $menu_position;
|
286 |
+
|
287 |
// Has archive: override
|
288 |
if($has_archive && $has_archive_slug)
|
289 |
$register_args['has_archive'] = $has_archive_slug;
|
855 |
'width' => '',
|
856 |
'class' => '',
|
857 |
'id' => '',
|
858 |
+
'data-no-preference' => true,
|
859 |
),
|
860 |
'acfe_permissions' => '',
|
861 |
'placement' => 'top',
|
1139 |
'acfe_validate' => '',
|
1140 |
'acfe_update' => '',
|
1141 |
'acfe_permissions' => '',
|
1142 |
+
'default_value' => '',
|
1143 |
'placeholder' => '',
|
1144 |
'prepend' => '',
|
1145 |
'append' => '',
|
@@ -867,6 +867,7 @@ acf_add_local_field_group(array(
|
|
867 |
'width' => '',
|
868 |
'class' => '',
|
869 |
'id' => '',
|
|
|
870 |
),
|
871 |
'acfe_permissions' => '',
|
872 |
'placement' => 'top',
|
867 |
'width' => '',
|
868 |
'class' => '',
|
869 |
'id' => '',
|
870 |
+
'data-no-preference' => true,
|
871 |
),
|
872 |
'acfe_permissions' => '',
|
873 |
'placement' => 'top',
|
@@ -8,11 +8,12 @@ if(!class_exists('acfe_form_custom')):
|
|
8 |
class acfe_form_custom{
|
9 |
|
10 |
function __construct(){
|
11 |
-
|
|
|
|
|
12 |
add_action('acfe/form/make/custom', array($this, 'make'), 10, 3);
|
13 |
add_filter('acf/validate_value/name=acfe_form_custom_action', array($this, 'validate_action'), 10, 4);
|
14 |
|
15 |
-
add_action('acf/render_field/name=acfe_form_custom_action_advanced_load', array($this, 'advanced_load'));
|
16 |
add_action('acf/render_field/name=acfe_form_custom_action_advanced_validation', array($this, 'advanced_validation'));
|
17 |
add_action('acf/render_field/name=acfe_form_custom_action_advanced_submit', array($this, 'advanced_submit'));
|
18 |
|
@@ -50,7 +51,9 @@ class acfe_form_custom{
|
|
50 |
'custom',
|
51 |
'email',
|
52 |
'post',
|
|
|
53 |
'term',
|
|
|
54 |
);
|
55 |
|
56 |
if(in_array($value, $reserved))
|
@@ -59,66 +62,6 @@ class acfe_form_custom{
|
|
59 |
return $valid;
|
60 |
}
|
61 |
|
62 |
-
function advanced_load($field){
|
63 |
-
|
64 |
-
$form_name = 'my_form';
|
65 |
-
|
66 |
-
if(acf_maybe_get($field, 'value'))
|
67 |
-
$form_name = get_field('acfe_form_name', $field['value']);
|
68 |
-
|
69 |
-
?>You may use the following hooks:<br /><br />
|
70 |
-
<pre data-codemirror="php-plain">
|
71 |
-
add_filter('acfe/form/load/my-custom-action', 'my_form_custom_action_load', 10, 3);
|
72 |
-
add_filter('acfe/form/load/my-custom-action/form=<?php echo $form_name; ?>', 'my_form_custom_action_load', 10, 3);</pre>
|
73 |
-
<br />
|
74 |
-
<pre>
|
75 |
-
/**
|
76 |
-
* @array $form The form settings
|
77 |
-
* @int $post_id Current post ID
|
78 |
-
* @string $alias Action alias (Empty for custom actions)
|
79 |
-
*/
|
80 |
-
add_filter('acfe/form/load/my-custom-action', 'my_form_custom_action_load', 10, 3);
|
81 |
-
function my_form_custom_action_load($form, $post_id, $alias){
|
82 |
-
|
83 |
-
/**
|
84 |
-
* Set a custom query var
|
85 |
-
* The value '145' can be retrieved in an another action using the template tag:
|
86 |
-
* {query_var:my_tag}
|
87 |
-
*/
|
88 |
-
set_query_var('my_tag', 145);
|
89 |
-
|
90 |
-
|
91 |
-
/**
|
92 |
-
* Set a custom query var array
|
93 |
-
* The values can be retrieved in an another action using the template tags:
|
94 |
-
* {query_var:my_tag:target} {query_var:my_tag:load}
|
95 |
-
*/
|
96 |
-
set_query_var('my_tag', array(
|
97 |
-
'target' => 145,
|
98 |
-
'load' => 12,
|
99 |
-
);
|
100 |
-
|
101 |
-
/**
|
102 |
-
* Change form success message dynamically
|
103 |
-
*/
|
104 |
-
$form['updated_message'] = 'New success message!';
|
105 |
-
|
106 |
-
/**
|
107 |
-
* Change form redirection URL
|
108 |
-
*/
|
109 |
-
$form['return'] = '/thank-you';
|
110 |
-
|
111 |
-
/**
|
112 |
-
* Return arguments
|
113 |
-
* Note: Return false will hide the form
|
114 |
-
*/
|
115 |
-
return $form;
|
116 |
-
|
117 |
-
}
|
118 |
-
</pre><?php
|
119 |
-
|
120 |
-
}
|
121 |
-
|
122 |
function advanced_validation($field){
|
123 |
|
124 |
$form_name = 'my_form';
|
@@ -127,11 +70,11 @@ function my_form_custom_action_load($form, $post_id, $alias){
|
|
127 |
$form_name = get_field('acfe_form_name', $field['value']);
|
128 |
|
129 |
?>You may use the following hooks:<br /><br />
|
130 |
-
|
131 |
add_action('acfe/form/validation/my-custom-action', 'my_form_custom_action_validation', 10, 3);
|
132 |
-
|
133 |
<br />
|
134 |
-
|
135 |
/**
|
136 |
* @array $form The form settings
|
137 |
* @int $post_id Current post ID
|
@@ -161,8 +104,9 @@ function my_form_custom_action_validation($form, $post_id, $alias){
|
|
161 |
$post_my_field = get_field('my_field', 145);
|
162 |
$post_my_field_unformatted = get_field('my_field', 145, false);
|
163 |
|
164 |
-
}
|
165 |
-
|
|
|
166 |
|
167 |
}
|
168 |
|
@@ -174,11 +118,11 @@ function my_form_custom_action_validation($form, $post_id, $alias){
|
|
174 |
$form_name = get_field('acfe_form_name', $field['value']);
|
175 |
|
176 |
?>You may use the following hooks:<br /><br />
|
177 |
-
|
178 |
add_action('acfe/form/submit/my-custom-action', 'my_form_custom_action', 10, 2);
|
179 |
-
add_action('acfe/form/submit/my-custom-action/form=<?php echo $form_name; ?>', 'my_form_custom_action', 10, 2)
|
180 |
<br />
|
181 |
-
|
182 |
/**
|
183 |
* @array $form The form settings
|
184 |
* @int $post_id Current post ID
|
@@ -217,11 +161,124 @@ function my_form_custom_action($form, $post_id){
|
|
217 |
'user' => 12,
|
218 |
);
|
219 |
|
220 |
-
}
|
221 |
-
|
|
|
222 |
|
223 |
}
|
224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
}
|
226 |
|
227 |
new acfe_form_custom();
|
8 |
class acfe_form_custom{
|
9 |
|
10 |
function __construct(){
|
11 |
+
|
12 |
+
add_filter('acfe/form/actions', array($this, 'add_action'));
|
13 |
+
|
14 |
add_action('acfe/form/make/custom', array($this, 'make'), 10, 3);
|
15 |
add_filter('acf/validate_value/name=acfe_form_custom_action', array($this, 'validate_action'), 10, 4);
|
16 |
|
|
|
17 |
add_action('acf/render_field/name=acfe_form_custom_action_advanced_validation', array($this, 'advanced_validation'));
|
18 |
add_action('acf/render_field/name=acfe_form_custom_action_advanced_submit', array($this, 'advanced_submit'));
|
19 |
|
51 |
'custom',
|
52 |
'email',
|
53 |
'post',
|
54 |
+
'redirect',
|
55 |
'term',
|
56 |
+
'user',
|
57 |
);
|
58 |
|
59 |
if(in_array($value, $reserved))
|
62 |
return $valid;
|
63 |
}
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
function advanced_validation($field){
|
66 |
|
67 |
$form_name = 'my_form';
|
70 |
$form_name = get_field('acfe_form_name', $field['value']);
|
71 |
|
72 |
?>You may use the following hooks:<br /><br />
|
73 |
+
<?php acfe_highlight(); ?>
|
74 |
add_action('acfe/form/validation/my-custom-action', 'my_form_custom_action_validation', 10, 3);
|
75 |
+
add_action('acfe/form/validation/my-custom-action/form=<?php echo $form_name; ?>', 'my_form_custom_action_validation', 10, 3);<?php acfe_highlight(); ?>
|
76 |
<br />
|
77 |
+
<?php acfe_highlight(); ?>
|
78 |
/**
|
79 |
* @array $form The form settings
|
80 |
* @int $post_id Current post ID
|
104 |
$post_my_field = get_field('my_field', 145);
|
105 |
$post_my_field_unformatted = get_field('my_field', 145, false);
|
106 |
|
107 |
+
}<?php acfe_highlight(); ?>
|
108 |
+
|
109 |
+
<?php
|
110 |
|
111 |
}
|
112 |
|
118 |
$form_name = get_field('acfe_form_name', $field['value']);
|
119 |
|
120 |
?>You may use the following hooks:<br /><br />
|
121 |
+
<?php acfe_highlight(); ?>
|
122 |
add_action('acfe/form/submit/my-custom-action', 'my_form_custom_action', 10, 2);
|
123 |
+
add_action('acfe/form/submit/my-custom-action/form=<?php echo $form_name; ?>', 'my_form_custom_action', 10, 2);<?php acfe_highlight(); ?>
|
124 |
<br />
|
125 |
+
<?php acfe_highlight(); ?>
|
126 |
/**
|
127 |
* @array $form The form settings
|
128 |
* @int $post_id Current post ID
|
161 |
'user' => 12,
|
162 |
);
|
163 |
|
164 |
+
}<?php acfe_highlight(); ?>
|
165 |
+
|
166 |
+
<?php
|
167 |
|
168 |
}
|
169 |
|
170 |
+
function add_action($layouts){
|
171 |
+
|
172 |
+
$layouts['layout_custom'] = array(
|
173 |
+
'key' => 'layout_custom',
|
174 |
+
'name' => 'custom',
|
175 |
+
'label' => 'Custom action',
|
176 |
+
'display' => 'row',
|
177 |
+
'sub_fields' => array(
|
178 |
+
|
179 |
+
/*
|
180 |
+
* Layout: Custom Action
|
181 |
+
*/
|
182 |
+
array(
|
183 |
+
'key' => 'field_acfe_form_custom_action_tab_action',
|
184 |
+
'label' => 'Action',
|
185 |
+
'name' => '',
|
186 |
+
'type' => 'tab',
|
187 |
+
'instructions' => '',
|
188 |
+
'required' => 0,
|
189 |
+
'conditional_logic' => 0,
|
190 |
+
'wrapper' => array(
|
191 |
+
'width' => '',
|
192 |
+
'class' => '',
|
193 |
+
'id' => '',
|
194 |
+
'data-no-preference' => true,
|
195 |
+
),
|
196 |
+
'acfe_permissions' => '',
|
197 |
+
'placement' => 'top',
|
198 |
+
'endpoint' => 0,
|
199 |
+
),
|
200 |
+
array(
|
201 |
+
'key' => 'field_acfe_form_custom_action',
|
202 |
+
'label' => 'Action name',
|
203 |
+
'name' => 'acfe_form_custom_action',
|
204 |
+
'type' => 'acfe_slug',
|
205 |
+
'instructions' => 'Set a unique action slug',
|
206 |
+
'required' => 1,
|
207 |
+
'conditional_logic' => 0,
|
208 |
+
'wrapper' => array(
|
209 |
+
'width' => '',
|
210 |
+
'class' => '',
|
211 |
+
'id' => '',
|
212 |
+
),
|
213 |
+
'acfe_permissions' => '',
|
214 |
+
'default_value' => '',
|
215 |
+
'placeholder' => 'my-custom-action',
|
216 |
+
'prepend' => '',
|
217 |
+
'append' => '',
|
218 |
+
'maxlength' => '',
|
219 |
+
),
|
220 |
+
|
221 |
+
/*
|
222 |
+
* Layout: Custom Advanced
|
223 |
+
*/
|
224 |
+
array(
|
225 |
+
'key' => 'field_acfe_form_custom_action_tab_advanced',
|
226 |
+
'label' => 'Code',
|
227 |
+
'name' => '',
|
228 |
+
'type' => 'tab',
|
229 |
+
'instructions' => '',
|
230 |
+
'required' => 0,
|
231 |
+
'conditional_logic' => 0,
|
232 |
+
'wrapper' => array(
|
233 |
+
'width' => '',
|
234 |
+
'class' => '',
|
235 |
+
'id' => '',
|
236 |
+
),
|
237 |
+
'acfe_permissions' => '',
|
238 |
+
'placement' => 'top',
|
239 |
+
'endpoint' => 0,
|
240 |
+
),
|
241 |
+
array(
|
242 |
+
'key' => 'field_acfe_form_custom_action_advanced_validation',
|
243 |
+
'label' => 'Add custom validation on submission',
|
244 |
+
'name' => 'acfe_form_custom_action_advanced_validation',
|
245 |
+
'type' => 'acfe_dynamic_message',
|
246 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
247 |
+
'instructions' => '',
|
248 |
+
'required' => 0,
|
249 |
+
'conditional_logic' => 0,
|
250 |
+
'wrapper' => array(
|
251 |
+
'width' => '',
|
252 |
+
'class' => '',
|
253 |
+
'id' => '',
|
254 |
+
),
|
255 |
+
'acfe_permissions' => '',
|
256 |
+
),
|
257 |
+
array(
|
258 |
+
'key' => 'field_acfe_form_custom_action_advanced_submit',
|
259 |
+
'label' => 'Add custom action on submission',
|
260 |
+
'name' => 'acfe_form_custom_action_advanced_submit',
|
261 |
+
'type' => 'acfe_dynamic_message',
|
262 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
263 |
+
'instructions' => '',
|
264 |
+
'required' => 0,
|
265 |
+
'conditional_logic' => 0,
|
266 |
+
'wrapper' => array(
|
267 |
+
'width' => '',
|
268 |
+
'class' => '',
|
269 |
+
'id' => '',
|
270 |
+
),
|
271 |
+
'acfe_permissions' => '',
|
272 |
+
),
|
273 |
+
),
|
274 |
+
'min' => '',
|
275 |
+
'max' => '',
|
276 |
+
);
|
277 |
+
|
278 |
+
return $layouts;
|
279 |
+
|
280 |
+
}
|
281 |
+
|
282 |
}
|
283 |
|
284 |
new acfe_form_custom();
|
@@ -8,6 +8,8 @@ if(!class_exists('acfe_form_email')):
|
|
8 |
class acfe_form_email{
|
9 |
|
10 |
function __construct(){
|
|
|
|
|
11 |
|
12 |
add_action('acfe/form/make/email', array($this, 'make'), 10, 3);
|
13 |
add_action('acfe/form/submit/email', array($this, 'submit'), 10, 3);
|
@@ -227,18 +229,35 @@ class acfe_form_email{
|
|
227 |
// Form name
|
228 |
$form_name = acf_maybe_get($form, 'name');
|
229 |
|
230 |
-
|
231 |
-
$args =
|
232 |
-
$args =
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
|
234 |
-
// Query var
|
235 |
$query_var = acfe_form_unique_action_id($form, 'email');
|
236 |
|
237 |
if(!empty($action))
|
238 |
$query_var = $action;
|
239 |
-
|
240 |
-
// Set Query Var
|
241 |
set_query_var($query_var, $args);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
|
243 |
}
|
244 |
|
@@ -250,21 +269,21 @@ class acfe_form_email{
|
|
250 |
$form_name = get_field('acfe_form_name', $field['value']);
|
251 |
|
252 |
?>You may use the following hooks:<br /><br />
|
253 |
-
|
254 |
add_filter('acfe/form/submit/email_args', 'my_form_email_args', 10, 3);
|
255 |
add_filter('acfe/form/submit/email_args/form=<?php echo $form_name; ?>', 'my_form_email_args', 10, 3);
|
256 |
-
add_filter('acfe/form/submit/email_args/action=my-email-action', 'my_form_email_args', 10, 3)
|
257 |
<br />
|
258 |
-
|
259 |
-
|
260 |
-
* @array $args
|
261 |
-
* @array $form
|
262 |
-
* @string $action
|
263 |
*/
|
264 |
add_filter('acfe/form/submit/email_args/form=<?php echo $form_name; ?>', 'my_form_email_args', 10, 4);
|
265 |
function my_form_email_args($args, $form, $action){
|
266 |
|
267 |
-
|
268 |
* $args = array(
|
269 |
* 'from' => 'email@domain.com',
|
270 |
* 'reply_to' => 'email@domain.com',
|
@@ -286,15 +305,44 @@ function my_form_email_args($args, $form, $action){
|
|
286 |
* )
|
287 |
* );
|
288 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
|
|
|
290 |
|
291 |
-
|
292 |
-
*
|
293 |
-
* Note: Return false will stop e-mail from being sent
|
294 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
return $args;
|
296 |
|
297 |
-
}
|
|
|
|
|
298 |
|
299 |
}
|
300 |
|
@@ -306,27 +354,453 @@ function my_form_email_args($args, $form, $action){
|
|
306 |
$form_name = get_field('acfe_form_name', $field['value']);
|
307 |
|
308 |
?>You may use the following hooks:<br /><br />
|
309 |
-
|
310 |
add_action('acfe/form/submit/email', 'my_form_email_send', 10, 3);
|
311 |
add_action('acfe/form/submit/email/form=<?php echo $form_name; ?>', 'my_form_email_send', 10, 3);
|
312 |
-
add_action('acfe/form/submit/email/action=my-email-action', 'my_form_email_send', 10, 3)
|
313 |
<br />
|
314 |
-
|
315 |
-
|
316 |
-
* @array $args
|
317 |
-
* @array $form
|
318 |
-
* @string $action
|
319 |
*/
|
320 |
add_action('acfe/form/submit/email/form=<?php echo $form_name; ?>', 'my_form_email_send', 10, 3);
|
321 |
function my_form_email_send($args, $form, $action){
|
322 |
-
|
323 |
-
|
324 |
-
* Get the
|
325 |
* This is the value entered by the user during the form submission
|
326 |
*/
|
327 |
$my_field = get_field('my_field');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
|
329 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
330 |
|
331 |
}
|
332 |
|
8 |
class acfe_form_email{
|
9 |
|
10 |
function __construct(){
|
11 |
+
|
12 |
+
add_filter('acfe/form/actions', array($this, 'add_action'));
|
13 |
|
14 |
add_action('acfe/form/make/email', array($this, 'make'), 10, 3);
|
15 |
add_action('acfe/form/submit/email', array($this, 'submit'), 10, 3);
|
229 |
// Form name
|
230 |
$form_name = acf_maybe_get($form, 'name');
|
231 |
|
232 |
+
// Deprecated
|
233 |
+
$args = apply_filters_deprecated("acfe/form/query_var/email", array($args, $form, $action), '0.8.7.5', "acfe/form/output/email");
|
234 |
+
$args = apply_filters_deprecated("acfe/form/query_var/email/form={$form_name}", array($args, $form, $action), '0.8.7.5', "acfe/form/output/email/form={$form_name}");
|
235 |
+
$args = apply_filters_deprecated("acfe/form/query_var/email/action={$action}", array($args, $form, $action), '0.8.7.5', "acfe/form/output/email/action={$action}");
|
236 |
+
|
237 |
+
// Output
|
238 |
+
$args = apply_filters("acfe/form/output/email", $args, $form, $action);
|
239 |
+
$args = apply_filters("acfe/form/output/email/form={$form_name}", $args, $form, $action);
|
240 |
+
$args = apply_filters("acfe/form/output/email/action={$action}", $args, $form, $action);
|
241 |
|
242 |
+
// Old Query var
|
243 |
$query_var = acfe_form_unique_action_id($form, 'email');
|
244 |
|
245 |
if(!empty($action))
|
246 |
$query_var = $action;
|
247 |
+
|
|
|
248 |
set_query_var($query_var, $args);
|
249 |
+
// ------------------------------------------------------------
|
250 |
+
|
251 |
+
// Action Output
|
252 |
+
$actions = get_query_var('acfe_form_actions', array());
|
253 |
+
|
254 |
+
$actions['email'] = $args;
|
255 |
+
|
256 |
+
if(!empty($action))
|
257 |
+
$actions[$action] = $args;
|
258 |
+
|
259 |
+
set_query_var('acfe_form_actions', $actions);
|
260 |
+
// ------------------------------------------------------------
|
261 |
|
262 |
}
|
263 |
|
269 |
$form_name = get_field('acfe_form_name', $field['value']);
|
270 |
|
271 |
?>You may use the following hooks:<br /><br />
|
272 |
+
<?php acfe_highlight(); ?>
|
273 |
add_filter('acfe/form/submit/email_args', 'my_form_email_args', 10, 3);
|
274 |
add_filter('acfe/form/submit/email_args/form=<?php echo $form_name; ?>', 'my_form_email_args', 10, 3);
|
275 |
+
add_filter('acfe/form/submit/email_args/action=my-email-action', 'my_form_email_args', 10, 3);<?php acfe_highlight(); ?>
|
276 |
<br />
|
277 |
+
<?php acfe_highlight(); ?>
|
278 |
+
/*
|
279 |
+
* @array $args The generated email arguments
|
280 |
+
* @array $form The form settings
|
281 |
+
* @string $action The action alias name
|
282 |
*/
|
283 |
add_filter('acfe/form/submit/email_args/form=<?php echo $form_name; ?>', 'my_form_email_args', 10, 4);
|
284 |
function my_form_email_args($args, $form, $action){
|
285 |
|
286 |
+
/*
|
287 |
* $args = array(
|
288 |
* 'from' => 'email@domain.com',
|
289 |
* 'reply_to' => 'email@domain.com',
|
305 |
* )
|
306 |
* );
|
307 |
*/
|
308 |
+
|
309 |
+
/*
|
310 |
+
* Get the form input value named 'my_field'
|
311 |
+
* This is the value entered by the user during the form submission
|
312 |
+
*/
|
313 |
+
$my_field = get_field('my_field');
|
314 |
+
|
315 |
+
if($my_field === 'Company'){
|
316 |
+
|
317 |
+
// Change Recipient
|
318 |
+
$args['to'] = 'new@domain.com';
|
319 |
|
320 |
+
}
|
321 |
|
322 |
+
/*
|
323 |
+
* Get previous Post Action output
|
|
|
324 |
*/
|
325 |
+
$prev_post_action = acfe_form_get_action('post');
|
326 |
+
|
327 |
+
if(!empty($prev_post_action)){
|
328 |
+
|
329 |
+
if($prev_post_action['post_title'] === 'Company'){
|
330 |
+
|
331 |
+
// Change Recipient
|
332 |
+
$args['to'] = 'new@domain.com';
|
333 |
+
|
334 |
+
}
|
335 |
+
|
336 |
+
}
|
337 |
+
|
338 |
+
// Do not send Email
|
339 |
+
// return false;
|
340 |
+
|
341 |
return $args;
|
342 |
|
343 |
+
}<?php acfe_highlight(); ?>
|
344 |
+
|
345 |
+
<?php
|
346 |
|
347 |
}
|
348 |
|
354 |
$form_name = get_field('acfe_form_name', $field['value']);
|
355 |
|
356 |
?>You may use the following hooks:<br /><br />
|
357 |
+
<?php acfe_highlight(); ?>
|
358 |
add_action('acfe/form/submit/email', 'my_form_email_send', 10, 3);
|
359 |
add_action('acfe/form/submit/email/form=<?php echo $form_name; ?>', 'my_form_email_send', 10, 3);
|
360 |
+
add_action('acfe/form/submit/email/action=my-email-action', 'my_form_email_send', 10, 3);<?php acfe_highlight(); ?>
|
361 |
<br />
|
362 |
+
<?php acfe_highlight(); ?>
|
363 |
+
/*
|
364 |
+
* @array $args The generated email arguments
|
365 |
+
* @array $form The form settings
|
366 |
+
* @string $action The action alias name
|
367 |
*/
|
368 |
add_action('acfe/form/submit/email/form=<?php echo $form_name; ?>', 'my_form_email_send', 10, 3);
|
369 |
function my_form_email_send($args, $form, $action){
|
370 |
+
|
371 |
+
/*
|
372 |
+
* Get the form input value named 'my_field'
|
373 |
* This is the value entered by the user during the form submission
|
374 |
*/
|
375 |
$my_field = get_field('my_field');
|
376 |
+
|
377 |
+
if($my_field === 'Company'){
|
378 |
+
|
379 |
+
// do_something();
|
380 |
+
|
381 |
+
}
|
382 |
+
|
383 |
+
/*
|
384 |
+
* Get previous Post Action output
|
385 |
+
*/
|
386 |
+
$prev_post_action = acfe_form_get_action('post');
|
387 |
+
|
388 |
+
if(!empty($prev_post_action)){
|
389 |
+
|
390 |
+
if($prev_post_action['post_title'] === 'Company'){
|
391 |
+
|
392 |
+
// do_something();
|
393 |
+
|
394 |
+
}
|
395 |
+
|
396 |
+
}
|
397 |
|
398 |
+
}<?php acfe_highlight(); ?>
|
399 |
+
|
400 |
+
<?php
|
401 |
+
|
402 |
+
}
|
403 |
+
|
404 |
+
function add_action($layouts){
|
405 |
+
|
406 |
+
$layouts['layout_email'] = array(
|
407 |
+
'key' => 'layout_email',
|
408 |
+
'name' => 'email',
|
409 |
+
'label' => 'Email action',
|
410 |
+
'display' => 'row',
|
411 |
+
'sub_fields' => array(
|
412 |
+
|
413 |
+
/*
|
414 |
+
* Layout: Email Action
|
415 |
+
*/
|
416 |
+
array(
|
417 |
+
'key' => 'field_acfe_form_email_tab_action',
|
418 |
+
'label' => 'Action',
|
419 |
+
'name' => '',
|
420 |
+
'type' => 'tab',
|
421 |
+
'instructions' => '',
|
422 |
+
'required' => 0,
|
423 |
+
'conditional_logic' => 0,
|
424 |
+
'wrapper' => array(
|
425 |
+
'width' => '',
|
426 |
+
'class' => '',
|
427 |
+
'id' => '',
|
428 |
+
'data-no-preference' => true,
|
429 |
+
),
|
430 |
+
'acfe_permissions' => '',
|
431 |
+
'placement' => 'top',
|
432 |
+
'endpoint' => 0,
|
433 |
+
),
|
434 |
+
array(
|
435 |
+
'key' => 'field_acfe_form_email_custom_alias',
|
436 |
+
'label' => 'Action name',
|
437 |
+
'name' => 'acfe_form_custom_alias',
|
438 |
+
'type' => 'acfe_slug',
|
439 |
+
'instructions' => '(Optional) Target this action using hooks.',
|
440 |
+
'required' => 0,
|
441 |
+
'conditional_logic' => 0,
|
442 |
+
'wrapper' => array(
|
443 |
+
'width' => '',
|
444 |
+
'class' => '',
|
445 |
+
'id' => '',
|
446 |
+
'data-instruction-placement' => 'field'
|
447 |
+
),
|
448 |
+
'acfe_permissions' => '',
|
449 |
+
'default_value' => '',
|
450 |
+
'placeholder' => 'Email',
|
451 |
+
'prepend' => '',
|
452 |
+
'append' => '',
|
453 |
+
'maxlength' => '',
|
454 |
+
),
|
455 |
+
|
456 |
+
/*
|
457 |
+
* Layout: Email Send
|
458 |
+
*/
|
459 |
+
array(
|
460 |
+
'key' => 'field_acfe_form_email_tab_email',
|
461 |
+
'label' => 'Email',
|
462 |
+
'name' => '',
|
463 |
+
'type' => 'tab',
|
464 |
+
'instructions' => '',
|
465 |
+
'required' => 0,
|
466 |
+
'conditional_logic' => 0,
|
467 |
+
'wrapper' => array(
|
468 |
+
'width' => '',
|
469 |
+
'class' => '',
|
470 |
+
'id' => '',
|
471 |
+
),
|
472 |
+
'acfe_permissions' => '',
|
473 |
+
'placement' => 'top',
|
474 |
+
'endpoint' => 0,
|
475 |
+
),
|
476 |
+
array(
|
477 |
+
'key' => 'field_acfe_form_email_from',
|
478 |
+
'label' => 'From',
|
479 |
+
'name' => 'acfe_form_email_from',
|
480 |
+
'type' => 'text',
|
481 |
+
'instructions' => '',
|
482 |
+
'required' => 0,
|
483 |
+
'conditional_logic' => 0,
|
484 |
+
'wrapper' => array(
|
485 |
+
'width' => '',
|
486 |
+
'class' => '',
|
487 |
+
'id' => '',
|
488 |
+
),
|
489 |
+
'acfe_permissions' => '',
|
490 |
+
'default_value' => '',
|
491 |
+
'placeholder' => 'Name <email@domain.com>',
|
492 |
+
'prepend' => '',
|
493 |
+
'append' => '',
|
494 |
+
'maxlength' => '',
|
495 |
+
),
|
496 |
+
array(
|
497 |
+
'key' => 'field_acfe_form_email_to',
|
498 |
+
'label' => 'To',
|
499 |
+
'name' => 'acfe_form_email_to',
|
500 |
+
'type' => 'text',
|
501 |
+
'instructions' => '',
|
502 |
+
'required' => 0,
|
503 |
+
'conditional_logic' => 0,
|
504 |
+
'wrapper' => array(
|
505 |
+
'width' => '',
|
506 |
+
'class' => '',
|
507 |
+
'id' => '',
|
508 |
+
),
|
509 |
+
'acfe_permissions' => '',
|
510 |
+
'default_value' => '',
|
511 |
+
'placeholder' => 'email@domain.com',
|
512 |
+
'prepend' => '',
|
513 |
+
'append' => '',
|
514 |
+
),
|
515 |
+
array(
|
516 |
+
'key' => 'field_acfe_form_email_reply_to',
|
517 |
+
'label' => 'Reply to',
|
518 |
+
'name' => 'acfe_form_email_reply_to',
|
519 |
+
'type' => 'text',
|
520 |
+
'instructions' => '',
|
521 |
+
'required' => 0,
|
522 |
+
'conditional_logic' => 0,
|
523 |
+
'wrapper' => array(
|
524 |
+
'width' => '',
|
525 |
+
'class' => '',
|
526 |
+
'id' => '',
|
527 |
+
),
|
528 |
+
'acfe_permissions' => '',
|
529 |
+
'default_value' => '',
|
530 |
+
'placeholder' => 'Name <email@domain.com>',
|
531 |
+
'prepend' => '',
|
532 |
+
'append' => '',
|
533 |
+
'maxlength' => '',
|
534 |
+
),
|
535 |
+
array(
|
536 |
+
'key' => 'field_acfe_form_email_cc',
|
537 |
+
'label' => 'Cc',
|
538 |
+
'name' => 'acfe_form_email_cc',
|
539 |
+
'type' => 'text',
|
540 |
+
'instructions' => '',
|
541 |
+
'required' => 0,
|
542 |
+
'conditional_logic' => 0,
|
543 |
+
'wrapper' => array(
|
544 |
+
'width' => '',
|
545 |
+
'class' => '',
|
546 |
+
'id' => '',
|
547 |
+
),
|
548 |
+
'acfe_permissions' => '',
|
549 |
+
'default_value' => '',
|
550 |
+
'placeholder' => 'email@domain.com',
|
551 |
+
'prepend' => '',
|
552 |
+
'append' => '',
|
553 |
+
'maxlength' => '',
|
554 |
+
),
|
555 |
+
array(
|
556 |
+
'key' => 'field_acfe_form_email_bcc',
|
557 |
+
'label' => 'Bcc',
|
558 |
+
'name' => 'acfe_form_email_bcc',
|
559 |
+
'type' => 'text',
|
560 |
+
'instructions' => '',
|
561 |
+
'required' => 0,
|
562 |
+
'conditional_logic' => 0,
|
563 |
+
'wrapper' => array(
|
564 |
+
'width' => '',
|
565 |
+
'class' => '',
|
566 |
+
'id' => '',
|
567 |
+
),
|
568 |
+
'acfe_permissions' => '',
|
569 |
+
'default_value' => '',
|
570 |
+
'placeholder' => 'email@domain.com',
|
571 |
+
'prepend' => '',
|
572 |
+
'append' => '',
|
573 |
+
'maxlength' => '',
|
574 |
+
),
|
575 |
+
array(
|
576 |
+
'key' => 'field_acfe_form_email_subject',
|
577 |
+
'label' => 'Subject',
|
578 |
+
'name' => 'acfe_form_email_subject',
|
579 |
+
'type' => 'text',
|
580 |
+
'instructions' => '',
|
581 |
+
'required' => 0,
|
582 |
+
'conditional_logic' => 0,
|
583 |
+
'wrapper' => array(
|
584 |
+
'width' => '',
|
585 |
+
'class' => '',
|
586 |
+
'id' => '',
|
587 |
+
),
|
588 |
+
'acfe_permissions' => '',
|
589 |
+
'default_value' => '',
|
590 |
+
'placeholder' => '',
|
591 |
+
'prepend' => '',
|
592 |
+
'append' => '',
|
593 |
+
'maxlength' => '',
|
594 |
+
),
|
595 |
+
array(
|
596 |
+
'key' => 'field_acfe_form_email_content',
|
597 |
+
'label' => 'Content',
|
598 |
+
'name' => 'acfe_form_email_content',
|
599 |
+
'type' => 'wysiwyg',
|
600 |
+
'instructions' => 'Fields values may be included using <code>{field:field_key}</code> <code>{field:title}</code>. All fields may be included using <code>{fields}</code>.<br />See "Cheatsheet" tab for advanced usage.',
|
601 |
+
'required' => 0,
|
602 |
+
'conditional_logic' => 0,
|
603 |
+
'wrapper' => array(
|
604 |
+
'width' => '',
|
605 |
+
'class' => '',
|
606 |
+
'id' => '',
|
607 |
+
'data-instruction-placement' => 'field'
|
608 |
+
),
|
609 |
+
'acfe_permissions' => '',
|
610 |
+
'default_value' => '',
|
611 |
+
'tabs' => 'all',
|
612 |
+
'toolbar' => 'full',
|
613 |
+
'media_upload' => 1,
|
614 |
+
'delay' => 0,
|
615 |
+
),
|
616 |
+
|
617 |
+
/*
|
618 |
+
* Layout: Email Attachments
|
619 |
+
*/
|
620 |
+
array(
|
621 |
+
'key' => 'field_acfe_form_email_tab_attachments',
|
622 |
+
'label' => 'Attachments',
|
623 |
+
'name' => '',
|
624 |
+
'type' => 'tab',
|
625 |
+
'instructions' => '',
|
626 |
+
'required' => 0,
|
627 |
+
'conditional_logic' => 0,
|
628 |
+
'wrapper' => array(
|
629 |
+
'width' => '',
|
630 |
+
'class' => '',
|
631 |
+
'id' => '',
|
632 |
+
),
|
633 |
+
'acfe_permissions' => '',
|
634 |
+
'placement' => 'top',
|
635 |
+
'endpoint' => 0,
|
636 |
+
),
|
637 |
+
array(
|
638 |
+
'key' => 'field_acfe_form_email_files',
|
639 |
+
'label' => 'Dynamic files',
|
640 |
+
'name' => 'acfe_form_email_files',
|
641 |
+
'type' => 'repeater',
|
642 |
+
'instructions' => '',
|
643 |
+
'required' => 0,
|
644 |
+
'conditional_logic' => 0,
|
645 |
+
'wrapper' => array(
|
646 |
+
'width' => '',
|
647 |
+
'class' => '',
|
648 |
+
'id' => '',
|
649 |
+
),
|
650 |
+
'acfe_permissions' => '',
|
651 |
+
'acfe_repeater_stylised_button' => 0,
|
652 |
+
'collapsed' => '',
|
653 |
+
'min' => 0,
|
654 |
+
'max' => 0,
|
655 |
+
'layout' => 'table',
|
656 |
+
'button_label' => 'Add file',
|
657 |
+
'sub_fields' => array(
|
658 |
+
array(
|
659 |
+
'key' => 'field_acfe_form_email_file',
|
660 |
+
'label' => 'File',
|
661 |
+
'name' => 'acfe_form_email_file',
|
662 |
+
'type' => 'select',
|
663 |
+
'instructions' => '',
|
664 |
+
'required' => 0,
|
665 |
+
'conditional_logic' => 0,
|
666 |
+
'wrapper' => array(
|
667 |
+
'width' => '',
|
668 |
+
'class' => '',
|
669 |
+
'id' => '',
|
670 |
+
),
|
671 |
+
'acfe_permissions' => '',
|
672 |
+
'choices' => array(
|
673 |
+
),
|
674 |
+
'default_value' => array(
|
675 |
+
),
|
676 |
+
'allow_null' => 0,
|
677 |
+
'multiple' => 0,
|
678 |
+
'ui' => 1,
|
679 |
+
'return_format' => 'value',
|
680 |
+
'ajax' => 0,
|
681 |
+
'placeholder' => '',
|
682 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
683 |
+
'allow_custom' => 1,
|
684 |
+
),
|
685 |
+
array(
|
686 |
+
'key' => 'field_acfe_form_email_file_delete',
|
687 |
+
'label' => 'Delete file',
|
688 |
+
'name' => 'acfe_form_email_file_delete',
|
689 |
+
'type' => 'true_false',
|
690 |
+
'instructions' => '',
|
691 |
+
'required' => 0,
|
692 |
+
'wrapper' => array(
|
693 |
+
'width' => '',
|
694 |
+
'class' => '',
|
695 |
+
'id' => '',
|
696 |
+
),
|
697 |
+
'acfe_permissions' => '',
|
698 |
+
'message' => 'Delete once submitted',
|
699 |
+
'default_value' => 0,
|
700 |
+
'ui' => 1,
|
701 |
+
'ui_on_text' => '',
|
702 |
+
'ui_off_text' => '',
|
703 |
+
),
|
704 |
+
),
|
705 |
+
),
|
706 |
+
array(
|
707 |
+
'key' => 'field_acfe_form_email_files_static',
|
708 |
+
'label' => 'Static files',
|
709 |
+
'name' => 'acfe_form_email_files_static',
|
710 |
+
'type' => 'repeater',
|
711 |
+
'instructions' => '',
|
712 |
+
'required' => 0,
|
713 |
+
'conditional_logic' => 0,
|
714 |
+
'wrapper' => array(
|
715 |
+
'width' => '',
|
716 |
+
'class' => '',
|
717 |
+
'id' => '',
|
718 |
+
),
|
719 |
+
'acfe_permissions' => '',
|
720 |
+
'acfe_repeater_stylised_button' => 0,
|
721 |
+
'collapsed' => '',
|
722 |
+
'min' => 0,
|
723 |
+
'max' => 0,
|
724 |
+
'layout' => 'table',
|
725 |
+
'button_label' => 'Add file',
|
726 |
+
'sub_fields' => array(
|
727 |
+
array(
|
728 |
+
'key' => 'field_acfe_form_email_file_static',
|
729 |
+
'label' => 'File',
|
730 |
+
'name' => 'acfe_form_email_file_static',
|
731 |
+
'type' => 'file',
|
732 |
+
'instructions' => '',
|
733 |
+
'required' => 0,
|
734 |
+
'conditional_logic' => 0,
|
735 |
+
'wrapper' => array(
|
736 |
+
'width' => '',
|
737 |
+
'class' => '',
|
738 |
+
'id' => '',
|
739 |
+
),
|
740 |
+
'acfe_permissions' => '',
|
741 |
+
'return_format' => 'id',
|
742 |
+
),
|
743 |
+
),
|
744 |
+
),
|
745 |
+
|
746 |
+
/*
|
747 |
+
* Layout: Email Advanced
|
748 |
+
*/
|
749 |
+
array(
|
750 |
+
'key' => 'field_acfe_form_email_tab_advanced',
|
751 |
+
'label' => 'Code',
|
752 |
+
'name' => '',
|
753 |
+
'type' => 'tab',
|
754 |
+
'instructions' => '',
|
755 |
+
'required' => 0,
|
756 |
+
'conditional_logic' => 0,
|
757 |
+
'wrapper' => array(
|
758 |
+
'width' => '',
|
759 |
+
'class' => '',
|
760 |
+
'id' => '',
|
761 |
+
),
|
762 |
+
'acfe_permissions' => '',
|
763 |
+
'placement' => 'top',
|
764 |
+
'endpoint' => 0,
|
765 |
+
),
|
766 |
+
array(
|
767 |
+
'key' => 'field_acfe_form_email_advanced_args',
|
768 |
+
'label' => 'Change email arguments',
|
769 |
+
'name' => 'acfe_form_email_advanced_args',
|
770 |
+
'type' => 'acfe_dynamic_message',
|
771 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
772 |
+
'instructions' => 'Alter the <code>wp_mail()</code> arguments before it is sent',
|
773 |
+
'required' => 0,
|
774 |
+
'conditional_logic' => 0,
|
775 |
+
'wrapper' => array(
|
776 |
+
'width' => '',
|
777 |
+
'class' => '',
|
778 |
+
'id' => '',
|
779 |
+
),
|
780 |
+
'acfe_permissions' => '',
|
781 |
+
),
|
782 |
+
array(
|
783 |
+
'key' => 'field_acfe_form_email_advanced_send',
|
784 |
+
'label' => 'Add custom action when e-mail is sent',
|
785 |
+
'name' => 'form_email_advanced_send',
|
786 |
+
'type' => 'acfe_dynamic_message',
|
787 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
788 |
+
'instructions' => 'This action allows you to hook in after the e-mail has been sent',
|
789 |
+
'required' => 0,
|
790 |
+
'conditional_logic' => 0,
|
791 |
+
'wrapper' => array(
|
792 |
+
'width' => '',
|
793 |
+
'class' => '',
|
794 |
+
'id' => '',
|
795 |
+
),
|
796 |
+
'acfe_permissions' => '',
|
797 |
+
),
|
798 |
+
),
|
799 |
+
'min' => '',
|
800 |
+
'max' => '',
|
801 |
+
);
|
802 |
+
|
803 |
+
return $layouts;
|
804 |
|
805 |
}
|
806 |
|
@@ -8,6 +8,8 @@ if(!class_exists('acfe_form_post')):
|
|
8 |
class acfe_form_post{
|
9 |
|
10 |
function __construct(){
|
|
|
|
|
11 |
|
12 |
/*
|
13 |
* Form
|
@@ -475,8 +477,18 @@ class acfe_form_post{
|
|
475 |
$args = apply_filters('acfe/form/submit/post_args/action=' . $action, $args, $post_action, $form, $action);
|
476 |
|
477 |
// Bail early if false
|
478 |
-
if($args === false)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
479 |
return;
|
|
|
|
|
480 |
|
481 |
// Post terms pre-process (let post update first, for post type)
|
482 |
$terms = array();
|
@@ -613,19 +625,36 @@ class acfe_form_post{
|
|
613 |
$post_object['post_author_data'] = $user_array;
|
614 |
|
615 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
616 |
|
617 |
-
|
618 |
-
$post_object = apply_filters('acfe/form/query_var/post/form=' . $form_name, $post_object, $_post_id, $post_action, $args, $form, $action);
|
619 |
-
$post_object = apply_filters('acfe/form/query_var/post/action=' . $action, $post_object, $_post_id, $post_action, $args, $form, $action);
|
620 |
-
|
621 |
-
// Query var
|
622 |
$query_var = acfe_form_unique_action_id($form, 'post');
|
623 |
|
624 |
if(!empty($action))
|
625 |
$query_var = $action;
|
626 |
-
|
627 |
-
// Set Query Var
|
628 |
set_query_var($query_var, $post_object);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
629 |
|
630 |
// Meta save
|
631 |
$save_meta = get_sub_field('acfe_form_post_save_meta');
|
@@ -730,32 +759,35 @@ class acfe_form_post{
|
|
730 |
$form_name = get_field('acfe_form_name', $field['value']);
|
731 |
|
732 |
?>You may use the following hooks:<br /><br />
|
733 |
-
|
734 |
add_filter('acfe/form/load/post_id', 'my_form_post_values_source', 10, 3);
|
735 |
add_filter('acfe/form/load/post_id/form=<?php echo $form_name; ?>', 'my_form_post_values_source', 10, 3);
|
736 |
-
add_filter('acfe/form/load/post_id/action=my-post-action', 'my_form_post_values_source', 10, 3)
|
737 |
<br />
|
738 |
-
|
739 |
-
|
740 |
-
* @int $post_id
|
741 |
-
* @array $form
|
742 |
-
* @string $action
|
743 |
*/
|
744 |
add_filter('acfe/form/load/post_id/form=<?php echo $form_name; ?>', 'my_form_post_values_source', 10, 3);
|
745 |
function my_form_post_values_source($post_id, $form, $action){
|
746 |
|
747 |
-
|
748 |
-
*
|
749 |
*/
|
750 |
-
$
|
751 |
-
|
|
|
|
|
|
|
|
|
752 |
|
753 |
-
/**
|
754 |
-
* Return
|
755 |
-
*/
|
756 |
return $post_id;
|
757 |
|
758 |
-
}
|
|
|
|
|
759 |
|
760 |
}
|
761 |
|
@@ -768,51 +800,65 @@ function my_form_post_values_source($post_id, $form, $action){
|
|
768 |
$form_name = get_field('acfe_form_name', $field['value']);
|
769 |
|
770 |
?>You may use the following hooks:<br /><br />
|
771 |
-
|
772 |
add_filter('acfe/form/submit/post_args', 'my_form_post_args', 10, 4);
|
773 |
add_filter('acfe/form/submit/post_args/form=<?php echo $form_name; ?>', 'my_form_post_args', 10, 4);
|
774 |
-
add_filter('acfe/form/submit/post_args/action=my-post-action', 'my_form_post_args', 10, 4)
|
775 |
<br />
|
776 |
-
|
777 |
-
|
778 |
-
* @array $args
|
779 |
-
* @string $type
|
780 |
-
* @array $form
|
781 |
-
* @string $action
|
782 |
*/
|
783 |
add_filter('acfe/form/submit/post_args/form=<?php echo $form_name; ?>', 'my_form_post_args', 10, 4);
|
784 |
function my_form_post_args($args, $type, $form, $action){
|
785 |
|
786 |
-
|
787 |
-
* Force specific post title if the action type is 'insert_post'
|
788 |
-
*/
|
789 |
if($type === 'insert_post'){
|
790 |
|
791 |
$args['post_title'] = 'My title';
|
792 |
|
793 |
}
|
794 |
-
|
795 |
-
|
796 |
-
/**
|
797 |
* Get the form input value named 'my_field'
|
798 |
* This is the value entered by the user during the form submission
|
799 |
*/
|
800 |
$my_field = get_field('my_field');
|
|
|
|
|
801 |
|
|
|
|
|
802 |
|
803 |
-
|
804 |
-
|
|
|
|
|
805 |
*/
|
806 |
-
$
|
807 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
808 |
|
809 |
-
/**
|
810 |
-
* Return arguments
|
811 |
-
* Note: Return false will stop post & meta insert/update
|
812 |
-
*/
|
813 |
return $args;
|
814 |
|
815 |
-
}
|
|
|
|
|
816 |
|
817 |
}
|
818 |
|
@@ -824,37 +870,1183 @@ function my_form_post_args($args, $type, $form, $action){
|
|
824 |
$form_name = get_field('acfe_form_name', $field['value']);
|
825 |
|
826 |
?>You may use the following hooks:<br /><br />
|
827 |
-
|
828 |
add_action('acfe/form/submit/post', 'my_form_post_save', 10, 5);
|
829 |
add_action('acfe/form/submit/post/form=<?php echo $form_name; ?>', 'my_form_post_save', 10, 5);
|
830 |
-
add_action('acfe/form/submit/post/action=my-post-action', 'my_form_post_save', 10, 5)
|
831 |
<br />
|
832 |
-
|
833 |
-
|
834 |
-
* @int $post_id
|
835 |
-
* @string $type
|
836 |
-
* @array $args
|
837 |
-
* @array $form
|
838 |
-
* @string $action
|
839 |
*
|
840 |
* Note: At this point the post & meta fields are already saved in the database
|
841 |
*/
|
842 |
add_action('acfe/form/submit/post/form=<?php echo $form_name; ?>', 'my_form_post_save', 10, 5);
|
843 |
function my_form_post_save($post_id, $type, $args, $form, $action){
|
844 |
-
|
845 |
-
|
846 |
-
* Get the
|
847 |
* This is the value entered by the user during the form submission
|
848 |
*/
|
849 |
$my_field = get_field('my_field');
|
|
|
|
|
850 |
|
851 |
-
|
852 |
-
|
853 |
-
|
|
|
|
|
|
|
854 |
*/
|
855 |
-
$
|
856 |
|
857 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
858 |
|
859 |
}
|
860 |
|
8 |
class acfe_form_post{
|
9 |
|
10 |
function __construct(){
|
11 |
+
|
12 |
+
add_filter('acfe/form/actions', array($this, 'add_action'));
|
13 |
|
14 |
/*
|
15 |
* Form
|
477 |
$args = apply_filters('acfe/form/submit/post_args/action=' . $action, $args, $post_action, $form, $action);
|
478 |
|
479 |
// Bail early if false
|
480 |
+
if($args === false){
|
481 |
+
|
482 |
+
// Delete draft post
|
483 |
+
if($post_action === 'insert_post'){
|
484 |
+
|
485 |
+
wp_delete_post($_post_id, true);
|
486 |
+
|
487 |
+
}
|
488 |
+
|
489 |
return;
|
490 |
+
|
491 |
+
}
|
492 |
|
493 |
// Post terms pre-process (let post update first, for post type)
|
494 |
$terms = array();
|
625 |
$post_object['post_author_data'] = $user_array;
|
626 |
|
627 |
}
|
628 |
+
|
629 |
+
// Deprecated
|
630 |
+
$post_object = apply_filters_deprecated("acfe/form/query_var/post", array($post_object, $_post_id, $post_action, $args, $form, $action), '0.8.7.5', "acfe/form/output/post");
|
631 |
+
$post_object = apply_filters_deprecated("acfe/form/query_var/post/form={$form_name}", array($post_object, $_post_id, $post_action, $args, $form, $action), '0.8.7.5', "acfe/form/output/post/form={$form_name}");
|
632 |
+
$post_object = apply_filters_deprecated("acfe/form/query_var/post/action={$action}", array($post_object, $_post_id, $post_action, $args, $form, $action), '0.8.7.5', "acfe/form/output/post/action={$action}");
|
633 |
+
|
634 |
+
// Output
|
635 |
+
$post_object = apply_filters("acfe/form/output/post", $post_object, $_post_id, $post_action, $args, $form, $action);
|
636 |
+
$post_object = apply_filters("acfe/form/output/post/form={$form_name}", $post_object, $_post_id, $post_action, $args, $form, $action);
|
637 |
+
$post_object = apply_filters("acfe/form/output/post/action={$action}", $post_object, $_post_id, $post_action, $args, $form, $action);
|
638 |
|
639 |
+
// Old Query var
|
|
|
|
|
|
|
|
|
640 |
$query_var = acfe_form_unique_action_id($form, 'post');
|
641 |
|
642 |
if(!empty($action))
|
643 |
$query_var = $action;
|
644 |
+
|
|
|
645 |
set_query_var($query_var, $post_object);
|
646 |
+
// ------------------------------------------------------------
|
647 |
+
|
648 |
+
// Action Output
|
649 |
+
$actions = get_query_var('acfe_form_actions', array());
|
650 |
+
|
651 |
+
$actions['post'] = $post_object;
|
652 |
+
|
653 |
+
if(!empty($action))
|
654 |
+
$actions[$action] = $post_object;
|
655 |
+
|
656 |
+
set_query_var('acfe_form_actions', $actions);
|
657 |
+
// ------------------------------------------------------------
|
658 |
|
659 |
// Meta save
|
660 |
$save_meta = get_sub_field('acfe_form_post_save_meta');
|
759 |
$form_name = get_field('acfe_form_name', $field['value']);
|
760 |
|
761 |
?>You may use the following hooks:<br /><br />
|
762 |
+
<?php acfe_highlight(); ?>
|
763 |
add_filter('acfe/form/load/post_id', 'my_form_post_values_source', 10, 3);
|
764 |
add_filter('acfe/form/load/post_id/form=<?php echo $form_name; ?>', 'my_form_post_values_source', 10, 3);
|
765 |
+
add_filter('acfe/form/load/post_id/action=my-post-action', 'my_form_post_values_source', 10, 3);<?php acfe_highlight(); ?>
|
766 |
<br />
|
767 |
+
<?php acfe_highlight(); ?>
|
768 |
+
/*
|
769 |
+
* @int $post_id Post ID used as source
|
770 |
+
* @array $form The form settings
|
771 |
+
* @string $action The action alias name
|
772 |
*/
|
773 |
add_filter('acfe/form/load/post_id/form=<?php echo $form_name; ?>', 'my_form_post_values_source', 10, 3);
|
774 |
function my_form_post_values_source($post_id, $form, $action){
|
775 |
|
776 |
+
/*
|
777 |
+
* Retrieve Form Setting
|
778 |
*/
|
779 |
+
if($form['custom_key'] === 'custom_value'){
|
780 |
+
|
781 |
+
// Force to load values from the Post ID 145
|
782 |
+
$post_id = 145;
|
783 |
+
|
784 |
+
}
|
785 |
|
|
|
|
|
|
|
786 |
return $post_id;
|
787 |
|
788 |
+
}<?php acfe_highlight(); ?>
|
789 |
+
|
790 |
+
<?php
|
791 |
|
792 |
}
|
793 |
|
800 |
$form_name = get_field('acfe_form_name', $field['value']);
|
801 |
|
802 |
?>You may use the following hooks:<br /><br />
|
803 |
+
<?php acfe_highlight(); ?>
|
804 |
add_filter('acfe/form/submit/post_args', 'my_form_post_args', 10, 4);
|
805 |
add_filter('acfe/form/submit/post_args/form=<?php echo $form_name; ?>', 'my_form_post_args', 10, 4);
|
806 |
+
add_filter('acfe/form/submit/post_args/action=my-post-action', 'my_form_post_args', 10, 4);<?php acfe_highlight(); ?>
|
807 |
<br />
|
808 |
+
<?php acfe_highlight(); ?>
|
809 |
+
/*
|
810 |
+
* @array $args The generated post arguments
|
811 |
+
* @string $type Action type: 'insert_post' or 'update_post'
|
812 |
+
* @array $form The form settings
|
813 |
+
* @string $action The action alias name
|
814 |
*/
|
815 |
add_filter('acfe/form/submit/post_args/form=<?php echo $form_name; ?>', 'my_form_post_args', 10, 4);
|
816 |
function my_form_post_args($args, $type, $form, $action){
|
817 |
|
818 |
+
// Change Post Title if the Action Type is 'insert_post'
|
|
|
|
|
819 |
if($type === 'insert_post'){
|
820 |
|
821 |
$args['post_title'] = 'My title';
|
822 |
|
823 |
}
|
824 |
+
|
825 |
+
/*
|
|
|
826 |
* Get the form input value named 'my_field'
|
827 |
* This is the value entered by the user during the form submission
|
828 |
*/
|
829 |
$my_field = get_field('my_field');
|
830 |
+
|
831 |
+
if($my_field === 'Company'){
|
832 |
|
833 |
+
// Change Post Title
|
834 |
+
$args['post_title'] = 'Company';
|
835 |
|
836 |
+
}
|
837 |
+
|
838 |
+
/*
|
839 |
+
* Get previous Post Action output
|
840 |
*/
|
841 |
+
$prev_post_action = acfe_form_get_action('post');
|
842 |
|
843 |
+
if(!empty($prev_post_action)){
|
844 |
+
|
845 |
+
if($prev_post_action['post_title'] === 'Company'){
|
846 |
+
|
847 |
+
// Change Post Title
|
848 |
+
$args['post_title'] = 'Company';
|
849 |
+
|
850 |
+
}
|
851 |
+
|
852 |
+
}
|
853 |
+
|
854 |
+
// Do not save the Post
|
855 |
+
// return false;
|
856 |
|
|
|
|
|
|
|
|
|
857 |
return $args;
|
858 |
|
859 |
+
}<?php acfe_highlight(); ?>
|
860 |
+
|
861 |
+
<?php
|
862 |
|
863 |
}
|
864 |
|
870 |
$form_name = get_field('acfe_form_name', $field['value']);
|
871 |
|
872 |
?>You may use the following hooks:<br /><br />
|
873 |
+
<?php acfe_highlight(); ?>
|
874 |
add_action('acfe/form/submit/post', 'my_form_post_save', 10, 5);
|
875 |
add_action('acfe/form/submit/post/form=<?php echo $form_name; ?>', 'my_form_post_save', 10, 5);
|
876 |
+
add_action('acfe/form/submit/post/action=my-post-action', 'my_form_post_save', 10, 5);<?php acfe_highlight(); ?>
|
877 |
<br />
|
878 |
+
<?php acfe_highlight(); ?>
|
879 |
+
/*
|
880 |
+
* @int $post_id The targeted post ID
|
881 |
+
* @string $type Action type: 'insert_post' or 'update_post'
|
882 |
+
* @array $args The generated post arguments
|
883 |
+
* @array $form The form settings
|
884 |
+
* @string $action The action alias name
|
885 |
*
|
886 |
* Note: At this point the post & meta fields are already saved in the database
|
887 |
*/
|
888 |
add_action('acfe/form/submit/post/form=<?php echo $form_name; ?>', 'my_form_post_save', 10, 5);
|
889 |
function my_form_post_save($post_id, $type, $args, $form, $action){
|
890 |
+
|
891 |
+
/*
|
892 |
+
* Get the form input value named 'my_field'
|
893 |
* This is the value entered by the user during the form submission
|
894 |
*/
|
895 |
$my_field = get_field('my_field');
|
896 |
+
|
897 |
+
if($my_field === 'Company'){
|
898 |
|
899 |
+
// do_something();
|
900 |
+
|
901 |
+
}
|
902 |
+
|
903 |
+
/*
|
904 |
+
* Get previous Post Action output
|
905 |
*/
|
906 |
+
$prev_post_action = acfe_form_get_action('post');
|
907 |
|
908 |
+
if(!empty($prev_post_action)){
|
909 |
+
|
910 |
+
if($prev_post_action['post_title'] === 'Company'){
|
911 |
+
|
912 |
+
// do_something();
|
913 |
+
|
914 |
+
}
|
915 |
+
|
916 |
+
}
|
917 |
+
|
918 |
+
}<?php acfe_highlight(); ?>
|
919 |
+
|
920 |
+
<?php
|
921 |
+
|
922 |
+
}
|
923 |
+
|
924 |
+
function add_action($layouts){
|
925 |
+
|
926 |
+
$layouts['layout_post'] = array(
|
927 |
+
'key' => 'layout_post',
|
928 |
+
'name' => 'post',
|
929 |
+
'label' => 'Post action',
|
930 |
+
'display' => 'row',
|
931 |
+
'sub_fields' => array(
|
932 |
+
|
933 |
+
/*
|
934 |
+
* Layout: Post Action
|
935 |
+
*/
|
936 |
+
array(
|
937 |
+
'key' => 'field_acfe_form_post_tab_action',
|
938 |
+
'label' => 'Action',
|
939 |
+
'name' => '',
|
940 |
+
'type' => 'tab',
|
941 |
+
'instructions' => '',
|
942 |
+
'required' => 0,
|
943 |
+
'conditional_logic' => 0,
|
944 |
+
'wrapper' => array(
|
945 |
+
'width' => '',
|
946 |
+
'class' => '',
|
947 |
+
'id' => '',
|
948 |
+
'data-no-preference' => true,
|
949 |
+
),
|
950 |
+
'acfe_permissions' => '',
|
951 |
+
'placement' => 'top',
|
952 |
+
'endpoint' => 0,
|
953 |
+
),
|
954 |
+
array(
|
955 |
+
'key' => 'field_acfe_form_post_action',
|
956 |
+
'label' => 'Action',
|
957 |
+
'name' => 'acfe_form_post_action',
|
958 |
+
'type' => 'radio',
|
959 |
+
'instructions' => '',
|
960 |
+
'required' => 0,
|
961 |
+
'conditional_logic' => 0,
|
962 |
+
'wrapper' => array(
|
963 |
+
'width' => '',
|
964 |
+
'class' => '',
|
965 |
+
'id' => '',
|
966 |
+
),
|
967 |
+
'acfe_permissions' => '',
|
968 |
+
'choices' => array(
|
969 |
+
'insert_post' => 'Create post',
|
970 |
+
'update_post' => 'Update post',
|
971 |
+
),
|
972 |
+
'default_value' => 'insert_post',
|
973 |
+
),
|
974 |
+
array(
|
975 |
+
'key' => 'field_acfe_form_post_custom_alias',
|
976 |
+
'label' => 'Action name',
|
977 |
+
'name' => 'acfe_form_custom_alias',
|
978 |
+
'type' => 'acfe_slug',
|
979 |
+
'instructions' => '(Optional) Target this action using hooks.',
|
980 |
+
'required' => 0,
|
981 |
+
'conditional_logic' => 0,
|
982 |
+
'wrapper' => array(
|
983 |
+
'width' => '',
|
984 |
+
'class' => '',
|
985 |
+
'id' => '',
|
986 |
+
'data-instruction-placement' => 'field'
|
987 |
+
),
|
988 |
+
'acfe_permissions' => '',
|
989 |
+
'default_value' => '',
|
990 |
+
'placeholder' => 'Post',
|
991 |
+
'prepend' => '',
|
992 |
+
'append' => '',
|
993 |
+
'maxlength' => '',
|
994 |
+
),
|
995 |
+
|
996 |
+
/*
|
997 |
+
* Layout: Post Save
|
998 |
+
*/
|
999 |
+
array(
|
1000 |
+
'key' => 'field_acfe_form_post_tab_save',
|
1001 |
+
'label' => 'Save',
|
1002 |
+
'name' => '',
|
1003 |
+
'type' => 'tab',
|
1004 |
+
'instructions' => '',
|
1005 |
+
'required' => 0,
|
1006 |
+
'conditional_logic' => 0,
|
1007 |
+
'wrapper' => array(
|
1008 |
+
'width' => '',
|
1009 |
+
'class' => '',
|
1010 |
+
'id' => '',
|
1011 |
+
),
|
1012 |
+
'acfe_permissions' => '',
|
1013 |
+
'placement' => 'top',
|
1014 |
+
'endpoint' => 0,
|
1015 |
+
),
|
1016 |
+
array(
|
1017 |
+
'key' => 'field_acfe_form_post_save_target',
|
1018 |
+
'label' => 'Target',
|
1019 |
+
'name' => 'acfe_form_post_save_target',
|
1020 |
+
'type' => 'select',
|
1021 |
+
'instructions' => '',
|
1022 |
+
'required' => 0,
|
1023 |
+
'conditional_logic' => array(
|
1024 |
+
array(
|
1025 |
+
array(
|
1026 |
+
'field' => 'field_acfe_form_post_action',
|
1027 |
+
'operator' => '==',
|
1028 |
+
'value' => 'update_post',
|
1029 |
+
),
|
1030 |
+
),
|
1031 |
+
),
|
1032 |
+
'wrapper' => array(
|
1033 |
+
'width' => '',
|
1034 |
+
'class' => '',
|
1035 |
+
'id' => '',
|
1036 |
+
'data-instruction-placement' => 'field'
|
1037 |
+
),
|
1038 |
+
'acfe_permissions' => '',
|
1039 |
+
'choices' => array(
|
1040 |
+
),
|
1041 |
+
'default_value' => 'current_post',
|
1042 |
+
'allow_null' => 0,
|
1043 |
+
'multiple' => 0,
|
1044 |
+
'ui' => 1,
|
1045 |
+
'ajax' => 0,
|
1046 |
+
'return_format' => 'value',
|
1047 |
+
'placeholder' => '',
|
1048 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1049 |
+
'allow_custom' => 1,
|
1050 |
+
),
|
1051 |
+
array(
|
1052 |
+
'key' => 'field_acfe_form_post_save_post_type',
|
1053 |
+
'label' => 'Post type',
|
1054 |
+
'name' => 'acfe_form_post_save_post_type',
|
1055 |
+
'type' => 'acfe_post_types',
|
1056 |
+
'instructions' => '',
|
1057 |
+
'required' => 0,
|
1058 |
+
'conditional_logic' => array(
|
1059 |
+
array(
|
1060 |
+
array(
|
1061 |
+
'field' => 'field_acfe_form_post_map_post_type',
|
1062 |
+
'operator' => '==empty',
|
1063 |
+
),
|
1064 |
+
),
|
1065 |
+
),
|
1066 |
+
'wrapper' => array(
|
1067 |
+
'width' => '',
|
1068 |
+
'class' => '',
|
1069 |
+
'id' => '',
|
1070 |
+
),
|
1071 |
+
'acfe_permissions' => '',
|
1072 |
+
'post_type' => '',
|
1073 |
+
'field_type' => 'select',
|
1074 |
+
'default_value' => '',
|
1075 |
+
'return_format' => 'name',
|
1076 |
+
'allow_null' => 1,
|
1077 |
+
'placeholder' => 'Default',
|
1078 |
+
'multiple' => 0,
|
1079 |
+
'ui' => 1,
|
1080 |
+
'choices' => array(
|
1081 |
+
),
|
1082 |
+
'ajax' => 0,
|
1083 |
+
'layout' => '',
|
1084 |
+
'toggle' => 0,
|
1085 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1086 |
+
'allow_custom' => 1,
|
1087 |
+
),
|
1088 |
+
array(
|
1089 |
+
'key' => 'field_acfe_form_post_map_post_type_message',
|
1090 |
+
'label' => 'Post type',
|
1091 |
+
'name' => 'acfe_form_post_map_post_type_message',
|
1092 |
+
'type' => 'acfe_dynamic_message',
|
1093 |
+
'instructions' => '',
|
1094 |
+
'required' => 0,
|
1095 |
+
'conditional_logic' => array(
|
1096 |
+
array(
|
1097 |
+
array(
|
1098 |
+
'field' => 'field_acfe_form_post_map_post_type',
|
1099 |
+
'operator' => '!=empty',
|
1100 |
+
),
|
1101 |
+
),
|
1102 |
+
),
|
1103 |
+
'wrapper' => array(
|
1104 |
+
'width' => '',
|
1105 |
+
'class' => '',
|
1106 |
+
'id' => '',
|
1107 |
+
),
|
1108 |
+
'acfe_permissions' => '',
|
1109 |
+
),
|
1110 |
+
array(
|
1111 |
+
'key' => 'field_acfe_form_post_save_post_status',
|
1112 |
+
'label' => 'Post status',
|
1113 |
+
'name' => 'acfe_form_post_save_post_status',
|
1114 |
+
'type' => 'acfe_post_statuses',
|
1115 |
+
'instructions' => '',
|
1116 |
+
'required' => 0,
|
1117 |
+
'conditional_logic' => array(
|
1118 |
+
array(
|
1119 |
+
array(
|
1120 |
+
'field' => 'field_acfe_form_post_map_post_status',
|
1121 |
+
'operator' => '==empty',
|
1122 |
+
),
|
1123 |
+
),
|
1124 |
+
),
|
1125 |
+
'wrapper' => array(
|
1126 |
+
'width' => '',
|
1127 |
+
'class' => '',
|
1128 |
+
'id' => '',
|
1129 |
+
),
|
1130 |
+
'acfe_permissions' => '',
|
1131 |
+
'post_status' => '',
|
1132 |
+
'field_type' => 'select',
|
1133 |
+
'default_value' => '',
|
1134 |
+
'return_format' => 'name',
|
1135 |
+
'allow_null' => 1,
|
1136 |
+
'placeholder' => 'Default',
|
1137 |
+
'multiple' => 0,
|
1138 |
+
'ui' => 1,
|
1139 |
+
'choices' => array(
|
1140 |
+
),
|
1141 |
+
'ajax' => 0,
|
1142 |
+
'layout' => '',
|
1143 |
+
'toggle' => 0,
|
1144 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1145 |
+
'allow_custom' => 1,
|
1146 |
+
),
|
1147 |
+
array(
|
1148 |
+
'key' => 'field_acfe_form_post_map_post_status_message',
|
1149 |
+
'label' => 'Post status',
|
1150 |
+
'name' => 'acfe_form_post_map_post_status_message',
|
1151 |
+
'type' => 'acfe_dynamic_message',
|
1152 |
+
'instructions' => '',
|
1153 |
+
'required' => 0,
|
1154 |
+
'conditional_logic' => array(
|
1155 |
+
array(
|
1156 |
+
array(
|
1157 |
+
'field' => 'field_acfe_form_post_map_post_status',
|
1158 |
+
'operator' => '!=empty',
|
1159 |
+
),
|
1160 |
+
),
|
1161 |
+
),
|
1162 |
+
'wrapper' => array(
|
1163 |
+
'width' => '',
|
1164 |
+
'class' => '',
|
1165 |
+
'id' => '',
|
1166 |
+
),
|
1167 |
+
'acfe_permissions' => '',
|
1168 |
+
),
|
1169 |
+
|
1170 |
+
array(
|
1171 |
+
'key' => 'field_acfe_form_post_save_post_title',
|
1172 |
+
'label' => 'Post title',
|
1173 |
+
'name' => 'acfe_form_post_save_post_title',
|
1174 |
+
'type' => 'select',
|
1175 |
+
'instructions' => '',
|
1176 |
+
'required' => 0,
|
1177 |
+
'wrapper' => array(
|
1178 |
+
'width' => '',
|
1179 |
+
'class' => '',
|
1180 |
+
'id' => '',
|
1181 |
+
),
|
1182 |
+
'acfe_permissions' => '',
|
1183 |
+
'choices' => array(
|
1184 |
+
'generated_id' => 'Generated ID',
|
1185 |
+
),
|
1186 |
+
'default_value' => array(
|
1187 |
+
),
|
1188 |
+
'allow_null' => 1,
|
1189 |
+
'multiple' => 0,
|
1190 |
+
'ui' => 1,
|
1191 |
+
'return_format' => 'value',
|
1192 |
+
'placeholder' => 'Default',
|
1193 |
+
'ajax' => 0,
|
1194 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1195 |
+
'allow_custom' => 1,
|
1196 |
+
'conditional_logic' => array(
|
1197 |
+
array(
|
1198 |
+
array(
|
1199 |
+
'field' => 'field_acfe_form_post_map_post_title',
|
1200 |
+
'operator' => '==empty',
|
1201 |
+
),
|
1202 |
+
),
|
1203 |
+
),
|
1204 |
+
),
|
1205 |
+
|
1206 |
+
array(
|
1207 |
+
'key' => 'field_acfe_form_post_map_post_title_message',
|
1208 |
+
'label' => 'Post title',
|
1209 |
+
'name' => 'acfe_form_post_map_post_title_message',
|
1210 |
+
'type' => 'acfe_dynamic_message',
|
1211 |
+
'instructions' => '',
|
1212 |
+
'required' => 0,
|
1213 |
+
'conditional_logic' => array(
|
1214 |
+
array(
|
1215 |
+
array(
|
1216 |
+
'field' => 'field_acfe_form_post_map_post_title',
|
1217 |
+
'operator' => '!=empty',
|
1218 |
+
),
|
1219 |
+
),
|
1220 |
+
),
|
1221 |
+
'wrapper' => array(
|
1222 |
+
'width' => '',
|
1223 |
+
'class' => '',
|
1224 |
+
'id' => '',
|
1225 |
+
),
|
1226 |
+
'acfe_permissions' => '',
|
1227 |
+
),
|
1228 |
+
array(
|
1229 |
+
'key' => 'field_acfe_form_post_save_post_name',
|
1230 |
+
'label' => 'Post slug',
|
1231 |
+
'name' => 'acfe_form_post_save_post_name',
|
1232 |
+
'type' => 'select',
|
1233 |
+
'instructions' => '',
|
1234 |
+
'required' => 0,
|
1235 |
+
'wrapper' => array(
|
1236 |
+
'width' => '',
|
1237 |
+
'class' => '',
|
1238 |
+
'id' => '',
|
1239 |
+
),
|
1240 |
+
'acfe_permissions' => '',
|
1241 |
+
'choices' => array(
|
1242 |
+
'generated_id' => 'Generated ID',
|
1243 |
+
),
|
1244 |
+
'default_value' => array(
|
1245 |
+
),
|
1246 |
+
'allow_null' => 1,
|
1247 |
+
'multiple' => 0,
|
1248 |
+
'ui' => 1,
|
1249 |
+
'return_format' => 'value',
|
1250 |
+
'placeholder' => 'Default',
|
1251 |
+
'ajax' => 0,
|
1252 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1253 |
+
'allow_custom' => 1,
|
1254 |
+
'conditional_logic' => array(
|
1255 |
+
array(
|
1256 |
+
array(
|
1257 |
+
'field' => 'field_acfe_form_post_map_post_name',
|
1258 |
+
'operator' => '==empty',
|
1259 |
+
),
|
1260 |
+
),
|
1261 |
+
),
|
1262 |
+
),
|
1263 |
+
|
1264 |
+
array(
|
1265 |
+
'key' => 'field_acfe_form_post_map_post_name_message',
|
1266 |
+
'label' => 'Post slug',
|
1267 |
+
'name' => 'acfe_form_post_map_post_name_message',
|
1268 |
+
'type' => 'acfe_dynamic_message',
|
1269 |
+
'instructions' => '',
|
1270 |
+
'required' => 0,
|
1271 |
+
'conditional_logic' => array(
|
1272 |
+
array(
|
1273 |
+
array(
|
1274 |
+
'field' => 'field_acfe_form_post_map_post_name',
|
1275 |
+
'operator' => '!=empty',
|
1276 |
+
),
|
1277 |
+
),
|
1278 |
+
),
|
1279 |
+
'wrapper' => array(
|
1280 |
+
'width' => '',
|
1281 |
+
'class' => '',
|
1282 |
+
'id' => '',
|
1283 |
+
),
|
1284 |
+
'acfe_permissions' => '',
|
1285 |
+
),
|
1286 |
+
array(
|
1287 |
+
'key' => 'field_acfe_form_post_save_post_content_group',
|
1288 |
+
'label' => 'Post content',
|
1289 |
+
'name' => 'acfe_form_post_save_post_content_group',
|
1290 |
+
'type' => 'group',
|
1291 |
+
'instructions' => '',
|
1292 |
+
'required' => 0,
|
1293 |
+
'conditional_logic' => array(
|
1294 |
+
array(
|
1295 |
+
array(
|
1296 |
+
'field' => 'field_acfe_form_post_map_post_content',
|
1297 |
+
'operator' => '==empty',
|
1298 |
+
),
|
1299 |
+
),
|
1300 |
+
),
|
1301 |
+
'wrapper' => array(
|
1302 |
+
'width' => '',
|
1303 |
+
'class' => '',
|
1304 |
+
'id' => '',
|
1305 |
+
),
|
1306 |
+
'acfe_permissions' => '',
|
1307 |
+
'layout' => 'block',
|
1308 |
+
'acfe_seamless_style' => true,
|
1309 |
+
'acfe_group_modal' => 0,
|
1310 |
+
'sub_fields' => array(
|
1311 |
+
array(
|
1312 |
+
'key' => 'field_acfe_form_post_save_post_content',
|
1313 |
+
'label' => '',
|
1314 |
+
'name' => 'acfe_form_post_save_post_content',
|
1315 |
+
'type' => 'select',
|
1316 |
+
'instructions' => '',
|
1317 |
+
'required' => 0,
|
1318 |
+
'conditional_logic' => 0,
|
1319 |
+
'wrapper' => array(
|
1320 |
+
'width' => '',
|
1321 |
+
'class' => '',
|
1322 |
+
'id' => '',
|
1323 |
+
),
|
1324 |
+
'acfe_permissions' => '',
|
1325 |
+
'choices' => array(
|
1326 |
+
'custom' => 'WYSIWYG editor',
|
1327 |
+
),
|
1328 |
+
'default_value' => array(
|
1329 |
+
),
|
1330 |
+
'allow_null' => 1,
|
1331 |
+
'multiple' => 0,
|
1332 |
+
'ui' => 1,
|
1333 |
+
'return_format' => 'value',
|
1334 |
+
'placeholder' => 'Default',
|
1335 |
+
'ajax' => 0,
|
1336 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1337 |
+
'allow_custom' => 1,
|
1338 |
+
),
|
1339 |
+
array(
|
1340 |
+
'key' => 'field_acfe_form_post_save_post_content_custom',
|
1341 |
+
'label' => '',
|
1342 |
+
'name' => 'acfe_form_post_save_post_content_custom',
|
1343 |
+
'type' => 'wysiwyg',
|
1344 |
+
'instructions' => '',
|
1345 |
+
'required' => 0,
|
1346 |
+
'conditional_logic' => array(
|
1347 |
+
array(
|
1348 |
+
array(
|
1349 |
+
'field' => 'field_acfe_form_post_save_post_content',
|
1350 |
+
'operator' => '==',
|
1351 |
+
'value' => 'custom',
|
1352 |
+
),
|
1353 |
+
),
|
1354 |
+
),
|
1355 |
+
'wrapper' => array(
|
1356 |
+
'width' => '',
|
1357 |
+
'class' => '',
|
1358 |
+
'id' => '',
|
1359 |
+
),
|
1360 |
+
'acfe_permissions' => '',
|
1361 |
+
'default_value' => '',
|
1362 |
+
'tabs' => 'all',
|
1363 |
+
'toolbar' => 'full',
|
1364 |
+
'media_upload' => 1,
|
1365 |
+
'delay' => 0,
|
1366 |
+
),
|
1367 |
+
),
|
1368 |
+
),
|
1369 |
+
array(
|
1370 |
+
'key' => 'field_acfe_form_post_map_post_content_message',
|
1371 |
+
'label' => 'Post content',
|
1372 |
+
'name' => 'acfe_form_post_map_post_content_message',
|
1373 |
+
'type' => 'acfe_dynamic_message',
|
1374 |
+
'instructions' => '',
|
1375 |
+
'required' => 0,
|
1376 |
+
'conditional_logic' => array(
|
1377 |
+
array(
|
1378 |
+
array(
|
1379 |
+
'field' => 'field_acfe_form_post_map_post_content',
|
1380 |
+
'operator' => '!=empty',
|
1381 |
+
),
|
1382 |
+
),
|
1383 |
+
),
|
1384 |
+
'wrapper' => array(
|
1385 |
+
'width' => '',
|
1386 |
+
'class' => '',
|
1387 |
+
'id' => '',
|
1388 |
+
),
|
1389 |
+
'acfe_permissions' => '',
|
1390 |
+
),
|
1391 |
+
array(
|
1392 |
+
'key' => 'field_acfe_form_post_save_post_author',
|
1393 |
+
'label' => 'Post author',
|
1394 |
+
'name' => 'acfe_form_post_save_post_author',
|
1395 |
+
'type' => 'select',
|
1396 |
+
'instructions' => '',
|
1397 |
+
'required' => 0,
|
1398 |
+
'conditional_logic' => array(
|
1399 |
+
array(
|
1400 |
+
array(
|
1401 |
+
'field' => 'field_acfe_form_post_map_post_author',
|
1402 |
+
'operator' => '==empty',
|
1403 |
+
),
|
1404 |
+
),
|
1405 |
+
),
|
1406 |
+
'wrapper' => array(
|
1407 |
+
'width' => '',
|
1408 |
+
'class' => '',
|
1409 |
+
'id' => '',
|
1410 |
+
),
|
1411 |
+
'acfe_permissions' => '',
|
1412 |
+
'choices' => array(
|
1413 |
+
),
|
1414 |
+
'default_value' => array(
|
1415 |
+
),
|
1416 |
+
'allow_null' => 1,
|
1417 |
+
'multiple' => 0,
|
1418 |
+
'ui' => 1,
|
1419 |
+
'ajax' => 0,
|
1420 |
+
'return_format' => 'value',
|
1421 |
+
'placeholder' => 'Default',
|
1422 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1423 |
+
'allow_custom' => 1,
|
1424 |
+
),
|
1425 |
+
array(
|
1426 |
+
'key' => 'field_acfe_form_post_map_post_author_message',
|
1427 |
+
'label' => 'Post author',
|
1428 |
+
'name' => 'acfe_form_post_map_post_author_message',
|
1429 |
+
'type' => 'acfe_dynamic_message',
|
1430 |
+
'instructions' => '',
|
1431 |
+
'required' => 0,
|
1432 |
+
'conditional_logic' => array(
|
1433 |
+
array(
|
1434 |
+
array(
|
1435 |
+
'field' => 'field_acfe_form_post_map_post_author',
|
1436 |
+
'operator' => '!=empty',
|
1437 |
+
),
|
1438 |
+
),
|
1439 |
+
),
|
1440 |
+
'wrapper' => array(
|
1441 |
+
'width' => '',
|
1442 |
+
'class' => '',
|
1443 |
+
'id' => '',
|
1444 |
+
),
|
1445 |
+
'acfe_permissions' => '',
|
1446 |
+
),
|
1447 |
+
array(
|
1448 |
+
'key' => 'field_acfe_form_post_save_post_parent',
|
1449 |
+
'label' => 'Post parent',
|
1450 |
+
'name' => 'acfe_form_post_save_post_parent',
|
1451 |
+
'type' => 'select',
|
1452 |
+
'instructions' => '',
|
1453 |
+
'required' => 0,
|
1454 |
+
'conditional_logic' => array(
|
1455 |
+
array(
|
1456 |
+
array(
|
1457 |
+
'field' => 'field_acfe_form_post_map_post_parent',
|
1458 |
+
'operator' => '==empty',
|
1459 |
+
),
|
1460 |
+
),
|
1461 |
+
),
|
1462 |
+
'wrapper' => array(
|
1463 |
+
'width' => '',
|
1464 |
+
'class' => '',
|
1465 |
+
'id' => '',
|
1466 |
+
),
|
1467 |
+
'acfe_permissions' => '',
|
1468 |
+
'choices' => array(
|
1469 |
+
),
|
1470 |
+
'default_value' => array(
|
1471 |
+
),
|
1472 |
+
'allow_null' => 1,
|
1473 |
+
'multiple' => 0,
|
1474 |
+
'ui' => 1,
|
1475 |
+
'ajax' => 0,
|
1476 |
+
'return_format' => 'value',
|
1477 |
+
'placeholder' => 'Default',
|
1478 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1479 |
+
'allow_custom' => 1,
|
1480 |
+
),
|
1481 |
+
array(
|
1482 |
+
'key' => 'field_acfe_form_post_map_post_parent_message',
|
1483 |
+
'label' => 'Post parent',
|
1484 |
+
'name' => 'acfe_form_post_map_post_parent_message',
|
1485 |
+
'type' => 'acfe_dynamic_message',
|
1486 |
+
'instructions' => '',
|
1487 |
+
'required' => 0,
|
1488 |
+
'conditional_logic' => array(
|
1489 |
+
array(
|
1490 |
+
array(
|
1491 |
+
'field' => 'field_acfe_form_post_map_post_parent',
|
1492 |
+
'operator' => '!=empty',
|
1493 |
+
),
|
1494 |
+
),
|
1495 |
+
),
|
1496 |
+
'wrapper' => array(
|
1497 |
+
'width' => '',
|
1498 |
+
'class' => '',
|
1499 |
+
'id' => '',
|
1500 |
+
),
|
1501 |
+
'acfe_permissions' => '',
|
1502 |
+
),
|
1503 |
+
array(
|
1504 |
+
'key' => 'field_acfe_form_post_save_post_terms',
|
1505 |
+
'label' => 'Post terms',
|
1506 |
+
'name' => 'acfe_form_post_save_post_terms',
|
1507 |
+
'type' => 'acfe_taxonomy_terms',
|
1508 |
+
'instructions' => '',
|
1509 |
+
'required' => 0,
|
1510 |
+
'conditional_logic' => array(
|
1511 |
+
array(
|
1512 |
+
array(
|
1513 |
+
'field' => 'field_acfe_form_post_map_post_terms',
|
1514 |
+
'operator' => '==empty',
|
1515 |
+
),
|
1516 |
+
),
|
1517 |
+
),
|
1518 |
+
'wrapper' => array(
|
1519 |
+
'width' => '',
|
1520 |
+
'class' => '',
|
1521 |
+
'id' => '',
|
1522 |
+
),
|
1523 |
+
'acfe_permissions' => '',
|
1524 |
+
'taxonomy' => '',
|
1525 |
+
'field_type' => 'select',
|
1526 |
+
'default_value' => '',
|
1527 |
+
'return_format' => 'id',
|
1528 |
+
'allow_null' => 1,
|
1529 |
+
'placeholder' => 'Default',
|
1530 |
+
'multiple' => 1,
|
1531 |
+
'ui' => 1,
|
1532 |
+
'ajax' => 0,
|
1533 |
+
'choices' => array(
|
1534 |
+
),
|
1535 |
+
'layout' => '',
|
1536 |
+
'toggle' => 0,
|
1537 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1538 |
+
'allow_custom' => 1,
|
1539 |
+
),
|
1540 |
+
array(
|
1541 |
+
'key' => 'field_acfe_form_post_map_post_terms_message',
|
1542 |
+
'label' => 'Post terms',
|
1543 |
+
'name' => 'acfe_form_post_map_post_terms_message',
|
1544 |
+
'type' => 'acfe_dynamic_message',
|
1545 |
+
'instructions' => '',
|
1546 |
+
'required' => 0,
|
1547 |
+
'conditional_logic' => array(
|
1548 |
+
array(
|
1549 |
+
array(
|
1550 |
+
'field' => 'field_acfe_form_post_map_post_terms',
|
1551 |
+
'operator' => '!=empty',
|
1552 |
+
),
|
1553 |
+
),
|
1554 |
+
),
|
1555 |
+
'wrapper' => array(
|
1556 |
+
'width' => '',
|
1557 |
+
'class' => '',
|
1558 |
+
'id' => '',
|
1559 |
+
),
|
1560 |
+
'acfe_permissions' => '',
|
1561 |
+
),
|
1562 |
+
array(
|
1563 |
+
'key' => 'field_acfe_form_post_save_meta',
|
1564 |
+
'label' => 'Save ACF fields',
|
1565 |
+
'name' => 'acfe_form_post_save_meta',
|
1566 |
+
'type' => 'checkbox',
|
1567 |
+
'instructions' => 'Choose which ACF fields should be saved to this post',
|
1568 |
+
'required' => 0,
|
1569 |
+
'conditional_logic' => 0,
|
1570 |
+
'wrapper' => array(
|
1571 |
+
'width' => '',
|
1572 |
+
'class' => '',
|
1573 |
+
'id' => '',
|
1574 |
+
),
|
1575 |
+
'acfe_permissions' => '',
|
1576 |
+
'choices' => array(
|
1577 |
+
),
|
1578 |
+
'allow_custom' => 0,
|
1579 |
+
'default_value' => array(
|
1580 |
+
),
|
1581 |
+
'layout' => 'vertical',
|
1582 |
+
'toggle' => 1,
|
1583 |
+
'return_format' => 'value',
|
1584 |
+
'save_custom' => 0,
|
1585 |
+
),
|
1586 |
+
|
1587 |
+
/*
|
1588 |
+
* Layout: Post Load
|
1589 |
+
*/
|
1590 |
+
array(
|
1591 |
+
'key' => 'acfe_form_post_tab_load',
|
1592 |
+
'label' => 'Load',
|
1593 |
+
'name' => '',
|
1594 |
+
'type' => 'tab',
|
1595 |
+
'instructions' => '',
|
1596 |
+
'required' => 0,
|
1597 |
+
'conditional_logic' => 0,
|
1598 |
+
'wrapper' => array(
|
1599 |
+
'width' => '',
|
1600 |
+
'class' => '',
|
1601 |
+
'id' => '',
|
1602 |
+
),
|
1603 |
+
'acfe_permissions' => '',
|
1604 |
+
'placement' => 'top',
|
1605 |
+
'endpoint' => 0,
|
1606 |
+
),
|
1607 |
+
array(
|
1608 |
+
'key' => 'field_acfe_form_post_load_values',
|
1609 |
+
'label' => 'Load Values',
|
1610 |
+
'name' => 'acfe_form_post_load_values',
|
1611 |
+
'type' => 'true_false',
|
1612 |
+
'instructions' => 'Fill inputs with values',
|
1613 |
+
'required' => 0,
|
1614 |
+
'conditional_logic' => 0,
|
1615 |
+
'wrapper' => array(
|
1616 |
+
'width' => '',
|
1617 |
+
'class' => '',
|
1618 |
+
'id' => '',
|
1619 |
+
),
|
1620 |
+
'acfe_permissions' => '',
|
1621 |
+
'message' => '',
|
1622 |
+
'default_value' => 0,
|
1623 |
+
'ui' => 1,
|
1624 |
+
'ui_on_text' => '',
|
1625 |
+
'ui_off_text' => '',
|
1626 |
+
),
|
1627 |
+
array(
|
1628 |
+
'key' => 'field_acfe_form_post_load_source',
|
1629 |
+
'label' => 'Source',
|
1630 |
+
'name' => 'acfe_form_post_load_source',
|
1631 |
+
'type' => 'select',
|
1632 |
+
'instructions' => '',
|
1633 |
+
'required' => 0,
|
1634 |
+
'conditional_logic' => array(
|
1635 |
+
array(
|
1636 |
+
array(
|
1637 |
+
'field' => 'field_acfe_form_post_load_values',
|
1638 |
+
'operator' => '==',
|
1639 |
+
'value' => '1',
|
1640 |
+
),
|
1641 |
+
),
|
1642 |
+
),
|
1643 |
+
'wrapper' => array(
|
1644 |
+
'width' => '',
|
1645 |
+
'class' => '',
|
1646 |
+
'id' => '',
|
1647 |
+
'data-instruction-placement' => 'field'
|
1648 |
+
),
|
1649 |
+
'acfe_permissions' => '',
|
1650 |
+
'choices' => array(
|
1651 |
+
),
|
1652 |
+
'default_value' => 'current_post',
|
1653 |
+
'allow_null' => 0,
|
1654 |
+
'multiple' => 0,
|
1655 |
+
'ui' => 1,
|
1656 |
+
'ajax' => 0,
|
1657 |
+
'return_format' => 'value',
|
1658 |
+
'placeholder' => '',
|
1659 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1660 |
+
'allow_custom' => 1,
|
1661 |
+
),
|
1662 |
+
|
1663 |
+
array(
|
1664 |
+
'key' => 'field_acfe_form_post_map_post_type',
|
1665 |
+
'label' => 'Post type',
|
1666 |
+
'name' => 'acfe_form_post_map_post_type',
|
1667 |
+
'type' => 'select',
|
1668 |
+
'instructions' => '',
|
1669 |
+
'required' => 0,
|
1670 |
+
'wrapper' => array(
|
1671 |
+
'width' => '',
|
1672 |
+
'class' => '',
|
1673 |
+
'id' => '',
|
1674 |
+
),
|
1675 |
+
'acfe_permissions' => '',
|
1676 |
+
'choices' => array(
|
1677 |
+
),
|
1678 |
+
'default_value' => array(
|
1679 |
+
),
|
1680 |
+
'allow_null' => 1,
|
1681 |
+
'multiple' => 0,
|
1682 |
+
'ui' => 1,
|
1683 |
+
'return_format' => 'value',
|
1684 |
+
'placeholder' => 'Default',
|
1685 |
+
'ajax' => 0,
|
1686 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1687 |
+
'allow_custom' => 1,
|
1688 |
+
'conditional_logic' => array(
|
1689 |
+
array(
|
1690 |
+
array(
|
1691 |
+
'field' => 'field_acfe_form_post_load_values',
|
1692 |
+
'operator' => '==',
|
1693 |
+
'value' => '1',
|
1694 |
+
),
|
1695 |
+
),
|
1696 |
+
),
|
1697 |
+
),
|
1698 |
+
array(
|
1699 |
+
'key' => 'field_acfe_form_post_map_post_status',
|
1700 |
+
'label' => 'Post status',
|
1701 |
+
'name' => 'acfe_form_post_map_post_status',
|
1702 |
+
'type' => 'select',
|
1703 |
+
'instructions' => '',
|
1704 |
+
'required' => 0,
|
1705 |
+
'wrapper' => array(
|
1706 |
+
'width' => '',
|
1707 |
+
'class' => '',
|
1708 |
+
'id' => '',
|
1709 |
+
),
|
1710 |
+
'acfe_permissions' => '',
|
1711 |
+
'choices' => array(
|
1712 |
+
),
|
1713 |
+
'default_value' => array(
|
1714 |
+
),
|
1715 |
+
'allow_null' => 1,
|
1716 |
+
'multiple' => 0,
|
1717 |
+
'ui' => 1,
|
1718 |
+
'return_format' => 'value',
|
1719 |
+
'placeholder' => 'Default',
|
1720 |
+
'ajax' => 0,
|
1721 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1722 |
+
'allow_custom' => 1,
|
1723 |
+
'conditional_logic' => array(
|
1724 |
+
array(
|
1725 |
+
array(
|
1726 |
+
'field' => 'field_acfe_form_post_load_values',
|
1727 |
+
'operator' => '==',
|
1728 |
+
'value' => '1',
|
1729 |
+
),
|
1730 |
+
),
|
1731 |
+
),
|
1732 |
+
),
|
1733 |
+
array(
|
1734 |
+
'key' => 'field_acfe_form_post_map_post_title',
|
1735 |
+
'label' => 'Post title',
|
1736 |
+
'name' => 'acfe_form_post_map_post_title',
|
1737 |
+
'type' => 'select',
|
1738 |
+
'instructions' => '',
|
1739 |
+
'required' => 0,
|
1740 |
+
'wrapper' => array(
|
1741 |
+
'width' => '',
|
1742 |
+
'class' => '',
|
1743 |
+
'id' => '',
|
1744 |
+
),
|
1745 |
+
'acfe_permissions' => '',
|
1746 |
+
'choices' => array(
|
1747 |
+
),
|
1748 |
+
'default_value' => array(
|
1749 |
+
),
|
1750 |
+
'allow_null' => 1,
|
1751 |
+
'multiple' => 0,
|
1752 |
+
'ui' => 1,
|
1753 |
+
'return_format' => 'value',
|
1754 |
+
'placeholder' => 'Default',
|
1755 |
+
'ajax' => 0,
|
1756 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1757 |
+
'allow_custom' => 1,
|
1758 |
+
'conditional_logic' => array(
|
1759 |
+
array(
|
1760 |
+
array(
|
1761 |
+
'field' => 'field_acfe_form_post_load_values',
|
1762 |
+
'operator' => '==',
|
1763 |
+
'value' => '1',
|
1764 |
+
),
|
1765 |
+
),
|
1766 |
+
),
|
1767 |
+
),
|
1768 |
+
array(
|
1769 |
+
'key' => 'field_acfe_form_post_map_post_name',
|
1770 |
+
'label' => 'Post slug',
|
1771 |
+
'name' => 'acfe_form_post_map_post_name',
|
1772 |
+
'type' => 'select',
|
1773 |
+
'instructions' => '',
|
1774 |
+
'required' => 0,
|
1775 |
+
'wrapper' => array(
|
1776 |
+
'width' => '',
|
1777 |
+
'class' => '',
|
1778 |
+
'id' => '',
|
1779 |
+
),
|
1780 |
+
'acfe_permissions' => '',
|
1781 |
+
'choices' => array(
|
1782 |
+
),
|
1783 |
+
'default_value' => array(
|
1784 |
+
),
|
1785 |
+
'allow_null' => 1,
|
1786 |
+
'multiple' => 0,
|
1787 |
+
'ui' => 1,
|
1788 |
+
'return_format' => 'value',
|
1789 |
+
'placeholder' => 'Default',
|
1790 |
+
'ajax' => 0,
|
1791 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1792 |
+
'allow_custom' => 1,
|
1793 |
+
'conditional_logic' => array(
|
1794 |
+
array(
|
1795 |
+
array(
|
1796 |
+
'field' => 'field_acfe_form_post_load_values',
|
1797 |
+
'operator' => '==',
|
1798 |
+
'value' => '1',
|
1799 |
+
),
|
1800 |
+
),
|
1801 |
+
),
|
1802 |
+
),
|
1803 |
+
array(
|
1804 |
+
'key' => 'field_acfe_form_post_map_post_content',
|
1805 |
+
'label' => 'Post content',
|
1806 |
+
'name' => 'acfe_form_post_map_post_content',
|
1807 |
+
'type' => 'select',
|
1808 |
+
'instructions' => '',
|
1809 |
+
'required' => 0,
|
1810 |
+
'wrapper' => array(
|
1811 |
+
'width' => '',
|
1812 |
+
'class' => '',
|
1813 |
+
'id' => '',
|
1814 |
+
),
|
1815 |
+
'acfe_permissions' => '',
|
1816 |
+
'choices' => array(
|
1817 |
+
),
|
1818 |
+
'default_value' => array(
|
1819 |
+
),
|
1820 |
+
'allow_null' => 1,
|
1821 |
+
'multiple' => 0,
|
1822 |
+
'ui' => 1,
|
1823 |
+
'return_format' => 'value',
|
1824 |
+
'placeholder' => 'Default',
|
1825 |
+
'ajax' => 0,
|
1826 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1827 |
+
'allow_custom' => 1,
|
1828 |
+
'conditional_logic' => array(
|
1829 |
+
array(
|
1830 |
+
array(
|
1831 |
+
'field' => 'field_acfe_form_post_load_values',
|
1832 |
+
'operator' => '==',
|
1833 |
+
'value' => '1',
|
1834 |
+
),
|
1835 |
+
),
|
1836 |
+
),
|
1837 |
+
),
|
1838 |
+
array(
|
1839 |
+
'key' => 'field_acfe_form_post_map_post_author',
|
1840 |
+
'label' => 'Post author',
|
1841 |
+
'name' => 'acfe_form_post_map_post_author',
|
1842 |
+
'type' => 'select',
|
1843 |
+
'instructions' => '',
|
1844 |
+
'required' => 0,
|
1845 |
+
'wrapper' => array(
|
1846 |
+
'width' => '',
|
1847 |
+
'class' => '',
|
1848 |
+
'id' => '',
|
1849 |
+
),
|
1850 |
+
'acfe_permissions' => '',
|
1851 |
+
'choices' => array(
|
1852 |
+
),
|
1853 |
+
'default_value' => array(
|
1854 |
+
),
|
1855 |
+
'allow_null' => 1,
|
1856 |
+
'multiple' => 0,
|
1857 |
+
'ui' => 1,
|
1858 |
+
'return_format' => 'value',
|
1859 |
+
'placeholder' => 'Default',
|
1860 |
+
'ajax' => 0,
|
1861 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1862 |
+
'allow_custom' => 1,
|
1863 |
+
'conditional_logic' => array(
|
1864 |
+
array(
|
1865 |
+
array(
|
1866 |
+
'field' => 'field_acfe_form_post_load_values',
|
1867 |
+
'operator' => '==',
|
1868 |
+
'value' => '1',
|
1869 |
+
),
|
1870 |
+
),
|
1871 |
+
),
|
1872 |
+
),
|
1873 |
+
array(
|
1874 |
+
'key' => 'field_acfe_form_post_map_post_parent',
|
1875 |
+
'label' => 'Post parent',
|
1876 |
+
'name' => 'acfe_form_post_map_post_parent',
|
1877 |
+
'type' => 'select',
|
1878 |
+
'instructions' => '',
|
1879 |
+
'required' => 0,
|
1880 |
+
'wrapper' => array(
|
1881 |
+
'width' => '',
|
1882 |
+
'class' => '',
|
1883 |
+
'id' => '',
|
1884 |
+
),
|
1885 |
+
'acfe_permissions' => '',
|
1886 |
+
'choices' => array(
|
1887 |
+
),
|
1888 |
+
'default_value' => array(
|
1889 |
+
),
|
1890 |
+
'allow_null' => 1,
|
1891 |
+
'multiple' => 0,
|
1892 |
+
'ui' => 1,
|
1893 |
+
'return_format' => 'value',
|
1894 |
+
'placeholder' => 'Default',
|
1895 |
+
'ajax' => 0,
|
1896 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1897 |
+
'allow_custom' => 1,
|
1898 |
+
'conditional_logic' => array(
|
1899 |
+
array(
|
1900 |
+
array(
|
1901 |
+
'field' => 'field_acfe_form_post_load_values',
|
1902 |
+
'operator' => '==',
|
1903 |
+
'value' => '1',
|
1904 |
+
),
|
1905 |
+
),
|
1906 |
+
),
|
1907 |
+
),
|
1908 |
+
array(
|
1909 |
+
'key' => 'field_acfe_form_post_map_post_terms',
|
1910 |
+
'label' => 'Post terms',
|
1911 |
+
'name' => 'acfe_form_post_map_post_terms',
|
1912 |
+
'type' => 'select',
|
1913 |
+
'instructions' => '',
|
1914 |
+
'required' => 0,
|
1915 |
+
'wrapper' => array(
|
1916 |
+
'width' => '',
|
1917 |
+
'class' => '',
|
1918 |
+
'id' => '',
|
1919 |
+
),
|
1920 |
+
'acfe_permissions' => '',
|
1921 |
+
'choices' => array(
|
1922 |
+
),
|
1923 |
+
'default_value' => array(
|
1924 |
+
),
|
1925 |
+
'allow_null' => 1,
|
1926 |
+
'multiple' => 0,
|
1927 |
+
'ui' => 1,
|
1928 |
+
'return_format' => 'value',
|
1929 |
+
'placeholder' => 'Default',
|
1930 |
+
'ajax' => 0,
|
1931 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1932 |
+
'allow_custom' => 1,
|
1933 |
+
'conditional_logic' => array(
|
1934 |
+
array(
|
1935 |
+
array(
|
1936 |
+
'field' => 'field_acfe_form_post_load_values',
|
1937 |
+
'operator' => '==',
|
1938 |
+
'value' => '1',
|
1939 |
+
),
|
1940 |
+
),
|
1941 |
+
),
|
1942 |
+
),
|
1943 |
+
array(
|
1944 |
+
'key' => 'field_acfe_form_post_load_meta',
|
1945 |
+
'label' => 'Load ACF fields',
|
1946 |
+
'name' => 'acfe_form_post_load_meta',
|
1947 |
+
'type' => 'checkbox',
|
1948 |
+
'instructions' => 'Choose which ACF fields should have their values loaded',
|
1949 |
+
'required' => 0,
|
1950 |
+
'conditional_logic' => array(
|
1951 |
+
array(
|
1952 |
+
array(
|
1953 |
+
'field' => 'field_acfe_form_post_load_values',
|
1954 |
+
'operator' => '==',
|
1955 |
+
'value' => '1',
|
1956 |
+
),
|
1957 |
+
),
|
1958 |
+
),
|
1959 |
+
'wrapper' => array(
|
1960 |
+
'width' => '',
|
1961 |
+
'class' => '',
|
1962 |
+
'id' => '',
|
1963 |
+
),
|
1964 |
+
'acfe_permissions' => '',
|
1965 |
+
'choices' => array(
|
1966 |
+
),
|
1967 |
+
'allow_custom' => 0,
|
1968 |
+
'default_value' => array(
|
1969 |
+
),
|
1970 |
+
'layout' => 'vertical',
|
1971 |
+
'toggle' => 1,
|
1972 |
+
'return_format' => 'value',
|
1973 |
+
'save_custom' => 0,
|
1974 |
+
),
|
1975 |
+
|
1976 |
+
/*
|
1977 |
+
* Layout: Post Advanced
|
1978 |
+
*/
|
1979 |
+
array(
|
1980 |
+
'key' => 'field_acfe_form_post_tab_advanced',
|
1981 |
+
'label' => 'Code',
|
1982 |
+
'name' => '',
|
1983 |
+
'type' => 'tab',
|
1984 |
+
'instructions' => '',
|
1985 |
+
'required' => 0,
|
1986 |
+
'conditional_logic' => 0,
|
1987 |
+
'wrapper' => array(
|
1988 |
+
'width' => '',
|
1989 |
+
'class' => '',
|
1990 |
+
'id' => '',
|
1991 |
+
),
|
1992 |
+
'acfe_permissions' => '',
|
1993 |
+
'placement' => 'top',
|
1994 |
+
'endpoint' => 0,
|
1995 |
+
),
|
1996 |
+
array(
|
1997 |
+
'key' => 'field_acfe_form_post_advanced_load',
|
1998 |
+
'label' => 'Change values source',
|
1999 |
+
'name' => 'acfe_form_post_advanced_load',
|
2000 |
+
'type' => 'acfe_dynamic_message',
|
2001 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
2002 |
+
'instructions' => 'Alter the post ID where meta values are loaded from',
|
2003 |
+
'required' => 0,
|
2004 |
+
'conditional_logic' => 0,
|
2005 |
+
'wrapper' => array(
|
2006 |
+
'width' => '',
|
2007 |
+
'class' => '',
|
2008 |
+
'id' => '',
|
2009 |
+
),
|
2010 |
+
'acfe_permissions' => '',
|
2011 |
+
),
|
2012 |
+
array(
|
2013 |
+
'key' => 'field_acfe_form_post_advanced_save_args',
|
2014 |
+
'label' => 'Change post arguments',
|
2015 |
+
'name' => 'acfe_form_post_advanced_save_args',
|
2016 |
+
'type' => 'acfe_dynamic_message',
|
2017 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
2018 |
+
'instructions' => 'Alter the post arguments before database insert/update',
|
2019 |
+
'required' => 0,
|
2020 |
+
'conditional_logic' => 0,
|
2021 |
+
'wrapper' => array(
|
2022 |
+
'width' => '',
|
2023 |
+
'class' => '',
|
2024 |
+
'id' => '',
|
2025 |
+
),
|
2026 |
+
'acfe_permissions' => '',
|
2027 |
+
),
|
2028 |
+
array(
|
2029 |
+
'key' => 'field_acfe_form_post_advanced_save',
|
2030 |
+
'label' => 'Add custom action on post save',
|
2031 |
+
'name' => 'acfe_form_post_advanced_save',
|
2032 |
+
'type' => 'acfe_dynamic_message',
|
2033 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
2034 |
+
'instructions' => 'This action allows you to hook in before or after the meta data have been saved',
|
2035 |
+
'required' => 0,
|
2036 |
+
'conditional_logic' => 0,
|
2037 |
+
'wrapper' => array(
|
2038 |
+
'width' => '',
|
2039 |
+
'class' => '',
|
2040 |
+
'id' => '',
|
2041 |
+
),
|
2042 |
+
'acfe_permissions' => '',
|
2043 |
+
),
|
2044 |
+
),
|
2045 |
+
'min' => '',
|
2046 |
+
'max' => '',
|
2047 |
+
);
|
2048 |
+
|
2049 |
+
return $layouts;
|
2050 |
|
2051 |
}
|
2052 |
|
@@ -0,0 +1,323 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if(!defined('ABSPATH'))
|
4 |
+
exit;
|
5 |
+
|
6 |
+
if(!class_exists('acfe_form_redirect')):
|
7 |
+
|
8 |
+
class acfe_form_redirect{
|
9 |
+
|
10 |
+
function __construct(){
|
11 |
+
|
12 |
+
add_filter('acfe/form/actions', array($this, 'add_action'));
|
13 |
+
add_action('acfe/form/make/redirect', array($this, 'make'), 10, 3);
|
14 |
+
|
15 |
+
add_action('acf/render_field/name=acfe_form_redirect_action_tab_advanced_prepare', array($this, 'advanced_prepare'));
|
16 |
+
add_action('acf/render_field/name=acfe_form_redirect_action_tab_advanced_url', array($this, 'advanced_url'));
|
17 |
+
|
18 |
+
}
|
19 |
+
|
20 |
+
function make($form, $current_post_id, $action){
|
21 |
+
|
22 |
+
// Form
|
23 |
+
$form_name = acf_maybe_get($form, 'name');
|
24 |
+
$form_id = acf_maybe_get($form, 'ID');
|
25 |
+
|
26 |
+
// Prepare
|
27 |
+
$prepare = true;
|
28 |
+
$prepare = apply_filters('acfe/form/prepare/redirect', $prepare, $form, $current_post_id, $action);
|
29 |
+
$prepare = apply_filters('acfe/form/prepare/redirect/form=' . $form_name, $prepare, $form, $current_post_id, $action);
|
30 |
+
|
31 |
+
if(!empty($action))
|
32 |
+
$prepare = apply_filters('acfe/form/prepare/redirect/action=' . $action, $prepare, $form, $current_post_id, $action);
|
33 |
+
|
34 |
+
if($prepare === false)
|
35 |
+
return;
|
36 |
+
|
37 |
+
// Fields
|
38 |
+
$url = get_sub_field('acfe_form_redirect_url');
|
39 |
+
$url = acfe_form_map_field_value($url, $current_post_id, $form);
|
40 |
+
|
41 |
+
// Args
|
42 |
+
$url = apply_filters('acfe/form/submit/redirect_url', $url, $form, $action);
|
43 |
+
$url = apply_filters('acfe/form/submit/redirect_url/form=' . $form_name, $url, $form, $action);
|
44 |
+
|
45 |
+
if(!empty($action))
|
46 |
+
$url = apply_filters('acfe/form/submit/redirect_url/action=' . $action, $url, $form, $action);
|
47 |
+
|
48 |
+
// Sanitize
|
49 |
+
$url = trim($url);
|
50 |
+
|
51 |
+
// Bail early if empty
|
52 |
+
if(empty($url))
|
53 |
+
return;
|
54 |
+
|
55 |
+
// Redirect
|
56 |
+
wp_redirect($url);
|
57 |
+
exit;
|
58 |
+
|
59 |
+
}
|
60 |
+
|
61 |
+
function advanced_prepare($field){
|
62 |
+
|
63 |
+
$form_name = 'my_form';
|
64 |
+
|
65 |
+
if(acf_maybe_get($field, 'value'))
|
66 |
+
$form_name = get_field('acfe_form_name', $field['value']);
|
67 |
+
|
68 |
+
?>You may use the following hooks:<br /><br />
|
69 |
+
|
70 |
+
<?php acfe_highlight(); ?>
|
71 |
+
add_filter('acfe/form/prepare/redirect', 'my_form_redirect_prepare', 10, 4);
|
72 |
+
add_filter('acfe/form/prepare/redirect/form=<?php echo $form_name; ?>', 'my_form_redirect_prepare', 10, 4);
|
73 |
+
add_filter('acfe/form/prepare/redirect/action=my-redirect-action', 'my_form_redirect_prepare', 10, 4);<?php acfe_highlight(); ?>
|
74 |
+
<br />
|
75 |
+
<?php acfe_highlight(); ?>
|
76 |
+
/*
|
77 |
+
* @bool $prepare Execute the action
|
78 |
+
* @array $form The form settings
|
79 |
+
* @int $post_id Current post ID
|
80 |
+
* @string $action Action alias name
|
81 |
+
*/
|
82 |
+
add_filter('acfe/form/prepare/redirect/form=<?php echo $form_name; ?>', 'my_form_redirect_prepare', 10, 4);
|
83 |
+
function my_form_redirect_prepare($prepare, $form, $post_id, $action){
|
84 |
+
|
85 |
+
/*
|
86 |
+
* Get the form input value named 'my_field'
|
87 |
+
* This is the value entered by the user during the form submission
|
88 |
+
*/
|
89 |
+
$my_field = get_field('my_field');
|
90 |
+
|
91 |
+
if($my_field === 'Company'){
|
92 |
+
|
93 |
+
// Do not execute Redirect
|
94 |
+
$prepare = false;
|
95 |
+
|
96 |
+
}
|
97 |
+
|
98 |
+
/*
|
99 |
+
* Get previous Post Action output
|
100 |
+
*/
|
101 |
+
$prev_post_action = acfe_form_get_action('post');
|
102 |
+
|
103 |
+
if(!empty($prev_post_action)){
|
104 |
+
|
105 |
+
if($prev_post_action['post_title'] === 'Company'){
|
106 |
+
|
107 |
+
// Do not execute Redirect
|
108 |
+
$prepare = false;
|
109 |
+
|
110 |
+
}
|
111 |
+
|
112 |
+
}
|
113 |
+
|
114 |
+
return $prepare;
|
115 |
+
|
116 |
+
}<?php acfe_highlight(); ?>
|
117 |
+
|
118 |
+
<?php
|
119 |
+
|
120 |
+
}
|
121 |
+
function advanced_url($field){
|
122 |
+
|
123 |
+
$form_name = 'my_form';
|
124 |
+
|
125 |
+
if(acf_maybe_get($field, 'value'))
|
126 |
+
$form_name = get_field('acfe_form_name', $field['value']);
|
127 |
+
|
128 |
+
?>You may use the following hooks:<br /><br />
|
129 |
+
|
130 |
+
<?php acfe_highlight(); ?>
|
131 |
+
add_filter('acfe/form/submit/redirect_url', 'my_form_redirect_url', 10, 3);
|
132 |
+
add_filter('acfe/form/submit/redirect_url/form=<?php echo $form_name; ?>', 'my_form_redirect_url', 10, 3);
|
133 |
+
add_filter('acfe/form/submit/redirect_url/action=my-redirect-action', 'my_form_redirect_url', 10, 3);<?php acfe_highlight(); ?>
|
134 |
+
<br />
|
135 |
+
<?php acfe_highlight(); ?>
|
136 |
+
/*
|
137 |
+
* @bool $url Redirect URL
|
138 |
+
* @array $form The form settings
|
139 |
+
* @string $action Action alias name
|
140 |
+
*/
|
141 |
+
add_filter('acfe/form/submit/redirect_url/form=<?php echo $form_name; ?>', 'my_form_redirect_url', 10, 3);
|
142 |
+
function my_form_redirect_url($url, $form, $action){
|
143 |
+
|
144 |
+
/*
|
145 |
+
* Get the form input value named 'my_field'
|
146 |
+
* This is the value entered by the user during the form submission
|
147 |
+
*/
|
148 |
+
$my_field = get_field('my_field');
|
149 |
+
|
150 |
+
if($my_field === 'Company'){
|
151 |
+
|
152 |
+
// Change Redirect URL
|
153 |
+
$url = home_url('thank-you');
|
154 |
+
|
155 |
+
}
|
156 |
+
|
157 |
+
/*
|
158 |
+
* Get previous Post Action output
|
159 |
+
*/
|
160 |
+
$prev_post_action = acfe_form_get_action('post');
|
161 |
+
|
162 |
+
if(!empty($prev_post_action)){
|
163 |
+
|
164 |
+
if($prev_post_action['post_title'] === 'Company'){
|
165 |
+
|
166 |
+
// Change Redirect URL
|
167 |
+
$url = home_url('thank-you');
|
168 |
+
|
169 |
+
}
|
170 |
+
|
171 |
+
}
|
172 |
+
|
173 |
+
// Do not redirect
|
174 |
+
// return false;
|
175 |
+
|
176 |
+
return $url;
|
177 |
+
|
178 |
+
}<?php acfe_highlight(); ?>
|
179 |
+
|
180 |
+
<?php
|
181 |
+
|
182 |
+
}
|
183 |
+
|
184 |
+
function add_action($layouts){
|
185 |
+
|
186 |
+
$layouts['layout_redirect'] = array(
|
187 |
+
'key' => 'layout_redirect',
|
188 |
+
'name' => 'redirect',
|
189 |
+
'label' => 'Redirect action',
|
190 |
+
'display' => 'row',
|
191 |
+
'sub_fields' => array(
|
192 |
+
|
193 |
+
/*
|
194 |
+
* Layout: Redirect Action
|
195 |
+
*/
|
196 |
+
array(
|
197 |
+
'key' => 'field_acfe_form_redirect_action_tab_action',
|
198 |
+
'label' => 'Action',
|
199 |
+
'name' => '',
|
200 |
+
'type' => 'tab',
|
201 |
+
'instructions' => '',
|
202 |
+
'required' => 0,
|
203 |
+
'conditional_logic' => 0,
|
204 |
+
'wrapper' => array(
|
205 |
+
'width' => '',
|
206 |
+
'class' => '',
|
207 |
+
'id' => '',
|
208 |
+
'data-no-preference' => true,
|
209 |
+
),
|
210 |
+
'acfe_permissions' => '',
|
211 |
+
'placement' => 'top',
|
212 |
+
'endpoint' => 0,
|
213 |
+
),
|
214 |
+
array(
|
215 |
+
'key' => 'field_acfe_form_redirect_custom_alias',
|
216 |
+
'label' => 'Action name',
|
217 |
+
'name' => 'acfe_form_redirect_custom_alias',
|
218 |
+
'type' => 'acfe_slug',
|
219 |
+
'instructions' => '(Optional) Target this action using hooks.',
|
220 |
+
'required' => 0,
|
221 |
+
'conditional_logic' => 0,
|
222 |
+
'wrapper' => array(
|
223 |
+
'width' => '',
|
224 |
+
'class' => '',
|
225 |
+
'id' => '',
|
226 |
+
'data-instruction-placement' => 'field'
|
227 |
+
),
|
228 |
+
'acfe_permissions' => '',
|
229 |
+
'default_value' => '',
|
230 |
+
'placeholder' => 'Redirect',
|
231 |
+
'prepend' => '',
|
232 |
+
'append' => '',
|
233 |
+
'maxlength' => '',
|
234 |
+
),
|
235 |
+
array(
|
236 |
+
'key' => 'field_acfe_form_redirect_url',
|
237 |
+
'label' => 'Action URL',
|
238 |
+
'name' => 'acfe_form_redirect_url',
|
239 |
+
'type' => 'text',
|
240 |
+
'instructions' => 'The URL to redirect to. See "Cheatsheet" tab for all available template tags.',
|
241 |
+
'required' => 0,
|
242 |
+
'conditional_logic' => 0,
|
243 |
+
'wrapper' => array(
|
244 |
+
'width' => '',
|
245 |
+
'class' => '',
|
246 |
+
'id' => '',
|
247 |
+
'data-instruction-placement' => 'field'
|
248 |
+
),
|
249 |
+
'acfe_permissions' => '',
|
250 |
+
'default_value' => '',
|
251 |
+
'placeholder' => '',
|
252 |
+
'prepend' => '',
|
253 |
+
'append' => '',
|
254 |
+
'maxlength' => '',
|
255 |
+
),
|
256 |
+
|
257 |
+
/*
|
258 |
+
* Layout: Redirect Advanced
|
259 |
+
*/
|
260 |
+
array(
|
261 |
+
'key' => 'field_acfe_form_redirect_action_tab_advanced',
|
262 |
+
'label' => 'Code',
|
263 |
+
'name' => '',
|
264 |
+
'type' => 'tab',
|
265 |
+
'instructions' => '',
|
266 |
+
'required' => 0,
|
267 |
+
'conditional_logic' => 0,
|
268 |
+
'wrapper' => array(
|
269 |
+
'width' => '',
|
270 |
+
'class' => '',
|
271 |
+
'id' => '',
|
272 |
+
),
|
273 |
+
'acfe_permissions' => '',
|
274 |
+
'placement' => 'top',
|
275 |
+
'endpoint' => 0,
|
276 |
+
),
|
277 |
+
array(
|
278 |
+
'key' => 'field_acfe_form_redirect_action_tab_advanced_prepare',
|
279 |
+
'label' => 'Prepare the action',
|
280 |
+
'name' => 'acfe_form_redirect_action_tab_advanced_prepare',
|
281 |
+
'type' => 'acfe_dynamic_message',
|
282 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
283 |
+
'instructions' => 'Stop the action execution if necessary',
|
284 |
+
'required' => 0,
|
285 |
+
'conditional_logic' => 0,
|
286 |
+
'wrapper' => array(
|
287 |
+
'width' => '',
|
288 |
+
'class' => '',
|
289 |
+
'id' => '',
|
290 |
+
),
|
291 |
+
'acfe_permissions' => '',
|
292 |
+
),
|
293 |
+
array(
|
294 |
+
'key' => 'field_acfe_form_redirect_action_tab_advanced_url',
|
295 |
+
'label' => 'Change Redirect URL',
|
296 |
+
'name' => 'acfe_form_redirect_action_tab_advanced_url',
|
297 |
+
'type' => 'acfe_dynamic_message',
|
298 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
299 |
+
'instructions' => '',
|
300 |
+
'required' => 0,
|
301 |
+
'conditional_logic' => 0,
|
302 |
+
'wrapper' => array(
|
303 |
+
'width' => '',
|
304 |
+
'class' => '',
|
305 |
+
'id' => '',
|
306 |
+
),
|
307 |
+
'acfe_permissions' => '',
|
308 |
+
),
|
309 |
+
|
310 |
+
),
|
311 |
+
'min' => '',
|
312 |
+
'max' => '',
|
313 |
+
);
|
314 |
+
|
315 |
+
return $layouts;
|
316 |
+
|
317 |
+
}
|
318 |
+
|
319 |
+
}
|
320 |
+
|
321 |
+
new acfe_form_redirect();
|
322 |
+
|
323 |
+
endif;
|
@@ -8,6 +8,8 @@ if(!class_exists('acfe_form_term')):
|
|
8 |
class acfe_form_term{
|
9 |
|
10 |
function __construct(){
|
|
|
|
|
11 |
|
12 |
/*
|
13 |
* Form
|
@@ -355,18 +357,35 @@ class acfe_form_term{
|
|
355 |
$term_object['permalink'] = get_term_link($_term_id, $term_object['taxonomy']);
|
356 |
$term_object['admin_url'] = admin_url('term.php?tag_ID=' . $_term_id . '&taxonomy=' . $term_object['taxonomy']);
|
357 |
|
358 |
-
|
359 |
-
$term_object =
|
360 |
-
$term_object =
|
|
|
361 |
|
362 |
-
//
|
363 |
-
$
|
|
|
|
|
364 |
|
|
|
|
|
|
|
365 |
if(!empty($action))
|
366 |
$query_var = $action;
|
367 |
-
|
368 |
-
// Set Query Var
|
369 |
set_query_var($query_var, $term_object);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
370 |
|
371 |
// Meta save
|
372 |
$save_meta = get_sub_field('acfe_form_term_save_meta');
|
@@ -429,34 +448,35 @@ class acfe_form_term{
|
|
429 |
$form_name = get_field('acfe_form_name', $field['value']);
|
430 |
|
431 |
?>You may use the following hooks:<br /><br />
|
432 |
-
|
433 |
add_filter('acfe/form/load/term_id', 'my_form_term_values_source', 10, 3);
|
434 |
add_filter('acfe/form/load/term_id/form=<?php echo $form_name; ?>', 'my_form_term_values_source', 10, 3);
|
435 |
-
add_filter('acfe/form/load/term_id/action=my-term-action', 'my_form_term_values_source', 10, 3);
|
436 |
-
</pre>
|
437 |
<br />
|
438 |
-
|
439 |
-
|
440 |
-
* @int $term_id
|
441 |
-
* @array $form
|
442 |
-
* @string $action
|
443 |
*/
|
444 |
add_filter('acfe/form/load/term_id/form=<?php echo $form_name; ?>', 'my_form_term_values_source', 10, 3);
|
445 |
function my_form_term_values_source($term_id, $form, $action){
|
446 |
-
|
447 |
-
|
448 |
-
*
|
449 |
*/
|
450 |
-
$
|
451 |
|
|
|
|
|
|
|
|
|
452 |
|
453 |
-
/**
|
454 |
-
* Return
|
455 |
-
*/
|
456 |
return $term_id;
|
457 |
|
458 |
-
}
|
459 |
-
|
|
|
460 |
|
461 |
}
|
462 |
|
@@ -468,53 +488,65 @@ function my_form_term_values_source($term_id, $form, $action){
|
|
468 |
$form_name = get_field('acfe_form_name', $field['value']);
|
469 |
|
470 |
?>You may use the following hooks:<br /><br />
|
471 |
-
|
472 |
add_filter('acfe/form/submit/term_args', 'my_form_term_args', 10, 4);
|
473 |
add_filter('acfe/form/submit/term_args/form=<?php echo $form_name; ?>', 'my_form_term_args', 10, 4);
|
474 |
-
add_filter('acfe/form/submit/term_args/action=my-term-action', 'my_form_term_args', 10, 4);
|
475 |
-
</pre>
|
476 |
<br />
|
477 |
-
|
478 |
-
|
479 |
-
* @array $args
|
480 |
-
* @string $type
|
481 |
-
* @array $form
|
482 |
-
* @string $action
|
483 |
*/
|
484 |
add_filter('acfe/form/submit/term_args/form=<?php echo $form_name; ?>', 'my_form_term_args', 10, 4);
|
485 |
function my_form_term_args($args, $type, $form, $action){
|
486 |
|
487 |
-
|
488 |
-
* Force specific description if the action type is 'insert_term'
|
489 |
-
*/
|
490 |
if($type === 'insert_term'){
|
491 |
|
492 |
$args['description'] = 'My term description';
|
493 |
|
494 |
}
|
495 |
|
496 |
-
|
497 |
-
/**
|
498 |
* Get the form input value named 'my_field'
|
499 |
* This is the value entered by the user during the form submission
|
500 |
*/
|
501 |
$my_field = get_field('my_field');
|
502 |
|
|
|
|
|
|
|
|
|
|
|
|
|
503 |
|
504 |
-
|
505 |
-
* Get
|
506 |
*/
|
507 |
-
$
|
508 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
509 |
|
510 |
-
/**
|
511 |
-
* Return arguments
|
512 |
-
* Note: Return false will stop post & meta insert/update
|
513 |
-
*/
|
514 |
return $args;
|
515 |
|
516 |
-
}
|
517 |
-
|
|
|
518 |
|
519 |
}
|
520 |
|
@@ -526,39 +558,896 @@ function my_form_term_args($args, $type, $form, $action){
|
|
526 |
$form_name = get_field('acfe_form_name', $field['value']);
|
527 |
|
528 |
?>You may use the following hooks:<br /><br />
|
529 |
-
|
530 |
add_action('acfe/form/submit/term', 'my_form_term_save', 10, 5);
|
531 |
add_action('acfe/form/submit/term/form=<?php echo $form_name; ?>', 'my_form_term_save', 10, 5);
|
532 |
-
add_action('acfe/form/submit/term/action=my-term-action', 'my_form_term_save', 10, 5);
|
533 |
-
</pre>
|
534 |
<br />
|
535 |
-
|
536 |
-
|
537 |
-
* @int $term_id
|
538 |
-
* @string $type
|
539 |
-
* @array $args
|
540 |
-
* @array $form
|
541 |
-
* @string $action
|
542 |
*
|
543 |
* Note: At this point the term is already saved into the database
|
544 |
*/
|
545 |
add_action('acfe/form/submit/term/form=<?php echo $form_name; ?>', 'my_form_term_save', 10, 5);
|
546 |
function my_form_term_save($term_id, $type, $args, $form, $action){
|
547 |
|
548 |
-
|
549 |
* Get the form input value named 'my_field'
|
550 |
* This is the value entered by the user during the form submission
|
551 |
*/
|
552 |
$my_field = get_field('my_field');
|
|
|
|
|
553 |
|
554 |
-
|
555 |
-
|
556 |
-
|
|
|
|
|
|
|
557 |
*/
|
558 |
-
$
|
|
|
|
|
559 |
|
560 |
-
|
561 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
562 |
|
563 |
}
|
564 |
|
8 |
class acfe_form_term{
|
9 |
|
10 |
function __construct(){
|
11 |
+
|
12 |
+
add_filter('acfe/form/actions', array($this, 'add_action'));
|
13 |
|
14 |
/*
|
15 |
* Form
|
357 |
$term_object['permalink'] = get_term_link($_term_id, $term_object['taxonomy']);
|
358 |
$term_object['admin_url'] = admin_url('term.php?tag_ID=' . $_term_id . '&taxonomy=' . $term_object['taxonomy']);
|
359 |
|
360 |
+
// Deprecated
|
361 |
+
$term_object = apply_filters_deprecated("acfe/form/query_var/term", array($term_object, $_term_id, $term_action, $args, $form, $action), '0.8.7.5', "acfe/form/output/term");
|
362 |
+
$term_object = apply_filters_deprecated("acfe/form/query_var/term/form={$form_name}", array($term_object, $_term_id, $term_action, $args, $form, $action), '0.8.7.5', "acfe/form/output/term/form={$form_name}");
|
363 |
+
$term_object = apply_filters_deprecated("acfe/form/query_var/term/action={$action}", array($term_object, $_term_id, $term_action, $args, $form, $action), '0.8.7.5', "acfe/form/output/term/action={$action}");
|
364 |
|
365 |
+
// Output
|
366 |
+
$term_object = apply_filters("acfe/form/output/term", $term_object, $_term_id, $term_action, $args, $form, $action);
|
367 |
+
$term_object = apply_filters("acfe/form/output/term/form={$form_name}", $term_object, $_term_id, $term_action, $args, $form, $action);
|
368 |
+
$term_object = apply_filters("acfe/form/output/term/action={$action}", $term_object, $_term_id, $term_action, $args, $form, $action);
|
369 |
|
370 |
+
// Old Query var
|
371 |
+
$query_var = acfe_form_unique_action_id($form, 'term');
|
372 |
+
|
373 |
if(!empty($action))
|
374 |
$query_var = $action;
|
375 |
+
|
|
|
376 |
set_query_var($query_var, $term_object);
|
377 |
+
// ------------------------------------------------------------
|
378 |
+
|
379 |
+
// Action Output
|
380 |
+
$actions = get_query_var('acfe_form_actions', array());
|
381 |
+
|
382 |
+
$actions['term'] = $term_object;
|
383 |
+
|
384 |
+
if(!empty($action))
|
385 |
+
$actions[$action] = $term_object;
|
386 |
+
|
387 |
+
set_query_var('acfe_form_actions', $actions);
|
388 |
+
// ------------------------------------------------------------
|
389 |
|
390 |
// Meta save
|
391 |
$save_meta = get_sub_field('acfe_form_term_save_meta');
|
448 |
$form_name = get_field('acfe_form_name', $field['value']);
|
449 |
|
450 |
?>You may use the following hooks:<br /><br />
|
451 |
+
<?php acfe_highlight(); ?>
|
452 |
add_filter('acfe/form/load/term_id', 'my_form_term_values_source', 10, 3);
|
453 |
add_filter('acfe/form/load/term_id/form=<?php echo $form_name; ?>', 'my_form_term_values_source', 10, 3);
|
454 |
+
add_filter('acfe/form/load/term_id/action=my-term-action', 'my_form_term_values_source', 10, 3);<?php acfe_highlight(); ?>
|
|
|
455 |
<br />
|
456 |
+
<?php acfe_highlight(); ?>
|
457 |
+
/*
|
458 |
+
* @int $term_id Term ID used as source
|
459 |
+
* @array $form The form settings
|
460 |
+
* @string $action The action alias name
|
461 |
*/
|
462 |
add_filter('acfe/form/load/term_id/form=<?php echo $form_name; ?>', 'my_form_term_values_source', 10, 3);
|
463 |
function my_form_term_values_source($term_id, $form, $action){
|
464 |
+
|
465 |
+
/*
|
466 |
+
* Retrieve Form Setting
|
467 |
*/
|
468 |
+
if($form['custom_key'] === 'custom_value'){
|
469 |
|
470 |
+
// Force to load values from the Term ID 45
|
471 |
+
$term_id = 45;
|
472 |
+
|
473 |
+
}
|
474 |
|
|
|
|
|
|
|
475 |
return $term_id;
|
476 |
|
477 |
+
}<?php acfe_highlight(); ?>
|
478 |
+
|
479 |
+
<?php
|
480 |
|
481 |
}
|
482 |
|
488 |
$form_name = get_field('acfe_form_name', $field['value']);
|
489 |
|
490 |
?>You may use the following hooks:<br /><br />
|
491 |
+
<?php acfe_highlight(); ?>
|
492 |
add_filter('acfe/form/submit/term_args', 'my_form_term_args', 10, 4);
|
493 |
add_filter('acfe/form/submit/term_args/form=<?php echo $form_name; ?>', 'my_form_term_args', 10, 4);
|
494 |
+
add_filter('acfe/form/submit/term_args/action=my-term-action', 'my_form_term_args', 10, 4);<?php acfe_highlight(); ?>
|
|
|
495 |
<br />
|
496 |
+
<?php acfe_highlight(); ?>
|
497 |
+
/*
|
498 |
+
* @array $args The generated term arguments
|
499 |
+
* @string $type Action type: 'insert_term' or 'update_term'
|
500 |
+
* @array $form The form settings
|
501 |
+
* @string $action The action alias name
|
502 |
*/
|
503 |
add_filter('acfe/form/submit/term_args/form=<?php echo $form_name; ?>', 'my_form_term_args', 10, 4);
|
504 |
function my_form_term_args($args, $type, $form, $action){
|
505 |
|
506 |
+
// Change Description if the Action Type is 'insert_term'
|
|
|
|
|
507 |
if($type === 'insert_term'){
|
508 |
|
509 |
$args['description'] = 'My term description';
|
510 |
|
511 |
}
|
512 |
|
513 |
+
/*
|
|
|
514 |
* Get the form input value named 'my_field'
|
515 |
* This is the value entered by the user during the form submission
|
516 |
*/
|
517 |
$my_field = get_field('my_field');
|
518 |
|
519 |
+
if($my_field === 'Company'){
|
520 |
+
|
521 |
+
// Change Description
|
522 |
+
$args['description'] = 'My term description';
|
523 |
+
|
524 |
+
}
|
525 |
|
526 |
+
/*
|
527 |
+
* Get previous Post Action output
|
528 |
*/
|
529 |
+
$prev_post_action = acfe_form_get_action('post');
|
530 |
|
531 |
+
if(!empty($prev_post_action)){
|
532 |
+
|
533 |
+
if($prev_post_action['post_title'] === 'Company'){
|
534 |
+
|
535 |
+
// Change Description
|
536 |
+
$args['description'] = 'My term description';
|
537 |
+
|
538 |
+
}
|
539 |
+
|
540 |
+
}
|
541 |
+
|
542 |
+
// Do not save Term
|
543 |
+
// return false;
|
544 |
|
|
|
|
|
|
|
|
|
545 |
return $args;
|
546 |
|
547 |
+
}<?php acfe_highlight(); ?>
|
548 |
+
|
549 |
+
<?php
|
550 |
|
551 |
}
|
552 |
|
558 |
$form_name = get_field('acfe_form_name', $field['value']);
|
559 |
|
560 |
?>You may use the following hooks:<br /><br />
|
561 |
+
<?php acfe_highlight(); ?>
|
562 |
add_action('acfe/form/submit/term', 'my_form_term_save', 10, 5);
|
563 |
add_action('acfe/form/submit/term/form=<?php echo $form_name; ?>', 'my_form_term_save', 10, 5);
|
564 |
+
add_action('acfe/form/submit/term/action=my-term-action', 'my_form_term_save', 10, 5);<?php acfe_highlight(); ?>
|
|
|
565 |
<br />
|
566 |
+
<?php acfe_highlight(); ?>
|
567 |
+
/*
|
568 |
+
* @int $term_id The targeted term ID
|
569 |
+
* @string $type Action type: 'insert_term' or 'update_term'
|
570 |
+
* @array $args The generated term arguments
|
571 |
+
* @array $form The form settings
|
572 |
+
* @string $action The action alias name
|
573 |
*
|
574 |
* Note: At this point the term is already saved into the database
|
575 |
*/
|
576 |
add_action('acfe/form/submit/term/form=<?php echo $form_name; ?>', 'my_form_term_save', 10, 5);
|
577 |
function my_form_term_save($term_id, $type, $args, $form, $action){
|
578 |
|
579 |
+
/*
|
580 |
* Get the form input value named 'my_field'
|
581 |
* This is the value entered by the user during the form submission
|
582 |
*/
|
583 |
$my_field = get_field('my_field');
|
584 |
+
|
585 |
+
if($my_field === 'Company'){
|
586 |
|
587 |
+
// do_something();
|
588 |
+
|
589 |
+
}
|
590 |
+
|
591 |
+
/*
|
592 |
+
* Get previous Post Action output
|
593 |
*/
|
594 |
+
$prev_post_action = acfe_form_get_action('post');
|
595 |
+
|
596 |
+
if(!empty($prev_post_action)){
|
597 |
|
598 |
+
if($prev_post_action['post_title'] === 'Company'){
|
599 |
+
|
600 |
+
// do_something();
|
601 |
+
|
602 |
+
}
|
603 |
+
|
604 |
+
}
|
605 |
+
|
606 |
+
}<?php acfe_highlight(); ?>
|
607 |
+
|
608 |
+
<?php
|
609 |
+
|
610 |
+
}
|
611 |
+
|
612 |
+
function add_action($layouts){
|
613 |
+
|
614 |
+
$layouts['layout_term'] = array(
|
615 |
+
'key' => 'layout_term',
|
616 |
+
'name' => 'term',
|
617 |
+
'label' => 'Term action',
|
618 |
+
'display' => 'row',
|
619 |
+
'sub_fields' => array(
|
620 |
+
|
621 |
+
/*
|
622 |
+
* Layout: Term Action
|
623 |
+
*/
|
624 |
+
array(
|
625 |
+
'key' => 'field_acfe_form_term_tab_action',
|
626 |
+
'label' => 'Action',
|
627 |
+
'name' => '',
|
628 |
+
'type' => 'tab',
|
629 |
+
'instructions' => '',
|
630 |
+
'required' => 0,
|
631 |
+
'conditional_logic' => 0,
|
632 |
+
'wrapper' => array(
|
633 |
+
'width' => '',
|
634 |
+
'class' => '',
|
635 |
+
'id' => '',
|
636 |
+
'data-no-preference' => true,
|
637 |
+
),
|
638 |
+
'acfe_permissions' => '',
|
639 |
+
'placement' => 'top',
|
640 |
+
'endpoint' => 0,
|
641 |
+
),
|
642 |
+
array(
|
643 |
+
'key' => 'acfe_form_term_action',
|
644 |
+
'label' => 'Action',
|
645 |
+
'name' => 'acfe_form_term_action',
|
646 |
+
'type' => 'radio',
|
647 |
+
'instructions' => '',
|
648 |
+
'required' => 0,
|
649 |
+
'conditional_logic' => 0,
|
650 |
+
'wrapper' => array(
|
651 |
+
'width' => '',
|
652 |
+
'class' => '',
|
653 |
+
'id' => '',
|
654 |
+
),
|
655 |
+
'acfe_permissions' => '',
|
656 |
+
'choices' => array(
|
657 |
+
'insert_term' => 'Create term',
|
658 |
+
'update_term' => 'Update term',
|
659 |
+
),
|
660 |
+
'default_value' => 'insert_term',
|
661 |
+
),
|
662 |
+
array(
|
663 |
+
'key' => 'field_acfe_form_term_custom_alias',
|
664 |
+
'label' => 'Action name',
|
665 |
+
'name' => 'acfe_form_custom_alias',
|
666 |
+
'type' => 'acfe_slug',
|
667 |
+
'instructions' => '(Optional) Target this action using hooks.',
|
668 |
+
'required' => 0,
|
669 |
+
'conditional_logic' => 0,
|
670 |
+
'wrapper' => array(
|
671 |
+
'width' => '',
|
672 |
+
'class' => '',
|
673 |
+
'id' => '',
|
674 |
+
'data-instruction-placement' => 'field'
|
675 |
+
),
|
676 |
+
'acfe_permissions' => '',
|
677 |
+
'default_value' => '',
|
678 |
+
'placeholder' => 'Term',
|
679 |
+
'prepend' => '',
|
680 |
+
'append' => '',
|
681 |
+
'maxlength' => '',
|
682 |
+
),
|
683 |
+
|
684 |
+
/*
|
685 |
+
* Layout: Term Save
|
686 |
+
*/
|
687 |
+
array(
|
688 |
+
'key' => 'field_acfe_form_term_tab_save',
|
689 |
+
'label' => 'Save',
|
690 |
+
'name' => '',
|
691 |
+
'type' => 'tab',
|
692 |
+
'instructions' => '',
|
693 |
+
'required' => 0,
|
694 |
+
'conditional_logic' => 0,
|
695 |
+
'wrapper' => array(
|
696 |
+
'width' => '',
|
697 |
+
'class' => '',
|
698 |
+
'id' => '',
|
699 |
+
),
|
700 |
+
'acfe_permissions' => '',
|
701 |
+
'placement' => 'top',
|
702 |
+
'endpoint' => 0,
|
703 |
+
),
|
704 |
+
array(
|
705 |
+
'key' => 'field_acfe_form_term_save_target',
|
706 |
+
'label' => 'Target',
|
707 |
+
'name' => 'acfe_form_term_save_target',
|
708 |
+
'type' => 'select',
|
709 |
+
'instructions' => '',
|
710 |
+
'required' => 0,
|
711 |
+
'conditional_logic' => array(
|
712 |
+
array(
|
713 |
+
array(
|
714 |
+
'field' => 'acfe_form_term_action',
|
715 |
+
'operator' => '==',
|
716 |
+
'value' => 'update_term',
|
717 |
+
),
|
718 |
+
),
|
719 |
+
),
|
720 |
+
'wrapper' => array(
|
721 |
+
'width' => '',
|
722 |
+
'class' => '',
|
723 |
+
'id' => '',
|
724 |
+
'data-instruction-placement' => 'field'
|
725 |
+
),
|
726 |
+
'acfe_permissions' => '',
|
727 |
+
'choices' => array(
|
728 |
+
),
|
729 |
+
'default_value' => 'current_term',
|
730 |
+
'allow_null' => 0,
|
731 |
+
'multiple' => 0,
|
732 |
+
'ui' => 1,
|
733 |
+
'ajax' => 0,
|
734 |
+
'return_format' => 'value',
|
735 |
+
'placeholder' => '',
|
736 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
737 |
+
'allow_custom' => 1,
|
738 |
+
),
|
739 |
+
array(
|
740 |
+
'key' => 'field_acfe_form_term_save_name',
|
741 |
+
'label' => 'Name',
|
742 |
+
'name' => 'acfe_form_term_save_name',
|
743 |
+
'type' => 'select',
|
744 |
+
'instructions' => '',
|
745 |
+
'required' => 0,
|
746 |
+
'wrapper' => array(
|
747 |
+
'width' => '',
|
748 |
+
'class' => '',
|
749 |
+
'id' => '',
|
750 |
+
),
|
751 |
+
'acfe_permissions' => '',
|
752 |
+
'choices' => array(),
|
753 |
+
'default_value' => array(
|
754 |
+
),
|
755 |
+
'allow_null' => 1,
|
756 |
+
'multiple' => 0,
|
757 |
+
'ui' => 1,
|
758 |
+
'return_format' => 'value',
|
759 |
+
'placeholder' => 'Default',
|
760 |
+
'ajax' => 0,
|
761 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
762 |
+
'allow_custom' => 1,
|
763 |
+
'conditional_logic' => array(
|
764 |
+
array(
|
765 |
+
array(
|
766 |
+
'field' => 'field_acfe_form_term_map_name',
|
767 |
+
'operator' => '==empty',
|
768 |
+
),
|
769 |
+
),
|
770 |
+
),
|
771 |
+
),
|
772 |
+
array(
|
773 |
+
'key' => 'field_acfe_form_term_map_name_message',
|
774 |
+
'label' => 'Name',
|
775 |
+
'name' => 'acfe_form_term_map_name_message',
|
776 |
+
'type' => 'acfe_dynamic_message',
|
777 |
+
'instructions' => '',
|
778 |
+
'required' => 0,
|
779 |
+
'conditional_logic' => array(
|
780 |
+
array(
|
781 |
+
array(
|
782 |
+
'field' => 'field_acfe_form_term_map_name',
|
783 |
+
'operator' => '!=empty',
|
784 |
+
),
|
785 |
+
),
|
786 |
+
),
|
787 |
+
'wrapper' => array(
|
788 |
+
'width' => '',
|
789 |
+
'class' => '',
|
790 |
+
'id' => '',
|
791 |
+
),
|
792 |
+
'acfe_permissions' => '',
|
793 |
+
),
|
794 |
+
array(
|
795 |
+
'key' => 'field_acfe_form_term_save_slug',
|
796 |
+
'label' => 'Slug',
|
797 |
+
'name' => 'acfe_form_term_save_slug',
|
798 |
+
'type' => 'select',
|
799 |
+
'instructions' => '',
|
800 |
+
'required' => 0,
|
801 |
+
'wrapper' => array(
|
802 |
+
'width' => '',
|
803 |
+
'class' => '',
|
804 |
+
'id' => '',
|
805 |
+
),
|
806 |
+
'acfe_permissions' => '',
|
807 |
+
'choices' => array(),
|
808 |
+
'default_value' => array(
|
809 |
+
),
|
810 |
+
'allow_null' => 1,
|
811 |
+
'multiple' => 0,
|
812 |
+
'ui' => 1,
|
813 |
+
'return_format' => 'value',
|
814 |
+
'placeholder' => 'Default',
|
815 |
+
'ajax' => 0,
|
816 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
817 |
+
'allow_custom' => 1,
|
818 |
+
'conditional_logic' => array(
|
819 |
+
array(
|
820 |
+
array(
|
821 |
+
'field' => 'field_acfe_form_term_map_slug',
|
822 |
+
'operator' => '==empty',
|
823 |
+
),
|
824 |
+
),
|
825 |
+
),
|
826 |
+
),
|
827 |
+
array(
|
828 |
+
'key' => 'field_acfe_form_term_map_slug_message',
|
829 |
+
'label' => 'Slug',
|
830 |
+
'name' => 'acfe_form_term_map_slug_message',
|
831 |
+
'type' => 'acfe_dynamic_message',
|
832 |
+
'instructions' => '',
|
833 |
+
'required' => 0,
|
834 |
+
'conditional_logic' => array(
|
835 |
+
array(
|
836 |
+
array(
|
837 |
+
'field' => 'field_acfe_form_term_map_slug',
|
838 |
+
'operator' => '!=empty',
|
839 |
+
),
|
840 |
+
),
|
841 |
+
),
|
842 |
+
'wrapper' => array(
|
843 |
+
'width' => '',
|
844 |
+
'class' => '',
|
845 |
+
'id' => '',
|
846 |
+
),
|
847 |
+
'acfe_permissions' => '',
|
848 |
+
),
|
849 |
+
array(
|
850 |
+
'key' => 'field_acfe_form_term_save_taxonomy',
|
851 |
+
'label' => 'Taxonomy',
|
852 |
+
'name' => 'acfe_form_term_save_taxonomy',
|
853 |
+
'type' => 'acfe_taxonomies',
|
854 |
+
'instructions' => '',
|
855 |
+
'required' => 0,
|
856 |
+
'conditional_logic' => array(
|
857 |
+
array(
|
858 |
+
array(
|
859 |
+
'field' => 'field_acfe_form_term_map_taxonomy',
|
860 |
+
'operator' => '==empty',
|
861 |
+
),
|
862 |
+
),
|
863 |
+
),
|
864 |
+
'wrapper' => array(
|
865 |
+
'width' => '',
|
866 |
+
'class' => '',
|
867 |
+
'id' => '',
|
868 |
+
),
|
869 |
+
'acfe_permissions' => '',
|
870 |
+
'taxonomy' => '',
|
871 |
+
'field_type' => 'select',
|
872 |
+
'default_value' => '',
|
873 |
+
'return_format' => 'name',
|
874 |
+
'allow_null' => 1,
|
875 |
+
'placeholder' => 'Default',
|
876 |
+
'multiple' => 0,
|
877 |
+
'ui' => 1,
|
878 |
+
'choices' => array(
|
879 |
+
),
|
880 |
+
'ajax' => 0,
|
881 |
+
'layout' => '',
|
882 |
+
'toggle' => 0,
|
883 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
884 |
+
'allow_custom' => 1,
|
885 |
+
),
|
886 |
+
array(
|
887 |
+
'key' => 'field_acfe_form_term_map_taxonomy_message',
|
888 |
+
'label' => 'Taxonomy',
|
889 |
+
'name' => 'acfe_form_term_map_taxonomy_message',
|
890 |
+
'type' => 'acfe_dynamic_message',
|
891 |
+
'instructions' => '',
|
892 |
+
'required' => 0,
|
893 |
+
'conditional_logic' => array(
|
894 |
+
array(
|
895 |
+
array(
|
896 |
+
'field' => 'field_acfe_form_term_map_taxonomy',
|
897 |
+
'operator' => '!=empty',
|
898 |
+
),
|
899 |
+
),
|
900 |
+
),
|
901 |
+
'wrapper' => array(
|
902 |
+
'width' => '',
|
903 |
+
'class' => '',
|
904 |
+
'id' => '',
|
905 |
+
),
|
906 |
+
'acfe_permissions' => '',
|
907 |
+
),
|
908 |
+
array(
|
909 |
+
'key' => 'field_acfe_form_term_save_parent',
|
910 |
+
'label' => 'Parent',
|
911 |
+
'name' => 'acfe_form_term_save_parent',
|
912 |
+
'type' => 'select',
|
913 |
+
'instructions' => '',
|
914 |
+
'required' => 0,
|
915 |
+
'conditional_logic' => array(
|
916 |
+
array(
|
917 |
+
array(
|
918 |
+
'field' => 'field_acfe_form_term_map_parent',
|
919 |
+
'operator' => '==empty',
|
920 |
+
),
|
921 |
+
),
|
922 |
+
),
|
923 |
+
'wrapper' => array(
|
924 |
+
'width' => '',
|
925 |
+
'class' => '',
|
926 |
+
'id' => '',
|
927 |
+
),
|
928 |
+
'acfe_permissions' => '',
|
929 |
+
'choices' => array(
|
930 |
+
),
|
931 |
+
'default_value' => array(
|
932 |
+
),
|
933 |
+
'allow_null' => 1,
|
934 |
+
'multiple' => 0,
|
935 |
+
'ui' => 1,
|
936 |
+
'ajax' => 0,
|
937 |
+
'return_format' => 'value',
|
938 |
+
'placeholder' => 'Default',
|
939 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
940 |
+
'allow_custom' => 1,
|
941 |
+
),
|
942 |
+
array(
|
943 |
+
'key' => 'field_acfe_form_term_map_parent_message',
|
944 |
+
'label' => 'Parent',
|
945 |
+
'name' => 'acfe_form_term_map_parent_message',
|
946 |
+
'type' => 'acfe_dynamic_message',
|
947 |
+
'instructions' => '',
|
948 |
+
'required' => 0,
|
949 |
+
'conditional_logic' => array(
|
950 |
+
array(
|
951 |
+
array(
|
952 |
+
'field' => 'field_acfe_form_term_map_parent',
|
953 |
+
'operator' => '!=empty',
|
954 |
+
),
|
955 |
+
),
|
956 |
+
),
|
957 |
+
'wrapper' => array(
|
958 |
+
'width' => '',
|
959 |
+
'class' => '',
|
960 |
+
'id' => '',
|
961 |
+
),
|
962 |
+
'acfe_permissions' => '',
|
963 |
+
),
|
964 |
+
array(
|
965 |
+
'key' => 'field_acfe_form_term_save_description_group',
|
966 |
+
'label' => 'Description',
|
967 |
+
'name' => 'acfe_form_term_save_description_group',
|
968 |
+
'type' => 'group',
|
969 |
+
'instructions' => '',
|
970 |
+
'required' => 0,
|
971 |
+
'conditional_logic' => array(
|
972 |
+
array(
|
973 |
+
array(
|
974 |
+
'field' => 'field_acfe_form_term_map_description',
|
975 |
+
'operator' => '==empty',
|
976 |
+
),
|
977 |
+
),
|
978 |
+
),
|
979 |
+
'wrapper' => array(
|
980 |
+
'width' => '',
|
981 |
+
'class' => '',
|
982 |
+
'id' => '',
|
983 |
+
),
|
984 |
+
'acfe_permissions' => '',
|
985 |
+
'layout' => 'block',
|
986 |
+
'acfe_seamless_style' => true,
|
987 |
+
'acfe_group_modal' => 0,
|
988 |
+
'sub_fields' => array(
|
989 |
+
array(
|
990 |
+
'key' => 'field_acfe_form_term_save_description',
|
991 |
+
'label' => '',
|
992 |
+
'name' => 'acfe_form_term_save_description',
|
993 |
+
'type' => 'select',
|
994 |
+
'instructions' => '',
|
995 |
+
'required' => 0,
|
996 |
+
'conditional_logic' => 0,
|
997 |
+
'wrapper' => array(
|
998 |
+
'width' => '',
|
999 |
+
'class' => '',
|
1000 |
+
'id' => '',
|
1001 |
+
),
|
1002 |
+
'acfe_permissions' => '',
|
1003 |
+
'choices' => array(
|
1004 |
+
'custom' => 'WYSIWYG Editor',
|
1005 |
+
),
|
1006 |
+
'default_value' => array(
|
1007 |
+
),
|
1008 |
+
'allow_null' => 1,
|
1009 |
+
'multiple' => 0,
|
1010 |
+
'ui' => 1,
|
1011 |
+
'return_format' => 'value',
|
1012 |
+
'placeholder' => 'Default',
|
1013 |
+
'ajax' => 0,
|
1014 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1015 |
+
'allow_custom' => 1,
|
1016 |
+
),
|
1017 |
+
array(
|
1018 |
+
'key' => 'field_acfe_form_term_save_description_custom',
|
1019 |
+
'label' => '',
|
1020 |
+
'name' => 'acfe_form_term_save_description_custom',
|
1021 |
+
'type' => 'wysiwyg',
|
1022 |
+
'instructions' => '',
|
1023 |
+
'required' => 1,
|
1024 |
+
'conditional_logic' => array(
|
1025 |
+
array(
|
1026 |
+
array(
|
1027 |
+
'field' => 'field_acfe_form_term_save_description',
|
1028 |
+
'operator' => '==',
|
1029 |
+
'value' => 'custom',
|
1030 |
+
),
|
1031 |
+
),
|
1032 |
+
),
|
1033 |
+
'wrapper' => array(
|
1034 |
+
'width' => '',
|
1035 |
+
'class' => '',
|
1036 |
+
'id' => '',
|
1037 |
+
),
|
1038 |
+
'acfe_permissions' => '',
|
1039 |
+
'default_value' => '',
|
1040 |
+
'tabs' => 'all',
|
1041 |
+
'toolbar' => 'full',
|
1042 |
+
'media_upload' => 1,
|
1043 |
+
'delay' => 0,
|
1044 |
+
),
|
1045 |
+
),
|
1046 |
+
),
|
1047 |
+
array(
|
1048 |
+
'key' => 'field_acfe_form_term_map_description_message',
|
1049 |
+
'label' => 'Description',
|
1050 |
+
'name' => 'acfe_form_term_map_description_message',
|
1051 |
+
'type' => 'acfe_dynamic_message',
|
1052 |
+
'instructions' => '',
|
1053 |
+
'required' => 0,
|
1054 |
+
'conditional_logic' => array(
|
1055 |
+
array(
|
1056 |
+
array(
|
1057 |
+
'field' => 'field_acfe_form_term_map_description',
|
1058 |
+
'operator' => '!=empty',
|
1059 |
+
),
|
1060 |
+
),
|
1061 |
+
),
|
1062 |
+
'wrapper' => array(
|
1063 |
+
'width' => '',
|
1064 |
+
'class' => '',
|
1065 |
+
'id' => '',
|
1066 |
+
),
|
1067 |
+
'acfe_permissions' => '',
|
1068 |
+
),
|
1069 |
+
array(
|
1070 |
+
'key' => 'field_acfe_form_term_save_meta',
|
1071 |
+
'label' => 'Save ACF fields',
|
1072 |
+
'name' => 'acfe_form_term_save_meta',
|
1073 |
+
'type' => 'checkbox',
|
1074 |
+
'instructions' => 'Choose which ACF fields should be saved to this term',
|
1075 |
+
'required' => 0,
|
1076 |
+
'conditional_logic' => 0,
|
1077 |
+
'wrapper' => array(
|
1078 |
+
'width' => '',
|
1079 |
+
'class' => '',
|
1080 |
+
'id' => '',
|
1081 |
+
),
|
1082 |
+
'acfe_permissions' => '',
|
1083 |
+
'choices' => array(
|
1084 |
+
),
|
1085 |
+
'allow_custom' => 0,
|
1086 |
+
'default_value' => array(
|
1087 |
+
),
|
1088 |
+
'layout' => 'vertical',
|
1089 |
+
'toggle' => 1,
|
1090 |
+
'return_format' => 'value',
|
1091 |
+
'save_custom' => 0,
|
1092 |
+
),
|
1093 |
+
|
1094 |
+
/*
|
1095 |
+
* Layout: Term Load
|
1096 |
+
*/
|
1097 |
+
array(
|
1098 |
+
'key' => 'field_acfe_form_term_tab_load',
|
1099 |
+
'label' => 'Load',
|
1100 |
+
'name' => '',
|
1101 |
+
'type' => 'tab',
|
1102 |
+
'instructions' => '',
|
1103 |
+
'required' => 0,
|
1104 |
+
'conditional_logic' => 0,
|
1105 |
+
'wrapper' => array(
|
1106 |
+
'width' => '',
|
1107 |
+
'class' => '',
|
1108 |
+
'id' => '',
|
1109 |
+
),
|
1110 |
+
'acfe_permissions' => '',
|
1111 |
+
'placement' => 'top',
|
1112 |
+
'endpoint' => 0,
|
1113 |
+
),
|
1114 |
+
array(
|
1115 |
+
'key' => 'field_acfe_form_term_load_values',
|
1116 |
+
'label' => 'Load Values',
|
1117 |
+
'name' => 'acfe_form_term_load_values',
|
1118 |
+
'type' => 'true_false',
|
1119 |
+
'instructions' => 'Fill inputs with values',
|
1120 |
+
'required' => 0,
|
1121 |
+
'conditional_logic' => 0,
|
1122 |
+
'wrapper' => array(
|
1123 |
+
'width' => '',
|
1124 |
+
'class' => '',
|
1125 |
+
'id' => '',
|
1126 |
+
),
|
1127 |
+
'acfe_permissions' => '',
|
1128 |
+
'message' => '',
|
1129 |
+
'default_value' => 0,
|
1130 |
+
'ui' => 1,
|
1131 |
+
'ui_on_text' => '',
|
1132 |
+
'ui_off_text' => '',
|
1133 |
+
),
|
1134 |
+
array(
|
1135 |
+
'key' => 'field_acfe_form_term_load_source',
|
1136 |
+
'label' => 'Source',
|
1137 |
+
'name' => 'acfe_form_term_load_source',
|
1138 |
+
'type' => 'select',
|
1139 |
+
'instructions' => '',
|
1140 |
+
'required' => 0,
|
1141 |
+
'conditional_logic' => array(
|
1142 |
+
array(
|
1143 |
+
array(
|
1144 |
+
'field' => 'field_acfe_form_term_load_values',
|
1145 |
+
'operator' => '==',
|
1146 |
+
'value' => '1',
|
1147 |
+
),
|
1148 |
+
),
|
1149 |
+
),
|
1150 |
+
'wrapper' => array(
|
1151 |
+
'width' => '',
|
1152 |
+
'class' => '',
|
1153 |
+
'id' => '',
|
1154 |
+
'data-instruction-placement' => 'field'
|
1155 |
+
),
|
1156 |
+
'acfe_permissions' => '',
|
1157 |
+
'choices' => array(
|
1158 |
+
),
|
1159 |
+
'default_value' => 'current_term',
|
1160 |
+
'allow_null' => 0,
|
1161 |
+
'multiple' => 0,
|
1162 |
+
'ui' => 1,
|
1163 |
+
'ajax' => 0,
|
1164 |
+
'return_format' => 'value',
|
1165 |
+
'placeholder' => '',
|
1166 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1167 |
+
'allow_custom' => 1,
|
1168 |
+
),
|
1169 |
+
array(
|
1170 |
+
'key' => 'field_acfe_form_term_map_name',
|
1171 |
+
'label' => 'Name',
|
1172 |
+
'name' => 'acfe_form_term_map_name',
|
1173 |
+
'type' => 'select',
|
1174 |
+
'instructions' => '',
|
1175 |
+
'required' => 0,
|
1176 |
+
'wrapper' => array(
|
1177 |
+
'width' => '',
|
1178 |
+
'class' => '',
|
1179 |
+
'id' => '',
|
1180 |
+
),
|
1181 |
+
'acfe_permissions' => '',
|
1182 |
+
'choices' => array(
|
1183 |
+
),
|
1184 |
+
'default_value' => array(
|
1185 |
+
),
|
1186 |
+
'allow_null' => 1,
|
1187 |
+
'multiple' => 0,
|
1188 |
+
'ui' => 1,
|
1189 |
+
'return_format' => 'value',
|
1190 |
+
'placeholder' => 'Default',
|
1191 |
+
'ajax' => 0,
|
1192 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1193 |
+
'allow_custom' => 1,
|
1194 |
+
'conditional_logic' => array(
|
1195 |
+
array(
|
1196 |
+
array(
|
1197 |
+
'field' => 'field_acfe_form_term_load_values',
|
1198 |
+
'operator' => '==',
|
1199 |
+
'value' => '1',
|
1200 |
+
),
|
1201 |
+
),
|
1202 |
+
),
|
1203 |
+
),
|
1204 |
+
array(
|
1205 |
+
'key' => 'field_acfe_form_term_map_slug',
|
1206 |
+
'label' => 'Slug',
|
1207 |
+
'name' => 'acfe_form_term_map_slug',
|
1208 |
+
'type' => 'select',
|
1209 |
+
'instructions' => '',
|
1210 |
+
'required' => 0,
|
1211 |
+
'wrapper' => array(
|
1212 |
+
'width' => '',
|
1213 |
+
'class' => '',
|
1214 |
+
'id' => '',
|
1215 |
+
),
|
1216 |
+
'acfe_permissions' => '',
|
1217 |
+
'choices' => array(
|
1218 |
+
),
|
1219 |
+
'default_value' => array(
|
1220 |
+
),
|
1221 |
+
'allow_null' => 1,
|
1222 |
+
'multiple' => 0,
|
1223 |
+
'ui' => 1,
|
1224 |
+
'return_format' => 'value',
|
1225 |
+
'placeholder' => 'Default',
|
1226 |
+
'ajax' => 0,
|
1227 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1228 |
+
'allow_custom' => 1,
|
1229 |
+
'conditional_logic' => array(
|
1230 |
+
array(
|
1231 |
+
array(
|
1232 |
+
'field' => 'field_acfe_form_term_load_values',
|
1233 |
+
'operator' => '==',
|
1234 |
+
'value' => '1',
|
1235 |
+
),
|
1236 |
+
),
|
1237 |
+
),
|
1238 |
+
),
|
1239 |
+
array(
|
1240 |
+
'key' => 'field_acfe_form_term_map_taxonomy',
|
1241 |
+
'label' => 'Taxonomy',
|
1242 |
+
'name' => 'acfe_form_term_map_taxonomy',
|
1243 |
+
'type' => 'select',
|
1244 |
+
'instructions' => '',
|
1245 |
+
'required' => 0,
|
1246 |
+
'wrapper' => array(
|
1247 |
+
'width' => '',
|
1248 |
+
'class' => '',
|
1249 |
+
'id' => '',
|
1250 |
+
),
|
1251 |
+
'acfe_permissions' => '',
|
1252 |
+
'choices' => array(
|
1253 |
+
),
|
1254 |
+
'default_value' => array(
|
1255 |
+
),
|
1256 |
+
'allow_null' => 1,
|
1257 |
+
'multiple' => 0,
|
1258 |
+
'ui' => 1,
|
1259 |
+
'return_format' => 'value',
|
1260 |
+
'placeholder' => 'Default',
|
1261 |
+
'ajax' => 0,
|
1262 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1263 |
+
'allow_custom' => 1,
|
1264 |
+
'conditional_logic' => array(
|
1265 |
+
array(
|
1266 |
+
array(
|
1267 |
+
'field' => 'field_acfe_form_term_load_values',
|
1268 |
+
'operator' => '==',
|
1269 |
+
'value' => '1',
|
1270 |
+
),
|
1271 |
+
),
|
1272 |
+
),
|
1273 |
+
),
|
1274 |
+
array(
|
1275 |
+
'key' => 'field_acfe_form_term_map_parent',
|
1276 |
+
'label' => 'Parent',
|
1277 |
+
'name' => 'acfe_form_term_map_parent',
|
1278 |
+
'type' => 'select',
|
1279 |
+
'instructions' => '',
|
1280 |
+
'required' => 0,
|
1281 |
+
'wrapper' => array(
|
1282 |
+
'width' => '',
|
1283 |
+
'class' => '',
|
1284 |
+
'id' => '',
|
1285 |
+
),
|
1286 |
+
'acfe_permissions' => '',
|
1287 |
+
'choices' => array(
|
1288 |
+
),
|
1289 |
+
'default_value' => array(
|
1290 |
+
),
|
1291 |
+
'allow_null' => 1,
|
1292 |
+
'multiple' => 0,
|
1293 |
+
'ui' => 1,
|
1294 |
+
'return_format' => 'value',
|
1295 |
+
'placeholder' => 'Default',
|
1296 |
+
'ajax' => 0,
|
1297 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1298 |
+
'allow_custom' => 1,
|
1299 |
+
'conditional_logic' => array(
|
1300 |
+
array(
|
1301 |
+
array(
|
1302 |
+
'field' => 'field_acfe_form_term_load_values',
|
1303 |
+
'operator' => '==',
|
1304 |
+
'value' => '1',
|
1305 |
+
),
|
1306 |
+
),
|
1307 |
+
),
|
1308 |
+
),
|
1309 |
+
array(
|
1310 |
+
'key' => 'field_acfe_form_term_map_description',
|
1311 |
+
'label' => 'Description',
|
1312 |
+
'name' => 'acfe_form_term_map_description',
|
1313 |
+
'type' => 'select',
|
1314 |
+
'instructions' => '',
|
1315 |
+
'required' => 0,
|
1316 |
+
'wrapper' => array(
|
1317 |
+
'width' => '',
|
1318 |
+
'class' => '',
|
1319 |
+
'id' => '',
|
1320 |
+
),
|
1321 |
+
'acfe_permissions' => '',
|
1322 |
+
'choices' => array(
|
1323 |
+
),
|
1324 |
+
'default_value' => array(
|
1325 |
+
),
|
1326 |
+
'allow_null' => 1,
|
1327 |
+
'multiple' => 0,
|
1328 |
+
'ui' => 1,
|
1329 |
+
'return_format' => 'value',
|
1330 |
+
'placeholder' => 'Default',
|
1331 |
+
'ajax' => 0,
|
1332 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1333 |
+
'allow_custom' => 1,
|
1334 |
+
'conditional_logic' => array(
|
1335 |
+
array(
|
1336 |
+
array(
|
1337 |
+
'field' => 'field_acfe_form_term_load_values',
|
1338 |
+
'operator' => '==',
|
1339 |
+
'value' => '1',
|
1340 |
+
),
|
1341 |
+
),
|
1342 |
+
),
|
1343 |
+
),
|
1344 |
+
array(
|
1345 |
+
'key' => 'field_acfe_form_term_load_meta',
|
1346 |
+
'label' => 'Load ACF fields',
|
1347 |
+
'name' => 'acfe_form_term_load_meta',
|
1348 |
+
'type' => 'checkbox',
|
1349 |
+
'instructions' => 'Choose which ACF fields should have their values loaded',
|
1350 |
+
'required' => 0,
|
1351 |
+
'conditional_logic' => array(
|
1352 |
+
array(
|
1353 |
+
array(
|
1354 |
+
'field' => 'field_acfe_form_term_load_values',
|
1355 |
+
'operator' => '==',
|
1356 |
+
'value' => '1',
|
1357 |
+
),
|
1358 |
+
),
|
1359 |
+
),
|
1360 |
+
'wrapper' => array(
|
1361 |
+
'width' => '',
|
1362 |
+
'class' => '',
|
1363 |
+
'id' => '',
|
1364 |
+
),
|
1365 |
+
'acfe_permissions' => '',
|
1366 |
+
'choices' => array(
|
1367 |
+
),
|
1368 |
+
'allow_custom' => 0,
|
1369 |
+
'default_value' => array(
|
1370 |
+
),
|
1371 |
+
'layout' => 'vertical',
|
1372 |
+
'toggle' => 1,
|
1373 |
+
'return_format' => 'value',
|
1374 |
+
'save_custom' => 0,
|
1375 |
+
),
|
1376 |
+
|
1377 |
+
/*
|
1378 |
+
* Layout: Term Advanced
|
1379 |
+
*/
|
1380 |
+
array(
|
1381 |
+
'key' => 'field_acfe_form_term_tab_advanced',
|
1382 |
+
'label' => 'Code',
|
1383 |
+
'name' => '',
|
1384 |
+
'type' => 'tab',
|
1385 |
+
'instructions' => '',
|
1386 |
+
'required' => 0,
|
1387 |
+
'conditional_logic' => 0,
|
1388 |
+
'wrapper' => array(
|
1389 |
+
'width' => '',
|
1390 |
+
'class' => '',
|
1391 |
+
'id' => '',
|
1392 |
+
),
|
1393 |
+
'acfe_permissions' => '',
|
1394 |
+
'placement' => 'top',
|
1395 |
+
'endpoint' => 0,
|
1396 |
+
),
|
1397 |
+
array(
|
1398 |
+
'key' => 'field_acfe_form_term_advanced_load',
|
1399 |
+
'label' => 'Change values source',
|
1400 |
+
'name' => 'acfe_form_term_advanced_load',
|
1401 |
+
'type' => 'acfe_dynamic_message',
|
1402 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
1403 |
+
'instructions' => 'Alter the term ID where meta values are loaded from',
|
1404 |
+
'required' => 0,
|
1405 |
+
'conditional_logic' => 0,
|
1406 |
+
'wrapper' => array(
|
1407 |
+
'width' => '',
|
1408 |
+
'class' => '',
|
1409 |
+
'id' => '',
|
1410 |
+
),
|
1411 |
+
'acfe_permissions' => '',
|
1412 |
+
),
|
1413 |
+
array(
|
1414 |
+
'key' => 'field_acfe_form_term_advanced_save_args',
|
1415 |
+
'label' => 'Change term arguments',
|
1416 |
+
'name' => 'acfe_form_term_advanced_save_args',
|
1417 |
+
'type' => 'acfe_dynamic_message',
|
1418 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
1419 |
+
'instructions' => 'Alter the term arguments before database insert/update',
|
1420 |
+
'required' => 0,
|
1421 |
+
'conditional_logic' => 0,
|
1422 |
+
'wrapper' => array(
|
1423 |
+
'width' => '',
|
1424 |
+
'class' => '',
|
1425 |
+
'id' => '',
|
1426 |
+
),
|
1427 |
+
'acfe_permissions' => '',
|
1428 |
+
),
|
1429 |
+
array(
|
1430 |
+
'key' => 'field_acfe_form_term_advanced_save',
|
1431 |
+
'label' => 'Add custom action on term save',
|
1432 |
+
'name' => 'acfe_form_term_advanced_save',
|
1433 |
+
'type' => 'acfe_dynamic_message',
|
1434 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
1435 |
+
'instructions' => 'This action allows you to hook in before or after the meta data have been saved',
|
1436 |
+
'required' => 0,
|
1437 |
+
'conditional_logic' => 0,
|
1438 |
+
'wrapper' => array(
|
1439 |
+
'width' => '',
|
1440 |
+
'class' => '',
|
1441 |
+
'id' => '',
|
1442 |
+
),
|
1443 |
+
'acfe_permissions' => '',
|
1444 |
+
),
|
1445 |
+
),
|
1446 |
+
'min' => '',
|
1447 |
+
'max' => '',
|
1448 |
+
);
|
1449 |
+
|
1450 |
+
return $layouts;
|
1451 |
|
1452 |
}
|
1453 |
|
@@ -8,6 +8,8 @@ if(!class_exists('acfe_form_user')):
|
|
8 |
class acfe_form_user{
|
9 |
|
10 |
function __construct(){
|
|
|
|
|
11 |
|
12 |
/*
|
13 |
* Form
|
@@ -827,19 +829,36 @@ class acfe_form_user{
|
|
827 |
$user_array['user_pass'] = $args['user_pass'];
|
828 |
|
829 |
}
|
830 |
-
|
831 |
-
|
832 |
-
$user_array =
|
833 |
-
$user_array =
|
|
|
|
|
|
|
|
|
|
|
|
|
834 |
|
835 |
-
// Query var
|
836 |
$query_var = acfe_form_unique_action_id($form, 'user');
|
837 |
-
|
838 |
if(!empty($action))
|
839 |
$query_var = $action;
|
840 |
|
841 |
-
// Set Query Var
|
842 |
set_query_var($query_var, $user_array);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
843 |
|
844 |
}
|
845 |
|
@@ -917,23 +936,24 @@ add_filter('acfe/form/load/user_id/action=my-user-action', 'my_form_user_values_
|
|
917 |
</pre>
|
918 |
<br />
|
919 |
<pre>
|
920 |
-
|
921 |
-
* @int $user_id
|
922 |
-
* @array $form
|
923 |
-
* @string $action
|
924 |
*/
|
925 |
add_filter('acfe/form/load/user_id/form=<?php echo $form_name; ?>', 'my_form_user_values_source', 10, 3);
|
926 |
function my_form_user_values_source($user_id, $form, $action){
|
927 |
|
928 |
-
|
929 |
-
*
|
930 |
*/
|
931 |
-
$
|
932 |
-
|
|
|
|
|
|
|
|
|
933 |
|
934 |
-
/**
|
935 |
-
* Return
|
936 |
-
*/
|
937 |
return $user_id;
|
938 |
|
939 |
}
|
@@ -949,53 +969,65 @@ function my_form_user_values_source($user_id, $form, $action){
|
|
949 |
$form_name = get_field('acfe_form_name', $field['value']);
|
950 |
|
951 |
?>You may use the following hooks:<br /><br />
|
952 |
-
|
953 |
add_filter('acfe/form/submit/user_args', 'my_form_user_args', 10, 4);
|
954 |
add_filter('acfe/form/submit/user_args/form=<?php echo $form_name; ?>', 'my_form_user_args', 10, 4);
|
955 |
-
add_filter('acfe/form/submit/user_args/action=my-user-action', 'my_form_user_args', 10, 4);
|
956 |
-
</pre>
|
957 |
<br />
|
958 |
-
|
959 |
-
|
960 |
-
* @array $args
|
961 |
-
* @string $type
|
962 |
-
* @array $form
|
963 |
-
* @string $action
|
964 |
*/
|
965 |
add_filter('acfe/form/submit/user_args/form=<?php echo $form_name; ?>', 'my_form_user_args', 10, 4);
|
966 |
function my_form_user_args($args, $type, $form, $action){
|
967 |
|
968 |
-
|
969 |
-
* Force specific first name if the action type is 'insert_user'
|
970 |
-
*/
|
971 |
if($type === 'insert_user'){
|
972 |
|
973 |
$args['first_name'] = 'My name';
|
974 |
|
975 |
}
|
976 |
-
|
977 |
-
|
978 |
-
/**
|
979 |
* Get the form input value named 'my_field'
|
980 |
* This is the value entered by the user during the form submission
|
981 |
*/
|
982 |
$my_field = get_field('my_field');
|
|
|
|
|
983 |
|
984 |
-
|
985 |
-
|
986 |
-
|
|
|
|
|
|
|
|
|
987 |
*/
|
988 |
-
$
|
989 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
990 |
|
991 |
-
/**
|
992 |
-
* Return arguments
|
993 |
-
* Note: Return false will stop post & meta insert/update
|
994 |
-
*/
|
995 |
return $args;
|
996 |
|
997 |
-
}
|
998 |
-
|
|
|
999 |
|
1000 |
}
|
1001 |
|
@@ -1007,39 +1039,1687 @@ function my_form_user_args($args, $type, $form, $action){
|
|
1007 |
$form_name = get_field('acfe_form_name', $field['value']);
|
1008 |
|
1009 |
?>You may use the following hooks:<br /><br />
|
1010 |
-
|
1011 |
add_action('acfe/form/submit/user', 'my_form_user_save', 10, 5);
|
1012 |
add_action('acfe/form/submit/user/form=<?php echo $form_name; ?>', 'my_form_user_save', 10, 5);
|
1013 |
-
add_action('acfe/form/submit/user/action=my-user-action', 'my_form_user_save', 10, 5);
|
1014 |
-
</pre>
|
1015 |
<br />
|
1016 |
-
|
1017 |
-
|
1018 |
-
* @int $user_id
|
1019 |
-
* @string $type
|
1020 |
-
* @array $args
|
1021 |
-
* @array $form
|
1022 |
-
* @string $action
|
1023 |
*
|
1024 |
* Note: At this point the user is already saved into the database
|
1025 |
*/
|
1026 |
add_action('acfe/form/submit/user/form=<?php echo $form_name; ?>', 'my_form_user_save', 10, 5);
|
1027 |
function my_form_user_save($user_id, $type, $args, $form, $action){
|
1028 |
-
|
1029 |
-
|
1030 |
* Get the form input value named 'my_field'
|
1031 |
* This is the value entered by the user during the form submission
|
1032 |
*/
|
1033 |
$my_field = get_field('my_field');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1034 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1035 |
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
|
|
1040 |
|
1041 |
-
|
1042 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1043 |
|
1044 |
}
|
1045 |
|
8 |
class acfe_form_user{
|
9 |
|
10 |
function __construct(){
|
11 |
+
|
12 |
+
add_filter('acfe/form/actions', array($this, 'add_action'));
|
13 |
|
14 |
/*
|
15 |
* Form
|
829 |
$user_array['user_pass'] = $args['user_pass'];
|
830 |
|
831 |
}
|
832 |
+
|
833 |
+
// Deprecated
|
834 |
+
$user_array = apply_filters_deprecated("acfe/form/query_var/user", array($user_array, $_user_id, $user_action, $args, $form, $action), '0.8.7.5', "acfe/form/output/user");
|
835 |
+
$user_array = apply_filters_deprecated("acfe/form/query_var/user/form={$form_name}", array($user_array, $_user_id, $user_action, $args, $form, $action), '0.8.7.5', "acfe/form/output/user/form={$form_name}");
|
836 |
+
$user_array = apply_filters_deprecated("acfe/form/query_var/user/action={$action}", array($user_array, $_user_id, $user_action, $args, $form, $action), '0.8.7.5', "acfe/form/output/user/action={$action}");
|
837 |
+
|
838 |
+
// Output
|
839 |
+
$user_array = apply_filters("acfe/form/output/user", $user_array, $_user_id, $user_action, $args, $form, $action);
|
840 |
+
$user_array = apply_filters("acfe/form/output/user/form={$form_name}", $user_array, $_user_id, $user_action, $args, $form, $action);
|
841 |
+
$user_array = apply_filters("acfe/form/output/user/action={$action}", $user_array, $_user_id, $user_action, $args, $form, $action);
|
842 |
|
843 |
+
// Old Query var
|
844 |
$query_var = acfe_form_unique_action_id($form, 'user');
|
845 |
+
|
846 |
if(!empty($action))
|
847 |
$query_var = $action;
|
848 |
|
|
|
849 |
set_query_var($query_var, $user_array);
|
850 |
+
// ------------------------------------------------------------
|
851 |
+
|
852 |
+
// Action Output
|
853 |
+
$actions = get_query_var('acfe_form_actions', array());
|
854 |
+
|
855 |
+
$actions['user'] = $user_array;
|
856 |
+
|
857 |
+
if(!empty($action))
|
858 |
+
$actions[$action] = $user_array;
|
859 |
+
|
860 |
+
set_query_var('acfe_form_actions', $actions);
|
861 |
+
// ------------------------------------------------------------
|
862 |
|
863 |
}
|
864 |
|
936 |
</pre>
|
937 |
<br />
|
938 |
<pre>
|
939 |
+
/*
|
940 |
+
* @int $user_id User ID used as source
|
941 |
+
* @array $form The form settings
|
942 |
+
* @string $action The action alias name
|
943 |
*/
|
944 |
add_filter('acfe/form/load/user_id/form=<?php echo $form_name; ?>', 'my_form_user_values_source', 10, 3);
|
945 |
function my_form_user_values_source($user_id, $form, $action){
|
946 |
|
947 |
+
/*
|
948 |
+
* Retrieve Form Setting
|
949 |
*/
|
950 |
+
if($form['custom_key'] === 'custom_value'){
|
951 |
+
|
952 |
+
// Force to load values from the User ID 12
|
953 |
+
$user_id = 12;
|
954 |
+
|
955 |
+
}
|
956 |
|
|
|
|
|
|
|
957 |
return $user_id;
|
958 |
|
959 |
}
|
969 |
$form_name = get_field('acfe_form_name', $field['value']);
|
970 |
|
971 |
?>You may use the following hooks:<br /><br />
|
972 |
+
<?php acfe_highlight(); ?>
|
973 |
add_filter('acfe/form/submit/user_args', 'my_form_user_args', 10, 4);
|
974 |
add_filter('acfe/form/submit/user_args/form=<?php echo $form_name; ?>', 'my_form_user_args', 10, 4);
|
975 |
+
add_filter('acfe/form/submit/user_args/action=my-user-action', 'my_form_user_args', 10, 4);<?php acfe_highlight(); ?>
|
|
|
976 |
<br />
|
977 |
+
<?php acfe_highlight(); ?>
|
978 |
+
/*
|
979 |
+
* @array $args The generated user arguments
|
980 |
+
* @string $type Action type: 'insert_user' or 'update_user'
|
981 |
+
* @array $form The form settings
|
982 |
+
* @string $action The action alias name
|
983 |
*/
|
984 |
add_filter('acfe/form/submit/user_args/form=<?php echo $form_name; ?>', 'my_form_user_args', 10, 4);
|
985 |
function my_form_user_args($args, $type, $form, $action){
|
986 |
|
987 |
+
// Change First Name if the Action Type is 'insert_user'
|
|
|
|
|
988 |
if($type === 'insert_user'){
|
989 |
|
990 |
$args['first_name'] = 'My name';
|
991 |
|
992 |
}
|
993 |
+
|
994 |
+
/*
|
|
|
995 |
* Get the form input value named 'my_field'
|
996 |
* This is the value entered by the user during the form submission
|
997 |
*/
|
998 |
$my_field = get_field('my_field');
|
999 |
+
|
1000 |
+
if($my_field === 'Company'){
|
1001 |
|
1002 |
+
// Change First Name
|
1003 |
+
$args['first_name'] = 'My name';
|
1004 |
+
|
1005 |
+
}
|
1006 |
+
|
1007 |
+
/*
|
1008 |
+
* Get previous Post Action output
|
1009 |
*/
|
1010 |
+
$prev_post_action = acfe_form_get_action('post');
|
1011 |
|
1012 |
+
if(!empty($prev_post_action)){
|
1013 |
+
|
1014 |
+
if($prev_post_action['post_title'] === 'Company'){
|
1015 |
+
|
1016 |
+
// Change First Name
|
1017 |
+
$args['first_name'] = 'My name';
|
1018 |
+
|
1019 |
+
}
|
1020 |
+
|
1021 |
+
}
|
1022 |
+
|
1023 |
+
// Do not save User
|
1024 |
+
// return false;
|
1025 |
|
|
|
|
|
|
|
|
|
1026 |
return $args;
|
1027 |
|
1028 |
+
}<?php acfe_highlight(); ?>
|
1029 |
+
|
1030 |
+
<?php
|
1031 |
|
1032 |
}
|
1033 |
|
1039 |
$form_name = get_field('acfe_form_name', $field['value']);
|
1040 |
|
1041 |
?>You may use the following hooks:<br /><br />
|
1042 |
+
<?php acfe_highlight(); ?>
|
1043 |
add_action('acfe/form/submit/user', 'my_form_user_save', 10, 5);
|
1044 |
add_action('acfe/form/submit/user/form=<?php echo $form_name; ?>', 'my_form_user_save', 10, 5);
|
1045 |
+
add_action('acfe/form/submit/user/action=my-user-action', 'my_form_user_save', 10, 5);<?php acfe_highlight(); ?>
|
|
|
1046 |
<br />
|
1047 |
+
<?php acfe_highlight(); ?>
|
1048 |
+
/*
|
1049 |
+
* @int $user_id The targeted user ID
|
1050 |
+
* @string $type Action type: 'insert_user' or 'update_user'
|
1051 |
+
* @array $args The generated user arguments
|
1052 |
+
* @array $form The form settings
|
1053 |
+
* @string $action The action alias name
|
1054 |
*
|
1055 |
* Note: At this point the user is already saved into the database
|
1056 |
*/
|
1057 |
add_action('acfe/form/submit/user/form=<?php echo $form_name; ?>', 'my_form_user_save', 10, 5);
|
1058 |
function my_form_user_save($user_id, $type, $args, $form, $action){
|
1059 |
+
|
1060 |
+
/*
|
1061 |
* Get the form input value named 'my_field'
|
1062 |
* This is the value entered by the user during the form submission
|
1063 |
*/
|
1064 |
$my_field = get_field('my_field');
|
1065 |
+
|
1066 |
+
if($my_field === 'Company'){
|
1067 |
+
|
1068 |
+
// do_something();
|
1069 |
+
|
1070 |
+
}
|
1071 |
+
|
1072 |
+
/*
|
1073 |
+
* Get previous Post Action output
|
1074 |
+
*/
|
1075 |
+
$prev_post_action = acfe_form_get_action('post');
|
1076 |
+
|
1077 |
+
if(!empty($prev_post_action)){
|
1078 |
|
1079 |
+
if($prev_post_action['post_title'] === 'Company'){
|
1080 |
+
|
1081 |
+
// do_something();
|
1082 |
+
|
1083 |
+
}
|
1084 |
+
|
1085 |
+
}
|
1086 |
|
1087 |
+
}<?php acfe_highlight(); ?>
|
1088 |
+
|
1089 |
+
<?php
|
1090 |
+
|
1091 |
+
}
|
1092 |
|
1093 |
+
function add_action($layouts){
|
1094 |
+
|
1095 |
+
$layouts['layout_user'] = array(
|
1096 |
+
'key' => 'layout_user',
|
1097 |
+
'name' => 'user',
|
1098 |
+
'label' => 'User action',
|
1099 |
+
'display' => 'row',
|
1100 |
+
'sub_fields' => array(
|
1101 |
+
|
1102 |
+
/*
|
1103 |
+
* Layout: User Action
|
1104 |
+
*/
|
1105 |
+
array(
|
1106 |
+
'key' => 'field_acfe_form_user_tab_action',
|
1107 |
+
'label' => 'Action',
|
1108 |
+
'name' => '',
|
1109 |
+
'type' => 'tab',
|
1110 |
+
'instructions' => '',
|
1111 |
+
'required' => 0,
|
1112 |
+
'conditional_logic' => 0,
|
1113 |
+
'wrapper' => array(
|
1114 |
+
'width' => '',
|
1115 |
+
'class' => '',
|
1116 |
+
'id' => '',
|
1117 |
+
'data-no-preference' => true,
|
1118 |
+
),
|
1119 |
+
'acfe_permissions' => '',
|
1120 |
+
'placement' => 'top',
|
1121 |
+
'endpoint' => 0,
|
1122 |
+
),
|
1123 |
+
array(
|
1124 |
+
'key' => 'field_acfe_form_user_action',
|
1125 |
+
'label' => 'Action',
|
1126 |
+
'name' => 'acfe_form_user_action',
|
1127 |
+
'type' => 'radio',
|
1128 |
+
'instructions' => '',
|
1129 |
+
'required' => 0,
|
1130 |
+
'conditional_logic' => 0,
|
1131 |
+
'wrapper' => array(
|
1132 |
+
'width' => '',
|
1133 |
+
'class' => '',
|
1134 |
+
'id' => '',
|
1135 |
+
),
|
1136 |
+
'acfe_permissions' => '',
|
1137 |
+
'choices' => array(
|
1138 |
+
'insert_user' => 'Create user',
|
1139 |
+
'update_user' => 'Update user',
|
1140 |
+
'log_user' => 'Log user',
|
1141 |
+
),
|
1142 |
+
'default_value' => 'insert_post',
|
1143 |
+
),
|
1144 |
+
array(
|
1145 |
+
'key' => 'field_acfe_form_user_custom_alias',
|
1146 |
+
'label' => 'Action name',
|
1147 |
+
'name' => 'acfe_form_custom_alias',
|
1148 |
+
'type' => 'acfe_slug',
|
1149 |
+
'instructions' => '(Optional) Target this action using hooks.',
|
1150 |
+
'required' => 0,
|
1151 |
+
'conditional_logic' => 0,
|
1152 |
+
'wrapper' => array(
|
1153 |
+
'width' => '',
|
1154 |
+
'class' => '',
|
1155 |
+
'id' => '',
|
1156 |
+
'data-instruction-placement' => 'field'
|
1157 |
+
),
|
1158 |
+
'acfe_permissions' => '',
|
1159 |
+
'default_value' => '',
|
1160 |
+
'placeholder' => 'User',
|
1161 |
+
'prepend' => '',
|
1162 |
+
'append' => '',
|
1163 |
+
'maxlength' => '',
|
1164 |
+
),
|
1165 |
+
|
1166 |
+
/*
|
1167 |
+
* Layout: User Login
|
1168 |
+
*/
|
1169 |
+
array(
|
1170 |
+
'key' => 'field_acfe_form_user_tab_login',
|
1171 |
+
'label' => 'Login',
|
1172 |
+
'name' => '',
|
1173 |
+
'type' => 'tab',
|
1174 |
+
'instructions' => '',
|
1175 |
+
'required' => 0,
|
1176 |
+
'wrapper' => array(
|
1177 |
+
'width' => '',
|
1178 |
+
'class' => '',
|
1179 |
+
'id' => '',
|
1180 |
+
),
|
1181 |
+
'acfe_permissions' => '',
|
1182 |
+
'placement' => 'top',
|
1183 |
+
'endpoint' => 0,
|
1184 |
+
'conditional_logic' => array(
|
1185 |
+
array(
|
1186 |
+
array(
|
1187 |
+
'field' => 'field_acfe_form_user_action',
|
1188 |
+
'operator' => '==',
|
1189 |
+
'value' => 'log_user',
|
1190 |
+
),
|
1191 |
+
),
|
1192 |
+
),
|
1193 |
+
),
|
1194 |
+
array(
|
1195 |
+
'key' => 'field_acfe_form_user_log_type',
|
1196 |
+
'label' => 'Login type',
|
1197 |
+
'name' => 'acfe_form_user_log_type',
|
1198 |
+
'type' => 'radio',
|
1199 |
+
'instructions' => '',
|
1200 |
+
'required' => 0,
|
1201 |
+
'wrapper' => array(
|
1202 |
+
'width' => '',
|
1203 |
+
'class' => '',
|
1204 |
+
'id' => '',
|
1205 |
+
),
|
1206 |
+
'acfe_permissions' => '',
|
1207 |
+
'choices' => array(
|
1208 |
+
'email' => 'E-mail',
|
1209 |
+
'username' => 'Username',
|
1210 |
+
'email_username' => 'E-mail or username',
|
1211 |
+
),
|
1212 |
+
'allow_null' => 0,
|
1213 |
+
'other_choice' => 0,
|
1214 |
+
'default_value' => 'email',
|
1215 |
+
'layout' => 'vertical',
|
1216 |
+
'return_format' => 'value',
|
1217 |
+
'save_other_choice' => 0,
|
1218 |
+
'conditional_logic' => array(
|
1219 |
+
array(
|
1220 |
+
array(
|
1221 |
+
'field' => 'field_acfe_form_user_action',
|
1222 |
+
'operator' => '==',
|
1223 |
+
'value' => 'log_user',
|
1224 |
+
),
|
1225 |
+
),
|
1226 |
+
),
|
1227 |
+
),
|
1228 |
+
array(
|
1229 |
+
'key' => 'field_acfe_form_user_save_login_user',
|
1230 |
+
'label' => 'Login',
|
1231 |
+
'name' => 'acfe_form_user_save_login_user',
|
1232 |
+
'type' => 'select',
|
1233 |
+
'instructions' => '',
|
1234 |
+
'required' => 0,
|
1235 |
+
'wrapper' => array(
|
1236 |
+
'width' => '',
|
1237 |
+
'class' => '',
|
1238 |
+
'id' => '',
|
1239 |
+
),
|
1240 |
+
'acfe_permissions' => '',
|
1241 |
+
'choices' => array(),
|
1242 |
+
'default_value' => array(
|
1243 |
+
),
|
1244 |
+
'allow_null' => 1,
|
1245 |
+
'multiple' => 0,
|
1246 |
+
'ui' => 1,
|
1247 |
+
'return_format' => 'value',
|
1248 |
+
'placeholder' => 'Default',
|
1249 |
+
'ajax' => 0,
|
1250 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1251 |
+
'allow_custom' => 1,
|
1252 |
+
'conditional_logic' => array(
|
1253 |
+
array(
|
1254 |
+
array(
|
1255 |
+
'field' => 'field_acfe_form_user_action',
|
1256 |
+
'operator' => '==',
|
1257 |
+
'value' => 'log_user',
|
1258 |
+
),
|
1259 |
+
),
|
1260 |
+
),
|
1261 |
+
),
|
1262 |
+
array(
|
1263 |
+
'key' => 'field_acfe_form_user_save_login_pass',
|
1264 |
+
'label' => 'Password',
|
1265 |
+
'name' => 'acfe_form_user_save_login_pass',
|
1266 |
+
'type' => 'select',
|
1267 |
+
'instructions' => '',
|
1268 |
+
'required' => 0,
|
1269 |
+
'wrapper' => array(
|
1270 |
+
'width' => '',
|
1271 |
+
'class' => '',
|
1272 |
+
'id' => '',
|
1273 |
+
),
|
1274 |
+
'acfe_permissions' => '',
|
1275 |
+
'choices' => array(),
|
1276 |
+
'default_value' => array(
|
1277 |
+
),
|
1278 |
+
'allow_null' => 1,
|
1279 |
+
'multiple' => 0,
|
1280 |
+
'ui' => 1,
|
1281 |
+
'return_format' => 'value',
|
1282 |
+
'placeholder' => 'Default',
|
1283 |
+
'ajax' => 0,
|
1284 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1285 |
+
'allow_custom' => 1,
|
1286 |
+
'conditional_logic' => array(
|
1287 |
+
array(
|
1288 |
+
array(
|
1289 |
+
'field' => 'field_acfe_form_user_action',
|
1290 |
+
'operator' => '==',
|
1291 |
+
'value' => 'log_user',
|
1292 |
+
),
|
1293 |
+
),
|
1294 |
+
),
|
1295 |
+
),
|
1296 |
+
array(
|
1297 |
+
'key' => 'field_acfe_form_user_save_login_remember',
|
1298 |
+
'label' => 'Remember me',
|
1299 |
+
'name' => 'acfe_form_user_save_login_remember',
|
1300 |
+
'type' => 'select',
|
1301 |
+
'instructions' => '',
|
1302 |
+
'required' => 0,
|
1303 |
+
'wrapper' => array(
|
1304 |
+
'width' => '',
|
1305 |
+
'class' => '',
|
1306 |
+
'id' => '',
|
1307 |
+
),
|
1308 |
+
'acfe_permissions' => '',
|
1309 |
+
'choices' => array(),
|
1310 |
+
'default_value' => array(
|
1311 |
+
),
|
1312 |
+
'allow_null' => 1,
|
1313 |
+
'multiple' => 0,
|
1314 |
+
'ui' => 1,
|
1315 |
+
'return_format' => 'value',
|
1316 |
+
'placeholder' => 'Default',
|
1317 |
+
'ajax' => 0,
|
1318 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1319 |
+
'allow_custom' => 1,
|
1320 |
+
'conditional_logic' => array(
|
1321 |
+
array(
|
1322 |
+
array(
|
1323 |
+
'field' => 'field_acfe_form_user_action',
|
1324 |
+
'operator' => '==',
|
1325 |
+
'value' => 'log_user',
|
1326 |
+
),
|
1327 |
+
),
|
1328 |
+
),
|
1329 |
+
),
|
1330 |
+
|
1331 |
+
/*
|
1332 |
+
* Layout: User Save
|
1333 |
+
*/
|
1334 |
+
array(
|
1335 |
+
'key' => 'field_acfe_form_user_tab_save',
|
1336 |
+
'label' => 'Save',
|
1337 |
+
'name' => '',
|
1338 |
+
'type' => 'tab',
|
1339 |
+
'instructions' => '',
|
1340 |
+
'required' => 0,
|
1341 |
+
'wrapper' => array(
|
1342 |
+
'width' => '',
|
1343 |
+
'class' => '',
|
1344 |
+
'id' => '',
|
1345 |
+
),
|
1346 |
+
'acfe_permissions' => '',
|
1347 |
+
'placement' => 'top',
|
1348 |
+
'endpoint' => 0,
|
1349 |
+
'conditional_logic' => array(
|
1350 |
+
array(
|
1351 |
+
array(
|
1352 |
+
'field' => 'field_acfe_form_user_action',
|
1353 |
+
'operator' => '!=',
|
1354 |
+
'value' => 'log_user',
|
1355 |
+
),
|
1356 |
+
),
|
1357 |
+
),
|
1358 |
+
),
|
1359 |
+
array(
|
1360 |
+
'key' => 'field_acfe_form_user_save_target',
|
1361 |
+
'label' => 'Target',
|
1362 |
+
'name' => 'acfe_form_user_save_target',
|
1363 |
+
'type' => 'select',
|
1364 |
+
'instructions' => '',
|
1365 |
+
'required' => 0,
|
1366 |
+
'conditional_logic' => array(
|
1367 |
+
array(
|
1368 |
+
array(
|
1369 |
+
'field' => 'field_acfe_form_user_action',
|
1370 |
+
'operator' => '==',
|
1371 |
+
'value' => 'update_user',
|
1372 |
+
),
|
1373 |
+
),
|
1374 |
+
),
|
1375 |
+
'wrapper' => array(
|
1376 |
+
'width' => '',
|
1377 |
+
'class' => '',
|
1378 |
+
'id' => '',
|
1379 |
+
'data-instruction-placement' => 'field'
|
1380 |
+
),
|
1381 |
+
'acfe_permissions' => '',
|
1382 |
+
'choices' => array(
|
1383 |
+
),
|
1384 |
+
'default_value' => 'current_user',
|
1385 |
+
'allow_null' => 0,
|
1386 |
+
'multiple' => 0,
|
1387 |
+
'ui' => 1,
|
1388 |
+
'ajax' => 0,
|
1389 |
+
'return_format' => 'value',
|
1390 |
+
'placeholder' => '',
|
1391 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1392 |
+
'allow_custom' => 1,
|
1393 |
+
),
|
1394 |
+
array(
|
1395 |
+
'key' => 'field_acfe_form_user_save_email',
|
1396 |
+
'label' => 'Email',
|
1397 |
+
'name' => 'acfe_form_user_save_email',
|
1398 |
+
'type' => 'select',
|
1399 |
+
'instructions' => '',
|
1400 |
+
'required' => 0,
|
1401 |
+
'wrapper' => array(
|
1402 |
+
'width' => '',
|
1403 |
+
'class' => '',
|
1404 |
+
'id' => '',
|
1405 |
+
),
|
1406 |
+
'acfe_permissions' => '',
|
1407 |
+
'choices' => array(),
|
1408 |
+
'default_value' => array(
|
1409 |
+
),
|
1410 |
+
'allow_null' => 1,
|
1411 |
+
'multiple' => 0,
|
1412 |
+
'ui' => 1,
|
1413 |
+
'return_format' => 'value',
|
1414 |
+
'placeholder' => 'Default',
|
1415 |
+
'ajax' => 0,
|
1416 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1417 |
+
'allow_custom' => 1,
|
1418 |
+
'conditional_logic' => array(
|
1419 |
+
array(
|
1420 |
+
array(
|
1421 |
+
'field' => 'field_acfe_form_user_map_email',
|
1422 |
+
'operator' => '==empty',
|
1423 |
+
),
|
1424 |
+
array(
|
1425 |
+
'field' => 'field_acfe_form_user_action',
|
1426 |
+
'operator' => '!=',
|
1427 |
+
'value' => 'log_user',
|
1428 |
+
),
|
1429 |
+
),
|
1430 |
+
),
|
1431 |
+
),
|
1432 |
+
array(
|
1433 |
+
'key' => 'field_acfe_form_user_map_email_message',
|
1434 |
+
'label' => 'Email',
|
1435 |
+
'name' => 'acfe_form_user_map_email_message',
|
1436 |
+
'type' => 'acfe_dynamic_message',
|
1437 |
+
'instructions' => '',
|
1438 |
+
'required' => 0,
|
1439 |
+
'conditional_logic' => array(
|
1440 |
+
array(
|
1441 |
+
array(
|
1442 |
+
'field' => 'field_acfe_form_user_map_email',
|
1443 |
+
'operator' => '!=empty',
|
1444 |
+
),
|
1445 |
+
array(
|
1446 |
+
'field' => 'field_acfe_form_user_action',
|
1447 |
+
'operator' => '!=',
|
1448 |
+
'value' => 'log_user',
|
1449 |
+
),
|
1450 |
+
),
|
1451 |
+
),
|
1452 |
+
'wrapper' => array(
|
1453 |
+
'width' => '',
|
1454 |
+
'class' => '',
|
1455 |
+
'id' => '',
|
1456 |
+
),
|
1457 |
+
'acfe_permissions' => '',
|
1458 |
+
),
|
1459 |
+
array(
|
1460 |
+
'key' => 'field_acfe_form_user_save_username',
|
1461 |
+
'label' => 'Username',
|
1462 |
+
'name' => 'acfe_form_user_save_username',
|
1463 |
+
'type' => 'select',
|
1464 |
+
'instructions' => '',
|
1465 |
+
'required' => 0,
|
1466 |
+
'wrapper' => array(
|
1467 |
+
'width' => '',
|
1468 |
+
'class' => '',
|
1469 |
+
'id' => '',
|
1470 |
+
),
|
1471 |
+
'acfe_permissions' => '',
|
1472 |
+
'choices' => array(),
|
1473 |
+
'default_value' => array(
|
1474 |
+
),
|
1475 |
+
'allow_null' => 1,
|
1476 |
+
'multiple' => 0,
|
1477 |
+
'ui' => 1,
|
1478 |
+
'return_format' => 'value',
|
1479 |
+
'placeholder' => 'Default',
|
1480 |
+
'ajax' => 0,
|
1481 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1482 |
+
'allow_custom' => 1,
|
1483 |
+
'conditional_logic' => array(
|
1484 |
+
array(
|
1485 |
+
array(
|
1486 |
+
'field' => 'field_acfe_form_user_map_username',
|
1487 |
+
'operator' => '==empty',
|
1488 |
+
),
|
1489 |
+
array(
|
1490 |
+
'field' => 'field_acfe_form_user_action',
|
1491 |
+
'operator' => '!=',
|
1492 |
+
'value' => 'log_user',
|
1493 |
+
),
|
1494 |
+
),
|
1495 |
+
),
|
1496 |
+
),
|
1497 |
+
array(
|
1498 |
+
'key' => 'field_acfe_form_user_map_username_message',
|
1499 |
+
'label' => 'Username',
|
1500 |
+
'name' => 'acfe_form_user_map_username_message',
|
1501 |
+
'type' => 'acfe_dynamic_message',
|
1502 |
+
'instructions' => '',
|
1503 |
+
'required' => 0,
|
1504 |
+
'conditional_logic' => array(
|
1505 |
+
array(
|
1506 |
+
array(
|
1507 |
+
'field' => 'field_acfe_form_user_map_username',
|
1508 |
+
'operator' => '!=empty',
|
1509 |
+
),
|
1510 |
+
array(
|
1511 |
+
'field' => 'field_acfe_form_user_action',
|
1512 |
+
'operator' => '!=',
|
1513 |
+
'value' => 'log_user',
|
1514 |
+
),
|
1515 |
+
),
|
1516 |
+
),
|
1517 |
+
'wrapper' => array(
|
1518 |
+
'width' => '',
|
1519 |
+
'class' => '',
|
1520 |
+
'id' => '',
|
1521 |
+
),
|
1522 |
+
'acfe_permissions' => '',
|
1523 |
+
),
|
1524 |
+
array(
|
1525 |
+
'key' => 'field_acfe_form_user_save_password',
|
1526 |
+
'label' => 'Password',
|
1527 |
+
'name' => 'acfe_form_user_save_password',
|
1528 |
+
'type' => 'select',
|
1529 |
+
'instructions' => '',
|
1530 |
+
'required' => 0,
|
1531 |
+
'wrapper' => array(
|
1532 |
+
'width' => '',
|
1533 |
+
'class' => '',
|
1534 |
+
'id' => '',
|
1535 |
+
),
|
1536 |
+
'acfe_permissions' => '',
|
1537 |
+
'choices' => array(
|
1538 |
+
'generate_password' => 'Generate password',
|
1539 |
+
),
|
1540 |
+
'default_value' => array(
|
1541 |
+
),
|
1542 |
+
'allow_null' => 1,
|
1543 |
+
'multiple' => 0,
|
1544 |
+
'ui' => 1,
|
1545 |
+
'return_format' => 'value',
|
1546 |
+
'placeholder' => 'Default',
|
1547 |
+
'ajax' => 0,
|
1548 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1549 |
+
'allow_custom' => 1,
|
1550 |
+
'conditional_logic' => array(
|
1551 |
+
array(
|
1552 |
+
array(
|
1553 |
+
'field' => 'field_acfe_form_user_map_password',
|
1554 |
+
'operator' => '==empty',
|
1555 |
+
),
|
1556 |
+
array(
|
1557 |
+
'field' => 'field_acfe_form_user_action',
|
1558 |
+
'operator' => '!=',
|
1559 |
+
'value' => 'log_user',
|
1560 |
+
),
|
1561 |
+
),
|
1562 |
+
),
|
1563 |
+
),
|
1564 |
+
array(
|
1565 |
+
'key' => 'field_acfe_form_user_map_password_message',
|
1566 |
+
'label' => 'Password',
|
1567 |
+
'name' => 'acfe_form_user_map_password_message',
|
1568 |
+
'type' => 'acfe_dynamic_message',
|
1569 |
+
'instructions' => '',
|
1570 |
+
'required' => 0,
|
1571 |
+
'conditional_logic' => array(
|
1572 |
+
array(
|
1573 |
+
array(
|
1574 |
+
'field' => 'field_acfe_form_user_map_password',
|
1575 |
+
'operator' => '!=empty',
|
1576 |
+
),
|
1577 |
+
array(
|
1578 |
+
'field' => 'field_acfe_form_user_action',
|
1579 |
+
'operator' => '!=',
|
1580 |
+
'value' => 'log_user',
|
1581 |
+
),
|
1582 |
+
),
|
1583 |
+
),
|
1584 |
+
'wrapper' => array(
|
1585 |
+
'width' => '',
|
1586 |
+
'class' => '',
|
1587 |
+
'id' => '',
|
1588 |
+
),
|
1589 |
+
'acfe_permissions' => '',
|
1590 |
+
),
|
1591 |
+
array(
|
1592 |
+
'key' => 'field_acfe_form_user_save_first_name',
|
1593 |
+
'label' => 'First name',
|
1594 |
+
'name' => 'acfe_form_user_save_first_name',
|
1595 |
+
'type' => 'select',
|
1596 |
+
'instructions' => '',
|
1597 |
+
'required' => 0,
|
1598 |
+
'wrapper' => array(
|
1599 |
+
'width' => '',
|
1600 |
+
'class' => '',
|
1601 |
+
'id' => '',
|
1602 |
+
),
|
1603 |
+
'acfe_permissions' => '',
|
1604 |
+
'choices' => array(),
|
1605 |
+
'default_value' => array(
|
1606 |
+
),
|
1607 |
+
'allow_null' => 1,
|
1608 |
+
'multiple' => 0,
|
1609 |
+
'ui' => 1,
|
1610 |
+
'return_format' => 'value',
|
1611 |
+
'placeholder' => 'Default',
|
1612 |
+
'ajax' => 0,
|
1613 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1614 |
+
'allow_custom' => 1,
|
1615 |
+
'conditional_logic' => array(
|
1616 |
+
array(
|
1617 |
+
array(
|
1618 |
+
'field' => 'field_acfe_form_user_map_first_name',
|
1619 |
+
'operator' => '==empty',
|
1620 |
+
),
|
1621 |
+
array(
|
1622 |
+
'field' => 'field_acfe_form_user_action',
|
1623 |
+
'operator' => '!=',
|
1624 |
+
'value' => 'log_user',
|
1625 |
+
),
|
1626 |
+
),
|
1627 |
+
),
|
1628 |
+
),
|
1629 |
+
array(
|
1630 |
+
'key' => 'field_acfe_form_user_map_first_name_message',
|
1631 |
+
'label' => 'First name',
|
1632 |
+
'name' => 'acfe_form_user_map_first_name_message',
|
1633 |
+
'type' => 'acfe_dynamic_message',
|
1634 |
+
'instructions' => '',
|
1635 |
+
'required' => 0,
|
1636 |
+
'conditional_logic' => array(
|
1637 |
+
array(
|
1638 |
+
array(
|
1639 |
+
'field' => 'field_acfe_form_user_map_first_name',
|
1640 |
+
'operator' => '!=empty',
|
1641 |
+
),
|
1642 |
+
array(
|
1643 |
+
'field' => 'field_acfe_form_user_action',
|
1644 |
+
'operator' => '!=',
|
1645 |
+
'value' => 'log_user',
|
1646 |
+
),
|
1647 |
+
),
|
1648 |
+
),
|
1649 |
+
'wrapper' => array(
|
1650 |
+
'width' => '',
|
1651 |
+
'class' => '',
|
1652 |
+
'id' => '',
|
1653 |
+
),
|
1654 |
+
'acfe_permissions' => '',
|
1655 |
+
),
|
1656 |
+
array(
|
1657 |
+
'key' => 'field_acfe_form_user_save_last_name',
|
1658 |
+
'label' => 'Last name',
|
1659 |
+
'name' => 'acfe_form_user_save_last_name',
|
1660 |
+
'type' => 'select',
|
1661 |
+
'instructions' => '',
|
1662 |
+
'required' => 0,
|
1663 |
+
'wrapper' => array(
|
1664 |
+
'width' => '',
|
1665 |
+
'class' => '',
|
1666 |
+
'id' => '',
|
1667 |
+
),
|
1668 |
+
'acfe_permissions' => '',
|
1669 |
+
'choices' => array(),
|
1670 |
+
'default_value' => array(),
|
1671 |
+
'allow_null' => 1,
|
1672 |
+
'multiple' => 0,
|
1673 |
+
'ui' => 1,
|
1674 |
+
'return_format' => 'value',
|
1675 |
+
'placeholder' => 'Default',
|
1676 |
+
'ajax' => 0,
|
1677 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1678 |
+
'allow_custom' => 1,
|
1679 |
+
'conditional_logic' => array(
|
1680 |
+
array(
|
1681 |
+
array(
|
1682 |
+
'field' => 'field_acfe_form_user_map_last_name',
|
1683 |
+
'operator' => '==empty',
|
1684 |
+
),
|
1685 |
+
array(
|
1686 |
+
'field' => 'field_acfe_form_user_action',
|
1687 |
+
'operator' => '!=',
|
1688 |
+
'value' => 'log_user',
|
1689 |
+
),
|
1690 |
+
),
|
1691 |
+
),
|
1692 |
+
),
|
1693 |
+
array(
|
1694 |
+
'key' => 'field_acfe_form_user_map_last_name_message',
|
1695 |
+
'label' => 'Last name',
|
1696 |
+
'name' => 'acfe_form_user_map_last_name_message',
|
1697 |
+
'type' => 'acfe_dynamic_message',
|
1698 |
+
'instructions' => '',
|
1699 |
+
'required' => 0,
|
1700 |
+
'conditional_logic' => array(
|
1701 |
+
array(
|
1702 |
+
array(
|
1703 |
+
'field' => 'field_acfe_form_user_map_last_name',
|
1704 |
+
'operator' => '!=empty',
|
1705 |
+
),
|
1706 |
+
array(
|
1707 |
+
'field' => 'field_acfe_form_user_action',
|
1708 |
+
'operator' => '!=',
|
1709 |
+
'value' => 'log_user',
|
1710 |
+
),
|
1711 |
+
),
|
1712 |
+
),
|
1713 |
+
'wrapper' => array(
|
1714 |
+
'width' => '',
|
1715 |
+
'class' => '',
|
1716 |
+
'id' => '',
|
1717 |
+
),
|
1718 |
+
'acfe_permissions' => '',
|
1719 |
+
),
|
1720 |
+
array(
|
1721 |
+
'key' => 'field_acfe_form_user_save_nickname',
|
1722 |
+
'label' => 'Nickname',
|
1723 |
+
'name' => 'acfe_form_user_save_nickname',
|
1724 |
+
'type' => 'select',
|
1725 |
+
'instructions' => '',
|
1726 |
+
'required' => 0,
|
1727 |
+
'wrapper' => array(
|
1728 |
+
'width' => '',
|
1729 |
+
'class' => '',
|
1730 |
+
'id' => '',
|
1731 |
+
),
|
1732 |
+
'acfe_permissions' => '',
|
1733 |
+
'choices' => array(),
|
1734 |
+
'default_value' => array(
|
1735 |
+
),
|
1736 |
+
'allow_null' => 1,
|
1737 |
+
'multiple' => 0,
|
1738 |
+
'ui' => 1,
|
1739 |
+
'return_format' => 'value',
|
1740 |
+
'placeholder' => 'Default',
|
1741 |
+
'ajax' => 0,
|
1742 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1743 |
+
'allow_custom' => 1,
|
1744 |
+
'conditional_logic' => array(
|
1745 |
+
array(
|
1746 |
+
array(
|
1747 |
+
'field' => 'field_acfe_form_user_map_nickname',
|
1748 |
+
'operator' => '==empty',
|
1749 |
+
),
|
1750 |
+
array(
|
1751 |
+
'field' => 'field_acfe_form_user_action',
|
1752 |
+
'operator' => '!=',
|
1753 |
+
'value' => 'log_user',
|
1754 |
+
),
|
1755 |
+
),
|
1756 |
+
),
|
1757 |
+
),
|
1758 |
+
array(
|
1759 |
+
'key' => 'field_acfe_form_user_map_nickname_message',
|
1760 |
+
'label' => 'Nickname',
|
1761 |
+
'name' => 'acfe_form_user_map_nickname_message',
|
1762 |
+
'type' => 'acfe_dynamic_message',
|
1763 |
+
'instructions' => '',
|
1764 |
+
'required' => 0,
|
1765 |
+
'conditional_logic' => array(
|
1766 |
+
array(
|
1767 |
+
array(
|
1768 |
+
'field' => 'field_acfe_form_user_map_nickname',
|
1769 |
+
'operator' => '!=empty',
|
1770 |
+
),
|
1771 |
+
array(
|
1772 |
+
'field' => 'field_acfe_form_user_action',
|
1773 |
+
'operator' => '!=',
|
1774 |
+
'value' => 'log_user',
|
1775 |
+
),
|
1776 |
+
),
|
1777 |
+
),
|
1778 |
+
'wrapper' => array(
|
1779 |
+
'width' => '',
|
1780 |
+
'class' => '',
|
1781 |
+
'id' => '',
|
1782 |
+
),
|
1783 |
+
'acfe_permissions' => '',
|
1784 |
+
),
|
1785 |
+
array(
|
1786 |
+
'key' => 'field_acfe_form_user_save_display_name',
|
1787 |
+
'label' => 'Display name',
|
1788 |
+
'name' => 'acfe_form_user_save_display_name',
|
1789 |
+
'type' => 'select',
|
1790 |
+
'instructions' => '',
|
1791 |
+
'required' => 0,
|
1792 |
+
'wrapper' => array(
|
1793 |
+
'width' => '',
|
1794 |
+
'class' => '',
|
1795 |
+
'id' => '',
|
1796 |
+
),
|
1797 |
+
'acfe_permissions' => '',
|
1798 |
+
'choices' => array(),
|
1799 |
+
'default_value' => array(
|
1800 |
+
),
|
1801 |
+
'allow_null' => 1,
|
1802 |
+
'multiple' => 0,
|
1803 |
+
'ui' => 1,
|
1804 |
+
'return_format' => 'value',
|
1805 |
+
'placeholder' => 'Default',
|
1806 |
+
'ajax' => 0,
|
1807 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1808 |
+
'allow_custom' => 1,
|
1809 |
+
'conditional_logic' => array(
|
1810 |
+
array(
|
1811 |
+
array(
|
1812 |
+
'field' => 'field_acfe_form_user_map_display_name',
|
1813 |
+
'operator' => '==empty',
|
1814 |
+
),
|
1815 |
+
array(
|
1816 |
+
'field' => 'field_acfe_form_user_action',
|
1817 |
+
'operator' => '!=',
|
1818 |
+
'value' => 'log_user',
|
1819 |
+
),
|
1820 |
+
),
|
1821 |
+
),
|
1822 |
+
),
|
1823 |
+
array(
|
1824 |
+
'key' => 'field_acfe_form_user_map_display_name_message',
|
1825 |
+
'label' => 'Display name',
|
1826 |
+
'name' => 'acfe_form_user_map_display_name_message',
|
1827 |
+
'type' => 'acfe_dynamic_message',
|
1828 |
+
'instructions' => '',
|
1829 |
+
'required' => 0,
|
1830 |
+
'conditional_logic' => array(
|
1831 |
+
array(
|
1832 |
+
array(
|
1833 |
+
'field' => 'field_acfe_form_user_map_display_name',
|
1834 |
+
'operator' => '!=empty',
|
1835 |
+
),
|
1836 |
+
array(
|
1837 |
+
'field' => 'field_acfe_form_user_action',
|
1838 |
+
'operator' => '!=',
|
1839 |
+
'value' => 'log_user',
|
1840 |
+
),
|
1841 |
+
),
|
1842 |
+
),
|
1843 |
+
'wrapper' => array(
|
1844 |
+
'width' => '',
|
1845 |
+
'class' => '',
|
1846 |
+
'id' => '',
|
1847 |
+
),
|
1848 |
+
'acfe_permissions' => '',
|
1849 |
+
),
|
1850 |
+
array(
|
1851 |
+
'key' => 'field_acfe_form_user_save_website',
|
1852 |
+
'label' => 'Website',
|
1853 |
+
'name' => 'acfe_form_user_save_website',
|
1854 |
+
'type' => 'select',
|
1855 |
+
'instructions' => '',
|
1856 |
+
'required' => 0,
|
1857 |
+
'wrapper' => array(
|
1858 |
+
'width' => '',
|
1859 |
+
'class' => '',
|
1860 |
+
'id' => '',
|
1861 |
+
),
|
1862 |
+
'acfe_permissions' => '',
|
1863 |
+
'choices' => array(),
|
1864 |
+
'default_value' => array(
|
1865 |
+
),
|
1866 |
+
'allow_null' => 1,
|
1867 |
+
'multiple' => 0,
|
1868 |
+
'ui' => 1,
|
1869 |
+
'return_format' => 'value',
|
1870 |
+
'placeholder' => 'Default',
|
1871 |
+
'ajax' => 0,
|
1872 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1873 |
+
'allow_custom' => 1,
|
1874 |
+
'conditional_logic' => array(
|
1875 |
+
array(
|
1876 |
+
array(
|
1877 |
+
'field' => 'field_acfe_form_user_map_website',
|
1878 |
+
'operator' => '==empty',
|
1879 |
+
),
|
1880 |
+
array(
|
1881 |
+
'field' => 'field_acfe_form_user_action',
|
1882 |
+
'operator' => '!=',
|
1883 |
+
'value' => 'log_user',
|
1884 |
+
),
|
1885 |
+
),
|
1886 |
+
),
|
1887 |
+
),
|
1888 |
+
array(
|
1889 |
+
'key' => 'field_acfe_form_user_map_website_message',
|
1890 |
+
'label' => 'Website',
|
1891 |
+
'name' => 'acfe_form_user_map_website_message',
|
1892 |
+
'type' => 'acfe_dynamic_message',
|
1893 |
+
'instructions' => '',
|
1894 |
+
'required' => 0,
|
1895 |
+
'conditional_logic' => array(
|
1896 |
+
array(
|
1897 |
+
array(
|
1898 |
+
'field' => 'field_acfe_form_user_map_website',
|
1899 |
+
'operator' => '!=empty',
|
1900 |
+
),
|
1901 |
+
array(
|
1902 |
+
'field' => 'field_acfe_form_user_action',
|
1903 |
+
'operator' => '!=',
|
1904 |
+
'value' => 'log_user',
|
1905 |
+
),
|
1906 |
+
),
|
1907 |
+
),
|
1908 |
+
'wrapper' => array(
|
1909 |
+
'width' => '',
|
1910 |
+
'class' => '',
|
1911 |
+
'id' => '',
|
1912 |
+
),
|
1913 |
+
'acfe_permissions' => '',
|
1914 |
+
),
|
1915 |
+
array(
|
1916 |
+
'key' => 'field_acfe_form_user_save_description_group',
|
1917 |
+
'label' => 'Description',
|
1918 |
+
'name' => 'acfe_form_user_save_description_group',
|
1919 |
+
'type' => 'group',
|
1920 |
+
'instructions' => '',
|
1921 |
+
'required' => 0,
|
1922 |
+
'conditional_logic' => array(
|
1923 |
+
array(
|
1924 |
+
array(
|
1925 |
+
'field' => 'field_acfe_form_user_map_description',
|
1926 |
+
'operator' => '==empty',
|
1927 |
+
),
|
1928 |
+
array(
|
1929 |
+
'field' => 'field_acfe_form_user_action',
|
1930 |
+
'operator' => '!=',
|
1931 |
+
'value' => 'log_user',
|
1932 |
+
),
|
1933 |
+
),
|
1934 |
+
),
|
1935 |
+
'wrapper' => array(
|
1936 |
+
'width' => '',
|
1937 |
+
'class' => '',
|
1938 |
+
'id' => '',
|
1939 |
+
),
|
1940 |
+
'acfe_permissions' => '',
|
1941 |
+
'layout' => 'block',
|
1942 |
+
'acfe_seamless_style' => true,
|
1943 |
+
'acfe_group_modal' => 0,
|
1944 |
+
'sub_fields' => array(
|
1945 |
+
array(
|
1946 |
+
'key' => 'field_acfe_form_user_save_description',
|
1947 |
+
'label' => '',
|
1948 |
+
'name' => 'acfe_form_user_save_description',
|
1949 |
+
'type' => 'select',
|
1950 |
+
'instructions' => '',
|
1951 |
+
'required' => 0,
|
1952 |
+
'conditional_logic' => 0,
|
1953 |
+
'wrapper' => array(
|
1954 |
+
'width' => '',
|
1955 |
+
'class' => '',
|
1956 |
+
'id' => '',
|
1957 |
+
),
|
1958 |
+
'acfe_permissions' => '',
|
1959 |
+
'choices' => array(
|
1960 |
+
'custom' => 'WYSIWYG Editor',
|
1961 |
+
),
|
1962 |
+
'default_value' => array(
|
1963 |
+
),
|
1964 |
+
'allow_null' => 1,
|
1965 |
+
'multiple' => 0,
|
1966 |
+
'ui' => 1,
|
1967 |
+
'return_format' => 'value',
|
1968 |
+
'placeholder' => 'Default',
|
1969 |
+
'ajax' => 0,
|
1970 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
1971 |
+
'allow_custom' => 1,
|
1972 |
+
),
|
1973 |
+
array(
|
1974 |
+
'key' => 'field_acfe_form_user_save_description_custom',
|
1975 |
+
'label' => '',
|
1976 |
+
'name' => 'acfe_form_user_save_description_custom',
|
1977 |
+
'type' => 'wysiwyg',
|
1978 |
+
'instructions' => '',
|
1979 |
+
'required' => 1,
|
1980 |
+
'conditional_logic' => array(
|
1981 |
+
array(
|
1982 |
+
array(
|
1983 |
+
'field' => 'field_acfe_form_user_save_description',
|
1984 |
+
'operator' => '==',
|
1985 |
+
'value' => 'custom',
|
1986 |
+
),
|
1987 |
+
),
|
1988 |
+
),
|
1989 |
+
'wrapper' => array(
|
1990 |
+
'width' => '',
|
1991 |
+
'class' => '',
|
1992 |
+
'id' => '',
|
1993 |
+
),
|
1994 |
+
'acfe_permissions' => '',
|
1995 |
+
'default_value' => '',
|
1996 |
+
'tabs' => 'all',
|
1997 |
+
'toolbar' => 'full',
|
1998 |
+
'media_upload' => 1,
|
1999 |
+
'delay' => 0,
|
2000 |
+
),
|
2001 |
+
),
|
2002 |
+
),
|
2003 |
+
array(
|
2004 |
+
'key' => 'field_acfe_form_user_map_description_message',
|
2005 |
+
'label' => 'Description',
|
2006 |
+
'name' => 'acfe_form_user_map_description_message',
|
2007 |
+
'type' => 'acfe_dynamic_message',
|
2008 |
+
'instructions' => '',
|
2009 |
+
'required' => 0,
|
2010 |
+
'conditional_logic' => array(
|
2011 |
+
array(
|
2012 |
+
array(
|
2013 |
+
'field' => 'field_acfe_form_user_map_description',
|
2014 |
+
'operator' => '!=empty',
|
2015 |
+
),
|
2016 |
+
array(
|
2017 |
+
'field' => 'field_acfe_form_user_action',
|
2018 |
+
'operator' => '!=',
|
2019 |
+
'value' => 'log_user',
|
2020 |
+
),
|
2021 |
+
),
|
2022 |
+
),
|
2023 |
+
'wrapper' => array(
|
2024 |
+
'width' => '',
|
2025 |
+
'class' => '',
|
2026 |
+
'id' => '',
|
2027 |
+
),
|
2028 |
+
'acfe_permissions' => '',
|
2029 |
+
),
|
2030 |
+
array(
|
2031 |
+
'key' => 'field_acfe_form_user_save_role',
|
2032 |
+
'label' => 'Role',
|
2033 |
+
'name' => 'acfe_form_user_save_role',
|
2034 |
+
'type' => 'acfe_user_roles',
|
2035 |
+
'instructions' => '',
|
2036 |
+
'required' => 0,
|
2037 |
+
'conditional_logic' => array(
|
2038 |
+
array(
|
2039 |
+
array(
|
2040 |
+
'field' => 'field_acfe_form_user_map_role',
|
2041 |
+
'operator' => '==empty',
|
2042 |
+
),
|
2043 |
+
array(
|
2044 |
+
'field' => 'field_acfe_form_user_action',
|
2045 |
+
'operator' => '!=',
|
2046 |
+
'value' => 'log_user',
|
2047 |
+
),
|
2048 |
+
),
|
2049 |
+
),
|
2050 |
+
'wrapper' => array(
|
2051 |
+
'width' => '',
|
2052 |
+
'class' => '',
|
2053 |
+
'id' => '',
|
2054 |
+
),
|
2055 |
+
'acfe_permissions' => '',
|
2056 |
+
'user_role' => '',
|
2057 |
+
'field_type' => 'select',
|
2058 |
+
'default_value' => '',
|
2059 |
+
'allow_null' => 1,
|
2060 |
+
'placeholder' => 'Default',
|
2061 |
+
'multiple' => 0,
|
2062 |
+
'ui' => 1,
|
2063 |
+
'choices' => array(
|
2064 |
+
),
|
2065 |
+
'ajax' => 0,
|
2066 |
+
'layout' => '',
|
2067 |
+
'toggle' => 0,
|
2068 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
2069 |
+
'allow_custom' => 1,
|
2070 |
+
),
|
2071 |
+
array(
|
2072 |
+
'key' => 'field_acfe_form_user_map_role_message',
|
2073 |
+
'label' => 'Role',
|
2074 |
+
'name' => 'acfe_form_user_map_role_message',
|
2075 |
+
'type' => 'acfe_dynamic_message',
|
2076 |
+
'instructions' => '',
|
2077 |
+
'required' => 0,
|
2078 |
+
'conditional_logic' => array(
|
2079 |
+
array(
|
2080 |
+
array(
|
2081 |
+
'field' => 'field_acfe_form_user_map_role',
|
2082 |
+
'operator' => '!=empty',
|
2083 |
+
),
|
2084 |
+
array(
|
2085 |
+
'field' => 'field_acfe_form_user_action',
|
2086 |
+
'operator' => '!=',
|
2087 |
+
'value' => 'log_user',
|
2088 |
+
),
|
2089 |
+
),
|
2090 |
+
),
|
2091 |
+
'wrapper' => array(
|
2092 |
+
'width' => '',
|
2093 |
+
'class' => '',
|
2094 |
+
'id' => '',
|
2095 |
+
),
|
2096 |
+
'acfe_permissions' => '',
|
2097 |
+
),
|
2098 |
+
array(
|
2099 |
+
'key' => 'field_acfe_form_user_save_meta',
|
2100 |
+
'label' => 'Save ACF fields',
|
2101 |
+
'name' => 'acfe_form_user_save_meta',
|
2102 |
+
'type' => 'checkbox',
|
2103 |
+
'instructions' => 'Choose which ACF fields should be saved to this user',
|
2104 |
+
'required' => 0,
|
2105 |
+
'wrapper' => array(
|
2106 |
+
'width' => '',
|
2107 |
+
'class' => '',
|
2108 |
+
'id' => '',
|
2109 |
+
),
|
2110 |
+
'acfe_permissions' => '',
|
2111 |
+
'choices' => array(
|
2112 |
+
),
|
2113 |
+
'allow_custom' => 0,
|
2114 |
+
'default_value' => array(
|
2115 |
+
),
|
2116 |
+
'layout' => 'vertical',
|
2117 |
+
'toggle' => 1,
|
2118 |
+
'return_format' => 'value',
|
2119 |
+
'save_custom' => 0,
|
2120 |
+
'conditional_logic' => array(
|
2121 |
+
array(
|
2122 |
+
array(
|
2123 |
+
'field' => 'field_acfe_form_user_action',
|
2124 |
+
'operator' => '!=',
|
2125 |
+
'value' => 'log_user',
|
2126 |
+
),
|
2127 |
+
),
|
2128 |
+
),
|
2129 |
+
),
|
2130 |
+
|
2131 |
+
/*
|
2132 |
+
* Layout: User Load
|
2133 |
+
*/
|
2134 |
+
array(
|
2135 |
+
'key' => 'acfe_form_user_tab_load',
|
2136 |
+
'label' => 'Load',
|
2137 |
+
'name' => '',
|
2138 |
+
'type' => 'tab',
|
2139 |
+
'instructions' => '',
|
2140 |
+
'required' => 0,
|
2141 |
+
'wrapper' => array(
|
2142 |
+
'width' => '',
|
2143 |
+
'class' => '',
|
2144 |
+
'id' => '',
|
2145 |
+
),
|
2146 |
+
'acfe_permissions' => '',
|
2147 |
+
'placement' => 'top',
|
2148 |
+
'endpoint' => 0,
|
2149 |
+
'conditional_logic' => array(
|
2150 |
+
array(
|
2151 |
+
array(
|
2152 |
+
'field' => 'field_acfe_form_user_action',
|
2153 |
+
'operator' => '!=',
|
2154 |
+
'value' => 'log_user',
|
2155 |
+
),
|
2156 |
+
),
|
2157 |
+
),
|
2158 |
+
),
|
2159 |
+
array(
|
2160 |
+
'key' => 'field_acfe_form_user_load_values',
|
2161 |
+
'label' => 'Load Values',
|
2162 |
+
'name' => 'acfe_form_user_load_values',
|
2163 |
+
'type' => 'true_false',
|
2164 |
+
'instructions' => 'Fill inputs with values',
|
2165 |
+
'required' => 0,
|
2166 |
+
'conditional_logic' => 0,
|
2167 |
+
'wrapper' => array(
|
2168 |
+
'width' => '',
|
2169 |
+
'class' => '',
|
2170 |
+
'id' => '',
|
2171 |
+
),
|
2172 |
+
'acfe_permissions' => '',
|
2173 |
+
'message' => '',
|
2174 |
+
'default_value' => 0,
|
2175 |
+
'ui' => 1,
|
2176 |
+
'ui_on_text' => '',
|
2177 |
+
'ui_off_text' => '',
|
2178 |
+
),
|
2179 |
+
array(
|
2180 |
+
'key' => 'field_acfe_form_user_load_source',
|
2181 |
+
'label' => 'Source',
|
2182 |
+
'name' => 'acfe_form_user_load_source',
|
2183 |
+
'type' => 'select',
|
2184 |
+
'instructions' => '',
|
2185 |
+
'required' => 0,
|
2186 |
+
'conditional_logic' => array(
|
2187 |
+
array(
|
2188 |
+
array(
|
2189 |
+
'field' => 'field_acfe_form_user_load_values',
|
2190 |
+
'operator' => '==',
|
2191 |
+
'value' => '1',
|
2192 |
+
),
|
2193 |
+
),
|
2194 |
+
),
|
2195 |
+
'wrapper' => array(
|
2196 |
+
'width' => '',
|
2197 |
+
'class' => '',
|
2198 |
+
'id' => '',
|
2199 |
+
'data-instruction-placement' => 'field'
|
2200 |
+
),
|
2201 |
+
'acfe_permissions' => '',
|
2202 |
+
'choices' => array(
|
2203 |
+
),
|
2204 |
+
'default_value' => 'current_user',
|
2205 |
+
'allow_null' => 0,
|
2206 |
+
'multiple' => 0,
|
2207 |
+
'ui' => 1,
|
2208 |
+
'ajax' => 0,
|
2209 |
+
'return_format' => 'value',
|
2210 |
+
'placeholder' => '',
|
2211 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
2212 |
+
'allow_custom' => 1,
|
2213 |
+
),
|
2214 |
+
|
2215 |
+
array(
|
2216 |
+
'key' => 'field_acfe_form_user_map_email',
|
2217 |
+
'label' => 'Email',
|
2218 |
+
'name' => 'acfe_form_user_map_email',
|
2219 |
+
'type' => 'select',
|
2220 |
+
'instructions' => '',
|
2221 |
+
'required' => 0,
|
2222 |
+
'wrapper' => array(
|
2223 |
+
'width' => '',
|
2224 |
+
'class' => '',
|
2225 |
+
'id' => '',
|
2226 |
+
),
|
2227 |
+
'acfe_permissions' => '',
|
2228 |
+
'choices' => array(
|
2229 |
+
),
|
2230 |
+
'default_value' => array(
|
2231 |
+
),
|
2232 |
+
'allow_null' => 1,
|
2233 |
+
'multiple' => 0,
|
2234 |
+
'ui' => 1,
|
2235 |
+
'return_format' => 'value',
|
2236 |
+
'placeholder' => 'Default',
|
2237 |
+
'ajax' => 0,
|
2238 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
2239 |
+
'allow_custom' => 1,
|
2240 |
+
'conditional_logic' => array(
|
2241 |
+
array(
|
2242 |
+
array(
|
2243 |
+
'field' => 'field_acfe_form_user_load_values',
|
2244 |
+
'operator' => '==',
|
2245 |
+
'value' => '1',
|
2246 |
+
),
|
2247 |
+
array(
|
2248 |
+
'field' => 'field_acfe_form_user_action',
|
2249 |
+
'operator' => '!=',
|
2250 |
+
'value' => 'log_user',
|
2251 |
+
),
|
2252 |
+
),
|
2253 |
+
),
|
2254 |
+
),
|
2255 |
+
array(
|
2256 |
+
'key' => 'field_acfe_form_user_map_username',
|
2257 |
+
'label' => 'Username',
|
2258 |
+
'name' => 'acfe_form_user_map_username',
|
2259 |
+
'type' => 'select',
|
2260 |
+
'instructions' => '',
|
2261 |
+
'required' => 0,
|
2262 |
+
'wrapper' => array(
|
2263 |
+
'width' => '',
|
2264 |
+
'class' => '',
|
2265 |
+
'id' => '',
|
2266 |
+
),
|
2267 |
+
'acfe_permissions' => '',
|
2268 |
+
'choices' => array(
|
2269 |
+
),
|
2270 |
+
'default_value' => array(
|
2271 |
+
),
|
2272 |
+
'allow_null' => 1,
|
2273 |
+
'multiple' => 0,
|
2274 |
+
'ui' => 1,
|
2275 |
+
'return_format' => 'value',
|
2276 |
+
'placeholder' => 'Default',
|
2277 |
+
'ajax' => 0,
|
2278 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
2279 |
+
'allow_custom' => 1,
|
2280 |
+
'conditional_logic' => array(
|
2281 |
+
array(
|
2282 |
+
array(
|
2283 |
+
'field' => 'field_acfe_form_user_load_values',
|
2284 |
+
'operator' => '==',
|
2285 |
+
'value' => '1',
|
2286 |
+
),
|
2287 |
+
array(
|
2288 |
+
'field' => 'field_acfe_form_user_action',
|
2289 |
+
'operator' => '!=',
|
2290 |
+
'value' => 'log_user',
|
2291 |
+
),
|
2292 |
+
),
|
2293 |
+
),
|
2294 |
+
),
|
2295 |
+
array(
|
2296 |
+
'key' => 'field_acfe_form_user_map_password',
|
2297 |
+
'label' => 'Password',
|
2298 |
+
'name' => 'acfe_form_user_map_password',
|
2299 |
+
'type' => 'select',
|
2300 |
+
'instructions' => '',
|
2301 |
+
'required' => 0,
|
2302 |
+
'wrapper' => array(
|
2303 |
+
'width' => '',
|
2304 |
+
'class' => '',
|
2305 |
+
'id' => '',
|
2306 |
+
),
|
2307 |
+
'acfe_permissions' => '',
|
2308 |
+
'choices' => array(
|
2309 |
+
),
|
2310 |
+
'default_value' => array(
|
2311 |
+
),
|
2312 |
+
'allow_null' => 1,
|
2313 |
+
'multiple' => 0,
|
2314 |
+
'ui' => 1,
|
2315 |
+
'return_format' => 'value',
|
2316 |
+
'placeholder' => 'Default',
|
2317 |
+
'ajax' => 0,
|
2318 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
2319 |
+
'allow_custom' => 1,
|
2320 |
+
'conditional_logic' => array(
|
2321 |
+
array(
|
2322 |
+
array(
|
2323 |
+
'field' => 'field_acfe_form_user_load_values',
|
2324 |
+
'operator' => '==',
|
2325 |
+
'value' => '1',
|
2326 |
+
),
|
2327 |
+
array(
|
2328 |
+
'field' => 'field_acfe_form_user_action',
|
2329 |
+
'operator' => '!=',
|
2330 |
+
'value' => 'log_user',
|
2331 |
+
),
|
2332 |
+
),
|
2333 |
+
),
|
2334 |
+
),
|
2335 |
+
array(
|
2336 |
+
'key' => 'field_acfe_form_user_map_first_name',
|
2337 |
+
'label' => 'First name',
|
2338 |
+
'name' => 'acfe_form_user_map_first_name',
|
2339 |
+
'type' => 'select',
|
2340 |
+
'instructions' => '',
|
2341 |
+
'required' => 0,
|
2342 |
+
'wrapper' => array(
|
2343 |
+
'width' => '',
|
2344 |
+
'class' => '',
|
2345 |
+
'id' => '',
|
2346 |
+
),
|
2347 |
+
'acfe_permissions' => '',
|
2348 |
+
'choices' => array(
|
2349 |
+
),
|
2350 |
+
'default_value' => array(
|
2351 |
+
),
|
2352 |
+
'allow_null' => 1,
|
2353 |
+
'multiple' => 0,
|
2354 |
+
'ui' => 1,
|
2355 |
+
'return_format' => 'value',
|
2356 |
+
'placeholder' => 'Default',
|
2357 |
+
'ajax' => 0,
|
2358 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
2359 |
+
'allow_custom' => 1,
|
2360 |
+
'conditional_logic' => array(
|
2361 |
+
array(
|
2362 |
+
array(
|
2363 |
+
'field' => 'field_acfe_form_user_load_values',
|
2364 |
+
'operator' => '==',
|
2365 |
+
'value' => '1',
|
2366 |
+
),
|
2367 |
+
array(
|
2368 |
+
'field' => 'field_acfe_form_user_action',
|
2369 |
+
'operator' => '!=',
|
2370 |
+
'value' => 'log_user',
|
2371 |
+
),
|
2372 |
+
),
|
2373 |
+
),
|
2374 |
+
),
|
2375 |
+
array(
|
2376 |
+
'key' => 'field_acfe_form_user_map_last_name',
|
2377 |
+
'label' => 'Last name',
|
2378 |
+
'name' => 'acfe_form_user_map_last_name',
|
2379 |
+
'type' => 'select',
|
2380 |
+
'instructions' => '',
|
2381 |
+
'required' => 0,
|
2382 |
+
'wrapper' => array(
|
2383 |
+
'width' => '',
|
2384 |
+
'class' => '',
|
2385 |
+
'id' => '',
|
2386 |
+
),
|
2387 |
+
'acfe_permissions' => '',
|
2388 |
+
'choices' => array(
|
2389 |
+
),
|
2390 |
+
'default_value' => array(
|
2391 |
+
),
|
2392 |
+
'allow_null' => 1,
|
2393 |
+
'multiple' => 0,
|
2394 |
+
'ui' => 1,
|
2395 |
+
'return_format' => 'value',
|
2396 |
+
'placeholder' => 'Default',
|
2397 |
+
'ajax' => 0,
|
2398 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
2399 |
+
'allow_custom' => 1,
|
2400 |
+
'conditional_logic' => array(
|
2401 |
+
array(
|
2402 |
+
array(
|
2403 |
+
'field' => 'field_acfe_form_user_load_values',
|
2404 |
+
'operator' => '==',
|
2405 |
+
'value' => '1',
|
2406 |
+
),
|
2407 |
+
array(
|
2408 |
+
'field' => 'field_acfe_form_user_action',
|
2409 |
+
'operator' => '!=',
|
2410 |
+
'value' => 'log_user',
|
2411 |
+
),
|
2412 |
+
),
|
2413 |
+
),
|
2414 |
+
),
|
2415 |
+
array(
|
2416 |
+
'key' => 'field_acfe_form_user_map_nickname',
|
2417 |
+
'label' => 'Nickname',
|
2418 |
+
'name' => 'acfe_form_user_map_nickname',
|
2419 |
+
'type' => 'select',
|
2420 |
+
'instructions' => '',
|
2421 |
+
'required' => 0,
|
2422 |
+
'wrapper' => array(
|
2423 |
+
'width' => '',
|
2424 |
+
'class' => '',
|
2425 |
+
'id' => '',
|
2426 |
+
),
|
2427 |
+
'acfe_permissions' => '',
|
2428 |
+
'choices' => array(
|
2429 |
+
),
|
2430 |
+
'default_value' => array(
|
2431 |
+
),
|
2432 |
+
'allow_null' => 1,
|
2433 |
+
'multiple' => 0,
|
2434 |
+
'ui' => 1,
|
2435 |
+
'return_format' => 'value',
|
2436 |
+
'placeholder' => 'Default',
|
2437 |
+
'ajax' => 0,
|
2438 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
2439 |
+
'allow_custom' => 1,
|
2440 |
+
'conditional_logic' => array(
|
2441 |
+
array(
|
2442 |
+
array(
|
2443 |
+
'field' => 'field_acfe_form_user_load_values',
|
2444 |
+
'operator' => '==',
|
2445 |
+
'value' => '1',
|
2446 |
+
),
|
2447 |
+
array(
|
2448 |
+
'field' => 'field_acfe_form_user_action',
|
2449 |
+
'operator' => '!=',
|
2450 |
+
'value' => 'log_user',
|
2451 |
+
),
|
2452 |
+
),
|
2453 |
+
),
|
2454 |
+
),
|
2455 |
+
array(
|
2456 |
+
'key' => 'field_acfe_form_user_map_display_name',
|
2457 |
+
'label' => 'Display name',
|
2458 |
+
'name' => 'acfe_form_user_map_display_name',
|
2459 |
+
'type' => 'select',
|
2460 |
+
'instructions' => '',
|
2461 |
+
'required' => 0,
|
2462 |
+
'wrapper' => array(
|
2463 |
+
'width' => '',
|
2464 |
+
'class' => '',
|
2465 |
+
'id' => '',
|
2466 |
+
),
|
2467 |
+
'acfe_permissions' => '',
|
2468 |
+
'choices' => array(
|
2469 |
+
),
|
2470 |
+
'default_value' => array(
|
2471 |
+
),
|
2472 |
+
'allow_null' => 1,
|
2473 |
+
'multiple' => 0,
|
2474 |
+
'ui' => 1,
|
2475 |
+
'return_format' => 'value',
|
2476 |
+
'placeholder' => 'Default',
|
2477 |
+
'ajax' => 0,
|
2478 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
2479 |
+
'allow_custom' => 1,
|
2480 |
+
'conditional_logic' => array(
|
2481 |
+
array(
|
2482 |
+
array(
|
2483 |
+
'field' => 'field_acfe_form_user_load_values',
|
2484 |
+
'operator' => '==',
|
2485 |
+
'value' => '1',
|
2486 |
+
),
|
2487 |
+
array(
|
2488 |
+
'field' => 'field_acfe_form_user_action',
|
2489 |
+
'operator' => '!=',
|
2490 |
+
'value' => 'log_user',
|
2491 |
+
),
|
2492 |
+
),
|
2493 |
+
),
|
2494 |
+
),
|
2495 |
+
array(
|
2496 |
+
'key' => 'field_acfe_form_user_map_website',
|
2497 |
+
'label' => 'Website',
|
2498 |
+
'name' => 'acfe_form_user_map_website',
|
2499 |
+
'type' => 'select',
|
2500 |
+
'instructions' => '',
|
2501 |
+
'required' => 0,
|
2502 |
+
'wrapper' => array(
|
2503 |
+
'width' => '',
|
2504 |
+
'class' => '',
|
2505 |
+
'id' => '',
|
2506 |
+
),
|
2507 |
+
'acfe_permissions' => '',
|
2508 |
+
'choices' => array(
|
2509 |
+
),
|
2510 |
+
'default_value' => array(
|
2511 |
+
),
|
2512 |
+
'allow_null' => 1,
|
2513 |
+
'multiple' => 0,
|
2514 |
+
'ui' => 1,
|
2515 |
+
'return_format' => 'value',
|
2516 |
+
'placeholder' => 'Default',
|
2517 |
+
'ajax' => 0,
|
2518 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
2519 |
+
'allow_custom' => 1,
|
2520 |
+
'conditional_logic' => array(
|
2521 |
+
array(
|
2522 |
+
array(
|
2523 |
+
'field' => 'field_acfe_form_user_load_values',
|
2524 |
+
'operator' => '==',
|
2525 |
+
'value' => '1',
|
2526 |
+
),
|
2527 |
+
array(
|
2528 |
+
'field' => 'field_acfe_form_user_action',
|
2529 |
+
'operator' => '!=',
|
2530 |
+
'value' => 'log_user',
|
2531 |
+
),
|
2532 |
+
),
|
2533 |
+
),
|
2534 |
+
),
|
2535 |
+
array(
|
2536 |
+
'key' => 'field_acfe_form_user_map_description',
|
2537 |
+
'label' => 'Description',
|
2538 |
+
'name' => 'acfe_form_user_map_description',
|
2539 |
+
'type' => 'select',
|
2540 |
+
'instructions' => '',
|
2541 |
+
'required' => 0,
|
2542 |
+
'wrapper' => array(
|
2543 |
+
'width' => '',
|
2544 |
+
'class' => '',
|
2545 |
+
'id' => '',
|
2546 |
+
),
|
2547 |
+
'acfe_permissions' => '',
|
2548 |
+
'choices' => array(
|
2549 |
+
),
|
2550 |
+
'default_value' => array(
|
2551 |
+
),
|
2552 |
+
'allow_null' => 1,
|
2553 |
+
'multiple' => 0,
|
2554 |
+
'ui' => 1,
|
2555 |
+
'return_format' => 'value',
|
2556 |
+
'placeholder' => 'Default',
|
2557 |
+
'ajax' => 0,
|
2558 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
2559 |
+
'allow_custom' => 1,
|
2560 |
+
'conditional_logic' => array(
|
2561 |
+
array(
|
2562 |
+
array(
|
2563 |
+
'field' => 'field_acfe_form_user_load_values',
|
2564 |
+
'operator' => '==',
|
2565 |
+
'value' => '1',
|
2566 |
+
),
|
2567 |
+
array(
|
2568 |
+
'field' => 'field_acfe_form_user_action',
|
2569 |
+
'operator' => '!=',
|
2570 |
+
'value' => 'log_user',
|
2571 |
+
),
|
2572 |
+
),
|
2573 |
+
),
|
2574 |
+
),
|
2575 |
+
array(
|
2576 |
+
'key' => 'field_acfe_form_user_map_role',
|
2577 |
+
'label' => 'Role',
|
2578 |
+
'name' => 'acfe_form_user_map_role',
|
2579 |
+
'type' => 'select',
|
2580 |
+
'instructions' => '',
|
2581 |
+
'required' => 0,
|
2582 |
+
'wrapper' => array(
|
2583 |
+
'width' => '',
|
2584 |
+
'class' => '',
|
2585 |
+
'id' => '',
|
2586 |
+
),
|
2587 |
+
'acfe_permissions' => '',
|
2588 |
+
'choices' => array(
|
2589 |
+
),
|
2590 |
+
'default_value' => array(
|
2591 |
+
),
|
2592 |
+
'allow_null' => 1,
|
2593 |
+
'multiple' => 0,
|
2594 |
+
'ui' => 1,
|
2595 |
+
'return_format' => 'value',
|
2596 |
+
'placeholder' => 'Default',
|
2597 |
+
'ajax' => 0,
|
2598 |
+
'search_placeholder' => 'Enter a custom value or template tag. (See "Cheatsheet" tab)',
|
2599 |
+
'allow_custom' => 1,
|
2600 |
+
'conditional_logic' => array(
|
2601 |
+
array(
|
2602 |
+
array(
|
2603 |
+
'field' => 'field_acfe_form_user_load_values',
|
2604 |
+
'operator' => '==',
|
2605 |
+
'value' => '1',
|
2606 |
+
),
|
2607 |
+
array(
|
2608 |
+
'field' => 'field_acfe_form_user_action',
|
2609 |
+
'operator' => '!=',
|
2610 |
+
'value' => 'log_user',
|
2611 |
+
),
|
2612 |
+
),
|
2613 |
+
),
|
2614 |
+
),
|
2615 |
+
array(
|
2616 |
+
'key' => 'field_acfe_form_user_load_meta',
|
2617 |
+
'label' => 'Load ACF fields',
|
2618 |
+
'name' => 'acfe_form_user_load_meta',
|
2619 |
+
'type' => 'checkbox',
|
2620 |
+
'instructions' => 'Choose which ACF fields should have their values loaded',
|
2621 |
+
'required' => 0,
|
2622 |
+
'conditional_logic' => array(
|
2623 |
+
array(
|
2624 |
+
array(
|
2625 |
+
'field' => 'field_acfe_form_user_load_values',
|
2626 |
+
'operator' => '==',
|
2627 |
+
'value' => '1',
|
2628 |
+
),
|
2629 |
+
),
|
2630 |
+
),
|
2631 |
+
'wrapper' => array(
|
2632 |
+
'width' => '',
|
2633 |
+
'class' => '',
|
2634 |
+
'id' => '',
|
2635 |
+
),
|
2636 |
+
'acfe_permissions' => '',
|
2637 |
+
'choices' => array(
|
2638 |
+
),
|
2639 |
+
'allow_custom' => 0,
|
2640 |
+
'default_value' => array(
|
2641 |
+
),
|
2642 |
+
'layout' => 'vertical',
|
2643 |
+
'toggle' => 1,
|
2644 |
+
'return_format' => 'value',
|
2645 |
+
'save_custom' => 0,
|
2646 |
+
),
|
2647 |
+
|
2648 |
+
|
2649 |
+
/*
|
2650 |
+
* Layout: User Advanced
|
2651 |
+
*/
|
2652 |
+
array(
|
2653 |
+
'key' => 'field_acfe_form_user_tab_advanced',
|
2654 |
+
'label' => 'Code',
|
2655 |
+
'name' => '',
|
2656 |
+
'type' => 'tab',
|
2657 |
+
'instructions' => '',
|
2658 |
+
'required' => 0,
|
2659 |
+
'conditional_logic' => 0,
|
2660 |
+
'wrapper' => array(
|
2661 |
+
'width' => '',
|
2662 |
+
'class' => '',
|
2663 |
+
'id' => '',
|
2664 |
+
),
|
2665 |
+
'acfe_permissions' => '',
|
2666 |
+
'placement' => 'top',
|
2667 |
+
'endpoint' => 0,
|
2668 |
+
),
|
2669 |
+
array(
|
2670 |
+
'key' => 'field_acfe_form_user_advanced_load',
|
2671 |
+
'label' => 'Change values source',
|
2672 |
+
'name' => 'acfe_form_user_advanced_load',
|
2673 |
+
'type' => 'acfe_dynamic_message',
|
2674 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
2675 |
+
'instructions' => 'Alter the user ID where meta values are loaded from',
|
2676 |
+
'required' => 0,
|
2677 |
+
'conditional_logic' => 0,
|
2678 |
+
'wrapper' => array(
|
2679 |
+
'width' => '',
|
2680 |
+
'class' => '',
|
2681 |
+
'id' => '',
|
2682 |
+
),
|
2683 |
+
'acfe_permissions' => '',
|
2684 |
+
),
|
2685 |
+
array(
|
2686 |
+
'key' => 'field_acfe_form_user_advanced_save_args',
|
2687 |
+
'label' => 'Change user arguments',
|
2688 |
+
'name' => 'acfe_form_user_advanced_save_args',
|
2689 |
+
'type' => 'acfe_dynamic_message',
|
2690 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
2691 |
+
'instructions' => 'Alter the user arguments before database insert/update',
|
2692 |
+
'required' => 0,
|
2693 |
+
'conditional_logic' => 0,
|
2694 |
+
'wrapper' => array(
|
2695 |
+
'width' => '',
|
2696 |
+
'class' => '',
|
2697 |
+
'id' => '',
|
2698 |
+
),
|
2699 |
+
'acfe_permissions' => '',
|
2700 |
+
),
|
2701 |
+
array(
|
2702 |
+
'key' => 'field_acfe_form_user_advanced_save',
|
2703 |
+
'label' => 'Add custom action on user save',
|
2704 |
+
'name' => 'acfe_form_user_advanced_save',
|
2705 |
+
'type' => 'acfe_dynamic_message',
|
2706 |
+
'value' => isset($_REQUEST['post']) ? $_REQUEST['post'] : '',
|
2707 |
+
'instructions' => 'This action allows you to hook in before or after the meta data have been saved',
|
2708 |
+
'required' => 0,
|
2709 |
+
'conditional_logic' => 0,
|
2710 |
+
'wrapper' => array(
|
2711 |
+
'width' => '',
|
2712 |
+
'class' => '',
|
2713 |
+
'id' => '',
|
2714 |
+
),
|
2715 |
+
'acfe_permissions' => '',
|
2716 |
+
),
|
2717 |
+
),
|
2718 |
+
'min' => '',
|
2719 |
+
'max' => '',
|
2720 |
+
);
|
2721 |
+
|
2722 |
+
return $layouts;
|
2723 |
|
2724 |
}
|
2725 |
|
@@ -36,6 +36,7 @@ class acfe_form{
|
|
36 |
add_filter('acf/load_value/name=acfe_form_custom_html_enable', array($this, 'prepare_custom_html'), 10, 3);
|
37 |
add_filter('acf/prepare_field/name=acfe_form_actions', array($this, 'prepare_actions'));
|
38 |
add_filter('acf/prepare_field/name=acfe_form_field_groups', array($this, 'field_groups_choices'));
|
|
|
39 |
|
40 |
// Format values
|
41 |
add_filter('acfe/form/format_value/type=post_object', array($this, 'format_value_post_object'), 5, 4);
|
@@ -59,12 +60,16 @@ class acfe_form{
|
|
59 |
add_action('acf/render_field/name=acfe_form_cheatsheet_get_field', array($this, 'doc_get_field'));
|
60 |
add_action('acf/render_field/name=acfe_form_cheatsheet_get_option', array($this, 'doc_get_option'));
|
61 |
add_action('acf/render_field/name=acfe_form_cheatsheet_query_var', array($this, 'doc_query_var'));
|
|
|
|
|
|
|
|
|
|
|
62 |
add_action('acf/render_field/name=acfe_form_cheatsheet_request', array($this, 'doc_request'));
|
63 |
add_action('acf/render_field/name=acfe_form_cheatsheet_current_post', array($this, 'doc_current_post'));
|
64 |
add_action('acf/render_field/name=acfe_form_cheatsheet_current_term', array($this, 'doc_current_term'));
|
65 |
add_action('acf/render_field/name=acfe_form_cheatsheet_current_user', array($this, 'doc_current_user'));
|
66 |
add_action('acf/render_field/name=acfe_form_cheatsheet_current_author', array($this, 'doc_current_author'));
|
67 |
-
add_action('acf/render_field/name=acfe_form_cheatsheet_current_form', array($this, 'doc_current_form'));
|
68 |
|
69 |
// Ajax
|
70 |
/*
|
@@ -759,14 +764,14 @@ class acfe_form{
|
|
759 |
|
760 |
if(!empty($fields_choices)){
|
761 |
|
762 |
-
$field['choices'] =
|
763 |
|
764 |
}
|
765 |
|
766 |
if($field['type'] === 'select'){
|
767 |
|
768 |
// Query Vars
|
769 |
-
if(!empty($this->query_vars)){
|
770 |
|
771 |
parse_str($field['prefix'], $output);
|
772 |
$keys = acfe_array_keys_r($output);
|
@@ -791,10 +796,10 @@ class acfe_form{
|
|
791 |
if($action === 'post'){
|
792 |
|
793 |
$tags = array(
|
794 |
-
"{
|
795 |
-
"{
|
796 |
-
"{
|
797 |
-
"{
|
798 |
);
|
799 |
|
800 |
}
|
@@ -802,10 +807,10 @@ class acfe_form{
|
|
802 |
elseif($action === 'term'){
|
803 |
|
804 |
$tags = array(
|
805 |
-
"{
|
806 |
-
"{
|
807 |
-
"{
|
808 |
-
"{
|
809 |
);
|
810 |
|
811 |
}
|
@@ -813,9 +818,9 @@ class acfe_form{
|
|
813 |
elseif($action === 'user'){
|
814 |
|
815 |
$tags = array(
|
816 |
-
"{
|
817 |
-
"{
|
818 |
-
"{
|
819 |
);
|
820 |
|
821 |
}
|
@@ -823,9 +828,9 @@ class acfe_form{
|
|
823 |
elseif($action === 'email'){
|
824 |
|
825 |
$tags = array(
|
826 |
-
"{
|
827 |
-
"{
|
828 |
-
"{
|
829 |
);
|
830 |
|
831 |
}
|
@@ -839,10 +844,10 @@ class acfe_form{
|
|
839 |
}
|
840 |
|
841 |
}
|
842 |
-
}
|
843 |
|
844 |
// Templates Tags Examples
|
845 |
-
|
846 |
$field['choices']["Current Post"]['{current:post:post_title}'] = 'Title {current:post:post_title}';
|
847 |
$field['choices']["Current Post"]['{current:post:permalink}'] = 'Permalink {current:post:permalink}';
|
848 |
$field['choices']["Current Post"]['{current:post:post_author}'] = 'Author {current:post:post_author}';
|
@@ -859,9 +864,9 @@ class acfe_form{
|
|
859 |
$field['choices']["Current Author"]['{current:author:user_email}'] = 'E-mail {current:author:user_email}';
|
860 |
$field['choices']["Current Author"]['{current:author:permalink}'] = 'Permalink {current:author:permalink}';
|
861 |
|
862 |
-
$field['choices']["
|
863 |
-
$field['choices']["
|
864 |
-
$field['choices']["
|
865 |
|
866 |
}
|
867 |
|
@@ -1449,6 +1454,9 @@ class acfe_form{
|
|
1449 |
|
1450 |
// Match {query_var:name} {query_var:name:key}
|
1451 |
$c = acfe_form_map_query_var($c);
|
|
|
|
|
|
|
1452 |
|
1453 |
// Match {request:name}
|
1454 |
$c = acfe_form_map_request($c);
|
@@ -1462,7 +1470,7 @@ class acfe_form{
|
|
1462 |
return $content[0];
|
1463 |
|
1464 |
return false;
|
1465 |
-
|
1466 |
}
|
1467 |
|
1468 |
function map_field_value_load($content, $post_id = 0, $form = array()){
|
@@ -1966,513 +1974,477 @@ acf.addAction('acfe/form/submit/success/name=<?php echo $form_name; ?>');</pre>
|
|
1966 |
<table class="acf-table">
|
1967 |
<tbody>
|
1968 |
<tr class="acf-row">
|
1969 |
-
<td width="
|
1970 |
<td>value</td>
|
1971 |
</tr>
|
1972 |
<tr class="acf-row">
|
1973 |
-
<td width="
|
1974 |
<td>Array value</td>
|
1975 |
</tr>
|
1976 |
</tbody>
|
1977 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1978 |
|
1979 |
<br />
|
1980 |
|
1981 |
<table class="acf-table">
|
|
|
|
|
|
|
|
|
|
|
1982 |
<tbody>
|
1983 |
<tr class="acf-row">
|
1984 |
-
<td width="
|
1985 |
<td>128</td>
|
1986 |
</tr>
|
1987 |
<tr class="acf-row">
|
1988 |
-
<td width="
|
1989 |
-
<td>
|
|
|
|
|
|
|
|
|
1990 |
</tr>
|
1991 |
-
|
1992 |
<tr class="acf-row">
|
1993 |
-
<td width="
|
|
|
|
|
|
|
|
|
1994 |
<td>1</td>
|
1995 |
</tr>
|
1996 |
<tr class="acf-row">
|
1997 |
-
<td width="
|
1998 |
<td>login</td>
|
1999 |
</tr>
|
2000 |
<tr class="acf-row">
|
2001 |
-
<td width="
|
2002 |
-
<td
|
2003 |
</tr>
|
2004 |
<tr class="acf-row">
|
2005 |
-
<td
|
2006 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007 |
</tr>
|
2008 |
<tr class="acf-row">
|
2009 |
-
<td width="
|
2010 |
<td>user@domain.com</td>
|
2011 |
</tr>
|
2012 |
<tr class="acf-row">
|
2013 |
-
<td width="
|
2014 |
<td>https://www.website.com</td>
|
2015 |
</tr>
|
2016 |
<tr class="acf-row">
|
2017 |
-
<td width="
|
2018 |
<td><?php echo home_url('author/johndoe'); ?></td>
|
2019 |
</tr>
|
2020 |
<tr class="acf-row">
|
2021 |
-
<td
|
2022 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023 |
</tr>
|
|
|
|
|
2024 |
<tr class="acf-row">
|
2025 |
-
<td width="
|
2026 |
-
<td>
|
2027 |
</tr>
|
2028 |
<tr class="acf-row">
|
2029 |
-
<td width="
|
2030 |
-
<td
|
2031 |
</tr>
|
2032 |
<tr class="acf-row">
|
2033 |
-
<td width="
|
2034 |
-
<td>
|
2035 |
</tr>
|
2036 |
<tr class="acf-row">
|
2037 |
-
<td width="
|
2038 |
-
<td>
|
2039 |
</tr>
|
2040 |
<tr class="acf-row">
|
2041 |
-
<td width="
|
2042 |
-
<td
|
2043 |
</tr>
|
2044 |
<tr class="acf-row">
|
2045 |
-
<td
|
2046 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2047 |
</tr>
|
|
|
|
|
2048 |
<tr class="acf-row">
|
2049 |
-
<td width="
|
2050 |
-
<td>
|
2051 |
</tr>
|
2052 |
<tr class="acf-row">
|
2053 |
-
<td width="
|
2054 |
-
<td>
|
2055 |
</tr>
|
2056 |
<tr class="acf-row">
|
2057 |
-
<td width="
|
2058 |
-
<td>
|
2059 |
</tr>
|
2060 |
<tr class="acf-row">
|
2061 |
-
<td width="
|
2062 |
-
<td>
|
2063 |
</tr>
|
2064 |
<tr class="acf-row">
|
2065 |
-
<td width="
|
2066 |
-
<td>
|
2067 |
</tr>
|
2068 |
<tr class="acf-row">
|
2069 |
-
<td width="
|
2070 |
-
<td>
|
2071 |
</tr>
|
2072 |
<tr class="acf-row">
|
2073 |
-
<td width="
|
2074 |
-
<td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2075 |
</tr>
|
|
|
|
|
2076 |
<tr class="acf-row">
|
2077 |
-
<td width="
|
2078 |
-
<td>
|
2079 |
</tr>
|
2080 |
<tr class="acf-row">
|
2081 |
-
<td width="
|
2082 |
-
<td
|
2083 |
</tr>
|
2084 |
<tr class="acf-row">
|
2085 |
-
<td width="
|
2086 |
-
<td>
|
2087 |
</tr>
|
2088 |
<tr class="acf-row">
|
2089 |
-
<td width="
|
2090 |
-
<td>
|
2091 |
</tr>
|
2092 |
<tr class="acf-row">
|
2093 |
-
<td width="
|
2094 |
-
<td
|
2095 |
</tr>
|
2096 |
<tr class="acf-row">
|
2097 |
-
<td width="
|
2098 |
-
<td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2099 |
</tr>
|
2100 |
-
|
2101 |
<tr class="acf-row">
|
2102 |
-
<td width="
|
2103 |
<td>2020-03-01 20:07:48</td>
|
2104 |
</tr>
|
2105 |
<tr class="acf-row">
|
2106 |
-
<td width="
|
2107 |
<td>2020-03-01 19:07:48</td>
|
2108 |
</tr>
|
2109 |
<tr class="acf-row">
|
2110 |
-
<td width="
|
2111 |
<td>Content</td>
|
2112 |
</tr>
|
2113 |
<tr class="acf-row">
|
2114 |
-
<td width="
|
2115 |
<td>Title</td>
|
2116 |
</tr>
|
2117 |
<tr class="acf-row">
|
2118 |
-
<td width="
|
2119 |
<td>Excerpt</td>
|
2120 |
</tr>
|
2121 |
<tr class="acf-row">
|
2122 |
-
<td width="
|
2123 |
<td><?php echo home_url('my-post'); ?></td>
|
2124 |
</tr>
|
2125 |
<tr class="acf-row">
|
2126 |
-
<td width="
|
2127 |
<td><?php echo admin_url('post.php?post=128&action=edit'); ?></td>
|
2128 |
</tr>
|
2129 |
<tr class="acf-row">
|
2130 |
-
<td width="
|
2131 |
<td>publish</td>
|
2132 |
</tr>
|
2133 |
<tr class="acf-row">
|
2134 |
-
<td width="
|
2135 |
<td>closed</td>
|
2136 |
</tr>
|
2137 |
<tr class="acf-row">
|
2138 |
-
<td width="
|
2139 |
<td>closed</td>
|
2140 |
</tr>
|
2141 |
<tr class="acf-row">
|
2142 |
-
<td width="
|
2143 |
<td>password</td>
|
2144 |
</tr>
|
2145 |
<tr class="acf-row">
|
2146 |
-
<td width="
|
2147 |
<td>name</td>
|
2148 |
</tr>
|
2149 |
<tr class="acf-row">
|
2150 |
-
<td width="
|
2151 |
<td></td>
|
2152 |
</tr>
|
2153 |
<tr class="acf-row">
|
2154 |
-
<td width="
|
2155 |
<td></td>
|
2156 |
</tr>
|
2157 |
<tr class="acf-row">
|
2158 |
-
<td width="
|
2159 |
<td>2020-03-01 20:07:48</td>
|
2160 |
</tr>
|
2161 |
<tr class="acf-row">
|
2162 |
-
<td width="
|
2163 |
<td>2020-03-01 19:07:48</td>
|
2164 |
</tr>
|
2165 |
<tr class="acf-row">
|
2166 |
-
<td width="
|
2167 |
<td></td>
|
2168 |
</tr>
|
2169 |
<tr class="acf-row">
|
2170 |
-
<td width="
|
2171 |
<td>0</td>
|
2172 |
</tr>
|
2173 |
<tr class="acf-row">
|
2174 |
-
<td width="
|
2175 |
<td><?php echo home_url('?page_id=128'); ?></td>
|
2176 |
</tr>
|
2177 |
<tr class="acf-row">
|
2178 |
-
<td width="
|
2179 |
<td>0</td>
|
2180 |
</tr>
|
2181 |
<tr class="acf-row">
|
2182 |
-
<td width="
|
2183 |
<td>page</td>
|
2184 |
</tr>
|
2185 |
<tr class="acf-row">
|
2186 |
-
<td width="
|
2187 |
<td></td>
|
2188 |
</tr>
|
2189 |
<tr class="acf-row">
|
2190 |
-
<td width="
|
2191 |
<td>0</td>
|
2192 |
</tr>
|
2193 |
<tr class="acf-row">
|
2194 |
-
<td width="
|
2195 |
<td>raw</td>
|
2196 |
</tr>
|
2197 |
-
</tbody>
|
2198 |
-
</table>
|
2199 |
-
|
2200 |
-
<br />
|
2201 |
-
|
2202 |
-
<table class="acf-table">
|
2203 |
-
<tbody>
|
2204 |
<tr class="acf-row">
|
2205 |
-
<td width="
|
2206 |
-
<td>
|
2207 |
</tr>
|
|
|
2208 |
<tr class="acf-row">
|
2209 |
-
<td width="
|
2210 |
-
<td>
|
2211 |
</tr>
|
2212 |
<tr class="acf-row">
|
2213 |
-
<td width="
|
2214 |
-
<td>
|
2215 |
</tr>
|
2216 |
<tr class="acf-row">
|
2217 |
-
<td width="
|
2218 |
-
<td>
|
2219 |
</tr>
|
2220 |
<tr class="acf-row">
|
2221 |
-
<td width="
|
2222 |
-
<td
|
2223 |
</tr>
|
2224 |
<tr class="acf-row">
|
2225 |
-
<td width="
|
2226 |
-
<td
|
2227 |
</tr>
|
2228 |
<tr class="acf-row">
|
2229 |
-
<td width="
|
2230 |
-
<td>
|
2231 |
-
</tr>
|
2232 |
-
<tr class="acf-row">
|
2233 |
-
<td width="50%"><code>{query_var:my-term-action:term_taxonomy_id}</code></td>
|
2234 |
-
<td>23</td>
|
2235 |
-
</tr>
|
2236 |
-
<tr class="acf-row">
|
2237 |
-
<td width="50%"><code>{query_var:my-term-action:taxonomy}</code></td>
|
2238 |
-
<td>taxonomy</td>
|
2239 |
-
</tr>
|
2240 |
-
<tr class="acf-row">
|
2241 |
-
<td width="50%"><code>{query_var:my-term-action:description}</code></td>
|
2242 |
-
<td>Content</td>
|
2243 |
-
</tr>
|
2244 |
-
<tr class="acf-row">
|
2245 |
-
<td width="50%"><code>{query_var:my-term-action:parent}</code></td>
|
2246 |
-
<td>0</td>
|
2247 |
-
</tr>
|
2248 |
-
<tr class="acf-row">
|
2249 |
-
<td width="50%"><code>{query_var:my-term-action:count}</code></td>
|
2250 |
-
<td>0</td>
|
2251 |
-
</tr>
|
2252 |
-
<tr class="acf-row">
|
2253 |
-
<td width="50%"><code>{query_var:my-term-action:filter}</code></td>
|
2254 |
-
<td>raw</td>
|
2255 |
-
</tr>
|
2256 |
-
</tbody>
|
2257 |
-
</table>
|
2258 |
-
|
2259 |
-
<br />
|
2260 |
-
|
2261 |
-
<table class="acf-table">
|
2262 |
-
<tbody>
|
2263 |
-
<tr class="acf-row">
|
2264 |
-
<td width="50%"><code>{query_var:my-user-action:ID}</code></td>
|
2265 |
-
<td>1</td>
|
2266 |
-
</tr>
|
2267 |
-
<tr class="acf-row">
|
2268 |
-
<td width="50%"><code>{query_var:my-user-action:user_login}</code></td>
|
2269 |
-
<td>login</td>
|
2270 |
-
</tr>
|
2271 |
-
<tr class="acf-row">
|
2272 |
-
<td width="50%"><code>{query_var:my-user-action:user_pass}</code></td>
|
2273 |
-
<td>password_hash</td>
|
2274 |
-
</tr>
|
2275 |
-
<tr class="acf-row">
|
2276 |
-
<td width="50%"><code>{query_var:my-user-action:user_nicename}</code></td>
|
2277 |
-
<td>nicename</td>
|
2278 |
-
</tr>
|
2279 |
-
<tr class="acf-row">
|
2280 |
-
<td width="50%"><code>{query_var:my-user-action:user_email}</code></td>
|
2281 |
-
<td>user@domain.com</td>
|
2282 |
-
</tr>
|
2283 |
-
<tr class="acf-row">
|
2284 |
-
<td width="50%"><code>{query_var:my-user-action:user_url}</code></td>
|
2285 |
-
<td>https://www.website.com</td>
|
2286 |
-
</tr>
|
2287 |
-
<tr class="acf-row">
|
2288 |
-
<td width="50%"><code>{query_var:my-user-action:permalink}</code></td>
|
2289 |
-
<td><?php echo home_url('author/johndoe'); ?></td>
|
2290 |
-
</tr>
|
2291 |
-
<tr class="acf-row">
|
2292 |
-
<td width="50%"><code>{query_var:my-user-action:admin_url}</code></td>
|
2293 |
-
<td><?php echo admin_url('user-edit.php?user_id=1'); ?></td>
|
2294 |
-
</tr>
|
2295 |
-
<tr class="acf-row">
|
2296 |
-
<td width="50%"><code>{query_var:my-user-action:user_registered}</code></td>
|
2297 |
-
<td>2020-02-22 22:10:02</td>
|
2298 |
-
</tr>
|
2299 |
-
<tr class="acf-row">
|
2300 |
-
<td width="50%"><code>{query_var:my-user-action:user_activation_key}</code></td>
|
2301 |
-
<td></td>
|
2302 |
-
</tr>
|
2303 |
-
<tr class="acf-row">
|
2304 |
-
<td width="50%"><code>{query_var:my-user-action:user_status}</code></td>
|
2305 |
-
<td>0</td>
|
2306 |
-
</tr>
|
2307 |
-
<tr class="acf-row">
|
2308 |
-
<td width="50%"><code>{query_var:my-user-action:display_name}</code></td>
|
2309 |
-
<td>John Doe</td>
|
2310 |
-
</tr>
|
2311 |
-
<tr class="acf-row">
|
2312 |
-
<td width="50%"><code>{query_var:my-user-action:nickname}</code></td>
|
2313 |
-
<td>JohnDoe</td>
|
2314 |
-
</tr>
|
2315 |
-
<tr class="acf-row">
|
2316 |
-
<td width="50%"><code>{query_var:my-user-action:first_name}</code></td>
|
2317 |
-
<td>John</td>
|
2318 |
-
</tr>
|
2319 |
-
<tr class="acf-row">
|
2320 |
-
<td width="50%"><code>{query_var:my-user-action:last_name}</code></td>
|
2321 |
-
<td>Doe</td>
|
2322 |
-
</tr>
|
2323 |
-
<tr class="acf-row">
|
2324 |
-
<td width="50%"><code>{query_var:my-user-action:description}</code></td>
|
2325 |
-
<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</td>
|
2326 |
-
</tr>
|
2327 |
-
<tr class="acf-row">
|
2328 |
-
<td width="50%"><code>{query_var:my-user-action:rich_editing}</code></td>
|
2329 |
-
<td>true</td>
|
2330 |
-
</tr>
|
2331 |
-
<tr class="acf-row">
|
2332 |
-
<td width="50%"><code>{query_var:my-user-action:syntax_highlighting}</code></td>
|
2333 |
-
<td>true</td>
|
2334 |
-
</tr>
|
2335 |
-
<tr class="acf-row">
|
2336 |
-
<td width="50%"><code>{query_var:my-user-action:comment_shortcuts}</code></td>
|
2337 |
-
<td>false</td>
|
2338 |
-
</tr>
|
2339 |
-
<tr class="acf-row">
|
2340 |
-
<td width="50%"><code>{query_var:my-user-action:admin_color}</code></td>
|
2341 |
-
<td>fresh</td>
|
2342 |
-
</tr>
|
2343 |
-
<tr class="acf-row">
|
2344 |
-
<td width="50%"><code>{query_var:my-user-action:use_ssl}</code></td>
|
2345 |
-
<td>1</td>
|
2346 |
-
</tr>
|
2347 |
-
<tr class="acf-row">
|
2348 |
-
<td width="50%"><code>{query_var:my-user-action:show_admin_bar_front}</code></td>
|
2349 |
-
<td>true</td>
|
2350 |
-
</tr>
|
2351 |
-
<tr class="acf-row">
|
2352 |
-
<td width="50%"><code>{query_var:my-user-action:locale}</code></td>
|
2353 |
-
<td></td>
|
2354 |
-
</tr>
|
2355 |
-
<tr class="acf-row">
|
2356 |
-
<td width="50%"><code>{query_var:my-user-action:wp_capabilities}</code></td>
|
2357 |
-
<td>a:1:{s:13:"administrator";b:1;}</td>
|
2358 |
-
</tr>
|
2359 |
-
<tr class="acf-row">
|
2360 |
-
<td width="50%"><code>{query_var:my-user-action:wp_user_level}</code></td>
|
2361 |
-
<td>10</td>
|
2362 |
-
</tr>
|
2363 |
-
<tr class="acf-row">
|
2364 |
-
<td width="50%"><code>{query_var:my-user-action:dismissed_wp_pointers}</code></td>
|
2365 |
-
<td></td>
|
2366 |
-
</tr>
|
2367 |
-
<tr class="acf-row">
|
2368 |
-
<td width="50%"><code>{query_var:my-user-action:show_welcome_panel}</code></td>
|
2369 |
-
<td>1</td>
|
2370 |
-
</tr>
|
2371 |
-
</tbody>
|
2372 |
-
</table>
|
2373 |
-
|
2374 |
-
<br />
|
2375 |
-
|
2376 |
-
<table class="acf-table">
|
2377 |
-
<tbody>
|
2378 |
-
<tr class="acf-row">
|
2379 |
-
<td width="50%"><code>{query_var:my-email-action:from}</code></td>
|
2380 |
-
<td>Website <email@domain.com></td>
|
2381 |
-
</tr>
|
2382 |
-
<tr class="acf-row">
|
2383 |
-
<td width="50%"><code>{query_var:my-email-action:to}</code></td>
|
2384 |
-
<td>email@domain.com</td>
|
2385 |
-
</tr>
|
2386 |
-
<tr class="acf-row">
|
2387 |
-
<td width="50%"><code>{query_var:my-email-action:reply_to}</code></td>
|
2388 |
-
<td>email@domain.com</td>
|
2389 |
-
</tr>
|
2390 |
-
<tr class="acf-row">
|
2391 |
-
<td width="50%"><code>{query_var:my-email-action:cc}</code></td>
|
2392 |
-
<td>email@domain.com</td>
|
2393 |
-
</tr>
|
2394 |
-
<tr class="acf-row">
|
2395 |
-
<td width="50%"><code>{query_var:my-email-action:bcc}</code></td>
|
2396 |
-
<td>email@domain.com</td>
|
2397 |
-
</tr>
|
2398 |
-
<tr class="acf-row">
|
2399 |
-
<td width="50%"><code>{query_var:my-email-action:subject}</code></td>
|
2400 |
-
<td>Subject</td>
|
2401 |
-
</tr>
|
2402 |
-
<tr class="acf-row">
|
2403 |
-
<td width="50%"><code>{query_var:my-email-action:content}</code></td>
|
2404 |
-
<td>Content</td>
|
2405 |
-
</tr>
|
2406 |
-
<tr class="acf-row">
|
2407 |
-
<td width="50%"><code>{query_var:my-email-action:headers}</code></td>
|
2408 |
-
<td>Array</td>
|
2409 |
-
</tr>
|
2410 |
-
<tr class="acf-row">
|
2411 |
-
<td width="50%"><code>{query_var:my-email-action:attachments}</code></td>
|
2412 |
-
<td>Array</td>
|
2413 |
-
</tr>
|
2414 |
-
</tbody>
|
2415 |
-
</table>
|
2416 |
-
<?php
|
2417 |
-
}
|
2418 |
-
|
2419 |
-
function doc_request($field){
|
2420 |
-
?>
|
2421 |
-
<table class="acf-table">
|
2422 |
-
<tbody>
|
2423 |
-
<tr class="acf-row">
|
2424 |
-
<td width="35%"><code>{request:name}</code></td>
|
2425 |
-
<td><code>$_REQUEST['name']</code> (including <code>$_GET</code> & <code>$_POST</code>)</td>
|
2426 |
-
</tr>
|
2427 |
-
<tr class="acf-row">
|
2428 |
-
<td width="35%"><code>{request:name:key}</code></td>
|
2429 |
-
<td><code>$_REQUEST['name']['key']</code> (including <code>$_GET</code> & <code>$_POST</code>)</td>
|
2430 |
-
</tr>
|
2431 |
-
</tbody>
|
2432 |
-
</table>
|
2433 |
-
<?php
|
2434 |
-
}
|
2435 |
-
|
2436 |
-
function doc_current_post($field){
|
2437 |
-
?>
|
2438 |
-
<table class="acf-table">
|
2439 |
-
<tbody>
|
2440 |
-
<tr class="acf-row">
|
2441 |
-
<td width="35%"><code>{current:post}</code></td>
|
2442 |
-
<td>128</td>
|
2443 |
-
</tr>
|
2444 |
-
<tr class="acf-row">
|
2445 |
-
<td width="35%"><code>{current:post:ID}</code></td>
|
2446 |
-
<td>128</td>
|
2447 |
-
</tr>
|
2448 |
-
<tr class="acf-row">
|
2449 |
-
<td width="35%"><code>{current:post:post_author}</code></td>
|
2450 |
-
<td>1</td>
|
2451 |
-
</tr>
|
2452 |
-
|
2453 |
-
<tr class="acf-row">
|
2454 |
-
<td width="35%"><code>{current:post:post_author_data:ID}</code></td>
|
2455 |
-
<td>1</td>
|
2456 |
-
</tr>
|
2457 |
-
<tr class="acf-row">
|
2458 |
-
<td width="35%"><code>{current:post:post_author_data:user_login}</code></td>
|
2459 |
-
<td>login</td>
|
2460 |
-
</tr>
|
2461 |
-
<tr class="acf-row">
|
2462 |
-
<td width="35%"><code>{current:post:post_author_data:user_pass}</code></td>
|
2463 |
-
<td>password_hash</td>
|
2464 |
-
</tr>
|
2465 |
-
<tr class="acf-row">
|
2466 |
-
<td width="35%"><code>{current:post:post_author_data:user_nicename}</code></td>
|
2467 |
-
<td>nicename</td>
|
2468 |
-
</tr>
|
2469 |
-
<tr class="acf-row">
|
2470 |
-
<td width="35%"><code>{current:post:post_author_data:user_email}</code></td>
|
2471 |
-
<td>user@domain.com</td>
|
2472 |
-
</tr>
|
2473 |
-
<tr class="acf-row">
|
2474 |
-
<td width="35%"><code>{current:post:post_author_data:user_url}</code></td>
|
2475 |
-
<td>https://www.website.com</td>
|
2476 |
</tr>
|
2477 |
<tr class="acf-row">
|
2478 |
<td width="35%"><code>{current:post:post_author_data:permalink}</code></td>
|
@@ -2558,104 +2530,6 @@ acf.addAction('acfe/form/submit/success/name=<?php echo $form_name; ?>');</pre>
|
|
2558 |
<td width="35%"><code>{current:post:post_author_data:show_welcome_panel}</code></td>
|
2559 |
<td>1</td>
|
2560 |
</tr>
|
2561 |
-
|
2562 |
-
<tr class="acf-row">
|
2563 |
-
<td width="35%"><code>{current:post:post_date}</code></td>
|
2564 |
-
<td>2020-03-01 20:07:48</td>
|
2565 |
-
</tr>
|
2566 |
-
<tr class="acf-row">
|
2567 |
-
<td width="35%"><code>{current:post:post_date_gmt}</code></td>
|
2568 |
-
<td>2020-03-01 19:07:48</td>
|
2569 |
-
</tr>
|
2570 |
-
<tr class="acf-row">
|
2571 |
-
<td width="35%"><code>{current:post:post_content}</code></td>
|
2572 |
-
<td>Content</td>
|
2573 |
-
</tr>
|
2574 |
-
<tr class="acf-row">
|
2575 |
-
<td width="35%"><code>{current:post:post_title}</code></td>
|
2576 |
-
<td>Title</td>
|
2577 |
-
</tr>
|
2578 |
-
<tr class="acf-row">
|
2579 |
-
<td width="35%"><code>{current:post:post_excerpt}</code></td>
|
2580 |
-
<td>Excerpt</td>
|
2581 |
-
</tr>
|
2582 |
-
<tr class="acf-row">
|
2583 |
-
<td width="35%"><code>{current:post:permalink}</code></td>
|
2584 |
-
<td><?php echo home_url('my-post'); ?></td>
|
2585 |
-
</tr>
|
2586 |
-
<tr class="acf-row">
|
2587 |
-
<td width="35%"><code>{current:post:admin_url}</code></td>
|
2588 |
-
<td><?php echo admin_url('post.php?post=128&action=edit'); ?></td>
|
2589 |
-
</tr>
|
2590 |
-
<tr class="acf-row">
|
2591 |
-
<td width="35%"><code>{current:post:post_status}</code></td>
|
2592 |
-
<td>publish</td>
|
2593 |
-
</tr>
|
2594 |
-
<tr class="acf-row">
|
2595 |
-
<td width="35%"><code>{current:post:comment_status}</code></td>
|
2596 |
-
<td>closed</td>
|
2597 |
-
</tr>
|
2598 |
-
<tr class="acf-row">
|
2599 |
-
<td width="35%"><code>{current:post:ping_status}</code></td>
|
2600 |
-
<td>closed</td>
|
2601 |
-
</tr>
|
2602 |
-
<tr class="acf-row">
|
2603 |
-
<td width="35%"><code>{current:post:post_password}</code></td>
|
2604 |
-
<td>password</td>
|
2605 |
-
</tr>
|
2606 |
-
<tr class="acf-row">
|
2607 |
-
<td width="35%"><code>{current:post:post_name}</code></td>
|
2608 |
-
<td>name</td>
|
2609 |
-
</tr>
|
2610 |
-
<tr class="acf-row">
|
2611 |
-
<td width="35%"><code>{current:post:to_ping}</code></td>
|
2612 |
-
<td></td>
|
2613 |
-
</tr>
|
2614 |
-
<tr class="acf-row">
|
2615 |
-
<td width="35%"><code>{current:post:pinged}</code></td>
|
2616 |
-
<td></td>
|
2617 |
-
</tr>
|
2618 |
-
<tr class="acf-row">
|
2619 |
-
<td width="35%"><code>{current:post:post_modified}</code></td>
|
2620 |
-
<td>2020-03-01 20:07:48</td>
|
2621 |
-
</tr>
|
2622 |
-
<tr class="acf-row">
|
2623 |
-
<td width="35%"><code>{current:post:post_modified_gmt}</code></td>
|
2624 |
-
<td>2020-03-01 19:07:48</td>
|
2625 |
-
</tr>
|
2626 |
-
<tr class="acf-row">
|
2627 |
-
<td width="35%"><code>{current:post:post_content_filtered}</code></td>
|
2628 |
-
<td></td>
|
2629 |
-
</tr>
|
2630 |
-
<tr class="acf-row">
|
2631 |
-
<td width="35%"><code>{current:post:post_parent}</code></td>
|
2632 |
-
<td>0</td>
|
2633 |
-
</tr>
|
2634 |
-
<tr class="acf-row">
|
2635 |
-
<td width="35%"><code>{current:post:guid}</code></td>
|
2636 |
-
<td><?php echo home_url('?page_id=128'); ?></td>
|
2637 |
-
</tr>
|
2638 |
-
<tr class="acf-row">
|
2639 |
-
<td width="35%"><code>{current:post:menu_order}</code></td>
|
2640 |
-
<td>0</td>
|
2641 |
-
</tr>
|
2642 |
-
<tr class="acf-row">
|
2643 |
-
<td width="35%"><code>{current:post:post_type}</code></td>
|
2644 |
-
<td>page</td>
|
2645 |
-
</tr>
|
2646 |
-
<tr class="acf-row">
|
2647 |
-
<td width="35%"><code>{current:post:post_mime_type}</code></td>
|
2648 |
-
<td></td>
|
2649 |
-
</tr>
|
2650 |
-
<tr class="acf-row">
|
2651 |
-
<td width="35%"><code>{current:post:comment_count}</code></td>
|
2652 |
-
<td>0</td>
|
2653 |
-
</tr>
|
2654 |
-
<tr class="acf-row">
|
2655 |
-
<td width="35%"><code>{current:post:filter}</code></td>
|
2656 |
-
<td>raw</td>
|
2657 |
-
</tr>
|
2658 |
-
|
2659 |
</tbody>
|
2660 |
</table>
|
2661 |
<?php
|
@@ -2973,23 +2847,23 @@ acf.addAction('acfe/form/submit/success/name=<?php echo $form_name; ?>');</pre>
|
|
2973 |
<table class="acf-table">
|
2974 |
<tbody>
|
2975 |
<tr class="acf-row">
|
2976 |
-
<td width="35%"><code>{
|
2977 |
<td>11<br/></td>
|
2978 |
</tr>
|
2979 |
<tr class="acf-row">
|
2980 |
-
<td width="35%"><code>{
|
2981 |
<td>11<br/></td>
|
2982 |
</tr>
|
2983 |
<tr class="acf-row">
|
2984 |
-
<td width="35%"><code>{
|
2985 |
<td>Form<br/></td>
|
2986 |
</tr>
|
2987 |
<tr class="acf-row">
|
2988 |
-
<td width="35%"><code>{
|
2989 |
<td>form<br/></td>
|
2990 |
</tr>
|
2991 |
<tr class="acf-row">
|
2992 |
-
<td width="35%"><code>{
|
2993 |
<td>Custom key value<br/></td>
|
2994 |
</tr>
|
2995 |
</tbody>
|
@@ -2997,6 +2871,15 @@ acf.addAction('acfe/form/submit/success/name=<?php echo $form_name; ?>');</pre>
|
|
2997 |
<?php
|
2998 |
}
|
2999 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3000 |
}
|
3001 |
|
3002 |
// initialize
|
@@ -3143,325 +3026,23 @@ function acfe_form_map_current($content, $post_id = 0, $form = array()){
|
|
3143 |
elseif($content === 'generate_password'){
|
3144 |
|
3145 |
return wp_generate_password(8, false);
|
3146 |
-
|
3147 |
-
}
|
3148 |
-
|
3149 |
-
// Match {current:post:
|
3150 |
-
elseif(strpos($content, '{current:') !== false){
|
3151 |
-
|
3152 |
-
|
3153 |
-
|
3154 |
-
|
3155 |
-
foreach($matches[1] as $i => $name){
|
3156 |
-
|
3157 |
-
$value = false;
|
3158 |
-
|
3159 |
-
if(strpos($name, ':') !== false){
|
3160 |
-
|
3161 |
-
$explode = explode(':', $name);
|
3162 |
-
|
3163 |
-
$type = $explode[0]; // post, term, user
|
3164 |
-
$field = $explode[1]; // id, post_parent, post_title
|
3165 |
-
|
3166 |
-
// {current:post:id}
|
3167 |
-
if($type === 'post' && $post['type'] === 'post'){
|
3168 |
-
|
3169 |
-
// id
|
3170 |
-
if(strtolower($field) === 'id' || strtolower($field) === 'post_id'){
|
3171 |
-
|
3172 |
-
$value = $post['id'];
|
3173 |
-
|
3174 |
-
}
|
3175 |
-
|
3176 |
-
// permalink
|
3177 |
-
elseif(strtolower($field) === 'permalink'){
|
3178 |
-
|
3179 |
-
$value = get_permalink($post['id']);
|
3180 |
-
|
3181 |
-
}
|
3182 |
-
|
3183 |
-
// admin url
|
3184 |
-
elseif(strtolower($field) === 'admin_url'){
|
3185 |
-
|
3186 |
-
$value = admin_url('post.php?post=' . $post['id'] . '&action=edit');
|
3187 |
-
|
3188 |
-
}
|
3189 |
-
|
3190 |
-
// post_author_data
|
3191 |
-
elseif(strtolower($field) === 'post_author_data'){
|
3192 |
-
|
3193 |
-
// Retrieve Post Author data
|
3194 |
-
$post_author = get_post_field('post_author', $post['id']);
|
3195 |
-
$user_object = get_user_by('ID', $post_author);
|
3196 |
-
|
3197 |
-
if(isset($user_object->data)){
|
3198 |
-
|
3199 |
-
$user = json_decode(json_encode($user_object->data), true);
|
3200 |
-
|
3201 |
-
$user_object_meta = get_user_meta($user['ID']);
|
3202 |
-
|
3203 |
-
$user_meta = array();
|
3204 |
-
|
3205 |
-
foreach($user_object_meta as $k => $v){
|
3206 |
-
|
3207 |
-
if(!isset($v[0]))
|
3208 |
-
continue;
|
3209 |
-
|
3210 |
-
$user_meta[$k] = $v[0];
|
3211 |
-
|
3212 |
-
}
|
3213 |
-
|
3214 |
-
$user_array = array_merge($user, $user_meta);
|
3215 |
-
|
3216 |
-
$user_array['permalink'] = get_author_posts_url($post_author);
|
3217 |
-
$user_array['admin_url'] = admin_url('user-edit.php?user_id=' . $post_author);
|
3218 |
-
|
3219 |
-
$post_author_data = $user_array;
|
3220 |
-
|
3221 |
-
$field_author = $explode[2];
|
3222 |
-
|
3223 |
-
$value = $post_author_data[$field_author];
|
3224 |
-
|
3225 |
-
}
|
3226 |
-
|
3227 |
-
}
|
3228 |
-
|
3229 |
-
// other
|
3230 |
-
else{
|
3231 |
-
|
3232 |
-
$value = get_post_field($field, $post['id']);
|
3233 |
-
|
3234 |
-
}
|
3235 |
-
|
3236 |
-
}
|
3237 |
-
|
3238 |
-
// {current:term:id}
|
3239 |
-
elseif($type === 'term' && $post['type'] === 'term'){
|
3240 |
-
|
3241 |
-
// id
|
3242 |
-
if(strtolower($field) === 'id' || strtolower($field) === 'term_id'){
|
3243 |
-
|
3244 |
-
$value = $post['id'];
|
3245 |
-
|
3246 |
-
}
|
3247 |
-
|
3248 |
-
// permalink
|
3249 |
-
elseif(strtolower($field) === 'permalink'){
|
3250 |
-
|
3251 |
-
$value = get_term_link($post['id']);
|
3252 |
-
|
3253 |
-
}
|
3254 |
-
|
3255 |
-
// admin url
|
3256 |
-
elseif(strtolower($field) === 'admin_url'){
|
3257 |
-
|
3258 |
-
$value = admin_url('term.php?tag_ID=' . $post['id']);
|
3259 |
-
|
3260 |
-
}
|
3261 |
-
|
3262 |
-
// other
|
3263 |
-
else{
|
3264 |
-
|
3265 |
-
$value = get_term_field($field, $post['id']);
|
3266 |
-
|
3267 |
-
}
|
3268 |
-
|
3269 |
-
}
|
3270 |
-
|
3271 |
-
// {current:user:id}
|
3272 |
-
elseif($type === 'user'){
|
3273 |
-
|
3274 |
-
if(is_user_logged_in()){
|
3275 |
-
|
3276 |
-
$user_id = get_current_user_id();
|
3277 |
-
|
3278 |
-
// id
|
3279 |
-
if(strtolower($field) === 'id' || strtolower($field) === 'user_id'){
|
3280 |
-
|
3281 |
-
$value = $user_id;
|
3282 |
-
|
3283 |
-
}
|
3284 |
-
|
3285 |
-
// permalink
|
3286 |
-
elseif(strtolower($field) === 'permalink'){
|
3287 |
-
|
3288 |
-
$value = get_author_posts_url($user_id);
|
3289 |
-
|
3290 |
-
}
|
3291 |
-
|
3292 |
-
// admin url
|
3293 |
-
elseif(strtolower($field) === 'admin_url'){
|
3294 |
-
|
3295 |
-
$value = admin_url('user-edit.php?user_id=' . $user_id);
|
3296 |
-
|
3297 |
-
}
|
3298 |
-
|
3299 |
-
// other
|
3300 |
-
else{
|
3301 |
-
|
3302 |
-
$value = false;
|
3303 |
-
|
3304 |
-
$user_object = get_user_by('ID', $user_id);
|
3305 |
-
|
3306 |
-
if(isset($user_object->data)){
|
3307 |
-
|
3308 |
-
// return array
|
3309 |
-
$user = json_decode(json_encode($user_object->data), true);
|
3310 |
-
|
3311 |
-
$user_object_meta = get_user_meta($user_id);
|
3312 |
-
|
3313 |
-
$user_meta = array();
|
3314 |
-
|
3315 |
-
foreach($user_object_meta as $k => $v){
|
3316 |
-
|
3317 |
-
if(!isset($v[0]))
|
3318 |
-
continue;
|
3319 |
-
|
3320 |
-
$user_meta[$k] = $v[0];
|
3321 |
-
|
3322 |
-
}
|
3323 |
-
|
3324 |
-
$user = array_merge($user, $user_meta);
|
3325 |
-
|
3326 |
-
$value = acf_maybe_get($user, $field);
|
3327 |
-
|
3328 |
-
}
|
3329 |
-
|
3330 |
-
}
|
3331 |
-
|
3332 |
-
}
|
3333 |
-
|
3334 |
-
}
|
3335 |
-
|
3336 |
-
// {current:author:id}
|
3337 |
-
elseif($type === 'author' && $post['type'] === 'post'){
|
3338 |
-
|
3339 |
-
$user_id = get_post_field('post_author', $post['id']);
|
3340 |
-
|
3341 |
-
if($user_id){
|
3342 |
-
|
3343 |
-
// id
|
3344 |
-
if(strtolower($field) === 'id' || strtolower($field) === 'user_id'){
|
3345 |
-
|
3346 |
-
$value = $user_id;
|
3347 |
-
|
3348 |
-
}
|
3349 |
-
|
3350 |
-
// permalink
|
3351 |
-
elseif(strtolower($field) === 'permalink'){
|
3352 |
-
|
3353 |
-
$value = get_author_posts_url($user_id);
|
3354 |
-
|
3355 |
-
}
|
3356 |
-
|
3357 |
-
// admin url
|
3358 |
-
elseif(strtolower($field) === 'admin_url'){
|
3359 |
-
|
3360 |
-
$value = admin_url('user-edit.php?user_id=' . $user_id);
|
3361 |
-
|
3362 |
-
}
|
3363 |
-
|
3364 |
-
// other
|
3365 |
-
else{
|
3366 |
-
|
3367 |
-
$value = false;
|
3368 |
-
|
3369 |
-
$user_object = get_user_by('ID', $user_id);
|
3370 |
-
|
3371 |
-
if(isset($user_object->data)){
|
3372 |
-
|
3373 |
-
// return array
|
3374 |
-
$user = json_decode(json_encode($user_object->data), true);
|
3375 |
-
|
3376 |
-
$user_object_meta = get_user_meta($user_id);
|
3377 |
-
|
3378 |
-
$user_meta = array();
|
3379 |
-
|
3380 |
-
foreach($user_object_meta as $k => $v){
|
3381 |
-
|
3382 |
-
if(!isset($v[0]))
|
3383 |
-
continue;
|
3384 |
-
|
3385 |
-
$user_meta[$k] = $v[0];
|
3386 |
-
|
3387 |
-
}
|
3388 |
-
|
3389 |
-
$user = array_merge($user, $user_meta);
|
3390 |
-
|
3391 |
-
$value = acf_maybe_get($user, $field);
|
3392 |
-
|
3393 |
-
}
|
3394 |
-
|
3395 |
-
}
|
3396 |
-
|
3397 |
-
}
|
3398 |
-
|
3399 |
-
|
3400 |
-
}
|
3401 |
-
|
3402 |
-
// {current:form:id}
|
3403 |
-
elseif($type === 'form'){
|
3404 |
-
|
3405 |
-
if(strtolower($field) === 'id' || strtolower($field) === 'form_id'){
|
3406 |
-
|
3407 |
-
$value = acf_maybe_get($form, 'ID');
|
3408 |
-
|
3409 |
-
}
|
3410 |
-
|
3411 |
-
elseif(strtolower($field) === 'name' || strtolower($field) === 'form_name'){
|
3412 |
-
|
3413 |
-
$value = acf_maybe_get($form, 'name');
|
3414 |
-
|
3415 |
-
}
|
3416 |
-
|
3417 |
-
elseif(strtolower($field) === 'title' || strtolower($field) === 'form_title'){
|
3418 |
-
|
3419 |
-
$value = acf_maybe_get($form, 'title');
|
3420 |
-
|
3421 |
-
}else{
|
3422 |
-
|
3423 |
-
$value = acf_maybe_get($form, $field);
|
3424 |
-
|
3425 |
-
}
|
3426 |
-
|
3427 |
-
}
|
3428 |
-
|
3429 |
-
}
|
3430 |
-
|
3431 |
-
// {current:post}
|
3432 |
-
elseif($name === 'post' && $post['type'] === 'post'){
|
3433 |
-
|
3434 |
-
$value = $post['id'];
|
3435 |
-
|
3436 |
-
}
|
3437 |
-
|
3438 |
-
// {current:term}
|
3439 |
-
elseif($name === 'term' && $post['type'] === 'term'){
|
3440 |
-
|
3441 |
-
$value = $post['id'];
|
3442 |
-
|
3443 |
-
}
|
3444 |
-
|
3445 |
-
// {current:user}
|
3446 |
-
elseif($name === 'user'){
|
3447 |
-
|
3448 |
-
$value = get_current_user_id();
|
3449 |
-
|
3450 |
-
}
|
3451 |
-
|
3452 |
-
// {current:author}
|
3453 |
-
elseif($name === 'author' && $post['type'] === 'post'){
|
3454 |
-
|
3455 |
-
$value = get_post_field('post_author', $post['id']);
|
3456 |
-
|
3457 |
-
}
|
3458 |
|
3459 |
-
|
3460 |
-
|
3461 |
-
|
3462 |
-
$value = acf_maybe_get($form, 'ID');
|
3463 |
|
3464 |
}
|
|
|
|
|
3465 |
|
3466 |
$content = str_replace('{current:' . $name . '}', $value, $content);
|
3467 |
|
@@ -3470,6 +3051,24 @@ function acfe_form_map_current($content, $post_id = 0, $form = array()){
|
|
3470 |
}
|
3471 |
|
3472 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3473 |
|
3474 |
return $content;
|
3475 |
|
@@ -3489,6 +3088,12 @@ function acfe_form_map_query_var($content){
|
|
3489 |
|
3490 |
foreach($matches[1] as $i => $name){
|
3491 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3492 |
$query_var = get_query_var($name);
|
3493 |
|
3494 |
if(strpos($name, ':') !== false){
|
@@ -3521,6 +3126,61 @@ function acfe_form_map_query_var($content){
|
|
3521 |
|
3522 |
}
|
3523 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3524 |
// Match {request:name} {request:name:key}
|
3525 |
function acfe_form_map_request($content){
|
3526 |
|
@@ -3784,6 +3444,335 @@ function acfe_form_map_fields($content){
|
|
3784 |
|
3785 |
}
|
3786 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
add_filter('acf/load_value/name=acfe_form_custom_html_enable', array($this, 'prepare_custom_html'), 10, 3);
|
37 |
add_filter('acf/prepare_field/name=acfe_form_actions', array($this, 'prepare_actions'));
|
38 |
add_filter('acf/prepare_field/name=acfe_form_field_groups', array($this, 'field_groups_choices'));
|
39 |
+
add_filter('acf/prepare_field/name=acfe_form_return', array($this, 'form_return_deprecated'));
|
40 |
|
41 |
// Format values
|
42 |
add_filter('acfe/form/format_value/type=post_object', array($this, 'format_value_post_object'), 5, 4);
|
60 |
add_action('acf/render_field/name=acfe_form_cheatsheet_get_field', array($this, 'doc_get_field'));
|
61 |
add_action('acf/render_field/name=acfe_form_cheatsheet_get_option', array($this, 'doc_get_option'));
|
62 |
add_action('acf/render_field/name=acfe_form_cheatsheet_query_var', array($this, 'doc_query_var'));
|
63 |
+
add_action('acf/render_field/name=acfe_form_cheatsheet_current_form', array($this, 'doc_current_form'));
|
64 |
+
add_action('acf/render_field/name=acfe_form_cheatsheet_actions_post', array($this, 'doc_actions_post'));
|
65 |
+
add_action('acf/render_field/name=acfe_form_cheatsheet_actions_term', array($this, 'doc_actions_term'));
|
66 |
+
add_action('acf/render_field/name=acfe_form_cheatsheet_actions_user', array($this, 'doc_actions_user'));
|
67 |
+
add_action('acf/render_field/name=acfe_form_cheatsheet_actions_email', array($this, 'doc_actions_email'));
|
68 |
add_action('acf/render_field/name=acfe_form_cheatsheet_request', array($this, 'doc_request'));
|
69 |
add_action('acf/render_field/name=acfe_form_cheatsheet_current_post', array($this, 'doc_current_post'));
|
70 |
add_action('acf/render_field/name=acfe_form_cheatsheet_current_term', array($this, 'doc_current_term'));
|
71 |
add_action('acf/render_field/name=acfe_form_cheatsheet_current_user', array($this, 'doc_current_user'));
|
72 |
add_action('acf/render_field/name=acfe_form_cheatsheet_current_author', array($this, 'doc_current_author'));
|
|
|
73 |
|
74 |
// Ajax
|
75 |
/*
|
764 |
|
765 |
if(!empty($fields_choices)){
|
766 |
|
767 |
+
$field['choices'] = array_replace($field['choices'], $fields_choices);
|
768 |
|
769 |
}
|
770 |
|
771 |
if($field['type'] === 'select'){
|
772 |
|
773 |
// Query Vars
|
774 |
+
/*if(!empty($this->query_vars)){
|
775 |
|
776 |
parse_str($field['prefix'], $output);
|
777 |
$keys = acfe_array_keys_r($output);
|
796 |
if($action === 'post'){
|
797 |
|
798 |
$tags = array(
|
799 |
+
"{action:$alias:ID}" => 'Post ID',
|
800 |
+
"{action:$alias:post_title}" => 'Title',
|
801 |
+
"{action:$alias:permalink}" => 'Permalink',
|
802 |
+
"{action:$alias:admin_url}" => 'Admin URL',
|
803 |
);
|
804 |
|
805 |
}
|
807 |
elseif($action === 'term'){
|
808 |
|
809 |
$tags = array(
|
810 |
+
"{action:$alias:ID}" => 'Term ID',
|
811 |
+
"{action:$alias:name}" => 'Name',
|
812 |
+
"{action:$alias:permalink}" => 'Permalink',
|
813 |
+
"{action:$alias:admin_url}" => 'Admin URL',
|
814 |
);
|
815 |
|
816 |
}
|
818 |
elseif($action === 'user'){
|
819 |
|
820 |
$tags = array(
|
821 |
+
"{action:$alias:ID}" => 'User ID',
|
822 |
+
"{action:$alias:user_email}" => 'E-mail',
|
823 |
+
"{action:$alias:permalink}" => 'Permalink',
|
824 |
);
|
825 |
|
826 |
}
|
828 |
elseif($action === 'email'){
|
829 |
|
830 |
$tags = array(
|
831 |
+
"{action:$alias:from}" => 'From',
|
832 |
+
"{action:$alias:to}" => 'To',
|
833 |
+
"{action:$alias:content}" => 'Content',
|
834 |
);
|
835 |
|
836 |
}
|
844 |
}
|
845 |
|
846 |
}
|
847 |
+
}*/
|
848 |
|
849 |
// Templates Tags Examples
|
850 |
+
/*$field['choices']["Current Post"]['{current:post:ID}'] = 'Post ID {current:post:ID}';
|
851 |
$field['choices']["Current Post"]['{current:post:post_title}'] = 'Title {current:post:post_title}';
|
852 |
$field['choices']["Current Post"]['{current:post:permalink}'] = 'Permalink {current:post:permalink}';
|
853 |
$field['choices']["Current Post"]['{current:post:post_author}'] = 'Author {current:post:post_author}';
|
864 |
$field['choices']["Current Author"]['{current:author:user_email}'] = 'E-mail {current:author:user_email}';
|
865 |
$field['choices']["Current Author"]['{current:author:permalink}'] = 'Permalink {current:author:permalink}';
|
866 |
|
867 |
+
$field['choices']["Form Settings"]['{form:ID}'] = 'ID {form:ID}';
|
868 |
+
$field['choices']["Form Settings"]['{form:name}'] = 'Name {form:name}';
|
869 |
+
$field['choices']["Form Settings"]['{form:title}'] = 'Title {form:title}';*/
|
870 |
|
871 |
}
|
872 |
|
1454 |
|
1455 |
// Match {query_var:name} {query_var:name:key}
|
1456 |
$c = acfe_form_map_query_var($c);
|
1457 |
+
|
1458 |
+
// Match {action:field}
|
1459 |
+
$c = acfe_form_map_action($c);
|
1460 |
|
1461 |
// Match {request:name}
|
1462 |
$c = acfe_form_map_request($c);
|
1470 |
return $content[0];
|
1471 |
|
1472 |
return false;
|
1473 |
+
|
1474 |
}
|
1475 |
|
1476 |
function map_field_value_load($content, $post_id = 0, $form = array()){
|
1974 |
<table class="acf-table">
|
1975 |
<tbody>
|
1976 |
<tr class="acf-row">
|
1977 |
+
<td width="35%"><code>{query_var:name}</code></td>
|
1978 |
<td>value</td>
|
1979 |
</tr>
|
1980 |
<tr class="acf-row">
|
1981 |
+
<td width="35%"><code>{query_var:name:key}</code></td>
|
1982 |
<td>Array value</td>
|
1983 |
</tr>
|
1984 |
</tbody>
|
1985 |
</table>
|
1986 |
+
<?php
|
1987 |
+
}
|
1988 |
+
|
1989 |
+
function doc_actions_post($field){
|
1990 |
+
?>
|
1991 |
+
<table class="acf-table">
|
1992 |
+
<thead>
|
1993 |
+
<tr>
|
1994 |
+
<th colspan="2"><strong>Last Post Action</strong></td>
|
1995 |
+
</tr>
|
1996 |
+
</thead>
|
1997 |
+
<tbody>
|
1998 |
+
<tr class="acf-row">
|
1999 |
+
<td width="35%"><code>{action:post:ID}</code></td>
|
2000 |
+
<td>128</td>
|
2001 |
+
</tr>
|
2002 |
+
<tr class="acf-row">
|
2003 |
+
<td width="35%"><code>{action:post:post_title}</code></td>
|
2004 |
+
<td>Title</td>
|
2005 |
+
</tr>
|
2006 |
+
<tr class="acf-row">
|
2007 |
+
<td width="35%"><code>{action:post:admin_url}</code></td>
|
2008 |
+
<td><?php echo admin_url('post.php?post=128&action=edit'); ?></td>
|
2009 |
+
</tr>
|
2010 |
+
<tr class="acf-row">
|
2011 |
+
<td width="35%"><code>{action:post:permalink}</code></td>
|
2012 |
+
<td><?php echo home_url('my-post'); ?></td>
|
2013 |
+
</tr>
|
2014 |
+
<tr class="acf-row">
|
2015 |
+
<td width="35%"><code>{action:post:post_author}</code></td>
|
2016 |
+
<td>1</td>
|
2017 |
+
</tr>
|
2018 |
+
<tr class="acf-row">
|
2019 |
+
<td width="35%"><code>{action:post:post_author_data:user_login}</code></td>
|
2020 |
+
<td>login</td>
|
2021 |
+
</tr>
|
2022 |
+
<tr class="acf-row">
|
2023 |
+
<td width="35%"><code>{action:post:post_author_data:permalink}</code></td>
|
2024 |
+
<td><?php echo home_url('author/johndoe'); ?></td>
|
2025 |
+
</tr>
|
2026 |
+
<tr class="acf-row">
|
2027 |
+
<td colspan="2"><em>See <code>{current:post}</code> for all available tags</em></td>
|
2028 |
+
</tr>
|
2029 |
+
</tbody>
|
2030 |
+
</table>
|
2031 |
|
2032 |
<br />
|
2033 |
|
2034 |
<table class="acf-table">
|
2035 |
+
<thead>
|
2036 |
+
<tr>
|
2037 |
+
<th colspan="2"><strong>Post Action Named <code>my-post</code></strong></td>
|
2038 |
+
</tr>
|
2039 |
+
</thead>
|
2040 |
<tbody>
|
2041 |
<tr class="acf-row">
|
2042 |
+
<td width="35%"><code>{action:my-post:ID}</code></td>
|
2043 |
<td>128</td>
|
2044 |
</tr>
|
2045 |
<tr class="acf-row">
|
2046 |
+
<td width="35%"><code>{action:my-post:post_title}</code></td>
|
2047 |
+
<td>Title</td>
|
2048 |
+
</tr>
|
2049 |
+
<tr class="acf-row">
|
2050 |
+
<td width="35%"><code>{action:my-post:admin_url}</code></td>
|
2051 |
+
<td><?php echo admin_url('post.php?post=128&action=edit'); ?></td>
|
2052 |
</tr>
|
|
|
2053 |
<tr class="acf-row">
|
2054 |
+
<td width="35%"><code>{action:my-post:permalink}</code></td>
|
2055 |
+
<td><?php echo home_url('my-post'); ?></td>
|
2056 |
+
</tr>
|
2057 |
+
<tr class="acf-row">
|
2058 |
+
<td width="35%"><code>{action:my-post:post_author}</code></td>
|
2059 |
<td>1</td>
|
2060 |
</tr>
|
2061 |
<tr class="acf-row">
|
2062 |
+
<td width="35%"><code>{action:my-post:post_author_data:user_login}</code></td>
|
2063 |
<td>login</td>
|
2064 |
</tr>
|
2065 |
<tr class="acf-row">
|
2066 |
+
<td width="35%"><code>{action:my-post:post_author_data:permalink}</code></td>
|
2067 |
+
<td><?php echo home_url('author/johndoe'); ?></td>
|
2068 |
</tr>
|
2069 |
<tr class="acf-row">
|
2070 |
+
<td colspan="2"><em>See <code>{current:post}</code> for all available tags</em></td>
|
2071 |
+
</tr>
|
2072 |
+
</tbody>
|
2073 |
+
</table>
|
2074 |
+
<?php
|
2075 |
+
}
|
2076 |
+
|
2077 |
+
function doc_actions_term($field){
|
2078 |
+
?>
|
2079 |
+
<table class="acf-table">
|
2080 |
+
<thead>
|
2081 |
+
<tr>
|
2082 |
+
<th colspan="2"><strong>Last Term Action</strong></td>
|
2083 |
+
</tr>
|
2084 |
+
</thead>
|
2085 |
+
<tbody>
|
2086 |
+
<tr class="acf-row">
|
2087 |
+
<td width="35%"><code>{action:term:ID}</code></td>
|
2088 |
+
<td>23</td>
|
2089 |
+
</tr>
|
2090 |
+
<tr class="acf-row">
|
2091 |
+
<td width="35%"><code>{action:term:post_title}</code></td>
|
2092 |
+
<td>Term</td>
|
2093 |
+
</tr>
|
2094 |
+
<tr class="acf-row">
|
2095 |
+
<td width="35%"><code>{action:term:admin_url}</code></td>
|
2096 |
+
<td><?php echo admin_url('term.php?tag_ID=23'); ?></td>
|
2097 |
+
</tr>
|
2098 |
+
<tr class="acf-row">
|
2099 |
+
<td width="35%"><code>{action:term:permalink}</code></td>
|
2100 |
+
<td><?php echo home_url('taxonomy/term'); ?></td>
|
2101 |
+
</tr>
|
2102 |
+
<tr class="acf-row">
|
2103 |
+
<td colspan="2"><em>See <code>{current:term}</code> for all available tags</em></td>
|
2104 |
+
</tr>
|
2105 |
+
</tbody>
|
2106 |
+
</table>
|
2107 |
+
|
2108 |
+
<br />
|
2109 |
+
|
2110 |
+
<table class="acf-table">
|
2111 |
+
<thead>
|
2112 |
+
<tr>
|
2113 |
+
<th colspan="2"><strong>Term Action Named <code>my-term</code></strong></td>
|
2114 |
+
</tr>
|
2115 |
+
</thead>
|
2116 |
+
<tbody>
|
2117 |
+
<tr class="acf-row">
|
2118 |
+
<td width="35%"><code>{action:my-term:ID}</code></td>
|
2119 |
+
<td>23</td>
|
2120 |
+
</tr>
|
2121 |
+
<tr class="acf-row">
|
2122 |
+
<td width="35%"><code>{action:my-term:post_title}</code></td>
|
2123 |
+
<td>Term</td>
|
2124 |
+
</tr>
|
2125 |
+
<tr class="acf-row">
|
2126 |
+
<td width="35%"><code>{action:my-term:admin_url}</code></td>
|
2127 |
+
<td><?php echo admin_url('term.php?tag_ID=23'); ?></td>
|
2128 |
+
</tr>
|
2129 |
+
<tr class="acf-row">
|
2130 |
+
<td width="35%"><code>{action:my-term:permalink}</code></td>
|
2131 |
+
<td><?php echo home_url('taxonomy/term'); ?></td>
|
2132 |
+
</tr>
|
2133 |
+
<tr class="acf-row">
|
2134 |
+
<td colspan="2"><em>See <code>{current:term}</code> for all available tags</em></td>
|
2135 |
+
</tr>
|
2136 |
+
</tbody>
|
2137 |
+
</table>
|
2138 |
+
<?php
|
2139 |
+
}
|
2140 |
+
|
2141 |
+
function doc_actions_user($field){
|
2142 |
+
?>
|
2143 |
+
<table class="acf-table">
|
2144 |
+
<thead>
|
2145 |
+
<tr>
|
2146 |
+
<th colspan="2"><strong>Last User Action</strong></td>
|
2147 |
+
</tr>
|
2148 |
+
</thead>
|
2149 |
+
<tbody>
|
2150 |
+
<tr class="acf-row">
|
2151 |
+
<td width="35%"><code>{action:user:ID}</code></td>
|
2152 |
+
<td>1</td>
|
2153 |
+
</tr>
|
2154 |
+
<tr class="acf-row">
|
2155 |
+
<td width="35%"><code>{action:user:user_login}</code></td>
|
2156 |
+
<td>login</td>
|
2157 |
</tr>
|
2158 |
<tr class="acf-row">
|
2159 |
+
<td width="35%"><code>{action:user:user_email}</code></td>
|
2160 |
<td>user@domain.com</td>
|
2161 |
</tr>
|
2162 |
<tr class="acf-row">
|
2163 |
+
<td width="35%"><code>{action:user:user_url}</code></td>
|
2164 |
<td>https://www.website.com</td>
|
2165 |
</tr>
|
2166 |
<tr class="acf-row">
|
2167 |
+
<td width="35%"><code>{action:user:permalink}</code></td>
|
2168 |
<td><?php echo home_url('author/johndoe'); ?></td>
|
2169 |
</tr>
|
2170 |
<tr class="acf-row">
|
2171 |
+
<td colspan="2"><em>See <code>{current:user}</code> for all available tags</em></td>
|
2172 |
+
</tr>
|
2173 |
+
</tbody>
|
2174 |
+
</table>
|
2175 |
+
|
2176 |
+
<br />
|
2177 |
+
|
2178 |
+
<table class="acf-table">
|
2179 |
+
<thead>
|
2180 |
+
<tr>
|
2181 |
+
<th colspan="2"><strong>User Action Named <code>my-user</code></strong></td>
|
2182 |
</tr>
|
2183 |
+
</thead>
|
2184 |
+
<tbody>
|
2185 |
<tr class="acf-row">
|
2186 |
+
<td width="35%"><code>{action:my-user:ID}</code></td>
|
2187 |
+
<td>1</td>
|
2188 |
</tr>
|
2189 |
<tr class="acf-row">
|
2190 |
+
<td width="35%"><code>{action:my-user:user_login}</code></td>
|
2191 |
+
<td>login</td>
|
2192 |
</tr>
|
2193 |
<tr class="acf-row">
|
2194 |
+
<td width="35%"><code>{action:my-user:user_email}</code></td>
|
2195 |
+
<td>user@domain.com</td>
|
2196 |
</tr>
|
2197 |
<tr class="acf-row">
|
2198 |
+
<td width="35%"><code>{action:my-user:user_url}</code></td>
|
2199 |
+
<td>https://www.website.com</td>
|
2200 |
</tr>
|
2201 |
<tr class="acf-row">
|
2202 |
+
<td width="35%"><code>{action:my-user:permalink}</code></td>
|
2203 |
+
<td><?php echo home_url('author/johndoe'); ?></td>
|
2204 |
</tr>
|
2205 |
<tr class="acf-row">
|
2206 |
+
<td colspan="2"><em>See <code>{current:user}</code> for all available tags</em></td>
|
2207 |
+
</tr>
|
2208 |
+
</tbody>
|
2209 |
+
</table>
|
2210 |
+
<?php
|
2211 |
+
}
|
2212 |
+
|
2213 |
+
function doc_actions_email($field){
|
2214 |
+
?>
|
2215 |
+
<table class="acf-table">
|
2216 |
+
<thead>
|
2217 |
+
<tr>
|
2218 |
+
<th colspan="2"><strong>Last Email Action</strong></td>
|
2219 |
</tr>
|
2220 |
+
</thead>
|
2221 |
+
<tbody>
|
2222 |
<tr class="acf-row">
|
2223 |
+
<td width="35%"><code>{action:email:from}</code></td>
|
2224 |
+
<td>Contact <contact@website.com></td>
|
2225 |
</tr>
|
2226 |
<tr class="acf-row">
|
2227 |
+
<td width="35%"><code>{action:email:to}</code></td>
|
2228 |
+
<td>email@domain.com</td>
|
2229 |
</tr>
|
2230 |
<tr class="acf-row">
|
2231 |
+
<td width="35%"><code>{action:email:reply_to}</code></td>
|
2232 |
+
<td>email@domain.com</td>
|
2233 |
</tr>
|
2234 |
<tr class="acf-row">
|
2235 |
+
<td width="35%"><code>{action:email:cc}</code></td>
|
2236 |
+
<td>email@domain.com</td>
|
2237 |
</tr>
|
2238 |
<tr class="acf-row">
|
2239 |
+
<td width="35%"><code>{action:email:bcc}</code></td>
|
2240 |
+
<td>email@domain.com</td>
|
2241 |
</tr>
|
2242 |
<tr class="acf-row">
|
2243 |
+
<td width="35%"><code>{action:email:subject}</code></td>
|
2244 |
+
<td>Subject</td>
|
2245 |
</tr>
|
2246 |
<tr class="acf-row">
|
2247 |
+
<td width="35%"><code>{action:email:content}</code></td>
|
2248 |
+
<td>Content</td>
|
2249 |
+
</tr>
|
2250 |
+
</tbody>
|
2251 |
+
</table>
|
2252 |
+
|
2253 |
+
<br />
|
2254 |
+
|
2255 |
+
<table class="acf-table">
|
2256 |
+
<thead>
|
2257 |
+
<tr>
|
2258 |
+
<th colspan="2"><strong>Email Action Named <code>my-email</code></strong></td>
|
2259 |
</tr>
|
2260 |
+
</thead>
|
2261 |
+
<tbody>
|
2262 |
<tr class="acf-row">
|
2263 |
+
<td width="35%"><code>{action:my-email:from}</code></td>
|
2264 |
+
<td>Contact <contact@website.com></td>
|
2265 |
</tr>
|
2266 |
<tr class="acf-row">
|
2267 |
+
<td width="35%"><code>{action:my-email:to}</code></td>
|
2268 |
+
<td>email@domain.com</td>
|
2269 |
</tr>
|
2270 |
<tr class="acf-row">
|
2271 |
+
<td width="35%"><code>{action:my-email:reply_to}</code></td>
|
2272 |
+
<td>email@domain.com</td>
|
2273 |
</tr>
|
2274 |
<tr class="acf-row">
|
2275 |
+
<td width="35%"><code>{action:my-email:cc}</code></td>
|
2276 |
+
<td>email@domain.com</td>
|
2277 |
</tr>
|
2278 |
<tr class="acf-row">
|
2279 |
+
<td width="35%"><code>{action:my-email:bcc}</code></td>
|
2280 |
+
<td>email@domain.com</td>
|
2281 |
</tr>
|
2282 |
<tr class="acf-row">
|
2283 |
+
<td width="35%"><code>{action:my-email:subject}</code></td>
|
2284 |
+
<td>Subject</td>
|
2285 |
+
</tr>
|
2286 |
+
<tr class="acf-row">
|
2287 |
+
<td width="35%"><code>{action:my-email:content}</code></td>
|
2288 |
+
<td>Content</td>
|
2289 |
+
</tr>
|
2290 |
+
</tbody>
|
2291 |
+
</table>
|
2292 |
+
<?php
|
2293 |
+
}
|
2294 |
+
|
2295 |
+
function doc_request($field){
|
2296 |
+
?>
|
2297 |
+
<table class="acf-table">
|
2298 |
+
<tbody>
|
2299 |
+
<tr class="acf-row">
|
2300 |
+
<td width="35%"><code>{request:name}</code></td>
|
2301 |
+
<td><code>$_REQUEST['name']</code></td>
|
2302 |
+
</tr>
|
2303 |
+
<tr class="acf-row">
|
2304 |
+
<td width="35%"><code>{request:name:key}</code></td>
|
2305 |
+
<td><code>$_REQUEST['name']['key']</code></td>
|
2306 |
+
</tr>
|
2307 |
+
</tbody>
|
2308 |
+
</table>
|
2309 |
+
<?php
|
2310 |
+
}
|
2311 |
+
|
2312 |
+
function doc_current_post($field){
|
2313 |
+
?>
|
2314 |
+
<table class="acf-table">
|
2315 |
+
<tbody>
|
2316 |
+
<tr class="acf-row">
|
2317 |
+
<td width="35%"><code>{current:post}</code></td>
|
2318 |
+
<td>128</td>
|
2319 |
+
</tr>
|
2320 |
+
<tr class="acf-row">
|
2321 |
+
<td width="35%"><code>{current:post:ID}</code></td>
|
2322 |
+
<td>128</td>
|
2323 |
</tr>
|
|
|
2324 |
<tr class="acf-row">
|
2325 |
+
<td width="35%"><code>{current:post:post_date}</code></td>
|
2326 |
<td>2020-03-01 20:07:48</td>
|
2327 |
</tr>
|
2328 |
<tr class="acf-row">
|
2329 |
+
<td width="35%"><code>{current:post:post_date_gmt}</code></td>
|
2330 |
<td>2020-03-01 19:07:48</td>
|
2331 |
</tr>
|
2332 |
<tr class="acf-row">
|
2333 |
+
<td width="35%"><code>{current:post:post_content}</code></td>
|
2334 |
<td>Content</td>
|
2335 |
</tr>
|
2336 |
<tr class="acf-row">
|
2337 |
+
<td width="35%"><code>{current:post:post_title}</code></td>
|
2338 |
<td>Title</td>
|
2339 |
</tr>
|
2340 |
<tr class="acf-row">
|
2341 |
+
<td width="35%"><code>{current:post:post_excerpt}</code></td>
|
2342 |
<td>Excerpt</td>
|
2343 |
</tr>
|
2344 |
<tr class="acf-row">
|
2345 |
+
<td width="35%"><code>{current:post:permalink}</code></td>
|
2346 |
<td><?php echo home_url('my-post'); ?></td>
|
2347 |
</tr>
|
2348 |
<tr class="acf-row">
|
2349 |
+
<td width="35%"><code>{current:post:admin_url}</code></td>
|
2350 |
<td><?php echo admin_url('post.php?post=128&action=edit'); ?></td>
|
2351 |
</tr>
|
2352 |
<tr class="acf-row">
|
2353 |
+
<td width="35%"><code>{current:post:post_status}</code></td>
|
2354 |
<td>publish</td>
|
2355 |
</tr>
|
2356 |
<tr class="acf-row">
|
2357 |
+
<td width="35%"><code>{current:post:comment_status}</code></td>
|
2358 |
<td>closed</td>
|
2359 |
</tr>
|
2360 |
<tr class="acf-row">
|
2361 |
+
<td width="35%"><code>{current:post:ping_status}</code></td>
|
2362 |
<td>closed</td>
|
2363 |
</tr>
|
2364 |
<tr class="acf-row">
|
2365 |
+
<td width="35%"><code>{current:post:post_password}</code></td>
|
2366 |
<td>password</td>
|
2367 |
</tr>
|
2368 |
<tr class="acf-row">
|
2369 |
+
<td width="35%"><code>{current:post:post_name}</code></td>
|
2370 |
<td>name</td>
|
2371 |
</tr>
|
2372 |
<tr class="acf-row">
|
2373 |
+
<td width="35%"><code>{current:post:to_ping}</code></td>
|
2374 |
<td></td>
|
2375 |
</tr>
|
2376 |
<tr class="acf-row">
|
2377 |
+
<td width="35%"><code>{current:post:pinged}</code></td>
|
2378 |
<td></td>
|
2379 |
</tr>
|
2380 |
<tr class="acf-row">
|
2381 |
+
<td width="35%"><code>{current:post:post_modified}</code></td>
|
2382 |
<td>2020-03-01 20:07:48</td>
|
2383 |
</tr>
|
2384 |
<tr class="acf-row">
|
2385 |
+
<td width="35%"><code>{current:post:post_modified_gmt}</code></td>
|
2386 |
<td>2020-03-01 19:07:48</td>
|
2387 |
</tr>
|
2388 |
<tr class="acf-row">
|
2389 |
+
<td width="35%"><code>{current:post:post_content_filtered}</code></td>
|
2390 |
<td></td>
|
2391 |
</tr>
|
2392 |
<tr class="acf-row">
|
2393 |
+
<td width="35%"><code>{current:post:post_parent}</code></td>
|
2394 |
<td>0</td>
|
2395 |
</tr>
|
2396 |
<tr class="acf-row">
|
2397 |
+
<td width="35%"><code>{current:post:guid}</code></td>
|
2398 |
<td><?php echo home_url('?page_id=128'); ?></td>
|
2399 |
</tr>
|
2400 |
<tr class="acf-row">
|
2401 |
+
<td width="35%"><code>{current:post:menu_order}</code></td>
|
2402 |
<td>0</td>
|
2403 |
</tr>
|
2404 |
<tr class="acf-row">
|
2405 |
+
<td width="35%"><code>{current:post:post_type}</code></td>
|
2406 |
<td>page</td>
|
2407 |
</tr>
|
2408 |
<tr class="acf-row">
|
2409 |
+
<td width="35%"><code>{current:post:post_mime_type}</code></td>
|
2410 |
<td></td>
|
2411 |
</tr>
|
2412 |
<tr class="acf-row">
|
2413 |
+
<td width="35%"><code>{current:post:comment_count}</code></td>
|
2414 |
<td>0</td>
|
2415 |
</tr>
|
2416 |
<tr class="acf-row">
|
2417 |
+
<td width="35%"><code>{current:post:filter}</code></td>
|
2418 |
<td>raw</td>
|
2419 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2420 |
<tr class="acf-row">
|
2421 |
+
<td width="35%"><code>{current:post:post_author}</code></td>
|
2422 |
+
<td>1</td>
|
2423 |
</tr>
|
2424 |
+
|
2425 |
<tr class="acf-row">
|
2426 |
+
<td width="35%"><code>{current:post:post_author_data:ID}</code></td>
|
2427 |
+
<td>1</td>
|
2428 |
</tr>
|
2429 |
<tr class="acf-row">
|
2430 |
+
<td width="35%"><code>{current:post:post_author_data:user_login}</code></td>
|
2431 |
+
<td>login</td>
|
2432 |
</tr>
|
2433 |
<tr class="acf-row">
|
2434 |
+
<td width="35%"><code>{current:post:post_author_data:user_pass}</code></td>
|
2435 |
+
<td>password_hash</td>
|
2436 |
</tr>
|
2437 |
<tr class="acf-row">
|
2438 |
+
<td width="35%"><code>{current:post:post_author_data:user_nicename}</code></td>
|
2439 |
+
<td>nicename</td>
|
2440 |
</tr>
|
2441 |
<tr class="acf-row">
|
2442 |
+
<td width="35%"><code>{current:post:post_author_data:user_email}</code></td>
|
2443 |
+
<td>user@domain.com</td>
|
2444 |
</tr>
|
2445 |
<tr class="acf-row">
|
2446 |
+
<td width="35%"><code>{current:post:post_author_data:user_url}</code></td>
|
2447 |
+
<td>https://www.website.com</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2448 |
</tr>
|
2449 |
<tr class="acf-row">
|
2450 |
<td width="35%"><code>{current:post:post_author_data:permalink}</code></td>
|
2530 |
<td width="35%"><code>{current:post:post_author_data:show_welcome_panel}</code></td>
|
2531 |
<td>1</td>
|
2532 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2533 |
</tbody>
|
2534 |
</table>
|
2535 |
<?php
|
2847 |
<table class="acf-table">
|
2848 |
<tbody>
|
2849 |
<tr class="acf-row">
|
2850 |
+
<td width="35%"><code>{form}</code></td>
|
2851 |
<td>11<br/></td>
|
2852 |
</tr>
|
2853 |
<tr class="acf-row">
|
2854 |
+
<td width="35%"><code>{form:ID}</code></td>
|
2855 |
<td>11<br/></td>
|
2856 |
</tr>
|
2857 |
<tr class="acf-row">
|
2858 |
+
<td width="35%"><code>{form:title}</code></td>
|
2859 |
<td>Form<br/></td>
|
2860 |
</tr>
|
2861 |
<tr class="acf-row">
|
2862 |
+
<td width="35%"><code>{form:name}</code></td>
|
2863 |
<td>form<br/></td>
|
2864 |
</tr>
|
2865 |
<tr class="acf-row">
|
2866 |
+
<td width="35%"><code>{form:custom_key}</code></td>
|
2867 |
<td>Custom key value<br/></td>
|
2868 |
</tr>
|
2869 |
</tbody>
|
2871 |
<?php
|
2872 |
}
|
2873 |
|
2874 |
+
function form_return_deprecated($field){
|
2875 |
+
|
2876 |
+
if(empty($field['value']))
|
2877 |
+
return false;
|
2878 |
+
|
2879 |
+
return $field;
|
2880 |
+
|
2881 |
+
}
|
2882 |
+
|
2883 |
}
|
2884 |
|
2885 |
// initialize
|
3026 |
elseif($content === 'generate_password'){
|
3027 |
|
3028 |
return wp_generate_password(8, false);
|
3029 |
+
|
3030 |
+
}
|
3031 |
+
|
3032 |
+
// Match {current:post|term|user|author|form:field}
|
3033 |
+
elseif(strpos($content, '{current:') !== false){
|
3034 |
+
|
3035 |
+
if(preg_match_all('/{current:(.*?)}/', $content, $matches)){
|
3036 |
+
|
3037 |
+
foreach($matches[1] as $i => $name){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3038 |
|
3039 |
+
if($name === 'form' || stripos($name, 'form:') === 0){
|
3040 |
+
|
3041 |
+
_deprecated_function('ACF Extended - Dynamic Forms: "{current:' . $name . '}" template tag', '0.8.7.5', "the new {" . $name . "} Template Tag (See documentation: https://www.acf-extended.com/features/modules/dynamic-forms)");
|
|
|
3042 |
|
3043 |
}
|
3044 |
+
|
3045 |
+
$value = acfe_form_map_current_value($name, $post, $form);
|
3046 |
|
3047 |
$content = str_replace('{current:' . $name . '}', $value, $content);
|
3048 |
|
3051 |
}
|
3052 |
|
3053 |
}
|
3054 |
+
|
3055 |
+
// Match {form:field}
|
3056 |
+
elseif(stripos($content, '{form') !== false){
|
3057 |
+
|
3058 |
+
// Old regex: '{(post(:?)(.*?)|(term(:?)(.*?))|(user(:?)(.*?))|(author(:?)(.*?))|(form(:?)(.*?)))}'
|
3059 |
+
if(preg_match_all('/{(form|form:.*?)}/', $content, $matches)){
|
3060 |
+
|
3061 |
+
foreach($matches[1] as $i => $name){
|
3062 |
+
|
3063 |
+
$value = acfe_form_map_current_value($name, $post, $form);
|
3064 |
+
|
3065 |
+
$content = str_replace('{' . $name . '}', $value, $content);
|
3066 |
+
|
3067 |
+
}
|
3068 |
+
|
3069 |
+
}
|
3070 |
+
|
3071 |
+
}
|
3072 |
|
3073 |
return $content;
|
3074 |
|
3088 |
|
3089 |
foreach($matches[1] as $i => $name){
|
3090 |
|
3091 |
+
if(stripos($name, 'post') !== false || stripos($name, 'term') !== false || stripos($name, 'user') !== false || stripos($name, 'email') !== false){
|
3092 |
+
|
3093 |
+
_deprecated_function('ACF Extended - Dynamic Forms: "{query_var:' . $name . '}" template tag', '0.8.7.5', "the new {action} Template Tag (See documentation: https://www.acf-extended.com/features/modules/dynamic-forms)");
|
3094 |
+
|
3095 |
+
}
|
3096 |
+
|
3097 |
$query_var = get_query_var($name);
|
3098 |
|
3099 |
if(strpos($name, ':') !== false){
|
3126 |
|
3127 |
}
|
3128 |
|
3129 |
+
// Match {action:field}
|
3130 |
+
function acfe_form_map_action($content){
|
3131 |
+
|
3132 |
+
if(empty($content) || !is_string($content))
|
3133 |
+
return $content;
|
3134 |
+
|
3135 |
+
if(strpos($content, '{action:') === false)
|
3136 |
+
return $content;
|
3137 |
+
|
3138 |
+
// Match {action:field}
|
3139 |
+
if(preg_match_all('/{action:(.*?)}/', $content, $matches)){
|
3140 |
+
|
3141 |
+
foreach($matches[1] as $i => $name){
|
3142 |
+
|
3143 |
+
$value = false;
|
3144 |
+
$last_action = get_query_var('acfe_form_actions', array());
|
3145 |
+
|
3146 |
+
if(is_array($last_action) && !empty($last_action)){
|
3147 |
+
|
3148 |
+
if(isset($last_action[$name])){
|
3149 |
+
|
3150 |
+
$value = $last_action[$name];
|
3151 |
+
|
3152 |
+
}
|
3153 |
+
|
3154 |
+
if(strpos($name, ':') !== false){
|
3155 |
+
|
3156 |
+
$explode = explode(':', $name);
|
3157 |
+
|
3158 |
+
if(isset($last_action[$explode[0]]) && is_array($last_action[$explode[0]]) && isset($last_action[$explode[0]][$explode[1]])){
|
3159 |
+
|
3160 |
+
$value = $last_action[$explode[0]][$explode[1]];
|
3161 |
+
|
3162 |
+
if(is_array($value) && isset($value[$explode[2]])){
|
3163 |
+
|
3164 |
+
$value = $value[$explode[2]];
|
3165 |
+
|
3166 |
+
}
|
3167 |
+
|
3168 |
+
}
|
3169 |
+
|
3170 |
+
}
|
3171 |
+
|
3172 |
+
}
|
3173 |
+
|
3174 |
+
$content = str_replace('{action:' . $name . '}', $value, $content);
|
3175 |
+
|
3176 |
+
}
|
3177 |
+
|
3178 |
+
}
|
3179 |
+
|
3180 |
+
return $content;
|
3181 |
+
|
3182 |
+
}
|
3183 |
+
|
3184 |
// Match {request:name} {request:name:key}
|
3185 |
function acfe_form_map_request($content){
|
3186 |
|
3444 |
|
3445 |
}
|
3446 |
|
3447 |
+
function acfe_form_map_current_value($name, $post, $form = false){
|
3448 |
+
|
3449 |
+
$value = false;
|
3450 |
+
|
3451 |
+
// post
|
3452 |
+
if($name === 'post' && $post['type'] === 'post'){
|
3453 |
+
|
3454 |
+
$value = $post['id'];
|
3455 |
+
|
3456 |
+
}
|
3457 |
+
|
3458 |
+
// term
|
3459 |
+
elseif($name === 'term' && $post['type'] === 'term'){
|
3460 |
+
|
3461 |
+
$value = $post['id'];
|
3462 |
+
|
3463 |
+
}
|
3464 |
+
|
3465 |
+
// user
|
3466 |
+
elseif($name === 'user'){
|
3467 |
+
|
3468 |
+
$value = get_current_user_id();
|
3469 |
+
|
3470 |
+
}
|
3471 |
+
|
3472 |
+
// author
|
3473 |
+
elseif($name === 'author' && $post['type'] === 'post'){
|
3474 |
+
|
3475 |
+
$value = get_post_field('post_author', $post['id']);
|
3476 |
+
|
3477 |
+
}
|
3478 |
+
|
3479 |
+
// form
|
3480 |
+
elseif($name === 'form'){
|
3481 |
+
|
3482 |
+
$value = acf_maybe_get($form, 'ID');
|
3483 |
+
|
3484 |
+
}
|
3485 |
+
|
3486 |
+
// post|term|user|author|form:field
|
3487 |
+
elseif(strpos($name, ':') !== false){
|
3488 |
+
|
3489 |
+
$explode = explode(':', $name);
|
3490 |
+
|
3491 |
+
$type = $explode[0]; // post|term|user|author|form
|
3492 |
+
$field = $explode[1]; // id|post_parent|post_title|field
|
3493 |
+
|
3494 |
+
// post:field
|
3495 |
+
if($type === 'post' && $post['type'] === 'post'){
|
3496 |
+
|
3497 |
+
// post:id
|
3498 |
+
if(strtolower($field) === 'id' || strtolower($field) === 'post_id'){
|
3499 |
+
|
3500 |
+
$value = $post['id'];
|
3501 |
+
|
3502 |
+
}
|
3503 |
+
|
3504 |
+
// post:permalink
|
3505 |
+
elseif(strtolower($field) === 'permalink'){
|
3506 |
+
|
3507 |
+
$value = get_permalink($post['id']);
|
3508 |
+
|
3509 |
+
}
|
3510 |
+
|
3511 |
+
// post:admin url
|
3512 |
+
elseif(strtolower($field) === 'admin_url'){
|
3513 |
+
|
3514 |
+
$value = admin_url('post.php?post=' . $post['id'] . '&action=edit');
|
3515 |
+
|
3516 |
+
}
|
3517 |
+
|
3518 |
+
// post:post_author_data
|
3519 |
+
elseif(strtolower($field) === 'post_author_data'){
|
3520 |
+
|
3521 |
+
// Retrieve Post Author data
|
3522 |
+
$post_author = get_post_field('post_author', $post['id']);
|
3523 |
+
$user_object = get_user_by('ID', $post_author);
|
3524 |
+
|
3525 |
+
if(isset($user_object->data)){
|
3526 |
+
|
3527 |
+
$user = json_decode(json_encode($user_object->data), true);
|
3528 |
+
|
3529 |
+
$user_object_meta = get_user_meta($user['ID']);
|
3530 |
+
|
3531 |
+
$user_meta = array();
|
3532 |
+
|
3533 |
+
foreach($user_object_meta as $k => $v){
|
3534 |
+
|
3535 |
+
if(!isset($v[0]))
|
3536 |
+
continue;
|
3537 |
+
|
3538 |
+
$user_meta[$k] = $v[0];
|
3539 |
+
|
3540 |
+
}
|
3541 |
+
|
3542 |
+
$user_array = array_merge($user, $user_meta);
|
3543 |
+
|
3544 |
+
$user_array['permalink'] = get_author_posts_url($post_author);
|
3545 |
+
$user_array['admin_url'] = admin_url('user-edit.php?user_id=' . $post_author);
|
3546 |
+
|
3547 |
+
$post_author_data = $user_array;
|
3548 |
+
|
3549 |
+
// post:post_author_data:id
|
3550 |
+
if(isset($explode[2])){
|
3551 |
+
|
3552 |
+
$field_author = $explode[2];
|
3553 |
+
|
3554 |
+
$value = $post_author_data[$field_author];
|
3555 |
+
|
3556 |
+
}
|
3557 |
+
|
3558 |
+
|
3559 |
+
}
|
3560 |
+
|
3561 |
+
}
|
3562 |
+
|
3563 |
+
// post:field
|
3564 |
+
else{
|
3565 |
+
|
3566 |
+
$value = get_post_field($field, $post['id']);
|
3567 |
+
|
3568 |
+
}
|
3569 |
+
|
3570 |
+
}
|
3571 |
+
|
3572 |
+
// term:field
|
3573 |
+
elseif($type === 'term' && $post['type'] === 'term'){
|
3574 |
+
|
3575 |
+
// term:id
|
3576 |
+
if(strtolower($field) === 'id' || strtolower($field) === 'term_id'){
|
3577 |
+
|
3578 |
+
$value = $post['id'];
|
3579 |
+
|
3580 |
+
}
|
3581 |
+
|
3582 |
+
// term:permalink
|
3583 |
+
elseif(strtolower($field) === 'permalink'){
|
3584 |
+
|
3585 |
+
$value = get_term_link($post['id']);
|
3586 |
+
|
3587 |
+
}
|
3588 |
+
|
3589 |
+
// term:admin url
|
3590 |
+
elseif(strtolower($field) === 'admin_url'){
|
3591 |
+
|
3592 |
+
$value = admin_url('term.php?tag_ID=' . $post['id']);
|
3593 |
+
|
3594 |
+
}
|
3595 |
+
|
3596 |
+
// term:field
|
3597 |
+
else{
|
3598 |
+
|
3599 |
+
$value = get_term_field($field, $post['id']);
|
3600 |
+
|
3601 |
+
}
|
3602 |
+
|
3603 |
+
}
|
3604 |
+
|
3605 |
+
// user:field
|
3606 |
+
elseif($type === 'user'){
|
3607 |
+
|
3608 |
+
if(is_user_logged_in()){
|
3609 |
+
|
3610 |
+
$user_id = get_current_user_id();
|
3611 |
+
|
3612 |
+
// user:id
|
3613 |
+
if(strtolower($field) === 'id' || strtolower($fie
|