Version Description
ACF Extended Pro 0.8.8.8:
- Module: Dev Mode -
post_content
is unserialized in Post Object view when possible - Module: Dev Mode - Added data overview & clean orphan meta on Attachment
- Module: Global Conditional Logic - Fixed postbox being hidden when user interacted with Screen Options
- Module: Scripts - Fixed Attachments post type in Orphan Meta Cleaner
- Module: Rewrite Rules - Fixed non-registered rewrite tag php notice
- Field: Color Picker - add
theme.json
compatibility for color palette - Field: Color Picker: Added Return Format "Label" and "Color + Label Array"
- Field: Countries / Languages / Currencies - Removed potential notice in some edge cases
- Field: Date Range Picker - The
end_date
sub field is now correctly cleared upon save - Field: Date Range Picker - Displaying only one date when the user select the same start/end date
- Field: File - Added field key to attributes for nonce generation
- Field: Payment - Added "Hide Postal Code" setting
- Field: Payment - Added
acfe/fields/payment/stripe_args
JS hook to change Stripe elements args - Field: Payment - Fixed Payment Summary Render rounding the total amount
- Field: Payment - Fixed PayPal popup blocked by Safari
- Field: Payment - Fixed PayPal validation when "Display Button" is disabled
- Field: Payment Cart - "## Title" markup is now allowed
- Field: Payment Cart - Field is now compatible with Repeater/Flexible Content
- Field: Payment Cart - Cart items are now automatically passed to js in
acf.data.acfe.carts
- Field: Phone Number - Added National & International return format when libphonenumber is installed
- Field: Phone Number - Added Geolocation Token setting to add ipinfo.io API token
- Field: Phone Number - Field value now only save the phone number instead of an array for data accessibility
- Field: Phone Number - Server Validation now also take care of Allowed Countries setting
- Field: Post Field - Fixed Content reinit JS undefined variable
- Field: Post Object - Inline Post Creation/Edit - Added data in iframe URL for customization
- Field: Relationship - Inline Post Creation/Edit - Added data in iframe URL for customization
- Field: Relationship - Added edit button RTL CSS support
- Field: True False - Added "Default Rounded", "Small", "Small Rounded", "Alt" & "Alt Rounded" styles
- Field: WYSIWYG - Removed jQuery dependency on Source Code modal
- Field Group: Added Alternative Add Field Mode with Shift+Click (add by field type)
ACF Extended Basic 0.8.8.8:
- Module: Dev Mode - Fixed "Bulk Delete Meta" not working correctly on Post Type List screen
- Module: Dev Mode - Added meta overview on Attachment screen
- Module: Enhanced UI - Added Attachment Enhanced UI
- Module: Enhanced UI - Fixed WordPress 6.0 User Profile PHP notice
- Module: Form - Fixed "Library: Attached to this post" front-end Media Modal
- Module: Form - Enhanced
acfe/form/load
to allow hidding field - Module: Form - User - Added builtin Insert/Update User Email validation
- Module: Form - Post Action - Fixed post parent setting which could break in some edge cases
- Module: Form - PHP Success hook
- Module: Multilang - Fixed Post Types Archive Page detection when using
get_field()
very early - Module: Options Pages - Admin List - Added "Position" column
- Module: Options UI - Enhanced search escape
- Module: Options UI - Enhanced specialchars entities & added raw serialized output
- Module: Settings UI - Enhanced registered values column to correctly use
acf/settings
filter - Field: Advanced Link - Display preview when URL or Title is entered
- Field: Code Editor - Fixed value update when used inside an ACF Block Type
- Field: Code Editor - Fixed missing Field Object Settings in the Field Group UI on duplicate
- Field: Columns - Fixed CSS when inside a collapsed Repeater (See ticket)
- Field: Columns - Added field to GraphQL
- Field: Clone - Fixed Modal Edit title when in repeater table
- Field: Flexible Content - Select Modal - Fixed Layout Category showing in all categories when there is no category set
- Field: Flexible Content - Edit Modal - Fix usage with
acf/fields/flexible_content/layout_title
- Field: Group - Fixed Modal Edit title when in repeater table
- Field: Post Statuses - slugs are only shown when duplicated labels
- Field: Select - Enhanced Select2 "on clear" logic by closing selection
- Field: Taxonomy Terms - Enhanced Radio Field Type when using Load Terms with specific allowed terms
- Field Settings: Validation - Added regex unicode compatibility
- Locations: Post Type Archive - Enhanced
have_archive()
to find post type when there is no posts - Locations: Post Type Archive - Fixed native
post
,page
&attachment
post types archive location matching field groups - General: Compatibility - Enhanced Elementor Dynamic Tags detection (See WP forum)
- General: Compatibility - Added ACF 6.0 new UI compatibility fixes
- General: Core - Fixed editable
<code>
tag for facetwp - General: Core - Enhanced localize data
- General: Core - Enhanced scripts enqueue logic
- General: Core - Updated tooltip icon & added on/off logic on click
- General: Gutenberg - Enhanced metabox CSS
- General: Helpers - Added
acfe_query_fields()
helper - General: Readme - Enhanced Readme (Plugin URI, typos, Slack URL...)
Download this release
Release Info
Developer | hwk-fr |
Plugin | Advanced Custom Fields: Extended |
Version | 0.8.8.8 |
Comparing to | |
See all releases |
Code changes from version 0.8.8.7 to 0.8.8.8
- acf-extended.php +87 -78
- assets/css/acfe-admin.css +1224 -1178
- assets/css/acfe-admin.min.css +1 -1
- assets/css/acfe-field-group.css +477 -407
- assets/css/acfe-field-group.min.css +1 -1
- assets/css/acfe-input.css +1363 -1298
- assets/css/acfe-input.min.css +1 -1
- assets/css/acfe-ui.css +775 -742
- assets/css/acfe-ui.min.css +1 -1
- assets/css/acfe.css +665 -664
- assets/css/acfe.min.css +1 -1
- assets/inc/tinymce/acfe-form.js +2 -5
- assets/inc/tinymce/acfe-form.min.js +1 -1
- assets/js/acfe-admin.js +176 -167
- assets/js/acfe-admin.min.js +1 -1
- assets/js/acfe-field-group.js +97 -38
- assets/js/acfe-field-group.min.js +1 -1
- assets/js/acfe-input.js +664 -352
- assets/js/acfe-input.min.js +1 -1
- assets/js/acfe-ui.js +56 -1
- assets/js/acfe-ui.min.js +1 -1
- assets/js/acfe.js +110 -102
- assets/js/acfe.min.js +1 -1
- includes/acfe-field-functions.php +417 -10
- includes/acfe-field-group-functions.php +120 -19
- includes/acfe-file-functions.php +94 -4
- includes/acfe-form-functions.php +16 -12
- includes/acfe-helper-functions.php +459 -68
- includes/acfe-meta-functions.php +11 -8
- includes/acfe-post-functions.php +43 -22
- includes/acfe-screen-functions.php +21 -18
- includes/acfe-template-functions.php +85 -78
- includes/acfe-term-functions.php +7 -10
- includes/acfe-user-functions.php +12 -13
- includes/acfe-wp-functions.php +25 -20
- includes/admin/compatibility.php +215 -0
- includes/admin/menu.php +87 -93
- includes/admin/plugins.php +2 -1
- includes/admin/settings.php +30 -5
- includes/admin/tools/block-types-export.php +2 -1
- includes/admin/tools/block-types-import.php +2 -1
- includes/admin/tools/field-groups-export.php +2 -1
- includes/admin/tools/field-groups-local.php +2 -1
- includes/admin/tools/forms-export.php +2 -1
- includes/admin/tools/forms-import.php +2 -1
- includes/admin/tools/module-export.php +21 -2
- includes/admin/tools/module-import.php +20 -2
- includes/admin/tools/options-pages-export.php +2 -1
- includes/admin/tools/options-pages-import.php +2 -1
- includes/admin/tools/post-types-export.php +2 -1
- includes/admin/tools/post-types-import.php +2 -1
- includes/admin/tools/taxonomies-export.php +2 -1
- includes/admin/tools/taxonomies-import.php +2 -1
- includes/assets.php +131 -46
- includes/compatibility.php +235 -358
- includes/field-extend.php +380 -0
- includes/field-groups/field-group-advanced.php +4 -3
- includes/field-groups/field-group-category.php +140 -57
- includes/field-groups/field-group-display-title.php +2 -1
- includes/field-groups/field-group-hide-on-screen.php +2 -1
- includes/field-groups/field-group-instruction-placement.php +2 -1
- includes/field-groups/field-group-meta.php +2 -1
- includes/field-groups/field-group-permissions.php +2 -1
- includes/field-groups/field-group.php +11 -10
- includes/field-groups/field-groups-local.php +2 -1
- includes/field-groups/field-groups.php +12 -9
- includes/field.php +27 -0
- includes/fields-settings/bidirectional.php +3 -2
- includes/fields-settings/data.php +5 -3
- includes/fields-settings/instructions.php +2 -1
- includes/fields-settings/permissions.php +2 -1
- includes/fields-settings/settings.php +2 -1
- includes/fields-settings/validation.php +4 -3
- includes/fields/field-advanced-link.php +71 -16
- includes/fields/field-button.php +26 -8
- includes/fields/field-checkbox.php +83 -46
- includes/fields/field-clone.php +96 -91
- includes/fields/field-code-editor.php +83 -30
- includes/fields/field-column.php +81 -68
- includes/fields/field-dynamic-render.php +19 -6
- includes/fields/field-file.php +123 -72
- includes/fields/field-flexible-content-actions.php +146 -28
- includes/fields/field-flexible-content-async.php +60 -6
- includes/fields/field-flexible-content-controls.php +107 -32
- includes/fields/field-flexible-content-edit.php +120 -12
- includes/fields/field-flexible-content-hide.php +56 -6
- includes/fields/field-flexible-content-preview.php +88 -7
- includes/fields/field-flexible-content-select.php +68 -8
- includes/fields/field-flexible-content-settings.php +74 -5
- includes/fields/field-flexible-content-state.php +92 -9
- includes/fields/field-flexible-content-thumbnail.php +81 -17
- includes/fields/field-flexible-content.php +227 -68
- includes/fields/field-forms.php +87 -29
- includes/fields/field-group.php +49 -46
- includes/fields/field-hidden.php +33 -10
- includes/fields/field-image.php +118 -52
- includes/fields/field-post-object.php +99 -54
- includes/fields/field-post-statuses.php +73 -36
- includes/fields/field-post-types.php +71 -35
- includes/fields/field-recaptcha.php +85 -39
- includes/fields/field-repeater.php +14 -33
acf-extended.php
CHANGED
@@ -2,32 +2,35 @@
|
|
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.8.
|
6 |
* Author: ACF Extended
|
|
|
7 |
* Author URI: https://www.acf-extended.com
|
8 |
* Text Domain: acfe
|
9 |
* Domain Path: /lang
|
10 |
*/
|
11 |
|
12 |
-
if(!defined('ABSPATH'))
|
13 |
exit;
|
|
|
14 |
|
15 |
if(!class_exists('ACFE')):
|
16 |
|
17 |
class ACFE{
|
18 |
|
19 |
-
//
|
20 |
-
var $version = '0.8.8.
|
21 |
|
22 |
-
|
23 |
-
*
|
24 |
*/
|
25 |
function __construct(){
|
26 |
// ...
|
27 |
}
|
28 |
|
29 |
-
|
30 |
-
|
|
|
31 |
*/
|
32 |
function initialize(){
|
33 |
|
@@ -59,18 +62,25 @@ class ACFE{
|
|
59 |
|
60 |
// Compatibility
|
61 |
acfe_include('includes/compatibility.php');
|
|
|
62 |
|
63 |
// Load
|
64 |
add_action('acf/include_field_types', array($this, 'load'));
|
65 |
|
66 |
}
|
67 |
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
70 |
*/
|
71 |
function load(){
|
72 |
|
73 |
-
|
|
|
|
|
|
|
74 |
|
75 |
// Vars
|
76 |
$theme_path = acf_get_setting('acfe/theme_path', get_stylesheet_directory());
|
@@ -144,51 +154,45 @@ class ACFE{
|
|
144 |
add_action('acf/include_admin_tools', array($this, 'include_admin_tools_late'), 20);
|
145 |
|
146 |
// Admin
|
|
|
147 |
acfe_include('includes/admin/menu.php');
|
148 |
acfe_include('includes/admin/plugins.php');
|
149 |
acfe_include('includes/admin/settings.php');
|
150 |
|
151 |
// Core
|
|
|
|
|
152 |
acfe_include('includes/local-meta.php');
|
153 |
acfe_include('includes/multilang.php');
|
154 |
acfe_include('includes/settings.php');
|
155 |
acfe_include('includes/upgrades.php');
|
156 |
|
157 |
-
//
|
158 |
-
acfe_include('includes/
|
159 |
-
acfe_include('includes/
|
160 |
-
acfe_include('includes/
|
161 |
-
acfe_include('includes/
|
162 |
-
acfe_include('includes/
|
163 |
-
acfe_include('includes/
|
164 |
|
165 |
}
|
166 |
|
167 |
-
|
168 |
-
|
|
|
|
|
|
|
169 |
*/
|
170 |
function init(){
|
171 |
|
172 |
-
|
173 |
-
* Action
|
174 |
-
*/
|
175 |
do_action('acfe/init');
|
176 |
|
177 |
-
|
178 |
-
* Core
|
179 |
-
*/
|
180 |
acfe_include('includes/assets.php');
|
181 |
acfe_include('includes/hooks.php');
|
182 |
|
183 |
-
|
184 |
-
* Admin
|
185 |
-
*/
|
186 |
-
acfe_include('includes/admin/admin.php');
|
187 |
-
acfe_include('includes/admin/plugins.php');
|
188 |
-
|
189 |
-
/*
|
190 |
-
* Fields
|
191 |
-
*/
|
192 |
acfe_include('includes/fields/field-checkbox.php');
|
193 |
acfe_include('includes/fields/field-clone.php');
|
194 |
acfe_include('includes/fields/field-file.php');
|
@@ -201,9 +205,7 @@ class ACFE{
|
|
201 |
acfe_include('includes/fields/field-textarea.php');
|
202 |
acfe_include('includes/fields/field-wysiwyg.php');
|
203 |
|
204 |
-
|
205 |
-
* Fields settings
|
206 |
-
*/
|
207 |
acfe_include('includes/fields-settings/bidirectional.php');
|
208 |
acfe_include('includes/fields-settings/data.php');
|
209 |
acfe_include('includes/fields-settings/instructions.php');
|
@@ -211,9 +213,7 @@ class ACFE{
|
|
211 |
acfe_include('includes/fields-settings/settings.php');
|
212 |
acfe_include('includes/fields-settings/validation.php');
|
213 |
|
214 |
-
|
215 |
-
* Field Groups
|
216 |
-
*/
|
217 |
acfe_include('includes/field-groups/field-group.php');
|
218 |
acfe_include('includes/field-groups/field-group-advanced.php');
|
219 |
acfe_include('includes/field-groups/field-group-category.php');
|
@@ -225,17 +225,13 @@ class ACFE{
|
|
225 |
acfe_include('includes/field-groups/field-groups.php');
|
226 |
acfe_include('includes/field-groups/field-groups-local.php');
|
227 |
|
228 |
-
|
229 |
-
* Locations
|
230 |
-
*/
|
231 |
acfe_include('includes/locations/post-type-all.php');
|
232 |
acfe_include('includes/locations/post-type-archive.php');
|
233 |
acfe_include('includes/locations/post-type-list.php');
|
234 |
acfe_include('includes/locations/taxonomy-list.php');
|
235 |
|
236 |
-
|
237 |
-
* Modules
|
238 |
-
*/
|
239 |
acfe_include('includes/modules/module.php');
|
240 |
acfe_include('includes/modules/author.php');
|
241 |
acfe_include('includes/modules/dev.php');
|
@@ -247,14 +243,18 @@ class ACFE{
|
|
247 |
acfe_include('includes/modules/taxonomies.php');
|
248 |
acfe_include('includes/modules/single-meta.php');
|
249 |
acfe_include('includes/modules/ui.php');
|
|
|
250 |
acfe_include('includes/modules/ui-settings.php');
|
251 |
acfe_include('includes/modules/ui-term.php');
|
252 |
acfe_include('includes/modules/ui-user.php');
|
253 |
|
254 |
}
|
255 |
|
256 |
-
|
257 |
-
|
|
|
|
|
|
|
258 |
*/
|
259 |
function include_fields(){
|
260 |
|
@@ -263,8 +263,11 @@ class ACFE{
|
|
263 |
|
264 |
}
|
265 |
|
266 |
-
|
267 |
-
|
|
|
|
|
|
|
268 |
*/
|
269 |
function include_field_types(){
|
270 |
|
@@ -285,8 +288,11 @@ class ACFE{
|
|
285 |
|
286 |
}
|
287 |
|
288 |
-
|
289 |
-
|
|
|
|
|
|
|
290 |
*/
|
291 |
function include_admin_tools(){
|
292 |
|
@@ -307,8 +313,11 @@ class ACFE{
|
|
307 |
|
308 |
}
|
309 |
|
310 |
-
|
311 |
-
|
|
|
|
|
|
|
312 |
*/
|
313 |
function include_admin_tools_late(){
|
314 |
|
@@ -317,24 +326,28 @@ class ACFE{
|
|
317 |
acfe_include('includes/admin/tools/field-groups-export.php');
|
318 |
|
319 |
}
|
320 |
-
|
321 |
-
|
322 |
-
|
|
|
|
|
|
|
323 |
*/
|
324 |
function constants($array = array()){
|
325 |
-
|
326 |
-
foreach($array as $name => $value){
|
327 |
-
|
328 |
-
if(defined($name)) continue;
|
329 |
-
|
330 |
-
define($name, $value);
|
331 |
|
|
|
|
|
|
|
|
|
332 |
}
|
333 |
|
334 |
}
|
335 |
|
336 |
-
|
337 |
-
|
|
|
|
|
|
|
338 |
*/
|
339 |
function settings($array = array()){
|
340 |
|
@@ -342,28 +355,24 @@ class ACFE{
|
|
342 |
|
343 |
// update
|
344 |
acf_update_setting("acfe/{$name}", $value);
|
345 |
-
|
346 |
-
add_filter("acf/settings/acfe/{$name}", function($value) use($name){
|
347 |
|
|
|
|
|
348 |
return apply_filters("acfe/settings/{$name}", $value);
|
349 |
-
|
350 |
}, 5);
|
351 |
|
352 |
}
|
353 |
|
354 |
}
|
355 |
|
356 |
-
/*
|
357 |
-
* ACF
|
358 |
-
*/
|
359 |
-
function acf(){
|
360 |
-
|
361 |
-
return class_exists('ACF') && defined('ACF_PRO') && defined('ACF_VERSION') && version_compare(ACF_VERSION, '5.8', '>=');
|
362 |
-
|
363 |
-
}
|
364 |
-
|
365 |
}
|
366 |
|
|
|
|
|
|
|
|
|
|
|
|
|
367 |
function acfe(){
|
368 |
|
369 |
global $acfe;
|
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.8.8
|
6 |
* Author: ACF Extended
|
7 |
+
* Plugin URI: https://www.acf-extended.com
|
8 |
* Author URI: https://www.acf-extended.com
|
9 |
* Text Domain: acfe
|
10 |
* Domain Path: /lang
|
11 |
*/
|
12 |
|
13 |
+
if(!defined('ABSPATH')){
|
14 |
exit;
|
15 |
+
}
|
16 |
|
17 |
if(!class_exists('ACFE')):
|
18 |
|
19 |
class ACFE{
|
20 |
|
21 |
+
// vars
|
22 |
+
var $version = '0.8.8.8';
|
23 |
|
24 |
+
/**
|
25 |
+
* construct
|
26 |
*/
|
27 |
function __construct(){
|
28 |
// ...
|
29 |
}
|
30 |
|
31 |
+
|
32 |
+
/**
|
33 |
+
* initialize
|
34 |
*/
|
35 |
function initialize(){
|
36 |
|
62 |
|
63 |
// Compatibility
|
64 |
acfe_include('includes/compatibility.php');
|
65 |
+
acfe_include('includes/third-party.php');
|
66 |
|
67 |
// Load
|
68 |
add_action('acf/include_field_types', array($this, 'load'));
|
69 |
|
70 |
}
|
71 |
|
72 |
+
|
73 |
+
/**
|
74 |
+
* load
|
75 |
+
*
|
76 |
+
* acf/include_field_types
|
77 |
*/
|
78 |
function load(){
|
79 |
|
80 |
+
// Bail early
|
81 |
+
if(!acfe_has_acf()){
|
82 |
+
return;
|
83 |
+
}
|
84 |
|
85 |
// Vars
|
86 |
$theme_path = acf_get_setting('acfe/theme_path', get_stylesheet_directory());
|
154 |
add_action('acf/include_admin_tools', array($this, 'include_admin_tools_late'), 20);
|
155 |
|
156 |
// Admin
|
157 |
+
acfe_include('includes/admin/compatibility.php');
|
158 |
acfe_include('includes/admin/menu.php');
|
159 |
acfe_include('includes/admin/plugins.php');
|
160 |
acfe_include('includes/admin/settings.php');
|
161 |
|
162 |
// Core
|
163 |
+
acfe_include('includes/field.php');
|
164 |
+
acfe_include('includes/field-extend.php');
|
165 |
acfe_include('includes/local-meta.php');
|
166 |
acfe_include('includes/multilang.php');
|
167 |
acfe_include('includes/settings.php');
|
168 |
acfe_include('includes/upgrades.php');
|
169 |
|
170 |
+
// Screens
|
171 |
+
acfe_include('includes/screens/screen-attachment.php');
|
172 |
+
acfe_include('includes/screens/screen-options-page.php');
|
173 |
+
acfe_include('includes/screens/screen-post.php');
|
174 |
+
acfe_include('includes/screens/screen-settings.php');
|
175 |
+
acfe_include('includes/screens/screen-taxonomy.php');
|
176 |
+
acfe_include('includes/screens/screen-user.php');
|
177 |
|
178 |
}
|
179 |
|
180 |
+
|
181 |
+
/**
|
182 |
+
* init
|
183 |
+
*
|
184 |
+
* acf/init:99
|
185 |
*/
|
186 |
function init(){
|
187 |
|
188 |
+
// Action
|
|
|
|
|
189 |
do_action('acfe/init');
|
190 |
|
191 |
+
// Core
|
|
|
|
|
192 |
acfe_include('includes/assets.php');
|
193 |
acfe_include('includes/hooks.php');
|
194 |
|
195 |
+
// Fields
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
acfe_include('includes/fields/field-checkbox.php');
|
197 |
acfe_include('includes/fields/field-clone.php');
|
198 |
acfe_include('includes/fields/field-file.php');
|
205 |
acfe_include('includes/fields/field-textarea.php');
|
206 |
acfe_include('includes/fields/field-wysiwyg.php');
|
207 |
|
208 |
+
//Fields Settings
|
|
|
|
|
209 |
acfe_include('includes/fields-settings/bidirectional.php');
|
210 |
acfe_include('includes/fields-settings/data.php');
|
211 |
acfe_include('includes/fields-settings/instructions.php');
|
213 |
acfe_include('includes/fields-settings/settings.php');
|
214 |
acfe_include('includes/fields-settings/validation.php');
|
215 |
|
216 |
+
//Field Groups
|
|
|
|
|
217 |
acfe_include('includes/field-groups/field-group.php');
|
218 |
acfe_include('includes/field-groups/field-group-advanced.php');
|
219 |
acfe_include('includes/field-groups/field-group-category.php');
|
225 |
acfe_include('includes/field-groups/field-groups.php');
|
226 |
acfe_include('includes/field-groups/field-groups-local.php');
|
227 |
|
228 |
+
// Locations
|
|
|
|
|
229 |
acfe_include('includes/locations/post-type-all.php');
|
230 |
acfe_include('includes/locations/post-type-archive.php');
|
231 |
acfe_include('includes/locations/post-type-list.php');
|
232 |
acfe_include('includes/locations/taxonomy-list.php');
|
233 |
|
234 |
+
// Modules
|
|
|
|
|
235 |
acfe_include('includes/modules/module.php');
|
236 |
acfe_include('includes/modules/author.php');
|
237 |
acfe_include('includes/modules/dev.php');
|
243 |
acfe_include('includes/modules/taxonomies.php');
|
244 |
acfe_include('includes/modules/single-meta.php');
|
245 |
acfe_include('includes/modules/ui.php');
|
246 |
+
acfe_include('includes/modules/ui-attachment.php');
|
247 |
acfe_include('includes/modules/ui-settings.php');
|
248 |
acfe_include('includes/modules/ui-term.php');
|
249 |
acfe_include('includes/modules/ui-user.php');
|
250 |
|
251 |
}
|
252 |
|
253 |
+
|
254 |
+
/**
|
255 |
+
* include_fields
|
256 |
+
*
|
257 |
+
* acf/include_fields:5
|
258 |
*/
|
259 |
function include_fields(){
|
260 |
|
263 |
|
264 |
}
|
265 |
|
266 |
+
|
267 |
+
/**
|
268 |
+
* include_field_types
|
269 |
+
*
|
270 |
+
* acf/include_field_types:99
|
271 |
*/
|
272 |
function include_field_types(){
|
273 |
|
288 |
|
289 |
}
|
290 |
|
291 |
+
|
292 |
+
/**
|
293 |
+
* include_admin_tools
|
294 |
+
*
|
295 |
+
* acf/include_admin_tools
|
296 |
*/
|
297 |
function include_admin_tools(){
|
298 |
|
313 |
|
314 |
}
|
315 |
|
316 |
+
|
317 |
+
/**
|
318 |
+
* include_admin_tools_late
|
319 |
+
*
|
320 |
+
* acf/include_admin_tools:99
|
321 |
*/
|
322 |
function include_admin_tools_late(){
|
323 |
|
326 |
acfe_include('includes/admin/tools/field-groups-export.php');
|
327 |
|
328 |
}
|
329 |
+
|
330 |
+
|
331 |
+
/**
|
332 |
+
* constants
|
333 |
+
*
|
334 |
+
* @param $array
|
335 |
*/
|
336 |
function constants($array = array()){
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
|
338 |
+
foreach($array as $name => $value){
|
339 |
+
if(!defined($name)){
|
340 |
+
define($name, $value);
|
341 |
+
}
|
342 |
}
|
343 |
|
344 |
}
|
345 |
|
346 |
+
|
347 |
+
/**
|
348 |
+
* settings
|
349 |
+
*
|
350 |
+
* @param $array
|
351 |
*/
|
352 |
function settings($array = array()){
|
353 |
|
355 |
|
356 |
// update
|
357 |
acf_update_setting("acfe/{$name}", $value);
|
|
|
|
|
358 |
|
359 |
+
// filter
|
360 |
+
add_filter("acf/settings/acfe/{$name}", function($value) use($name){
|
361 |
return apply_filters("acfe/settings/{$name}", $value);
|
|
|
362 |
}, 5);
|
363 |
|
364 |
}
|
365 |
|
366 |
}
|
367 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
368 |
}
|
369 |
|
370 |
+
|
371 |
+
/**
|
372 |
+
* acfe
|
373 |
+
*
|
374 |
+
* @return ACFE
|
375 |
+
*/
|
376 |
function acfe(){
|
377 |
|
378 |
global $acfe;
|
assets/css/acfe-admin.css
CHANGED
@@ -1,1179 +1,1225 @@
|
|
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:
|
26 |
-
-moz-user-select:
|
27 |
-
user-select:
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
}
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
}
|
97 |
-
|
98 |
-
.
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
}
|
114 |
-
|
115 |
-
.
|
116 |
-
|
117 |
-
margin:
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
.
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
}
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
.
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
}
|
198 |
-
|
199 |
-
.acfe-postbox
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
}
|
223 |
-
|
224 |
-
#
|
225 |
-
|
226 |
-
|
227 |
-
}
|
228 |
-
|
229 |
-
#
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
.
|
250 |
-
.
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
}
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
}
|
369 |
-
|
370 |
-
|
371 |
-
margin: 0
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
#
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
.
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
}
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
}
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
padding: 0
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
.
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
.acf-field[data-name=
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
.acf-field[data-name=
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
.acf-field[data-name=
|
546 |
-
.acf-field[data-name=
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
.
|
552 |
-
|
553 |
-
}
|
554 |
-
|
555 |
-
.
|
556 |
-
|
557 |
-
}
|
558 |
-
|
559 |
-
.
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
}
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
}
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
.
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
}
|
654 |
-
|
655 |
-
.
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
.
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
.
|
671 |
-
.
|
672 |
-
width:
|
673 |
-
}
|
674 |
-
|
675 |
-
.
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
.postbox
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
border-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
}
|
809 |
-
|
810 |
-
.
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
}
|
847 |
-
|
848 |
-
.postbox
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
}
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
}
|
870 |
-
|
871 |
-
.
|
872 |
-
|
873 |
-
}
|
874 |
-
|
875 |
-
.
|
876 |
-
|
877 |
-
|
878 |
-
}
|
879 |
-
|
880 |
-
.
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
}
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
}
|
899 |
-
|
900 |
-
.
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
}
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
}
|
937 |
-
|
938 |
-
.acf-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
}
|
963 |
-
|
964 |
-
.acf-field
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
}
|
997 |
-
|
998 |
-
.
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
}
|
1009 |
-
|
1010 |
-
.
|
1011 |
-
color: #
|
1012 |
-
}
|
1013 |
-
|
1014 |
-
.
|
1015 |
-
|
1016 |
-
}
|
1017 |
-
|
1018 |
-
.select2-container .select2-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
.acf-field .select2-container.-acf .select2-selection--
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
}
|
1063 |
-
|
1064 |
-
.
|
1065 |
-
|
1066 |
-
}
|
1067 |
-
|
1068 |
-
.acf-field .select2-container.-acf .select2-selection--multiple
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
padding: 0
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
padding
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
}
|
1109 |
-
|
1110 |
-
.acf-field .select2-container.-acf .select2-selection--multiple .select2-
|
1111 |
-
|
1112 |
-
}
|
1113 |
-
|
1114 |
-
.acf-field .select2-container.-acf .select2-selection--multiple .select2-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
}
|
1123 |
-
|
1124 |
-
.acf-field .select2-container.-acf .select2-selection--multiple .select2-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
}
|
1132 |
-
|
1133 |
-
.acf-field .select2-container.-acf.select2-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
1151 |
-
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1179 |
}
|
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 |
+
pre>code {
|
25 |
+
-webkit-user-select: inherit;
|
26 |
+
-moz-user-select: inherit;
|
27 |
+
-ms-user-select: inherit;
|
28 |
+
user-select: inherit;
|
29 |
+
padding: 0;
|
30 |
+
margin: 0;
|
31 |
+
background: 0 0;
|
32 |
+
font-size: 1em;
|
33 |
+
display: block
|
34 |
+
}
|
35 |
+
|
36 |
+
code {
|
37 |
+
-webkit-user-select: all;
|
38 |
+
-moz-user-select: all;
|
39 |
+
user-select: all
|
40 |
+
}
|
41 |
+
|
42 |
+
code[contenteditable=true] {
|
43 |
+
-webkit-user-select: auto;
|
44 |
+
-moz-user-select: auto;
|
45 |
+
-ms-user-select: auto;
|
46 |
+
user-select: auto
|
47 |
+
}
|
48 |
+
|
49 |
+
.code-codemirror>.CodeMirror,
|
50 |
+
.pre-codemirror>.CodeMirror {
|
51 |
+
border: 1px solid #ccc;
|
52 |
+
height: auto;
|
53 |
+
width: auto;
|
54 |
+
background: #f9f9f9;
|
55 |
+
padding: 9px 6px
|
56 |
+
}
|
57 |
+
|
58 |
+
.code-codemirror>.CodeMirror .CodeMirror-selected,
|
59 |
+
.pre-codemirror>.CodeMirror .CodeMirror-selected {
|
60 |
+
background: #ddd !important
|
61 |
+
}
|
62 |
+
|
63 |
+
.code-codemirror>.CodeMirror .CodeMirror-lines,
|
64 |
+
.pre-codemirror>.CodeMirror .CodeMirror-lines {
|
65 |
+
padding: 0
|
66 |
+
}
|
67 |
+
|
68 |
+
.code-codemirror {
|
69 |
+
display: inline;
|
70 |
+
vertical-align: middle
|
71 |
+
}
|
72 |
+
|
73 |
+
.code-codemirror>.CodeMirror {
|
74 |
+
display: inline-block;
|
75 |
+
padding: 0
|
76 |
+
}
|
77 |
+
|
78 |
+
.acfe-pre-highlight {
|
79 |
+
display: block;
|
80 |
+
padding: 9.5px;
|
81 |
+
margin: 0;
|
82 |
+
line-height: 1.42857143;
|
83 |
+
color: #333;
|
84 |
+
background-color: #f9f9f9;
|
85 |
+
border: 1px solid #ccc;
|
86 |
+
border-radius: 1px;
|
87 |
+
overflow: auto;
|
88 |
+
font-family: Menlo, Monaco, Consolas, Courier New, monospace;
|
89 |
+
font-size: 1em;
|
90 |
+
white-space: nowrap
|
91 |
+
}
|
92 |
+
|
93 |
+
.acf-columns-2 {
|
94 |
+
margin-right: 300px;
|
95 |
+
clear: both
|
96 |
+
}
|
97 |
+
|
98 |
+
.acf-columns-2:after {
|
99 |
+
display: block;
|
100 |
+
clear: both;
|
101 |
+
content: ""
|
102 |
+
}
|
103 |
+
|
104 |
+
.acf-columns-2 .acf-column-1 {
|
105 |
+
float: left;
|
106 |
+
width: 100%
|
107 |
+
}
|
108 |
+
|
109 |
+
.acf-columns-2 .acf-column-2 {
|
110 |
+
float: right;
|
111 |
+
margin-right: -300px;
|
112 |
+
width: 280px
|
113 |
+
}
|
114 |
+
|
115 |
+
html[dir=rtl] .acf-columns-2 {
|
116 |
+
margin-right: 0;
|
117 |
+
margin-left: 300px
|
118 |
+
}
|
119 |
+
|
120 |
+
html[dir=rtl] .acf-columns-2 .acf-column-1 {
|
121 |
+
float: right
|
122 |
+
}
|
123 |
+
|
124 |
+
html[dir=rtl] .acf-columns-2 .acf-column-2 {
|
125 |
+
float: left;
|
126 |
+
margin-right: 0;
|
127 |
+
margin-left: -300px
|
128 |
+
}
|
129 |
+
|
130 |
+
@media only screen and (max-width:850px) {
|
131 |
+
.acf-columns-2 {
|
132 |
+
margin-right: 0
|
133 |
+
}
|
134 |
+
|
135 |
+
.acf-columns-2 .acf-column-1,
|
136 |
+
.acf-columns-2 .acf-column-2 {
|
137 |
+
float: none;
|
138 |
+
width: auto;
|
139 |
+
margin: 0
|
140 |
+
}
|
141 |
+
}
|
142 |
+
|
143 |
+
.misc-pub-acfe-object-category::before,
|
144 |
+
.misc-pub-acfe-object-data::before,
|
145 |
+
.misc-pub-acfe-object-id::before,
|
146 |
+
.misc-pub-acfe-object-meta::before,
|
147 |
+
.misc-pub-acfe-object-role::before,
|
148 |
+
.misc-pub-acfe-object-single-meta::before,
|
149 |
+
.misc-pub-acfe-object-type::before {
|
150 |
+
font: normal 19px/1 dashicons;
|
151 |
+
speak: never;
|
152 |
+
display: inline-block;
|
153 |
+
margin-left: -1px;
|
154 |
+
padding-right: 3px;
|
155 |
+
vertical-align: top;
|
156 |
+
-webkit-font-smoothing: antialiased;
|
157 |
+
-moz-osx-font-smoothing: grayscale;
|
158 |
+
color: #8c8f94;
|
159 |
+
content: "\f173";
|
160 |
+
margin-right: 1px
|
161 |
+
}
|
162 |
+
|
163 |
+
.misc-pub-acfe-object-id::before {
|
164 |
+
content: "\f464"
|
165 |
+
}
|
166 |
+
|
167 |
+
.misc-pub-acfe-object-type::before {
|
168 |
+
content: "\f109"
|
169 |
+
}
|
170 |
+
|
171 |
+
.misc-pub-acfe-object-role::before {
|
172 |
+
content: "\f338"
|
173 |
+
}
|
174 |
+
|
175 |
+
.misc-pub-acfe-object-category::before {
|
176 |
+
content: "\f318"
|
177 |
+
}
|
178 |
+
|
179 |
+
.misc-pub-acfe-object-data::before {
|
180 |
+
content: "\f206"
|
181 |
+
}
|
182 |
+
|
183 |
+
.misc-pub-acfe-object-meta::before {
|
184 |
+
content: "\f17e"
|
185 |
+
}
|
186 |
+
|
187 |
+
.misc-pub-acfe-object-single-meta::before {
|
188 |
+
content: "\f106"
|
189 |
+
}
|
190 |
+
|
191 |
+
.acfe-list-postboxes .postbox>.postbox-header>h2.hndle {
|
192 |
+
cursor: initial
|
193 |
+
}
|
194 |
+
|
195 |
+
.acfe-list-postboxes .postbox>.postbox-header>.handle-actions>.acf-hndle-cog {
|
196 |
+
width: 2.2rem
|
197 |
+
}
|
198 |
+
|
199 |
+
.acfe-list-postboxes .postbox>.postbox-header>.handle-actions>button,
|
200 |
+
.acfe-list-postboxes .postbox>.postbox-header>.handle-actions>span {
|
201 |
+
display: none
|
202 |
+
}
|
203 |
+
|
204 |
+
.acfe-list-postboxes .postbox>.acf-fields>#acf-form-data+.acf-field {
|
205 |
+
border-top: none;
|
206 |
+
margin-top: 0
|
207 |
+
}
|
208 |
+
|
209 |
+
.acfe-list-postboxes.-side {
|
210 |
+
min-width: auto !important
|
211 |
+
}
|
212 |
+
|
213 |
+
#acfe-clean-meta>.inside {
|
214 |
+
margin: 0 !important;
|
215 |
+
padding: 15px 12px !important
|
216 |
+
}
|
217 |
+
|
218 |
+
.postbox#acfe-acf-custom-fields>.inside,
|
219 |
+
.postbox#acfe-wp-custom-fields>.inside {
|
220 |
+
padding: 0;
|
221 |
+
margin: 0
|
222 |
+
}
|
223 |
+
|
224 |
+
.postbox#acfe-acf-custom-fields>.inside .wp-list-table,
|
225 |
+
.postbox#acfe-wp-custom-fields>.inside .wp-list-table {
|
226 |
+
border: 0
|
227 |
+
}
|
228 |
+
|
229 |
+
.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-name,
|
230 |
+
.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-name {
|
231 |
+
width: 30%
|
232 |
+
}
|
233 |
+
|
234 |
+
.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-value,
|
235 |
+
.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-value {
|
236 |
+
width: auto
|
237 |
+
}
|
238 |
+
|
239 |
+
.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-field-type,
|
240 |
+
.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-field-type {
|
241 |
+
width: 100px
|
242 |
+
}
|
243 |
+
|
244 |
+
.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-field-group,
|
245 |
+
.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-field-group {
|
246 |
+
width: 120px
|
247 |
+
}
|
248 |
+
|
249 |
+
.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-autoload,
|
250 |
+
.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-autoload {
|
251 |
+
width: 65px
|
252 |
+
}
|
253 |
+
|
254 |
+
.postbox#acfe-acf-custom-fields+.acfe_dev_bulk_actions,
|
255 |
+
.postbox#acfe-wp-custom-fields+.acfe_dev_bulk_actions {
|
256 |
+
padding-top: 0;
|
257 |
+
margin-top: -8px;
|
258 |
+
margin-bottom: 20px
|
259 |
+
}
|
260 |
+
|
261 |
+
.postbox#acfe-acf-custom-fields+.acfe_dev_bulk_actions:last-child,
|
262 |
+
.postbox#acfe-wp-custom-fields+.acfe_dev_bulk_actions:last-child {
|
263 |
+
margin-bottom: 0
|
264 |
+
}
|
265 |
+
|
266 |
+
.postbox#acfe-acf-custom-fields em,
|
267 |
+
.postbox#acfe-wp-custom-fields em {
|
268 |
+
color: #aaa
|
269 |
+
}
|
270 |
+
|
271 |
+
.postbox#acfe-acf-custom-fields .acfe_dev_meta_count,
|
272 |
+
.postbox#acfe-wp-custom-fields .acfe_dev_meta_count {
|
273 |
+
background: #72777c;
|
274 |
+
padding: 1px 5px;
|
275 |
+
border-radius: 4px;
|
276 |
+
color: #fff;
|
277 |
+
margin-left: 7px;
|
278 |
+
font-size: 12px;
|
279 |
+
margin-right: auto
|
280 |
+
}
|
281 |
+
|
282 |
+
.postbox#acfe-acf-custom-fields pre,
|
283 |
+
.postbox#acfe-wp-custom-fields pre {
|
284 |
+
max-height: 200px;
|
285 |
+
overflow: auto;
|
286 |
+
white-space: pre
|
287 |
+
}
|
288 |
+
|
289 |
+
.postbox#acfe-acf-custom-fields pre.raw,
|
290 |
+
.postbox#acfe-wp-custom-fields pre.raw {
|
291 |
+
white-space: unset;
|
292 |
+
margin-top: 10px;
|
293 |
+
max-width: 100%
|
294 |
+
}
|
295 |
+
|
296 |
+
@media only screen and (max-width:1100px) {
|
297 |
+
|
298 |
+
.postbox#acfe-acf-custom-fields thead,
|
299 |
+
.postbox#acfe-wp-custom-fields thead {
|
300 |
+
display: none
|
301 |
+
}
|
302 |
+
|
303 |
+
.postbox#acfe-acf-custom-fields tbody tr,
|
304 |
+
.postbox#acfe-wp-custom-fields tbody tr {
|
305 |
+
display: -webkit-box;
|
306 |
+
display: -ms-flexbox;
|
307 |
+
display: flex;
|
308 |
+
-ms-flex-wrap: wrap;
|
309 |
+
flex-wrap: wrap
|
310 |
+
}
|
311 |
+
|
312 |
+
.postbox#acfe-acf-custom-fields tbody td,
|
313 |
+
.postbox#acfe-acf-custom-fields tbody th,
|
314 |
+
.postbox#acfe-wp-custom-fields tbody td,
|
315 |
+
.postbox#acfe-wp-custom-fields tbody th {
|
316 |
+
display: block
|
317 |
+
}
|
318 |
+
|
319 |
+
.postbox#acfe-acf-custom-fields tbody td:first-of-type,
|
320 |
+
.postbox#acfe-wp-custom-fields tbody td:first-of-type {
|
321 |
+
-webkit-box-flex: 1;
|
322 |
+
-ms-flex: 1;
|
323 |
+
flex: 1
|
324 |
+
}
|
325 |
+
|
326 |
+
@media only screen and (max-width:850px) {
|
327 |
+
|
328 |
+
.postbox#acfe-acf-custom-fields tbody td:first-of-type,
|
329 |
+
.postbox#acfe-wp-custom-fields tbody td:first-of-type {
|
330 |
+
line-height: 2.2
|
331 |
+
}
|
332 |
+
}
|
333 |
+
|
334 |
+
.postbox#acfe-acf-custom-fields tbody td:first-of-type strong,
|
335 |
+
.postbox#acfe-wp-custom-fields tbody td:first-of-type strong {
|
336 |
+
display: inline-block;
|
337 |
+
word-break: break-all
|
338 |
+
}
|
339 |
+
|
340 |
+
.postbox#acfe-acf-custom-fields tbody td:first-of-type .row-actions,
|
341 |
+
.postbox#acfe-wp-custom-fields tbody td:first-of-type .row-actions {
|
342 |
+
display: inline-block;
|
343 |
+
padding: 0;
|
344 |
+
float: right
|
345 |
+
}
|
346 |
+
|
347 |
+
@media only screen and (max-width:850px) {
|
348 |
+
|
349 |
+
.postbox#acfe-acf-custom-fields tbody td:first-of-type .row-actions,
|
350 |
+
.postbox#acfe-wp-custom-fields tbody td:first-of-type .row-actions {
|
351 |
+
left: auto
|
352 |
+
}
|
353 |
+
}
|
354 |
+
|
355 |
+
.postbox#acfe-acf-custom-fields tbody td:first-of-type .row-actions .delete,
|
356 |
+
.postbox#acfe-acf-custom-fields tbody td:first-of-type .row-actions a,
|
357 |
+
.postbox#acfe-wp-custom-fields tbody td:first-of-type .row-actions .delete,
|
358 |
+
.postbox#acfe-wp-custom-fields tbody td:first-of-type .row-actions a {
|
359 |
+
padding: 0
|
360 |
+
}
|
361 |
+
|
362 |
+
.postbox#acfe-acf-custom-fields tbody td:nth-child(3),
|
363 |
+
.postbox#acfe-wp-custom-fields tbody td:nth-child(3) {
|
364 |
+
-webkit-box-flex: 1;
|
365 |
+
-ms-flex: 1 1 100%;
|
366 |
+
flex: 1 1 100%
|
367 |
+
}
|
368 |
+
}
|
369 |
+
|
370 |
+
.acf-settings-wrap .acf-box {
|
371 |
+
margin: 16px 0
|
372 |
+
}
|
373 |
+
|
374 |
+
.acf-box .title {
|
375 |
+
padding: 8px 12px
|
376 |
+
}
|
377 |
+
|
378 |
+
.acf-box .title h3 {
|
379 |
+
line-height: 1.48
|
380 |
+
}
|
381 |
+
|
382 |
+
#acfe-author>.inside {
|
383 |
+
margin: 0;
|
384 |
+
padding: 0
|
385 |
+
}
|
386 |
+
|
387 |
+
#acfe-author>.inside>.acf-field {
|
388 |
+
margin: 0;
|
389 |
+
padding: 15px 12px
|
390 |
+
}
|
391 |
+
|
392 |
+
.wp-list-table .column-acfe-load {
|
393 |
+
width: 70px
|
394 |
+
}
|
395 |
+
|
396 |
+
.wp-list-table .column-acfe-source {
|
397 |
+
width: 150px
|
398 |
+
}
|
399 |
+
|
400 |
+
.wp-list-table .column-acfe-autosync-json,
|
401 |
+
.wp-list-table .column-acfe-autosync-php {
|
402 |
+
width: 90px;
|
403 |
+
text-align: center !important
|
404 |
+
}
|
405 |
+
|
406 |
+
.wp-list-table .column-acfe-autosync-json .secondary,
|
407 |
+
.wp-list-table .column-acfe-autosync-php .secondary {
|
408 |
+
color: #ccc
|
409 |
+
}
|
410 |
+
|
411 |
+
.wp-list-table .column-acfe-autosync-json .dashicons-warning,
|
412 |
+
.wp-list-table .column-acfe-autosync-php .dashicons-warning {
|
413 |
+
font-size: 15px;
|
414 |
+
vertical-align: middle
|
415 |
+
}
|
416 |
+
|
417 |
+
.wp-list-table .column-acfe-autosync-json .dashicons-update,
|
418 |
+
.wp-list-table .column-acfe-autosync-php .dashicons-update {
|
419 |
+
font-size: 18px
|
420 |
+
}
|
421 |
+
|
422 |
+
.wp-list-table .column-acfe-autosync-json .dashicons+.dashicons-warning,
|
423 |
+
.wp-list-table .column-acfe-autosync-php .dashicons+.dashicons-warning {
|
424 |
+
margin-left: -3px
|
425 |
+
}
|
426 |
+
|
427 |
+
.wp-list-table .column-acfe-autosync-json a:focus,
|
428 |
+
.wp-list-table .column-acfe-autosync-php a:focus {
|
429 |
+
-webkit-box-shadow: none;
|
430 |
+
box-shadow: none
|
431 |
+
}
|
432 |
+
|
433 |
+
.acf-field[data-name=acfe_autosync] .dashicons-warning {
|
434 |
+
color: #ccc;
|
435 |
+
font-size: 15px;
|
436 |
+
height: 15px;
|
437 |
+
vertical-align: text-bottom
|
438 |
+
}
|
439 |
+
|
440 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-type=acfe_dynamic_render][data-key*="_doc"] {
|
441 |
+
padding: 0 !important;
|
442 |
+
border: 0 !important;
|
443 |
+
position: absolute !important;
|
444 |
+
top: 12px;
|
445 |
+
right: 11px;
|
446 |
+
z-index: 3
|
447 |
+
}
|
448 |
+
|
449 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-type=acfe_dynamic_render][data-key*="_doc"]::before {
|
450 |
+
background: 0 0 !important;
|
451 |
+
border: 0 !important
|
452 |
+
}
|
453 |
+
|
454 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-type=acfe_dynamic_render][data-key*="_doc"]>.acf-label {
|
455 |
+
min-height: 0 !important
|
456 |
+
}
|
457 |
+
|
458 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-type=acfe_dynamic_render][data-key*="_doc"]>.acf-input {
|
459 |
+
float: none !important;
|
460 |
+
width: auto !important;
|
461 |
+
padding: 0 !important
|
462 |
+
}
|
463 |
+
|
464 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-type=acfe_dynamic_render][data-key*="_doc"]+.acf-field,
|
465 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-type=acfe_dynamic_render][data-key*="_doc"]+.acf-tab-wrap>.acf-tab-group {
|
466 |
+
border-top: 0
|
467 |
+
}
|
468 |
+
|
469 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields],
|
470 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields] {
|
471 |
+
padding: 0
|
472 |
+
}
|
473 |
+
|
474 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields]>.acf-label,
|
475 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields]>.acf-label {
|
476 |
+
padding: 15px 12px
|
477 |
+
}
|
478 |
+
|
479 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields]>.acf-input,
|
480 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields]>.acf-input {
|
481 |
+
padding: 0
|
482 |
+
}
|
483 |
+
|
484 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields] ul li label,
|
485 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields] ul li label {
|
486 |
+
display: block;
|
487 |
+
padding: 8px 12px;
|
488 |
+
border-bottom: 1px solid #e1e1e1
|
489 |
+
}
|
490 |
+
|
491 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields] ul li:last-child label,
|
492 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields] ul li:last-child label {
|
493 |
+
border-bottom: 0
|
494 |
+
}
|
495 |
+
|
496 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields] ul li input,
|
497 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields] ul li input {
|
498 |
+
margin-right: 7px
|
499 |
+
}
|
500 |
+
|
501 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field>.acf-input.acfe-display-related-message>:not(.related-message):not(.append-terms) {
|
502 |
+
display: none
|
503 |
+
}
|
504 |
+
|
505 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field>.acf-input.acfe-display-related-message .related-message {
|
506 |
+
font-size: 14px
|
507 |
+
}
|
508 |
+
|
509 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_post_terms]>.acf-input {
|
510 |
+
display: -webkit-box;
|
511 |
+
display: -ms-flexbox;
|
512 |
+
display: flex
|
513 |
+
}
|
514 |
+
|
515 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_post_terms]>.acf-input .select2.select2-container {
|
516 |
+
-webkit-box-ordinal-group: 1;
|
517 |
+
-ms-flex-order: 0;
|
518 |
+
order: 0;
|
519 |
+
width: 83% !important
|
520 |
+
}
|
521 |
+
|
522 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_post_terms]>.acf-input .related-message {
|
523 |
+
-webkit-box-ordinal-group: 2;
|
524 |
+
-ms-flex-order: 1;
|
525 |
+
order: 1
|
526 |
+
}
|
527 |
+
|
528 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_post_terms]>.acf-input .acf-input.append-terms {
|
529 |
+
-webkit-box-ordinal-group: 3;
|
530 |
+
-ms-flex-order: 2;
|
531 |
+
order: 2;
|
532 |
+
margin-top: 3px;
|
533 |
+
width: 17%;
|
534 |
+
padding-left: 15px
|
535 |
+
}
|
536 |
+
|
537 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_post_terms]>.acf-input.acfe-display-related-message .acf-input.append-terms {
|
538 |
+
margin-top: 0
|
539 |
+
}
|
540 |
+
|
541 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_post_terms]>.acf-input.acfe-display-related-message .related-message {
|
542 |
+
width: 83%
|
543 |
+
}
|
544 |
+
|
545 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=files]>.acf-input .acf-actions,
|
546 |
+
.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=files_static]>.acf-input .acf-actions {
|
547 |
+
text-align: left
|
548 |
+
}
|
549 |
+
|
550 |
+
.acfe-module.acfe-module-form.acfe-module-post .select2-results__options .loading-results,
|
551 |
+
.acfe-module.acfe-module-form.acfe-module-post .select2-results__options .select2-results__message {
|
552 |
+
display: none
|
553 |
+
}
|
554 |
+
|
555 |
+
.settings_page_acfe-options .column-option_id {
|
556 |
+
width: 65px
|
557 |
+
}
|
558 |
+
|
559 |
+
.settings_page_acfe-options .column-option_name {
|
560 |
+
width: 435px
|
561 |
+
}
|
562 |
+
|
563 |
+
.settings_page_acfe-options .column-autoload {
|
564 |
+
width: 100px;
|
565 |
+
text-align: center
|
566 |
+
}
|
567 |
+
|
568 |
+
#acfe-admin-settings .inside>.acf-field {
|
569 |
+
display: -webkit-box;
|
570 |
+
display: -ms-flexbox;
|
571 |
+
display: flex;
|
572 |
+
padding: 0
|
573 |
+
}
|
574 |
+
|
575 |
+
#acfe-admin-settings .inside>.acf-field>.acf-label {
|
576 |
+
padding-top: 15px;
|
577 |
+
padding-bottom: 15px;
|
578 |
+
float: none;
|
579 |
+
display: block
|
580 |
+
}
|
581 |
+
|
582 |
+
#acfe-admin-settings .inside>.acf-field>.acf-input {
|
583 |
+
display: -webkit-box;
|
584 |
+
display: -ms-flexbox;
|
585 |
+
display: flex;
|
586 |
+
float: none;
|
587 |
+
padding: 0
|
588 |
+
}
|
589 |
+
|
590 |
+
#acfe-admin-settings .inside>.acf-field>.acf-input>div {
|
591 |
+
-webkit-box-flex: 1;
|
592 |
+
-ms-flex: 1 1 50%;
|
593 |
+
flex: 1 1 50%;
|
594 |
+
max-width: 50%;
|
595 |
+
padding: 8px;
|
596 |
+
min-width: 0
|
597 |
+
}
|
598 |
+
|
599 |
+
#acfe-admin-settings .inside>.acf-field>.acf-input>div:nth-child(2) {
|
600 |
+
border-left: 1px solid #eee
|
601 |
+
}
|
602 |
+
|
603 |
+
#acfe-admin-settings .inside>.acf-field>.acf-input .acfe-settings-text {
|
604 |
+
overflow: hidden;
|
605 |
+
-o-text-overflow: ellipsis;
|
606 |
+
text-overflow: ellipsis;
|
607 |
+
white-space: nowrap;
|
608 |
+
max-width: 100%;
|
609 |
+
display: inline-block
|
610 |
+
}
|
611 |
+
|
612 |
+
#acfe-admin-settings .inside>.acf-field>.acf-input .acfe-settings-text>code {
|
613 |
+
font-size: 12px
|
614 |
+
}
|
615 |
+
|
616 |
+
#acfe-admin-settings .inside>.acf-field>.acf-input .dashicons-saved {
|
617 |
+
font-size: 21px;
|
618 |
+
display: inline
|
619 |
+
}
|
620 |
+
|
621 |
+
#acfe-admin-settings .inside>.acf-field>.acf-input .dashicons-no-alt {
|
622 |
+
color: #ccc;
|
623 |
+
font-size: 21px;
|
624 |
+
display: inline
|
625 |
+
}
|
626 |
+
|
627 |
+
#acfe-admin-settings .inside>.acf-field.acfe-settings-thead>.acf-input {
|
628 |
+
padding: 0;
|
629 |
+
border-bottom: 1px solid #eee
|
630 |
+
}
|
631 |
+
|
632 |
+
#acfe-admin-settings .inside>.acf-field.acfe-settings-thead+.acf-field {
|
633 |
+
border-top: 0
|
634 |
+
}
|
635 |
+
|
636 |
+
.acfe-module.acfe-module-post #minor-publishing-actions,
|
637 |
+
.acfe-module.acfe-module-post #misc-publishing-actions #visibility,
|
638 |
+
.acfe-module.acfe-module-post #misc-publishing-actions .edit-post-status,
|
639 |
+
.acfe-module.acfe-module-post #misc-publishing-actions .edit-timestamp {
|
640 |
+
display: none !important
|
641 |
+
}
|
642 |
+
|
643 |
+
.acfe-module.acfe-module-post .acfe-misc-export {
|
644 |
+
padding-top: 2px
|
645 |
+
}
|
646 |
+
|
647 |
+
.acfe-module.acfe-module-post .acfe-misc-export span.dashicons {
|
648 |
+
font-size: 18px;
|
649 |
+
color: #82878c;
|
650 |
+
line-height: 1.2;
|
651 |
+
width: 18px;
|
652 |
+
margin-right: 4px
|
653 |
+
}
|
654 |
+
|
655 |
+
.acfe-module.acfe-module-post.post-new-php .acfe-misc-export {
|
656 |
+
display: none
|
657 |
+
}
|
658 |
+
|
659 |
+
.acfe-module.acfe-module-posts .status-acf-disabled .column-title a,
|
660 |
+
.acfe-module.acfe-module-posts .status-acf-disabled .column-title code {
|
661 |
+
color: #555 !important
|
662 |
+
}
|
663 |
+
|
664 |
+
.acfe-module.acfe-module-posts .status-acf-disabled .column-title strong {
|
665 |
+
color: #a0a5aa
|
666 |
+
}
|
667 |
+
|
668 |
+
.acfe-module.acfe-module-posts .column-acfe-autoload,
|
669 |
+
.acfe-module.acfe-module-posts .column-acfe-position,
|
670 |
+
.acfe-module.acfe-module-posts .column-acfe-posts,
|
671 |
+
.acfe-module.acfe-module-posts .column-acfe-terms {
|
672 |
+
width: 120px
|
673 |
+
}
|
674 |
+
|
675 |
+
.acfe-module.acfe-module-posts .column-acfe-post-id {
|
676 |
+
width: 200px
|
677 |
+
}
|
678 |
+
|
679 |
+
ul.acfe-module-export-choices {
|
680 |
+
-webkit-column-width: 200px;
|
681 |
+
-moz-column-width: 200px;
|
682 |
+
column-width: 200px
|
683 |
+
}
|
684 |
+
|
685 |
+
.wrap .acfe-edit-module-button {
|
686 |
+
display: inline-block;
|
687 |
+
padding-left: 4px;
|
688 |
+
padding-right: 4px
|
689 |
+
}
|
690 |
+
|
691 |
+
.wrap .acfe-edit-module-button:active {
|
692 |
+
padding-left: 4px;
|
693 |
+
padding-right: 4px
|
694 |
+
}
|
695 |
+
|
696 |
+
.wrap .acfe-edit-module-button span {
|
697 |
+
font-size: 16px;
|
698 |
+
vertical-align: text-top;
|
699 |
+
height: 15px;
|
700 |
+
width: 19px;
|
701 |
+
line-height: 19px
|
702 |
+
}
|
703 |
+
|
704 |
+
.acf-postbox.seamless>.inside>.acf-field {
|
705 |
+
padding: 15px 12px
|
706 |
+
}
|
707 |
+
|
708 |
+
.acf-flexible-content .layout.ui-sortable-helper:first-child+.layout.ui-sortable-placeholder {
|
709 |
+
margin-top: 0
|
710 |
+
}
|
711 |
+
|
712 |
+
.acfe-postbox.acfe-postbox-no-handle h2.hndle {
|
713 |
+
cursor: initial
|
714 |
+
}
|
715 |
+
|
716 |
+
.acfe-postbox.acfe-postbox-no-handle .handlediv {
|
717 |
+
display: none
|
718 |
+
}
|
719 |
+
|
720 |
+
.acfe-postbox-top>.inside {
|
721 |
+
position: relative
|
722 |
+
}
|
723 |
+
|
724 |
+
.acfe-postbox-top>.inside.-border {
|
725 |
+
border: #ccd0d4 solid 1px;
|
726 |
+
background: #fff
|
727 |
+
}
|
728 |
+
|
729 |
+
.acfe-postbox-top>.inside>.acf-field {
|
730 |
+
position: relative;
|
731 |
+
margin: 0;
|
732 |
+
padding: 15px 12px;
|
733 |
+
border-top: #eee solid 1px
|
734 |
+
}
|
735 |
+
|
736 |
+
.acfe-postbox-top>.inside>.acf-field:first-child {
|
737 |
+
border-top: none;
|
738 |
+
margin-top: 0
|
739 |
+
}
|
740 |
+
|
741 |
+
.acfe-postbox-left>.inside {
|
742 |
+
position: relative
|
743 |
+
}
|
744 |
+
|
745 |
+
.acfe-postbox-left>.inside.-border {
|
746 |
+
border: #ccd0d4 solid 1px;
|
747 |
+
background: #fff
|
748 |
+
}
|
749 |
+
|
750 |
+
.acfe-postbox-left>.inside:after {
|
751 |
+
display: block;
|
752 |
+
clear: both;
|
753 |
+
content: ""
|
754 |
+
}
|
755 |
+
|
756 |
+
.acfe-postbox-left>.inside>.acf-field {
|
757 |
+
position: relative;
|
758 |
+
margin: 0;
|
759 |
+
border-top: #eee solid 1px;
|
760 |
+
padding: 15px 0
|
761 |
+
}
|
762 |
+
|
763 |
+
.acfe-postbox-left>.inside>.acf-field:first-child {
|
764 |
+
border-top: none;
|
765 |
+
margin-top: 0
|
766 |
+
}
|
767 |
+
|
768 |
+
.acfe-postbox-left>.inside>.acf-field:after {
|
769 |
+
display: block;
|
770 |
+
clear: both;
|
771 |
+
content: ""
|
772 |
+
}
|
773 |
+
|
774 |
+
.acfe-postbox-left>.inside>.acf-field:before {
|
775 |
+
content: "";
|
776 |
+
display: block;
|
777 |
+
position: absolute;
|
778 |
+
z-index: 0;
|
779 |
+
background: #f9f9f9;
|
780 |
+
border-color: #e1e1e1;
|
781 |
+
border-style: solid;
|
782 |
+
border-width: 0 1px 0 0;
|
783 |
+
top: 0;
|
784 |
+
bottom: 0;
|
785 |
+
left: 0;
|
786 |
+
width: 20%
|
787 |
+
}
|
788 |
+
|
789 |
+
.acfe-postbox-left>.inside>.acf-field[data-width] {
|
790 |
+
float: none;
|
791 |
+
width: auto !important;
|
792 |
+
border-left-width: 0 !important;
|
793 |
+
border-right-width: 0 !important
|
794 |
+
}
|
795 |
+
|
796 |
+
.acfe-postbox-left>.inside>.acf-field>.acf-label {
|
797 |
+
float: left;
|
798 |
+
width: 20%;
|
799 |
+
margin: 0;
|
800 |
+
padding: 0 12px
|
801 |
+
}
|
802 |
+
|
803 |
+
.acfe-postbox-left>.inside>.acf-field>.acf-input {
|
804 |
+
float: left;
|
805 |
+
width: 80%;
|
806 |
+
margin: 0;
|
807 |
+
padding: 0 12px
|
808 |
+
}
|
809 |
+
|
810 |
+
.acfe-postbox-left>.inside.-clear>.acf-field {
|
811 |
+
border: none;
|
812 |
+
padding: 0;
|
813 |
+
margin: 15px 0
|
814 |
+
}
|
815 |
+
|
816 |
+
html[dir=rtl] .acfe-postbox-left>.inside>.acf-field:before {
|
817 |
+
border-width: 0 0 0 1px;
|
818 |
+
left: auto;
|
819 |
+
right: 0
|
820 |
+
}
|
821 |
+
|
822 |
+
html[dir=rtl] .acfe-postbox-left>.inside>.acf-field>.acf-label {
|
823 |
+
float: right
|
824 |
+
}
|
825 |
+
|
826 |
+
html[dir=rtl] .acfe-postbox-left>.inside>.acf-field>.acf-input {
|
827 |
+
float: right
|
828 |
+
}
|
829 |
+
|
830 |
+
#side-sortables .acfe-postbox-left>.inside>.acf-field:before {
|
831 |
+
display: none
|
832 |
+
}
|
833 |
+
|
834 |
+
#side-sortables .acfe-postbox-left>.inside>.acf-field>.acf-label {
|
835 |
+
width: 100%;
|
836 |
+
margin-bottom: 10px
|
837 |
+
}
|
838 |
+
|
839 |
+
#side-sortables .acfe-postbox-left>.inside>.acf-field>.acf-input {
|
840 |
+
width: 100%
|
841 |
+
}
|
842 |
+
|
843 |
+
@media screen and (max-width:640px) {
|
844 |
+
.acfe-postbox-left>.inside>.acf-field:before {
|
845 |
+
display: none
|
846 |
+
}
|
847 |
+
|
848 |
+
.acfe-postbox-left>.inside>.acf-field>.acf-label {
|
849 |
+
width: 100%;
|
850 |
+
margin-bottom: 10px
|
851 |
+
}
|
852 |
+
|
853 |
+
.acfe-postbox-left>.inside>.acf-field>.acf-input {
|
854 |
+
width: 100%
|
855 |
+
}
|
856 |
+
}
|
857 |
+
|
858 |
+
@media screen and (min-width:783px) {
|
859 |
+
|
860 |
+
.postbox .handle-order-higher,
|
861 |
+
.postbox .handle-order-lower {
|
862 |
+
visibility: hidden
|
863 |
+
}
|
864 |
+
|
865 |
+
.postbox:hover .handle-order-higher,
|
866 |
+
.postbox:hover .handle-order-lower {
|
867 |
+
visibility: visible
|
868 |
+
}
|
869 |
+
}
|
870 |
+
|
871 |
+
.postbox .handlediv {
|
872 |
+
width: 1.62rem
|
873 |
+
}
|
874 |
+
|
875 |
+
.postbox .handlediv .toggle-indicator::before {
|
876 |
+
text-indent: -7px;
|
877 |
+
top: .1rem
|
878 |
+
}
|
879 |
+
|
880 |
+
.postbox .handle-order-higher,
|
881 |
+
.postbox .handle-order-lower {
|
882 |
+
vertical-align: bottom;
|
883 |
+
width: 1.42rem
|
884 |
+
}
|
885 |
+
|
886 |
+
.postbox .handle-order-higher .order-higher-indicator::before,
|
887 |
+
.postbox .handle-order-higher .order-lower-indicator::before,
|
888 |
+
.postbox .handle-order-lower .order-higher-indicator::before,
|
889 |
+
.postbox .handle-order-lower .order-lower-indicator::before {
|
890 |
+
font-size: 15px;
|
891 |
+
top: .23rem
|
892 |
+
}
|
893 |
+
|
894 |
+
#poststuff .stuffbox>h3,
|
895 |
+
#poststuff h2,
|
896 |
+
#poststuff h3.hndle {
|
897 |
+
line-height: 1.48
|
898 |
+
}
|
899 |
+
|
900 |
+
body.is-dragging-metaboxes #acf_after_title-sortables {
|
901 |
+
outline: 3px dashed #646970;
|
902 |
+
display: flow-root;
|
903 |
+
min-height: 60px;
|
904 |
+
margin-bottom: 3px !important
|
905 |
+
}
|
906 |
+
|
907 |
+
.edit-post-layout__metaboxes:not(:empty) {
|
908 |
+
background: #f3f4f5;
|
909 |
+
padding: 10px 10px 0 10px !important
|
910 |
+
}
|
911 |
+
|
912 |
+
.edit-post-layout__metaboxes .edit-post-meta-boxes-area .postbox {
|
913 |
+
margin-bottom: 10px;
|
914 |
+
border: 1px solid #e1e1e1
|
915 |
+
}
|
916 |
+
|
917 |
+
.edit-post-layout__metaboxes .edit-post-meta-boxes-area .postbox>.postbox-header {
|
918 |
+
border-top: 0;
|
919 |
+
border-bottom: 1px solid #ddd
|
920 |
+
}
|
921 |
+
|
922 |
+
.edit-post-layout__metaboxes .edit-post-meta-boxes-area .postbox>.inside {
|
923 |
+
border-bottom: 0
|
924 |
+
}
|
925 |
+
|
926 |
+
.edit-post-layout__metaboxes .edit-post-meta-boxes-area .postbox.closed>.postbox-header {
|
927 |
+
border-bottom: 0
|
928 |
+
}
|
929 |
+
|
930 |
+
.widget.open {
|
931 |
+
z-index: inherit !important
|
932 |
+
}
|
933 |
+
|
934 |
+
.menu-item-settings {
|
935 |
+
position: initial
|
936 |
+
}
|
937 |
+
|
938 |
+
.acf-meta-box-wrap.-grid #acf-admin-tool-acfe-fg-local {
|
939 |
+
display: none
|
940 |
+
}
|
941 |
+
|
942 |
+
.acf-tab-group li a .acfe-tab-badge {
|
943 |
+
border-radius: 100px;
|
944 |
+
background: #ddd;
|
945 |
+
width: 18px;
|
946 |
+
height: 18px;
|
947 |
+
font-size: 12px;
|
948 |
+
display: inline-block;
|
949 |
+
vertical-align: text-bottom;
|
950 |
+
padding: 0;
|
951 |
+
text-align: center;
|
952 |
+
margin-left: 5px;
|
953 |
+
line-height: 18px
|
954 |
+
}
|
955 |
+
|
956 |
+
.acf-tab-group li.active a .acfe-tab-badge {
|
957 |
+
background: #f1f1f1
|
958 |
+
}
|
959 |
+
|
960 |
+
.acf-field>.acf-input>.acf-input-wrap {
|
961 |
+
overflow: initial
|
962 |
+
}
|
963 |
+
|
964 |
+
.acf-field>.acf-input>.acf-input-append+.acf-input-wrap,
|
965 |
+
.acf-field>.acf-input>.acf-input-prepend+.acf-input-wrap {
|
966 |
+
overflow: hidden
|
967 |
+
}
|
968 |
+
|
969 |
+
.post-type-attachment #post-body-content #acf_after_title-sortables {
|
970 |
+
margin: 20px 0 0
|
971 |
+
}
|
972 |
+
|
973 |
+
body.post-type-acf-field-group #wpcontent {
|
974 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
975 |
+
line-height: 1.4em
|
976 |
+
}
|
977 |
+
|
978 |
+
.acf-field .select2-container.-acf .select2-selection--single {
|
979 |
+
border-radius: 3px;
|
980 |
+
height: 30px;
|
981 |
+
outline: 0
|
982 |
+
}
|
983 |
+
|
984 |
+
.acf-field .select2-container.-acf .select2-selection--single .select2-selection__rendered {
|
985 |
+
font-size: 14px;
|
986 |
+
height: 28px;
|
987 |
+
line-height: 27px;
|
988 |
+
padding-right: 23px
|
989 |
+
}
|
990 |
+
|
991 |
+
.acf-field .select2-container.-acf .select2-selection--single .select2-selection__clear {
|
992 |
+
line-height: 26px;
|
993 |
+
height: 28px;
|
994 |
+
font-size: 16px;
|
995 |
+
margin-right: 0
|
996 |
+
}
|
997 |
+
|
998 |
+
.acf-field .select2-container.-acf .select2-selection--single button.select2-selection__clear {
|
999 |
+
position: absolute;
|
1000 |
+
right: 24px;
|
1001 |
+
padding: 0
|
1002 |
+
}
|
1003 |
+
|
1004 |
+
.acf-field .select2-container.-acf .select2-selection--single button.select2-selection__clear span {
|
1005 |
+
line-height: 26px;
|
1006 |
+
height: 28px;
|
1007 |
+
display: inline-block
|
1008 |
+
}
|
1009 |
+
|
1010 |
+
.acf-field .select2-container.-acf .select2-selection--single .select2-selection__placeholder {
|
1011 |
+
color: #444
|
1012 |
+
}
|
1013 |
+
|
1014 |
+
.acf-field .select2-container.-acf .select2-selection--single .select2-selection__arrow {
|
1015 |
+
height: 28px
|
1016 |
+
}
|
1017 |
+
|
1018 |
+
.acf-field .select2-container.-acf .select2-selection--single .select2-selection__arrow b {
|
1019 |
+
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;
|
1020 |
+
background-size: 16px 16px;
|
1021 |
+
border: 0;
|
1022 |
+
width: 16px;
|
1023 |
+
height: 16px;
|
1024 |
+
margin-left: -11px;
|
1025 |
+
margin-top: -7px
|
1026 |
+
}
|
1027 |
+
|
1028 |
+
.acf-field .select2-container.-acf.select2-container--open .select2-selection--single,
|
1029 |
+
.acf-field .select2-container.-acf:focus .select2-selection--single {
|
1030 |
+
border-color: #007cba;
|
1031 |
+
color: #016087;
|
1032 |
+
-webkit-box-shadow: 0 0 0 1px #007cba;
|
1033 |
+
box-shadow: 0 0 0 1px #007cba
|
1034 |
+
}
|
1035 |
+
|
1036 |
+
.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field {
|
1037 |
+
min-height: 30px;
|
1038 |
+
border: 0;
|
1039 |
+
-webkit-box-shadow: none;
|
1040 |
+
box-shadow: none;
|
1041 |
+
padding: 0 2px
|
1042 |
+
}
|
1043 |
+
|
1044 |
+
.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-webkit-input-placeholder {
|
1045 |
+
color: #777
|
1046 |
+
}
|
1047 |
+
|
1048 |
+
.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-moz-placeholder {
|
1049 |
+
color: #777
|
1050 |
+
}
|
1051 |
+
|
1052 |
+
.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field:-ms-input-placeholder {
|
1053 |
+
color: #777
|
1054 |
+
}
|
1055 |
+
|
1056 |
+
.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-ms-input-placeholder {
|
1057 |
+
color: #777
|
1058 |
+
}
|
1059 |
+
|
1060 |
+
.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::placeholder {
|
1061 |
+
color: #777
|
1062 |
+
}
|
1063 |
+
|
1064 |
+
.select2-container .select2-dropdown .select2-results__option {
|
1065 |
+
margin-bottom: 0
|
1066 |
+
}
|
1067 |
+
|
1068 |
+
.acf-field .select2-container.-acf .select2-selection--multiple {
|
1069 |
+
min-height: 30px;
|
1070 |
+
line-height: 1;
|
1071 |
+
border-radius: 3px;
|
1072 |
+
padding: 0
|
1073 |
+
}
|
1074 |
+
|
1075 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__rendered {
|
1076 |
+
padding: 0 2px;
|
1077 |
+
display: inline-block;
|
1078 |
+
margin: 0
|
1079 |
+
}
|
1080 |
+
|
1081 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice {
|
1082 |
+
margin-right: 2px;
|
1083 |
+
margin-top: 2px;
|
1084 |
+
line-height: 1.6;
|
1085 |
+
border-radius: 3px;
|
1086 |
+
font-size: 14px;
|
1087 |
+
margin-left: 0;
|
1088 |
+
display: inline-block;
|
1089 |
+
vertical-align: unset;
|
1090 |
+
padding: 0 5px
|
1091 |
+
}
|
1092 |
+
|
1093 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice .select2-selection__choice__display {
|
1094 |
+
padding: 0
|
1095 |
+
}
|
1096 |
+
|
1097 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
|
1098 |
+
float: right;
|
1099 |
+
margin-left: 3px;
|
1100 |
+
margin-right: 0;
|
1101 |
+
line-height: 23px;
|
1102 |
+
font-size: 15px;
|
1103 |
+
vertical-align: text-top;
|
1104 |
+
position: static;
|
1105 |
+
padding: 0;
|
1106 |
+
border: 0;
|
1107 |
+
margin-top: 0
|
1108 |
+
}
|
1109 |
+
|
1110 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove:hover {
|
1111 |
+
background: 0 0
|
1112 |
+
}
|
1113 |
+
|
1114 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__clear {
|
1115 |
+
margin-top: 0;
|
1116 |
+
margin-right: 6px;
|
1117 |
+
font-size: 16px;
|
1118 |
+
padding: 0;
|
1119 |
+
line-height: 26px;
|
1120 |
+
height: 27px;
|
1121 |
+
position: relative
|
1122 |
+
}
|
1123 |
+
|
1124 |
+
.acf-field .select2-container.-acf .select2-selection--multiple button.select2-selection__clear {
|
1125 |
+
float: right
|
1126 |
+
}
|
1127 |
+
|
1128 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline {
|
1129 |
+
float: left;
|
1130 |
+
width: auto
|
1131 |
+
}
|
1132 |
+
|
1133 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field {
|
1134 |
+
margin-top: 4px;
|
1135 |
+
font-size: 14px;
|
1136 |
+
padding-left: 2px;
|
1137 |
+
margin-left: 0
|
1138 |
+
}
|
1139 |
+
|
1140 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-webkit-input-placeholder {
|
1141 |
+
color: #444
|
1142 |
+
}
|
1143 |
+
|
1144 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-moz-placeholder {
|
1145 |
+
color: #444
|
1146 |
+
}
|
1147 |
+
|
1148 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field:-ms-input-placeholder {
|
1149 |
+
color: #444
|
1150 |
+
}
|
1151 |
+
|
1152 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-ms-input-placeholder {
|
1153 |
+
color: #444
|
1154 |
+
}
|
1155 |
+
|
1156 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
|
1157 |
+
color: #444
|
1158 |
+
}
|
1159 |
+
|
1160 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child:last-child .select2-search__field {
|
1161 |
+
padding-left: 6px
|
1162 |
+
}
|
1163 |
+
|
1164 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__rendered+.select2-search--inline {
|
1165 |
+
float: none;
|
1166 |
+
display: inline-block;
|
1167 |
+
vertical-align: top
|
1168 |
+
}
|
1169 |
+
|
1170 |
+
.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__rendered+.select2-search--inline .select2-search__field {
|
1171 |
+
height: 22px;
|
1172 |
+
line-height: 1.4;
|
1173 |
+
padding-left: 0;
|
1174 |
+
font-family: inherit;
|
1175 |
+
border-radius: 0;
|
1176 |
+
margin-top: 4px !important
|
1177 |
+
}
|
1178 |
+
|
1179 |
+
.acf-field .select2-container.-acf.select2-container--focus .select2-selection--multiple,
|
1180 |
+
.acf-field .select2-container.-acf.select2-container--open .select2-selection--multiple {
|
1181 |
+
border-color: #7e8993
|
1182 |
+
}
|
1183 |
+
|
1184 |
+
.select2-selection__choice>code,
|
1185 |
+
.select2-selection__rendered>code {
|
1186 |
+
font-size: 12px;
|
1187 |
+
padding: 3px;
|
1188 |
+
vertical-align: 1px;
|
1189 |
+
line-height: 12px
|
1190 |
+
}
|
1191 |
+
|
1192 |
+
.select2-results__option>code {
|
1193 |
+
font-size: 12px
|
1194 |
+
}
|
1195 |
+
|
1196 |
+
.acf-input-wrap .acf-is-prepended+.select2>.selection>.select2-selection {
|
1197 |
+
border-radius: 0 3px 3px 0 !important
|
1198 |
+
}
|
1199 |
+
|
1200 |
+
.acf-input-wrap .acf-is-appended+.select2>.selection>.select2-selection {
|
1201 |
+
border-radius: 3px 0 0 3px !important
|
1202 |
+
}
|
1203 |
+
|
1204 |
+
.acf-input-wrap .acf-is-prepended.acf-is-appended+.select2>.selection>.select2-selection {
|
1205 |
+
border-radius: 0 !important
|
1206 |
+
}
|
1207 |
+
|
1208 |
+
body:not(.acf-admin-5-3) .acf-field .select2-container .select2-selection {
|
1209 |
+
border-color: #dfdfdf !important;
|
1210 |
+
border-radius: 0 !important
|
1211 |
+
}
|
1212 |
+
|
1213 |
+
body:not(.acf-admin-5-3) .acf-field .select2-container .select2-selection__choice {
|
1214 |
+
border-color: #dfdfdf !important;
|
1215 |
+
border-radius: 0 !important
|
1216 |
+
}
|
1217 |
+
|
1218 |
+
body:not(.acf-admin-5-3) .acf-field .select2-container .select2-search--inline .select2-search__field {
|
1219 |
+
margin-top: 0 !important
|
1220 |
+
}
|
1221 |
+
|
1222 |
+
body:not(.acf-admin-5-3) .acf-field .select2-dropdown {
|
1223 |
+
border-color: #dfdfdf !important;
|
1224 |
+
border-radius: 0 !important
|
1225 |
}
|
assets/css/acfe-admin.min.css
CHANGED
@@ -1 +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: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}.widget.open{z-index:inherit!important}.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:initial}.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;border-top:1px solid #eee;padding:15px 0}.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: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-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-dpt-admin-config,.wrap .acfe-dt-admin-config{display:inline-block;padding-left:4px;padding-right:4px}.wrap .acfe-dop-admin-config:active,.wrap .acfe-dpt-admin-config:active,.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}body.post-type-acfe-dbt #minor-publishing-actions,body.post-type-acfe-dbt #misc-publishing-actions #visibility,body.post-type-acfe-dbt #misc-publishing-actions .edit-post-status,body.post-type-acfe-dbt #misc-publishing-actions .edit-timestamp,body.post-type-acfe-dop #minor-publishing-actions,body.post-type-acfe-dop #misc-publishing-actions #visibility,body.post-type-acfe-dop #misc-publishing-actions .edit-post-status,body.post-type-acfe-dop #misc-publishing-actions .edit-timestamp,body.post-type-acfe-dpt #minor-publishing-actions,body.post-type-acfe-dpt #misc-publishing-actions #visibility,body.post-type-acfe-dpt #misc-publishing-actions .edit-post-status,body.post-type-acfe-dpt #misc-publishing-actions .edit-timestamp,body.post-type-acfe-dt #minor-publishing-actions,body.post-type-acfe-dt #misc-publishing-actions #visibility,body.post-type-acfe-dt #misc-publishing-actions .edit-post-status,body.post-type-acfe-dt #misc-publishing-actions .edit-timestamp,body.post-type-acfe-form #minor-publishing-actions,body.post-type-acfe-form #misc-publishing-actions #visibility,body.post-type-acfe-form #misc-publishing-actions .edit-post-status,body.post-type-acfe-form #misc-publishing-actions .edit-timestamp,body.post-type-acfe-template #minor-publishing-actions,body.post-type-acfe-template #misc-publishing-actions #visibility,body.post-type-acfe-template #misc-publishing-actions .edit-post-status,body.post-type-acfe-template #misc-publishing-actions .edit-timestamp{display:none!important}body.post-type-acfe-dbt .acfe-misc-export,body.post-type-acfe-dop .acfe-misc-export,body.post-type-acfe-dpt .acfe-misc-export,body.post-type-acfe-dt .acfe-misc-export,body.post-type-acfe-form .acfe-misc-export,body.post-type-acfe-template .acfe-misc-export{padding-top:2px}body.post-type-acfe-dbt .acfe-misc-export span.dashicons,body.post-type-acfe-dop .acfe-misc-export span.dashicons,body.post-type-acfe-dpt .acfe-misc-export span.dashicons,body.post-type-acfe-dt .acfe-misc-export span.dashicons,body.post-type-acfe-form .acfe-misc-export span.dashicons,body.post-type-acfe-template .acfe-misc-export span.dashicons{font-size:18px;color:#82878c;line-height:1.2;width:18px;margin-right:4px}body.post-type-acfe-dbt.post-new-php .acfe-misc-export,body.post-type-acfe-dop.post-new-php .acfe-misc-export,body.post-type-acfe-dpt.post-new-php .acfe-misc-export,body.post-type-acfe-dt.post-new-php .acfe-misc-export,body.post-type-acfe-form.post-new-php .acfe-misc-export,body.post-type-acfe-template.post-new-php .acfe-misc-export{display:none}body.post-type-acfe-dbt .status-acf-disabled .column-title a,body.post-type-acfe-dbt .status-acf-disabled .column-title code,body.post-type-acfe-dop .status-acf-disabled .column-title a,body.post-type-acfe-dop .status-acf-disabled .column-title code,body.post-type-acfe-dpt .status-acf-disabled .column-title a,body.post-type-acfe-dpt .status-acf-disabled .column-title code,body.post-type-acfe-dt .status-acf-disabled .column-title a,body.post-type-acfe-dt .status-acf-disabled .column-title code,body.post-type-acfe-form .status-acf-disabled .column-title a,body.post-type-acfe-form .status-acf-disabled .column-title code,body.post-type-acfe-template .status-acf-disabled .column-title a,body.post-type-acfe-template .status-acf-disabled .column-title code{color:#555!important}body.post-type-acfe-dbt .status-acf-disabled .column-title strong,body.post-type-acfe-dop .status-acf-disabled .column-title strong,body.post-type-acfe-dpt .status-acf-disabled .column-title strong,body.post-type-acfe-dt .status-acf-disabled .column-title strong,body.post-type-acfe-form .status-acf-disabled .column-title strong,body.post-type-acfe-template .status-acf-disabled .column-title strong{color:#a0a5aa}body.post-type-acfe-dbt .column-acfe-posts,body.post-type-acfe-dbt .column-acfe-terms,body.post-type-acfe-dop .column-acfe-posts,body.post-type-acfe-dop .column-acfe-terms,body.post-type-acfe-dpt .column-acfe-posts,body.post-type-acfe-dpt .column-acfe-terms,body.post-type-acfe-dt .column-acfe-posts,body.post-type-acfe-dt .column-acfe-terms,body.post-type-acfe-form .column-acfe-posts,body.post-type-acfe-form .column-acfe-terms,body.post-type-acfe-template .column-acfe-posts,body.post-type-acfe-template .column-acfe-terms{width:120px}#acfe-author>.inside{margin:0!important;padding:0!important}#acfe-author>.inside>.acf-field{margin:0;padding:15px 12px}.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_dynamic_block_types_export ul,#acf-admin-tool-acfe_dynamic_forms_export ul,#acf-admin-tool-acfe_dynamic_options_pages_export ul,#acf-admin-tool-acfe_dynamic_post_types_export ul,#acf-admin-tool-acfe_dynamic_taxonomies_export ul{-webkit-column-width:200px;-moz-column-width:200px;column-width:200px}#acf-admin-tool-acfe_dynamic_block_types_export .acf-postbox-columns,#acf-admin-tool-acfe_dynamic_forms_export .acf-postbox-columns,#acf-admin-tool-acfe_dynamic_options_pages_export .acf-postbox-columns,#acf-admin-tool-acfe_dynamic_post_types_export .acf-postbox-columns,#acf-admin-tool-acfe_dynamic_taxonomies_export .acf-postbox-columns{margin-right:0}.acf-meta-box-wrap.-grid #acf-admin-tool-acfe-fg-local{display:none}#acfe-admin-settings .inside>.acf-field{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0}#acfe-admin-settings .inside>.acf-field>.acf-label{padding-top:15px;padding-bottom:15px;float:none}#acfe-admin-settings .inside>.acf-field>.acf-label label span.acf-js-tooltip{float:right;font-size:14px;color:#ccc}#acfe-admin-settings .inside>.acf-field>.acf-input{display:-webkit-box;display:-ms-flexbox;display:flex;float:none;padding:0}#acfe-admin-settings .inside>.acf-field>.acf-input>div{-webkit-box-flex:1;-ms-flex:1 1 50%;flex:1 1 50%;max-width:50%;padding:8px;min-width:0}#acfe-admin-settings .inside>.acf-field>.acf-input>div:nth-child(2){border-left:1px solid #eee}#acfe-admin-settings .inside>.acf-field>.acf-input .acfe-settings-text{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:inline-block}#acfe-admin-settings .inside>.acf-field>.acf-input .acfe-settings-text>code{font-size:12px}#acfe-admin-settings .inside>.acf-field>.acf-input .dashicons-saved{font-size:21px;display:inline}#acfe-admin-settings .inside>.acf-field>.acf-input .dashicons-no-alt{color:#ccc;font-size:21px;display:inline}#acfe-admin-settings .inside>.acf-field.acfe-settings-thead>.acf-input{padding:0;border-bottom:1px solid #eee}#acfe-admin-settings .inside>.acf-field.acfe-settings-thead+.acf-field{border-top:0}.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_action_docs]{padding:0!important;border:0!important;position:absolute!important;top:12px;right:11px;z-index:3}.acf-field[data-name=acfe_form_action_docs]::before{background:0 0!important;border:0!important}.acf-field[data-name=acfe_form_action_docs]>.acf-label{min-height:0!important}.acf-field[data-name=acfe_form_action_docs]>.acf-input{float:none!important;width:auto!important;padding:0!important}.acf-field[data-name=acfe_form_action_docs]+.acf-field,.acf-field[data-name=acfe_form_action_docs]+.acf-tab-wrap>.acf-tab-group{border-top:0}.acf-field[data-name=acfe_form_post_save_post_content_custom],.acf-field[data-name=acfe_form_post_save_post_excerpt_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!important;padding-top:0!important}.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}.misc-pub-acfe-object-category::before,.misc-pub-acfe-object-data::before,.misc-pub-acfe-object-id::before,.misc-pub-acfe-object-meta::before,.misc-pub-acfe-object-role::before,.misc-pub-acfe-object-single-meta::before,.misc-pub-acfe-object-type::before{font:19px/1 dashicons;speak:never;display:inline-block;margin-left:-1px;padding-right:3px;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#8c8f94;content:"\f173";margin-right:1px}.misc-pub-acfe-object-id::before{content:"\f464"}.misc-pub-acfe-object-type::before{content:"\f109"}.misc-pub-acfe-object-role::before{content:"\f338"}.misc-pub-acfe-object-category::before{content:"\f318"}.misc-pub-acfe-object-data::before{content:"\f206"}.misc-pub-acfe-object-meta::before{content:"\f17e"}.misc-pub-acfe-object-single-meta::before{content:"\f106"}.acfe-list-postboxes .postbox>.postbox-header>h2.hndle{cursor:initial}.acfe-list-postboxes .postbox>.postbox-header>.handle-actions>.acf-hndle-cog{width:2.2rem}.acfe-list-postboxes .postbox>.postbox-header>.handle-actions>button,.acfe-list-postboxes .postbox>.postbox-header>.handle-actions>span{display:none}.acfe-list-postboxes .postbox>.acf-fields>#acf-form-data+.acf-field{border-top:none;margin-top:0}.acfe-list-postboxes.-side{min-width:auto!important}#acfe-clean-meta>.inside{margin:0!important;padding:15px 12px!important}.postbox#acfe-acf-custom-fields>.inside,.postbox#acfe-wp-custom-fields>.inside{padding:0;margin:0}.postbox#acfe-acf-custom-fields>.inside .wp-list-table,.postbox#acfe-wp-custom-fields>.inside .wp-list-table{border:0}.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-name,.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-name{width:30%}.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-value,.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-value{width:auto}.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-field-type,.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-field-type{width:100px}.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-field-group,.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-field-group{width:120px}.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-autoload,.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-autoload{width:65px}.postbox#acfe-acf-custom-fields+.acfe_dev_bulk_actions,.postbox#acfe-wp-custom-fields+.acfe_dev_bulk_actions{padding-top:0;margin-top:-8px;margin-bottom:20px}.postbox#acfe-acf-custom-fields+.acfe_dev_bulk_actions:last-child,.postbox#acfe-wp-custom-fields+.acfe_dev_bulk_actions:last-child{margin-bottom:0}.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}.postbox#acfe-acf-custom-fields pre,.postbox#acfe-wp-custom-fields pre{max-height:200px;overflow:auto;white-space:pre}.postbox#acfe-acf-custom-fields pre.raw,.postbox#acfe-wp-custom-fields pre.raw{white-space:unset;margin-top:10px;max-width:100%}@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}.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,.postbox#acfe-wp-custom-fields tbody td:first-of-type{line-height:2.2}.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%}}.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}.acf-field>.acf-input>.acf-input-wrap{overflow:initial}.acf-field>.acf-input>.acf-input-append+.acf-input-wrap,.acf-field>.acf-input>.acf-input-prepend+.acf-input-wrap{overflow:hidden}.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;width:1.42rem}.postbox .handle-order-higher .order-higher-indicator::before,.postbox .handle-order-lower .order-lower-indicator::before{font-size:15px;top:.23rem}.postbox .handlediv{width:1.62rem}.postbox .handlediv .toggle-indicator::before{text-indent:-7px;top:.1rem}#poststuff .stuffbox>h3,#poststuff h2,#poststuff h3.hndle{line-height:1.48}.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}}body.is-dragging-metaboxes #acf_after_title-sortables{outline:#646970 dashed 3px;display:flow-root;min-height:60px;margin-bottom:3px!important}.acf-field .select2-container.-acf .select2-selection--single{border-radius:3px;height:30px;outline:0}.acf-field .select2-container.-acf .select2-selection--single .select2-selection__rendered{font-size:14px;height:28px;line-height:27px;padding-right:23px}.acf-field .select2-container.-acf .select2-selection--single .select2-selection__clear{line-height:26px;height:28px;font-size:16px;margin-right:0}.acf-field .select2-container.-acf .select2-selection--single button.select2-selection__clear{position:absolute;right:24px;padding:0}.acf-field .select2-container.-acf .select2-selection--single button.select2-selection__clear span{line-height:26px;height:28px;display:inline-block}.acf-field .select2-container.-acf .select2-selection--single .select2-selection__placeholder{color:#444}.acf-field .select2-container.-acf .select2-selection--single .select2-selection__arrow{height:28px}.acf-field .select2-container.-acf .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') 0 0/16px 16px no-repeat;border:0;width:16px;height:16px;margin-left:-11px;margin-top:-7px}.acf-field .select2-container.-acf.select2-container--open .select2-selection--single,.acf-field .select2-container.-acf:focus .select2-selection--single{border-color:#007cba;color:#016087;-webkit-box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px #007cba}.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field{min-height:30px;border:0;-webkit-box-shadow:none;box-shadow:none;padding:0 2px}.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-webkit-input-placeholder{color:#777}.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-moz-placeholder{color:#777}.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field:-ms-input-placeholder{color:#777}.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-ms-input-placeholder{color:#777}.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::placeholder{color:#777}.select2-container .select2-dropdown .select2-results__option{margin-bottom:0}.acf-field .select2-container.-acf .select2-selection--multiple{min-height:30px;line-height:1;border-radius:3px;padding:0}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__rendered{padding:0 2px;display:inline-block;margin:0}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice{margin-right:2px;margin-top:2px;line-height:1.6;border-radius:3px;font-size:14px;margin-left:0;display:inline-block;vertical-align:unset;padding:0 5px}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice .select2-selection__choice__display{padding:0}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove{float:right;margin-left:3px;margin-right:0;line-height:23px;font-size:15px;vertical-align:text-top;position:static;padding:0;border:0;margin-top:0}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove:hover{background:0 0}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__clear{margin-top:0;margin-right:6px;font-size:16px;padding:0;line-height:26px;height:27px;position:relative}.acf-field .select2-container.-acf .select2-selection--multiple button.select2-selection__clear{float:right}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline{float:left;width:auto}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field{margin-top:4px;font-size:14px;padding-left:2px;margin-left:0}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-webkit-input-placeholder{color:#444}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-moz-placeholder{color:#444}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field:-ms-input-placeholder{color:#444}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-ms-input-placeholder{color:#444}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder{color:#444}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child:last-child .select2-search__field{padding-left:6px}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__rendered+.select2-search--inline{float:none;display:inline-block;vertical-align:top}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__rendered+.select2-search--inline .select2-search__field{height:22px;line-height:1.4;padding-left:0;font-family:inherit;border-radius:0;margin-top:4px!important}.acf-field .select2-container.-acf.select2-container--focus .select2-selection--multiple,.acf-field .select2-container.-acf.select2-container--open .select2-selection--multiple{border-color:#7e8993}.select2-selection__choice>code,.select2-selection__rendered>code{font-size:12px;padding:3px;vertical-align:1px;line-height:12px}.select2-results__option>code{font-size:12px}.acf-input-wrap .acf-is-prepended+.select2>.selection>.select2-selection{border-radius:0 3px 3px 0!important}.acf-input-wrap .acf-is-appended+.select2>.selection>.select2-selection{border-radius:3px 0 0 3px!important}.acf-input-wrap .acf-is-prepended.acf-is-appended+.select2>.selection>.select2-selection{border-radius:0!important}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{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}body:not(.acf-admin-5-3) .acf-field .select2-dropdown{border-color:#dfdfdf!important;border-radius:0!important}
|
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}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{-webkit-user-select:all;-moz-user-select:all;user-select:all}code[contenteditable=true]{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.code-codemirror>.CodeMirror,.pre-codemirror>.CodeMirror{border:1px solid #ccc;height:auto;width:auto;background:#f9f9f9;padding:9px 6px}.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}.code-codemirror{display:inline;vertical-align:middle}.code-codemirror>.CodeMirror{display:inline-block;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-columns-2{margin-right:300px;clear:both}.acf-columns-2:after{display:block;clear:both;content:""}.acf-columns-2 .acf-column-1{float:left;width:100%}.acf-columns-2 .acf-column-2{float:right;margin-right:-300px;width:280px}html[dir=rtl] .acf-columns-2{margin-right:0;margin-left:300px}html[dir=rtl] .acf-columns-2 .acf-column-1{float:right}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}}.misc-pub-acfe-object-category::before,.misc-pub-acfe-object-data::before,.misc-pub-acfe-object-id::before,.misc-pub-acfe-object-meta::before,.misc-pub-acfe-object-role::before,.misc-pub-acfe-object-single-meta::before,.misc-pub-acfe-object-type::before{font:19px/1 dashicons;speak:never;display:inline-block;margin-left:-1px;padding-right:3px;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#8c8f94;content:"\f173";margin-right:1px}.misc-pub-acfe-object-id::before{content:"\f464"}.misc-pub-acfe-object-type::before{content:"\f109"}.misc-pub-acfe-object-role::before{content:"\f338"}.misc-pub-acfe-object-category::before{content:"\f318"}.misc-pub-acfe-object-data::before{content:"\f206"}.misc-pub-acfe-object-meta::before{content:"\f17e"}.misc-pub-acfe-object-single-meta::before{content:"\f106"}.acfe-list-postboxes .postbox>.postbox-header>h2.hndle{cursor:initial}.acfe-list-postboxes .postbox>.postbox-header>.handle-actions>.acf-hndle-cog{width:2.2rem}.acfe-list-postboxes .postbox>.postbox-header>.handle-actions>button,.acfe-list-postboxes .postbox>.postbox-header>.handle-actions>span{display:none}.acfe-list-postboxes .postbox>.acf-fields>#acf-form-data+.acf-field{border-top:none;margin-top:0}.acfe-list-postboxes.-side{min-width:auto!important}#acfe-clean-meta>.inside{margin:0!important;padding:15px 12px!important}.postbox#acfe-acf-custom-fields>.inside,.postbox#acfe-wp-custom-fields>.inside{padding:0;margin:0}.postbox#acfe-acf-custom-fields>.inside .wp-list-table,.postbox#acfe-wp-custom-fields>.inside .wp-list-table{border:0}.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-name,.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-name{width:30%}.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-value,.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-value{width:auto}.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-field-type,.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-field-type{width:100px}.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-field-group,.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-field-group{width:120px}.postbox#acfe-acf-custom-fields>.inside .wp-list-table .col-autoload,.postbox#acfe-wp-custom-fields>.inside .wp-list-table .col-autoload{width:65px}.postbox#acfe-acf-custom-fields+.acfe_dev_bulk_actions,.postbox#acfe-wp-custom-fields+.acfe_dev_bulk_actions{padding-top:0;margin-top:-8px;margin-bottom:20px}.postbox#acfe-acf-custom-fields+.acfe_dev_bulk_actions:last-child,.postbox#acfe-wp-custom-fields+.acfe_dev_bulk_actions:last-child{margin-bottom:0}.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}.postbox#acfe-acf-custom-fields pre,.postbox#acfe-wp-custom-fields pre{max-height:200px;overflow:auto;white-space:pre}.postbox#acfe-acf-custom-fields pre.raw,.postbox#acfe-wp-custom-fields pre.raw{white-space:unset;margin-top:10px;max-width:100%}@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}.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,.postbox#acfe-wp-custom-fields tbody td:first-of-type{line-height:2.2}.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%}}.acf-settings-wrap .acf-box{margin:16px 0}.acf-box .title{padding:8px 12px}.acf-box .title h3{line-height:1.48}#acfe-author>.inside{margin:0;padding:0}#acfe-author>.inside>.acf-field{margin:0;padding:15px 12px}.wp-list-table .column-acfe-load{width:70px}.wp-list-table .column-acfe-source{width:150px}.wp-list-table .column-acfe-autosync-json,.wp-list-table .column-acfe-autosync-php{width:90px;text-align:center!important}.wp-list-table .column-acfe-autosync-json .secondary,.wp-list-table .column-acfe-autosync-php .secondary{color:#ccc}.wp-list-table .column-acfe-autosync-json .dashicons-warning,.wp-list-table .column-acfe-autosync-php .dashicons-warning{font-size:15px;vertical-align:middle}.wp-list-table .column-acfe-autosync-json .dashicons-update,.wp-list-table .column-acfe-autosync-php .dashicons-update{font-size:18px}.wp-list-table .column-acfe-autosync-json .dashicons+.dashicons-warning,.wp-list-table .column-acfe-autosync-php .dashicons+.dashicons-warning{margin-left:-3px}.wp-list-table .column-acfe-autosync-json a:focus,.wp-list-table .column-acfe-autosync-php a:focus{-webkit-box-shadow:none;box-shadow:none}.acf-field[data-name=acfe_autosync] .dashicons-warning{color:#ccc;font-size:15px;height:15px;vertical-align:text-bottom}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-type=acfe_dynamic_render][data-key*="_doc"]{padding:0!important;border:0!important;position:absolute!important;top:12px;right:11px;z-index:3}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-type=acfe_dynamic_render][data-key*="_doc"]::before{background:0 0!important;border:0!important}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-type=acfe_dynamic_render][data-key*="_doc"]>.acf-label{min-height:0!important}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-type=acfe_dynamic_render][data-key*="_doc"]>.acf-input{float:none!important;width:auto!important;padding:0!important}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-type=acfe_dynamic_render][data-key*="_doc"]+.acf-field,.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-type=acfe_dynamic_render][data-key*="_doc"]+.acf-tab-wrap>.acf-tab-group{border-top:0}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields],.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields]{padding:0}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields]>.acf-label,.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields]>.acf-label{padding:15px 12px}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields]>.acf-input,.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields]>.acf-input{padding:0}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields] ul li label,.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields] ul li label{display:block;padding:8px 12px;border-bottom:1px solid #e1e1e1}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields] ul li:last-child label,.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields] ul li:last-child label{border-bottom:0}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=load_acf_fields] ul li input,.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_acf_fields] ul li input{margin-right:7px}.acfe-module.acfe-module-form.acfe-module-post .acf-field>.acf-input.acfe-display-related-message>:not(.related-message):not(.append-terms){display:none}.acfe-module.acfe-module-form.acfe-module-post .acf-field>.acf-input.acfe-display-related-message .related-message{font-size:14px}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_post_terms]>.acf-input{display:-webkit-box;display:-ms-flexbox;display:flex}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_post_terms]>.acf-input .select2.select2-container{-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0;width:83%!important}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_post_terms]>.acf-input .related-message{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_post_terms]>.acf-input .acf-input.append-terms{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;margin-top:3px;width:17%;padding-left:15px}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_post_terms]>.acf-input.acfe-display-related-message .acf-input.append-terms{margin-top:0}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=save_post_terms]>.acf-input.acfe-display-related-message .related-message{width:83%}.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=files]>.acf-input .acf-actions,.acfe-module.acfe-module-form.acfe-module-post .acf-field[data-name=files_static]>.acf-input .acf-actions{text-align:left}.acfe-module.acfe-module-form.acfe-module-post .select2-results__options .loading-results,.acfe-module.acfe-module-form.acfe-module-post .select2-results__options .select2-results__message{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}#acfe-admin-settings .inside>.acf-field{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0}#acfe-admin-settings .inside>.acf-field>.acf-label{padding-top:15px;padding-bottom:15px;float:none;display:block}#acfe-admin-settings .inside>.acf-field>.acf-input{display:-webkit-box;display:-ms-flexbox;display:flex;float:none;padding:0}#acfe-admin-settings .inside>.acf-field>.acf-input>div{-webkit-box-flex:1;-ms-flex:1 1 50%;flex:1 1 50%;max-width:50%;padding:8px;min-width:0}#acfe-admin-settings .inside>.acf-field>.acf-input>div:nth-child(2){border-left:1px solid #eee}#acfe-admin-settings .inside>.acf-field>.acf-input .acfe-settings-text{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:inline-block}#acfe-admin-settings .inside>.acf-field>.acf-input .acfe-settings-text>code{font-size:12px}#acfe-admin-settings .inside>.acf-field>.acf-input .dashicons-saved{font-size:21px;display:inline}#acfe-admin-settings .inside>.acf-field>.acf-input .dashicons-no-alt{color:#ccc;font-size:21px;display:inline}#acfe-admin-settings .inside>.acf-field.acfe-settings-thead>.acf-input{padding:0;border-bottom:1px solid #eee}#acfe-admin-settings .inside>.acf-field.acfe-settings-thead+.acf-field{border-top:0}.acfe-module.acfe-module-post #minor-publishing-actions,.acfe-module.acfe-module-post #misc-publishing-actions #visibility,.acfe-module.acfe-module-post #misc-publishing-actions .edit-post-status,.acfe-module.acfe-module-post #misc-publishing-actions .edit-timestamp{display:none!important}.acfe-module.acfe-module-post .acfe-misc-export{padding-top:2px}.acfe-module.acfe-module-post .acfe-misc-export span.dashicons{font-size:18px;color:#82878c;line-height:1.2;width:18px;margin-right:4px}.acfe-module.acfe-module-post.post-new-php .acfe-misc-export{display:none}.acfe-module.acfe-module-posts .status-acf-disabled .column-title a,.acfe-module.acfe-module-posts .status-acf-disabled .column-title code{color:#555!important}.acfe-module.acfe-module-posts .status-acf-disabled .column-title strong{color:#a0a5aa}.acfe-module.acfe-module-posts .column-acfe-autoload,.acfe-module.acfe-module-posts .column-acfe-position,.acfe-module.acfe-module-posts .column-acfe-posts,.acfe-module.acfe-module-posts .column-acfe-terms{width:120px}.acfe-module.acfe-module-posts .column-acfe-post-id{width:200px}ul.acfe-module-export-choices{-webkit-column-width:200px;-moz-column-width:200px;column-width:200px}.wrap .acfe-edit-module-button{display:inline-block;padding-left:4px;padding-right:4px}.wrap .acfe-edit-module-button:active{padding-left:4px;padding-right:4px}.wrap .acfe-edit-module-button span{font-size:16px;vertical-align:text-top;height:15px;width:19px;line-height:19px}.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: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.-border{border:1px solid #ccd0d4;background:#fff}.acfe-postbox-left>.inside:after{display:block;clear:both;content:""}.acfe-postbox-left>.inside>.acf-field{position:relative;margin:0;border-top:1px solid #eee;padding:15px 0}.acfe-postbox-left>.inside>.acf-field:first-child{border-top:none;margin-top: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}.acfe-postbox-left>.inside.-clear>.acf-field{border:none;padding:0;margin:15px 0}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%}}@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 .handlediv{width:1.62rem}.postbox .handlediv .toggle-indicator::before{text-indent:-7px;top:.1rem}.postbox .handle-order-higher,.postbox .handle-order-lower{vertical-align:bottom;width:1.42rem}.postbox .handle-order-higher .order-higher-indicator::before,.postbox .handle-order-higher .order-lower-indicator::before,.postbox .handle-order-lower .order-higher-indicator::before,.postbox .handle-order-lower .order-lower-indicator::before{font-size:15px;top:.23rem}#poststuff .stuffbox>h3,#poststuff h2,#poststuff h3.hndle{line-height:1.48}body.is-dragging-metaboxes #acf_after_title-sortables{outline:#646970 dashed 3px;display:flow-root;min-height:60px;margin-bottom:3px!important}.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>.postbox-header{border-top:0;border-bottom:1px solid #ddd}.edit-post-layout__metaboxes .edit-post-meta-boxes-area .postbox.closed>.postbox-header,.edit-post-layout__metaboxes .edit-post-meta-boxes-area .postbox>.inside{border-bottom:0}.widget.open{z-index:inherit!important}.menu-item-settings{position:initial}.acf-meta-box-wrap.-grid #acf-admin-tool-acfe-fg-local{display:none}.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{background:#f1f1f1}.acf-field>.acf-input>.acf-input-wrap{overflow:initial}.acf-field>.acf-input>.acf-input-append+.acf-input-wrap,.acf-field>.acf-input>.acf-input-prepend+.acf-input-wrap{overflow:hidden}.post-type-attachment #post-body-content #acf_after_title-sortables{margin:20px 0 0}body.post-type-acf-field-group #wpcontent{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.4em}.acf-field .select2-container.-acf .select2-selection--single{border-radius:3px;height:30px;outline:0}.acf-field .select2-container.-acf .select2-selection--single .select2-selection__rendered{font-size:14px;height:28px;line-height:27px;padding-right:23px}.acf-field .select2-container.-acf .select2-selection--single .select2-selection__clear{line-height:26px;height:28px;font-size:16px;margin-right:0}.acf-field .select2-container.-acf .select2-selection--single button.select2-selection__clear{position:absolute;right:24px;padding:0}.acf-field .select2-container.-acf .select2-selection--single button.select2-selection__clear span{line-height:26px;height:28px;display:inline-block}.acf-field .select2-container.-acf .select2-selection--single .select2-selection__placeholder{color:#444}.acf-field .select2-container.-acf .select2-selection--single .select2-selection__arrow{height:28px}.acf-field .select2-container.-acf .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') 0 0/16px 16px no-repeat;border:0;width:16px;height:16px;margin-left:-11px;margin-top:-7px}.acf-field .select2-container.-acf.select2-container--open .select2-selection--single,.acf-field .select2-container.-acf:focus .select2-selection--single{border-color:#007cba;color:#016087;-webkit-box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px #007cba}.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field{min-height:30px;border:0;-webkit-box-shadow:none;box-shadow:none;padding:0 2px}.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-webkit-input-placeholder{color:#777}.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-moz-placeholder{color:#777}.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field:-ms-input-placeholder{color:#777}.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-ms-input-placeholder{color:#777}.select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::placeholder{color:#777}.select2-container .select2-dropdown .select2-results__option{margin-bottom:0}.acf-field .select2-container.-acf .select2-selection--multiple{min-height:30px;line-height:1;border-radius:3px;padding:0}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__rendered{padding:0 2px;display:inline-block;margin:0}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice{margin-right:2px;margin-top:2px;line-height:1.6;border-radius:3px;font-size:14px;margin-left:0;display:inline-block;vertical-align:unset;padding:0 5px}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice .select2-selection__choice__display{padding:0}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove{float:right;margin-left:3px;margin-right:0;line-height:23px;font-size:15px;vertical-align:text-top;position:static;padding:0;border:0;margin-top:0}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove:hover{background:0 0}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__clear{margin-top:0;margin-right:6px;font-size:16px;padding:0;line-height:26px;height:27px;position:relative}.acf-field .select2-container.-acf .select2-selection--multiple button.select2-selection__clear{float:right}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline{float:left;width:auto}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field{margin-top:4px;font-size:14px;padding-left:2px;margin-left:0}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-webkit-input-placeholder{color:#444}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-moz-placeholder{color:#444}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field:-ms-input-placeholder{color:#444}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-ms-input-placeholder{color:#444}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder{color:#444}.acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child:last-child .select2-search__field{padding-left:6px}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__rendered+.select2-search--inline{float:none;display:inline-block;vertical-align:top}.acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__rendered+.select2-search--inline .select2-search__field{height:22px;line-height:1.4;padding-left:0;font-family:inherit;border-radius:0;margin-top:4px!important}.acf-field .select2-container.-acf.select2-container--focus .select2-selection--multiple,.acf-field .select2-container.-acf.select2-container--open .select2-selection--multiple{border-color:#7e8993}.select2-selection__choice>code,.select2-selection__rendered>code{font-size:12px;padding:3px;vertical-align:1px;line-height:12px}.select2-results__option>code{font-size:12px}.acf-input-wrap .acf-is-prepended+.select2>.selection>.select2-selection{border-radius:0 3px 3px 0!important}.acf-input-wrap .acf-is-appended+.select2>.selection>.select2-selection{border-radius:3px 0 0 3px!important}.acf-input-wrap .acf-is-prepended.acf-is-appended+.select2>.selection>.select2-selection{border-radius:0!important}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{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}body:not(.acf-admin-5-3) .acf-field .select2-dropdown{border-color:#dfdfdf!important;border-radius:0!important}
|
assets/css/acfe-field-group.css
CHANGED
@@ -1,408 +1,478 @@
|
|
1 |
-
.
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
.acf-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
.acf-field-
|
37 |
-
.acf-field-
|
38 |
-
.acf-field-
|
39 |
-
.acf-field-
|
40 |
-
.acf-
|
41 |
-
.acf-field-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
.acf-field-setting-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
.acf-field-setting-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
.acf-field-setting-
|
77 |
-
border: 0
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
}
|
116 |
-
|
117 |
-
.
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
.
|
152 |
-
.
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
.
|
157 |
-
|
158 |
-
}
|
159 |
-
|
160 |
-
.
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
padding:
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
}
|
172 |
-
|
173 |
-
.
|
174 |
-
|
175 |
-
}
|
176 |
-
|
177 |
-
.
|
178 |
-
.
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
.
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
.
|
196 |
-
|
197 |
-
|
198 |
-
}
|
199 |
-
|
200 |
-
.
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
.
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
.acf-
|
247 |
-
|
248 |
-
}
|
249 |
-
|
250 |
-
body.acf-admin-5-3 .acf-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
.
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
}
|
327 |
-
|
328 |
-
.
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
}
|
343 |
-
|
344 |
-
.
|
345 |
-
-
|
346 |
-
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
}
|
351 |
-
|
352 |
-
.
|
353 |
-
|
354 |
-
}
|
355 |
-
|
356 |
-
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
.acf-field-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
.acf-field-
|
378 |
-
|
379 |
-
}
|
380 |
-
|
381 |
-
.acf-field-
|
382 |
-
display:
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
width:
|
396 |
-
}
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
408 |
}
|
1 |
+
.acf-admin-6.edit-php .wp-list-table tbody td,
|
2 |
+
.acf-admin-6.edit-php .wp-list-table tbody th {
|
3 |
+
height: 57px
|
4 |
+
}
|
5 |
+
|
6 |
+
.acf-admin-6.edit-php .wp-list-table .column-acf-count {
|
7 |
+
width: 90px
|
8 |
+
}
|
9 |
+
|
10 |
+
.acf-admin-6.edit-php .wp-list-table .column-acfe-load {
|
11 |
+
width: 80px
|
12 |
+
}
|
13 |
+
|
14 |
+
.acf-admin-6.post-php .acf-fields .acf-field-tab {
|
15 |
+
display: none !important
|
16 |
+
}
|
17 |
+
|
18 |
+
.acf-admin-6.post-php #submitdiv .button {
|
19 |
+
height: 32px
|
20 |
+
}
|
21 |
+
|
22 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field .CodeMirror-wrap.cm-s-default {
|
23 |
+
width: 100%
|
24 |
+
}
|
25 |
+
|
26 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-add-actions .acf-input,
|
27 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-add-actions .acf-label,
|
28 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-async .acf-input,
|
29 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-async .acf-label,
|
30 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-grid .acf-input,
|
31 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-grid .acf-label,
|
32 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-grid-container .acf-input,
|
33 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-grid-container .acf-label,
|
34 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-layouts-state .acf-input,
|
35 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-layouts-state .acf-label,
|
36 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-modal .acf-input,
|
37 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-modal .acf-label,
|
38 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-modal-edit .acf-input,
|
39 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-modal-edit .acf-label,
|
40 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-remove-button .acf-input,
|
41 |
+
.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-remove-button .acf-label {
|
42 |
+
max-width: 930px
|
43 |
+
}
|
44 |
+
|
45 |
+
.acf-admin-6.post-php .acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child {
|
46 |
+
margin-bottom: 0
|
47 |
+
}
|
48 |
+
|
49 |
+
.acf-admin-6.post-php .acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child~.acf-field {
|
50 |
+
padding-right: 5px;
|
51 |
+
margin-bottom: 0
|
52 |
+
}
|
53 |
+
|
54 |
+
.acf-admin-6.post-php .acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child~.acf-field.acf-field-acfe-flexible-modal-col {
|
55 |
+
width: 25% !important
|
56 |
+
}
|
57 |
+
|
58 |
+
.acf-admin-6.post-php .acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child~.acf-field select {
|
59 |
+
min-width: 50px
|
60 |
+
}
|
61 |
+
|
62 |
+
.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting {
|
63 |
+
padding-left: 0;
|
64 |
+
padding-right: 0
|
65 |
+
}
|
66 |
+
|
67 |
+
.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting+li>ul {
|
68 |
+
padding-left: 0;
|
69 |
+
padding-right: 0
|
70 |
+
}
|
71 |
+
|
72 |
+
.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta select {
|
73 |
+
min-width: 50px
|
74 |
+
}
|
75 |
+
|
76 |
+
.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .select2-selection__rendered {
|
77 |
+
border-radius: 0 6px 6px 0
|
78 |
+
}
|
79 |
+
|
80 |
+
.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .select2-selection__rendered .select2-search input {
|
81 |
+
height: 38px;
|
82 |
+
margin-top: 0;
|
83 |
+
border-radius: 0 6px 6px 0
|
84 |
+
}
|
85 |
+
|
86 |
+
.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .select2-selection__rendered .select2-selection__clear {
|
87 |
+
margin-top: 12px;
|
88 |
+
margin-right: 0;
|
89 |
+
height: 15px
|
90 |
+
}
|
91 |
+
|
92 |
+
.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acfe-flexible-layout-location-rules {
|
93 |
+
padding-left: 0;
|
94 |
+
padding-right: 0
|
95 |
+
}
|
96 |
+
|
97 |
+
.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_category],
|
98 |
+
.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label] {
|
99 |
+
padding-left: 0;
|
100 |
+
padding-right: 0
|
101 |
+
}
|
102 |
+
|
103 |
+
.acf-admin-6.post-php .acf-fields.-left>.acf-field>.acf-label {
|
104 |
+
display: block
|
105 |
+
}
|
106 |
+
|
107 |
+
.acf-admin-6.post-php .acf-field-setting-acfe_field_group_condition {
|
108 |
+
padding-right: 72px;
|
109 |
+
padding-left: 72px;
|
110 |
+
margin-top: 32px
|
111 |
+
}
|
112 |
+
|
113 |
+
.submitbox .misc-pub-acfe-field-group-key {
|
114 |
+
padding-top: 2px
|
115 |
+
}
|
116 |
+
|
117 |
+
.submitbox .misc-pub-acfe-field-group-key span {
|
118 |
+
font-size: 16px;
|
119 |
+
color: #82878c;
|
120 |
+
width: 20px;
|
121 |
+
margin-right: 2px
|
122 |
+
}
|
123 |
+
|
124 |
+
.submitbox .misc-pub-acfe-field-group-key code {
|
125 |
+
font-size: 12px
|
126 |
+
}
|
127 |
+
|
128 |
+
.submitbox .misc-pub-acfe-field-group-export {
|
129 |
+
padding-top: 2px
|
130 |
+
}
|
131 |
+
|
132 |
+
.submitbox .misc-pub-acfe-field-group-export span {
|
133 |
+
font-size: 17px;
|
134 |
+
color: #82878c;
|
135 |
+
line-height: 1.3;
|
136 |
+
width: 20px;
|
137 |
+
margin-right: 2px
|
138 |
+
}
|
139 |
+
|
140 |
+
.acf-fields .acf-field-tab {
|
141 |
+
display: block !important;
|
142 |
+
height: 0;
|
143 |
+
overflow: hidden;
|
144 |
+
padding: 0 !important;
|
145 |
+
border: 0 !important
|
146 |
+
}
|
147 |
+
|
148 |
+
.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields,
|
149 |
+
.acf-field-setting-acfe_hide>.acf-input>.acf-fields,
|
150 |
+
.acf-field-setting-acfe_permissions>.acf-input>.acf-fields,
|
151 |
+
.acf-field-setting-acfe_settings>.acf-input>.acf-fields,
|
152 |
+
.acf-field-setting-acfe_settings>.acf-input>.acf-fields>.acf-field.acf-field-acfe-settings-rules-or,
|
153 |
+
.acf-field-setting-acfe_update>.acf-input>.acf-fields,
|
154 |
+
.acf-field-setting-acfe_update>.acf-input>.acf-fields>.acf-field.acf-field-acfe-update-functions,
|
155 |
+
.acf-field-setting-acfe_validate>.acf-input>.acf-fields,
|
156 |
+
.acf-field-setting-acfe_validate>.acf-input>.acf-fields>.acf-field.acf-field-acfe-validate-rules-or {
|
157 |
+
border: 0
|
158 |
+
}
|
159 |
+
|
160 |
+
.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field,
|
161 |
+
.acf-field-setting-acfe_hide>.acf-input>.acf-fields>.acf-field,
|
162 |
+
.acf-field-setting-acfe_permissions>.acf-input>.acf-fields>.acf-field,
|
163 |
+
.acf-field-setting-acfe_settings>.acf-input>.acf-fields>.acf-field,
|
164 |
+
.acf-field-setting-acfe_update>.acf-input>.acf-fields>.acf-field,
|
165 |
+
.acf-field-setting-acfe_validate>.acf-input>.acf-fields>.acf-field {
|
166 |
+
padding: 0
|
167 |
+
}
|
168 |
+
|
169 |
+
.acf-field-setting-acfe_field_data {
|
170 |
+
display: none
|
171 |
+
}
|
172 |
+
|
173 |
+
.acf-field-hide-front.acfe_width_auto {
|
174 |
+
margin-right: 30px
|
175 |
+
}
|
176 |
+
|
177 |
+
.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field.acf-field-acfe-bidirectional-enabled>.acf-label,
|
178 |
+
.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field.acf-field-acfe-bidirectional-related>.acf-label,
|
179 |
+
.acf-field-setting-acfe_settings>.acf-input>.acf-fields>.acf-field.acf-field-acfe-settings-activate>.acf-label,
|
180 |
+
.acf-field-setting-acfe_update>.acf-input>.acf-fields>.acf-field.acf-field-acfe-update-activate>.acf-label,
|
181 |
+
.acf-field-setting-acfe_validate>.acf-input>.acf-fields>.acf-field.acf-field-acfe-validate-activate>.acf-label {
|
182 |
+
display: none
|
183 |
+
}
|
184 |
+
|
185 |
+
.acf-field-acfe-meta>.acf-input .acf-repeater.-empty.-table>table,
|
186 |
+
.acf-field-setting-acfe_settings>.acf-input .acf-repeater.-empty.-table>table,
|
187 |
+
.acf-field-setting-acfe_update>.acf-input .acf-repeater.-empty.-table>table,
|
188 |
+
.acf-field-setting-acfe_validate>.acf-input .acf-repeater.-empty.-table>table {
|
189 |
+
border: 0;
|
190 |
+
display: none
|
191 |
+
}
|
192 |
+
|
193 |
+
.acf-field-acfe-meta>.acf-input .acf-repeater.-empty.-table>table>thead,
|
194 |
+
.acf-field-setting-acfe_settings>.acf-input .acf-repeater.-empty.-table>table>thead,
|
195 |
+
.acf-field-setting-acfe_update>.acf-input .acf-repeater.-empty.-table>table>thead,
|
196 |
+
.acf-field-setting-acfe_validate>.acf-input .acf-repeater.-empty.-table>table>thead {
|
197 |
+
display: none
|
198 |
+
}
|
199 |
+
|
200 |
+
.acf-field-acfe-meta>.acf-input>.acf-repeater .acf-actions,
|
201 |
+
.acf-field-setting-acfe_settings>.acf-input>.acf-repeater .acf-actions,
|
202 |
+
.acf-field-setting-acfe_update>.acf-input>.acf-repeater .acf-actions,
|
203 |
+
.acf-field-setting-acfe_validate>.acf-input>.acf-repeater .acf-actions {
|
204 |
+
text-align: left
|
205 |
+
}
|
206 |
+
|
207 |
+
.acf-repeater.-block>table,
|
208 |
+
.acf-repeater.-row>table {
|
209 |
+
border-collapse: separate;
|
210 |
+
border-spacing: 0 15px;
|
211 |
+
background: 0 0;
|
212 |
+
border: 0;
|
213 |
+
margin-top: -15px;
|
214 |
+
margin-bottom: -7px
|
215 |
+
}
|
216 |
+
|
217 |
+
.acf-repeater.-block>table>*,
|
218 |
+
.acf-repeater.-row>table>* {
|
219 |
+
border-collapse: collapse;
|
220 |
+
border-spacing: 0
|
221 |
+
}
|
222 |
+
|
223 |
+
.acf-repeater.-block>table>tbody>tr>td,
|
224 |
+
.acf-repeater.-row>table>tbody>tr>td {
|
225 |
+
border-top: 1px solid #ccd0d4 !important;
|
226 |
+
border-bottom: 1px solid #ccd0d4 !important
|
227 |
+
}
|
228 |
+
|
229 |
+
.acf-repeater.-block>table>tbody>tr>td:first-of-type,
|
230 |
+
.acf-repeater.-row>table>tbody>tr>td:first-of-type {
|
231 |
+
border-left: 1px solid #ccd0d4 !important
|
232 |
+
}
|
233 |
+
|
234 |
+
.acf-repeater.-block>table>tbody>tr>td:last-of-type,
|
235 |
+
.acf-repeater.-row>table>tbody>tr>td:last-of-type {
|
236 |
+
border-right: 1px solid #ccd0d4 !important
|
237 |
+
}
|
238 |
+
|
239 |
+
body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td,
|
240 |
+
body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td {
|
241 |
+
border-top: 1px solid #e1e1e1;
|
242 |
+
border-bottom: 1px solid #e1e1e1
|
243 |
+
}
|
244 |
+
|
245 |
+
body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td:first-of-type,
|
246 |
+
body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td:first-of-type {
|
247 |
+
border-left: 1px solid #e1e1e1
|
248 |
+
}
|
249 |
+
|
250 |
+
body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td:last-of-type,
|
251 |
+
body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td:last-of-type {
|
252 |
+
border-right: 1px solid #e1e1e1
|
253 |
+
}
|
254 |
+
|
255 |
+
.acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field.acf-field-acfe-bidirectional-related {
|
256 |
+
margin-left: 10px
|
257 |
+
}
|
258 |
+
|
259 |
+
.acfe_width_auto {
|
260 |
+
width: auto !important
|
261 |
+
}
|
262 |
+
|
263 |
+
.status-acf-disabled .column-title a,
|
264 |
+
.status-acf-disabled .column-title code {
|
265 |
+
color: #555 !important
|
266 |
+
}
|
267 |
+
|
268 |
+
.status-acf-disabled .column-title strong {
|
269 |
+
color: #a0a5aa
|
270 |
+
}
|
271 |
+
|
272 |
+
.column-acf-field-group-category {
|
273 |
+
width: 125px
|
274 |
+
}
|
275 |
+
|
276 |
+
td.acf-field-group-category a {
|
277 |
+
word-wrap: break-word;
|
278 |
+
padding: 2px 5px;
|
279 |
+
margin: 0 1px;
|
280 |
+
border-radius: 2px;
|
281 |
+
background: rgba(0, 0, 0, .06);
|
282 |
+
color: #23282d
|
283 |
+
}
|
284 |
+
|
285 |
+
.column-acfe-location {
|
286 |
+
width: 100px
|
287 |
+
}
|
288 |
+
|
289 |
+
.column-acf-description,
|
290 |
+
.column-acf-location {
|
291 |
+
width: 230px
|
292 |
+
}
|
293 |
+
|
294 |
+
#acf-field-group-wrap .wp-list-table .column-acf-fg-status {
|
295 |
+
width: 70px
|
296 |
+
}
|
297 |
+
|
298 |
+
#acf-field-group-wrap .wp-list-table .column-acf-fg-count,
|
299 |
+
.post-type-acf-field-group .wp-list-table .column-acf-count {
|
300 |
+
width: 80px
|
301 |
+
}
|
302 |
+
|
303 |
+
.post-type-acf-field-group .wp-list-table .column-title .post-state {
|
304 |
+
color: #a0a5aa
|
305 |
+
}
|
306 |
+
|
307 |
+
.column-title .acfe-key {
|
308 |
+
color: #555;
|
309 |
+
font-size: 12px
|
310 |
+
}
|
311 |
+
|
312 |
+
.acf-field-image[data-name=acfe_flexible_thumbnail]>.acf-input>.acf-image-uploader.has-value>.show-if-value.image-wrap {
|
313 |
+
max-width: 85px !important
|
314 |
+
}
|
315 |
+
|
316 |
+
.acf-diff-content table.diff tbody tr td:nth-child(2) {
|
317 |
+
width: auto
|
318 |
+
}
|
319 |
+
|
320 |
+
body.acf-admin-5-3 .acf-field-setting-fc_layout .acf-input-wrap.select {
|
321 |
+
border-color: #7e8993
|
322 |
+
}
|
323 |
+
|
324 |
+
body.acf-admin-5-3 .acf-field-setting-fc_layout .acf-input-wrap.select select {
|
325 |
+
min-height: 28px
|
326 |
+
}
|
327 |
+
|
328 |
+
.acfe-field-setting-flex>.acf-input>.acf-fields {
|
329 |
+
display: -webkit-box;
|
330 |
+
display: -ms-flexbox;
|
331 |
+
display: flex;
|
332 |
+
border: 0
|
333 |
+
}
|
334 |
+
|
335 |
+
.acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child {
|
336 |
+
padding: 0;
|
337 |
+
margin-right: 10px
|
338 |
+
}
|
339 |
+
|
340 |
+
.acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child .acf-label {
|
341 |
+
display: none
|
342 |
+
}
|
343 |
+
|
344 |
+
.acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child~.acf-field {
|
345 |
+
padding-top: 0;
|
346 |
+
padding-bottom: 0;
|
347 |
+
padding-left: 0;
|
348 |
+
border-top: 0;
|
349 |
+
border-left: 0 !important
|
350 |
+
}
|
351 |
+
|
352 |
+
.acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child~.acf-field[data-type=true_false] {
|
353 |
+
padding-top: 2px
|
354 |
+
}
|
355 |
+
|
356 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_category],
|
357 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label],
|
358 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_thumbnail] {
|
359 |
+
margin: 0
|
360 |
+
}
|
361 |
+
|
362 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta>.acf-fc-meta-label:first-of-type {
|
363 |
+
margin: 0
|
364 |
+
}
|
365 |
+
|
366 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting {
|
367 |
+
margin: 0;
|
368 |
+
margin-top: 15px
|
369 |
+
}
|
370 |
+
|
371 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting>.acf-input,
|
372 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting>.acf-label {
|
373 |
+
margin: 0
|
374 |
+
}
|
375 |
+
|
376 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting>.acf-input label,
|
377 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting>.acf-label label {
|
378 |
+
margin: 0
|
379 |
+
}
|
380 |
+
|
381 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting+li {
|
382 |
+
display: -webkit-box;
|
383 |
+
display: -ms-flexbox;
|
384 |
+
display: flex;
|
385 |
+
-webkit-box-orient: horizontal;
|
386 |
+
-webkit-box-direction: normal;
|
387 |
+
-ms-flex-direction: row;
|
388 |
+
flex-direction: row;
|
389 |
+
margin-bottom: 0;
|
390 |
+
margin-top: 10px
|
391 |
+
}
|
392 |
+
|
393 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting+li>ul {
|
394 |
+
margin: 0;
|
395 |
+
width: 50%
|
396 |
+
}
|
397 |
+
|
398 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting+li>ul:first-child+ul {
|
399 |
+
border-left: 0;
|
400 |
+
margin-left: 10px
|
401 |
+
}
|
402 |
+
|
403 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting+li>ul>.acf-input {
|
404 |
+
margin-bottom: 0
|
405 |
+
}
|
406 |
+
|
407 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting.acfe-flexible-field-setting-row+li {
|
408 |
+
-webkit-box-orient: vertical;
|
409 |
+
-webkit-box-direction: normal;
|
410 |
+
-ms-flex-direction: column;
|
411 |
+
flex-direction: column
|
412 |
+
}
|
413 |
+
|
414 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting.acfe-flexible-field-setting-row+li>ul {
|
415 |
+
-webkit-box-flex: 1;
|
416 |
+
-ms-flex: 1;
|
417 |
+
flex: 1;
|
418 |
+
margin: 10px 0 0 0;
|
419 |
+
width: 100%
|
420 |
+
}
|
421 |
+
|
422 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting.acfe-flexible-field-setting-row+li>ul:first-child {
|
423 |
+
margin-top: 0
|
424 |
+
}
|
425 |
+
|
426 |
+
.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting.acfe-flexible-field-setting-row+li>ul:first-child+ul {
|
427 |
+
margin-left: 0
|
428 |
+
}
|
429 |
+
|
430 |
+
.acf-field-setting-fc_layout .select2-container--default .select2-selection--multiple li {
|
431 |
+
margin-bottom: 0
|
432 |
+
}
|
433 |
+
|
434 |
+
.acf-field-object-acfe-column .acf-field-setting-instructions,
|
435 |
+
.acf-field-object-acfe-column .acf-field-setting-label,
|
436 |
+
.acf-field-object-acfe-column .acf-field-setting-name,
|
437 |
+
.acf-field-object-acfe-column .acf-field-setting-required,
|
438 |
+
.acf-field-object-acfe-column .acf-field-setting-warning,
|
439 |
+
.acf-field-object-acfe-column .acf-field-setting-wrapper {
|
440 |
+
display: none
|
441 |
+
}
|
442 |
+
|
443 |
+
.acf-field-object-acfe-column .li-field-name {
|
444 |
+
visibility: hidden
|
445 |
+
}
|
446 |
+
|
447 |
+
.acf-field-object-acfe-column.open>.handle a span {
|
448 |
+
color: #fff
|
449 |
+
}
|
450 |
+
|
451 |
+
.acf-field-object+.acf-field-object-acfe-column:before {
|
452 |
+
display: block;
|
453 |
+
content: "";
|
454 |
+
height: 5px;
|
455 |
+
width: 100%;
|
456 |
+
background: #f9f9f9;
|
457 |
+
border-bottom: #f0f0f0 solid 1px
|
458 |
+
}
|
459 |
+
|
460 |
+
.acf-field-setting-allow_terms>.acf-input>ul>li:first-of-type {
|
461 |
+
width: calc(100% - 125px)
|
462 |
+
}
|
463 |
+
|
464 |
+
.acf-field-setting-allow_terms>.acf-input>ul>li:last-of-type {
|
465 |
+
width: 125px
|
466 |
+
}
|
467 |
+
|
468 |
+
#acf-field-group-locations .rule-groups>.rule-group>table>tbody>tr>td.value>.acf-field {
|
469 |
+
margin: 0
|
470 |
+
}
|
471 |
+
|
472 |
+
.acf-hl[data-cols="5"]>li {
|
473 |
+
width: 20%
|
474 |
+
}
|
475 |
+
|
476 |
+
.acf-hl[data-cols="6"]>li {
|
477 |
+
width: 16.667%
|
478 |
}
|
assets/css/acfe-field-group.min.css
CHANGED
@@ -1 +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: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}.acfe-field-setting-flex>.acf-input>.acf-fields{display:-webkit-box;display:-ms-flexbox;display:flex;border:0}.acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child{padding:0;margin-right:10px}.acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child .acf-label{display:none}.acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child~.acf-field{padding-top:0;padding-bottom:0;padding-left:0;border-top:0;border-left:0!important}.acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child~.acf-field[data-type=true_false]{padding-top:2px}.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_label],.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_thumbnail],.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta>.acf-fc-meta-label:first-of-type{margin:0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting{margin:15px 0 0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting>.acf-input,.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting>.acf-input label,.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting>.acf-label,.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting>.acf-label label{margin:0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting+li{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-bottom:0;margin-top:10px}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting+li>ul{margin:0;width:50%}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting+li>ul:first-child+ul{border-left:0;margin-left:10px}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting+li>ul>.acf-input{margin-bottom:0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting.acfe-flexible-field-setting-row+li{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting.acfe-flexible-field-setting-row+li>ul{-webkit-box-flex:1;-ms-flex:1;flex:1;margin:10px 0 0;width:100%}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting.acfe-flexible-field-setting-row+li>ul:first-child{margin-top:0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting.acfe-flexible-field-setting-row+li>ul:first-child+ul{margin-left: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-acfe-column .li-field-name{visibility:hidden}.acf-field-object-acfe-column.open>.handle a span{color:#fff}.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-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%}
|
1 |
+
.acf-admin-6.edit-php .wp-list-table tbody td,.acf-admin-6.edit-php .wp-list-table tbody th{height:57px}.acf-admin-6.edit-php .wp-list-table .column-acf-count{width:90px}.acf-admin-6.edit-php .wp-list-table .column-acfe-load{width:80px}.acf-admin-6.post-php .acf-fields .acf-field-tab{display:none!important}.acf-admin-6.post-php #submitdiv .button{height:32px}.acf-admin-6.post-php .acf-field-settings .acf-field .CodeMirror-wrap.cm-s-default{width:100%}.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-add-actions .acf-input,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-add-actions .acf-label,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-async .acf-input,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-async .acf-label,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-grid .acf-input,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-grid .acf-label,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-grid-container .acf-input,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-grid-container .acf-label,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-layouts-state .acf-input,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-layouts-state .acf-label,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-modal .acf-input,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-modal .acf-label,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-modal-edit .acf-input,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-modal-edit .acf-label,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-remove-button .acf-input,.acf-admin-6.post-php .acf-field-settings .acf-field.acf-field-acfe-flexible-remove-button .acf-label{max-width:930px}.acf-admin-6.post-php .acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child{margin-bottom:0}.acf-admin-6.post-php .acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child~.acf-field{padding-right:5px;margin-bottom:0}.acf-admin-6.post-php .acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child~.acf-field.acf-field-acfe-flexible-modal-col{width:25%!important}.acf-admin-6.post-php .acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child~.acf-field select{min-width:50px}.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting,.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting+li>ul{padding-left:0;padding-right:0}.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta select{min-width:50px}.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .select2-selection__rendered{border-radius:0 6px 6px 0}.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .select2-selection__rendered .select2-search input{height:38px;margin-top:0;border-radius:0 6px 6px 0}.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .select2-selection__rendered .select2-selection__clear{margin-top:12px;margin-right:0;height:15px}.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_category],.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label],.acf-admin-6.post-php .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acfe-flexible-layout-location-rules{padding-left:0;padding-right:0}.acf-admin-6.post-php .acf-fields.-left>.acf-field>.acf-label{display:block}.acf-admin-6.post-php .acf-field-setting-acfe_field_group_condition{padding-right:72px;padding-left:72px;margin-top:32px}.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: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}.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}.acfe-field-setting-flex>.acf-input>.acf-fields{display:-webkit-box;display:-ms-flexbox;display:flex;border:0}.acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child{padding:0;margin-right:10px}.acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child .acf-label{display:none}.acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child~.acf-field{padding-top:0;padding-bottom:0;padding-left:0;border-top:0;border-left:0!important}.acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field:first-child~.acf-field[data-type=true_false]{padding-top:2px}.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_label],.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_thumbnail],.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta>.acf-fc-meta-label:first-of-type{margin:0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting{margin:15px 0 0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting>.acf-input,.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting>.acf-input label,.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting>.acf-label,.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting>.acf-label label{margin:0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting+li{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-bottom:0;margin-top:10px}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting+li>ul{margin:0;width:50%}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting+li>ul:first-child+ul{border-left:0;margin-left:10px}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting+li>ul>.acf-input{margin-bottom:0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting.acfe-flexible-field-setting-row+li{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting.acfe-flexible-field-setting-row+li>ul{-webkit-box-flex:1;-ms-flex:1;flex:1;margin:10px 0 0;width:100%}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting.acfe-flexible-field-setting-row+li>ul:first-child{margin-top:0}.acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting.acfe-flexible-field-setting-row+li>ul:first-child+ul{margin-left: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-acfe-column .li-field-name{visibility:hidden}.acf-field-object-acfe-column.open>.handle a span{color:#fff}.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-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%}
|
assets/css/acfe-input.css
CHANGED
@@ -1,1299 +1,1364 @@
|
|
1 |
-
.acf-field .acf-label label {
|
2 |
-
font-weight: 600
|
3 |
-
}
|
4 |
-
|
5 |
-
.acf-field p.description {
|
6 |
-
word-break: break-word
|
7 |
-
}
|
8 |
-
|
9 |
-
.acf-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
}
|
32 |
-
|
33 |
-
.
|
34 |
-
z-index:
|
35 |
-
}
|
36 |
-
|
37 |
-
.acf-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
}
|
45 |
-
|
46 |
-
.acf-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
.acf-
|
55 |
-
|
56 |
-
}
|
57 |
-
|
58 |
-
.acf-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
}
|
66 |
-
|
67 |
-
.acf-fields>.acf-field-clone.acfe-field-clone-layout-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
.acf-
|
107 |
-
.acf-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
.acf-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
tr.acf-field.acf-field-clone
|
145 |
-
border
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
}
|
151 |
-
|
152 |
-
.acf-field-acfe-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
}
|
177 |
-
|
178 |
-
|
179 |
-
border-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
}
|
203 |
-
|
204 |
-
|
205 |
-
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
.
|
218 |
-
|
219 |
-
}
|
220 |
-
|
221 |
-
.acf-
|
222 |
-
|
223 |
-
}
|
224 |
-
|
225 |
-
.
|
226 |
-
|
227 |
-
}
|
228 |
-
|
229 |
-
.acf-fields.acfe-column-wrapper
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
.
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
.
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
.
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
.
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
.
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
}
|
303 |
-
|
304 |
-
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column
|
305 |
-
|
306 |
-
}
|
307 |
-
|
308 |
-
.acf-fields.acfe-column-wrapper
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
.acf-fields.acfe-column-wrapper>.acfe-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
.acf-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
.acf-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
}
|
386 |
-
|
387 |
-
.acf-ui-datepicker
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
height:
|
392 |
-
|
393 |
-
border:
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
background:
|
402 |
-
|
403 |
-
}
|
404 |
-
|
405 |
-
.acf-ui-datepicker .ui-datepicker
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
.acf-ui-datepicker .ui-datepicker
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
}
|
449 |
-
|
450 |
-
.acf-ui-datepicker .ui-datepicker .ui-datepicker-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
background:
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
font-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
}
|
496 |
-
|
497 |
-
.acf-ui-datepicker .ui-datepicker
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
.acf-ui-datepicker .ui-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
.acf-ui-datepicker .ui-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
}
|
590 |
-
|
591 |
-
.acf-ui-datepicker .ui-
|
592 |
-
background: #
|
593 |
-
|
594 |
-
color: #
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
}
|
612 |
-
|
613 |
-
.acf-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
background: #
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
.
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
.
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
.
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
background:
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
}
|
734 |
-
|
735 |
-
.
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
.
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
}
|
754 |
-
|
755 |
-
.acf-
|
756 |
-
color: #444
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
background: #
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
}
|
777 |
-
|
778 |
-
.
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
border-
|
793 |
-
color: #
|
794 |
-
border
|
795 |
-
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
}
|
859 |
-
|
860 |
-
.
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
-
|
880 |
-
-
|
881 |
-
|
882 |
-
}
|
883 |
-
|
884 |
-
.layout>.acfe-fc-placeholder
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
background
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
}
|
1002 |
-
|
1003 |
-
.
|
1004 |
-
|
1005 |
-
}
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
.
|
1012 |
-
|
1013 |
-
}
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
}
|
1021 |
-
|
1022 |
-
|
1023 |
-
.
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
margin-
|
1069 |
-
margin-
|
1070 |
-
margin-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
.acf-fields
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
.acf-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
|
1093 |
-
.acf-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
margin
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
}
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
.acf-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
-
.acf-field-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
.acf-field-
|
1147 |
-
|
1148 |
-
}
|
1149 |
-
|
1150 |
-
.acf-
|
1151 |
-
.acf-
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
}
|
1171 |
-
|
1172 |
-
.acf-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
.acf-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
}
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
.acf-
|
1203 |
-
|
1204 |
-
border:
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
.acf-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
.acf-
|
1219 |
-
|
1220 |
-
|
1221 |
-
}
|
1222 |
-
|
1223 |
-
.acf-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
}
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
}
|
1252 |
-
|
1253 |
-
.acf-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
}
|
1274 |
-
|
1275 |
-
.acf-field
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1299 |
}
|
1 |
+
.acf-field .acf-label label {
|
2 |
+
font-weight: 600
|
3 |
+
}
|
4 |
+
|
5 |
+
.acf-field p.description {
|
6 |
+
word-break: break-word
|
7 |
+
}
|
8 |
+
|
9 |
+
.acf-panel .acf-panel-title {
|
10 |
+
font-weight: 600
|
11 |
+
}
|
12 |
+
|
13 |
+
.acf-fields.-left>.acf-field>.acf-label,
|
14 |
+
.acfe-postbox-left>.inside>.acf-field>.acf-label {
|
15 |
+
min-height: 1px
|
16 |
+
}
|
17 |
+
|
18 |
+
#side-sortables .acf-fields>.acf-field.acfe-no-label>.acf-label,
|
19 |
+
.acf-field.acfe-no-label>.acf-label {
|
20 |
+
margin: 0
|
21 |
+
}
|
22 |
+
|
23 |
+
#side-sortables .acf-fields>.acf-field.acfe-no-label>.acf-label>label,
|
24 |
+
.acf-field.acfe-no-label>.acf-label>label {
|
25 |
+
display: none
|
26 |
+
}
|
27 |
+
|
28 |
+
#side-sortables .acf-fields>.acf-field.acfe-no-label>.acf-label>p.description,
|
29 |
+
.acf-field.acfe-no-label>.acf-label>p.description {
|
30 |
+
margin-bottom: 10px
|
31 |
+
}
|
32 |
+
|
33 |
+
body .medium-editor-toolbar {
|
34 |
+
z-index: 999999 !important
|
35 |
+
}
|
36 |
+
|
37 |
+
body:not(.acf-admin-single-field-group) .acf-fields>.acf-tab-wrap .acf-tab-group li a {
|
38 |
+
background: #f1f1f1;
|
39 |
+
border-color: #ccd0d4
|
40 |
+
}
|
41 |
+
|
42 |
+
body:not(.acf-admin-single-field-group) .acf-fields>.acf-tab-wrap .acf-tab-group li a:hover {
|
43 |
+
background: #fff
|
44 |
+
}
|
45 |
+
|
46 |
+
body:not(.acf-admin-single-field-group) .acf-fields>.acf-tab-wrap .acf-tab-group li.active a {
|
47 |
+
background: #fff
|
48 |
+
}
|
49 |
+
|
50 |
+
body:not(.acf-admin-single-field-group) .acf-fields>.acf-tab-wrap:first-child .acf-tab-group {
|
51 |
+
border-top: none
|
52 |
+
}
|
53 |
+
|
54 |
+
.acf-accordion {
|
55 |
+
z-index: initial
|
56 |
+
}
|
57 |
+
|
58 |
+
.acf-link.-value .acfe-modal .button {
|
59 |
+
display: inline-block
|
60 |
+
}
|
61 |
+
|
62 |
+
.acf-field-checkbox .acf-input .acf-checkbox-list.acf-bl li+li>strong {
|
63 |
+
margin-top: 15px;
|
64 |
+
display: inline-block
|
65 |
+
}
|
66 |
+
|
67 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input,
|
68 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input {
|
69 |
+
margin-left: -12px;
|
70 |
+
margin-right: -12px;
|
71 |
+
margin-bottom: -15px
|
72 |
+
}
|
73 |
+
|
74 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-no-label.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input,
|
75 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-no-label.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input {
|
76 |
+
margin-top: -15px
|
77 |
+
}
|
78 |
+
|
79 |
+
.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,
|
80 |
+
.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 {
|
81 |
+
margin-bottom: 15px
|
82 |
+
}
|
83 |
+
|
84 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-no-label.acfe-seamless-style>.acf-input>.acf-fields {
|
85 |
+
border-width: 0
|
86 |
+
}
|
87 |
+
|
88 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input>.acf-fields {
|
89 |
+
border-left-width: 0;
|
90 |
+
border-right-width: 0;
|
91 |
+
border-bottom-width: 0
|
92 |
+
}
|
93 |
+
|
94 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-fields {
|
95 |
+
border-width: 0
|
96 |
+
}
|
97 |
+
|
98 |
+
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input {
|
99 |
+
margin: 0
|
100 |
+
}
|
101 |
+
|
102 |
+
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input>.acf-fields {
|
103 |
+
border-width: 1px
|
104 |
+
}
|
105 |
+
|
106 |
+
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input,
|
107 |
+
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input {
|
108 |
+
padding: 0;
|
109 |
+
padding-left: 1px;
|
110 |
+
margin-top: -15px;
|
111 |
+
margin-bottom: -15px;
|
112 |
+
margin-left: 0;
|
113 |
+
margin-right: 0
|
114 |
+
}
|
115 |
+
|
116 |
+
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-fields,
|
117 |
+
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input>.acf-table {
|
118 |
+
border-width: 0
|
119 |
+
}
|
120 |
+
|
121 |
+
.acf-fields>.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
122 |
+
.acf-fields>.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table {
|
123 |
+
border-width: 0
|
124 |
+
}
|
125 |
+
|
126 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input,
|
127 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input,
|
128 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-table {
|
129 |
+
margin: 0
|
130 |
+
}
|
131 |
+
|
132 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-fields,
|
133 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input>.acf-fields,
|
134 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input>.acf-table {
|
135 |
+
border-width: 1px
|
136 |
+
}
|
137 |
+
|
138 |
+
.acf-postbox.seamless>.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input,
|
139 |
+
.acf-postbox.seamless>.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input,
|
140 |
+
.acf-postbox.seamless>.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input {
|
141 |
+
padding: 0 12px
|
142 |
+
}
|
143 |
+
|
144 |
+
tr.acf-field.acf-field-clone.acfe-seamless-style>td.acf-input>.acf-fields {
|
145 |
+
border: 0;
|
146 |
+
margin-left: -10px;
|
147 |
+
margin-right: -10px;
|
148 |
+
margin-top: -15px;
|
149 |
+
margin-bottom: -15px
|
150 |
+
}
|
151 |
+
|
152 |
+
tr.acf-field.acf-field-clone.acfe-seamless-style.acfe-field-clone-layout-table>td.acf-input {
|
153 |
+
padding: 0;
|
154 |
+
margin-top: -15px;
|
155 |
+
margin-bottom: -15px;
|
156 |
+
margin-left: 0;
|
157 |
+
margin-right: 0
|
158 |
+
}
|
159 |
+
|
160 |
+
tr.acf-field.acf-field-clone.acfe-seamless-style.acfe-field-clone-layout-table>td.acf-input>.acf-table {
|
161 |
+
border-width: 0
|
162 |
+
}
|
163 |
+
|
164 |
+
tr.acf-field.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
165 |
+
tr.acf-field.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table {
|
166 |
+
border-width: 0
|
167 |
+
}
|
168 |
+
|
169 |
+
.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap {
|
170 |
+
height: auto
|
171 |
+
}
|
172 |
+
|
173 |
+
.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default {
|
174 |
+
border: 1px solid #7e8993;
|
175 |
+
border-radius: 4px
|
176 |
+
}
|
177 |
+
|
178 |
+
.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default .CodeMirror-gutters {
|
179 |
+
border-right: 1px solid #7e8993;
|
180 |
+
background: #f9f9f9
|
181 |
+
}
|
182 |
+
|
183 |
+
.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default .CodeMirror-activeline-background {
|
184 |
+
background: #f9f9f9
|
185 |
+
}
|
186 |
+
|
187 |
+
.acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default .CodeMirror-selected {
|
188 |
+
background: #f0f0f0 !important
|
189 |
+
}
|
190 |
+
|
191 |
+
.acf-field-acfe-code-editor>td.acf-input {
|
192 |
+
max-width: 1px
|
193 |
+
}
|
194 |
+
|
195 |
+
#acf-admin-tool-export>.CodeMirror-wrap {
|
196 |
+
height: auto
|
197 |
+
}
|
198 |
+
|
199 |
+
#acf-admin-tool-export>.CodeMirror-wrap.cm-s-default {
|
200 |
+
border: 1px solid #7e8993;
|
201 |
+
border-radius: 4px
|
202 |
+
}
|
203 |
+
|
204 |
+
#acf-admin-tool-export>.CodeMirror-wrap.cm-s-default .CodeMirror-gutters {
|
205 |
+
border-right: 1px solid #7e8993;
|
206 |
+
background: #f9f9f9
|
207 |
+
}
|
208 |
+
|
209 |
+
#acf-admin-tool-export>.CodeMirror-wrap.cm-s-default .CodeMirror-activeline-background {
|
210 |
+
background: #f9f9f9
|
211 |
+
}
|
212 |
+
|
213 |
+
#acf-admin-tool-export>.CodeMirror-wrap.cm-s-default .CodeMirror-selected {
|
214 |
+
background: #f0f0f0 !important
|
215 |
+
}
|
216 |
+
|
217 |
+
body .CodeMirror-wrap pre {
|
218 |
+
word-break: break-all
|
219 |
+
}
|
220 |
+
|
221 |
+
body:not(.acf-admin-5-3) .acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default {
|
222 |
+
border-color: #dfdfdf
|
223 |
+
}
|
224 |
+
|
225 |
+
.acfe-modal-content .acf-color-picker .wp-picker-holder {
|
226 |
+
position: relative
|
227 |
+
}
|
228 |
+
|
229 |
+
.acf-fields.acfe-column-wrapper {
|
230 |
+
display: -webkit-box;
|
231 |
+
display: -ms-flexbox;
|
232 |
+
display: flex;
|
233 |
+
-ms-flex-wrap: wrap;
|
234 |
+
flex-wrap: wrap;
|
235 |
+
-ms-flex-line-pack: start;
|
236 |
+
align-content: flex-start
|
237 |
+
}
|
238 |
+
|
239 |
+
.acf-fields.acfe-column-wrapper>.acf-tab-wrap {
|
240 |
+
width: 100%
|
241 |
+
}
|
242 |
+
|
243 |
+
.acf-fields.acfe-column-wrapper>.acf-field {
|
244 |
+
width: 100%
|
245 |
+
}
|
246 |
+
|
247 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column {
|
248 |
+
-webkit-box-sizing: border-box;
|
249 |
+
box-sizing: border-box;
|
250 |
+
padding: 0;
|
251 |
+
border-top-width: 0
|
252 |
+
}
|
253 |
+
|
254 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-endpoint="1"] {
|
255 |
+
width: 100%;
|
256 |
+
border-top: 1px solid #eee
|
257 |
+
}
|
258 |
+
|
259 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-endpoint="1"]+.acf-field:not(.acf-field-acfe-column),
|
260 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-endpoint="1"]:last-child {
|
261 |
+
border-top: none
|
262 |
+
}
|
263 |
+
|
264 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="1/12"] {
|
265 |
+
width: 8.333333%
|
266 |
+
}
|
267 |
+
|
268 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="2/12"] {
|
269 |
+
width: 16.66666%
|
270 |
+
}
|
271 |
+
|
272 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="3/12"] {
|
273 |
+
width: 25%
|
274 |
+
}
|
275 |
+
|
276 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="4/12"] {
|
277 |
+
width: 33.33333%
|
278 |
+
}
|
279 |
+
|
280 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="5/12"] {
|
281 |
+
width: 41.66667%
|
282 |
+
}
|
283 |
+
|
284 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="6/12"] {
|
285 |
+
width: 50%
|
286 |
+
}
|
287 |
+
|
288 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="7/12"] {
|
289 |
+
width: 58.33333%
|
290 |
+
}
|
291 |
+
|
292 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="8/12"] {
|
293 |
+
width: 66.66666%
|
294 |
+
}
|
295 |
+
|
296 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="9/12"] {
|
297 |
+
width: 75%
|
298 |
+
}
|
299 |
+
|
300 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="10/12"] {
|
301 |
+
width: 83.33333%
|
302 |
+
}
|
303 |
+
|
304 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="11/12"] {
|
305 |
+
width: 91.66667%
|
306 |
+
}
|
307 |
+
|
308 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="12/12"] {
|
309 |
+
width: 100%;
|
310 |
+
border-right: 0
|
311 |
+
}
|
312 |
+
|
313 |
+
@media only screen and (max-width:1024px) {
|
314 |
+
|
315 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="1/12"],
|
316 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="10/12"],
|
317 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="11/12"],
|
318 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="2/12"],
|
319 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="3/12"],
|
320 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="4/12"],
|
321 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="5/12"],
|
322 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="7/12"],
|
323 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="8/12"],
|
324 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="9/12"] {
|
325 |
+
width: 50%
|
326 |
+
}
|
327 |
+
}
|
328 |
+
|
329 |
+
@media only screen and (max-width:640px) {
|
330 |
+
|
331 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="1/12"],
|
332 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="10/12"],
|
333 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="11/12"],
|
334 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="12/12"],
|
335 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="2/12"],
|
336 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="3/12"],
|
337 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="4/12"],
|
338 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="5/12"],
|
339 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="6/12"],
|
340 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="7/12"],
|
341 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="8/12"],
|
342 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="9/12"] {
|
343 |
+
width: 100%
|
344 |
+
}
|
345 |
+
}
|
346 |
+
|
347 |
+
.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column>.acf-input>.acf-fields>.acf-field {
|
348 |
+
border-top-width: 0
|
349 |
+
}
|
350 |
+
|
351 |
+
.acf-fields.acfe-column-wrapper.-left>.acf-field.acf-field-acfe-column>.acf-input {
|
352 |
+
float: none;
|
353 |
+
width: auto;
|
354 |
+
margin: 0;
|
355 |
+
padding: 0
|
356 |
+
}
|
357 |
+
|
358 |
+
.acf-fields.acfe-column-wrapper>.acfe-flexible-opened-actions {
|
359 |
+
width: 100%
|
360 |
+
}
|
361 |
+
|
362 |
+
.acf-repeater .acf-row.-collapsed>.acf-fields.acfe-column-wrapper {
|
363 |
+
display: table-cell
|
364 |
+
}
|
365 |
+
|
366 |
+
.acf-repeater .acf-row.-collapsed>.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column.-collapsed-target {
|
367 |
+
width: 100%
|
368 |
+
}
|
369 |
+
|
370 |
+
.acf-postbox.seamless>.inside.acfe-column-wrapper {
|
371 |
+
display: -webkit-box !important;
|
372 |
+
display: -ms-flexbox !important;
|
373 |
+
display: flex !important;
|
374 |
+
-ms-flex-wrap: wrap !important;
|
375 |
+
flex-wrap: wrap !important
|
376 |
+
}
|
377 |
+
|
378 |
+
.acf-ui-datepicker .ui-datepicker {
|
379 |
+
padding: 0;
|
380 |
+
border-color: #7e8993 !important;
|
381 |
+
border-radius: 4px;
|
382 |
+
-webkit-box-sizing: border-box;
|
383 |
+
box-sizing: border-box;
|
384 |
+
background: #fff
|
385 |
+
}
|
386 |
+
|
387 |
+
.acf-ui-datepicker select {
|
388 |
+
font-size: 14px;
|
389 |
+
cursor: pointer;
|
390 |
+
vertical-align: middle;
|
391 |
+
line-height: 2;
|
392 |
+
color: #32373c;
|
393 |
+
border-color: #7e8993;
|
394 |
+
-webkit-box-shadow: none;
|
395 |
+
box-shadow: none;
|
396 |
+
border-radius: 3px;
|
397 |
+
padding: 0 24px 0 8px;
|
398 |
+
min-height: 30px;
|
399 |
+
max-width: 25rem;
|
400 |
+
-webkit-appearance: none;
|
401 |
+
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%;
|
402 |
+
background-size: 16px 16px
|
403 |
+
}
|
404 |
+
|
405 |
+
.acf-ui-datepicker .ui-datepicker table {
|
406 |
+
font-size: 13px;
|
407 |
+
margin: 0;
|
408 |
+
margin-bottom: 7px
|
409 |
+
}
|
410 |
+
|
411 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-header {
|
412 |
+
border: none;
|
413 |
+
background: #f9f9f9;
|
414 |
+
color: #222;
|
415 |
+
font-weight: 400;
|
416 |
+
border-radius: 4px 4px 0
|
417 |
+
}
|
418 |
+
|
419 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-header .ui-state-hover {
|
420 |
+
background: #f9f9f9;
|
421 |
+
cursor: pointer;
|
422 |
+
border-radius: 0;
|
423 |
+
border: 0
|
424 |
+
}
|
425 |
+
|
426 |
+
.acf-ui-datepicker .ui-datepicker thead {
|
427 |
+
background: #f9f9f9;
|
428 |
+
color: #222
|
429 |
+
}
|
430 |
+
|
431 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-title {
|
432 |
+
margin-top: .4em;
|
433 |
+
margin-bottom: .3em;
|
434 |
+
color: #222;
|
435 |
+
font-size: 14px
|
436 |
+
}
|
437 |
+
|
438 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next,
|
439 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next-hover,
|
440 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev,
|
441 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev-hover {
|
442 |
+
height: 20px;
|
443 |
+
width: 20px;
|
444 |
+
border: none;
|
445 |
+
overflow: hidden;
|
446 |
+
margin-top: 15px;
|
447 |
+
top: 0
|
448 |
+
}
|
449 |
+
|
450 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next-hover,
|
451 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev-hover {
|
452 |
+
background: 0 0 !important;
|
453 |
+
color: #007cba !important
|
454 |
+
}
|
455 |
+
|
456 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next {
|
457 |
+
right: 7px
|
458 |
+
}
|
459 |
+
|
460 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev {
|
461 |
+
left: 7px
|
462 |
+
}
|
463 |
+
|
464 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span,
|
465 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span {
|
466 |
+
height: 20px;
|
467 |
+
width: 20px;
|
468 |
+
background: 0 0;
|
469 |
+
position: relative;
|
470 |
+
margin: 0;
|
471 |
+
left: unset;
|
472 |
+
top: unset;
|
473 |
+
font-size: 1px
|
474 |
+
}
|
475 |
+
|
476 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span:before,
|
477 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span:before {
|
478 |
+
display: block;
|
479 |
+
font-family: dashicons;
|
480 |
+
line-height: 1;
|
481 |
+
font-weight: 400;
|
482 |
+
text-indent: 0;
|
483 |
+
font-style: normal;
|
484 |
+
speak: none;
|
485 |
+
text-decoration: inherit;
|
486 |
+
text-transform: none;
|
487 |
+
text-rendering: auto;
|
488 |
+
-webkit-font-smoothing: antialiased;
|
489 |
+
-moz-osx-font-smoothing: grayscale;
|
490 |
+
width: 20px;
|
491 |
+
height: 20px;
|
492 |
+
font-size: 16px;
|
493 |
+
vertical-align: top;
|
494 |
+
text-align: center
|
495 |
+
}
|
496 |
+
|
497 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next span:before {
|
498 |
+
content: "\f345"
|
499 |
+
}
|
500 |
+
|
501 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev span:before {
|
502 |
+
content: "\f341"
|
503 |
+
}
|
504 |
+
|
505 |
+
.acf-ui-datepicker .ui-datepicker .ui-datepicker-title select {
|
506 |
+
margin: 0 3px
|
507 |
+
}
|
508 |
+
|
509 |
+
.acf-ui-datepicker .ui-datepicker th {
|
510 |
+
padding: .75em 0;
|
511 |
+
color: #222;
|
512 |
+
font-weight: 400;
|
513 |
+
border: none;
|
514 |
+
border-bottom: 1px solid #e1e1e1;
|
515 |
+
background: #f9f9f9
|
516 |
+
}
|
517 |
+
|
518 |
+
.acf-ui-datepicker .ui-datepicker td {
|
519 |
+
background: #fff;
|
520 |
+
border: none;
|
521 |
+
padding: 0
|
522 |
+
}
|
523 |
+
|
524 |
+
.acf-ui-datepicker .ui-datepicker td .ui-state-default {
|
525 |
+
background: 0 0;
|
526 |
+
border: none;
|
527 |
+
text-align: center;
|
528 |
+
padding: .5em;
|
529 |
+
margin: 0;
|
530 |
+
font-weight: 400;
|
531 |
+
color: #333
|
532 |
+
}
|
533 |
+
|
534 |
+
.acf-ui-datepicker .ui-datepicker td .ui-state-active,
|
535 |
+
.acf-ui-datepicker .ui-datepicker td .ui-state-hover {
|
536 |
+
background: #007cba;
|
537 |
+
color: #fff;
|
538 |
+
-webkit-box-shadow: none;
|
539 |
+
box-shadow: none
|
540 |
+
}
|
541 |
+
|
542 |
+
.acf-ui-datepicker .ui-datepicker td.ui-state-disabled,
|
543 |
+
.acf-ui-datepicker .ui-datepicker td.ui-state-disabled .ui-state-default {
|
544 |
+
opacity: 1;
|
545 |
+
color: #999
|
546 |
+
}
|
547 |
+
|
548 |
+
.acf-ui-datepicker .ui-datepicker-today .ui-state-highlight {
|
549 |
+
border: none !important;
|
550 |
+
background: #eee !important;
|
551 |
+
font-weight: 400 !important;
|
552 |
+
color: #222 !important
|
553 |
+
}
|
554 |
+
|
555 |
+
.acf-ui-datepicker .ui-state-highlight.ui-state-active,
|
556 |
+
.acf-ui-datepicker .ui-state-highlight.ui-state-hover {
|
557 |
+
border: none !important;
|
558 |
+
background: #007cba !important;
|
559 |
+
font-weight: 400 !important;
|
560 |
+
color: #fff !important
|
561 |
+
}
|
562 |
+
|
563 |
+
.acf-ui-datepicker .ui-state-highlight.ui-state-hover.ui-state-active {
|
564 |
+
background: #007cba !important
|
565 |
+
}
|
566 |
+
|
567 |
+
.acf-ui-datepicker .ui-timepicker-div {
|
568 |
+
padding: 10px 7px !important
|
569 |
+
}
|
570 |
+
|
571 |
+
.acf-ui-datepicker .ui-timepicker-div .ui-widget-header {
|
572 |
+
background: 0 0 !important;
|
573 |
+
border: 0 !important;
|
574 |
+
display: none !important
|
575 |
+
}
|
576 |
+
|
577 |
+
.acf-ui-datepicker .ui-timepicker-div .ui-widget-header .ui-datepicker-title {
|
578 |
+
font-size: 13px !important;
|
579 |
+
font-weight: 600 !important
|
580 |
+
}
|
581 |
+
|
582 |
+
.acf-ui-datepicker .ui-timepicker-div dl {
|
583 |
+
margin: 0;
|
584 |
+
text-align: center !important
|
585 |
+
}
|
586 |
+
|
587 |
+
.acf-ui-datepicker .ui-timepicker-div .ui_tpicker_time_label {
|
588 |
+
display: none !important
|
589 |
+
}
|
590 |
+
|
591 |
+
.acf-ui-datepicker .ui-timepicker-div select {
|
592 |
+
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;
|
593 |
+
background-size: 16px 16px !important;
|
594 |
+
color: #32373c !important;
|
595 |
+
border-color: #7e8993 !important
|
596 |
+
}
|
597 |
+
|
598 |
+
.acf-ui-datepicker .ui-datepicker-buttonpane {
|
599 |
+
border: 0 !important;
|
600 |
+
padding: 7px !important;
|
601 |
+
margin: 0 !important;
|
602 |
+
background: #f9f9f9 !important;
|
603 |
+
border-top: 1px solid #e1e1e1 !important;
|
604 |
+
border-radius: 0 0 4px 4px !important
|
605 |
+
}
|
606 |
+
|
607 |
+
.acf-ui-datepicker .ui-datepicker-buttonpane:after {
|
608 |
+
content: '';
|
609 |
+
display: block;
|
610 |
+
clear: both
|
611 |
+
}
|
612 |
+
|
613 |
+
.acf-ui-datepicker .ui-datepicker-buttonpane button {
|
614 |
+
display: inline-block;
|
615 |
+
text-decoration: none;
|
616 |
+
font-size: 13px !important;
|
617 |
+
line-height: 2.15384615;
|
618 |
+
min-height: 30px;
|
619 |
+
margin: 0 !important;
|
620 |
+
padding: 0 10px !important;
|
621 |
+
cursor: pointer !important;
|
622 |
+
border-width: 1px !important;
|
623 |
+
border-style: solid !important;
|
624 |
+
-webkit-appearance: none;
|
625 |
+
border-radius: 3px;
|
626 |
+
font-weight: 400 !important;
|
627 |
+
white-space: nowrap;
|
628 |
+
-webkit-box-sizing: border-box;
|
629 |
+
box-sizing: border-box;
|
630 |
+
color: #0071a1 !important;
|
631 |
+
border-color: #0071a1 !important;
|
632 |
+
background: #f3f5f6 !important;
|
633 |
+
vertical-align: top;
|
634 |
+
-webkit-box-shadow: none !important;
|
635 |
+
box-shadow: none !important;
|
636 |
+
outline: 0 !important;
|
637 |
+
opacity: unset !important;
|
638 |
+
-webkit-filter: unset !important;
|
639 |
+
filter: unset !important
|
640 |
+
}
|
641 |
+
|
642 |
+
.acf-ui-datepicker .ui-datepicker-buttonpane button:hover {
|
643 |
+
background: #f1f1f1 !important;
|
644 |
+
border-color: #016087 !important;
|
645 |
+
color: #016087 !important
|
646 |
+
}
|
647 |
+
|
648 |
+
.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons:before {
|
649 |
+
font-family: dashicons
|
650 |
+
}
|
651 |
+
|
652 |
+
.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons {
|
653 |
+
visibility: hidden
|
654 |
+
}
|
655 |
+
|
656 |
+
.acf-flexible-content .layout:hover>.acf-fc-layout-controls .acf-icon.acfe-flexible-icon.dashicons {
|
657 |
+
visibility: visible
|
658 |
+
}
|
659 |
+
|
660 |
+
.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons.dashicons-admin-generic {
|
661 |
+
visibility: visible
|
662 |
+
}
|
663 |
+
|
664 |
+
.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons.dashicons-admin-generic:before {
|
665 |
+
margin-left: 1px;
|
666 |
+
line-height: .9
|
667 |
+
}
|
668 |
+
|
669 |
+
.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-duplicate,
|
670 |
+
.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-minus,
|
671 |
+
.acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-plus,
|
672 |
+
.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-duplicate,
|
673 |
+
.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-minus,
|
674 |
+
.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-plus {
|
675 |
+
visibility: hidden
|
676 |
+
}
|
677 |
+
|
678 |
+
.acf-flexible-content .layout.-hover>.acf-fc-layout-controls .acf-icon.-duplicate,
|
679 |
+
.acf-flexible-content .layout.-hover>.acf-fc-layout-controls .acf-icon.-minus,
|
680 |
+
.acf-flexible-content .layout.-hover>.acf-fc-layout-controls .acf-icon.-plus,
|
681 |
+
.acf-flexible-content .layout:hover>.acf-fc-layout-controls .acf-icon.-duplicate,
|
682 |
+
.acf-flexible-content .layout:hover>.acf-fc-layout-controls .acf-icon.-minus,
|
683 |
+
.acf-flexible-content .layout:hover>.acf-fc-layout-controls .acf-icon.-plus {
|
684 |
+
visibility: visible
|
685 |
+
}
|
686 |
+
|
687 |
+
.acf-flexible-content .layout>.acf-fc-layout-controls .acf-icon.disabled {
|
688 |
+
color: #ccc;
|
689 |
+
cursor: initial
|
690 |
+
}
|
691 |
+
|
692 |
+
.acf-flexible-content .layout>.acf-fc-layout-controls .acf-icon.disabled:hover {
|
693 |
+
color: #ccc;
|
694 |
+
background: #f5f5f5
|
695 |
+
}
|
696 |
+
|
697 |
+
.acf-field-acfe-flexible-layout-title {
|
698 |
+
display: none
|
699 |
+
}
|
700 |
+
|
701 |
+
input.acfe-flexible-control-title {
|
702 |
+
border: none;
|
703 |
+
-webkit-box-shadow: none !important;
|
704 |
+
box-shadow: none !important;
|
705 |
+
outline: 0 !important;
|
706 |
+
border-radius: 0;
|
707 |
+
border-bottom: 1px solid transparent !important;
|
708 |
+
font-weight: 600;
|
709 |
+
width: auto !important;
|
710 |
+
padding: 0 !important;
|
711 |
+
display: none;
|
712 |
+
min-height: 20px;
|
713 |
+
vertical-align: unset;
|
714 |
+
background: 0 0
|
715 |
+
}
|
716 |
+
|
717 |
+
.acf-field-flexible-content[data-acfe-flexible-title-edition="1"]>.acf-input>.acf-flexible-content>.values>.layout:not(.acfe-flexible-title-edition)>.acf-fc-layout-handle .acfe-layout-title:hover {
|
718 |
+
background: #f4f4f4
|
719 |
+
}
|
720 |
+
|
721 |
+
.acf-field-flexible-content[data-acfe-flexible-title-edition="1"]>.acf-input>.acf-flexible-content>.values>.layout.acfe-flexible-title-edition>.acf-fc-layout-handle .acfe-layout-title input.acfe-flexible-control-title {
|
722 |
+
display: inline-block;
|
723 |
+
border-bottom: 1px solid #ddd !important
|
724 |
+
}
|
725 |
+
|
726 |
+
.acf-field-flexible-content[data-acfe-flexible-title-edition="1"]>.acf-input>.acf-flexible-content>.values>.layout.acfe-flexible-title-edition>.acf-fc-layout-handle .acfe-layout-title .acfe-layout-title-text {
|
727 |
+
display: none
|
728 |
+
}
|
729 |
+
|
730 |
+
.acf-field-flexible-content[data-acfe-flexible-title-edition="1"]>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-handle .acfe-layout-title {
|
731 |
+
cursor: text;
|
732 |
+
position: relative
|
733 |
+
}
|
734 |
+
|
735 |
+
.layout.acfe-flexible-layout-hidden>.acf-fc-layout-controls,
|
736 |
+
.layout.acfe-flexible-layout-hidden>.acf-fc-layout-handle,
|
737 |
+
.layout.acfe-flexible-layout-hidden>.acf-fields,
|
738 |
+
.layout.acfe-flexible-layout-hidden>.acfe-fc-placeholder {
|
739 |
+
opacity: .5
|
740 |
+
}
|
741 |
+
|
742 |
+
.acf-field-flexible-content[data-acfe-flexible-modal-edition="1"]>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-controls>a.-collapse {
|
743 |
+
display: none
|
744 |
+
}
|
745 |
+
|
746 |
+
body.-loading * {
|
747 |
+
cursor: wait !important
|
748 |
+
}
|
749 |
+
|
750 |
+
.acf-flexible-content>.values>.ui-sortable-placeholder {
|
751 |
+
border-width: 2px;
|
752 |
+
border-color: #ccc
|
753 |
+
}
|
754 |
+
|
755 |
+
.acf-flexible-content .layout .acf-fc-layout-handle {
|
756 |
+
color: #444;
|
757 |
+
font-weight: 600
|
758 |
+
}
|
759 |
+
|
760 |
+
.layout.acfe-flexible-modal-edit-error>.acf-fc-layout-handle {
|
761 |
+
color: #f33b28
|
762 |
+
}
|
763 |
+
|
764 |
+
.layout.acfe-flexible-modal-edit-error>.acf-fc-layout-handle>.acf-fc-layout-order {
|
765 |
+
background: #f33b28;
|
766 |
+
color: #fff
|
767 |
+
}
|
768 |
+
|
769 |
+
.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 {
|
770 |
+
border-bottom-width: 0
|
771 |
+
}
|
772 |
+
|
773 |
+
.acf-field-flexible-content[data-acfe-flexible-placeholder="1"]>.acf-input>.acf-flexible-content>.values>.layout.-collapsed>.acf-fc-layout-handle,
|
774 |
+
.acf-field-flexible-content[data-acfe-flexible-preview="1"]>.acf-input>.acf-flexible-content>.values>.layout.-collapsed>.acf-fc-layout-handle {
|
775 |
+
border-bottom-width: 1px
|
776 |
+
}
|
777 |
+
|
778 |
+
.acf-field-flexible-content[data-acfe-flexible-lock="1"]>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-handle {
|
779 |
+
cursor: pointer
|
780 |
+
}
|
781 |
+
|
782 |
+
.acf-fc-popup.top.acfe-fc-popup-grey:before {
|
783 |
+
border-top-color: #e1e1e1
|
784 |
+
}
|
785 |
+
|
786 |
+
.acf-tooltip.bottom.acfe-fc-popup-grey:before {
|
787 |
+
border-bottom-color: #e1e1e1
|
788 |
+
}
|
789 |
+
|
790 |
+
.acf-fc-popup.acfe-fc-popup-grey {
|
791 |
+
background: #fcfcfc;
|
792 |
+
border-radius: 3px;
|
793 |
+
color: #444;
|
794 |
+
border: 1px solid #e1e1e1;
|
795 |
+
font-size: 13px
|
796 |
+
}
|
797 |
+
|
798 |
+
.acf-tooltip.top.acfe-fc-popup-grey {
|
799 |
+
margin-top: -16px
|
800 |
+
}
|
801 |
+
|
802 |
+
.acf-tooltip.bottom.acfe-fc-popup-grey {
|
803 |
+
margin-bottom: -16px
|
804 |
+
}
|
805 |
+
|
806 |
+
.acf-fc-popup.acfe-fc-popup-grey a {
|
807 |
+
color: #444
|
808 |
+
}
|
809 |
+
|
810 |
+
.acf-fc-popup.acfe-fc-popup-grey a:hover {
|
811 |
+
color: #fff
|
812 |
+
}
|
813 |
+
|
814 |
+
.layout>.acfe-fc-placeholder {
|
815 |
+
text-align: center;
|
816 |
+
background: #f9f9f9;
|
817 |
+
display: block;
|
818 |
+
text-decoration: none;
|
819 |
+
position: relative;
|
820 |
+
cursor: pointer
|
821 |
+
}
|
822 |
+
|
823 |
+
.layout>.acfe-fc-placeholder:focus {
|
824 |
+
border-color: #ccc;
|
825 |
+
-webkit-box-shadow: none;
|
826 |
+
box-shadow: none
|
827 |
+
}
|
828 |
+
|
829 |
+
.layout>.acfe-fc-placeholder>.acfe-flexible-placeholder {
|
830 |
+
height: 110px;
|
831 |
+
overflow: hidden;
|
832 |
+
text-align: initial
|
833 |
+
}
|
834 |
+
|
835 |
+
.layout>.acfe-fc-placeholder>a {
|
836 |
+
z-index: 2;
|
837 |
+
position: absolute;
|
838 |
+
top: 50%;
|
839 |
+
left: 50%;
|
840 |
+
-webkit-transform: translate(-50%, -50%);
|
841 |
+
-ms-transform: translate(-50%, -50%);
|
842 |
+
transform: translate(-50%, -50%);
|
843 |
+
border-color: #ccd0d4;
|
844 |
+
color: #23282d;
|
845 |
+
border-radius: 100px;
|
846 |
+
-webkit-box-shadow: none;
|
847 |
+
box-shadow: none;
|
848 |
+
background: #fff;
|
849 |
+
width: 30px;
|
850 |
+
min-height: 30px;
|
851 |
+
height: 30px;
|
852 |
+
padding: 0;
|
853 |
+
display: block
|
854 |
+
}
|
855 |
+
|
856 |
+
body:not(.acf-admin-5-3) .layout>.acfe-fc-placeholder>a {
|
857 |
+
border-color: #999
|
858 |
+
}
|
859 |
+
|
860 |
+
.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 {
|
861 |
+
z-index: 0
|
862 |
+
}
|
863 |
+
|
864 |
+
.layout>.acfe-fc-placeholder>a:active {
|
865 |
+
-webkit-transform: translate(-50%, -50%);
|
866 |
+
-ms-transform: translate(-50%, -50%);
|
867 |
+
transform: translate(-50%, -50%)
|
868 |
+
}
|
869 |
+
|
870 |
+
.layout>.acfe-fc-placeholder>a:focus {
|
871 |
+
border-color: #ccc;
|
872 |
+
-webkit-box-shadow: none;
|
873 |
+
box-shadow: none
|
874 |
+
}
|
875 |
+
|
876 |
+
.layout>.acfe-fc-placeholder>a span {
|
877 |
+
width: 29px;
|
878 |
+
height: 30px;
|
879 |
+
vertical-align: top;
|
880 |
+
line-height: 28px;
|
881 |
+
font-size: 18px
|
882 |
+
}
|
883 |
+
|
884 |
+
body:not(.acf-admin-5-3) .layout>.acfe-fc-placeholder>a span {
|
885 |
+
width: 30px;
|
886 |
+
height: 30px
|
887 |
+
}
|
888 |
+
|
889 |
+
.layout>.acfe-fc-placeholder.acfe-fc-preview {
|
890 |
+
background: 0 0
|
891 |
+
}
|
892 |
+
|
893 |
+
.layout>.acfe-fc-placeholder.acfe-fc-preview>.acfe-flexible-placeholder {
|
894 |
+
min-height: 55px;
|
895 |
+
height: auto
|
896 |
+
}
|
897 |
+
|
898 |
+
.layout>.acfe-fc-placeholder.acfe-fc-preview>a {
|
899 |
+
display: none
|
900 |
+
}
|
901 |
+
|
902 |
+
.layout>.acfe-fc-placeholder.acfe-fc-preview:hover>a {
|
903 |
+
display: block
|
904 |
+
}
|
905 |
+
|
906 |
+
.layout>.acfe-fc-placeholder.acfe-fc-preview.-loading {
|
907 |
+
background: #f9f9f9;
|
908 |
+
min-height: 110px
|
909 |
+
}
|
910 |
+
|
911 |
+
.layout>.acfe-fc-placeholder.acfe-fc-preview.-loading>.acfe-flexible-placeholder>.spinner {
|
912 |
+
visibility: visible;
|
913 |
+
float: none;
|
914 |
+
position: absolute;
|
915 |
+
top: 50%;
|
916 |
+
left: 50%;
|
917 |
+
-webkit-transform: translate(-50%, -50%);
|
918 |
+
-ms-transform: translate(-50%, -50%);
|
919 |
+
transform: translate(-50%, -50%);
|
920 |
+
margin: 0;
|
921 |
+
z-index: 10000
|
922 |
+
}
|
923 |
+
|
924 |
+
.layout>.acfe-fc-placeholder .acfe-fc-overlay {
|
925 |
+
position: absolute;
|
926 |
+
width: 100%;
|
927 |
+
height: 100%;
|
928 |
+
padding: 0;
|
929 |
+
background-color: rgba(255, 255, 255, 0);
|
930 |
+
-webkit-transition: background-color .2s linear;
|
931 |
+
-o-transition: background-color .2s linear;
|
932 |
+
transition: background-color .2s linear
|
933 |
+
}
|
934 |
+
|
935 |
+
.layout>.acfe-fc-placeholder .acfe-fc-overlay.-hover,
|
936 |
+
.layout>.acfe-fc-placeholder:hover .acfe-fc-overlay {
|
937 |
+
background-color: rgba(255, 255, 255, .7);
|
938 |
+
z-index: 1
|
939 |
+
}
|
940 |
+
|
941 |
+
.layout>.acfe-fc-placeholder.acfe-fc-preview.-loading>a span {
|
942 |
+
visibility: hidden
|
943 |
+
}
|
944 |
+
|
945 |
+
.layout>.acf-fields>.acfe-flexible-opened-actions,
|
946 |
+
.layout>.acf-table>.acfe-flexible-opened-actions {
|
947 |
+
background: #f9f9f9;
|
948 |
+
border-top: 1px solid #e1e1e1;
|
949 |
+
padding: 12px;
|
950 |
+
text-align: right;
|
951 |
+
clear: both
|
952 |
+
}
|
953 |
+
|
954 |
+
.acfe-flexible-layout-thumbnail {
|
955 |
+
display: block;
|
956 |
+
width: 100%;
|
957 |
+
height: 9.8vw;
|
958 |
+
background-color: #eee;
|
959 |
+
background-size: cover;
|
960 |
+
background-repeat: no-repeat;
|
961 |
+
background-position: center;
|
962 |
+
position: relative;
|
963 |
+
margin-bottom: 15px
|
964 |
+
}
|
965 |
+
|
966 |
+
.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-not-found:after {
|
967 |
+
content: "\f180";
|
968 |
+
font-family: dashicons;
|
969 |
+
display: inline-block;
|
970 |
+
line-height: 1;
|
971 |
+
font-weight: 400;
|
972 |
+
font-style: normal;
|
973 |
+
speak: none;
|
974 |
+
text-decoration: inherit;
|
975 |
+
text-transform: none;
|
976 |
+
text-rendering: auto;
|
977 |
+
-webkit-font-smoothing: antialiased;
|
978 |
+
-moz-osx-font-smoothing: grayscale;
|
979 |
+
vertical-align: top;
|
980 |
+
text-align: center;
|
981 |
+
position: absolute;
|
982 |
+
top: 50%;
|
983 |
+
left: 50%;
|
984 |
+
-webkit-transform: translate(-50%, -50%);
|
985 |
+
-ms-transform: translate(-50%, -50%);
|
986 |
+
transform: translate(-50%, -50%);
|
987 |
+
color: #ccc;
|
988 |
+
font-size: 110px
|
989 |
+
}
|
990 |
+
|
991 |
+
.acfe-col-2 .acfe-flexible-layout-thumbnail {
|
992 |
+
height: 20.5vw
|
993 |
+
}
|
994 |
+
|
995 |
+
.acfe-col-3 .acfe-flexible-layout-thumbnail {
|
996 |
+
height: 13.3vw
|
997 |
+
}
|
998 |
+
|
999 |
+
.acfe-col-5 .acfe-flexible-layout-thumbnail {
|
1000 |
+
height: 7.65vw
|
1001 |
+
}
|
1002 |
+
|
1003 |
+
.acfe-col-6 .acfe-flexible-layout-thumbnail {
|
1004 |
+
height: 6.2vw
|
1005 |
+
}
|
1006 |
+
|
1007 |
+
@media only screen and (max-width:960px) {
|
1008 |
+
|
1009 |
+
.acfe-flex-container .acfe-flexible-layout-thumbnail,
|
1010 |
+
.acfe-flexible-layout-thumbnail {
|
1011 |
+
height: 18.4vw
|
1012 |
+
}
|
1013 |
+
}
|
1014 |
+
|
1015 |
+
@media only screen and (max-width:720px) {
|
1016 |
+
|
1017 |
+
.acfe-flex-container .acfe-flexible-layout-thumbnail,
|
1018 |
+
.acfe-flexible-layout-thumbnail {
|
1019 |
+
height: 37.2vw
|
1020 |
+
}
|
1021 |
+
}
|
1022 |
+
|
1023 |
+
.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-no-modal {
|
1024 |
+
display: block;
|
1025 |
+
width: 230px;
|
1026 |
+
height: 103px;
|
1027 |
+
background-color: #1f2329
|
1028 |
+
}
|
1029 |
+
|
1030 |
+
.acfe-flexible-layout-thumbnail.acfe-flexible-layout-thumbnail-no-modal.acfe-flexible-layout-thumbnail-not-found:after {
|
1031 |
+
color: #2f353e
|
1032 |
+
}
|
1033 |
+
|
1034 |
+
.acf-field.acf-field-flexible-content[data-acfe-flexible-stylised-button="1"]>.acf-input>.acf-flexible-content:not(.empty)>.values {
|
1035 |
+
margin-bottom: 15px
|
1036 |
+
}
|
1037 |
+
|
1038 |
+
.acf-field.acf-field-flexible-content>.acf-input>.acf-flexible-content>.acfe-flexible-stylised-button {
|
1039 |
+
padding: 40px 20px;
|
1040 |
+
border: #ccc dashed 2px;
|
1041 |
+
text-align: center
|
1042 |
+
}
|
1043 |
+
|
1044 |
+
.acf-field.acf-field-flexible-content>.acf-input>.acf-flexible-content>.acfe-flexible-stylised-button>.acf-actions {
|
1045 |
+
text-align: center
|
1046 |
+
}
|
1047 |
+
|
1048 |
+
.acf-field.acf-field-flexible-content>.acf-input>.acf-flexible-content .acf-actions .acf-button .dashicons {
|
1049 |
+
width: auto;
|
1050 |
+
height: auto;
|
1051 |
+
vertical-align: text-top
|
1052 |
+
}
|
1053 |
+
|
1054 |
+
.acf-field.acf-field-flexible-content[data-acfe-flexible-hide-empty-message="1"]>.acf-input>.acf-flexible-content>.no-value-message {
|
1055 |
+
display: none
|
1056 |
+
}
|
1057 |
+
|
1058 |
+
.acf-field.acf-field-flexible-content[data-acfe-flexible-hide-empty-message="1"]>.acf-input>.acf-flexible-content.-empty>.values {
|
1059 |
+
margin-bottom: 0
|
1060 |
+
}
|
1061 |
+
|
1062 |
+
.acf-range-wrap input[type=number] {
|
1063 |
+
min-width: 3.5em
|
1064 |
+
}
|
1065 |
+
|
1066 |
+
.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input,
|
1067 |
+
.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input {
|
1068 |
+
margin-left: -12px;
|
1069 |
+
margin-right: -12px;
|
1070 |
+
margin-bottom: -15px
|
1071 |
+
}
|
1072 |
+
|
1073 |
+
.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"])>.acf-input,
|
1074 |
+
.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style.acfe-no-label:not([data-acfe-group-modal="1"])>.acf-input {
|
1075 |
+
margin-top: -15px
|
1076 |
+
}
|
1077 |
+
|
1078 |
+
.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,
|
1079 |
+
.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 {
|
1080 |
+
margin-bottom: 15px
|
1081 |
+
}
|
1082 |
+
|
1083 |
+
.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style.acfe-no-label>.acf-input>.acf-fields {
|
1084 |
+
border-width: 0
|
1085 |
+
}
|
1086 |
+
|
1087 |
+
.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input>.acf-fields {
|
1088 |
+
border-left-width: 0;
|
1089 |
+
border-right-width: 0;
|
1090 |
+
border-bottom-width: 0
|
1091 |
+
}
|
1092 |
+
|
1093 |
+
.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input>.acf-fields {
|
1094 |
+
border-width: 0
|
1095 |
+
}
|
1096 |
+
|
1097 |
+
.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
1098 |
+
.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table {
|
1099 |
+
border-width: 0
|
1100 |
+
}
|
1101 |
+
|
1102 |
+
.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acf-fields,
|
1103 |
+
.acf-fields>.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acf-table {
|
1104 |
+
display: none
|
1105 |
+
}
|
1106 |
+
|
1107 |
+
.acf-fields.-left>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input {
|
1108 |
+
margin: 0
|
1109 |
+
}
|
1110 |
+
|
1111 |
+
.acf-fields.-left>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input>.acf-fields {
|
1112 |
+
border-width: 1px
|
1113 |
+
}
|
1114 |
+
|
1115 |
+
.acf-fields.-left>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input,
|
1116 |
+
.acf-fields.-left>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style:not([data-acfe-group-modal="1"])>.acf-input {
|
1117 |
+
padding: 0;
|
1118 |
+
padding-left: 1px;
|
1119 |
+
margin-top: -15px;
|
1120 |
+
margin-bottom: -15px;
|
1121 |
+
margin-left: 0;
|
1122 |
+
margin-right: 0
|
1123 |
+
}
|
1124 |
+
|
1125 |
+
.acf-fields.-left>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input>.acf-fields,
|
1126 |
+
.acf-fields.-left>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input>.acf-table,
|
1127 |
+
.acf-fields.-left>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-input>.acf-fields,
|
1128 |
+
.acf-fields.-left>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-input>.acf-table {
|
1129 |
+
border-width: 0
|
1130 |
+
}
|
1131 |
+
|
1132 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input,
|
1133 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-table,
|
1134 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input,
|
1135 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-table,
|
1136 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-input,
|
1137 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-table {
|
1138 |
+
margin: 0
|
1139 |
+
}
|
1140 |
+
|
1141 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input>.acf-fields,
|
1142 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input>.acf-table,
|
1143 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input>.acf-fields,
|
1144 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input>.acf-table,
|
1145 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-input>.acf-fields,
|
1146 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-input>.acf-table {
|
1147 |
+
border-width: 1px
|
1148 |
+
}
|
1149 |
+
|
1150 |
+
.acf-postbox.seamless>.acf-fields.-left>.acf-field-group.acfe-field-group-layout-block.acfe-seamless-style>.acf-input,
|
1151 |
+
.acf-postbox.seamless>.acf-fields.-left>.acf-field-group.acfe-field-group-layout-row.acfe-seamless-style>.acf-input,
|
1152 |
+
.acf-postbox.seamless>.acf-fields.-left>.acf-field-group.acfe-field-group-layout-table.acfe-seamless-style>.acf-input {
|
1153 |
+
padding: 0 12px
|
1154 |
+
}
|
1155 |
+
|
1156 |
+
tr.acf-field.acf-field-group.acfe-seamless-style>td.acf-input>.acf-fields {
|
1157 |
+
border: 0;
|
1158 |
+
margin-left: -10px;
|
1159 |
+
margin-right: -10px;
|
1160 |
+
margin-top: -15px;
|
1161 |
+
margin-bottom: -15px
|
1162 |
+
}
|
1163 |
+
|
1164 |
+
tr.acf-field.acf-field-group.acfe-seamless-style.acfe-field-group-layout-table>td.acf-input {
|
1165 |
+
padding: 0;
|
1166 |
+
margin-top: -15px;
|
1167 |
+
margin-bottom: -15px;
|
1168 |
+
margin-left: 0;
|
1169 |
+
margin-right: 0
|
1170 |
+
}
|
1171 |
+
|
1172 |
+
tr.acf-field.acf-field-group.acfe-seamless-style.acfe-field-group-layout-table>td.acf-input>.acf-table {
|
1173 |
+
border-width: 0
|
1174 |
+
}
|
1175 |
+
|
1176 |
+
tr.acf-field.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
1177 |
+
tr.acf-field.acf-field-group[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table {
|
1178 |
+
border-width: 0
|
1179 |
+
}
|
1180 |
+
|
1181 |
+
.acf-field-acfe-hidden {
|
1182 |
+
display: none
|
1183 |
+
}
|
1184 |
+
|
1185 |
+
.acf-field-radio[data-acfe-labels] .acf-input .acf-radio-list.acf-hl li>strong {
|
1186 |
+
display: block
|
1187 |
+
}
|
1188 |
+
|
1189 |
+
.acf-field-radio .acf-input .acf-radio-list.acf-bl li>strong {
|
1190 |
+
display: block
|
1191 |
+
}
|
1192 |
+
|
1193 |
+
.acf-field-radio .acf-input .acf-radio-list.acf-bl li+li>strong {
|
1194 |
+
margin-top: 15px
|
1195 |
+
}
|
1196 |
+
|
1197 |
+
.acf-field-repeater[data-acfe-repeater-lock="1"]>.acf-input>.acf-repeater>.acf-table>tbody>.acf-row>.acf-row-handle {
|
1198 |
+
cursor: initial
|
1199 |
+
}
|
1200 |
+
|
1201 |
+
.acf-repeater.-block>table,
|
1202 |
+
.acf-repeater.-row>table {
|
1203 |
+
border-collapse: separate;
|
1204 |
+
border-spacing: 0 15px;
|
1205 |
+
background: 0 0;
|
1206 |
+
border: 0;
|
1207 |
+
margin-top: -15px;
|
1208 |
+
margin-bottom: -7px
|
1209 |
+
}
|
1210 |
+
|
1211 |
+
.acf-repeater.-block>table>*,
|
1212 |
+
.acf-repeater.-row>table>* {
|
1213 |
+
border-collapse: collapse;
|
1214 |
+
border-spacing: 0
|
1215 |
+
}
|
1216 |
+
|
1217 |
+
.acf-repeater.-block>table>tbody>tr>td,
|
1218 |
+
.acf-repeater.-row>table>tbody>tr>td {
|
1219 |
+
border-top: 1px solid #ccd0d4 !important;
|
1220 |
+
border-bottom: 1px solid #ccd0d4 !important
|
1221 |
+
}
|
1222 |
+
|
1223 |
+
.acf-repeater.-block>table>tbody>tr>td:first-of-type,
|
1224 |
+
.acf-repeater.-row>table>tbody>tr>td:first-of-type {
|
1225 |
+
border-left: 1px solid #ccd0d4 !important
|
1226 |
+
}
|
1227 |
+
|
1228 |
+
.acf-repeater.-block>table>tbody>tr>td:last-of-type,
|
1229 |
+
.acf-repeater.-row>table>tbody>tr>td:last-of-type {
|
1230 |
+
border-right: 1px solid #ccd0d4 !important
|
1231 |
+
}
|
1232 |
+
|
1233 |
+
body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td,
|
1234 |
+
body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td {
|
1235 |
+
border-top: 1px solid #e1e1e1;
|
1236 |
+
border-bottom: 1px solid #e1e1e1
|
1237 |
+
}
|
1238 |
+
|
1239 |
+
body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td:first-of-type,
|
1240 |
+
body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td:first-of-type {
|
1241 |
+
border-left: 1px solid #e1e1e1
|
1242 |
+
}
|
1243 |
+
|
1244 |
+
body:not(.acf-admin-5-3) .acf-repeater.-block>table>tbody>tr>td:last-of-type,
|
1245 |
+
body:not(.acf-admin-5-3) .acf-repeater.-row>table>tbody>tr>td:last-of-type {
|
1246 |
+
border-right: 1px solid #e1e1e1
|
1247 |
+
}
|
1248 |
+
|
1249 |
+
.acf-repeater.-table.-empty>.acf-table {
|
1250 |
+
display: none
|
1251 |
+
}
|
1252 |
+
|
1253 |
+
.acf-field-repeater>.acf-input>.acf-repeater>.acfe-repeater-stylised-button {
|
1254 |
+
padding: 40px 20px;
|
1255 |
+
border: #ccc dashed 2px;
|
1256 |
+
text-align: center
|
1257 |
+
}
|
1258 |
+
|
1259 |
+
.acf-field-repeater>.acf-input>.acf-repeater>.acfe-repeater-stylised-button>.acf-actions {
|
1260 |
+
text-align: center;
|
1261 |
+
position: relative
|
1262 |
+
}
|
1263 |
+
|
1264 |
+
.acf-field-repeater>.acf-input>.acf-repeater>.acfe-repeater-stylised-button>.acf-actions .acf-button {
|
1265 |
+
float: none
|
1266 |
+
}
|
1267 |
+
|
1268 |
+
.acf-field-repeater>.acf-input>.acf-repeater>.acfe-repeater-stylised-button>.acf-actions .acf-tablenav {
|
1269 |
+
float: none;
|
1270 |
+
position: absolute;
|
1271 |
+
top: 0;
|
1272 |
+
right: 0
|
1273 |
+
}
|
1274 |
+
|
1275 |
+
.acf-field-flexible-content>.acf-input>.acf-repeater .acf-actions .acf-button .dashicons {
|
1276 |
+
width: auto;
|
1277 |
+
height: auto;
|
1278 |
+
vertical-align: text-top
|
1279 |
+
}
|
1280 |
+
|
1281 |
+
.acf-field-textarea[data-acfe-textarea-code="1"]>.acf-input>textarea {
|
1282 |
+
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
1283 |
+
font-size: 1em
|
1284 |
+
}
|
1285 |
+
|
1286 |
+
.acf-editor-wrap iframe {
|
1287 |
+
min-height: 60px
|
1288 |
+
}
|
1289 |
+
|
1290 |
+
.acf-editor-wrap .mce-top-part::before {
|
1291 |
+
-webkit-box-shadow: none;
|
1292 |
+
box-shadow: none
|
1293 |
+
}
|
1294 |
+
|
1295 |
+
.acf-editor-wrap div.mce-statusbar {
|
1296 |
+
border: 0
|
1297 |
+
}
|
1298 |
+
|
1299 |
+
.acf-editor-wrap .mce-divider,
|
1300 |
+
.acf-editor-wrap .mce-path-item {
|
1301 |
+
color: #aaa
|
1302 |
+
}
|
1303 |
+
|
1304 |
+
form.acfe-form.is-valid[data-hide-revalidation="1"]>.acf-notice.-success {
|
1305 |
+
display: none
|
1306 |
+
}
|
1307 |
+
|
1308 |
+
form.acfe-form.is-invalid[data-hide-error="1"]>.acf-error-message.-dismiss {
|
1309 |
+
display: none
|
1310 |
+
}
|
1311 |
+
|
1312 |
+
form.acfe-form.is-invalid[data-errors-position=below] .acf-field .acf-notice {
|
1313 |
+
margin: 15px 0 0
|
1314 |
+
}
|
1315 |
+
|
1316 |
+
.acf-media-modal .screen-reader-text,
|
1317 |
+
.acf-media-modal .screen-reader-text span,
|
1318 |
+
.acf-media-modal .ui-helper-hidden-accessible {
|
1319 |
+
border: 0;
|
1320 |
+
clip: rect(1px, 1px, 1px, 1px);
|
1321 |
+
-webkit-clip-path: inset(50%);
|
1322 |
+
clip-path: inset(50%);
|
1323 |
+
height: 1px;
|
1324 |
+
margin: -1px;
|
1325 |
+
overflow: hidden;
|
1326 |
+
padding: 0;
|
1327 |
+
position: absolute;
|
1328 |
+
width: 1px;
|
1329 |
+
word-wrap: normal !important
|
1330 |
+
}
|
1331 |
+
|
1332 |
+
.acfe-field-tooltip {
|
1333 |
+
float: right;
|
1334 |
+
font-size: 15px;
|
1335 |
+
color: #999;
|
1336 |
+
height: 16px;
|
1337 |
+
line-height: 1.35
|
1338 |
+
}
|
1339 |
+
|
1340 |
+
.acf-field[data-instruction-tooltip]:not([data-instruction-placement])>.acf-label>p.description {
|
1341 |
+
display: none
|
1342 |
+
}
|
1343 |
+
|
1344 |
+
.acf-field[data-instruction-tooltip]:not([data-instruction-placement])>.acf-input>p.description {
|
1345 |
+
display: none
|
1346 |
+
}
|
1347 |
+
|
1348 |
+
.acf-field .acf-input>p.description:first-child {
|
1349 |
+
margin-top: 0;
|
1350 |
+
margin-bottom: 5px
|
1351 |
+
}
|
1352 |
+
|
1353 |
+
.acf-field[data-instruction-above-field]:not([data-instruction-placement])>.acf-label>p.description {
|
1354 |
+
display: none
|
1355 |
+
}
|
1356 |
+
|
1357 |
+
.acf-field p.description>.more {
|
1358 |
+
display: none
|
1359 |
+
}
|
1360 |
+
|
1361 |
+
.mce-toolbar .mce-btn-group:not(:first-child) {
|
1362 |
+
margin-left: 6px;
|
1363 |
+
padding-left: 6px
|
1364 |
}
|
assets/css/acfe-input.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.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}#side-sortables .acf-fields>.acf-field.acfe-no-label>.acf-label,.acf-field.acfe-no-label>.acf-label{margin:0}#side-sortables .acf-fields>.acf-field.acfe-no-label>.acf-label>label,.acf-field.acfe-no-label>.acf-label>label{display:none}#side-sortables .acf-fields>.acf-field.acfe-no-label>.acf-label>p.description,.acf-field.acfe-no-label>.acf-label>p.description{margin-bottom:10px}body .medium-editor-toolbar{z-index:999999!important}.acf-accordion{z-index:initial}.acf-link.-value .acfe-modal .button{display:inline-block}.acf-field-checkbox .acf-input .acf-checkbox-list.acf-bl li+li>strong{margin-top:15px;display:inline-block}.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}.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;background:#f9f9f9}.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>td.acf-input{max-width:1px}body .CodeMirror-wrap pre{word-break:break-all}body:not(.acf-admin-5-3) .acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default{border-color:#dfdfdf}.acfe-modal-content .acf-color-picker .wp-picker-holder{position:relative}.acf-fields.acfe-column-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:start;align-content:flex-start}.acf-fields.acfe-column-wrapper>.acf-field,.acf-fields.acfe-column-wrapper>.acf-tab-wrap{width:100%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;border-top-width:0}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-endpoint="1"]{width:100%;border-top:1px solid #eee}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-endpoint="1"]+.acf-field:not(.acf-field-acfe-column),.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-endpoint="1"]:last-child{border-top:none}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="1/12"]{width:8.333333%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="2/12"]{width:16.66666%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="3/12"]{width:25%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="4/12"]{width:33.33333%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="5/12"]{width:41.66667%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="6/12"]{width:50%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="7/12"]{width:58.33333%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="8/12"]{width:66.66666%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="9/12"]{width:75%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="10/12"]{width:83.33333%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="11/12"]{width:91.66667%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="12/12"]{width:100%;border-right:0}@media only screen and (max-width:1024px){.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="1/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="10/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="11/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="2/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="3/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="4/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="5/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="7/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="8/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="9/12"]{width:50%}}@media only screen and (max-width:640px){.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="1/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="10/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="11/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="12/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="2/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="3/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="4/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="5/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="6/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="7/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="8/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="9/12"]{width:100%}}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column>.acf-input>.acf-fields>.acf-field{border-top-width:0}.acf-fields.acfe-column-wrapper.-left>.acf-field.acf-field-acfe-column>.acf-input{float:none;width:auto;margin:0;padding:0}.acf-fields.acfe-column-wrapper>.acfe-flexible-opened-actions{width:100%}.acf-postbox.seamless>.inside.acfe-column-wrapper{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-wrap:wrap!important;flex-wrap:wrap!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: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') right 5px top 55%/16px 16px no-repeat #fff}.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: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;-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: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: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') right 5px top 55%/16px 16px no-repeat #fff!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;background:#f3f5f6!important;vertical-align:top;-webkit-box-shadow:none!important;box-shadow:none!important;outline:0!important;opacity:unset!important;-webkit-filter:unset!important;filter:unset!important;border:1px solid #0071a1!important}.acf-ui-datepicker .ui-datepicker-buttonpane button:hover{background:#f1f1f1!important;border-color:#016087!important;color:#016087!important}.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;line-height:.9}.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-field-acfe-flexible-layout-title{display:none}input.acfe-flexible-control-title{border:none;-webkit-box-shadow:none!important;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.-loading *{cursor:wait!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:pointer}.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: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%;-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:rgba(255,255,255,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: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%;-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-range-wrap input[type=number]{min-width:3.5em}.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,.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-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}.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-block.acfe-seamless-style>.acf-input>.acf-table,.acf-fields.-left>.acf-field-group.acfe-field-group-layout-table.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-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-block.acfe-seamless-style>.acf-table,.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-row.acfe-seamless-style>.acf-table,.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-table.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-block.acfe-seamless-style>.acf-input>.acf-table,.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-row.acfe-seamless-style>.acf-input>.acf-table,.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-table.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}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-field-acfe-hidden{display:none}.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-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: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}.acf-field-textarea[data-acfe-textarea-code="1"]>.acf-input>textarea{font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:1em}.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-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}.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 p.description>.more,.acf-field[data-instruction-above-field]:not([data-instruction-placement])>.acf-label>p.description{display:none}.mce-toolbar .mce-btn-group:not(:first-child){margin-left:6px;padding-left:6px}
|
1 |
+
.acf-field .acf-label label{font-weight:600}.acf-field p.description{word-break:break-word}.acf-panel .acf-panel-title{font-weight:600}.acf-fields.-left>.acf-field>.acf-label,.acfe-postbox-left>.inside>.acf-field>.acf-label{min-height:1px}#side-sortables .acf-fields>.acf-field.acfe-no-label>.acf-label,.acf-field.acfe-no-label>.acf-label{margin:0}#side-sortables .acf-fields>.acf-field.acfe-no-label>.acf-label>label,.acf-field.acfe-no-label>.acf-label>label{display:none}#side-sortables .acf-fields>.acf-field.acfe-no-label>.acf-label>p.description,.acf-field.acfe-no-label>.acf-label>p.description{margin-bottom:10px}body .medium-editor-toolbar{z-index:999999!important}body:not(.acf-admin-single-field-group) .acf-fields>.acf-tab-wrap .acf-tab-group li a{background:#f1f1f1;border-color:#ccd0d4}body:not(.acf-admin-single-field-group) .acf-fields>.acf-tab-wrap .acf-tab-group li a:hover,body:not(.acf-admin-single-field-group) .acf-fields>.acf-tab-wrap .acf-tab-group li.active a{background:#fff}body:not(.acf-admin-single-field-group) .acf-fields>.acf-tab-wrap:first-child .acf-tab-group{border-top:none}.acf-accordion{z-index:initial}.acf-link.-value .acfe-modal .button{display:inline-block}.acf-field-checkbox .acf-input .acf-checkbox-list.acf-bl li+li>strong{margin-top:15px;display:inline-block}.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}.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;background:#f9f9f9}.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>td.acf-input{max-width:1px}#acf-admin-tool-export>.CodeMirror-wrap{height:auto}#acf-admin-tool-export>.CodeMirror-wrap.cm-s-default{border:1px solid #7e8993;border-radius:4px}#acf-admin-tool-export>.CodeMirror-wrap.cm-s-default .CodeMirror-gutters{border-right:1px solid #7e8993;background:#f9f9f9}#acf-admin-tool-export>.CodeMirror-wrap.cm-s-default .CodeMirror-activeline-background{background:#f9f9f9}#acf-admin-tool-export>.CodeMirror-wrap.cm-s-default .CodeMirror-selected{background:#f0f0f0!important}body .CodeMirror-wrap pre{word-break:break-all}body:not(.acf-admin-5-3) .acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>.CodeMirror-wrap.cm-s-default{border-color:#dfdfdf}.acfe-modal-content .acf-color-picker .wp-picker-holder{position:relative}.acf-fields.acfe-column-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:start;align-content:flex-start}.acf-fields.acfe-column-wrapper>.acf-field,.acf-fields.acfe-column-wrapper>.acf-tab-wrap{width:100%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;border-top-width:0}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-endpoint="1"]{width:100%;border-top:1px solid #eee}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-endpoint="1"]+.acf-field:not(.acf-field-acfe-column),.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-endpoint="1"]:last-child{border-top:none}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="1/12"]{width:8.333333%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="2/12"]{width:16.66666%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="3/12"]{width:25%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="4/12"]{width:33.33333%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="5/12"]{width:41.66667%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="6/12"]{width:50%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="7/12"]{width:58.33333%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="8/12"]{width:66.66666%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="9/12"]{width:75%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="10/12"]{width:83.33333%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="11/12"]{width:91.66667%}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="12/12"]{width:100%;border-right:0}@media only screen and (max-width:1024px){.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="1/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="10/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="11/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="2/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="3/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="4/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="5/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="7/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="8/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="9/12"]{width:50%}}@media only screen and (max-width:640px){.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="1/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="10/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="11/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="12/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="2/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="3/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="4/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="5/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="6/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="7/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="8/12"],.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column[data-columns="9/12"]{width:100%}}.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column>.acf-input>.acf-fields>.acf-field{border-top-width:0}.acf-fields.acfe-column-wrapper.-left>.acf-field.acf-field-acfe-column>.acf-input{float:none;width:auto;margin:0;padding:0}.acf-fields.acfe-column-wrapper>.acfe-flexible-opened-actions{width:100%}.acf-repeater .acf-row.-collapsed>.acf-fields.acfe-column-wrapper{display:table-cell}.acf-repeater .acf-row.-collapsed>.acf-fields.acfe-column-wrapper>.acf-field.acf-field-acfe-column.-collapsed-target{width:100%}.acf-postbox.seamless>.inside.acfe-column-wrapper{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-wrap:wrap!important;flex-wrap:wrap!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: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') right 5px top 55%/16px 16px no-repeat #fff}.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: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;-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: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: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') right 5px top 55%/16px 16px no-repeat #fff!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;background:#f3f5f6!important;vertical-align:top;-webkit-box-shadow:none!important;box-shadow:none!important;outline:0!important;opacity:unset!important;-webkit-filter:unset!important;filter:unset!important;border:1px solid #0071a1!important}.acf-ui-datepicker .ui-datepicker-buttonpane button:hover{background:#f1f1f1!important;border-color:#016087!important;color:#016087!important}.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;line-height:.9}.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-field-acfe-flexible-layout-title{display:none}input.acfe-flexible-control-title{border:none;-webkit-box-shadow:none!important;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}.acf-field-flexible-content[data-acfe-flexible-title-edition="1"]>.acf-input>.acf-flexible-content>.values>.layout:not(.acfe-flexible-title-edition)>.acf-fc-layout-handle .acfe-layout-title:hover{background:#f4f4f4}.acf-field-flexible-content[data-acfe-flexible-title-edition="1"]>.acf-input>.acf-flexible-content>.values>.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}.acf-field-flexible-content[data-acfe-flexible-title-edition="1"]>.acf-input>.acf-flexible-content>.values>.layout.acfe-flexible-title-edition>.acf-fc-layout-handle .acfe-layout-title .acfe-layout-title-text{display:none}.acf-field-flexible-content[data-acfe-flexible-title-edition="1"]>.acf-input>.acf-flexible-content>.values>.layout>.acf-fc-layout-handle .acfe-layout-title{cursor:text;position:relative}.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.-loading *{cursor:wait!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:pointer}.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: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%;-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:rgba(255,255,255,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: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%;-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-range-wrap input[type=number]{min-width:3.5em}.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,.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-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}.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-block.acfe-seamless-style>.acf-input>.acf-table,.acf-fields.-left>.acf-field-group.acfe-field-group-layout-table.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-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-block.acfe-seamless-style>.acf-table,.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-row.acfe-seamless-style>.acf-table,.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-table.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-block.acfe-seamless-style>.acf-input>.acf-table,.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-row.acfe-seamless-style>.acf-input>.acf-table,.acf-postbox.seamless>.acf-fields>.acf-field-group.acfe-field-group-layout-table.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}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-field-acfe-hidden{display:none}.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-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:2px dashed #ccc;text-align:center}.acf-field-repeater>.acf-input>.acf-repeater>.acfe-repeater-stylised-button>.acf-actions{text-align:center;position:relative}.acf-field-repeater>.acf-input>.acf-repeater>.acfe-repeater-stylised-button>.acf-actions .acf-button{float:none}.acf-field-repeater>.acf-input>.acf-repeater>.acfe-repeater-stylised-button>.acf-actions .acf-tablenav{float:none;position:absolute;top:0;right:0}.acf-field-flexible-content>.acf-input>.acf-repeater .acf-actions .acf-button .dashicons{width:auto;height:auto;vertical-align:text-top}.acf-field-textarea[data-acfe-textarea-code="1"]>.acf-input>textarea{font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:1em}.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-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}.acfe-field-tooltip{float:right;font-size:15px;color:#999;height:16px;line-height:1.35}.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 p.description>.more,.acf-field[data-instruction-above-field]:not([data-instruction-placement])>.acf-label>p.description{display:none}.mce-toolbar .mce-btn-group:not(:first-child){margin-left:6px;padding-left:6px}
|
assets/css/acfe-ui.css
CHANGED
@@ -1,743 +1,776 @@
|
|
1 |
-
body:not(.taxonomy-product_cat):not(.woocommerce-page) .wrap {
|
2 |
-
padding-top: 0 !important
|
3 |
-
}
|
4 |
-
|
5 |
-
.wrap {
|
6 |
-
min-width: auto !important
|
7 |
-
}
|
8 |
-
|
9 |
-
@media only screen and (min-width:782px) {
|
10 |
-
|
11 |
-
.wrap:not(#poststuff) form#createuser,
|
12 |
-
.wrap:not(#poststuff) form#edittag,
|
13 |
-
.wrap:not(#poststuff) form#your-profile,
|
14 |
-
.wrap:not(#poststuff) form[action="options-permalink.php"],
|
15 |
-
.wrap:not(#poststuff) form[action="options.php"] {
|
16 |
-
max-width: calc(100% - 300px) !important;
|
17 |
-
position: relative
|
18 |
-
}
|
19 |
-
|
20 |
-
.wrap:not(#poststuff) form#createuser .edit-tag-actions,
|
21 |
-
.wrap:not(#poststuff) form#createuser p.submit,
|
22 |
-
.wrap:not(#poststuff) form#edittag .edit-tag-actions,
|
23 |
-
.wrap:not(#poststuff) form#edittag p.submit,
|
24 |
-
.wrap:not(#poststuff) form#your-profile .edit-tag-actions,
|
25 |
-
.wrap:not(#poststuff) form#your-profile p.submit,
|
26 |
-
.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions,
|
27 |
-
.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit,
|
28 |
-
.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions,
|
29 |
-
.wrap:not(#poststuff) form[action="options.php"] p.submit {
|
30 |
-
-webkit-box-sizing: border-box;
|
31 |
-
box-sizing: border-box;
|
32 |
-
position: absolute;
|
33 |
-
top: 37px;
|
34 |
-
width: 280px;
|
35 |
-
right: -300px;
|
36 |
-
padding: 10px;
|
37 |
-
margin: 0;
|
38 |
-
background: #f5f5f5;
|
39 |
-
text-align: right;
|
40 |
-
border: 1px solid #ccd0d4;
|
41 |
-
border-radius: 0;
|
42 |
-
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
|
43 |
-
box-shadow: 0 1px 1px rgba(0, 0, 0, .04)
|
44 |
-
}
|
45 |
-
|
46 |
-
.wrap:not(#poststuff) form#createuser .edit-tag-actions::before,
|
47 |
-
.wrap:not(#poststuff) form#createuser p.submit::before,
|
48 |
-
.wrap:not(#poststuff) form#edittag .edit-tag-actions::before,
|
49 |
-
.wrap:not(#poststuff) form#edittag p.submit::before,
|
50 |
-
.wrap:not(#poststuff) form#your-profile .edit-tag-actions::before,
|
51 |
-
.wrap:not(#poststuff) form#your-profile p.submit::before,
|
52 |
-
.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions::before,
|
53 |
-
.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit::before,
|
54 |
-
.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions::before,
|
55 |
-
.wrap:not(#poststuff) form[action="options.php"] p.submit::before {
|
56 |
-
-webkit-box-sizing: border-box;
|
57 |
-
box-sizing: border-box;
|
58 |
-
content: "";
|
59 |
-
background: #fff;
|
60 |
-
border: 1px solid #ccd0d4;
|
61 |
-
border-bottom: 0;
|
62 |
-
position: absolute;
|
63 |
-
width: 280px;
|
64 |
-
top: -38px;
|
65 |
-
height: 37px;
|
66 |
-
left: -1px
|
67 |
-
}
|
68 |
-
|
69 |
-
.wrap:not(#poststuff) form#createuser .edit-tag-actions .button,
|
70 |
-
.wrap:not(#poststuff) form#createuser p.submit .button,
|
71 |
-
.wrap:not(#poststuff) form#edittag .edit-tag-actions .button,
|
72 |
-
.wrap:not(#poststuff) form#edittag p.submit .button,
|
73 |
-
.wrap:not(#poststuff) form#your-profile .edit-tag-actions .button,
|
74 |
-
.wrap:not(#poststuff) form#your-profile p.submit .button,
|
75 |
-
.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions .button,
|
76 |
-
.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit .button,
|
77 |
-
.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions .button,
|
78 |
-
.wrap:not(#poststuff) form[action="options.php"] p.submit .button {
|
79 |
-
min-height: 32px;
|
80 |
-
line-height: 2.30769231;
|
81 |
-
padding: 0 12px
|
82 |
-
}
|
83 |
-
|
84 |
-
.wrap:not(#poststuff) form#createuser .edit-tag-actions #delete-link,
|
85 |
-
.wrap:not(#poststuff) form#createuser p.submit #delete-link,
|
86 |
-
.wrap:not(#poststuff) form#edittag .edit-tag-actions #delete-link,
|
87 |
-
.wrap:not(#poststuff) form#edittag p.submit #delete-link,
|
88 |
-
.wrap:not(#poststuff) form#your-profile .edit-tag-actions #delete-link,
|
89 |
-
.wrap:not(#poststuff) form#your-profile p.submit #delete-link,
|
90 |
-
.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions #delete-link,
|
91 |
-
.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit #delete-link,
|
92 |
-
.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions #delete-link,
|
93 |
-
.wrap:not(#poststuff) form[action="options.php"] p.submit #delete-link {
|
94 |
-
float: left;
|
95 |
-
margin: 0;
|
96 |
-
text-decoration: underline
|
97 |
-
}
|
98 |
-
}
|
99 |
-
|
100 |
-
.wrap>form:not(.search-form) {
|
101 |
-
margin-top: 13px;
|
102 |
-
max-width: 100% !important
|
103 |
-
}
|
104 |
-
|
105 |
-
.wrap>form>div>div>h2,
|
106 |
-
.wrap>form>div>div>h3,
|
107 |
-
.wrap>form>h2,
|
108 |
-
.wrap>form>h3 {
|
109 |
-
background: #fff;
|
110 |
-
border: 1px solid #c3c4c7;
|
111 |
-
margin: 0;
|
112 |
-
color: #23282d;
|
113 |
-
font-size: 14px;
|
114 |
-
padding: 8px 12px;
|
115 |
-
line-height: 1.4
|
116 |
-
}
|
117 |
-
|
118 |
-
.wrap>form>div>div>h2~p,
|
119 |
-
.wrap>form>div>div>h3~p,
|
120 |
-
.wrap>form>h2~p,
|
121 |
-
.wrap>form>h3~p {
|
122 |
-
margin: 0;
|
123 |
-
border: 1px solid #c3c4c7;
|
124 |
-
border-top: 0;
|
125 |
-
padding: 15px 12px
|
126 |
-
}
|
127 |
-
|
128 |
-
.wrap>form>div>div>h2+.form-table,
|
129 |
-
.wrap>form>div>div>h2~p+.form-table,
|
130 |
-
.wrap>form>div>div>h3+.form-table,
|
131 |
-
.wrap>form>div>div>h3~p+.form-table,
|
132 |
-
.wrap>form>h2+.form-table,
|
133 |
-
.wrap>form>h2~p+.form-table,
|
134 |
-
.wrap>form>h3+.form-table,
|
135 |
-
.wrap>form>h3~p+.form-table {
|
136 |
-
margin-top: 0
|
137 |
-
}
|
138 |
-
|
139 |
-
.wrap>form .form-table {
|
140 |
-
background: #fff;
|
141 |
-
width: 100%;
|
142 |
-
border: 1px solid #c3c4c7;
|
143 |
-
border-top: 0;
|
144 |
-
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
|
145 |
-
box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
|
146 |
-
margin-bottom: 20px
|
147 |
-
}
|
148 |
-
|
149 |
-
.wrap>form .form-table.rank-math-metabox-frame {
|
150 |
-
border-top: 1px solid #c3c4c7
|
151 |
-
}
|
152 |
-
|
153 |
-
.wrap>form .form-table>tbody>tr.acf-field {
|
154 |
-
position: initial
|
155 |
-
}
|
156 |
-
|
157 |
-
.wrap>form .form-table>tbody>tr.acf-tab-wrap>td {
|
158 |
-
background: #f9f9f9;
|
159 |
-
padding: 15px 0 0 0
|
160 |
-
}
|
161 |
-
|
162 |
-
.wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group {
|
163 |
-
border-bottom: 0;
|
164 |
-
padding: 0 0 0 20%
|
165 |
-
}
|
166 |
-
|
167 |
-
.wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group>li.active a {
|
168 |
-
background: #fff
|
169 |
-
}
|
170 |
-
|
171 |
-
.wrap>form .form-table>tbody>tr>td {
|
172 |
-
background: #fff;
|
173 |
-
border-top: 1px solid #eee;
|
174 |
-
position: initial;
|
175 |
-
padding: 15px 12px
|
176 |
-
}
|
177 |
-
|
178 |
-
.wrap>form .form-table>tbody>tr>td.td-full {
|
179 |
-
padding: 15px 12px
|
180 |
-
}
|
181 |
-
|
182 |
-
.wrap>form .form-table>tbody>tr>td p {
|
183 |
-
font-size: 13px
|
184 |
-
}
|
185 |
-
|
186 |
-
.wrap>form .form-table>tbody>tr>td.acf-label,
|
187 |
-
.wrap>form .form-table>tbody>tr>th {
|
188 |
-
border-top: 1px solid #eee;
|
189 |
-
border-right: 1px solid #e1e1e1;
|
190 |
-
background: #f9f9f9;
|
191 |
-
padding: 15px 12px;
|
192 |
-
width: 20%;
|
193 |
-
font-size: 13px;
|
194 |
-
position: initial;
|
195 |
-
color: #444
|
196 |
-
}
|
197 |
-
|
198 |
-
.wrap>form .form-table>tbody>tr>td.acf-label label,
|
199 |
-
.wrap>form .form-table>tbody>tr>th label {
|
200 |
-
vertical-align: top
|
201 |
-
}
|
202 |
-
|
203 |
-
.wrap>form .form-table>tbody>tr:first-of-type td,
|
204 |
-
.wrap>form .form-table>tbody>tr:first-of-type th {
|
205 |
-
border-top: 0
|
206 |
-
}
|
207 |
-
|
208 |
-
.wrap>form .form-table textarea {
|
209 |
-
width: 100%
|
210 |
-
}
|
211 |
-
|
212 |
-
.wrap>form .form-table .regular-text {
|
213 |
-
width: 100%;
|
214 |
-
max-width: 25em
|
215 |
-
}
|
216 |
-
|
217 |
-
@media only screen and (max-width:782px) {
|
218 |
-
|
219 |
-
.wrap>form>div>div>h2,
|
220 |
-
.wrap>form>div>div>h3,
|
221 |
-
.wrap>form>h2,
|
222 |
-
.wrap>form>h3 {
|
223 |
-
padding: 12px
|
224 |
-
}
|
225 |
-
|
226 |
-
.wrap>form table.form-table>tbody>tr {
|
227 |
-
display: block;
|
228 |
-
padding: 15px 12px;
|
229 |
-
border-top: 1px solid #eee
|
230 |
-
}
|
231 |
-
|
232 |
-
.wrap>form table.form-table>tbody>tr>td.acf-label,
|
233 |
-
.wrap>form table.form-table>tbody>tr>th {
|
234 |
-
margin-bottom: 10px
|
235 |
-
}
|
236 |
-
|
237 |
-
.wrap>form table.form-table>tbody>tr>td,
|
238 |
-
.wrap>form table.form-table>tbody>tr>td.acf-label,
|
239 |
-
.wrap>form table.form-table>tbody>tr>th {
|
240 |
-
padding: 0;
|
241 |
-
display: block;
|
242 |
-
width: auto;
|
243 |
-
background: 0 0;
|
244 |
-
border: 0 !important
|
245 |
-
}
|
246 |
-
|
247 |
-
.wrap>form table.form-table>tbody>tr:first-child {
|
248 |
-
border-top: 0
|
249 |
-
}
|
250 |
-
}
|
251 |
-
|
252 |
-
.wrap #titlediv {
|
253 |
-
margin-bottom: 10px
|
254 |
-
}
|
255 |
-
|
256 |
-
.wrap #titlediv input {
|
257 |
-
padding: 3px 8px;
|
258 |
-
font-size: 1.7em;
|
259 |
-
line-height: 100%;
|
260 |
-
height: 1.7em;
|
261 |
-
width: 100%;
|
262 |
-
outline: 0;
|
263 |
-
margin: 0 0 3px;
|
264 |
-
background-color: #fff
|
265 |
-
}
|
266 |
-
|
267 |
-
.wrap .postbox .hndle {
|
268 |
-
cursor: auto;
|
269 |
-
-webkit-user-select: auto;
|
270 |
-
-moz-user-select: auto;
|
271 |
-
-ms-user-select: auto;
|
272 |
-
user-select: auto
|
273 |
-
}
|
274 |
-
|
275 |
-
.wrap .postbox .handle-actions button,
|
276 |
-
.wrap .postbox .handle-actions span {
|
277 |
-
display: none
|
278 |
-
}
|
279 |
-
|
280 |
-
.wrap .postbox .handle-actions .acf-hndle-cog {
|
281 |
-
width: 2.2rem
|
282 |
-
}
|
283 |
-
|
284 |
-
.wrap #submitdiv #major-publishing-actions {
|
285 |
-
border-top: 0
|
286 |
-
}
|
287 |
-
|
288 |
-
.wrap #submitdiv #major-publishing-actions #publishing-action {
|
289 |
-
float: none;
|
290 |
-
margin: 0
|
291 |
-
}
|
292 |
-
|
293 |
-
.wrap #submitdiv #major-publishing-actions #publishing-action .button {
|
294 |
-
float: right
|
295 |
-
}
|
296 |
-
|
297 |
-
.wrap #submitdiv #major-publishing-actions #publishing-action .spinner {
|
298 |
-
margin: 5px 10px 0
|
299 |
-
}
|
300 |
-
|
301 |
-
.wrap #submitdiv #major-publishing-actions #publishing-action #delete-link {
|
302 |
-
float: left;
|
303 |
-
margin-left: 0
|
304 |
-
}
|
305 |
-
|
306 |
-
.wrap #submitdiv #major-publishing-actions #publishing-action #delete-link a {
|
307 |
-
text-decoration: underline
|
308 |
-
}
|
309 |
-
|
310 |
-
.wrap form#createuser .acf-field input[type=email],
|
311 |
-
.wrap form#createuser .acf-field input[type=number],
|
312 |
-
.wrap form#createuser .acf-field input[type=password],
|
313 |
-
.wrap form#createuser .acf-field input[type=search],
|
314 |
-
.wrap form#createuser .acf-field input[type=text],
|
315 |
-
.wrap form#createuser .acf-field input[type=url],
|
316 |
-
.wrap form#createuser .acf-field select,
|
317 |
-
.wrap form#your-profile .acf-field input[type=email],
|
318 |
-
.wrap form#your-profile .acf-field input[type=number],
|
319 |
-
.wrap form#your-profile .acf-field input[type=password],
|
320 |
-
.wrap form#your-profile .acf-field input[type=search],
|
321 |
-
.wrap form#your-profile .acf-field input[type=text],
|
322 |
-
.wrap form#your-profile .acf-field input[type=url],
|
323 |
-
.wrap form#your-profile .acf-field select {
|
324 |
-
max-width: 100%
|
325 |
-
}
|
326 |
-
|
327 |
-
.wrap form#createuser .acf-field textarea,
|
328 |
-
.wrap form#your-profile .acf-field textarea {
|
329 |
-
width: 100%;
|
330 |
-
max-width: none
|
331 |
-
}
|
332 |
-
|
333 |
-
.wrap form#createuser .acf-tab-wrap,
|
334 |
-
.wrap form#your-profile .acf-tab-wrap {
|
335 |
-
position: relative
|
336 |
-
}
|
337 |
-
|
338 |
-
.wrap form#createuser select#ure_select_other_roles,
|
339 |
-
.wrap form#your-profile select#ure_select_other_roles {
|
340 |
-
width: 100% !important;
|
341 |
-
max-width: 500px !important
|
342 |
-
}
|
343 |
-
|
344 |
-
.wrap form#createuser select#ure_select_other_roles+.ms-parent,
|
345 |
-
.wrap form#your-profile select#ure_select_other_roles+.ms-parent {
|
346 |
-
width: 100% !important;
|
347 |
-
max-width: 500px !important
|
348 |
-
}
|
349 |
-
|
350 |
-
.wrap form#createuser select#ure_select_other_roles+.ms-parent .ms-choice,
|
351 |
-
.wrap form#your-profile select#ure_select_other_roles+.ms-parent .ms-choice {
|
352 |
-
-webkit-box-shadow: 0 0 0 transparent;
|
353 |
-
box-shadow: 0 0 0 transparent;
|
354 |
-
border-radius: 3px;
|
355 |
-
border: 1px solid #7e8993;
|
356 |
-
color: #32373c;
|
357 |
-
padding: 4px 8px;
|
358 |
-
margin: 0;
|
359 |
-
-webkit-box-sizing: border-box;
|
360 |
-
box-sizing: border-box;
|
361 |
-
font-size: 14px;
|
362 |
-
line-height: 2.1;
|
363 |
-
min-height: 30px;
|
364 |
-
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%;
|
365 |
-
background-size: 16px 16px;
|
366 |
-
cursor: pointer
|
367 |
-
}
|
368 |
-
|
369 |
-
.wrap form#createuser select#ure_select_other_roles+.ms-parent .ms-choice>span.placeholder,
|
370 |
-
.wrap form#your-profile select#ure_select_other_roles+.ms-parent .ms-choice>span.placeholder {
|
371 |
-
color: #32373c
|
372 |
-
}
|
373 |
-
|
374 |
-
.wrap form#createuser select#ure_select_other_roles+.ms-parent .ms-choice>div,
|
375 |
-
.wrap form#your-profile select#ure_select_other_roles+.ms-parent .ms-choice>div {
|
376 |
-
display: none
|
377 |
-
}
|
378 |
-
|
379 |
-
.wrap form#createuser .yoast-settings,
|
380 |
-
.wrap form#your-profile .yoast-settings {
|
381 |
-
padding: 0;
|
382 |
-
margin-bottom: 20px;
|
383 |
-
font-size: 13px
|
384 |
-
}
|
385 |
-
|
386 |
-
.wrap form#createuser .yoast-settings h2,
|
387 |
-
.wrap form#your-profile .yoast-settings h2 {
|
388 |
-
margin: 0
|
389 |
-
}
|
390 |
-
|
391 |
-
.wrap form#createuser .yoast-settings label,
|
392 |
-
.wrap form#your-profile .yoast-settings label {
|
393 |
-
margin: 0;
|
394 |
-
padding: 0;
|
395 |
-
width: auto;
|
396 |
-
font-size: 13px;
|
397 |
-
color: #444;
|
398 |
-
line-height: 1.7
|
399 |
-
}
|
400 |
-
|
401 |
-
.wrap form#createuser .yoast-settings .description,
|
402 |
-
.wrap form#your-profile .yoast-settings .description {
|
403 |
-
font-size: 13px;
|
404 |
-
margin: 0 0 5px;
|
405 |
-
color: #666
|
406 |
-
}
|
407 |
-
|
408 |
-
.wrap form#createuser .yoast-settings input,
|
409 |
-
.wrap form#createuser .yoast-settings textarea,
|
410 |
-
.wrap form#your-profile .yoast-settings input,
|
411 |
-
.wrap form#your-profile .yoast-settings textarea {
|
412 |
-
margin: 0
|
413 |
-
}
|
414 |
-
|
415 |
-
.wrap form#createuser .yoast-settings textarea,
|
416 |
-
.wrap form#your-profile .yoast-settings textarea {
|
417 |
-
margin-bottom: 10px
|
418 |
-
}
|
419 |
-
|
420 |
-
.wrap form#createuser .yoast-settings input[type=checkbox],
|
421 |
-
.wrap form#your-profile .yoast-settings input[type=checkbox] {
|
422 |
-
margin-right: 5px;
|
423 |
-
vertical-align: -6px
|
424 |
-
}
|
425 |
-
|
426 |
-
.wrap form#createuser .form-table[role=presentation] tr.user-language-wrap th[colspan="2"],
|
427 |
-
.wrap form#your-profile .form-table[role=presentation] tr.user-language-wrap th[colspan="2"] {
|
428 |
-
display: none
|
429 |
-
}
|
430 |
-
|
431 |
-
.wrap form#addtag .acf-fields.-left>.acf-field,
|
432 |
-
.wrap form#edittag .acf-fields.-left>.acf-field {
|
433 |
-
padding-left: 0
|
434 |
-
}
|
435 |
-
|
436 |
-
.wrap form#addtag .acf-fields.-left>.acf-field.acfe-bt-no-label,
|
437 |
-
.wrap form#edittag .acf-fields.-left>.acf-field.acfe-bt-no-label {
|
438 |
-
padding-left: 20%
|
439 |
-
}
|
440 |
-
|
441 |
-
@media only screen and (max-width:640px) {
|
442 |
-
|
443 |
-
.wrap form#addtag .acf-fields.-left>.acf-field.acfe-bt-no-label,
|
444 |
-
.wrap form#edittag .acf-fields.-left>.acf-field.acfe-bt-no-label {
|
445 |
-
padding-left: 0
|
446 |
-
}
|
447 |
-
}
|
448 |
-
|
449 |
-
.wrap form#addtag .acf-fields.-left>.acf-field::before,
|
450 |
-
.wrap form#edittag .acf-fields.-left>.acf-field::before {
|
451 |
-
width: 20%
|
452 |
-
}
|
453 |
-
|
454 |
-
.wrap form#addtag .acf-fields.-left>.acf-field>.acf-label,
|
455 |
-
.wrap form#edittag .acf-fields.-left>.acf-field>.acf-label {
|
456 |
-
width: 20%;
|
457 |
-
margin-left: 0;
|
458 |
-
padding: 0 12px
|
459 |
-
}
|
460 |
-
|
461 |
-
.wrap form#addtag .acf-fields.-left>.acf-field>.acf-label label,
|
462 |
-
.wrap form#edittag .acf-fields.-left>.acf-field>.acf-label label {
|
463 |
-
color: #444
|
464 |
-
}
|
465 |
-
|
466 |
-
.wrap form#addtag .acf-fields.-left>.acf-field>.acf-input,
|
467 |
-
.wrap form#edittag .acf-fields.-left>.acf-field>.acf-input {
|
468 |
-
padding: 0 12px
|
469 |
-
}
|
470 |
-
|
471 |
-
.wrap form#addtag .form-field p,
|
472 |
-
.wrap form#addtag .form-field select,
|
473 |
-
.wrap form#edittag .form-field p,
|
474 |
-
.wrap form#edittag .form-field select {
|
475 |
-
max-width: 100%
|
476 |
-
}
|
477 |
-
|
478 |
-
.wrap form#addtag .form-field input[type=email],
|
479 |
-
.wrap form#addtag .form-field input[type=number],
|
480 |
-
.wrap form#addtag .form-field input[type=password],
|
481 |
-
.wrap form#addtag .form-field input[type=search],
|
482 |
-
.wrap form#addtag .form-field input[type=tel],
|
483 |
-
.wrap form#addtag .form-field input[type=text],
|
484 |
-
.wrap form#addtag .form-field input[type=url],
|
485 |
-
.wrap form#addtag .form-field select,
|
486 |
-
.wrap form#addtag .form-field textarea,
|
487 |
-
.wrap form#edittag .form-field input[type=email],
|
488 |
-
.wrap form#edittag .form-field input[type=number],
|
489 |
-
.wrap form#edittag .form-field input[type=password],
|
490 |
-
.wrap form#edittag .form-field input[type=search],
|
491 |
-
.wrap form#edittag .form-field input[type=tel],
|
492 |
-
.wrap form#edittag .form-field input[type=text],
|
493 |
-
.wrap form#edittag .form-field input[type=url],
|
494 |
-
.wrap form#edittag .form-field select,
|
495 |
-
.wrap form#edittag .form-field textarea {
|
496 |
-
width: 100%
|
497 |
-
}
|
498 |
-
|
499 |
-
.wrap form#edittag .acf-column-1>#wp-description-wrap {
|
500 |
-
display: none
|
501 |
-
}
|
502 |
-
|
503 |
-
.wrap form#edittag .postbox.wpseo-taxonomy-metabox-postbox>h2 {
|
504 |
-
border-bottom: 1px solid #ccd0d4
|
505 |
-
}
|
506 |
-
|
507 |
-
.wrap form#edittag tr.wpml-term-languages-wrap {
|
508 |
-
display: none
|
509 |
-
}
|
510 |
-
|
511 |
-
.wrap form#edittag #icl-tax-postbox .inside {
|
512 |
-
margin: 0;
|
513 |
-
padding: 15px 12px
|
514 |
-
}
|
515 |
-
|
516 |
-
.wrap form#edittag #icl-tax-postbox .inside table.icl_translations_table {
|
517 |
-
width: 100%
|
518 |
-
}
|
519 |
-
|
520 |
-
.wrap #add-term-translations,
|
521 |
-
.wrap #edit-term-translations {
|
522 |
-
border: none;
|
523 |
-
width: 100%
|
524 |
-
}
|
525 |
-
|
526 |
-
.wrap #select-add-term-language select,
|
527 |
-
.wrap #select-edit-term-language select {
|
528 |
-
width: auto !important;
|
529 |
-
padding-right: 25px
|
530 |
-
}
|
531 |
-
|
532 |
-
.wrap #select-add-term-language+p,
|
533 |
-
.wrap #select-edit-term-language+p {
|
534 |
-
display: none
|
535 |
-
}
|
536 |
-
|
537 |
-
.wrap #select-add-term-language p.description,
|
538 |
-
.wrap #select-edit-term-language p.description {
|
539 |
-
display: none
|
540 |
-
}
|
541 |
-
|
542 |
-
.wrap #term-translations>p {
|
543 |
-
position: relative;
|
544 |
-
width: 20%;
|
545 |
-
padding: 0 12px;
|
546 |
-
float: left;
|
547 |
-
-webkit-box-sizing: border-box;
|
548 |
-
box-sizing: border-box;
|
549 |
-
margin: 0;
|
550 |
-
font-size: 13px;
|
551 |
-
font-weight: 600;
|
552 |
-
color: #444
|
553 |
-
}
|
554 |
-
|
555 |
-
.wrap #term-translations>.icl_subsubsub {
|
556 |
-
position: relative;
|
557 |
-
width: 20%;
|
558 |
-
-webkit-box-sizing: border-box;
|
559 |
-
box-sizing: border-box;
|
560 |
-
padding: 0 12px;
|
561 |
-
float: left
|
562 |
-
}
|
563 |
-
|
564 |
-
.wrap #term-translations #add-term-translations {
|
565 |
-
width: 80%;
|
566 |
-
position: relative;
|
567 |
-
float: left;
|
568 |
-
clear: none;
|
569 |
-
background: 0 0;
|
570 |
-
padding: 0 12px
|
571 |
-
}
|
572 |
-
|
573 |
-
.wrap #term-translations #add-term-translations td.pll-translation-column {
|
574 |
-
padding-left: 0;
|
575 |
-
padding-right: 0
|
576 |
-
}
|
577 |
-
|
578 |
-
.wrap #term-translations #add-term-translations td,
|
579 |
-
.wrap #term-translations #add-term-translations th {
|
580 |
-
padding-top: 4px;
|
581 |
-
padding-bottom: 4px
|
582 |
-
}
|
583 |
-
|
584 |
-
.wrap #term-translations #add-term-translations tr:first-of-type td,
|
585 |
-
.wrap #term-translations #add-term-translations tr:first-of-type th {
|
586 |
-
padding-top: 0
|
587 |
-
}
|
588 |
-
|
589 |
-
.wrap #term-translations #add-term-translations tr:last-of-type td,
|
590 |
-
.wrap #term-translations #add-term-translations tr:last-of-type th {
|
591 |
-
padding-bottom: 0
|
592 |
-
}
|
593 |
-
|
594 |
-
.wrap #term-translations #edit-term-translations td,
|
595 |
-
.wrap #term-translations #edit-term-translations th {
|
596 |
-
padding-top: 2px;
|
597 |
-
padding-bottom: 2px
|
598 |
-
}
|
599 |
-
|
600 |
-
.wrap #term-translations #edit-term-translations tr:first-of-type td,
|
601 |
-
.wrap #term-translations #edit-term-translations tr:first-of-type th {
|
602 |
-
padding-top: 0
|
603 |
-
}
|
604 |
-
|
605 |
-
.wrap #term-translations #edit-term-translations tr:last-of-type td,
|
606 |
-
.wrap #term-translations #edit-term-translations tr:last-of-type th {
|
607 |
-
padding-bottom: 0
|
608 |
-
}
|
609 |
-
|
610 |
-
.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field,
|
611 |
-
.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field,
|
612 |
-
.wrap #acf-group_term>.acf-fields>table.acf-field,
|
613 |
-
.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field,
|
614 |
-
.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field,
|
615 |
-
.wrap #acf-group_user>.acf-fields>table.acf-field,
|
616 |
-
.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field,
|
617 |
-
.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field,
|
618 |
-
.wrap #acf-group_user_customer>.acf-fields>table.acf-field {
|
619 |
-
border: none;
|
620 |
-
margin-bottom: 0
|
621 |
-
}
|
622 |
-
|
623 |
-
.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field::before,
|
624 |
-
.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field::before,
|
625 |
-
.wrap #acf-group_term>.acf-fields>table.acf-field::before,
|
626 |
-
.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field::before,
|
627 |
-
.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field::before,
|
628 |
-
.wrap #acf-group_user>.acf-fields>table.acf-field::before,
|
629 |
-
.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field::before,
|
630 |
-
.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field::before,
|
631 |
-
.wrap #acf-group_user_customer>.acf-fields>table.acf-field::before {
|
632 |
-
content: unset
|
633 |
-
}
|
634 |
-
|
635 |
-
.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>td,
|
636 |
-
.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>th,
|
637 |
-
.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>td,
|
638 |
-
.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>th,
|
639 |
-
.wrap #acf-group_term>.acf-fields>table.acf-field>tbody>tr:first-of-type>td,
|
640 |
-
.wrap #acf-group_term>.acf-fields>table.acf-field>tbody>tr:first-of-type>th,
|
641 |
-
.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>td,
|
642 |
-
.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>th,
|
643 |
-
.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>td,
|
644 |
-
.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>th,
|
645 |
-
.wrap #acf-group_user>.acf-fields>table.acf-field>tbody>tr:first-of-type>td,
|
646 |
-
.wrap #acf-group_user>.acf-fields>table.acf-field>tbody>tr:first-of-type>th,
|
647 |
-
.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>td,
|
648 |
-
.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>th,
|
649 |
-
.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>td,
|
650 |
-
.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>th,
|
651 |
-
.wrap #acf-group_user_customer>.acf-fields>table.acf-field>tbody>tr:first-of-type>td,
|
652 |
-
.wrap #acf-group_user_customer>.acf-fields>table.acf-field>tbody>tr:first-of-type>th {
|
653 |
-
border-top: 0
|
654 |
-
}
|
655 |
-
|
656 |
-
.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field,
|
657 |
-
.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field,
|
658 |
-
.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field {
|
659 |
-
padding: 0
|
660 |
-
}
|
661 |
-
|
662 |
-
.edit-tags-php #col-left {
|
663 |
-
display: none;
|
664 |
-
float: none;
|
665 |
-
width: 100%
|
666 |
-
}
|
667 |
-
|
668 |
-
.edit-tags-php #col-left .col-wrap {
|
669 |
-
padding: 0
|
670 |
-
}
|
671 |
-
|
672 |
-
.edit-tags-php #col-left .col-wrap #poststuff {
|
673 |
-
min-width: 100%
|
674 |
-
}
|
675 |
-
|
676 |
-
.edit-tags-php #col-left .col-wrap #poststuff #addtag h2.hndle {
|
677 |
-
border-bottom: 1px solid #ccd0d4
|
678 |
-
}
|
679 |
-
|
680 |
-
.edit-tags-php #col-left .col-wrap #poststuff #addtag .inside .term-name-wrap {
|
681 |
-
border-top: none
|
682 |
-
}
|
683 |
-
|
684 |
-
.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit {
|
685 |
-
display: block;
|
686 |
-
position: relative;
|
687 |
-
margin: 0;
|
688 |
-
padding: 15px 12px;
|
689 |
-
border-top: #eee solid 1px;
|
690 |
-
padding-left: 20%
|
691 |
-
}
|
692 |
-
|
693 |
-
.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit::before {
|
694 |
-
content: "";
|
695 |
-
display: block;
|
696 |
-
position: absolute;
|
697 |
-
z-index: 0;
|
698 |
-
background: #f9f9f9;
|
699 |
-
border-color: #e1e1e1;
|
700 |
-
border-style: solid;
|
701 |
-
border-width: 0 1px 0 0;
|
702 |
-
top: 0;
|
703 |
-
bottom: 0;
|
704 |
-
left: 0;
|
705 |
-
width: 20%
|
706 |
-
}
|
707 |
-
|
708 |
-
.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit::after {
|
709 |
-
content: "";
|
710 |
-
display: block;
|
711 |
-
clear: both
|
712 |
-
}
|
713 |
-
|
714 |
-
.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit>.acf-input {
|
715 |
-
vertical-align: top;
|
716 |
-
float: left;
|
717 |
-
width: 80%;
|
718 |
-
margin: 0;
|
719 |
-
padding: 0 12px
|
720 |
-
}
|
721 |
-
|
722 |
-
@media screen and (max-width:640px) {
|
723 |
-
.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit {
|
724 |
-
padding: 15px 0
|
725 |
-
}
|
726 |
-
|
727 |
-
.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit::before {
|
728 |
-
display: none
|
729 |
-
}
|
730 |
-
|
731 |
-
.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit>.acf-input {
|
732 |
-
width: 100%
|
733 |
-
}
|
734 |
-
}
|
735 |
-
|
736 |
-
.edit-tags-php #col-container #col-right {
|
737 |
-
float: none;
|
738 |
-
width: auto
|
739 |
-
}
|
740 |
-
|
741 |
-
.edit-tags-php #col-container #col-right .col-wrap {
|
742 |
-
padding: 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
743 |
}
|
1 |
+
body:not(.taxonomy-product_cat):not(.woocommerce-page) .wrap {
|
2 |
+
padding-top: 0 !important
|
3 |
+
}
|
4 |
+
|
5 |
+
.wrap {
|
6 |
+
min-width: auto !important
|
7 |
+
}
|
8 |
+
|
9 |
+
@media only screen and (min-width:782px) {
|
10 |
+
|
11 |
+
.wrap:not(#poststuff) form#createuser,
|
12 |
+
.wrap:not(#poststuff) form#edittag,
|
13 |
+
.wrap:not(#poststuff) form#your-profile,
|
14 |
+
.wrap:not(#poststuff) form[action="options-permalink.php"],
|
15 |
+
.wrap:not(#poststuff) form[action="options.php"] {
|
16 |
+
max-width: calc(100% - 300px) !important;
|
17 |
+
position: relative
|
18 |
+
}
|
19 |
+
|
20 |
+
.wrap:not(#poststuff) form#createuser .edit-tag-actions,
|
21 |
+
.wrap:not(#poststuff) form#createuser p.submit,
|
22 |
+
.wrap:not(#poststuff) form#edittag .edit-tag-actions,
|
23 |
+
.wrap:not(#poststuff) form#edittag p.submit,
|
24 |
+
.wrap:not(#poststuff) form#your-profile .edit-tag-actions,
|
25 |
+
.wrap:not(#poststuff) form#your-profile p.submit,
|
26 |
+
.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions,
|
27 |
+
.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit,
|
28 |
+
.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions,
|
29 |
+
.wrap:not(#poststuff) form[action="options.php"] p.submit {
|
30 |
+
-webkit-box-sizing: border-box;
|
31 |
+
box-sizing: border-box;
|
32 |
+
position: absolute;
|
33 |
+
top: 37px;
|
34 |
+
width: 280px;
|
35 |
+
right: -300px;
|
36 |
+
padding: 10px;
|
37 |
+
margin: 0;
|
38 |
+
background: #f5f5f5;
|
39 |
+
text-align: right;
|
40 |
+
border: 1px solid #ccd0d4;
|
41 |
+
border-radius: 0;
|
42 |
+
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
|
43 |
+
box-shadow: 0 1px 1px rgba(0, 0, 0, .04)
|
44 |
+
}
|
45 |
+
|
46 |
+
.wrap:not(#poststuff) form#createuser .edit-tag-actions::before,
|
47 |
+
.wrap:not(#poststuff) form#createuser p.submit::before,
|
48 |
+
.wrap:not(#poststuff) form#edittag .edit-tag-actions::before,
|
49 |
+
.wrap:not(#poststuff) form#edittag p.submit::before,
|
50 |
+
.wrap:not(#poststuff) form#your-profile .edit-tag-actions::before,
|
51 |
+
.wrap:not(#poststuff) form#your-profile p.submit::before,
|
52 |
+
.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions::before,
|
53 |
+
.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit::before,
|
54 |
+
.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions::before,
|
55 |
+
.wrap:not(#poststuff) form[action="options.php"] p.submit::before {
|
56 |
+
-webkit-box-sizing: border-box;
|
57 |
+
box-sizing: border-box;
|
58 |
+
content: "";
|
59 |
+
background: #fff;
|
60 |
+
border: 1px solid #ccd0d4;
|
61 |
+
border-bottom: 0;
|
62 |
+
position: absolute;
|
63 |
+
width: 280px;
|
64 |
+
top: -38px;
|
65 |
+
height: 37px;
|
66 |
+
left: -1px
|
67 |
+
}
|
68 |
+
|
69 |
+
.wrap:not(#poststuff) form#createuser .edit-tag-actions .button,
|
70 |
+
.wrap:not(#poststuff) form#createuser p.submit .button,
|
71 |
+
.wrap:not(#poststuff) form#edittag .edit-tag-actions .button,
|
72 |
+
.wrap:not(#poststuff) form#edittag p.submit .button,
|
73 |
+
.wrap:not(#poststuff) form#your-profile .edit-tag-actions .button,
|
74 |
+
.wrap:not(#poststuff) form#your-profile p.submit .button,
|
75 |
+
.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions .button,
|
76 |
+
.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit .button,
|
77 |
+
.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions .button,
|
78 |
+
.wrap:not(#poststuff) form[action="options.php"] p.submit .button {
|
79 |
+
min-height: 32px;
|
80 |
+
line-height: 2.30769231;
|
81 |
+
padding: 0 12px
|
82 |
+
}
|
83 |
+
|
84 |
+
.wrap:not(#poststuff) form#createuser .edit-tag-actions #delete-link,
|
85 |
+
.wrap:not(#poststuff) form#createuser p.submit #delete-link,
|
86 |
+
.wrap:not(#poststuff) form#edittag .edit-tag-actions #delete-link,
|
87 |
+
.wrap:not(#poststuff) form#edittag p.submit #delete-link,
|
88 |
+
.wrap:not(#poststuff) form#your-profile .edit-tag-actions #delete-link,
|
89 |
+
.wrap:not(#poststuff) form#your-profile p.submit #delete-link,
|
90 |
+
.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions #delete-link,
|
91 |
+
.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit #delete-link,
|
92 |
+
.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions #delete-link,
|
93 |
+
.wrap:not(#poststuff) form[action="options.php"] p.submit #delete-link {
|
94 |
+
float: left;
|
95 |
+
margin: 0;
|
96 |
+
text-decoration: underline
|
97 |
+
}
|
98 |
+
}
|
99 |
+
|
100 |
+
.wrap>form:not(.search-form) {
|
101 |
+
margin-top: 13px;
|
102 |
+
max-width: 100% !important
|
103 |
+
}
|
104 |
+
|
105 |
+
.wrap>form>div>div>h2,
|
106 |
+
.wrap>form>div>div>h3,
|
107 |
+
.wrap>form>h2,
|
108 |
+
.wrap>form>h3 {
|
109 |
+
background: #fff;
|
110 |
+
border: 1px solid #c3c4c7;
|
111 |
+
margin: 0;
|
112 |
+
color: #23282d;
|
113 |
+
font-size: 14px;
|
114 |
+
padding: 8px 12px;
|
115 |
+
line-height: 1.4
|
116 |
+
}
|
117 |
+
|
118 |
+
.wrap>form>div>div>h2~p,
|
119 |
+
.wrap>form>div>div>h3~p,
|
120 |
+
.wrap>form>h2~p,
|
121 |
+
.wrap>form>h3~p {
|
122 |
+
margin: 0;
|
123 |
+
border: 1px solid #c3c4c7;
|
124 |
+
border-top: 0;
|
125 |
+
padding: 15px 12px
|
126 |
+
}
|
127 |
+
|
128 |
+
.wrap>form>div>div>h2+.form-table,
|
129 |
+
.wrap>form>div>div>h2~p+.form-table,
|
130 |
+
.wrap>form>div>div>h3+.form-table,
|
131 |
+
.wrap>form>div>div>h3~p+.form-table,
|
132 |
+
.wrap>form>h2+.form-table,
|
133 |
+
.wrap>form>h2~p+.form-table,
|
134 |
+
.wrap>form>h3+.form-table,
|
135 |
+
.wrap>form>h3~p+.form-table {
|
136 |
+
margin-top: 0
|
137 |
+
}
|
138 |
+
|
139 |
+
.wrap>form .form-table {
|
140 |
+
background: #fff;
|
141 |
+
width: 100%;
|
142 |
+
border: 1px solid #c3c4c7;
|
143 |
+
border-top: 0;
|
144 |
+
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
|
145 |
+
box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
|
146 |
+
margin-bottom: 20px
|
147 |
+
}
|
148 |
+
|
149 |
+
.wrap>form .form-table.rank-math-metabox-frame {
|
150 |
+
border-top: 1px solid #c3c4c7
|
151 |
+
}
|
152 |
+
|
153 |
+
.wrap>form .form-table>tbody>tr.acf-field {
|
154 |
+
position: initial
|
155 |
+
}
|
156 |
+
|
157 |
+
.wrap>form .form-table>tbody>tr.acf-tab-wrap>td {
|
158 |
+
background: #f9f9f9;
|
159 |
+
padding: 15px 0 0 0
|
160 |
+
}
|
161 |
+
|
162 |
+
.wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group {
|
163 |
+
border-bottom: 0;
|
164 |
+
padding: 0 0 0 20%
|
165 |
+
}
|
166 |
+
|
167 |
+
.wrap>form .form-table>tbody>tr.acf-tab-wrap>td ul.acf-tab-group>li.active a {
|
168 |
+
background: #fff
|
169 |
+
}
|
170 |
+
|
171 |
+
.wrap>form .form-table>tbody>tr>td {
|
172 |
+
background: #fff;
|
173 |
+
border-top: 1px solid #eee;
|
174 |
+
position: initial;
|
175 |
+
padding: 15px 12px
|
176 |
+
}
|
177 |
+
|
178 |
+
.wrap>form .form-table>tbody>tr>td.td-full {
|
179 |
+
padding: 15px 12px
|
180 |
+
}
|
181 |
+
|
182 |
+
.wrap>form .form-table>tbody>tr>td p {
|
183 |
+
font-size: 13px
|
184 |
+
}
|
185 |
+
|
186 |
+
.wrap>form .form-table>tbody>tr>td.acf-label,
|
187 |
+
.wrap>form .form-table>tbody>tr>th {
|
188 |
+
border-top: 1px solid #eee;
|
189 |
+
border-right: 1px solid #e1e1e1;
|
190 |
+
background: #f9f9f9;
|
191 |
+
padding: 15px 12px;
|
192 |
+
width: 20%;
|
193 |
+
font-size: 13px;
|
194 |
+
position: initial;
|
195 |
+
color: #444
|
196 |
+
}
|
197 |
+
|
198 |
+
.wrap>form .form-table>tbody>tr>td.acf-label label,
|
199 |
+
.wrap>form .form-table>tbody>tr>th label {
|
200 |
+
vertical-align: top
|
201 |
+
}
|
202 |
+
|
203 |
+
.wrap>form .form-table>tbody>tr:first-of-type td,
|
204 |
+
.wrap>form .form-table>tbody>tr:first-of-type th {
|
205 |
+
border-top: 0
|
206 |
+
}
|
207 |
+
|
208 |
+
.wrap>form .form-table textarea {
|
209 |
+
width: 100%
|
210 |
+
}
|
211 |
+
|
212 |
+
.wrap>form .form-table .regular-text {
|
213 |
+
width: 100%;
|
214 |
+
max-width: 25em
|
215 |
+
}
|
216 |
+
|
217 |
+
@media only screen and (max-width:782px) {
|
218 |
+
|
219 |
+
.wrap>form>div>div>h2,
|
220 |
+
.wrap>form>div>div>h3,
|
221 |
+
.wrap>form>h2,
|
222 |
+
.wrap>form>h3 {
|
223 |
+
padding: 12px
|
224 |
+
}
|
225 |
+
|
226 |
+
.wrap>form table.form-table>tbody>tr {
|
227 |
+
display: block;
|
228 |
+
padding: 15px 12px;
|
229 |
+
border-top: 1px solid #eee
|
230 |
+
}
|
231 |
+
|
232 |
+
.wrap>form table.form-table>tbody>tr>td.acf-label,
|
233 |
+
.wrap>form table.form-table>tbody>tr>th {
|
234 |
+
margin-bottom: 10px
|
235 |
+
}
|
236 |
+
|
237 |
+
.wrap>form table.form-table>tbody>tr>td,
|
238 |
+
.wrap>form table.form-table>tbody>tr>td.acf-label,
|
239 |
+
.wrap>form table.form-table>tbody>tr>th {
|
240 |
+
padding: 0;
|
241 |
+
display: block;
|
242 |
+
width: auto;
|
243 |
+
background: 0 0;
|
244 |
+
border: 0 !important
|
245 |
+
}
|
246 |
+
|
247 |
+
.wrap>form table.form-table>tbody>tr:first-child {
|
248 |
+
border-top: 0
|
249 |
+
}
|
250 |
+
}
|
251 |
+
|
252 |
+
.wrap #titlediv {
|
253 |
+
margin-bottom: 10px
|
254 |
+
}
|
255 |
+
|
256 |
+
.wrap #titlediv input {
|
257 |
+
padding: 3px 8px;
|
258 |
+
font-size: 1.7em;
|
259 |
+
line-height: 100%;
|
260 |
+
height: 1.7em;
|
261 |
+
width: 100%;
|
262 |
+
outline: 0;
|
263 |
+
margin: 0 0 3px;
|
264 |
+
background-color: #fff
|
265 |
+
}
|
266 |
+
|
267 |
+
.wrap .postbox .hndle {
|
268 |
+
cursor: auto;
|
269 |
+
-webkit-user-select: auto;
|
270 |
+
-moz-user-select: auto;
|
271 |
+
-ms-user-select: auto;
|
272 |
+
user-select: auto
|
273 |
+
}
|
274 |
+
|
275 |
+
.wrap .postbox .handle-actions button,
|
276 |
+
.wrap .postbox .handle-actions span {
|
277 |
+
display: none
|
278 |
+
}
|
279 |
+
|
280 |
+
.wrap .postbox .handle-actions .acf-hndle-cog {
|
281 |
+
width: 2.2rem
|
282 |
+
}
|
283 |
+
|
284 |
+
.wrap #submitdiv #major-publishing-actions {
|
285 |
+
border-top: 0
|
286 |
+
}
|
287 |
+
|
288 |
+
.wrap #submitdiv #major-publishing-actions #publishing-action {
|
289 |
+
float: none;
|
290 |
+
margin: 0
|
291 |
+
}
|
292 |
+
|
293 |
+
.wrap #submitdiv #major-publishing-actions #publishing-action .button {
|
294 |
+
float: right
|
295 |
+
}
|
296 |
+
|
297 |
+
.wrap #submitdiv #major-publishing-actions #publishing-action .spinner {
|
298 |
+
margin: 5px 10px 0
|
299 |
+
}
|
300 |
+
|
301 |
+
.wrap #submitdiv #major-publishing-actions #publishing-action #delete-link {
|
302 |
+
float: left;
|
303 |
+
margin-left: 0
|
304 |
+
}
|
305 |
+
|
306 |
+
.wrap #submitdiv #major-publishing-actions #publishing-action #delete-link a {
|
307 |
+
text-decoration: underline
|
308 |
+
}
|
309 |
+
|
310 |
+
.wrap form#createuser .acf-field input[type=email],
|
311 |
+
.wrap form#createuser .acf-field input[type=number],
|
312 |
+
.wrap form#createuser .acf-field input[type=password],
|
313 |
+
.wrap form#createuser .acf-field input[type=search],
|
314 |
+
.wrap form#createuser .acf-field input[type=text],
|
315 |
+
.wrap form#createuser .acf-field input[type=url],
|
316 |
+
.wrap form#createuser .acf-field select,
|
317 |
+
.wrap form#your-profile .acf-field input[type=email],
|
318 |
+
.wrap form#your-profile .acf-field input[type=number],
|
319 |
+
.wrap form#your-profile .acf-field input[type=password],
|
320 |
+
.wrap form#your-profile .acf-field input[type=search],
|
321 |
+
.wrap form#your-profile .acf-field input[type=text],
|
322 |
+
.wrap form#your-profile .acf-field input[type=url],
|
323 |
+
.wrap form#your-profile .acf-field select {
|
324 |
+
max-width: 100%
|
325 |
+
}
|
326 |
+
|
327 |
+
.wrap form#createuser .acf-field textarea,
|
328 |
+
.wrap form#your-profile .acf-field textarea {
|
329 |
+
width: 100%;
|
330 |
+
max-width: none
|
331 |
+
}
|
332 |
+
|
333 |
+
.wrap form#createuser .acf-tab-wrap,
|
334 |
+
.wrap form#your-profile .acf-tab-wrap {
|
335 |
+
position: relative
|
336 |
+
}
|
337 |
+
|
338 |
+
.wrap form#createuser select#ure_select_other_roles,
|
339 |
+
.wrap form#your-profile select#ure_select_other_roles {
|
340 |
+
width: 100% !important;
|
341 |
+
max-width: 500px !important
|
342 |
+
}
|
343 |
+
|
344 |
+
.wrap form#createuser select#ure_select_other_roles+.ms-parent,
|
345 |
+
.wrap form#your-profile select#ure_select_other_roles+.ms-parent {
|
346 |
+
width: 100% !important;
|
347 |
+
max-width: 500px !important
|
348 |
+
}
|
349 |
+
|
350 |
+
.wrap form#createuser select#ure_select_other_roles+.ms-parent .ms-choice,
|
351 |
+
.wrap form#your-profile select#ure_select_other_roles+.ms-parent .ms-choice {
|
352 |
+
-webkit-box-shadow: 0 0 0 transparent;
|
353 |
+
box-shadow: 0 0 0 transparent;
|
354 |
+
border-radius: 3px;
|
355 |
+
border: 1px solid #7e8993;
|
356 |
+
color: #32373c;
|
357 |
+
padding: 4px 8px;
|
358 |
+
margin: 0;
|
359 |
+
-webkit-box-sizing: border-box;
|
360 |
+
box-sizing: border-box;
|
361 |
+
font-size: 14px;
|
362 |
+
line-height: 2.1;
|
363 |
+
min-height: 30px;
|
364 |
+
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%;
|
365 |
+
background-size: 16px 16px;
|
366 |
+
cursor: pointer
|
367 |
+
}
|
368 |
+
|
369 |
+
.wrap form#createuser select#ure_select_other_roles+.ms-parent .ms-choice>span.placeholder,
|
370 |
+
.wrap form#your-profile select#ure_select_other_roles+.ms-parent .ms-choice>span.placeholder {
|
371 |
+
color: #32373c
|
372 |
+
}
|
373 |
+
|
374 |
+
.wrap form#createuser select#ure_select_other_roles+.ms-parent .ms-choice>div,
|
375 |
+
.wrap form#your-profile select#ure_select_other_roles+.ms-parent .ms-choice>div {
|
376 |
+
display: none
|
377 |
+
}
|
378 |
+
|
379 |
+
.wrap form#createuser .yoast-settings,
|
380 |
+
.wrap form#your-profile .yoast-settings {
|
381 |
+
padding: 0;
|
382 |
+
margin-bottom: 20px;
|
383 |
+
font-size: 13px
|
384 |
+
}
|
385 |
+
|
386 |
+
.wrap form#createuser .yoast-settings h2,
|
387 |
+
.wrap form#your-profile .yoast-settings h2 {
|
388 |
+
margin: 0
|
389 |
+
}
|
390 |
+
|
391 |
+
.wrap form#createuser .yoast-settings label,
|
392 |
+
.wrap form#your-profile .yoast-settings label {
|
393 |
+
margin: 0;
|
394 |
+
padding: 0;
|
395 |
+
width: auto;
|
396 |
+
font-size: 13px;
|
397 |
+
color: #444;
|
398 |
+
line-height: 1.7
|
399 |
+
}
|
400 |
+
|
401 |
+
.wrap form#createuser .yoast-settings .description,
|
402 |
+
.wrap form#your-profile .yoast-settings .description {
|
403 |
+
font-size: 13px;
|
404 |
+
margin: 0 0 5px;
|
405 |
+
color: #666
|
406 |
+
}
|
407 |
+
|
408 |
+
.wrap form#createuser .yoast-settings input,
|
409 |
+
.wrap form#createuser .yoast-settings textarea,
|
410 |
+
.wrap form#your-profile .yoast-settings input,
|
411 |
+
.wrap form#your-profile .yoast-settings textarea {
|
412 |
+
margin: 0
|
413 |
+
}
|
414 |
+
|
415 |
+
.wrap form#createuser .yoast-settings textarea,
|
416 |
+
.wrap form#your-profile .yoast-settings textarea {
|
417 |
+
margin-bottom: 10px
|
418 |
+
}
|
419 |
+
|
420 |
+
.wrap form#createuser .yoast-settings input[type=checkbox],
|
421 |
+
.wrap form#your-profile .yoast-settings input[type=checkbox] {
|
422 |
+
margin-right: 5px;
|
423 |
+
vertical-align: -6px
|
424 |
+
}
|
425 |
+
|
426 |
+
.wrap form#createuser .form-table[role=presentation] tr.user-language-wrap th[colspan="2"],
|
427 |
+
.wrap form#your-profile .form-table[role=presentation] tr.user-language-wrap th[colspan="2"] {
|
428 |
+
display: none
|
429 |
+
}
|
430 |
+
|
431 |
+
.wrap form#addtag .acf-fields.-left>.acf-field,
|
432 |
+
.wrap form#edittag .acf-fields.-left>.acf-field {
|
433 |
+
padding-left: 0
|
434 |
+
}
|
435 |
+
|
436 |
+
.wrap form#addtag .acf-fields.-left>.acf-field.acfe-bt-no-label,
|
437 |
+
.wrap form#edittag .acf-fields.-left>.acf-field.acfe-bt-no-label {
|
438 |
+
padding-left: 20%
|
439 |
+
}
|
440 |
+
|
441 |
+
@media only screen and (max-width:640px) {
|
442 |
+
|
443 |
+
.wrap form#addtag .acf-fields.-left>.acf-field.acfe-bt-no-label,
|
444 |
+
.wrap form#edittag .acf-fields.-left>.acf-field.acfe-bt-no-label {
|
445 |
+
padding-left: 0
|
446 |
+
}
|
447 |
+
}
|
448 |
+
|
449 |
+
.wrap form#addtag .acf-fields.-left>.acf-field::before,
|
450 |
+
.wrap form#edittag .acf-fields.-left>.acf-field::before {
|
451 |
+
width: 20%
|
452 |
+
}
|
453 |
+
|
454 |
+
.wrap form#addtag .acf-fields.-left>.acf-field>.acf-label,
|
455 |
+
.wrap form#edittag .acf-fields.-left>.acf-field>.acf-label {
|
456 |
+
width: 20%;
|
457 |
+
margin-left: 0;
|
458 |
+
padding: 0 12px
|
459 |
+
}
|
460 |
+
|
461 |
+
.wrap form#addtag .acf-fields.-left>.acf-field>.acf-label label,
|
462 |
+
.wrap form#edittag .acf-fields.-left>.acf-field>.acf-label label {
|
463 |
+
color: #444
|
464 |
+
}
|
465 |
+
|
466 |
+
.wrap form#addtag .acf-fields.-left>.acf-field>.acf-input,
|
467 |
+
.wrap form#edittag .acf-fields.-left>.acf-field>.acf-input {
|
468 |
+
padding: 0 12px
|
469 |
+
}
|
470 |
+
|
471 |
+
.wrap form#addtag .form-field p,
|
472 |
+
.wrap form#addtag .form-field select,
|
473 |
+
.wrap form#edittag .form-field p,
|
474 |
+
.wrap form#edittag .form-field select {
|
475 |
+
max-width: 100%
|
476 |
+
}
|
477 |
+
|
478 |
+
.wrap form#addtag .form-field input[type=email],
|
479 |
+
.wrap form#addtag .form-field input[type=number],
|
480 |
+
.wrap form#addtag .form-field input[type=password],
|
481 |
+
.wrap form#addtag .form-field input[type=search],
|
482 |
+
.wrap form#addtag .form-field input[type=tel],
|
483 |
+
.wrap form#addtag .form-field input[type=text],
|
484 |
+
.wrap form#addtag .form-field input[type=url],
|
485 |
+
.wrap form#addtag .form-field select,
|
486 |
+
.wrap form#addtag .form-field textarea,
|
487 |
+
.wrap form#edittag .form-field input[type=email],
|
488 |
+
.wrap form#edittag .form-field input[type=number],
|
489 |
+
.wrap form#edittag .form-field input[type=password],
|
490 |
+
.wrap form#edittag .form-field input[type=search],
|
491 |
+
.wrap form#edittag .form-field input[type=tel],
|
492 |
+
.wrap form#edittag .form-field input[type=text],
|
493 |
+
.wrap form#edittag .form-field input[type=url],
|
494 |
+
.wrap form#edittag .form-field select,
|
495 |
+
.wrap form#edittag .form-field textarea {
|
496 |
+
width: 100%
|
497 |
+
}
|
498 |
+
|
499 |
+
.wrap form#edittag .acf-column-1>#wp-description-wrap {
|
500 |
+
display: none
|
501 |
+
}
|
502 |
+
|
503 |
+
.wrap form#edittag .postbox.wpseo-taxonomy-metabox-postbox>h2 {
|
504 |
+
border-bottom: 1px solid #ccd0d4
|
505 |
+
}
|
506 |
+
|
507 |
+
.wrap form#edittag tr.wpml-term-languages-wrap {
|
508 |
+
display: none
|
509 |
+
}
|
510 |
+
|
511 |
+
.wrap form#edittag #icl-tax-postbox .inside {
|
512 |
+
margin: 0;
|
513 |
+
padding: 15px 12px
|
514 |
+
}
|
515 |
+
|
516 |
+
.wrap form#edittag #icl-tax-postbox .inside table.icl_translations_table {
|
517 |
+
width: 100%
|
518 |
+
}
|
519 |
+
|
520 |
+
.wrap #add-term-translations,
|
521 |
+
.wrap #edit-term-translations {
|
522 |
+
border: none;
|
523 |
+
width: 100%
|
524 |
+
}
|
525 |
+
|
526 |
+
.wrap #select-add-term-language select,
|
527 |
+
.wrap #select-edit-term-language select {
|
528 |
+
width: auto !important;
|
529 |
+
padding-right: 25px
|
530 |
+
}
|
531 |
+
|
532 |
+
.wrap #select-add-term-language+p,
|
533 |
+
.wrap #select-edit-term-language+p {
|
534 |
+
display: none
|
535 |
+
}
|
536 |
+
|
537 |
+
.wrap #select-add-term-language p.description,
|
538 |
+
.wrap #select-edit-term-language p.description {
|
539 |
+
display: none
|
540 |
+
}
|
541 |
+
|
542 |
+
.wrap #term-translations>p {
|
543 |
+
position: relative;
|
544 |
+
width: 20%;
|
545 |
+
padding: 0 12px;
|
546 |
+
float: left;
|
547 |
+
-webkit-box-sizing: border-box;
|
548 |
+
box-sizing: border-box;
|
549 |
+
margin: 0;
|
550 |
+
font-size: 13px;
|
551 |
+
font-weight: 600;
|
552 |
+
color: #444
|
553 |
+
}
|
554 |
+
|
555 |
+
.wrap #term-translations>.icl_subsubsub {
|
556 |
+
position: relative;
|
557 |
+
width: 20%;
|
558 |
+
-webkit-box-sizing: border-box;
|
559 |
+
box-sizing: border-box;
|
560 |
+
padding: 0 12px;
|
561 |
+
float: left
|
562 |
+
}
|
563 |
+
|
564 |
+
.wrap #term-translations #add-term-translations {
|
565 |
+
width: 80%;
|
566 |
+
position: relative;
|
567 |
+
float: left;
|
568 |
+
clear: none;
|
569 |
+
background: 0 0;
|
570 |
+
padding: 0 12px
|
571 |
+
}
|
572 |
+
|
573 |
+
.wrap #term-translations #add-term-translations td.pll-translation-column {
|
574 |
+
padding-left: 0;
|
575 |
+
padding-right: 0
|
576 |
+
}
|
577 |
+
|
578 |
+
.wrap #term-translations #add-term-translations td,
|
579 |
+
.wrap #term-translations #add-term-translations th {
|
580 |
+
padding-top: 4px;
|
581 |
+
padding-bottom: 4px
|
582 |
+
}
|
583 |
+
|
584 |
+
.wrap #term-translations #add-term-translations tr:first-of-type td,
|
585 |
+
.wrap #term-translations #add-term-translations tr:first-of-type th {
|
586 |
+
padding-top: 0
|
587 |
+
}
|
588 |
+
|
589 |
+
.wrap #term-translations #add-term-translations tr:last-of-type td,
|
590 |
+
.wrap #term-translations #add-term-translations tr:last-of-type th {
|
591 |
+
padding-bottom: 0
|
592 |
+
}
|
593 |
+
|
594 |
+
.wrap #term-translations #edit-term-translations td,
|
595 |
+
.wrap #term-translations #edit-term-translations th {
|
596 |
+
padding-top: 2px;
|
597 |
+
padding-bottom: 2px
|
598 |
+
}
|
599 |
+
|
600 |
+
.wrap #term-translations #edit-term-translations tr:first-of-type td,
|
601 |
+
.wrap #term-translations #edit-term-translations tr:first-of-type th {
|
602 |
+
padding-top: 0
|
603 |
+
}
|
604 |
+
|
605 |
+
.wrap #term-translations #edit-term-translations tr:last-of-type td,
|
606 |
+
.wrap #term-translations #edit-term-translations tr:last-of-type th {
|
607 |
+
padding-bottom: 0
|
608 |
+
}
|
609 |
+
|
610 |
+
.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field,
|
611 |
+
.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field,
|
612 |
+
.wrap #acf-group_term>.acf-fields>table.acf-field,
|
613 |
+
.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field,
|
614 |
+
.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field,
|
615 |
+
.wrap #acf-group_user>.acf-fields>table.acf-field,
|
616 |
+
.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field,
|
617 |
+
.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field,
|
618 |
+
.wrap #acf-group_user_customer>.acf-fields>table.acf-field {
|
619 |
+
border: none;
|
620 |
+
margin-bottom: 0
|
621 |
+
}
|
622 |
+
|
623 |
+
.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field::before,
|
624 |
+
.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field::before,
|
625 |
+
.wrap #acf-group_term>.acf-fields>table.acf-field::before,
|
626 |
+
.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field::before,
|
627 |
+
.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field::before,
|
628 |
+
.wrap #acf-group_user>.acf-fields>table.acf-field::before,
|
629 |
+
.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field::before,
|
630 |
+
.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field::before,
|
631 |
+
.wrap #acf-group_user_customer>.acf-fields>table.acf-field::before {
|
632 |
+
content: unset
|
633 |
+
}
|
634 |
+
|
635 |
+
.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>td,
|
636 |
+
.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>th,
|
637 |
+
.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>td,
|
638 |
+
.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>th,
|
639 |
+
.wrap #acf-group_term>.acf-fields>table.acf-field>tbody>tr:first-of-type>td,
|
640 |
+
.wrap #acf-group_term>.acf-fields>table.acf-field>tbody>tr:first-of-type>th,
|
641 |
+
.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>td,
|
642 |
+
.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>th,
|
643 |
+
.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>td,
|
644 |
+
.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>th,
|
645 |
+
.wrap #acf-group_user>.acf-fields>table.acf-field>tbody>tr:first-of-type>td,
|
646 |
+
.wrap #acf-group_user>.acf-fields>table.acf-field>tbody>tr:first-of-type>th,
|
647 |
+
.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>td,
|
648 |
+
.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>th,
|
649 |
+
.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>td,
|
650 |
+
.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>th,
|
651 |
+
.wrap #acf-group_user_customer>.acf-fields>table.acf-field>tbody>tr:first-of-type>td,
|
652 |
+
.wrap #acf-group_user_customer>.acf-fields>table.acf-field>tbody>tr:first-of-type>th {
|
653 |
+
border-top: 0
|
654 |
+
}
|
655 |
+
|
656 |
+
.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field,
|
657 |
+
.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field,
|
658 |
+
.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field {
|
659 |
+
padding: 0
|
660 |
+
}
|
661 |
+
|
662 |
+
.edit-tags-php #col-left {
|
663 |
+
display: none;
|
664 |
+
float: none;
|
665 |
+
width: 100%
|
666 |
+
}
|
667 |
+
|
668 |
+
.edit-tags-php #col-left .col-wrap {
|
669 |
+
padding: 0
|
670 |
+
}
|
671 |
+
|
672 |
+
.edit-tags-php #col-left .col-wrap #poststuff {
|
673 |
+
min-width: 100%
|
674 |
+
}
|
675 |
+
|
676 |
+
.edit-tags-php #col-left .col-wrap #poststuff #addtag h2.hndle {
|
677 |
+
border-bottom: 1px solid #ccd0d4
|
678 |
+
}
|
679 |
+
|
680 |
+
.edit-tags-php #col-left .col-wrap #poststuff #addtag .inside .term-name-wrap {
|
681 |
+
border-top: none
|
682 |
+
}
|
683 |
+
|
684 |
+
.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit {
|
685 |
+
display: block;
|
686 |
+
position: relative;
|
687 |
+
margin: 0;
|
688 |
+
padding: 15px 12px;
|
689 |
+
border-top: #eee solid 1px;
|
690 |
+
padding-left: 20%
|
691 |
+
}
|
692 |
+
|
693 |
+
.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit::before {
|
694 |
+
content: "";
|
695 |
+
display: block;
|
696 |
+
position: absolute;
|
697 |
+
z-index: 0;
|
698 |
+
background: #f9f9f9;
|
699 |
+
border-color: #e1e1e1;
|
700 |
+
border-style: solid;
|
701 |
+
border-width: 0 1px 0 0;
|
702 |
+
top: 0;
|
703 |
+
bottom: 0;
|
704 |
+
left: 0;
|
705 |
+
width: 20%
|
706 |
+
}
|
707 |
+
|
708 |
+
.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit::after {
|
709 |
+
content: "";
|
710 |
+
display: block;
|
711 |
+
clear: both
|
712 |
+
}
|
713 |
+
|
714 |
+
.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit>.acf-input {
|
715 |
+
vertical-align: top;
|
716 |
+
float: left;
|
717 |
+
width: 80%;
|
718 |
+
margin: 0;
|
719 |
+
padding: 0 12px
|
720 |
+
}
|
721 |
+
|
722 |
+
@media screen and (max-width:640px) {
|
723 |
+
.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit {
|
724 |
+
padding: 15px 0
|
725 |
+
}
|
726 |
+
|
727 |
+
.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit::before {
|
728 |
+
display: none
|
729 |
+
}
|
730 |
+
|
731 |
+
.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit>.acf-input {
|
732 |
+
width: 100%
|
733 |
+
}
|
734 |
+
}
|
735 |
+
|
736 |
+
.edit-tags-php #col-container #col-right {
|
737 |
+
float: none;
|
738 |
+
width: auto
|
739 |
+
}
|
740 |
+
|
741 |
+
.edit-tags-php #col-container #col-right .col-wrap {
|
742 |
+
padding: 0
|
743 |
+
}
|
744 |
+
|
745 |
+
body.post-type-attachment .wrap #submitdiv #major-publishing-actions {
|
746 |
+
border-top: 1px solid #dcdcde
|
747 |
+
}
|
748 |
+
|
749 |
+
body.post-type-attachment .wrap>form:not(.search-form) {
|
750 |
+
margin-top: 0
|
751 |
+
}
|
752 |
+
|
753 |
+
body.post-type-attachment .wrap>form .wp_attachment_holder {
|
754 |
+
background: #fff;
|
755 |
+
padding: 15px;
|
756 |
+
border: 1px solid #c3c4c7;
|
757 |
+
-webkit-box-shadow: 0 1px 1px rgb(0 0 0 / 4%);
|
758 |
+
box-shadow: 0 1px 1px rgb(0 0 0 / 4%)
|
759 |
+
}
|
760 |
+
|
761 |
+
body.post-type-attachment .wrap>form .wp_attachment_holder .wp_attachment_image>p:first-of-type {
|
762 |
+
margin-top: 0
|
763 |
+
}
|
764 |
+
|
765 |
+
body.post-type-attachment .wrap>form .wp_attachment_holder .image-editor .imgedit-settings .imgedit-group {
|
766 |
+
background: #f9f9f9
|
767 |
+
}
|
768 |
+
|
769 |
+
body.post-type-attachment .wrap>form .wp_attachment_details {
|
770 |
+
margin-bottom: 0;
|
771 |
+
margin-top: 20px
|
772 |
+
}
|
773 |
+
|
774 |
+
body.post-type-attachment .wrap>form .wp_attachment_details p.attachment-alt-text-description {
|
775 |
+
margin-bottom: 0
|
776 |
}
|
assets/css/acfe-ui.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
body:not(.taxonomy-product_cat):not(.woocommerce-page) .wrap{padding-top:0!important}.wrap{min-width:auto!important}@media only screen and (min-width:782px){.wrap:not(#poststuff) form#createuser,.wrap:not(#poststuff) form#edittag,.wrap:not(#poststuff) form#your-profile,.wrap:not(#poststuff) form[action="options-permalink.php"],.wrap:not(#poststuff) form[action="options.php"]{max-width:calc(100% - 300px)!important;position:relative}.wrap:not(#poststuff) form#createuser .edit-tag-actions,.wrap:not(#poststuff) form#createuser p.submit,.wrap:not(#poststuff) form#edittag .edit-tag-actions,.wrap:not(#poststuff) form#edittag p.submit,.wrap:not(#poststuff) form#your-profile .edit-tag-actions,.wrap:not(#poststuff) form#your-profile p.submit,.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions,.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit,.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions,.wrap:not(#poststuff) form[action="options.php"] p.submit{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;top:37px;width:280px;right:-300px;padding:10px;margin:0;background:#f5f5f5;text-align:right;border:1px solid #ccd0d4;border-radius:0;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04)}.wrap:not(#poststuff) form#createuser .edit-tag-actions::before,.wrap:not(#poststuff) form#createuser p.submit::before,.wrap:not(#poststuff) form#edittag .edit-tag-actions::before,.wrap:not(#poststuff) form#edittag p.submit::before,.wrap:not(#poststuff) form#your-profile .edit-tag-actions::before,.wrap:not(#poststuff) form#your-profile p.submit::before,.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions::before,.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit::before,.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions::before,.wrap:not(#poststuff) form[action="options.php"] p.submit::before{-webkit-box-sizing:border-box;box-sizing:border-box;content:"";background:#fff;border:1px solid #ccd0d4;border-bottom:0;position:absolute;width:280px;top:-38px;height:37px;left:-1px}.wrap:not(#poststuff) form#createuser .edit-tag-actions .button,.wrap:not(#poststuff) form#createuser p.submit .button,.wrap:not(#poststuff) form#edittag .edit-tag-actions .button,.wrap:not(#poststuff) form#edittag p.submit .button,.wrap:not(#poststuff) form#your-profile .edit-tag-actions .button,.wrap:not(#poststuff) form#your-profile p.submit .button,.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions .button,.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit .button,.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions .button,.wrap:not(#poststuff) form[action="options.php"] p.submit .button{min-height:32px;line-height:2.30769231;padding:0 12px}.wrap:not(#poststuff) form#createuser .edit-tag-actions #delete-link,.wrap:not(#poststuff) form#createuser p.submit #delete-link,.wrap:not(#poststuff) form#edittag .edit-tag-actions #delete-link,.wrap:not(#poststuff) form#edittag p.submit #delete-link,.wrap:not(#poststuff) form#your-profile .edit-tag-actions #delete-link,.wrap:not(#poststuff) form#your-profile p.submit #delete-link,.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions #delete-link,.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit #delete-link,.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions #delete-link,.wrap:not(#poststuff) form[action="options.php"] p.submit #delete-link{float:left;margin:0;text-decoration:underline}}.wrap>form:not(.search-form){margin-top:13px;max-width:100%!important}.wrap>form>div>div>h2,.wrap>form>div>div>h3,.wrap>form>h2,.wrap>form>h3{background:#fff;border:1px solid #c3c4c7;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 #c3c4c7;border-top: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 #c3c4c7;border-top:0;-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.rank-math-metabox-frame{border-top:1px solid #c3c4c7}.wrap>form .form-table>tbody>tr.acf-field{position:initial}.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:initial;padding:15px 12px}.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:initial;color:#444}.wrap>form .form-table>tbody>tr>td.acf-label label,.wrap>form .form-table>tbody>tr>th label{vertical-align:top}.wrap>form .form-table>tbody>tr:first-of-type td,.wrap>form .form-table>tbody>tr:first-of-type th{border-top:0}.wrap>form .form-table textarea{width:100%}.wrap>form .form-table .regular-text{width:100%;max-width:25em}@media only screen and (max-width:782px){.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:0 0;border:0!important}.wrap>form table.form-table>tbody>tr:first-child{border-top:0}}.wrap #titlediv{margin-bottom:10px}.wrap #titlediv input{padding:3px 8px;font-size:1.7em;line-height:100%;height:1.7em;width:100%;outline:0;margin:0 0 3px;background-color:#fff}.wrap .postbox .hndle{cursor:auto;-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.wrap .postbox .handle-actions button,.wrap .postbox .handle-actions span{display:none}.wrap .postbox .handle-actions .acf-hndle-cog{width:2.2rem}.wrap #submitdiv #major-publishing-actions{border-top:0}.wrap #submitdiv #major-publishing-actions #publishing-action{float:none;margin:0}.wrap #submitdiv #major-publishing-actions #publishing-action .button{float:right}.wrap #submitdiv #major-publishing-actions #publishing-action .spinner{margin:5px 10px 0}.wrap #submitdiv #major-publishing-actions #publishing-action #delete-link{float:left;margin-left:0}.wrap #submitdiv #major-publishing-actions #publishing-action #delete-link a{text-decoration:underline}.wrap form#createuser .acf-field input[type=email],.wrap form#createuser .acf-field input[type=number],.wrap form#createuser .acf-field input[type=password],.wrap form#createuser .acf-field input[type=search],.wrap form#createuser .acf-field input[type=text],.wrap form#createuser .acf-field input[type=url],.wrap form#createuser .acf-field select,.wrap form#your-profile .acf-field input[type=email],.wrap form#your-profile .acf-field input[type=number],.wrap form#your-profile .acf-field input[type=password],.wrap form#your-profile .acf-field input[type=search],.wrap form#your-profile .acf-field input[type=text],.wrap form#your-profile .acf-field input[type=url],.wrap form#your-profile .acf-field select{max-width:100%}.wrap form#createuser .acf-field textarea,.wrap form#your-profile .acf-field textarea{width:100%;max-width:none}.wrap form#createuser .acf-tab-wrap,.wrap form#your-profile .acf-tab-wrap{position:relative}.wrap form#createuser select#ure_select_other_roles,.wrap form#createuser select#ure_select_other_roles+.ms-parent,.wrap form#your-profile select#ure_select_other_roles,.wrap form#your-profile select#ure_select_other_roles+.ms-parent{width:100%!important;max-width:500px!important}.wrap form#createuser select#ure_select_other_roles+.ms-parent .ms-choice,.wrap form#your-profile 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: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') right 5px top 55%/16px 16px no-repeat #fff;cursor:pointer}.wrap form#createuser select#ure_select_other_roles+.ms-parent .ms-choice>span.placeholder,.wrap form#your-profile select#ure_select_other_roles+.ms-parent .ms-choice>span.placeholder{color:#32373c}.wrap form#createuser select#ure_select_other_roles+.ms-parent .ms-choice>div,.wrap form#your-profile select#ure_select_other_roles+.ms-parent .ms-choice>div{display:none}.wrap form#createuser .yoast-settings,.wrap form#your-profile .yoast-settings{padding:0;margin-bottom:20px;font-size:13px}.wrap form#createuser .yoast-settings h2,.wrap form#your-profile .yoast-settings h2{margin:0}.wrap form#createuser .yoast-settings label,.wrap form#your-profile .yoast-settings label{margin:0;padding:0;width:auto;font-size:13px;color:#444;line-height:1.7}.wrap form#createuser .yoast-settings .description,.wrap form#your-profile .yoast-settings .description{font-size:13px;margin:0 0 5px;color:#666}.wrap form#createuser .yoast-settings input,.wrap form#createuser .yoast-settings textarea,.wrap form#your-profile .yoast-settings input,.wrap form#your-profile .yoast-settings textarea{margin:0}.wrap form#createuser .yoast-settings textarea,.wrap form#your-profile .yoast-settings textarea{margin-bottom:10px}.wrap form#createuser .yoast-settings input[type=checkbox],.wrap form#your-profile .yoast-settings input[type=checkbox]{margin-right:5px;vertical-align:-6px}.wrap form#createuser .form-table[role=presentation] tr.user-language-wrap th[colspan="2"],.wrap form#your-profile .form-table[role=presentation] tr.user-language-wrap th[colspan="2"]{display:none}.wrap form#addtag .acf-fields.-left>.acf-field,.wrap form#edittag .acf-fields.-left>.acf-field{padding-left:0}.wrap form#addtag .acf-fields.-left>.acf-field.acfe-bt-no-label,.wrap form#edittag .acf-fields.-left>.acf-field.acfe-bt-no-label{padding-left:20%}@media only screen and (max-width:640px){.wrap form#addtag .acf-fields.-left>.acf-field.acfe-bt-no-label,.wrap form#edittag .acf-fields.-left>.acf-field.acfe-bt-no-label{padding-left:0}}.wrap form#addtag .acf-fields.-left>.acf-field::before,.wrap form#edittag .acf-fields.-left>.acf-field::before{width:20%}.wrap form#addtag .acf-fields.-left>.acf-field>.acf-label,.wrap form#edittag .acf-fields.-left>.acf-field>.acf-label{width:20%;margin-left:0;padding:0 12px}.wrap form#addtag .acf-fields.-left>.acf-field>.acf-label label,.wrap form#edittag .acf-fields.-left>.acf-field>.acf-label label{color:#444}.wrap form#addtag .acf-fields.-left>.acf-field>.acf-input,.wrap form#edittag .acf-fields.-left>.acf-field>.acf-input{padding:0 12px}.wrap form#addtag .form-field p,.wrap form#addtag .form-field select,.wrap form#edittag .form-field p,.wrap form#edittag .form-field select{max-width:100%}.wrap form#addtag .form-field input[type=email],.wrap form#addtag .form-field input[type=number],.wrap form#addtag .form-field input[type=password],.wrap form#addtag .form-field input[type=search],.wrap form#addtag .form-field input[type=tel],.wrap form#addtag .form-field input[type=text],.wrap form#addtag .form-field input[type=url],.wrap form#addtag .form-field select,.wrap form#addtag .form-field textarea,.wrap form#edittag .form-field input[type=email],.wrap form#edittag .form-field input[type=number],.wrap form#edittag .form-field input[type=password],.wrap form#edittag .form-field input[type=search],.wrap form#edittag .form-field input[type=tel],.wrap form#edittag .form-field input[type=text],.wrap form#edittag .form-field input[type=url],.wrap form#edittag .form-field select,.wrap form#edittag .form-field textarea{width:100%}.wrap form#edittag .acf-column-1>#wp-description-wrap{display:none}.wrap form#edittag .postbox.wpseo-taxonomy-metabox-postbox>h2{border-bottom:1px solid #ccd0d4}.wrap form#edittag tr.wpml-term-languages-wrap{display:none}.wrap form#edittag #icl-tax-postbox .inside{margin:0;padding:15px 12px}.wrap form#edittag #icl-tax-postbox .inside table.icl_translations_table{width:100%}.wrap #add-term-translations,.wrap #edit-term-translations{border:none;width:100%}.wrap #select-add-term-language select,.wrap #select-edit-term-language select{width:auto!important;padding-right:25px}.wrap #select-add-term-language p.description,.wrap #select-add-term-language+p,.wrap #select-edit-term-language p.description,.wrap #select-edit-term-language+p{display:none}.wrap #term-translations>p{position:relative;width:20%;padding:0 12px;float:left;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;font-size:13px;font-weight:600;color:#444}.wrap #term-translations>.icl_subsubsub{position:relative;width:20%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 12px;float:left}.wrap #term-translations #add-term-translations{width:80%;position:relative;float:left;clear:none;background:0 0;padding:0 12px}.wrap #term-translations #add-term-translations td.pll-translation-column{padding-left:0;padding-right:0}.wrap #term-translations #add-term-translations td,.wrap #term-translations #add-term-translations th{padding-top:4px;padding-bottom:4px}.wrap #term-translations #add-term-translations tr:first-of-type td,.wrap #term-translations #add-term-translations tr:first-of-type th{padding-top:0}.wrap #term-translations #add-term-translations tr:last-of-type td,.wrap #term-translations #add-term-translations tr:last-of-type th{padding-bottom:0}.wrap #term-translations #edit-term-translations td,.wrap #term-translations #edit-term-translations th{padding-top:2px;padding-bottom:2px}.wrap #term-translations #edit-term-translations tr:first-of-type td,.wrap #term-translations #edit-term-translations tr:first-of-type th{padding-top:0}.wrap #term-translations #edit-term-translations tr:last-of-type td,.wrap #term-translations #edit-term-translations tr:last-of-type th{padding-bottom:0}.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field,.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field,.wrap #acf-group_term>.acf-fields>table.acf-field,.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field,.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field,.wrap #acf-group_user>.acf-fields>table.acf-field,.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field,.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field,.wrap #acf-group_user_customer>.acf-fields>table.acf-field{border:none;margin-bottom:0}.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field::before,.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field::before,.wrap #acf-group_term>.acf-fields>table.acf-field::before,.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field::before,.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field::before,.wrap #acf-group_user>.acf-fields>table.acf-field::before,.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field::before,.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field::before,.wrap #acf-group_user_customer>.acf-fields>table.acf-field::before{content:unset}.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_term>.acf-fields>table.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_term>.acf-fields>table.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_user>.acf-fields>table.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_user>.acf-fields>table.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_user_customer>.acf-fields>table.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_user_customer>.acf-fields>table.acf-field>tbody>tr:first-of-type>th{border-top:0}.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field,.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field,.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field{padding:0}.edit-tags-php #col-left{display:none;float:none;width:100%}.edit-tags-php #col-left .col-wrap{padding:0}.edit-tags-php #col-left .col-wrap #poststuff{min-width:100%}.edit-tags-php #col-left .col-wrap #poststuff #addtag h2.hndle{border-bottom:1px solid #ccd0d4}.edit-tags-php #col-left .col-wrap #poststuff #addtag .inside .term-name-wrap{border-top:none}.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit{display:block;position:relative;margin:0;padding:15px 12px 15px 20%;border-top:1px solid #eee}.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit::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%}.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit::after{content:"";display:block;clear:both}.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit>.acf-input{vertical-align:top;float:left;width:80%;margin:0;padding:0 12px}@media screen and (max-width:640px){.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit{padding:15px 0}.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit::before{display:none}.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit>.acf-input{width:100%}}.edit-tags-php #col-container #col-right{float:none;width:auto}.edit-tags-php #col-container #col-right .col-wrap{padding:0}
|
1 |
+
body:not(.taxonomy-product_cat):not(.woocommerce-page) .wrap{padding-top:0!important}.wrap{min-width:auto!important}@media only screen and (min-width:782px){.wrap:not(#poststuff) form#createuser,.wrap:not(#poststuff) form#edittag,.wrap:not(#poststuff) form#your-profile,.wrap:not(#poststuff) form[action="options-permalink.php"],.wrap:not(#poststuff) form[action="options.php"]{max-width:calc(100% - 300px)!important;position:relative}.wrap:not(#poststuff) form#createuser .edit-tag-actions,.wrap:not(#poststuff) form#createuser p.submit,.wrap:not(#poststuff) form#edittag .edit-tag-actions,.wrap:not(#poststuff) form#edittag p.submit,.wrap:not(#poststuff) form#your-profile .edit-tag-actions,.wrap:not(#poststuff) form#your-profile p.submit,.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions,.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit,.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions,.wrap:not(#poststuff) form[action="options.php"] p.submit{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;top:37px;width:280px;right:-300px;padding:10px;margin:0;background:#f5f5f5;text-align:right;border:1px solid #ccd0d4;border-radius:0;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04)}.wrap:not(#poststuff) form#createuser .edit-tag-actions::before,.wrap:not(#poststuff) form#createuser p.submit::before,.wrap:not(#poststuff) form#edittag .edit-tag-actions::before,.wrap:not(#poststuff) form#edittag p.submit::before,.wrap:not(#poststuff) form#your-profile .edit-tag-actions::before,.wrap:not(#poststuff) form#your-profile p.submit::before,.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions::before,.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit::before,.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions::before,.wrap:not(#poststuff) form[action="options.php"] p.submit::before{-webkit-box-sizing:border-box;box-sizing:border-box;content:"";background:#fff;border:1px solid #ccd0d4;border-bottom:0;position:absolute;width:280px;top:-38px;height:37px;left:-1px}.wrap:not(#poststuff) form#createuser .edit-tag-actions .button,.wrap:not(#poststuff) form#createuser p.submit .button,.wrap:not(#poststuff) form#edittag .edit-tag-actions .button,.wrap:not(#poststuff) form#edittag p.submit .button,.wrap:not(#poststuff) form#your-profile .edit-tag-actions .button,.wrap:not(#poststuff) form#your-profile p.submit .button,.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions .button,.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit .button,.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions .button,.wrap:not(#poststuff) form[action="options.php"] p.submit .button{min-height:32px;line-height:2.30769231;padding:0 12px}.wrap:not(#poststuff) form#createuser .edit-tag-actions #delete-link,.wrap:not(#poststuff) form#createuser p.submit #delete-link,.wrap:not(#poststuff) form#edittag .edit-tag-actions #delete-link,.wrap:not(#poststuff) form#edittag p.submit #delete-link,.wrap:not(#poststuff) form#your-profile .edit-tag-actions #delete-link,.wrap:not(#poststuff) form#your-profile p.submit #delete-link,.wrap:not(#poststuff) form[action="options-permalink.php"] .edit-tag-actions #delete-link,.wrap:not(#poststuff) form[action="options-permalink.php"] p.submit #delete-link,.wrap:not(#poststuff) form[action="options.php"] .edit-tag-actions #delete-link,.wrap:not(#poststuff) form[action="options.php"] p.submit #delete-link{float:left;margin:0;text-decoration:underline}}.wrap>form:not(.search-form){margin-top:13px;max-width:100%!important}.wrap>form>div>div>h2,.wrap>form>div>div>h3,.wrap>form>h2,.wrap>form>h3{background:#fff;border:1px solid #c3c4c7;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 #c3c4c7;border-top: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 #c3c4c7;border-top:0;-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.rank-math-metabox-frame{border-top:1px solid #c3c4c7}.wrap>form .form-table>tbody>tr.acf-field{position:initial}.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:initial;padding:15px 12px}.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:initial;color:#444}.wrap>form .form-table>tbody>tr>td.acf-label label,.wrap>form .form-table>tbody>tr>th label{vertical-align:top}.wrap>form .form-table>tbody>tr:first-of-type td,.wrap>form .form-table>tbody>tr:first-of-type th{border-top:0}.wrap>form .form-table textarea{width:100%}.wrap>form .form-table .regular-text{width:100%;max-width:25em}@media only screen and (max-width:782px){.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:0 0;border:0!important}.wrap>form table.form-table>tbody>tr:first-child{border-top:0}}.wrap #titlediv{margin-bottom:10px}.wrap #titlediv input{padding:3px 8px;font-size:1.7em;line-height:100%;height:1.7em;width:100%;outline:0;margin:0 0 3px;background-color:#fff}.wrap .postbox .hndle{cursor:auto;-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.wrap .postbox .handle-actions button,.wrap .postbox .handle-actions span{display:none}.wrap .postbox .handle-actions .acf-hndle-cog{width:2.2rem}.wrap #submitdiv #major-publishing-actions{border-top:0}.wrap #submitdiv #major-publishing-actions #publishing-action{float:none;margin:0}.wrap #submitdiv #major-publishing-actions #publishing-action .button{float:right}.wrap #submitdiv #major-publishing-actions #publishing-action .spinner{margin:5px 10px 0}.wrap #submitdiv #major-publishing-actions #publishing-action #delete-link{float:left;margin-left:0}.wrap #submitdiv #major-publishing-actions #publishing-action #delete-link a{text-decoration:underline}.wrap form#createuser .acf-field input[type=email],.wrap form#createuser .acf-field input[type=number],.wrap form#createuser .acf-field input[type=password],.wrap form#createuser .acf-field input[type=search],.wrap form#createuser .acf-field input[type=text],.wrap form#createuser .acf-field input[type=url],.wrap form#createuser .acf-field select,.wrap form#your-profile .acf-field input[type=email],.wrap form#your-profile .acf-field input[type=number],.wrap form#your-profile .acf-field input[type=password],.wrap form#your-profile .acf-field input[type=search],.wrap form#your-profile .acf-field input[type=text],.wrap form#your-profile .acf-field input[type=url],.wrap form#your-profile .acf-field select{max-width:100%}.wrap form#createuser .acf-field textarea,.wrap form#your-profile .acf-field textarea{width:100%;max-width:none}.wrap form#createuser .acf-tab-wrap,.wrap form#your-profile .acf-tab-wrap{position:relative}.wrap form#createuser select#ure_select_other_roles,.wrap form#createuser select#ure_select_other_roles+.ms-parent,.wrap form#your-profile select#ure_select_other_roles,.wrap form#your-profile select#ure_select_other_roles+.ms-parent{width:100%!important;max-width:500px!important}.wrap form#createuser select#ure_select_other_roles+.ms-parent .ms-choice,.wrap form#your-profile 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: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') right 5px top 55%/16px 16px no-repeat #fff;cursor:pointer}.wrap form#createuser select#ure_select_other_roles+.ms-parent .ms-choice>span.placeholder,.wrap form#your-profile select#ure_select_other_roles+.ms-parent .ms-choice>span.placeholder{color:#32373c}.wrap form#createuser select#ure_select_other_roles+.ms-parent .ms-choice>div,.wrap form#your-profile select#ure_select_other_roles+.ms-parent .ms-choice>div{display:none}.wrap form#createuser .yoast-settings,.wrap form#your-profile .yoast-settings{padding:0;margin-bottom:20px;font-size:13px}.wrap form#createuser .yoast-settings h2,.wrap form#your-profile .yoast-settings h2{margin:0}.wrap form#createuser .yoast-settings label,.wrap form#your-profile .yoast-settings label{margin:0;padding:0;width:auto;font-size:13px;color:#444;line-height:1.7}.wrap form#createuser .yoast-settings .description,.wrap form#your-profile .yoast-settings .description{font-size:13px;margin:0 0 5px;color:#666}.wrap form#createuser .yoast-settings input,.wrap form#createuser .yoast-settings textarea,.wrap form#your-profile .yoast-settings input,.wrap form#your-profile .yoast-settings textarea{margin:0}.wrap form#createuser .yoast-settings textarea,.wrap form#your-profile .yoast-settings textarea{margin-bottom:10px}.wrap form#createuser .yoast-settings input[type=checkbox],.wrap form#your-profile .yoast-settings input[type=checkbox]{margin-right:5px;vertical-align:-6px}.wrap form#createuser .form-table[role=presentation] tr.user-language-wrap th[colspan="2"],.wrap form#your-profile .form-table[role=presentation] tr.user-language-wrap th[colspan="2"]{display:none}.wrap form#addtag .acf-fields.-left>.acf-field,.wrap form#edittag .acf-fields.-left>.acf-field{padding-left:0}.wrap form#addtag .acf-fields.-left>.acf-field.acfe-bt-no-label,.wrap form#edittag .acf-fields.-left>.acf-field.acfe-bt-no-label{padding-left:20%}@media only screen and (max-width:640px){.wrap form#addtag .acf-fields.-left>.acf-field.acfe-bt-no-label,.wrap form#edittag .acf-fields.-left>.acf-field.acfe-bt-no-label{padding-left:0}}.wrap form#addtag .acf-fields.-left>.acf-field::before,.wrap form#edittag .acf-fields.-left>.acf-field::before{width:20%}.wrap form#addtag .acf-fields.-left>.acf-field>.acf-label,.wrap form#edittag .acf-fields.-left>.acf-field>.acf-label{width:20%;margin-left:0;padding:0 12px}.wrap form#addtag .acf-fields.-left>.acf-field>.acf-label label,.wrap form#edittag .acf-fields.-left>.acf-field>.acf-label label{color:#444}.wrap form#addtag .acf-fields.-left>.acf-field>.acf-input,.wrap form#edittag .acf-fields.-left>.acf-field>.acf-input{padding:0 12px}.wrap form#addtag .form-field p,.wrap form#addtag .form-field select,.wrap form#edittag .form-field p,.wrap form#edittag .form-field select{max-width:100%}.wrap form#addtag .form-field input[type=email],.wrap form#addtag .form-field input[type=number],.wrap form#addtag .form-field input[type=password],.wrap form#addtag .form-field input[type=search],.wrap form#addtag .form-field input[type=tel],.wrap form#addtag .form-field input[type=text],.wrap form#addtag .form-field input[type=url],.wrap form#addtag .form-field select,.wrap form#addtag .form-field textarea,.wrap form#edittag .form-field input[type=email],.wrap form#edittag .form-field input[type=number],.wrap form#edittag .form-field input[type=password],.wrap form#edittag .form-field input[type=search],.wrap form#edittag .form-field input[type=tel],.wrap form#edittag .form-field input[type=text],.wrap form#edittag .form-field input[type=url],.wrap form#edittag .form-field select,.wrap form#edittag .form-field textarea{width:100%}.wrap form#edittag .acf-column-1>#wp-description-wrap{display:none}.wrap form#edittag .postbox.wpseo-taxonomy-metabox-postbox>h2{border-bottom:1px solid #ccd0d4}.wrap form#edittag tr.wpml-term-languages-wrap{display:none}.wrap form#edittag #icl-tax-postbox .inside{margin:0;padding:15px 12px}.wrap form#edittag #icl-tax-postbox .inside table.icl_translations_table{width:100%}.wrap #add-term-translations,.wrap #edit-term-translations{border:none;width:100%}.wrap #select-add-term-language select,.wrap #select-edit-term-language select{width:auto!important;padding-right:25px}.wrap #select-add-term-language p.description,.wrap #select-add-term-language+p,.wrap #select-edit-term-language p.description,.wrap #select-edit-term-language+p{display:none}.wrap #term-translations>p{position:relative;width:20%;padding:0 12px;float:left;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;font-size:13px;font-weight:600;color:#444}.wrap #term-translations>.icl_subsubsub{position:relative;width:20%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 12px;float:left}.wrap #term-translations #add-term-translations{width:80%;position:relative;float:left;clear:none;background:0 0;padding:0 12px}.wrap #term-translations #add-term-translations td.pll-translation-column{padding-left:0;padding-right:0}.wrap #term-translations #add-term-translations td,.wrap #term-translations #add-term-translations th{padding-top:4px;padding-bottom:4px}.wrap #term-translations #add-term-translations tr:first-of-type td,.wrap #term-translations #add-term-translations tr:first-of-type th{padding-top:0}.wrap #term-translations #add-term-translations tr:last-of-type td,.wrap #term-translations #add-term-translations tr:last-of-type th{padding-bottom:0}.wrap #term-translations #edit-term-translations td,.wrap #term-translations #edit-term-translations th{padding-top:2px;padding-bottom:2px}.wrap #term-translations #edit-term-translations tr:first-of-type td,.wrap #term-translations #edit-term-translations tr:first-of-type th{padding-top:0}.wrap #term-translations #edit-term-translations tr:last-of-type td,.wrap #term-translations #edit-term-translations tr:last-of-type th{padding-bottom:0}.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field,.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field,.wrap #acf-group_term>.acf-fields>table.acf-field,.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field,.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field,.wrap #acf-group_user>.acf-fields>table.acf-field,.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field,.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field,.wrap #acf-group_user_customer>.acf-fields>table.acf-field{border:none;margin-bottom:0}.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field::before,.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field::before,.wrap #acf-group_term>.acf-fields>table.acf-field::before,.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field::before,.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field::before,.wrap #acf-group_user>.acf-fields>table.acf-field::before,.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field::before,.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field::before,.wrap #acf-group_user_customer>.acf-fields>table.acf-field::before{content:unset}.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_term>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_term>.acf-fields>table.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_term>.acf-fields>table.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_user>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_user>.acf-fields>table.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_user>.acf-fields>table.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_user_customer>.acf-fields>.yoast-settings-table.acf-field>tbody>tr:first-of-type>th,.wrap #acf-group_user_customer>.acf-fields>table.acf-field>tbody>tr:first-of-type>td,.wrap #acf-group_user_customer>.acf-fields>table.acf-field>tbody>tr:first-of-type>th{border-top:0}.wrap #acf-group_term>.acf-fields>.rank-math-metabox-frame.acf-field,.wrap #acf-group_user>.acf-fields>.rank-math-metabox-frame.acf-field,.wrap #acf-group_user_customer>.acf-fields>.rank-math-metabox-frame.acf-field{padding:0}.edit-tags-php #col-left{display:none;float:none;width:100%}.edit-tags-php #col-left .col-wrap{padding:0}.edit-tags-php #col-left .col-wrap #poststuff{min-width:100%}.edit-tags-php #col-left .col-wrap #poststuff #addtag h2.hndle{border-bottom:1px solid #ccd0d4}.edit-tags-php #col-left .col-wrap #poststuff #addtag .inside .term-name-wrap{border-top:none}.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit{display:block;position:relative;margin:0;padding:15px 12px 15px 20%;border-top:1px solid #eee}.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit::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%}.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit::after{content:"";display:block;clear:both}.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit>.acf-input{vertical-align:top;float:left;width:80%;margin:0;padding:0 12px}@media screen and (max-width:640px){.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit{padding:15px 0}.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit::before{display:none}.edit-tags-php #col-left .col-wrap #poststuff #addtag .submit>.acf-input{width:100%}}.edit-tags-php #col-container #col-right{float:none;width:auto}.edit-tags-php #col-container #col-right .col-wrap{padding:0}body.post-type-attachment .wrap #submitdiv #major-publishing-actions{border-top:1px solid #dcdcde}body.post-type-attachment .wrap>form:not(.search-form){margin-top:0}body.post-type-attachment .wrap>form .wp_attachment_holder{background:#fff;padding:15px;border:1px solid #c3c4c7;-webkit-box-shadow:0 1px 1px rgb(0 0 0 / 4%);box-shadow:0 1px 1px rgb(0 0 0 / 4%)}body.post-type-attachment .wrap>form .wp_attachment_holder .wp_attachment_image>p:first-of-type{margin-top:0}body.post-type-attachment .wrap>form .wp_attachment_holder .image-editor .imgedit-settings .imgedit-group{background:#f9f9f9}body.post-type-attachment .wrap>form .wp_attachment_details{margin-bottom:0;margin-top:20px}body.post-type-attachment .wrap>form .wp_attachment_details p.attachment-alt-text-description{margin-bottom:0}
|
assets/css/acfe.css
CHANGED
@@ -1,665 +1,666 @@
|
|
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 |
-
display: -webkit-box;
|
35 |
-
display: -ms-flexbox;
|
36 |
-
display: flex;
|
37 |
-
-webkit-box-orient: vertical;
|
38 |
-
-webkit-box-direction: normal;
|
39 |
-
-ms-flex-direction: column;
|
40 |
-
flex-direction: column;
|
41 |
-
-webkit-box-pack: center;
|
42 |
-
-ms-flex-pack: center;
|
43 |
-
justify-content: center;
|
44 |
-
-webkit-box-align: center;
|
45 |
-
-ms-flex-align: center;
|
46 |
-
align-items: center;
|
47 |
-
pointer-events: none
|
48 |
-
}
|
49 |
-
|
50 |
-
.acfe-modal .acfe-modal-spacer {
|
51 |
-
padding: 15px
|
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 |
-
display: -webkit-box;
|
58 |
-
display: -ms-flexbox;
|
59 |
-
display: flex;
|
60 |
-
-webkit-box-orient: vertical;
|
61 |
-
-webkit-box-direction: normal;
|
62 |
-
-ms-flex-direction: column;
|
63 |
-
flex-direction: column;
|
64 |
-
width: calc(100vw - 60px);
|
65 |
-
max-width: 1100px;
|
66 |
-
max-height: calc(100vh - 60px);
|
67 |
-
position: relative
|
68 |
-
}
|
69 |
-
|
70 |
-
.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-wrapper-overlay {
|
71 |
-
position: absolute;
|
72 |
-
z-index: 10;
|
73 |
-
background: rgba(0, 0, 0, .7);
|
74 |
-
height: 100%;
|
75 |
-
width: 100%;
|
76 |
-
pointer-events: none
|
77 |
-
}
|
78 |
-
|
79 |
-
.acfe-modal.-open.-small>.acfe-modal-wrapper {
|
80 |
-
max-width: 450px
|
81 |
-
}
|
82 |
-
|
83 |
-
.acfe-modal.-open.-medium>.acfe-modal-wrapper {
|
84 |
-
max-width: 700px
|
85 |
-
}
|
86 |
-
|
87 |
-
.acfe-modal.-open.-large>.acfe-modal-wrapper {
|
88 |
-
max-width: 1100px
|
89 |
-
}
|
90 |
-
|
91 |
-
.acfe-modal.-open.-xlarge>.acfe-modal-wrapper {
|
92 |
-
max-width: 1400px
|
93 |
-
}
|
94 |
-
|
95 |
-
.acfe-modal.-open.-full>.acfe-modal-wrapper {
|
96 |
-
max-width: 100%;
|
97 |
-
-webkit-box-flex: 1;
|
98 |
-
-ms-flex: 1;
|
99 |
-
flex: 1
|
100 |
-
}
|
101 |
-
|
102 |
-
.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left {
|
103 |
-
height: 100%
|
104 |
-
}
|
105 |
-
|
106 |
-
.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left:before {
|
107 |
-
content: "";
|
108 |
-
display: block;
|
109 |
-
position: absolute;
|
110 |
-
z-index: 0;
|
111 |
-
background: #f9f9f9;
|
112 |
-
border-color: #e1e1e1;
|
113 |
-
border-style: solid;
|
114 |
-
border-width: 0 1px 0 0;
|
115 |
-
top: 0;
|
116 |
-
bottom: 0;
|
117 |
-
left: 0;
|
118 |
-
width: 20%
|
119 |
-
}
|
120 |
-
|
121 |
-
.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
122 |
-
.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone,
|
123 |
-
.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input,
|
124 |
-
.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input>.acf-clone-fields.acf-fields.-left {
|
125 |
-
height: 100%
|
126 |
-
}
|
127 |
-
|
128 |
-
.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone {
|
129 |
-
padding: 0
|
130 |
-
}
|
131 |
-
|
132 |
-
.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input {
|
133 |
-
margin: 0
|
134 |
-
}
|
135 |
-
|
136 |
-
.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 {
|
137 |
-
content: "";
|
138 |
-
display: block;
|
139 |
-
position: absolute;
|
140 |
-
z-index: 0;
|
141 |
-
background: #f9f9f9;
|
142 |
-
border-color: #e1e1e1;
|
143 |
-
border-style: solid;
|
144 |
-
border-width: 0 1px 0 0;
|
145 |
-
top: 0;
|
146 |
-
bottom: 0;
|
147 |
-
left: 0;
|
148 |
-
width: 20%
|
149 |
-
}
|
150 |
-
|
151 |
-
.acfe-modal.-open .acfe-modal-title *,
|
152 |
-
.acfe-modal.-open>.acfe-modal-title {
|
153 |
-
-webkit-box-sizing: border-box;
|
154 |
-
box-sizing: border-box
|
155 |
-
}
|
156 |
-
|
157 |
-
.acfe-modal.-open .acfe-modal-title {
|
158 |
-
display: block;
|
159 |
-
height: 50px;
|
160 |
-
line-height: 50px;
|
161 |
-
font-size: 22px;
|
162 |
-
color: #23282d;
|
163 |
-
border-bottom: 1px solid #ddd;
|
164 |
-
-o-text-overflow: ellipsis;
|
165 |
-
text-overflow: ellipsis;
|
166 |
-
background: #fcfcfc;
|
167 |
-
padding: 0 0 0 16px;
|
168 |
-
position: relative;
|
169 |
-
text-align: left;
|
170 |
-
pointer-events: auto
|
171 |
-
}
|
172 |
-
|
173 |
-
.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-title {
|
174 |
-
pointer-events: none
|
175 |
-
}
|
176 |
-
|
177 |
-
.acfe-modal.-open .acfe-modal-title>span.title {
|
178 |
-
line-height: 50px;
|
179 |
-
color: #23282d;
|
180 |
-
font-weight: 600
|
181 |
-
}
|
182 |
-
|
183 |
-
.acfe-modal.-open .acfe-modal-title>span.title .acf-fc-layout-order {
|
184 |
-
width: 30px;
|
185 |
-
height: 30px;
|
186 |
-
border-radius: 30px;
|
187 |
-
display: inline-block;
|
188 |
-
text-align: center;
|
189 |
-
line-height: 30px;
|
190 |
-
margin: 0 2px 0 0;
|
191 |
-
background: #f1f1f1;
|
192 |
-
font-size: 14px;
|
193 |
-
color: #666;
|
194 |
-
vertical-align: 2px
|
195 |
-
}
|
196 |
-
|
197 |
-
.acfe-modal.-open .acfe-modal-title>button.close {
|
198 |
-
height: 50px;
|
199 |
-
width: 50px;
|
200 |
-
color: #666;
|
201 |
-
border: 0;
|
202 |
-
border-left: 0;
|
203 |
-
margin: 0;
|
204 |
-
padding: 0;
|
205 |
-
border-radius: 0;
|
206 |
-
position: absolute;
|
207 |
-
top: 0;
|
208 |
-
right: 0;
|
209 |
-
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
210 |
-
-o-transition: color .1s ease-in-out, background .1s ease-in-out;
|
211 |
-
transition: color .1s ease-in-out, background .1s ease-in-out;
|
212 |
-
background: 0 0;
|
213 |
-
cursor: pointer
|
214 |
-
}
|
215 |
-
|
216 |
-
.acfe-modal.-open .acfe-modal-title>button.close:hover {
|
217 |
-
color: #00a0d2
|
218 |
-
}
|
219 |
-
|
220 |
-
.acfe-modal.-open .acfe-modal-title>button.close:before {
|
221 |
-
height: 50px;
|
222 |
-
width: 50px;
|
223 |
-
line-height: 50px !important;
|
224 |
-
font: normal 20px/1 dashicons;
|
225 |
-
content: "\f158";
|
226 |
-
margin: 0;
|
227 |
-
padding: 0
|
228 |
-
}
|
229 |
-
|
230 |
-
.acfe-modal.-open .acfe-modal-content {
|
231 |
-
height: 100%;
|
232 |
-
background: #fff;
|
233 |
-
display: block;
|
234 |
-
position: relative;
|
235 |
-
pointer-events: auto;
|
236 |
-
overflow: auto
|
237 |
-
}
|
238 |
-
|
239 |
-
.acfe-modal.-open.-iframe .acfe-modal-content {
|
240 |
-
overflow: hidden
|
241 |
-
}
|
242 |
-
|
243 |
-
.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-content {
|
244 |
-
pointer-events: none
|
245 |
-
}
|
246 |
-
|
247 |
-
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper {
|
248 |
-
padding: 0;
|
249 |
-
margin: 0;
|
250 |
-
border-bottom: 1px solid #ddd
|
251 |
-
}
|
252 |
-
|
253 |
-
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a {
|
254 |
-
margin: 0;
|
255 |
-
border-left: 0;
|
256 |
-
border-top: 0;
|
257 |
-
border-bottom: 0;
|
258 |
-
background: #fff;
|
259 |
-
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
260 |
-
-o-transition: color .1s ease-in-out, background .1s ease-in-out;
|
261 |
-
transition: color .1s ease-in-out, background .1s ease-in-out;
|
262 |
-
padding: 7px 15px;
|
263 |
-
border-color: #ddd
|
264 |
-
}
|
265 |
-
|
266 |
-
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a span.dashicons-menu {
|
267 |
-
line-height: 27px
|
268 |
-
}
|
269 |
-
|
270 |
-
.acfe-modal.-open>.acfe-modal-content .nav-tab-wrapper a:hover {
|
271 |
-
background: #f9f9f9;
|
272 |
-
color: #23282d
|
273 |
-
}
|
274 |
-
|
275 |
-
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a.nav-tab-active,
|
276 |
-
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a.nav-tab-active:hover {
|
277 |
-
background: #fcfcfc;
|
278 |
-
color: #23282d
|
279 |
-
}
|
280 |
-
|
281 |
-
.acfe-modal.-open .acfe-modal-content .nav-tab:focus,
|
282 |
-
.acfe-modal.-open .acfe-modal-content .nav-tab:focus:active {
|
283 |
-
border-bottom: 0;
|
284 |
-
-webkit-box-shadow: none;
|
285 |
-
box-shadow: none;
|
286 |
-
outline: 0
|
287 |
-
}
|
288 |
-
|
289 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container,
|
290 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container * {
|
291 |
-
-webkit-box-sizing: border-box;
|
292 |
-
box-sizing: border-box
|
293 |
-
}
|
294 |
-
|
295 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container {
|
296 |
-
width: 100%;
|
297 |
-
padding: 14px;
|
298 |
-
margin-right: auto;
|
299 |
-
margin-left: auto
|
300 |
-
}
|
301 |
-
|
302 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flexible-categories~.acfe-flex-container {
|
303 |
-
overflow: auto;
|
304 |
-
height: calc(100% - 39px)
|
305 |
-
}
|
306 |
-
|
307 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul {
|
308 |
-
margin: 0;
|
309 |
-
margin-right: -7px;
|
310 |
-
margin-left: -7px;
|
311 |
-
display: -webkit-box;
|
312 |
-
display: -ms-flexbox;
|
313 |
-
display: flex;
|
314 |
-
-ms-flex-wrap: wrap;
|
315 |
-
flex-wrap: wrap
|
316 |
-
}
|
317 |
-
|
318 |
-
.acfe-modal.-open>.acfe-modal-content .acfe-flex-container ul:after {
|
319 |
-
content: "";
|
320 |
-
clear: both;
|
321 |
-
display: table
|
322 |
-
}
|
323 |
-
|
324 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li {
|
325 |
-
position: relative;
|
326 |
-
width: 100%;
|
327 |
-
padding-right: 7px;
|
328 |
-
padding-left: 7px;
|
329 |
-
padding-bottom: 14px;
|
330 |
-
margin: 0;
|
331 |
-
-webkit-box-flex: 0;
|
332 |
-
-ms-flex: 0 0 25%;
|
333 |
-
flex: 0 0 25%;
|
334 |
-
max-width: 25%
|
335 |
-
}
|
336 |
-
|
337 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a {
|
338 |
-
border: 1px solid #ddd;
|
339 |
-
background: #f9f9f9;
|
340 |
-
padding: 15px;
|
341 |
-
color: #333;
|
342 |
-
display: block;
|
343 |
-
text-decoration: none;
|
344 |
-
height: 100%
|
345 |
-
}
|
346 |
-
|
347 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-flex-thumbnails ul li a {
|
348 |
-
text-align: center
|
349 |
-
}
|
350 |
-
|
351 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover {
|
352 |
-
background: #007cba;
|
353 |
-
color: #fff
|
354 |
-
}
|
355 |
-
|
356 |
-
body:not(.acf-admin-5-3) .acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover {
|
357 |
-
background: #0073aa
|
358 |
-
}
|
359 |
-
|
360 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span {
|
361 |
-
display: inline-block;
|
362 |
-
font-size: 16px;
|
363 |
-
font-weight: 600
|
364 |
-
}
|
365 |
-
|
366 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span.badge.acf-js-tooltip {
|
367 |
-
color: #999;
|
368 |
-
font-weight: 400;
|
369 |
-
margin-left: 2px;
|
370 |
-
line-height: 1.2;
|
371 |
-
font-size: 0
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
box-shadow: none;
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
-
|
400 |
-
flex: 0 0 100%;
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
-
|
407 |
-
flex: 0 0 50%;
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
-
|
414 |
-
flex: 0 0 33.333333%;
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
-
|
421 |
-
flex: 0 0 25%;
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
-
|
428 |
-
flex: 0 0 20%;
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
-
|
435 |
-
flex: 0 0 16.66%;
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
-
|
443 |
-
flex: 0 0 50% !important;
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
-
|
450 |
-
flex: 0 0 100% !important;
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
}
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
-
|
463 |
-
flex: 0 0 100% !important;
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
-
|
470 |
-
flex: 0 0 100% !important;
|
471 |
-
|
472 |
-
|
473 |
-
}
|
474 |
-
|
475 |
-
|
476 |
-
.acfe-modal.-open .acfe-modal-footer
|
477 |
-
|
478 |
-
box-sizing: border-box
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
-
|
505 |
-
|
506 |
-
-
|
507 |
-
-
|
508 |
-
align
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
max-
|
517 |
-
|
518 |
-
margin-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
border-
|
533 |
-
border-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
margin-
|
555 |
-
|
556 |
-
max-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
margin-
|
562 |
-
|
563 |
-
max-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
margin-
|
569 |
-
|
570 |
-
max-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
margin-
|
589 |
-
|
590 |
-
max-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
margin-
|
600 |
-
|
601 |
-
max-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
}
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
}
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
border-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
|
|
665 |
}
|
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 |
+
display: -webkit-box;
|
35 |
+
display: -ms-flexbox;
|
36 |
+
display: flex;
|
37 |
+
-webkit-box-orient: vertical;
|
38 |
+
-webkit-box-direction: normal;
|
39 |
+
-ms-flex-direction: column;
|
40 |
+
flex-direction: column;
|
41 |
+
-webkit-box-pack: center;
|
42 |
+
-ms-flex-pack: center;
|
43 |
+
justify-content: center;
|
44 |
+
-webkit-box-align: center;
|
45 |
+
-ms-flex-align: center;
|
46 |
+
align-items: center;
|
47 |
+
pointer-events: none
|
48 |
+
}
|
49 |
+
|
50 |
+
.acfe-modal .acfe-modal-spacer {
|
51 |
+
padding: 15px
|
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 |
+
display: -webkit-box;
|
58 |
+
display: -ms-flexbox;
|
59 |
+
display: flex;
|
60 |
+
-webkit-box-orient: vertical;
|
61 |
+
-webkit-box-direction: normal;
|
62 |
+
-ms-flex-direction: column;
|
63 |
+
flex-direction: column;
|
64 |
+
width: calc(100vw - 60px);
|
65 |
+
max-width: 1100px;
|
66 |
+
max-height: calc(100vh - 60px);
|
67 |
+
position: relative
|
68 |
+
}
|
69 |
+
|
70 |
+
.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-wrapper-overlay {
|
71 |
+
position: absolute;
|
72 |
+
z-index: 10;
|
73 |
+
background: rgba(0, 0, 0, .7);
|
74 |
+
height: 100%;
|
75 |
+
width: 100%;
|
76 |
+
pointer-events: none
|
77 |
+
}
|
78 |
+
|
79 |
+
.acfe-modal.-open.-small>.acfe-modal-wrapper {
|
80 |
+
max-width: 450px
|
81 |
+
}
|
82 |
+
|
83 |
+
.acfe-modal.-open.-medium>.acfe-modal-wrapper {
|
84 |
+
max-width: 700px
|
85 |
+
}
|
86 |
+
|
87 |
+
.acfe-modal.-open.-large>.acfe-modal-wrapper {
|
88 |
+
max-width: 1100px
|
89 |
+
}
|
90 |
+
|
91 |
+
.acfe-modal.-open.-xlarge>.acfe-modal-wrapper {
|
92 |
+
max-width: 1400px
|
93 |
+
}
|
94 |
+
|
95 |
+
.acfe-modal.-open.-full>.acfe-modal-wrapper {
|
96 |
+
max-width: 100%;
|
97 |
+
-webkit-box-flex: 1;
|
98 |
+
-ms-flex: 1;
|
99 |
+
flex: 1
|
100 |
+
}
|
101 |
+
|
102 |
+
.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left {
|
103 |
+
height: 100%
|
104 |
+
}
|
105 |
+
|
106 |
+
.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left:before {
|
107 |
+
content: "";
|
108 |
+
display: block;
|
109 |
+
position: absolute;
|
110 |
+
z-index: 0;
|
111 |
+
background: #f9f9f9;
|
112 |
+
border-color: #e1e1e1;
|
113 |
+
border-style: solid;
|
114 |
+
border-width: 0 1px 0 0;
|
115 |
+
top: 0;
|
116 |
+
bottom: 0;
|
117 |
+
left: 0;
|
118 |
+
width: 20%
|
119 |
+
}
|
120 |
+
|
121 |
+
.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
122 |
+
.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone,
|
123 |
+
.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input,
|
124 |
+
.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input>.acf-clone-fields.acf-fields.-left {
|
125 |
+
height: 100%
|
126 |
+
}
|
127 |
+
|
128 |
+
.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone {
|
129 |
+
padding: 0
|
130 |
+
}
|
131 |
+
|
132 |
+
.acfe-modal.-settings.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input {
|
133 |
+
margin: 0
|
134 |
+
}
|
135 |
+
|
136 |
+
.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 {
|
137 |
+
content: "";
|
138 |
+
display: block;
|
139 |
+
position: absolute;
|
140 |
+
z-index: 0;
|
141 |
+
background: #f9f9f9;
|
142 |
+
border-color: #e1e1e1;
|
143 |
+
border-style: solid;
|
144 |
+
border-width: 0 1px 0 0;
|
145 |
+
top: 0;
|
146 |
+
bottom: 0;
|
147 |
+
left: 0;
|
148 |
+
width: 20%
|
149 |
+
}
|
150 |
+
|
151 |
+
.acfe-modal.-open .acfe-modal-title *,
|
152 |
+
.acfe-modal.-open>.acfe-modal-title {
|
153 |
+
-webkit-box-sizing: border-box;
|
154 |
+
box-sizing: border-box
|
155 |
+
}
|
156 |
+
|
157 |
+
.acfe-modal.-open .acfe-modal-title {
|
158 |
+
display: block;
|
159 |
+
height: 50px;
|
160 |
+
line-height: 50px;
|
161 |
+
font-size: 22px;
|
162 |
+
color: #23282d;
|
163 |
+
border-bottom: 1px solid #ddd;
|
164 |
+
-o-text-overflow: ellipsis;
|
165 |
+
text-overflow: ellipsis;
|
166 |
+
background: #fcfcfc;
|
167 |
+
padding: 0 0 0 16px;
|
168 |
+
position: relative;
|
169 |
+
text-align: left;
|
170 |
+
pointer-events: auto
|
171 |
+
}
|
172 |
+
|
173 |
+
.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-title {
|
174 |
+
pointer-events: none
|
175 |
+
}
|
176 |
+
|
177 |
+
.acfe-modal.-open .acfe-modal-title>span.title {
|
178 |
+
line-height: 50px;
|
179 |
+
color: #23282d;
|
180 |
+
font-weight: 600
|
181 |
+
}
|
182 |
+
|
183 |
+
.acfe-modal.-open .acfe-modal-title>span.title .acf-fc-layout-order {
|
184 |
+
width: 30px;
|
185 |
+
height: 30px;
|
186 |
+
border-radius: 30px;
|
187 |
+
display: inline-block;
|
188 |
+
text-align: center;
|
189 |
+
line-height: 30px;
|
190 |
+
margin: 0 2px 0 0;
|
191 |
+
background: #f1f1f1;
|
192 |
+
font-size: 14px;
|
193 |
+
color: #666;
|
194 |
+
vertical-align: 2px
|
195 |
+
}
|
196 |
+
|
197 |
+
.acfe-modal.-open .acfe-modal-title>button.close {
|
198 |
+
height: 50px;
|
199 |
+
width: 50px;
|
200 |
+
color: #666;
|
201 |
+
border: 0;
|
202 |
+
border-left: 0;
|
203 |
+
margin: 0;
|
204 |
+
padding: 0;
|
205 |
+
border-radius: 0;
|
206 |
+
position: absolute;
|
207 |
+
top: 0;
|
208 |
+
right: 0;
|
209 |
+
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
210 |
+
-o-transition: color .1s ease-in-out, background .1s ease-in-out;
|
211 |
+
transition: color .1s ease-in-out, background .1s ease-in-out;
|
212 |
+
background: 0 0;
|
213 |
+
cursor: pointer
|
214 |
+
}
|
215 |
+
|
216 |
+
.acfe-modal.-open .acfe-modal-title>button.close:hover {
|
217 |
+
color: #00a0d2
|
218 |
+
}
|
219 |
+
|
220 |
+
.acfe-modal.-open .acfe-modal-title>button.close:before {
|
221 |
+
height: 50px;
|
222 |
+
width: 50px;
|
223 |
+
line-height: 50px !important;
|
224 |
+
font: normal 20px/1 dashicons;
|
225 |
+
content: "\f158";
|
226 |
+
margin: 0;
|
227 |
+
padding: 0
|
228 |
+
}
|
229 |
+
|
230 |
+
.acfe-modal.-open .acfe-modal-content {
|
231 |
+
height: 100%;
|
232 |
+
background: #fff;
|
233 |
+
display: block;
|
234 |
+
position: relative;
|
235 |
+
pointer-events: auto;
|
236 |
+
overflow: auto
|
237 |
+
}
|
238 |
+
|
239 |
+
.acfe-modal.-open.-iframe .acfe-modal-content {
|
240 |
+
overflow: hidden
|
241 |
+
}
|
242 |
+
|
243 |
+
.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-content {
|
244 |
+
pointer-events: none
|
245 |
+
}
|
246 |
+
|
247 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper {
|
248 |
+
padding: 0;
|
249 |
+
margin: 0;
|
250 |
+
border-bottom: 1px solid #ddd
|
251 |
+
}
|
252 |
+
|
253 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a {
|
254 |
+
margin: 0;
|
255 |
+
border-left: 0;
|
256 |
+
border-top: 0;
|
257 |
+
border-bottom: 0;
|
258 |
+
background: #fff;
|
259 |
+
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
260 |
+
-o-transition: color .1s ease-in-out, background .1s ease-in-out;
|
261 |
+
transition: color .1s ease-in-out, background .1s ease-in-out;
|
262 |
+
padding: 7px 15px;
|
263 |
+
border-color: #ddd
|
264 |
+
}
|
265 |
+
|
266 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a span.dashicons-menu {
|
267 |
+
line-height: 27px
|
268 |
+
}
|
269 |
+
|
270 |
+
.acfe-modal.-open>.acfe-modal-content .nav-tab-wrapper a:hover {
|
271 |
+
background: #f9f9f9;
|
272 |
+
color: #23282d
|
273 |
+
}
|
274 |
+
|
275 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a.nav-tab-active,
|
276 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a.nav-tab-active:hover {
|
277 |
+
background: #fcfcfc;
|
278 |
+
color: #23282d
|
279 |
+
}
|
280 |
+
|
281 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab:focus,
|
282 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab:focus:active {
|
283 |
+
border-bottom: 0;
|
284 |
+
-webkit-box-shadow: none;
|
285 |
+
box-shadow: none;
|
286 |
+
outline: 0
|
287 |
+
}
|
288 |
+
|
289 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container,
|
290 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container * {
|
291 |
+
-webkit-box-sizing: border-box;
|
292 |
+
box-sizing: border-box
|
293 |
+
}
|
294 |
+
|
295 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container {
|
296 |
+
width: 100%;
|
297 |
+
padding: 14px;
|
298 |
+
margin-right: auto;
|
299 |
+
margin-left: auto
|
300 |
+
}
|
301 |
+
|
302 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flexible-categories~.acfe-flex-container {
|
303 |
+
overflow: auto;
|
304 |
+
height: calc(100% - 39px)
|
305 |
+
}
|
306 |
+
|
307 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul {
|
308 |
+
margin: 0;
|
309 |
+
margin-right: -7px;
|
310 |
+
margin-left: -7px;
|
311 |
+
display: -webkit-box;
|
312 |
+
display: -ms-flexbox;
|
313 |
+
display: flex;
|
314 |
+
-ms-flex-wrap: wrap;
|
315 |
+
flex-wrap: wrap
|
316 |
+
}
|
317 |
+
|
318 |
+
.acfe-modal.-open>.acfe-modal-content .acfe-flex-container ul:after {
|
319 |
+
content: "";
|
320 |
+
clear: both;
|
321 |
+
display: table
|
322 |
+
}
|
323 |
+
|
324 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li {
|
325 |
+
position: relative;
|
326 |
+
width: 100%;
|
327 |
+
padding-right: 7px;
|
328 |
+
padding-left: 7px;
|
329 |
+
padding-bottom: 14px;
|
330 |
+
margin: 0;
|
331 |
+
-webkit-box-flex: 0;
|
332 |
+
-ms-flex: 0 0 25%;
|
333 |
+
flex: 0 0 25%;
|
334 |
+
max-width: 25%
|
335 |
+
}
|
336 |
+
|
337 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a {
|
338 |
+
border: 1px solid #ddd;
|
339 |
+
background: #f9f9f9;
|
340 |
+
padding: 15px;
|
341 |
+
color: #333;
|
342 |
+
display: block;
|
343 |
+
text-decoration: none;
|
344 |
+
height: 100%
|
345 |
+
}
|
346 |
+
|
347 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-flex-thumbnails ul li a {
|
348 |
+
text-align: center
|
349 |
+
}
|
350 |
+
|
351 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover {
|
352 |
+
background: #007cba;
|
353 |
+
color: #fff
|
354 |
+
}
|
355 |
+
|
356 |
+
body:not(.acf-admin-5-3) .acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover {
|
357 |
+
background: #0073aa
|
358 |
+
}
|
359 |
+
|
360 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span {
|
361 |
+
display: inline-block;
|
362 |
+
font-size: 16px;
|
363 |
+
font-weight: 600
|
364 |
+
}
|
365 |
+
|
366 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span.badge.acf-js-tooltip {
|
367 |
+
color: #999;
|
368 |
+
font-weight: 400;
|
369 |
+
margin-left: 2px;
|
370 |
+
line-height: 1.2;
|
371 |
+
font-size: 0;
|
372 |
+
float: right
|
373 |
+
}
|
374 |
+
|
375 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span.badge.acf-js-tooltip::before {
|
376 |
+
font-size: 16px
|
377 |
+
}
|
378 |
+
|
379 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover span.badge.acf-js-tooltip {
|
380 |
+
color: #fff
|
381 |
+
}
|
382 |
+
|
383 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled {
|
384 |
+
pointer-events: none;
|
385 |
+
opacity: .67
|
386 |
+
}
|
387 |
+
|
388 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled:hover {
|
389 |
+
cursor: default
|
390 |
+
}
|
391 |
+
|
392 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled:focus {
|
393 |
+
-webkit-box-shadow: none;
|
394 |
+
box-shadow: none;
|
395 |
+
outline: 0
|
396 |
+
}
|
397 |
+
|
398 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li {
|
399 |
+
-webkit-box-flex: 0;
|
400 |
+
-ms-flex: 0 0 100%;
|
401 |
+
flex: 0 0 100%;
|
402 |
+
max-width: 100%
|
403 |
+
}
|
404 |
+
|
405 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-2 ul li {
|
406 |
+
-webkit-box-flex: 0;
|
407 |
+
-ms-flex: 0 0 50%;
|
408 |
+
flex: 0 0 50%;
|
409 |
+
max-width: 50%
|
410 |
+
}
|
411 |
+
|
412 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-3 ul li {
|
413 |
+
-webkit-box-flex: 0;
|
414 |
+
-ms-flex: 0 0 33.333333%;
|
415 |
+
flex: 0 0 33.333333%;
|
416 |
+
max-width: 33.333333%
|
417 |
+
}
|
418 |
+
|
419 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-4 ul li {
|
420 |
+
-webkit-box-flex: 0;
|
421 |
+
-ms-flex: 0 0 25%;
|
422 |
+
flex: 0 0 25%;
|
423 |
+
max-width: 25%
|
424 |
+
}
|
425 |
+
|
426 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-5 ul li {
|
427 |
+
-webkit-box-flex: 0;
|
428 |
+
-ms-flex: 0 0 20%;
|
429 |
+
flex: 0 0 20%;
|
430 |
+
max-width: 20%
|
431 |
+
}
|
432 |
+
|
433 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-6 ul li {
|
434 |
+
-webkit-box-flex: 0;
|
435 |
+
-ms-flex: 0 0 16.66%;
|
436 |
+
flex: 0 0 16.66%;
|
437 |
+
max-width: 16.66%
|
438 |
+
}
|
439 |
+
|
440 |
+
@media only screen and (max-width:960px) {
|
441 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li {
|
442 |
+
-webkit-box-flex: 0 !important;
|
443 |
+
-ms-flex: 0 0 50% !important;
|
444 |
+
flex: 0 0 50% !important;
|
445 |
+
max-width: 50% !important
|
446 |
+
}
|
447 |
+
|
448 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li {
|
449 |
+
-webkit-box-flex: 0 !important;
|
450 |
+
-ms-flex: 0 0 100% !important;
|
451 |
+
flex: 0 0 100% !important;
|
452 |
+
max-width: 100% !important
|
453 |
+
}
|
454 |
+
|
455 |
+
.acfe-modal.-open .acfe-modal-content ul li a {
|
456 |
+
padding: 7px
|
457 |
+
}
|
458 |
+
}
|
459 |
+
|
460 |
+
@media only screen and (max-width:720px) {
|
461 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li {
|
462 |
+
-webkit-box-flex: 0 !important;
|
463 |
+
-ms-flex: 0 0 100% !important;
|
464 |
+
flex: 0 0 100% !important;
|
465 |
+
max-width: 100% !important
|
466 |
+
}
|
467 |
+
|
468 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li {
|
469 |
+
-webkit-box-flex: 0 !important;
|
470 |
+
-ms-flex: 0 0 100% !important;
|
471 |
+
flex: 0 0 100% !important;
|
472 |
+
max-width: 100% !important
|
473 |
+
}
|
474 |
+
}
|
475 |
+
|
476 |
+
.acfe-modal.-open .acfe-modal-footer,
|
477 |
+
.acfe-modal.-open .acfe-modal-footer * {
|
478 |
+
-webkit-box-sizing: border-box;
|
479 |
+
box-sizing: border-box
|
480 |
+
}
|
481 |
+
|
482 |
+
.acfe-modal.-open .acfe-modal-footer {
|
483 |
+
display: block;
|
484 |
+
height: 50px;
|
485 |
+
line-height: 50px;
|
486 |
+
color: #23282d;
|
487 |
+
background: #fcfcfc;
|
488 |
+
padding: 0 16px;
|
489 |
+
position: relative;
|
490 |
+
text-align: right;
|
491 |
+
border-top: 1px solid #ddd;
|
492 |
+
pointer-events: auto
|
493 |
+
}
|
494 |
+
|
495 |
+
.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-footer {
|
496 |
+
pointer-events: none
|
497 |
+
}
|
498 |
+
|
499 |
+
.acfe-modal.-open .acfe-modal-footer>button {
|
500 |
+
vertical-align: baseline
|
501 |
+
}
|
502 |
+
|
503 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open {
|
504 |
+
-webkit-box-pack: start;
|
505 |
+
-ms-flex-pack: start;
|
506 |
+
justify-content: start;
|
507 |
+
-webkit-box-align: start;
|
508 |
+
-ms-flex-align: start;
|
509 |
+
align-items: start;
|
510 |
+
background: rgba(0, 0, 0, .7)
|
511 |
+
}
|
512 |
+
|
513 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
514 |
+
height: 100%;
|
515 |
+
width: 100%;
|
516 |
+
max-height: calc(100vh - 70px);
|
517 |
+
max-width: calc(100vw - 340px);
|
518 |
+
margin-left: 170px;
|
519 |
+
margin-top: 50px
|
520 |
+
}
|
521 |
+
|
522 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left {
|
523 |
+
height: 100%
|
524 |
+
}
|
525 |
+
|
526 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left:before {
|
527 |
+
content: "";
|
528 |
+
display: block;
|
529 |
+
position: absolute;
|
530 |
+
z-index: 0;
|
531 |
+
background: #f9f9f9;
|
532 |
+
border-color: #e1e1e1;
|
533 |
+
border-style: solid;
|
534 |
+
border-width: 0 1px 0 0;
|
535 |
+
top: 0;
|
536 |
+
bottom: 0;
|
537 |
+
left: 0;
|
538 |
+
width: 20%
|
539 |
+
}
|
540 |
+
|
541 |
+
body.block-editor-page .acfe-modal-overlay {
|
542 |
+
display: none
|
543 |
+
}
|
544 |
+
|
545 |
+
body.block-editor-page .acfe-modal.-open.acfe-modal-sub {
|
546 |
+
background: 0 0
|
547 |
+
}
|
548 |
+
|
549 |
+
body.block-editor-page .acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-wrapper-overlay {
|
550 |
+
background: 0 0
|
551 |
+
}
|
552 |
+
|
553 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
554 |
+
margin-top: 103px;
|
555 |
+
margin-left: 170px;
|
556 |
+
max-height: calc(100vh - 139px);
|
557 |
+
max-width: calc(100vw - 181px)
|
558 |
+
}
|
559 |
+
|
560 |
+
body.block-editor-page.folded .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
561 |
+
margin-top: 103px;
|
562 |
+
margin-left: 46px;
|
563 |
+
max-height: calc(100vh - 139px);
|
564 |
+
max-width: calc(100vw - 57px)
|
565 |
+
}
|
566 |
+
|
567 |
+
body.block-editor-page.is-fullscreen-mode .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
568 |
+
margin-top: 69px;
|
569 |
+
margin-left: 9px;
|
570 |
+
max-height: calc(100vh - 104px);
|
571 |
+
max-width: calc(100vw - 18px)
|
572 |
+
}
|
573 |
+
|
574 |
+
body.block-editor-page .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
575 |
+
max-width: calc(100vw - 461px)
|
576 |
+
}
|
577 |
+
|
578 |
+
body.block-editor-page.folded .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
579 |
+
max-width: calc(100vw - 337px)
|
580 |
+
}
|
581 |
+
|
582 |
+
body.block-editor-page.is-fullscreen-mode .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
583 |
+
max-width: calc(100vw - 298px)
|
584 |
+
}
|
585 |
+
|
586 |
+
@media only screen and (max-width:960px) {
|
587 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
588 |
+
margin-top: 103px;
|
589 |
+
margin-left: 170px;
|
590 |
+
max-height: calc(100vh - 139px);
|
591 |
+
max-width: calc(100vw - 181px)
|
592 |
+
}
|
593 |
+
|
594 |
+
body.block-editor-page .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
595 |
+
max-width: calc(100vw - 461px)
|
596 |
+
}
|
597 |
+
|
598 |
+
body.block-editor-page.auto-fold .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
599 |
+
margin-top: 103px;
|
600 |
+
margin-left: 46px;
|
601 |
+
max-height: calc(100vh - 139px);
|
602 |
+
max-width: calc(100vw - 57px)
|
603 |
+
}
|
604 |
+
|
605 |
+
body.block-editor-page.auto-fold .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
606 |
+
max-width: calc(100vw - 337px)
|
607 |
+
}
|
608 |
+
}
|
609 |
+
|
610 |
+
@media only screen and (max-width:782px) {
|
611 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
612 |
+
max-width: calc(100vw - 20px) !important;
|
613 |
+
margin-left: 10px !important;
|
614 |
+
max-height: calc(100vh - 127px) !important;
|
615 |
+
margin-top: 117px !important
|
616 |
+
}
|
617 |
+
}
|
618 |
+
|
619 |
+
body.wp-admin.upload-php.acfe-modal-opened>div:not([style*="display: none;"])>.media-modal.wp-core-ui:not(.acf-media-modal):before {
|
620 |
+
content: "";
|
621 |
+
display: block;
|
622 |
+
position: absolute;
|
623 |
+
background: rgba(0, 0, 0, .7);
|
624 |
+
top: 0;
|
625 |
+
left: 0;
|
626 |
+
width: 100%;
|
627 |
+
height: 100%;
|
628 |
+
z-index: 10000
|
629 |
+
}
|
630 |
+
|
631 |
+
.pac-container {
|
632 |
+
z-index: 100001
|
633 |
+
}
|
634 |
+
|
635 |
+
#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field::before {
|
636 |
+
display: block
|
637 |
+
}
|
638 |
+
|
639 |
+
#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field>.acf-label {
|
640 |
+
width: 20%;
|
641 |
+
margin: 0
|
642 |
+
}
|
643 |
+
|
644 |
+
#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field>.acf-input {
|
645 |
+
width: 80%
|
646 |
+
}
|
647 |
+
|
648 |
+
.block-editor .edit-post-sidebar .acfe-modal .acf-fields>.acf-field .acf-label label {
|
649 |
+
font-weight: 600
|
650 |
+
}
|
651 |
+
|
652 |
+
.block-editor .edit-post-sidebar .acfe-modal .acf-fields.-left>.acf-field {
|
653 |
+
margin: 0;
|
654 |
+
padding: 15px 0;
|
655 |
+
border-width: 1px;
|
656 |
+
border-color: #eee
|
657 |
+
}
|
658 |
+
|
659 |
+
.block-editor .edit-post-sidebar .acfe-modal .acf-fields.-left>.acf-field::before {
|
660 |
+
border-width: 0;
|
661 |
+
background: 0 0
|
662 |
+
}
|
663 |
+
|
664 |
+
body.acfe-modal-opened .edit-post-sidebar__panel-tabs {
|
665 |
+
visibility: hidden
|
666 |
}
|
assets/css/acfe.min.css
CHANGED
@@ -1 +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:.3s ease-in-out;-o-transition:.3s ease-in-out;transition:.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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-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 .acfe-modal-spacer{padding:15px}.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);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;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%;-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-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{-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:0 0;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: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:0}.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 ul li,.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-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;background:rgba(0,0,0,.7)}body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{height:100%;width:100%;max-height:calc(100vh - 70px);max-width:calc(100vw - 340px);margin-top:103px;margin-left:170px;max-height:calc(100vh - 139px);max-width:calc(100vw - 181px)}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%}body.block-editor-page .acfe-modal-overlay{display:none}body.block-editor-page .acfe-modal.-open.acfe-modal-sub,body.block-editor-page .acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-wrapper-overlay{background:0 0}body.block-editor-page.folded .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{margin-top:103px;margin-left:46px;max-height:calc(100vh - 139px);max-width:calc(100vw - 57px)}body.block-editor-page.is-fullscreen-mode .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{margin-top:69px;margin-left:9px;max-height:calc(100vh - 104px);max-width:calc(100vw - 18px)}body.block-editor-page .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 461px)}body.block-editor-page.folded .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 337px)}body.block-editor-page.is-fullscreen-mode .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 298px)}@media only screen and (max-width:960px){body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{margin-top:103px;margin-left:170px;max-height:calc(100vh - 139px);max-width:calc(100vw - 181px)}body.block-editor-page .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 461px)}body.block-editor-page.auto-fold .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{margin-top:103px;margin-left:46px;max-height:calc(100vh - 139px);max-width:calc(100vw - 57px)}body.block-editor-page.auto-fold .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 337px)}}@media only screen and (max-width:782px){body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 20px)!important;margin-left:10px!important;max-height:calc(100vh - 127px)!important;margin-top:117px!important}}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}.pac-container{z-index:100001}#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field::before{display:block}#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field>.acf-label{width:20%;margin:0}#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field>.acf-input{width:80%}.block-editor .edit-post-sidebar .acfe-modal .acf-fields>.acf-field .acf-label label{font-weight:600}.block-editor .edit-post-sidebar .acfe-modal .acf-fields.-left>.acf-field{margin:0;padding:15px 0;border-width:1px;border-color:#eee}.block-editor .edit-post-sidebar .acfe-modal .acf-fields.-left>.acf-field::before{border-width:0;background:0 0}body.acfe-modal-opened .edit-post-sidebar__panel-tabs{visibility:hidden}
|
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:.3s ease-in-out;-o-transition:.3s ease-in-out;transition:.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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-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 .acfe-modal-spacer{padding:15px}.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);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;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%;-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-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{-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:0 0;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: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;float:right}.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:0}.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 ul li,.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-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;background:rgba(0,0,0,.7)}body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{height:100%;width:100%;max-height:calc(100vh - 70px);max-width:calc(100vw - 340px);margin-top:103px;margin-left:170px;max-height:calc(100vh - 139px);max-width:calc(100vw - 181px)}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%}body.block-editor-page .acfe-modal-overlay{display:none}body.block-editor-page .acfe-modal.-open.acfe-modal-sub,body.block-editor-page .acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-wrapper-overlay{background:0 0}body.block-editor-page.folded .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{margin-top:103px;margin-left:46px;max-height:calc(100vh - 139px);max-width:calc(100vw - 57px)}body.block-editor-page.is-fullscreen-mode .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{margin-top:69px;margin-left:9px;max-height:calc(100vh - 104px);max-width:calc(100vw - 18px)}body.block-editor-page .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 461px)}body.block-editor-page.folded .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 337px)}body.block-editor-page.is-fullscreen-mode .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 298px)}@media only screen and (max-width:960px){body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{margin-top:103px;margin-left:170px;max-height:calc(100vh - 139px);max-width:calc(100vw - 181px)}body.block-editor-page .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 461px)}body.block-editor-page.auto-fold .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{margin-top:103px;margin-left:46px;max-height:calc(100vh - 139px);max-width:calc(100vw - 57px)}body.block-editor-page.auto-fold .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 337px)}}@media only screen and (max-width:782px){body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper{max-width:calc(100vw - 20px)!important;margin-left:10px!important;max-height:calc(100vh - 127px)!important;margin-top:117px!important}}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}.pac-container{z-index:100001}#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field::before{display:block}#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field>.acf-label{width:20%;margin:0}#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field>.acf-input{width:80%}.block-editor .edit-post-sidebar .acfe-modal .acf-fields>.acf-field .acf-label label{font-weight:600}.block-editor .edit-post-sidebar .acfe-modal .acf-fields.-left>.acf-field{margin:0;padding:15px 0;border-width:1px;border-color:#eee}.block-editor .edit-post-sidebar .acfe-modal .acf-fields.-left>.acf-field::before{border-width:0;background:0 0}body.acfe-modal-opened .edit-post-sidebar__panel-tabs{visibility:hidden}
|
assets/inc/tinymce/acfe-form.js
CHANGED
@@ -1,10 +1,8 @@
|
|
1 |
(function($) {
|
2 |
|
3 |
-
if (typeof acf === 'undefined')
|
4 |
-
return;
|
5 |
-
|
6 |
-
if (typeof window.wp.mce === 'undefined')
|
7 |
return;
|
|
|
8 |
|
9 |
tinymce.PluginManager.add('acfe_form', function(editor, url) {
|
10 |
|
@@ -55,5 +53,4 @@
|
|
55 |
|
56 |
});
|
57 |
|
58 |
-
|
59 |
})(jQuery);
|
1 |
(function($) {
|
2 |
|
3 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined' || typeof window.wp.mce === 'undefined') {
|
|
|
|
|
|
|
4 |
return;
|
5 |
+
}
|
6 |
|
7 |
tinymce.PluginManager.add('acfe_form', function(editor, url) {
|
8 |
|
53 |
|
54 |
});
|
55 |
|
|
|
56 |
})(jQuery);
|
assets/inc/tinymce/acfe-form.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){"undefined"!=typeof acf&&void 0!==window.wp.mce&&tinymce.PluginManager.add("acfe_form",function(n,e){window.wp.mce.views.register("acfe_form",{initialize:function(){t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax({action:"acfe/form/shortcode",args:this.shortcode.attrs.named}),type:"post",dataType:"html",context:this,beforeSend:function(){this.render('<div style="border:1px solid #ddd; padding:120px 25px; background:#f8f8f8; text-align:center;"></div>')},success:function(e){this.render(e,!0)}})},edit:function(e,t){n.windowManager.open({width:800,height:62,title:"Shortcode",body:[{label:"",name:"content",type:"textbox",value:e}],onsubmit:function(e){t(e.data.content)}})}})})}(jQuery);
|
1 |
+
!function(t){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&void 0!==window.wp.mce&&tinymce.PluginManager.add("acfe_form",function(n,e){window.wp.mce.views.register("acfe_form",{initialize:function(){t.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax({action:"acfe/form/shortcode",args:this.shortcode.attrs.named}),type:"post",dataType:"html",context:this,beforeSend:function(){this.render('<div style="border:1px solid #ddd; padding:120px 25px; background:#f8f8f8; text-align:center;"></div>')},success:function(e){this.render(e,!0)}})},edit:function(e,t){n.windowManager.open({width:800,height:62,title:"Shortcode",body:[{label:"",name:"content",type:"textbox",value:e}],onsubmit:function(e){t(e.data.content)}})}})})}(jQuery);
|
assets/js/acfe-admin.js
CHANGED
@@ -1,9 +1,26 @@
|
|
1 |
(function($) {
|
2 |
|
3 |
-
if (typeof acf === 'undefined')
|
4 |
return;
|
|
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
* Dev Mode
|
8 |
*/
|
9 |
new acf.Model({
|
@@ -42,14 +59,17 @@
|
|
42 |
var $wpWrap = this.$wpWrap();
|
43 |
var $bulkActions = this.$bulkActions();
|
44 |
|
45 |
-
//
|
|
|
|
|
|
|
|
|
|
|
46 |
$acfWrap.find('.tablenav.bottom').insertAfter($acfWrap);
|
47 |
$wpWrap.find('.tablenav.bottom').insertAfter($wpWrap);
|
48 |
|
49 |
if (!$acfWrap.is(':visible') && !$wpWrap.is(':visible')) {
|
50 |
-
|
51 |
$bulkActions.hide();
|
52 |
-
|
53 |
}
|
54 |
|
55 |
},
|
@@ -178,17 +198,19 @@
|
|
178 |
|
179 |
var val = $el.val();
|
180 |
|
|
|
|
|
|
|
|
|
181 |
var $acfWrap = this.$acfWrap();
|
182 |
var $wpWrap = this.$wpWrap();
|
183 |
var $bulkActions = this.$bulkActions();
|
184 |
|
185 |
-
if (!acfe.inArray(val, ['acfe-wp-custom-fields', 'acfe-acf-custom-fields']))
|
186 |
-
return;
|
187 |
-
|
188 |
if ($el.prop('checked')) {
|
189 |
|
190 |
-
if (!$bulkActions.is(':visible'))
|
191 |
$bulkActions.show();
|
|
|
192 |
|
193 |
} else if ((val === 'acfe-wp-custom-fields' && !$acfWrap.is(':visible')) || (val === 'acfe-acf-custom-fields' && !$wpWrap.is(':visible'))) {
|
194 |
|
@@ -200,6 +222,147 @@
|
|
200 |
|
201 |
});
|
202 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
})(jQuery);
|
204 |
(function($) {
|
205 |
|
@@ -344,169 +507,15 @@
|
|
344 |
})(jQuery);
|
345 |
(function($) {
|
346 |
|
347 |
-
if (typeof acf === 'undefined')
|
348 |
return;
|
|
|
349 |
|
350 |
-
|
351 |
-
*
|
352 |
-
*/
|
353 |
-
new acf.Model({
|
354 |
-
|
355 |
-
actions: {
|
356 |
-
'new_field/name=acfe_author': 'newField',
|
357 |
-
},
|
358 |
-
|
359 |
-
newField: function(field) {
|
360 |
-
|
361 |
-
field.on('change', function(e) {
|
362 |
-
e.stopPropagation();
|
363 |
-
});
|
364 |
-
|
365 |
-
}
|
366 |
-
|
367 |
-
});
|
368 |
-
|
369 |
-
/*
|
370 |
-
* Postbox: ACFE Class
|
371 |
*/
|
372 |
acf.addAction('show_postbox', function(postbox) {
|
373 |
postbox.$el.removeClass('acfe-postbox-left acfe-postbox-top');
|
374 |
});
|
375 |
|
376 |
-
/*
|
377 |
-
* Field: Enable Switch
|
378 |
-
*/
|
379 |
-
new acf.Model({
|
380 |
-
|
381 |
-
actions: {
|
382 |
-
'new_field': 'newField',
|
383 |
-
},
|
384 |
-
|
385 |
-
isRepeater: function(field) {
|
386 |
-
return field.get('type') === 'repeater' || field.get('type') === 'flexible_content';
|
387 |
-
},
|
388 |
-
|
389 |
-
getCondition: function(target) {
|
390 |
-
return this.isRepeater(target) ? target.val() === 0 : !target.val().length;
|
391 |
-
},
|
392 |
-
|
393 |
-
enableSwitcher: function(field) {
|
394 |
-
|
395 |
-
var self = this;
|
396 |
-
var switcher, target;
|
397 |
-
|
398 |
-
if (field.get('switched')) {
|
399 |
-
|
400 |
-
switcher = acf.getField(field.$el.prev());
|
401 |
-
target = field;
|
402 |
-
|
403 |
-
} else if (field.get('switcher')) {
|
404 |
-
|
405 |
-
switcher = field;
|
406 |
-
target = acf.getField(field.$el.next());
|
407 |
-
|
408 |
-
}
|
409 |
-
|
410 |
-
if (self.getCondition(target)) {
|
411 |
-
|
412 |
-
switcher.switchOff();
|
413 |
-
switcher.show('switcher');
|
414 |
-
target.hide('switcher');
|
415 |
-
|
416 |
-
} else {
|
417 |
-
|
418 |
-
switcher.hide('switcher');
|
419 |
-
target.show('switcher');
|
420 |
-
|
421 |
-
}
|
422 |
-
|
423 |
-
if (field.get('switcher')) {
|
424 |
-
|
425 |
-
// Switch Action
|
426 |
-
switcher.on('change', function() {
|
427 |
-
|
428 |
-
if (switcher.$input().prop('checked')) {
|
429 |
-
|
430 |
-
switcher.hide('switcher');
|
431 |
-
|
432 |
-
target.show('switcher');
|
433 |
-
|
434 |
-
if (self.isRepeater(target)) {
|
435 |
-
target.add();
|
436 |
-
}
|
437 |
-
|
438 |
-
}
|
439 |
-
|
440 |
-
});
|
441 |
-
|
442 |
-
// Field Action
|
443 |
-
target.on('change', function(e, $el) {
|
444 |
-
|
445 |
-
if (self.getCondition(target)) {
|
446 |
-
|
447 |
-
switcher.switchOff();
|
448 |
-
switcher.show('switcher');
|
449 |
-
target.hide('switcher');
|
450 |
-
|
451 |
-
}
|
452 |
-
|
453 |
-
});
|
454 |
-
|
455 |
-
}
|
456 |
-
|
457 |
-
},
|
458 |
-
|
459 |
-
enableSwitch: function(field) {
|
460 |
-
|
461 |
-
// Clone
|
462 |
-
var $row = field.$el.clone();
|
463 |
-
|
464 |
-
// Params
|
465 |
-
$row.removeAttr('data-enable-switch');
|
466 |
-
$row.attr('data-switcher', true);
|
467 |
-
$row.attr('data-name', field.get('name') + '_acfe_switch');
|
468 |
-
$row.attr('data-key', field.get('name') + '_acfe_switch');
|
469 |
-
$row.attr('data-type', 'true_false');
|
470 |
-
|
471 |
-
// HTML
|
472 |
-
$row.find('>.acf-input').html('<div class="acf-true-false">\n' +
|
473 |
-
'<input type="hidden" value="0">' +
|
474 |
-
'<label>\n' +
|
475 |
-
'<input type="checkbox" value="1" class="acf-switch-input" autocomplete="off">\n' +
|
476 |
-
'<div class="acf-switch"><span class="acf-switch-on" style="min-width: 18px;">' + acf.__('Yes') + '</span>' +
|
477 |
-
'<span class="acf-switch-off" style="min-width: 18px;">' + acf.__('No') + '</span><div class="acf-switch-slider"></div></div>' +
|
478 |
-
'</label>\n' +
|
479 |
-
'</div>');
|
480 |
-
|
481 |
-
// Insert
|
482 |
-
$row = $row.insertBefore(field.$el);
|
483 |
-
|
484 |
-
// New Switch
|
485 |
-
acf.getField($row);
|
486 |
-
|
487 |
-
// Remove Attribute
|
488 |
-
field.$el.removeAttr('data-enable-switch');
|
489 |
-
field.set('enableSwitch', false);
|
490 |
-
|
491 |
-
field.$el.attr('data-switched', true);
|
492 |
-
field.set('switched', true);
|
493 |
-
|
494 |
-
},
|
495 |
-
|
496 |
-
newField: function(field) {
|
497 |
-
|
498 |
-
if (field.get('enableSwitch')) {
|
499 |
-
|
500 |
-
this.enableSwitch(field);
|
501 |
-
|
502 |
-
} else if (field.get('switched') || field.get('switcher')) {
|
503 |
-
|
504 |
-
this.enableSwitcher(field);
|
505 |
-
|
506 |
-
}
|
507 |
-
|
508 |
-
}
|
509 |
-
|
510 |
-
});
|
511 |
-
|
512 |
})(jQuery);
|
1 |
(function($) {
|
2 |
|
3 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
4 |
return;
|
5 |
+
}
|
6 |
|
7 |
+
/**
|
8 |
+
* Module: Author
|
9 |
+
*/
|
10 |
+
acf.addAction('new_field/name=acfe_author', function(field) {
|
11 |
+
field.on('change', function(e) {
|
12 |
+
e.stopPropagation();
|
13 |
+
});
|
14 |
+
});
|
15 |
+
|
16 |
+
})(jQuery);
|
17 |
+
(function($) {
|
18 |
+
|
19 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
20 |
+
return;
|
21 |
+
}
|
22 |
+
|
23 |
+
/**
|
24 |
* Dev Mode
|
25 |
*/
|
26 |
new acf.Model({
|
59 |
var $wpWrap = this.$wpWrap();
|
60 |
var $bulkActions = this.$bulkActions();
|
61 |
|
62 |
+
// bail early
|
63 |
+
if (!$acfWrap && !$wpWrap) {
|
64 |
+
return;
|
65 |
+
}
|
66 |
+
|
67 |
+
// move bulk selects
|
68 |
$acfWrap.find('.tablenav.bottom').insertAfter($acfWrap);
|
69 |
$wpWrap.find('.tablenav.bottom').insertAfter($wpWrap);
|
70 |
|
71 |
if (!$acfWrap.is(':visible') && !$wpWrap.is(':visible')) {
|
|
|
72 |
$bulkActions.hide();
|
|
|
73 |
}
|
74 |
|
75 |
},
|
198 |
|
199 |
var val = $el.val();
|
200 |
|
201 |
+
if (!acfe.inArray(val, ['acfe-wp-custom-fields', 'acfe-acf-custom-fields'])) {
|
202 |
+
return;
|
203 |
+
}
|
204 |
+
|
205 |
var $acfWrap = this.$acfWrap();
|
206 |
var $wpWrap = this.$wpWrap();
|
207 |
var $bulkActions = this.$bulkActions();
|
208 |
|
|
|
|
|
|
|
209 |
if ($el.prop('checked')) {
|
210 |
|
211 |
+
if (!$bulkActions.is(':visible')) {
|
212 |
$bulkActions.show();
|
213 |
+
}
|
214 |
|
215 |
} else if ((val === 'acfe-wp-custom-fields' && !$acfWrap.is(':visible')) || (val === 'acfe-acf-custom-fields' && !$wpWrap.is(':visible'))) {
|
216 |
|
222 |
|
223 |
});
|
224 |
|
225 |
+
})(jQuery);
|
226 |
+
(function($) {
|
227 |
+
|
228 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
229 |
+
return;
|
230 |
+
}
|
231 |
+
|
232 |
+
/**
|
233 |
+
* Field: Enable Switch
|
234 |
+
*/
|
235 |
+
new acf.Model({
|
236 |
+
|
237 |
+
actions: {
|
238 |
+
'new_field': 'newField',
|
239 |
+
},
|
240 |
+
|
241 |
+
isRepeater: function(field) {
|
242 |
+
return field.get('type') === 'repeater' || field.get('type') === 'flexible_content';
|
243 |
+
},
|
244 |
+
|
245 |
+
getCondition: function(target) {
|
246 |
+
return this.isRepeater(target) ? target.val() === 0 : !target.val().length;
|
247 |
+
},
|
248 |
+
|
249 |
+
newField: function(field) {
|
250 |
+
|
251 |
+
if (field.get('enableSwitch')) {
|
252 |
+
this.enableSwitch(field);
|
253 |
+
|
254 |
+
} else if (field.get('switched') || field.get('switcher')) {
|
255 |
+
this.enableSwitcher(field);
|
256 |
+
|
257 |
+
}
|
258 |
+
|
259 |
+
},
|
260 |
+
|
261 |
+
enableSwitcher: function(field) {
|
262 |
+
|
263 |
+
var self = this;
|
264 |
+
var switcher, target;
|
265 |
+
|
266 |
+
if (field.get('switched')) {
|
267 |
+
|
268 |
+
switcher = acf.getField(field.$el.prev());
|
269 |
+
target = field;
|
270 |
+
|
271 |
+
} else if (field.get('switcher')) {
|
272 |
+
|
273 |
+
switcher = field;
|
274 |
+
target = acf.getField(field.$el.next());
|
275 |
+
|
276 |
+
}
|
277 |
+
|
278 |
+
if (self.getCondition(target)) {
|
279 |
+
|
280 |
+
switcher.switchOff();
|
281 |
+
switcher.show('switcher');
|
282 |
+
target.hide('switcher');
|
283 |
+
|
284 |
+
} else {
|
285 |
+
|
286 |
+
switcher.hide('switcher');
|
287 |
+
target.show('switcher');
|
288 |
+
|
289 |
+
}
|
290 |
+
|
291 |
+
if (field.get('switcher')) {
|
292 |
+
|
293 |
+
// Switch Action
|
294 |
+
switcher.on('change', function() {
|
295 |
+
|
296 |
+
if (switcher.$input().prop('checked')) {
|
297 |
+
|
298 |
+
switcher.hide('switcher');
|
299 |
+
|
300 |
+
target.show('switcher');
|
301 |
+
|
302 |
+
if (self.isRepeater(target)) {
|
303 |
+
target.add();
|
304 |
+
}
|
305 |
+
|
306 |
+
}
|
307 |
+
|
308 |
+
});
|
309 |
+
|
310 |
+
// Field Action
|
311 |
+
target.on('change', function(e, $el) {
|
312 |
+
|
313 |
+
if (self.getCondition(target)) {
|
314 |
+
|
315 |
+
switcher.switchOff();
|
316 |
+
switcher.show('switcher');
|
317 |
+
target.hide('switcher');
|
318 |
+
|
319 |
+
}
|
320 |
+
|
321 |
+
});
|
322 |
+
|
323 |
+
}
|
324 |
+
|
325 |
+
},
|
326 |
+
|
327 |
+
enableSwitch: function(field) {
|
328 |
+
|
329 |
+
// Clone
|
330 |
+
var $row = field.$el.clone();
|
331 |
+
|
332 |
+
// Params
|
333 |
+
$row.removeAttr('data-enable-switch');
|
334 |
+
$row.attr('data-switcher', true);
|
335 |
+
$row.attr('data-name', field.get('name') + '_acfe_switch');
|
336 |
+
$row.attr('data-key', field.get('name') + '_acfe_switch');
|
337 |
+
$row.attr('data-type', 'true_false');
|
338 |
+
|
339 |
+
// HTML
|
340 |
+
$row.find('>.acf-input').html('<div class="acf-true-false">\n' +
|
341 |
+
'<input type="hidden" value="0">' +
|
342 |
+
'<label>\n' +
|
343 |
+
'<input type="checkbox" value="1" class="acf-switch-input" autocomplete="off">\n' +
|
344 |
+
'<div class="acf-switch"><span class="acf-switch-on" style="min-width: 18px;">' + acf.__('Yes') + '</span>' +
|
345 |
+
'<span class="acf-switch-off" style="min-width: 18px;">' + acf.__('No') + '</span><div class="acf-switch-slider"></div></div>' +
|
346 |
+
'</label>\n' +
|
347 |
+
'</div>');
|
348 |
+
|
349 |
+
// Insert
|
350 |
+
$row = $row.insertBefore(field.$el);
|
351 |
+
|
352 |
+
// New Switch
|
353 |
+
acf.getField($row);
|
354 |
+
|
355 |
+
// Remove Attribute
|
356 |
+
field.$el.removeAttr('data-enable-switch');
|
357 |
+
field.set('enableSwitch', false);
|
358 |
+
|
359 |
+
field.$el.attr('data-switched', true);
|
360 |
+
field.set('switched', true);
|
361 |
+
|
362 |
+
},
|
363 |
+
|
364 |
+
});
|
365 |
+
|
366 |
})(jQuery);
|
367 |
(function($) {
|
368 |
|
507 |
})(jQuery);
|
508 |
(function($) {
|
509 |
|
510 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
511 |
return;
|
512 |
+
}
|
513 |
|
514 |
+
/**
|
515 |
+
* Postboxes: ACFE Class
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
516 |
*/
|
517 |
acf.addAction('show_postbox', function(postbox) {
|
518 |
postbox.$el.removeClass('acfe-postbox-left acfe-postbox-top');
|
519 |
});
|
520 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
521 |
})(jQuery);
|
assets/js/acfe-admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&acf.addAction("new_field/name=acfe_author",function(e){e.on("change",function(e){e.stopPropagation()})}),function(f){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&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 f("#acfe-acf-custom-fields")},$wpWrap:function(){return f("#acfe-wp-custom-fields")},acfCount:function(){return f("#acfe-acf-custom-fields tbody tr").length},wpCount:function(){return f("#acfe-wp-custom-fields tbody tr").length},$bulkActions:function(){return f(".acfe_dev_bulk_actions")},initialize:function(){var e=this.$acfWrap(),t=this.$wpWrap(),a=this.$bulkActions();(e||t)&&(e.find(".tablenav.bottom").insertAfter(e),t.find(".tablenav.bottom").insertAfter(t),e.is(":visible")||t.is(":visible")||a.hide())},sync:function(){var e=this,t=e.acfCount(),a=e.wpCount(),n=e.$acfWrap(),i=e.$wpWrap(),e=e.$bulkActions();n.find(".acfe_dev_meta_count").text(t),i.find(".acfe_dev_meta_count").text(a),t||n.remove(),a||i.remove(),t||a||e.remove()},onClickSingle:function(e,t){e.preventDefault();var a=this,n=t.closest("tr");f.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(){n.css({backgroundColor:"#faafaa"}).fadeOut(350,function(){n.remove(),a.sync()})},success:function(e){"1"!==e&&(n.css({backgroundColor:""}),n.show())}})},onSubmitBulk:function(e,t){e.preventDefault();var a,n,i=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=[],n=[],f("input.acfe_bulk_delete_meta:checked").each(function(){a.push(f(this).val()),n.push(f(this).closest("tr"))}),a.length&&f.ajax({url:acf.get("ajaxurl"),type:"post",data:{action:"acfe/bulk_delete_meta",ids:a,type:e,_wpnonce:t},beforeSend:function(){n.map(function(e){f(e).css({backgroundColor:"#faafaa"}).fadeOut(350,function(){f(e).remove(),i.sync()})})}}))},onClickPostbox:function(e,t){var a,n,i,c=t.val();acfe.inArray(c,["acfe-wp-custom-fields","acfe-acf-custom-fields"])&&(a=this.$acfWrap(),n=this.$wpWrap(),i=this.$bulkActions(),t.prop("checked")?i.is(":visible")||i.show():("acfe-wp-custom-fields"===c&&!a.is(":visible")||"acfe-acf-custom-fields"===c&&!n.is(":visible"))&&i.hide())}})}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&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},newField:function(e){e.get("enableSwitch")?this.enableSwitch(e):(e.get("switched")||e.get("switcher"))&&this.enableSwitcher(e)},enableSwitcher:function(e){var a,n,i=this;e.get("switched")?(a=acf.getField(e.$el.prev()),n=e):e.get("switcher")&&(a=e,n=acf.getField(e.$el.next())),i.getCondition(n)?(a.switchOff(),a.show("switcher"),n.hide("switcher")):(a.hide("switcher"),n.show("switcher")),e.get("switcher")&&(a.on("change",function(){a.$input().prop("checked")&&(a.hide("switcher"),n.show("switcher"),i.isRepeater(n)&&n.add())}),n.on("change",function(e,t){i.getCondition(n)&&(a.switchOff(),a.show("switcher"),n.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)}}),function(n){"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_excerpt":"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){n("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=n(this).find("option:selected").text();t.html(e)})},select2Args:function(e,t,a,n,i){var c;return n.get("acfeAllowCustom")&&(c=this,e.templateSelection=function(e){return e.id?c.replaceCode(e.text):e.text},e.templateResult=function(e){return e.id?c.replaceCode(e.text):e.text}),e},replaceCode:function(e){return e=(e=(e=(e=(e=(e=(e=(e=e.replace(/{field:(.*?)}/g,"<code>{field:$1}</code>")).replace(/{fields}/g,"<code>{fields}</code>")).replace(/{get_field:(.*?)}/g,"<code>{get_field:$1}</code>")).replace(/{query_var:(.*?)}/g,"<code>{query_var:$1}</code>")).replace(/{request:(.*?)}/g,"<code>{request:$1}</code>")).replace(/{current:(.*?)}/g,"<code>{current:$1}</code>")).replace(/{(form|form:.*?)}/g,"<code>{$1}</code>")).replace(/{action:(.*?)}/g,"<code>{action:$1}</code>")}})}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&acf.addAction("show_postbox",function(e){e.$el.removeClass("acfe-postbox-left acfe-postbox-top")});
|
assets/js/acfe-field-group.js
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
(function($) {
|
2 |
|
3 |
-
if (typeof acf === 'undefined')
|
4 |
return;
|
|
|
5 |
|
6 |
-
|
7 |
* Field: Code Editor
|
8 |
*/
|
9 |
new acf.Model({
|
@@ -19,14 +20,21 @@
|
|
19 |
return;
|
20 |
}
|
21 |
|
22 |
-
field.$setting('default_value').find('> .acf-input > .acf-input-wrap > .CodeMirror
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
},
|
26 |
|
27 |
});
|
28 |
|
29 |
-
|
30 |
* Field: Column
|
31 |
*/
|
32 |
new acf.Model({
|
@@ -74,7 +82,7 @@
|
|
74 |
|
75 |
});
|
76 |
|
77 |
-
|
78 |
* Field: Taxonomy Terms
|
79 |
*/
|
80 |
new acf.Model({
|
@@ -107,7 +115,7 @@
|
|
107 |
|
108 |
});
|
109 |
|
110 |
-
|
111 |
* Field: Data
|
112 |
*/
|
113 |
new acf.Model({
|
@@ -119,10 +127,10 @@
|
|
119 |
$('.button.edit-field').each(function() {
|
120 |
|
121 |
var $this = $(this);
|
122 |
-
var tbody = $this.closest('tbody');
|
123 |
$(tbody).find('.acfe-data-button:first').insertAfter($this);
|
124 |
$(tbody).find('.acfe-modal:first').appendTo($('body'));
|
125 |
-
$(tbody).find('
|
126 |
|
127 |
});
|
128 |
|
@@ -130,7 +138,7 @@
|
|
130 |
|
131 |
});
|
132 |
|
133 |
-
|
134 |
* Field Attribute: Before/After
|
135 |
*/
|
136 |
new acf.Model({
|
@@ -141,28 +149,52 @@
|
|
141 |
|
142 |
onNewField: function(field) {
|
143 |
|
144 |
-
|
145 |
-
|
146 |
-
}
|
147 |
-
|
148 |
-
var $sibling;
|
149 |
|
150 |
-
|
|
|
|
|
|
|
151 |
|
152 |
// vars
|
153 |
-
|
|
|
|
|
154 |
|
155 |
-
if ($
|
156 |
-
|
|
|
157 |
}
|
158 |
|
159 |
-
|
|
|
160 |
|
161 |
-
//
|
162 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
|
164 |
-
if ($sibling.length) {
|
165 |
-
$sibling.after(field.$el);
|
166 |
}
|
167 |
|
168 |
}
|
@@ -170,7 +202,7 @@
|
|
170 |
}
|
171 |
});
|
172 |
|
173 |
-
|
174 |
* Tab Attribute: Before/After
|
175 |
*/
|
176 |
var Tab = acf.models.TabField;
|
@@ -179,22 +211,47 @@
|
|
179 |
|
180 |
initialize: function() {
|
181 |
|
182 |
-
if
|
|
|
183 |
|
184 |
// vars
|
185 |
-
|
186 |
|
187 |
-
|
188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
}
|
190 |
|
191 |
-
|
|
|
|
|
|
|
192 |
|
193 |
-
//
|
194 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
|
196 |
-
if ($sibling.length) {
|
197 |
-
$sibling.after(this.$el);
|
198 |
}
|
199 |
|
200 |
}
|
@@ -206,7 +263,7 @@
|
|
206 |
|
207 |
});
|
208 |
|
209 |
-
|
210 |
* Field Group: Locations - Date/Time Picker
|
211 |
*/
|
212 |
new acf.Model({
|
@@ -219,7 +276,9 @@
|
|
219 |
},
|
220 |
|
221 |
initialize: function() {
|
222 |
-
|
|
|
|
|
223 |
},
|
224 |
|
225 |
onAppend: function($el) {
|
@@ -254,7 +313,7 @@
|
|
254 |
|
255 |
});
|
256 |
|
257 |
-
|
258 |
* Field Group: Meta
|
259 |
*/
|
260 |
new acf.Model({
|
@@ -273,7 +332,7 @@
|
|
273 |
|
274 |
});
|
275 |
|
276 |
-
|
277 |
* Field Group Custom Slug
|
278 |
*/
|
279 |
new acf.Model({
|
1 |
(function($) {
|
2 |
|
3 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
4 |
return;
|
5 |
+
}
|
6 |
|
7 |
+
/**
|
8 |
* Field: Code Editor
|
9 |
*/
|
10 |
new acf.Model({
|
20 |
return;
|
21 |
}
|
22 |
|
23 |
+
var $defaultValue = field.$setting('default_value').find('> .acf-input > .acf-input-wrap > .CodeMirror');
|
24 |
+
if ($defaultValue.length > 1) {
|
25 |
+
$defaultValue.last().remove();
|
26 |
+
}
|
27 |
+
|
28 |
+
var $placeholder = field.$setting('placeholder').find('> .acf-input > .acf-input-wrap > .CodeMirror');
|
29 |
+
if ($placeholder.length > 1) {
|
30 |
+
$placeholder.last().remove();
|
31 |
+
}
|
32 |
|
33 |
},
|
34 |
|
35 |
});
|
36 |
|
37 |
+
/**
|
38 |
* Field: Column
|
39 |
*/
|
40 |
new acf.Model({
|
82 |
|
83 |
});
|
84 |
|
85 |
+
/**
|
86 |
* Field: Taxonomy Terms
|
87 |
*/
|
88 |
new acf.Model({
|
115 |
|
116 |
});
|
117 |
|
118 |
+
/**
|
119 |
* Field: Data
|
120 |
*/
|
121 |
new acf.Model({
|
127 |
$('.button.edit-field').each(function() {
|
128 |
|
129 |
var $this = $(this);
|
130 |
+
var tbody = $this.closest('tbody, .acf-field-settings'); // ACF 6.0 doesn't use tbody anymore
|
131 |
$(tbody).find('.acfe-data-button:first').insertAfter($this);
|
132 |
$(tbody).find('.acfe-modal:first').appendTo($('body'));
|
133 |
+
$(tbody).find('.acf-field-setting-acfe_field_data:first').remove();
|
134 |
|
135 |
});
|
136 |
|
138 |
|
139 |
});
|
140 |
|
141 |
+
/**
|
142 |
* Field Attribute: Before/After
|
143 |
*/
|
144 |
new acf.Model({
|
149 |
|
150 |
onNewField: function(field) {
|
151 |
|
152 |
+
// bail early if no before/after
|
153 |
+
if (field.has('before') || field.has('after')) {
|
|
|
|
|
|
|
154 |
|
155 |
+
// bail early
|
156 |
+
if (field.get('type') === 'tab') {
|
157 |
+
return;
|
158 |
+
}
|
159 |
|
160 |
// vars
|
161 |
+
var type = field.has('before') ? 'before' : 'after';
|
162 |
+
var $fieldObject = field.$el.closest('.acf-field-object');
|
163 |
+
var fieldObject, fieldObjectKey;
|
164 |
|
165 |
+
if ($fieldObject.length) {
|
166 |
+
fieldObject = acf.getFieldObject($fieldObject);
|
167 |
+
fieldObjectKey = fieldObject.get('key');
|
168 |
}
|
169 |
|
170 |
+
// get parent from acf-fields div
|
171 |
+
var $fields = field.$el.closest('.acf-fields');
|
172 |
|
173 |
+
// get parent from acf-table div
|
174 |
+
if (!$fields.length) {
|
175 |
+
$fields = field.$el.closest('.acf-table');
|
176 |
+
}
|
177 |
+
|
178 |
+
// found parent
|
179 |
+
if ($fields.length) {
|
180 |
+
|
181 |
+
var $sibling;
|
182 |
+
|
183 |
+
// find within parent field
|
184 |
+
if (fieldObjectKey) {
|
185 |
+
$sibling = $fields.find('[data-name="' + field.get(type) + '"]').not('.acf-input-sub .acf-field-object[data-key!="' + fieldObjectKey + '"] [data-name="' + field.get(type) + '"]').first();
|
186 |
+
|
187 |
+
// find within parent
|
188 |
+
} else {
|
189 |
+
$sibling = $fields.find('[data-name="' + field.get(type) + '"]').first();
|
190 |
+
}
|
191 |
+
|
192 |
+
if ($sibling.length) {
|
193 |
+
|
194 |
+
// apply after/before
|
195 |
+
$sibling[type](field.$el);
|
196 |
+
}
|
197 |
|
|
|
|
|
198 |
}
|
199 |
|
200 |
}
|
202 |
}
|
203 |
});
|
204 |
|
205 |
+
/**
|
206 |
* Tab Attribute: Before/After
|
207 |
*/
|
208 |
var Tab = acf.models.TabField;
|
211 |
|
212 |
initialize: function() {
|
213 |
|
214 |
+
// bail early if no before/after
|
215 |
+
if (this.has('before') || this.has('after')) {
|
216 |
|
217 |
// vars
|
218 |
+
var type = this.has('before') ? 'before' : 'after';
|
219 |
|
220 |
+
// get parent from acf-fields div
|
221 |
+
var $fields = this.$el.closest('.acf-fields');
|
222 |
+
var $fieldObject = this.$el.closest('.acf-field-object');
|
223 |
+
var fieldObject, fieldObjectKey;
|
224 |
+
|
225 |
+
if ($fieldObject.length) {
|
226 |
+
fieldObject = acf.getFieldObject($fieldObject);
|
227 |
+
fieldObjectKey = fieldObject.get('key');
|
228 |
}
|
229 |
|
230 |
+
// get parent from acf-table div
|
231 |
+
if (!$fields.length) {
|
232 |
+
$fields = this.$el.closest('.acf-table');
|
233 |
+
}
|
234 |
|
235 |
+
// found parent
|
236 |
+
if ($fields.length) {
|
237 |
+
|
238 |
+
var $sibling;
|
239 |
+
|
240 |
+
// find within parent field
|
241 |
+
if (fieldObjectKey) {
|
242 |
+
$sibling = $fields.find('[data-name="' + this.get(type) + '"]').not('.acf-input-sub .acf-field-object[data-key!="' + fieldObjectKey + '"] [data-name="' + this.get(type) + '"]').first();
|
243 |
+
|
244 |
+
// find within parent
|
245 |
+
} else {
|
246 |
+
$sibling = $fields.find('[data-name="' + this.get(type) + '"]').first();
|
247 |
+
}
|
248 |
+
|
249 |
+
if ($sibling.length) {
|
250 |
+
|
251 |
+
// apply after/before
|
252 |
+
$sibling[type](this.$el);
|
253 |
+
}
|
254 |
|
|
|
|
|
255 |
}
|
256 |
|
257 |
}
|
263 |
|
264 |
});
|
265 |
|
266 |
+
/**
|
267 |
* Field Group: Locations - Date/Time Picker
|
268 |
*/
|
269 |
new acf.Model({
|
276 |
},
|
277 |
|
278 |
initialize: function() {
|
279 |
+
|
280 |
+
// ACF 6.0 changed #acf-field-group-locations to .field-group-locations
|
281 |
+
this.$el = $('#acf-field-group-locations, .field-group-locations');
|
282 |
},
|
283 |
|
284 |
onAppend: function($el) {
|
313 |
|
314 |
});
|
315 |
|
316 |
+
/**
|
317 |
* Field Group: Meta
|
318 |
*/
|
319 |
new acf.Model({
|
332 |
|
333 |
});
|
334 |
|
335 |
+
/**
|
336 |
* Field Group Custom Slug
|
337 |
*/
|
338 |
new acf.Model({
|
assets/js/acfe-field-group.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(c){var i;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(new acf.Model({actions:{append_field_object:"appendCodeEditor"},appendCodeEditor:function(e){var t;"acfe_code_editor"===e.get("type")&&(1<(t=e.$setting("default_value").find("> .acf-input > .acf-input-wrap > .CodeMirror")).length&&t.last().remove(),1<(e=e.$setting("placeholder").find("> .acf-input > .acf-input-wrap > .CodeMirror")).length&&e.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"},ucFirst:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},renderTitle:function(e){var t=acf.getInstance(e),a=t.$setting("columns"),e=acf.getInstance(a).getValue(),a=t.$setting("endpoint"),a=acf.getInstance(a).getValue();t.set("label","(Column "+this.ucFirst(e=a?"Endpoint":e)+")")},renderField: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)}}),new acf.Model({filters:{"select2_ajax_data/action=acfe/fields/taxonomy_terms/allow_query":"taxonomyTermsAjax"},taxonomyTermsAjax:function(e,t,a,n,i){var f=a.closest(".acf-field-settings").find("> .acf-field-setting-taxonomy > .acf-input > select > option:selected"),l=[];f.each(function(){l.push(c(this).val())}),e.taxonomies=l;a=a.closest(".acf-field-settings").find('> .acf-field-setting-allow_terms > .acf-input input[type="number"]');return e.level=a.val(),e}}),new acf.Model({wait:"prepare",initialize:function(){c(".button.edit-field").each(function(){var e=c(this),t=e.closest("tbody, .acf-field-settings");c(t).find(".acfe-data-button:first").insertAfter(e),c(t).find(".acfe-modal:first").appendTo(c("body")),c(t).find(".acf-field-setting-acfe_field_data:first").remove()})}}),new acf.Model({actions:{new_field:"onNewField"},onNewField:function(e){var t,a,n;(e.has("before")||e.has("after"))&&"tab"!==e.get("type")&&(t=e.has("before")?"before":"after",(n=e.$el.closest(".acf-field-object")).length&&(a=acf.getFieldObject(n).get("key")),!(n=!(n=e.$el.closest(".acf-fields")).length?e.$el.closest(".acf-table"):n).length||(n=(a?n.find('[data-name="'+e.get(t)+'"]').not('.acf-input-sub .acf-field-object[data-key!="'+a+'"] [data-name="'+e.get(t)+'"]'):n.find('[data-name="'+e.get(t)+'"]')).first()).length&&n[t](e.$el))}}),i=acf.models.TabField,acf.models.TabField=i.extend({initialize:function(){var e,t,a,n;(this.has("before")||this.has("after"))&&(e=this.has("before")?"before":"after",n=this.$el.closest(".acf-fields"),(t=this.$el.closest(".acf-field-object")).length&&(a=acf.getFieldObject(t).get("key")),!(n=!n.length?this.$el.closest(".acf-table"):n).length||(n=(a?n.find('[data-name="'+this.get(e)+'"]').not('.acf-input-sub .acf-field-object[data-key!="'+a+'"] [data-name="'+this.get(e)+'"]'):n.find('[data-name="'+this.get(e)+'"]')).first()).length&&n[e](this.$el)),i.prototype.initialize.apply(this,arguments)}}),new acf.Model({wait:"ready",actions:{append:"onAppend","acfe/field_group/rule_refresh":"refreshFields"},initialize:function(){this.$el=c("#acf-field-group-locations, .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({events:{"keyup #post_name":"onInput"},onInput:function(e,t){var a=t.val();a.startsWith("group_")||t.val(a="group_"+a),c('[name="acf_field_group[key]"]').val(a),c(".misc-pub-acfe-field-group-key code").html(a)}}))}(jQuery);
|
assets/js/acfe-input.js
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
(function($) {
|
2 |
|
3 |
-
if (typeof acf === 'undefined')
|
4 |
return;
|
|
|
5 |
|
6 |
-
|
7 |
* Field: Advanced Link
|
8 |
*/
|
9 |
var ACFE_Advanced_Link = acf.Field.extend({
|
@@ -37,13 +38,10 @@
|
|
37 |
};
|
38 |
|
39 |
if (data.type === 'post') {
|
40 |
-
|
41 |
data.url = data.post;
|
42 |
|
43 |
} else if (data.type === 'term') {
|
44 |
-
|
45 |
data.url = data.term;
|
46 |
-
|
47 |
}
|
48 |
|
49 |
return data;
|
@@ -67,11 +65,13 @@
|
|
67 |
$div.removeClass('-value -external');
|
68 |
|
69 |
// add class
|
70 |
-
if (val.url)
|
71 |
$div.addClass('-value');
|
|
|
72 |
|
73 |
-
if (val.target)
|
74 |
$div.addClass('-external');
|
|
|
75 |
|
76 |
// update text
|
77 |
this.$('.link-title').html(val.title);
|
@@ -133,7 +133,7 @@
|
|
133 |
|
134 |
acf.registerFieldType(ACFE_Advanced_Link);
|
135 |
|
136 |
-
|
137 |
* Field: Advanced Link Manager
|
138 |
*/
|
139 |
new acf.Model({
|
@@ -162,15 +162,14 @@
|
|
162 |
|
163 |
ajaxField: function(ajaxData, data, $el, field, select) {
|
164 |
|
165 |
-
if (field.get('key') !== 'post')
|
166 |
return ajaxData;
|
|
|
167 |
|
168 |
var advanced_link = acf.getInstance($el.closest('.acf-field-acfe-advanced-link'));
|
169 |
|
170 |
if (advanced_link) {
|
171 |
-
|
172 |
ajaxData.field_key = advanced_link.get('key');
|
173 |
-
|
174 |
}
|
175 |
|
176 |
return ajaxData;
|
@@ -182,10 +181,11 @@
|
|
182 |
})(jQuery);
|
183 |
(function($) {
|
184 |
|
185 |
-
if (typeof acf === 'undefined')
|
186 |
return;
|
|
|
187 |
|
188 |
-
|
189 |
* Field: Button
|
190 |
*/
|
191 |
var ACFE_Button = acf.Field.extend({
|
@@ -291,29 +291,52 @@
|
|
291 |
})(jQuery);
|
292 |
(function($) {
|
293 |
|
294 |
-
if (typeof acf === 'undefined')
|
295 |
return;
|
|
|
296 |
|
297 |
-
|
298 |
* Field: Checkbox
|
299 |
*/
|
300 |
new acf.Model({
|
301 |
|
302 |
actions: {
|
303 |
-
'new_field
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
},
|
305 |
|
306 |
newField: function(field) {
|
307 |
|
308 |
// bail early
|
309 |
-
if (!
|
|
|
|
|
310 |
|
311 |
-
//
|
312 |
-
|
|
|
313 |
|
314 |
-
|
|
|
315 |
|
316 |
-
|
|
|
|
|
|
|
317 |
|
318 |
}
|
319 |
|
@@ -322,10 +345,11 @@
|
|
322 |
})(jQuery);
|
323 |
(function($) {
|
324 |
|
325 |
-
if (typeof acf === 'undefined')
|
326 |
return;
|
|
|
327 |
|
328 |
-
|
329 |
* Field: Clone
|
330 |
*/
|
331 |
var Clone = acf.Field.extend({
|
@@ -354,9 +378,22 @@
|
|
354 |
|
355 |
onClick: function(e, $el) {
|
356 |
|
|
|
357 |
var title = this.$labelWrap().find('label').text().trim();
|
358 |
-
var $modal = this.$el.find('> .acf-input > .acfe-modal').addClass('acfe-modal-edit-' + this.get('name') + ' acfe-modal-edit-' + this.get('key'));
|
359 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
360 |
|
361 |
// Title
|
362 |
if (!title.length) {
|
@@ -397,133 +434,103 @@
|
|
397 |
})(jQuery);
|
398 |
(function($) {
|
399 |
|
400 |
-
if (typeof acf === 'undefined')
|
401 |
return;
|
|
|
402 |
|
403 |
-
|
404 |
* Field: Code Editor
|
405 |
*/
|
406 |
var CodeEditor = acf.Field.extend({
|
407 |
|
408 |
-
wait:
|
409 |
|
410 |
type: 'acfe_code_editor',
|
411 |
|
|
|
|
|
412 |
events: {
|
413 |
'showField': 'onShow',
|
414 |
'duplicateField': 'onDuplicate'
|
415 |
},
|
416 |
|
417 |
$control: function() {
|
418 |
-
|
419 |
-
return this.$el.find('> .acf-input > .acf-input-wrap');
|
420 |
-
|
421 |
},
|
422 |
|
423 |
$input: function() {
|
424 |
-
|
425 |
-
return this.$el.find('> .acf-input > .acf-input-wrap > textarea');
|
426 |
-
|
427 |
-
},
|
428 |
-
|
429 |
-
input: function() {
|
430 |
-
|
431 |
-
return this.$input()[0];
|
432 |
-
|
433 |
-
},
|
434 |
-
|
435 |
-
rows: function() {
|
436 |
-
|
437 |
-
return this.$input().attr('rows');
|
438 |
-
|
439 |
},
|
440 |
|
441 |
initialize: function() {
|
442 |
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
this.lines = this.$control().data('lines');
|
448 |
-
this.indentUnit = this.$control().data('indent-unit');
|
449 |
-
|
450 |
-
var codeEditor = [];
|
451 |
-
|
452 |
-
// Default WP settings
|
453 |
-
var wpCodeMirror = wp.codeEditor.defaultSettings.codemirror;
|
454 |
|
455 |
-
//
|
456 |
-
var
|
457 |
-
lineNumbers: this.lines,
|
458 |
lineWrapping: true,
|
459 |
styleActiveLine: false,
|
460 |
continueComments: true,
|
461 |
-
indentUnit: this.indentUnit,
|
462 |
tabSize: 1,
|
463 |
indentWithTabs: false,
|
464 |
-
|
|
|
465 |
extraKeys: {
|
466 |
-
Tab: function(cm) {
|
467 |
-
cm.execCommand(
|
468 |
},
|
469 |
-
|
470 |
-
cm.execCommand(
|
471 |
},
|
472 |
},
|
473 |
-
}
|
474 |
-
|
475 |
-
// Merge settings
|
476 |
-
var codeMirror = jQuery.extend(wpCodeMirror, CodeMirror);
|
477 |
-
|
478 |
-
// Push CodeMirror settings to codemirror property
|
479 |
-
codeEditor.codemirror = codeMirror;
|
480 |
-
|
481 |
-
// Init WP Code Editor
|
482 |
-
this.editor = wp.codeEditor.initialize(this.input(), codeEditor);
|
483 |
-
|
484 |
-
if (this.rows || this.max_rows) {
|
485 |
-
|
486 |
-
if (this.rows) {
|
487 |
-
|
488 |
-
this.editor.codemirror.getScrollerElement().style.minHeight = this.rows * 18.5 + 'px';
|
489 |
-
|
490 |
-
}
|
491 |
-
|
492 |
-
if (this.max_rows) {
|
493 |
|
494 |
-
|
|
|
|
|
|
|
495 |
|
496 |
-
|
|
|
|
|
|
|
497 |
|
498 |
-
|
|
|
|
|
499 |
|
|
|
|
|
500 |
}
|
501 |
|
502 |
-
|
503 |
|
504 |
-
|
|
|
|
|
505 |
|
506 |
-
|
507 |
-
field.$input().change();
|
508 |
|
509 |
-
|
|
|
|
|
|
|
510 |
|
511 |
},
|
512 |
|
513 |
onShow: function() {
|
514 |
-
|
515 |
if (this.editor.codemirror) {
|
516 |
-
|
517 |
this.editor.codemirror.refresh();
|
518 |
-
|
519 |
}
|
520 |
-
|
521 |
},
|
522 |
|
523 |
onDuplicate: function(e, $el, $duplicate) {
|
524 |
-
|
525 |
$duplicate.find('.CodeMirror:last').remove();
|
526 |
-
|
527 |
},
|
528 |
|
529 |
});
|
@@ -533,10 +540,11 @@
|
|
533 |
})(jQuery);
|
534 |
(function($) {
|
535 |
|
536 |
-
if (typeof acf === 'undefined')
|
537 |
return;
|
|
|
538 |
|
539 |
-
|
540 |
* Field: Column
|
541 |
*/
|
542 |
var Column = acf.Field.extend({
|
@@ -553,7 +561,7 @@
|
|
553 |
|
554 |
if (this.$el.is('td')) {
|
555 |
|
556 |
-
|
557 |
this.remove();
|
558 |
|
559 |
}
|
@@ -590,16 +598,17 @@
|
|
590 |
})(jQuery);
|
591 |
(function($) {
|
592 |
|
593 |
-
if (typeof acf === 'undefined')
|
594 |
return;
|
|
|
595 |
|
596 |
-
|
597 |
* Init
|
598 |
*/
|
599 |
var flexible = acf.getFieldType('flexible_content');
|
600 |
var model = flexible.prototype;
|
601 |
|
602 |
-
|
603 |
* Actions
|
604 |
*/
|
605 |
model.events['click .acf-fc-layout-handle'] = 'acfeEditLayoutTitleToggleHandle';
|
@@ -744,7 +753,7 @@
|
|
744 |
|
745 |
}
|
746 |
|
747 |
-
|
748 |
* Layout: Toggle Action
|
749 |
*/
|
750 |
model.events['click [data-acfe-flexible-control-toggle]'] = 'acfeLayoutToggle';
|
@@ -775,7 +784,7 @@
|
|
775 |
|
776 |
}
|
777 |
|
778 |
-
|
779 |
* Layout: Toggle Spawn
|
780 |
*/
|
781 |
acf.addAction('acfe/flexible/layouts', function($layout, flexible) {
|
@@ -1179,7 +1188,7 @@
|
|
1179 |
|
1180 |
}
|
1181 |
|
1182 |
-
|
1183 |
* Based on acf.duplicate (5.9)
|
1184 |
*
|
1185 |
* doAction('duplicate) has been commented out
|
@@ -1460,7 +1469,7 @@
|
|
1460 |
|
1461 |
}
|
1462 |
|
1463 |
-
|
1464 |
* Spawn
|
1465 |
*/
|
1466 |
acf.addAction('new_field/type=flexible_content', function(flexible) {
|
@@ -1479,16 +1488,17 @@
|
|
1479 |
})(jQuery);
|
1480 |
(function($) {
|
1481 |
|
1482 |
-
if (typeof acf === 'undefined')
|
1483 |
return;
|
|
|
1484 |
|
1485 |
-
|
1486 |
* Init
|
1487 |
*/
|
1488 |
var flexible = acf.getFieldType('flexible_content');
|
1489 |
var model = flexible.prototype;
|
1490 |
|
1491 |
-
|
1492 |
* Actions
|
1493 |
*/
|
1494 |
model.events['click [data-action="acfe-flexible-modal-edit"]'] = 'acfeModalEdit';
|
@@ -1504,7 +1514,7 @@
|
|
1504 |
var $handle = $layout.find('> .acf-fc-layout-handle');
|
1505 |
|
1506 |
var $layout_order = $handle.find('> .acf-fc-layout-order').outerHTML();
|
1507 |
-
var $layout_title = acfe.getTextNode($handle.find('.acfe-layout-title
|
1508 |
|
1509 |
var close = false;
|
1510 |
if (flexible.has('acfeFlexibleCloseButton')) {
|
@@ -1529,7 +1539,7 @@
|
|
1529 |
|
1530 |
};
|
1531 |
|
1532 |
-
|
1533 |
* Spawn
|
1534 |
*/
|
1535 |
acf.addAction('new_field/type=flexible_content', function(flexible) {
|
@@ -1553,16 +1563,17 @@
|
|
1553 |
})(jQuery);
|
1554 |
(function($) {
|
1555 |
|
1556 |
-
if (typeof acf === 'undefined')
|
1557 |
return;
|
|
|
1558 |
|
1559 |
-
|
1560 |
* Init
|
1561 |
*/
|
1562 |
var flexible = acf.getFieldType('flexible_content');
|
1563 |
var model = flexible.prototype;
|
1564 |
|
1565 |
-
|
1566 |
* Actions
|
1567 |
*/
|
1568 |
model.acfeModalSelect = function(e, $el) {
|
@@ -1589,21 +1600,6 @@
|
|
1589 |
html: ''
|
1590 |
};
|
1591 |
|
1592 |
-
function SearchArray(element, array) {
|
1593 |
-
|
1594 |
-
var len = array.length,
|
1595 |
-
str = element.toString().toLowerCase();
|
1596 |
-
|
1597 |
-
for (var i = 0; i < len; i++) {
|
1598 |
-
if (array[i].toLowerCase() === str) {
|
1599 |
-
return i;
|
1600 |
-
}
|
1601 |
-
}
|
1602 |
-
|
1603 |
-
return -1;
|
1604 |
-
|
1605 |
-
}
|
1606 |
-
|
1607 |
// Get Categories
|
1608 |
$(layouts).find('li a span[data-acfe-flexible-category]').each(function() {
|
1609 |
|
@@ -1611,10 +1607,9 @@
|
|
1611 |
|
1612 |
$.each(spanCats, function() {
|
1613 |
|
1614 |
-
if (
|
1615 |
-
|
1616 |
-
|
1617 |
-
categories.array.push(this);
|
1618 |
|
1619 |
});
|
1620 |
|
@@ -1630,9 +1625,7 @@
|
|
1630 |
categories.html += '<a href="#" data-acfe-flexible-category="acfe-all" class="nav-tab nav-tab-active"><span class="dashicons dashicons-menu"></span></a>';
|
1631 |
|
1632 |
$(categories.array).each(function(k, category) {
|
1633 |
-
|
1634 |
categories.html += '<a href="#" data-acfe-flexible-category="' + category + '" class="nav-tab">' + category + '</a>';
|
1635 |
-
|
1636 |
});
|
1637 |
|
1638 |
categories.html += '</h2>';
|
@@ -1686,7 +1679,9 @@
|
|
1686 |
// Modal: Layouts Badges
|
1687 |
$modal.find('li a span.badge').each(function() {
|
1688 |
|
1689 |
-
|
|
|
|
|
1690 |
|
1691 |
});
|
1692 |
|
@@ -1723,7 +1718,6 @@
|
|
1723 |
if (selected_category.toLowerCase() === c.toLowerCase()) {
|
1724 |
|
1725 |
$span.closest('li').show();
|
1726 |
-
|
1727 |
return false;
|
1728 |
|
1729 |
}
|
@@ -1754,7 +1748,7 @@
|
|
1754 |
|
1755 |
}
|
1756 |
|
1757 |
-
|
1758 |
* Spawn
|
1759 |
*/
|
1760 |
acf.addAction('new_field/type=flexible_content', function(flexible) {
|
@@ -1783,10 +1777,11 @@
|
|
1783 |
})(jQuery);
|
1784 |
(function($) {
|
1785 |
|
1786 |
-
if (typeof acf === 'undefined')
|
1787 |
return;
|
|
|
1788 |
|
1789 |
-
|
1790 |
* Field: Flexible Content Overwrite
|
1791 |
*/
|
1792 |
var FlexibleContent = acf.models.FlexibleContentField;
|
@@ -1938,7 +1933,7 @@
|
|
1938 |
|
1939 |
});
|
1940 |
|
1941 |
-
|
1942 |
* Field: Flexible Content
|
1943 |
*/
|
1944 |
new acf.Model({
|
@@ -2222,10 +2217,11 @@
|
|
2222 |
})(jQuery);
|
2223 |
(function($) {
|
2224 |
|
2225 |
-
if (typeof acf === 'undefined')
|
2226 |
return;
|
|
|
2227 |
|
2228 |
-
|
2229 |
* Field: Group
|
2230 |
*/
|
2231 |
var Group = acf.Field.extend({
|
@@ -2254,7 +2250,21 @@
|
|
2254 |
|
2255 |
onClick: function(e, $el) {
|
2256 |
|
|
|
2257 |
var title = this.$labelWrap().find('label').text().trim();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2258 |
var $modal = this.$el.find('> .acf-input > .acfe-modal').addClass('acfe-modal-edit-' + this.get('name') + ' acfe-modal-edit-' + this.get('key'));
|
2259 |
|
2260 |
// Title
|
@@ -2296,37 +2306,58 @@
|
|
2296 |
})(jQuery);
|
2297 |
(function($) {
|
2298 |
|
2299 |
-
if (typeof acf === 'undefined')
|
2300 |
return;
|
|
|
2301 |
|
2302 |
-
|
2303 |
* Field: Radio
|
2304 |
*/
|
2305 |
new acf.Model({
|
2306 |
|
2307 |
actions: {
|
2308 |
-
'new_field
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2309 |
},
|
2310 |
|
2311 |
newField: function(field) {
|
2312 |
|
2313 |
// bail early
|
2314 |
-
if (!
|
|
|
|
|
|
|
|
|
|
|
|
|
2315 |
|
2316 |
-
//
|
2317 |
-
|
2318 |
|
2319 |
-
|
|
|
2320 |
|
2321 |
-
}
|
2322 |
|
2323 |
// horizontal rule
|
2324 |
if (field.$control().hasClass('acf-hl')) {
|
2325 |
|
2326 |
field.$control().find('li.parent').each(function() {
|
2327 |
-
|
2328 |
$(this).nextUntil('li.parent').addBack().wrapAll('<li><ul></ul></li>');
|
2329 |
-
|
2330 |
});
|
2331 |
|
2332 |
}
|
@@ -2338,10 +2369,11 @@
|
|
2338 |
})(jQuery);
|
2339 |
(function($) {
|
2340 |
|
2341 |
-
if (typeof acf === 'undefined')
|
2342 |
return;
|
|
|
2343 |
|
2344 |
-
|
2345 |
* Field: reCaptcha
|
2346 |
*/
|
2347 |
var reCaptcha = acf.Field.extend({
|
@@ -2453,10 +2485,11 @@
|
|
2453 |
})(jQuery);
|
2454 |
(function($) {
|
2455 |
|
2456 |
-
if (typeof acf === 'undefined')
|
2457 |
return;
|
|
|
2458 |
|
2459 |
-
|
2460 |
* Init
|
2461 |
*/
|
2462 |
var repeater = acf.getFieldType('repeater');
|
@@ -2472,7 +2505,7 @@
|
|
2472 |
|
2473 |
}
|
2474 |
|
2475 |
-
|
2476 |
* Spawn
|
2477 |
*/
|
2478 |
acf.addAction('new_field/type=repeater', function(repeater) {
|
@@ -2516,24 +2549,25 @@
|
|
2516 |
})(jQuery);
|
2517 |
(function($) {
|
2518 |
|
2519 |
-
if (typeof acf === 'undefined')
|
2520 |
return;
|
|
|
2521 |
|
2522 |
-
|
2523 |
* Field: Select2 Hooks
|
2524 |
*/
|
2525 |
new acf.Model({
|
2526 |
|
2527 |
actions: {
|
2528 |
-
'select2_init': '
|
2529 |
},
|
2530 |
|
2531 |
filters: {
|
2532 |
-
'select2_args': '
|
2533 |
-
'select2_ajax_data': '
|
2534 |
},
|
2535 |
|
2536 |
-
|
2537 |
|
2538 |
acf.doAction('select2_init/type=' + field.get('type'), $select, options, data, field, instance);
|
2539 |
acf.doAction('select2_init/name=' + field.get('name'), $select, options, data, field, instance);
|
@@ -2541,7 +2575,7 @@
|
|
2541 |
|
2542 |
},
|
2543 |
|
2544 |
-
|
2545 |
|
2546 |
options = acf.applyFilters('select2_args/type=' + field.get('type'), options, $select, data, field, instance);
|
2547 |
options = acf.applyFilters('select2_args/name=' + field.get('name'), options, $select, data, field, instance);
|
@@ -2551,7 +2585,7 @@
|
|
2551 |
|
2552 |
},
|
2553 |
|
2554 |
-
|
2555 |
|
2556 |
ajaxData = acf.applyFilters('select2_ajax_data/type=' + field.get('type'), ajaxData, data, $el, field, instance);
|
2557 |
ajaxData = acf.applyFilters('select2_ajax_data/name=' + field.get('name'), ajaxData, data, $el, field, instance);
|
@@ -2567,21 +2601,59 @@
|
|
2567 |
|
2568 |
});
|
2569 |
|
2570 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2571 |
* Field: Select
|
2572 |
*/
|
2573 |
new acf.Model({
|
2574 |
|
2575 |
actions: {
|
2576 |
-
'new_field/type=select': '
|
2577 |
-
'select2_init': '
|
2578 |
},
|
2579 |
|
2580 |
filters: {
|
2581 |
-
'select2_args': '
|
2582 |
},
|
2583 |
|
2584 |
-
|
2585 |
|
2586 |
// inherit properties
|
2587 |
field.inherit(field.$input());
|
@@ -2634,7 +2706,7 @@
|
|
2634 |
|
2635 |
},
|
2636 |
|
2637 |
-
|
2638 |
|
2639 |
// Add Class on Dropdown with Field Name + key for developers <3
|
2640 |
if ($select.data('select2')) {
|
@@ -2664,7 +2736,7 @@
|
|
2664 |
|
2665 |
},
|
2666 |
|
2667 |
-
|
2668 |
|
2669 |
// Allow Custom tags
|
2670 |
if (field.get('acfeAllowCustom')) {
|
@@ -2679,21 +2751,51 @@
|
|
2679 |
return null;
|
2680 |
}
|
2681 |
|
2682 |
-
var
|
2683 |
|
2684 |
-
|
|
|
2685 |
|
2686 |
-
|
|
|
2687 |
|
2688 |
-
|
2689 |
-
return false;
|
2690 |
|
2691 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2692 |
|
2693 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2694 |
return null;
|
2695 |
}
|
2696 |
|
|
|
2697 |
return {
|
2698 |
id: term,
|
2699 |
text: term
|
@@ -2731,10 +2833,11 @@
|
|
2731 |
})(jQuery);
|
2732 |
(function($) {
|
2733 |
|
2734 |
-
if (typeof acf === 'undefined')
|
2735 |
return;
|
|
|
2736 |
|
2737 |
-
|
2738 |
* Field: Slug
|
2739 |
*/
|
2740 |
var ACFE_Slug = acf.Field.extend({
|
@@ -2772,10 +2875,11 @@
|
|
2772 |
})(jQuery);
|
2773 |
(function($) {
|
2774 |
|
2775 |
-
if (typeof acf === 'undefined')
|
2776 |
return;
|
|
|
2777 |
|
2778 |
-
|
2779 |
* Field: Tab
|
2780 |
*/
|
2781 |
new acf.Model({
|
@@ -2821,10 +2925,11 @@
|
|
2821 |
})(jQuery);
|
2822 |
(function($) {
|
2823 |
|
2824 |
-
if (typeof acf === 'undefined')
|
2825 |
return;
|
|
|
2826 |
|
2827 |
-
|
2828 |
* Field: Textarea
|
2829 |
*/
|
2830 |
var Textarea = acf.Field.extend({
|
@@ -2864,10 +2969,11 @@
|
|
2864 |
})(jQuery);
|
2865 |
(function($) {
|
2866 |
|
2867 |
-
if (typeof acf === 'undefined')
|
2868 |
return;
|
|
|
2869 |
|
2870 |
-
|
2871 |
* Field: WYSIWYG Overwrite
|
2872 |
*/
|
2873 |
var Wysiwyg = acf.models.WysiwygField;
|
@@ -2885,7 +2991,7 @@
|
|
2885 |
|
2886 |
});
|
2887 |
|
2888 |
-
|
2889 |
* Field: WYSIWYG
|
2890 |
*/
|
2891 |
new acf.Model({
|
@@ -2926,16 +3032,17 @@
|
|
2926 |
})(jQuery);
|
2927 |
(function($) {
|
2928 |
|
2929 |
-
if (typeof acf === 'undefined')
|
2930 |
return;
|
|
|
2931 |
|
2932 |
-
|
2933 |
* Checkbox & Radio
|
2934 |
*/
|
2935 |
acf.registerConditionForFieldType('contains', 'checkbox');
|
2936 |
acf.registerConditionForFieldType('contains', 'radio');
|
2937 |
|
2938 |
-
|
2939 |
* Code Editor
|
2940 |
*/
|
2941 |
acf.registerConditionForFieldType('equalTo', 'acfe_code_editor');
|
@@ -2945,7 +3052,7 @@
|
|
2945 |
acf.registerConditionForFieldType('hasValue', 'acfe_code_editor');
|
2946 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_code_editor');
|
2947 |
|
2948 |
-
|
2949 |
* Date Picker
|
2950 |
*/
|
2951 |
acf.registerConditionForFieldType('equalTo', 'date_picker');
|
@@ -2955,7 +3062,7 @@
|
|
2955 |
acf.registerConditionForFieldType('greaterThan', 'date_picker');
|
2956 |
acf.registerConditionForFieldType('lessThan', 'date_picker');
|
2957 |
|
2958 |
-
|
2959 |
* Date Time Picker
|
2960 |
*/
|
2961 |
acf.registerConditionForFieldType('equalTo', 'date_time_picker');
|
@@ -2963,7 +3070,7 @@
|
|
2963 |
acf.registerConditionForFieldType('patternMatch', 'date_time_picker');
|
2964 |
acf.registerConditionForFieldType('contains', 'date_time_picker');
|
2965 |
|
2966 |
-
|
2967 |
* Forms
|
2968 |
*/
|
2969 |
acf.registerConditionForFieldType('equalTo', 'acfe_forms');
|
@@ -2973,7 +3080,7 @@
|
|
2973 |
acf.registerConditionForFieldType('hasValue', 'acfe_forms');
|
2974 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_forms');
|
2975 |
|
2976 |
-
|
2977 |
* Hidden
|
2978 |
*/
|
2979 |
acf.registerConditionForFieldType('equalTo', 'acfe_hidden');
|
@@ -2983,7 +3090,7 @@
|
|
2983 |
acf.registerConditionForFieldType('hasValue', 'acfe_hidden');
|
2984 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_hidden');
|
2985 |
|
2986 |
-
|
2987 |
* Post Status
|
2988 |
*/
|
2989 |
acf.registerConditionForFieldType('equalTo', 'acfe_post_statuses');
|
@@ -2993,7 +3100,7 @@
|
|
2993 |
acf.registerConditionForFieldType('hasValue', 'acfe_post_statuses');
|
2994 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_post_statuses');
|
2995 |
|
2996 |
-
|
2997 |
* Post Types
|
2998 |
*/
|
2999 |
acf.registerConditionForFieldType('equalTo', 'acfe_post_types');
|
@@ -3003,7 +3110,7 @@
|
|
3003 |
acf.registerConditionForFieldType('hasValue', 'acfe_post_types');
|
3004 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_post_types');
|
3005 |
|
3006 |
-
|
3007 |
* Slug
|
3008 |
*/
|
3009 |
acf.registerConditionForFieldType('equalTo', 'acfe_slug');
|
@@ -3013,7 +3120,7 @@
|
|
3013 |
acf.registerConditionForFieldType('hasValue', 'acfe_slug');
|
3014 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_slug');
|
3015 |
|
3016 |
-
|
3017 |
* Taxonomies
|
3018 |
*/
|
3019 |
acf.registerConditionForFieldType('equalTo', 'acfe_taxonomies');
|
@@ -3023,7 +3130,7 @@
|
|
3023 |
acf.registerConditionForFieldType('hasValue', 'acfe_taxonomies');
|
3024 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_taxonomies');
|
3025 |
|
3026 |
-
|
3027 |
* Taxonomy
|
3028 |
*/
|
3029 |
acf.registerConditionForFieldType('equalTo', 'taxonomy');
|
@@ -3033,7 +3140,7 @@
|
|
3033 |
acf.registerConditionForFieldType('hasValue', 'taxonomy');
|
3034 |
acf.registerConditionForFieldType('hasNoValue', 'taxonomy');
|
3035 |
|
3036 |
-
|
3037 |
* Taxonomy Terms
|
3038 |
*/
|
3039 |
acf.registerConditionForFieldType('equalTo', 'acfe_taxonomy_terms');
|
@@ -3043,7 +3150,7 @@
|
|
3043 |
acf.registerConditionForFieldType('hasValue', 'acfe_taxonomy_terms');
|
3044 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_taxonomy_terms');
|
3045 |
|
3046 |
-
|
3047 |
* Time Picker
|
3048 |
*/
|
3049 |
acf.registerConditionForFieldType('equalTo', 'time_picker');
|
@@ -3051,7 +3158,7 @@
|
|
3051 |
acf.registerConditionForFieldType('patternMatch', 'time_picker');
|
3052 |
acf.registerConditionForFieldType('contains', 'time_picker');
|
3053 |
|
3054 |
-
|
3055 |
* User Roles
|
3056 |
*/
|
3057 |
acf.registerConditionForFieldType('equalTo', 'acfe_user_roles');
|
@@ -3064,10 +3171,248 @@
|
|
3064 |
})(jQuery);
|
3065 |
(function($) {
|
3066 |
|
3067 |
-
if (typeof acf === 'undefined')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3068 |
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3069 |
|
3070 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3071 |
* Field: Instructions
|
3072 |
*/
|
3073 |
new acf.Model({
|
@@ -3099,7 +3444,9 @@
|
|
3099 |
|
3100 |
setTooltip: function() {
|
3101 |
|
3102 |
-
|
|
|
|
|
3103 |
this.field.$labelWrap().find('.description').remove();
|
3104 |
|
3105 |
},
|
@@ -3202,7 +3549,9 @@
|
|
3202 |
|
3203 |
} else if (target === 'tooltip') {
|
3204 |
|
3205 |
-
|
|
|
|
|
3206 |
$instruction.remove();
|
3207 |
|
3208 |
}
|
@@ -3214,146 +3563,120 @@
|
|
3214 |
})(jQuery);
|
3215 |
(function($) {
|
3216 |
|
3217 |
-
if (typeof acf === 'undefined')
|
3218 |
return;
|
|
|
3219 |
|
3220 |
-
|
3221 |
-
|
3222 |
-
|
3223 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3224 |
|
3225 |
actions: {
|
3226 |
-
'new_field': '
|
|
|
|
|
|
|
|
|
|
|
3227 |
},
|
3228 |
|
3229 |
-
|
3230 |
-
|
3231 |
-
|
3232 |
-
|
3233 |
-
|
3234 |
-
// vars
|
3235 |
-
var type = field.get('type');
|
3236 |
-
var proxyType = field.get('proxyType');
|
3237 |
-
|
3238 |
-
// set new $el
|
3239 |
-
field.$el.data('type', proxyType);
|
3240 |
-
field.$el.attr('data-type', proxyType);
|
3241 |
-
|
3242 |
-
// remove proxy type
|
3243 |
-
field.$el.removeData('proxy-type');
|
3244 |
-
field.$el.removeAttr('data-proxy-type');
|
3245 |
-
|
3246 |
-
// save original field & cleanup
|
3247 |
-
//field.$el.removeData('acf');
|
3248 |
-
|
3249 |
-
// init
|
3250 |
-
acf.newField(field.$el);
|
3251 |
-
|
3252 |
},
|
3253 |
|
3254 |
-
|
3255 |
|
3256 |
-
|
3257 |
-
var type = $field.data('type');
|
3258 |
-
var mid = modelId( type );
|
3259 |
-
var model = acf.models[ mid ] || acf.Field;
|
3260 |
|
3261 |
-
|
3262 |
-
var field = new model( $field );
|
3263 |
|
3264 |
-
|
3265 |
-
|
|
|
3266 |
|
3267 |
-
|
3268 |
-
return field;
|
3269 |
|
3270 |
},
|
3271 |
|
3272 |
-
|
3273 |
|
3274 |
-
|
3275 |
-
(function($) {
|
3276 |
|
3277 |
-
|
3278 |
-
|
|
|
3279 |
|
3280 |
-
|
3281 |
-
* ACFE Form
|
3282 |
-
*/
|
3283 |
-
new acf.Model({
|
3284 |
|
3285 |
-
actions: {
|
3286 |
-
'prepare': 'prepare',
|
3287 |
-
'new_field/type=date_picker': 'datePicker',
|
3288 |
-
'new_field/type=date_time_picker': 'datePicker',
|
3289 |
-
'new_field/type=time_picker': 'datePicker',
|
3290 |
-
'new_field/type=google_map': 'googleMap',
|
3291 |
-
'invalid_field': 'invalidField',
|
3292 |
-
'validation_begin': 'validationBegin',
|
3293 |
},
|
3294 |
|
3295 |
-
|
3296 |
-
|
3297 |
-
if (acfe.get('is_admin')) return;
|
3298 |
-
|
3299 |
-
// Fix Image/File WP Media upload
|
3300 |
-
if (acf.isset(window, 'wp', 'media', 'view', 'settings', 'post')) {
|
3301 |
|
3302 |
-
|
3303 |
-
|
3304 |
|
3305 |
-
|
3306 |
|
|
|
3307 |
if ($('.acfe-form[data-hide-unload="1"]').length) {
|
3308 |
acf.unload.disable();
|
3309 |
}
|
|
|
3310 |
|
3311 |
-
|
3312 |
-
|
3313 |
-
if ($form_success.length) {
|
3314 |
|
3315 |
-
|
3316 |
-
|
3317 |
-
|
3318 |
-
}
|
3319 |
|
3320 |
-
|
|
|
|
|
|
|
3321 |
|
3322 |
-
|
3323 |
-
|
3324 |
|
3325 |
-
|
3326 |
-
|
3327 |
-
|
|
|
3328 |
|
3329 |
-
|
|
|
|
|
|
|
3330 |
|
3331 |
-
}
|
3332 |
|
3333 |
-
|
3334 |
-
$('.acf-form .button, .acf-form [type="submit"], .acfe-form .button, .acfe-form [type="submit"]').click(function(e) {
|
3335 |
|
3336 |
-
|
3337 |
|
|
|
|
|
3338 |
e.preventDefault();
|
3339 |
-
|
3340 |
-
});
|
3341 |
-
|
3342 |
},
|
3343 |
|
3344 |
// Datepicker: Add field class
|
3345 |
datePicker: function(field) {
|
3346 |
|
3347 |
-
|
3348 |
-
|
3349 |
-
var $form = field.$el.closest('.acfe-form');
|
3350 |
-
|
3351 |
-
if (!$form.length) return;
|
3352 |
|
3353 |
-
|
3354 |
-
|
3355 |
-
if (field_class) {
|
3356 |
-
field.$inputText().addClass(field_class);
|
3357 |
}
|
3358 |
|
3359 |
},
|
@@ -3361,16 +3684,10 @@
|
|
3361 |
// Google Maps: Add field class
|
3362 |
googleMap: function(field) {
|
3363 |
|
3364 |
-
|
3365 |
-
|
3366 |
-
var $form = field.$el.closest('.acfe-form');
|
3367 |
-
|
3368 |
-
if (!$form.length) return;
|
3369 |
|
3370 |
-
|
3371 |
-
|
3372 |
-
if (field_class) {
|
3373 |
-
field.$search().addClass(field_class);
|
3374 |
}
|
3375 |
|
3376 |
},
|
@@ -3378,29 +3695,33 @@
|
|
3378 |
// Error: Move error
|
3379 |
invalidField: function(field) {
|
3380 |
|
3381 |
-
|
3382 |
-
|
3383 |
-
var $form = field.$el.closest('.acfe-form');
|
3384 |
|
3385 |
-
if (!$form
|
|
|
|
|
3386 |
|
3387 |
-
|
3388 |
-
var
|
3389 |
|
3390 |
-
|
3391 |
-
|
3392 |
-
field.$el.find('.acf-notice.-error').addClass(errors_class);
|
3393 |
}
|
3394 |
|
3395 |
-
//
|
3396 |
-
|
3397 |
|
3398 |
-
|
|
|
|
|
|
|
|
|
|
|
3399 |
|
|
|
3400 |
field.$el.find('.acf-notice.-error').insertAfter(field.$control());
|
3401 |
|
3402 |
} else if (field.$input().length) {
|
3403 |
-
|
3404 |
field.$el.find('.acf-notice.-error').insertAfter(field.$input());
|
3405 |
|
3406 |
}
|
@@ -3408,11 +3729,9 @@
|
|
3408 |
var $selector = false;
|
3409 |
|
3410 |
if (field.$control().length) {
|
3411 |
-
|
3412 |
$selector = field.$control();
|
3413 |
|
3414 |
} else if (field.$input().length) {
|
3415 |
-
|
3416 |
$selector = field.$input();
|
3417 |
|
3418 |
}
|
@@ -3421,10 +3740,8 @@
|
|
3421 |
field.$el.find('.acf-notice.-error').insertAfter($selector);
|
3422 |
}
|
3423 |
|
3424 |
-
|
3425 |
-
|
3426 |
-
// Group errors
|
3427 |
-
else if (errors_position && errors_position === 'group') {
|
3428 |
|
3429 |
var label = field.$el.find('.acf-label label').text().trim();
|
3430 |
var placeholder = field.$el.find('.acf-input-wrap [placeholder!=""]').attr('placeholder');
|
@@ -3432,19 +3749,21 @@
|
|
3432 |
|
3433 |
field.$el.find('.acf-notice.-error').remove();
|
3434 |
|
3435 |
-
//
|
3436 |
if (label && label.length && label !== '*') {
|
|
|
|
|
|
|
3437 |
message = label + ': ' + message;
|
3438 |
-
}
|
3439 |
|
3440 |
-
|
3441 |
-
else if (placeholder && placeholder.length && placeholder !== '') {
|
3442 |
message = placeholder + ': ' + message;
|
3443 |
-
}
|
3444 |
|
3445 |
-
|
3446 |
-
else {
|
3447 |
message = field.get('name') + ': ' + message;
|
|
|
3448 |
}
|
3449 |
|
3450 |
var $form_error = $form.find('> .acfe-form-error')
|
@@ -3457,19 +3776,14 @@
|
|
3457 |
|
3458 |
}
|
3459 |
|
3460 |
-
// Hide errors
|
3461 |
-
else if (errors_position && errors_position === 'hide') {
|
3462 |
-
field.$el.find('.acf-notice.-error').remove();
|
3463 |
-
}
|
3464 |
-
|
3465 |
},
|
3466 |
|
3467 |
// Ajax Validation
|
3468 |
validationBegin: function($form) {
|
3469 |
|
3470 |
-
if (
|
3471 |
-
|
3472 |
-
|
3473 |
|
3474 |
$form.find('.acf-error-message').remove();
|
3475 |
|
@@ -3540,9 +3854,7 @@
|
|
3540 |
|
3541 |
// ACF Extended: Check in all form if targeted field not found
|
3542 |
if (target && !field) {
|
3543 |
-
|
3544 |
field = acf.getField(rule.field);
|
3545 |
-
|
3546 |
}
|
3547 |
|
3548 |
// bail ealry if no target or no field (possible if field doesn't exist due to HTML error)
|
1 |
(function($) {
|
2 |
|
3 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
4 |
return;
|
5 |
+
}
|
6 |
|
7 |
+
/**
|
8 |
* Field: Advanced Link
|
9 |
*/
|
10 |
var ACFE_Advanced_Link = acf.Field.extend({
|
38 |
};
|
39 |
|
40 |
if (data.type === 'post') {
|
|
|
41 |
data.url = data.post;
|
42 |
|
43 |
} else if (data.type === 'term') {
|
|
|
44 |
data.url = data.term;
|
|
|
45 |
}
|
46 |
|
47 |
return data;
|
65 |
$div.removeClass('-value -external');
|
66 |
|
67 |
// add class
|
68 |
+
if (val.url || val.title) {
|
69 |
$div.addClass('-value');
|
70 |
+
}
|
71 |
|
72 |
+
if (val.target) {
|
73 |
$div.addClass('-external');
|
74 |
+
}
|
75 |
|
76 |
// update text
|
77 |
this.$('.link-title').html(val.title);
|
133 |
|
134 |
acf.registerFieldType(ACFE_Advanced_Link);
|
135 |
|
136 |
+
/**
|
137 |
* Field: Advanced Link Manager
|
138 |
*/
|
139 |
new acf.Model({
|
162 |
|
163 |
ajaxField: function(ajaxData, data, $el, field, select) {
|
164 |
|
165 |
+
if (field.get('key') !== 'post') {
|
166 |
return ajaxData;
|
167 |
+
}
|
168 |
|
169 |
var advanced_link = acf.getInstance($el.closest('.acf-field-acfe-advanced-link'));
|
170 |
|
171 |
if (advanced_link) {
|
|
|
172 |
ajaxData.field_key = advanced_link.get('key');
|
|
|
173 |
}
|
174 |
|
175 |
return ajaxData;
|
181 |
})(jQuery);
|
182 |
(function($) {
|
183 |
|
184 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
185 |
return;
|
186 |
+
}
|
187 |
|
188 |
+
/**
|
189 |
* Field: Button
|
190 |
*/
|
191 |
var ACFE_Button = acf.Field.extend({
|
291 |
})(jQuery);
|
292 |
(function($) {
|
293 |
|
294 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
295 |
return;
|
296 |
+
}
|
297 |
|
298 |
+
/**
|
299 |
* Field: Checkbox
|
300 |
*/
|
301 |
new acf.Model({
|
302 |
|
303 |
actions: {
|
304 |
+
'new_field': 'newField',
|
305 |
+
},
|
306 |
+
|
307 |
+
validateField: function(field) {
|
308 |
+
|
309 |
+
// check setting
|
310 |
+
if (!field.has('acfeLabels')) {
|
311 |
+
return false;
|
312 |
+
}
|
313 |
+
|
314 |
+
// get type and real type
|
315 |
+
var type = field.has('rtype') ? field.get('rtype') : field.get('type');
|
316 |
+
|
317 |
+
// not radio
|
318 |
+
return type === 'checkbox';
|
319 |
+
|
320 |
},
|
321 |
|
322 |
newField: function(field) {
|
323 |
|
324 |
// bail early
|
325 |
+
if (!this.validateField(field)) {
|
326 |
+
return;
|
327 |
+
}
|
328 |
|
329 |
+
// vars
|
330 |
+
var label, item;
|
331 |
+
var labels = field.get('acfeLabels');
|
332 |
|
333 |
+
// loop
|
334 |
+
for (label in labels) {
|
335 |
|
336 |
+
item = labels[label];
|
337 |
+
field.$control().find('input[type=checkbox][value="' + item + '"]').closest('ul').before('<strong>' + label + '</strong>');
|
338 |
+
|
339 |
+
}
|
340 |
|
341 |
}
|
342 |
|
345 |
})(jQuery);
|
346 |
(function($) {
|
347 |
|
348 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
349 |
return;
|
350 |
+
}
|
351 |
|
352 |
+
/**
|
353 |
* Field: Clone
|
354 |
*/
|
355 |
var Clone = acf.Field.extend({
|
378 |
|
379 |
onClick: function(e, $el) {
|
380 |
|
381 |
+
// normal title
|
382 |
var title = this.$labelWrap().find('label').text().trim();
|
|
|
383 |
|
384 |
+
// inside table
|
385 |
+
if (this.$el.is('td')) {
|
386 |
+
|
387 |
+
title = this.get('acfeGroupModalButton');
|
388 |
+
var $th = this.$el.closest('table').find(' > thead th[data-key="' + this.get('key') + '"]');
|
389 |
+
|
390 |
+
if ($th.length) {
|
391 |
+
title = acfe.getTextNode($th);
|
392 |
+
}
|
393 |
+
|
394 |
+
}
|
395 |
+
|
396 |
+
var $modal = this.$el.find('> .acf-input > .acfe-modal').addClass('acfe-modal-edit-' + this.get('name') + ' acfe-modal-edit-' + this.get('key'));
|
397 |
|
398 |
// Title
|
399 |
if (!title.length) {
|
434 |
})(jQuery);
|
435 |
(function($) {
|
436 |
|
437 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
438 |
return;
|
439 |
+
}
|
440 |
|
441 |
+
/**
|
442 |
* Field: Code Editor
|
443 |
*/
|
444 |
var CodeEditor = acf.Field.extend({
|
445 |
|
446 |
+
wait: false,
|
447 |
|
448 |
type: 'acfe_code_editor',
|
449 |
|
450 |
+
editor: {},
|
451 |
+
|
452 |
events: {
|
453 |
'showField': 'onShow',
|
454 |
'duplicateField': 'onDuplicate'
|
455 |
},
|
456 |
|
457 |
$control: function() {
|
458 |
+
return this.$('> .acf-input > .acf-input-wrap');
|
|
|
|
|
459 |
},
|
460 |
|
461 |
$input: function() {
|
462 |
+
return this.$control().find('> textarea');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
},
|
464 |
|
465 |
initialize: function() {
|
466 |
|
467 |
+
// bail early
|
468 |
+
if (!acf.isset(wp, 'codeEditor')) {
|
469 |
+
return;
|
470 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
471 |
|
472 |
+
// args
|
473 |
+
var args = {
|
474 |
+
lineNumbers: this.get('lines'),
|
475 |
lineWrapping: true,
|
476 |
styleActiveLine: false,
|
477 |
continueComments: true,
|
478 |
+
indentUnit: this.get('indentUnit'),
|
479 |
tabSize: 1,
|
480 |
indentWithTabs: false,
|
481 |
+
autoRefresh: true, // needed for gutenberg metabox
|
482 |
+
mode: this.get('mode'),
|
483 |
extraKeys: {
|
484 |
+
'Tab': function(cm) {
|
485 |
+
cm.execCommand('indentMore')
|
486 |
},
|
487 |
+
'Shift-Tab': function(cm) {
|
488 |
+
cm.execCommand('indentLess')
|
489 |
},
|
490 |
},
|
491 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
492 |
|
493 |
+
// filter args
|
494 |
+
args = acf.applyFilters('acfe/fields/code_editor/args', args, this);
|
495 |
+
args = acf.applyFilters('acfe/fields/code_editor/args/name=' + this.get('name'), args, this);
|
496 |
+
args = acf.applyFilters('acfe/fields/code_editor/args/key=' + this.get('key'), args, this);
|
497 |
|
498 |
+
// initialize wp editor
|
499 |
+
this.editor = wp.codeEditor.initialize(this.$input().get(0), {
|
500 |
+
codemirror: $.extend(wp.codeEditor.defaultSettings.codemirror, args)
|
501 |
+
});
|
502 |
|
503 |
+
if (this.get('rows')) {
|
504 |
+
this.editor.codemirror.getScrollerElement().style.minHeight = this.get('rows') * 18.5 + 'px';
|
505 |
+
}
|
506 |
|
507 |
+
if (this.get('maxRows')) {
|
508 |
+
this.editor.codemirror.getScrollerElement().style.maxHeight = this.get('maxRows') * 18.5 + 'px';
|
509 |
}
|
510 |
|
511 |
+
this.editor.codemirror.on('change', this.proxy(this.onEditorChange));
|
512 |
|
513 |
+
acf.doAction('acfe/fields/code_editor/init', this.editor, this);
|
514 |
+
acf.doAction('acfe/fields/code_editor/init/name=' + this.get('name'), this.editor, this);
|
515 |
+
acf.doAction('acfe/fields/code_editor/init/key=' + this.get('key'), this.editor, this);
|
516 |
|
517 |
+
},
|
|
|
518 |
|
519 |
+
onEditorChange: function(e, $el) {
|
520 |
+
|
521 |
+
this.editor.codemirror.save();
|
522 |
+
this.$input().change();
|
523 |
|
524 |
},
|
525 |
|
526 |
onShow: function() {
|
|
|
527 |
if (this.editor.codemirror) {
|
|
|
528 |
this.editor.codemirror.refresh();
|
|
|
529 |
}
|
|
|
530 |
},
|
531 |
|
532 |
onDuplicate: function(e, $el, $duplicate) {
|
|
|
533 |
$duplicate.find('.CodeMirror:last').remove();
|
|
|
534 |
},
|
535 |
|
536 |
});
|
540 |
})(jQuery);
|
541 |
(function($) {
|
542 |
|
543 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
544 |
return;
|
545 |
+
}
|
546 |
|
547 |
+
/**
|
548 |
* Field: Column
|
549 |
*/
|
550 |
var Column = acf.Field.extend({
|
561 |
|
562 |
if (this.$el.is('td')) {
|
563 |
|
564 |
+
this.$el.closest('.acf-table').find('th[data-type="acfe_column"]').remove();
|
565 |
this.remove();
|
566 |
|
567 |
}
|
598 |
})(jQuery);
|
599 |
(function($) {
|
600 |
|
601 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
602 |
return;
|
603 |
+
}
|
604 |
|
605 |
+
/**
|
606 |
* Init
|
607 |
*/
|
608 |
var flexible = acf.getFieldType('flexible_content');
|
609 |
var model = flexible.prototype;
|
610 |
|
611 |
+
/**
|
612 |
* Actions
|
613 |
*/
|
614 |
model.events['click .acf-fc-layout-handle'] = 'acfeEditLayoutTitleToggleHandle';
|
753 |
|
754 |
}
|
755 |
|
756 |
+
/**
|
757 |
* Layout: Toggle Action
|
758 |
*/
|
759 |
model.events['click [data-acfe-flexible-control-toggle]'] = 'acfeLayoutToggle';
|
784 |
|
785 |
}
|
786 |
|
787 |
+
/**
|
788 |
* Layout: Toggle Spawn
|
789 |
*/
|
790 |
acf.addAction('acfe/flexible/layouts', function($layout, flexible) {
|
1188 |
|
1189 |
}
|
1190 |
|
1191 |
+
/**
|
1192 |
* Based on acf.duplicate (5.9)
|
1193 |
*
|
1194 |
* doAction('duplicate) has been commented out
|
1469 |
|
1470 |
}
|
1471 |
|
1472 |
+
/**
|
1473 |
* Spawn
|
1474 |
*/
|
1475 |
acf.addAction('new_field/type=flexible_content', function(flexible) {
|
1488 |
})(jQuery);
|
1489 |
(function($) {
|
1490 |
|
1491 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
1492 |
return;
|
1493 |
+
}
|
1494 |
|
1495 |
+
/**
|
1496 |
* Init
|
1497 |
*/
|
1498 |
var flexible = acf.getFieldType('flexible_content');
|
1499 |
var model = flexible.prototype;
|
1500 |
|
1501 |
+
/**
|
1502 |
* Actions
|
1503 |
*/
|
1504 |
model.events['click [data-action="acfe-flexible-modal-edit"]'] = 'acfeModalEdit';
|
1514 |
var $handle = $layout.find('> .acf-fc-layout-handle');
|
1515 |
|
1516 |
var $layout_order = $handle.find('> .acf-fc-layout-order').outerHTML();
|
1517 |
+
var $layout_title = acfe.getTextNode($handle.find('.acfe-layout-title'));
|
1518 |
|
1519 |
var close = false;
|
1520 |
if (flexible.has('acfeFlexibleCloseButton')) {
|
1539 |
|
1540 |
};
|
1541 |
|
1542 |
+
/**
|
1543 |
* Spawn
|
1544 |
*/
|
1545 |
acf.addAction('new_field/type=flexible_content', function(flexible) {
|
1563 |
})(jQuery);
|
1564 |
(function($) {
|
1565 |
|
1566 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
1567 |
return;
|
1568 |
+
}
|
1569 |
|
1570 |
+
/**
|
1571 |
* Init
|
1572 |
*/
|
1573 |
var flexible = acf.getFieldType('flexible_content');
|
1574 |
var model = flexible.prototype;
|
1575 |
|
1576 |
+
/**
|
1577 |
* Actions
|
1578 |
*/
|
1579 |
model.acfeModalSelect = function(e, $el) {
|
1600 |
html: ''
|
1601 |
};
|
1602 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1603 |
// Get Categories
|
1604 |
$(layouts).find('li a span[data-acfe-flexible-category]').each(function() {
|
1605 |
|
1607 |
|
1608 |
$.each(spanCats, function() {
|
1609 |
|
1610 |
+
if (!acfe.inArray(this, categories.array)) {
|
1611 |
+
categories.array.push(this);
|
1612 |
+
}
|
|
|
1613 |
|
1614 |
});
|
1615 |
|
1625 |
categories.html += '<a href="#" data-acfe-flexible-category="acfe-all" class="nav-tab nav-tab-active"><span class="dashicons dashicons-menu"></span></a>';
|
1626 |
|
1627 |
$(categories.array).each(function(k, category) {
|
|
|
1628 |
categories.html += '<a href="#" data-acfe-flexible-category="' + category + '" class="nav-tab">' + category + '</a>';
|
|
|
1629 |
});
|
1630 |
|
1631 |
categories.html += '</h2>';
|
1679 |
// Modal: Layouts Badges
|
1680 |
$modal.find('li a span.badge').each(function() {
|
1681 |
|
1682 |
+
var icon = acfe.versionCompare(acf.get('wp_version'), '>=', '5.5') ? 'dashicons-info-outline' : 'dashicons-info';
|
1683 |
+
|
1684 |
+
$(this).addClass('acf-js-tooltip dashicons ' + icon);
|
1685 |
|
1686 |
});
|
1687 |
|
1718 |
if (selected_category.toLowerCase() === c.toLowerCase()) {
|
1719 |
|
1720 |
$span.closest('li').show();
|
|
|
1721 |
return false;
|
1722 |
|
1723 |
}
|
1748 |
|
1749 |
}
|
1750 |
|
1751 |
+
/**
|
1752 |
* Spawn
|
1753 |
*/
|
1754 |
acf.addAction('new_field/type=flexible_content', function(flexible) {
|
1777 |
})(jQuery);
|
1778 |
(function($) {
|
1779 |
|
1780 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
1781 |
return;
|
1782 |
+
}
|
1783 |
|
1784 |
+
/**
|
1785 |
* Field: Flexible Content Overwrite
|
1786 |
*/
|
1787 |
var FlexibleContent = acf.models.FlexibleContentField;
|
1933 |
|
1934 |
});
|
1935 |
|
1936 |
+
/**
|
1937 |
* Field: Flexible Content
|
1938 |
*/
|
1939 |
new acf.Model({
|
2217 |
})(jQuery);
|
2218 |
(function($) {
|
2219 |
|
2220 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
2221 |
return;
|
2222 |
+
}
|
2223 |
|
2224 |
+
/**
|
2225 |
* Field: Group
|
2226 |
*/
|
2227 |
var Group = acf.Field.extend({
|
2250 |
|
2251 |
onClick: function(e, $el) {
|
2252 |
|
2253 |
+
// normal title
|
2254 |
var title = this.$labelWrap().find('label').text().trim();
|
2255 |
+
|
2256 |
+
// inside table
|
2257 |
+
if (this.$el.is('td')) {
|
2258 |
+
|
2259 |
+
title = this.get('acfeGroupModalButton');
|
2260 |
+
var $th = this.$el.closest('table').find(' > thead th[data-key="' + this.get('key') + '"]');
|
2261 |
+
|
2262 |
+
if ($th.length) {
|
2263 |
+
title = acfe.getTextNode($th);
|
2264 |
+
}
|
2265 |
+
|
2266 |
+
}
|
2267 |
+
|
2268 |
var $modal = this.$el.find('> .acf-input > .acfe-modal').addClass('acfe-modal-edit-' + this.get('name') + ' acfe-modal-edit-' + this.get('key'));
|
2269 |
|
2270 |
// Title
|
2306 |
})(jQuery);
|
2307 |
(function($) {
|
2308 |
|
2309 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
2310 |
return;
|
2311 |
+
}
|
2312 |
|
2313 |
+
/**
|
2314 |
* Field: Radio
|
2315 |
*/
|
2316 |
new acf.Model({
|
2317 |
|
2318 |
actions: {
|
2319 |
+
'new_field': 'newField',
|
2320 |
+
},
|
2321 |
+
|
2322 |
+
validateField: function(field) {
|
2323 |
+
|
2324 |
+
// check setting
|
2325 |
+
if (!field.has('acfeLabels')) {
|
2326 |
+
return false;
|
2327 |
+
}
|
2328 |
+
|
2329 |
+
// get type and real type
|
2330 |
+
var type = field.has('rtype') ? field.get('rtype') : field.get('type');
|
2331 |
+
|
2332 |
+
// not radio
|
2333 |
+
return type === 'radio';
|
2334 |
+
|
2335 |
},
|
2336 |
|
2337 |
newField: function(field) {
|
2338 |
|
2339 |
// bail early
|
2340 |
+
if (!this.validateField(field)) {
|
2341 |
+
return;
|
2342 |
+
}
|
2343 |
+
|
2344 |
+
// vars
|
2345 |
+
var label, item;
|
2346 |
+
var labels = field.get('acfeLabels');
|
2347 |
|
2348 |
+
// loop
|
2349 |
+
for (label in labels) {
|
2350 |
|
2351 |
+
item = labels[label];
|
2352 |
+
field.$control().find('input[type=radio][value="' + item + '"]').closest('li').addClass('parent').prepend('<strong>' + label + '</strong>');
|
2353 |
|
2354 |
+
}
|
2355 |
|
2356 |
// horizontal rule
|
2357 |
if (field.$control().hasClass('acf-hl')) {
|
2358 |
|
2359 |
field.$control().find('li.parent').each(function() {
|
|
|
2360 |
$(this).nextUntil('li.parent').addBack().wrapAll('<li><ul></ul></li>');
|
|
|
2361 |
});
|
2362 |
|
2363 |
}
|
2369 |
})(jQuery);
|
2370 |
(function($) {
|
2371 |
|
2372 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
2373 |
return;
|
2374 |
+
}
|
2375 |
|
2376 |
+
/**
|
2377 |
* Field: reCaptcha
|
2378 |
*/
|
2379 |
var reCaptcha = acf.Field.extend({
|
2485 |
})(jQuery);
|
2486 |
(function($) {
|
2487 |
|
2488 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
2489 |
return;
|
2490 |
+
}
|
2491 |
|
2492 |
+
/**
|
2493 |
* Init
|
2494 |
*/
|
2495 |
var repeater = acf.getFieldType('repeater');
|
2505 |
|
2506 |
}
|
2507 |
|
2508 |
+
/**
|
2509 |
* Spawn
|
2510 |
*/
|
2511 |
acf.addAction('new_field/type=repeater', function(repeater) {
|
2549 |
})(jQuery);
|
2550 |
(function($) {
|
2551 |
|
2552 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
2553 |
return;
|
2554 |
+
}
|
2555 |
|
2556 |
+
/**
|
2557 |
* Field: Select2 Hooks
|
2558 |
*/
|
2559 |
new acf.Model({
|
2560 |
|
2561 |
actions: {
|
2562 |
+
'select2_init': 'init',
|
2563 |
},
|
2564 |
|
2565 |
filters: {
|
2566 |
+
'select2_args': 'args',
|
2567 |
+
'select2_ajax_data': 'ajax',
|
2568 |
},
|
2569 |
|
2570 |
+
init: function($select, options, data, field, instance) {
|
2571 |
|
2572 |
acf.doAction('select2_init/type=' + field.get('type'), $select, options, data, field, instance);
|
2573 |
acf.doAction('select2_init/name=' + field.get('name'), $select, options, data, field, instance);
|
2575 |
|
2576 |
},
|
2577 |
|
2578 |
+
args: function(options, $select, data, field, instance) {
|
2579 |
|
2580 |
options = acf.applyFilters('select2_args/type=' + field.get('type'), options, $select, data, field, instance);
|
2581 |
options = acf.applyFilters('select2_args/name=' + field.get('name'), options, $select, data, field, instance);
|
2585 |
|
2586 |
},
|
2587 |
|
2588 |
+
ajax: function(ajaxData, data, $el, field, instance) {
|
2589 |
|
2590 |
ajaxData = acf.applyFilters('select2_ajax_data/type=' + field.get('type'), ajaxData, data, $el, field, instance);
|
2591 |
ajaxData = acf.applyFilters('select2_ajax_data/name=' + field.get('name'), ajaxData, data, $el, field, instance);
|
2601 |
|
2602 |
});
|
2603 |
|
2604 |
+
/**
|
2605 |
+
* Field: Select2 (onLoad)
|
2606 |
+
*/
|
2607 |
+
new acf.Model({
|
2608 |
+
|
2609 |
+
wait: 'load',
|
2610 |
+
priority: 20,
|
2611 |
+
actions: {
|
2612 |
+
'append_field/type=select': 'closeOnClear'
|
2613 |
+
},
|
2614 |
+
|
2615 |
+
initialize: function() {
|
2616 |
+
|
2617 |
+
acf.getFields({
|
2618 |
+
type: 'select'
|
2619 |
+
}).map(this.proxy(this.closeOnClear));
|
2620 |
+
|
2621 |
+
},
|
2622 |
+
|
2623 |
+
closeOnClear: function(field) {
|
2624 |
+
|
2625 |
+
if (!field.select2) {
|
2626 |
+
return;
|
2627 |
+
}
|
2628 |
+
|
2629 |
+
// close select2 on clear
|
2630 |
+
// https://github.com/select2/select2/issues/3320#issuecomment-1004007176
|
2631 |
+
field.select2.on('select2:clear', function(e) {
|
2632 |
+
$(this).on('select2:opening.cancelOpen', function(e) {
|
2633 |
+
e.preventDefault();
|
2634 |
+
$(this).off("select2:opening.cancelOpen");
|
2635 |
+
});
|
2636 |
+
});
|
2637 |
+
|
2638 |
+
}
|
2639 |
+
|
2640 |
+
});
|
2641 |
+
|
2642 |
+
/**
|
2643 |
* Field: Select
|
2644 |
*/
|
2645 |
new acf.Model({
|
2646 |
|
2647 |
actions: {
|
2648 |
+
'new_field/type=select': 'newField',
|
2649 |
+
'select2_init': 'init',
|
2650 |
},
|
2651 |
|
2652 |
filters: {
|
2653 |
+
'select2_args': 'args',
|
2654 |
},
|
2655 |
|
2656 |
+
newField: function(field) {
|
2657 |
|
2658 |
// inherit properties
|
2659 |
field.inherit(field.$input());
|
2706 |
|
2707 |
},
|
2708 |
|
2709 |
+
init: function($select, options, data, field, instance) {
|
2710 |
|
2711 |
// Add Class on Dropdown with Field Name + key for developers <3
|
2712 |
if ($select.data('select2')) {
|
2736 |
|
2737 |
},
|
2738 |
|
2739 |
+
args: function(options, $select, data, field, instance) {
|
2740 |
|
2741 |
// Allow Custom tags
|
2742 |
if (field.get('acfeAllowCustom')) {
|
2751 |
return null;
|
2752 |
}
|
2753 |
|
2754 |
+
var found = false;
|
2755 |
|
2756 |
+
// check if ajax results
|
2757 |
+
var results = acf.isget(this, '_request', 'responseJSON', 'results');
|
2758 |
|
2759 |
+
// ajax results
|
2760 |
+
if (results) {
|
2761 |
|
2762 |
+
$.each(results, function() {
|
|
|
2763 |
|
2764 |
+
if (!this.children) {
|
2765 |
+
return;
|
2766 |
+
}
|
2767 |
+
|
2768 |
+
$.each(this.children, function() {
|
2769 |
+
if (this.id.toLowerCase() === term.toLowerCase()) {
|
2770 |
+
found = true;
|
2771 |
+
return false;
|
2772 |
+
}
|
2773 |
+
});
|
2774 |
|
2775 |
+
if (found) {
|
2776 |
+
return false;
|
2777 |
+
}
|
2778 |
+
|
2779 |
+
});
|
2780 |
+
|
2781 |
+
// normal results
|
2782 |
+
} else {
|
2783 |
+
|
2784 |
+
this.$element.find('option').each(function() {
|
2785 |
+
if (this.value.toLowerCase() === term.toLowerCase()) {
|
2786 |
+
found = true;
|
2787 |
+
return false;
|
2788 |
+
}
|
2789 |
+
});
|
2790 |
+
|
2791 |
+
}
|
2792 |
+
|
2793 |
+
// found
|
2794 |
+
if (found) {
|
2795 |
return null;
|
2796 |
}
|
2797 |
|
2798 |
+
// create tag
|
2799 |
return {
|
2800 |
id: term,
|
2801 |
text: term
|
2833 |
})(jQuery);
|
2834 |
(function($) {
|
2835 |
|
2836 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
2837 |
return;
|
2838 |
+
}
|
2839 |
|
2840 |
+
/**
|
2841 |
* Field: Slug
|
2842 |
*/
|
2843 |
var ACFE_Slug = acf.Field.extend({
|
2875 |
})(jQuery);
|
2876 |
(function($) {
|
2877 |
|
2878 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
2879 |
return;
|
2880 |
+
}
|
2881 |
|
2882 |
+
/**
|
2883 |
* Field: Tab
|
2884 |
*/
|
2885 |
new acf.Model({
|
2925 |
})(jQuery);
|
2926 |
(function($) {
|
2927 |
|
2928 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
2929 |
return;
|
2930 |
+
}
|
2931 |
|
2932 |
+
/**
|
2933 |
* Field: Textarea
|
2934 |
*/
|
2935 |
var Textarea = acf.Field.extend({
|
2969 |
})(jQuery);
|
2970 |
(function($) {
|
2971 |
|
2972 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
2973 |
return;
|
2974 |
+
}
|
2975 |
|
2976 |
+
/**
|
2977 |
* Field: WYSIWYG Overwrite
|
2978 |
*/
|
2979 |
var Wysiwyg = acf.models.WysiwygField;
|
2991 |
|
2992 |
});
|
2993 |
|
2994 |
+
/**
|
2995 |
* Field: WYSIWYG
|
2996 |
*/
|
2997 |
new acf.Model({
|
3032 |
})(jQuery);
|
3033 |
(function($) {
|
3034 |
|
3035 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
3036 |
return;
|
3037 |
+
}
|
3038 |
|
3039 |
+
/**
|
3040 |
* Checkbox & Radio
|
3041 |
*/
|
3042 |
acf.registerConditionForFieldType('contains', 'checkbox');
|
3043 |
acf.registerConditionForFieldType('contains', 'radio');
|
3044 |
|
3045 |
+
/**
|
3046 |
* Code Editor
|
3047 |
*/
|
3048 |
acf.registerConditionForFieldType('equalTo', 'acfe_code_editor');
|
3052 |
acf.registerConditionForFieldType('hasValue', 'acfe_code_editor');
|
3053 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_code_editor');
|
3054 |
|
3055 |
+
/**
|
3056 |
* Date Picker
|
3057 |
*/
|
3058 |
acf.registerConditionForFieldType('equalTo', 'date_picker');
|
3062 |
acf.registerConditionForFieldType('greaterThan', 'date_picker');
|
3063 |
acf.registerConditionForFieldType('lessThan', 'date_picker');
|
3064 |
|
3065 |
+
/**
|
3066 |
* Date Time Picker
|
3067 |
*/
|
3068 |
acf.registerConditionForFieldType('equalTo', 'date_time_picker');
|
3070 |
acf.registerConditionForFieldType('patternMatch', 'date_time_picker');
|
3071 |
acf.registerConditionForFieldType('contains', 'date_time_picker');
|
3072 |
|
3073 |
+
/**
|
3074 |
* Forms
|
3075 |
*/
|
3076 |
acf.registerConditionForFieldType('equalTo', 'acfe_forms');
|
3080 |
acf.registerConditionForFieldType('hasValue', 'acfe_forms');
|
3081 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_forms');
|
3082 |
|
3083 |
+
/**
|
3084 |
* Hidden
|
3085 |
*/
|
3086 |
acf.registerConditionForFieldType('equalTo', 'acfe_hidden');
|
3090 |
acf.registerConditionForFieldType('hasValue', 'acfe_hidden');
|
3091 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_hidden');
|
3092 |
|
3093 |
+
/**
|
3094 |
* Post Status
|
3095 |
*/
|
3096 |
acf.registerConditionForFieldType('equalTo', 'acfe_post_statuses');
|
3100 |
acf.registerConditionForFieldType('hasValue', 'acfe_post_statuses');
|
3101 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_post_statuses');
|
3102 |
|
3103 |
+
/**
|
3104 |
* Post Types
|
3105 |
*/
|
3106 |
acf.registerConditionForFieldType('equalTo', 'acfe_post_types');
|
3110 |
acf.registerConditionForFieldType('hasValue', 'acfe_post_types');
|
3111 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_post_types');
|
3112 |
|
3113 |
+
/**
|
3114 |
* Slug
|
3115 |
*/
|
3116 |
acf.registerConditionForFieldType('equalTo', 'acfe_slug');
|
3120 |
acf.registerConditionForFieldType('hasValue', 'acfe_slug');
|
3121 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_slug');
|
3122 |
|
3123 |
+
/**
|
3124 |
* Taxonomies
|
3125 |
*/
|
3126 |
acf.registerConditionForFieldType('equalTo', 'acfe_taxonomies');
|
3130 |
acf.registerConditionForFieldType('hasValue', 'acfe_taxonomies');
|
3131 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_taxonomies');
|
3132 |
|
3133 |
+
/**
|
3134 |
* Taxonomy
|
3135 |
*/
|
3136 |
acf.registerConditionForFieldType('equalTo', 'taxonomy');
|
3140 |
acf.registerConditionForFieldType('hasValue', 'taxonomy');
|
3141 |
acf.registerConditionForFieldType('hasNoValue', 'taxonomy');
|
3142 |
|
3143 |
+
/**
|
3144 |
* Taxonomy Terms
|
3145 |
*/
|
3146 |
acf.registerConditionForFieldType('equalTo', 'acfe_taxonomy_terms');
|
3150 |
acf.registerConditionForFieldType('hasValue', 'acfe_taxonomy_terms');
|
3151 |
acf.registerConditionForFieldType('hasNoValue', 'acfe_taxonomy_terms');
|
3152 |
|
3153 |
+
/**
|
3154 |
* Time Picker
|
3155 |
*/
|
3156 |
acf.registerConditionForFieldType('equalTo', 'time_picker');
|
3158 |
acf.registerConditionForFieldType('patternMatch', 'time_picker');
|
3159 |
acf.registerConditionForFieldType('contains', 'time_picker');
|
3160 |
|
3161 |
+
/**
|
3162 |
* User Roles
|
3163 |
*/
|
3164 |
acf.registerConditionForFieldType('equalTo', 'acfe_user_roles');
|
3171 |
})(jQuery);
|
3172 |
(function($) {
|
3173 |
|
3174 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
3175 |
+
return;
|
3176 |
+
}
|
3177 |
+
|
3178 |
+
var storage = [];
|
3179 |
+
|
3180 |
+
acfe.registerEventForFieldType = function(fieldType, events, callback) {
|
3181 |
+
|
3182 |
+
// force events to array
|
3183 |
+
if (typeof events === 'string') {
|
3184 |
+
events = [events];
|
3185 |
+
}
|
3186 |
+
|
3187 |
+
// add to storage
|
3188 |
+
storage.push({
|
3189 |
+
fieldType: fieldType,
|
3190 |
+
events: events,
|
3191 |
+
callback: callback || false
|
3192 |
+
})
|
3193 |
+
|
3194 |
+
};
|
3195 |
+
|
3196 |
+
acfe.getEvents = function(args) {
|
3197 |
+
|
3198 |
+
// defaults
|
3199 |
+
args = acf.parseArgs(args, {
|
3200 |
+
fieldType: '',
|
3201 |
+
});
|
3202 |
+
|
3203 |
+
var items = [];
|
3204 |
+
|
3205 |
+
// loop
|
3206 |
+
storage.map(function(item) {
|
3207 |
+
|
3208 |
+
// check args
|
3209 |
+
if (args.fieldType && item.fieldType.indexOf(args.fieldType) === -1) {
|
3210 |
+
return;
|
3211 |
+
}
|
3212 |
+
|
3213 |
+
// push
|
3214 |
+
items.push(item);
|
3215 |
+
|
3216 |
+
});
|
3217 |
+
|
3218 |
+
// return
|
3219 |
+
return items;
|
3220 |
+
|
3221 |
+
};
|
3222 |
+
|
3223 |
+
var FieldEvent = new acf.Model({
|
3224 |
+
|
3225 |
+
actions: {
|
3226 |
+
'new_field': 'newField'
|
3227 |
+
},
|
3228 |
+
|
3229 |
+
priority: 20,
|
3230 |
+
|
3231 |
+
data: {},
|
3232 |
+
|
3233 |
+
parseEvent: function(event) {
|
3234 |
+
return event.match(/^(\S+)\s*(.*)$/);
|
3235 |
+
},
|
3236 |
+
|
3237 |
+
newField: function(field) {
|
3238 |
+
|
3239 |
+
// set previous val
|
3240 |
+
this.set(field.cid, field.val());
|
3241 |
+
|
3242 |
+
// get items
|
3243 |
+
var items = acfe.getEvents({
|
3244 |
+
fieldType: field.get('type')
|
3245 |
+
});
|
3246 |
+
|
3247 |
+
// loop items
|
3248 |
+
items.map(function(item) {
|
3249 |
+
|
3250 |
+
// loop events
|
3251 |
+
item.events.map(function(event) {
|
3252 |
+
|
3253 |
+
// match event "change input"
|
3254 |
+
var match = this.parseEvent(event);
|
3255 |
+
|
3256 |
+
// add event listener
|
3257 |
+
field.on(match[1], match[2], this.proxy(function(e) {
|
3258 |
+
|
3259 |
+
var val = field.val();
|
3260 |
+
var prevVal = this.get(field.cid);
|
3261 |
+
var $el = $(e.currentTarget);
|
3262 |
+
|
3263 |
+
var callback = item.callback || this.proxy(function(val, prevVal, field, e, $el) {
|
3264 |
+
|
3265 |
+
// vars
|
3266 |
+
var _val = val;
|
3267 |
+
var _prevVal = prevVal;
|
3268 |
+
|
3269 |
+
// compare object/array values
|
3270 |
+
if (typeof _val === 'object') {
|
3271 |
+
_val = JSON.stringify(_val);
|
3272 |
+
}
|
3273 |
+
|
3274 |
+
if (typeof _prevVal === 'object') {
|
3275 |
+
_prevVal = JSON.stringify(_prevVal);
|
3276 |
+
}
|
3277 |
+
|
3278 |
+
// avoid multiple trigger for the same value
|
3279 |
+
if (_prevVal !== _val) {
|
3280 |
+
|
3281 |
+
this.set(field.cid, val);
|
3282 |
+
|
3283 |
+
// actions
|
3284 |
+
acf.doAction('acfe/change_field', val, prevVal, field, e, $el);
|
3285 |
+
acf.doAction('acfe/change_field/type=' + field.get('type'), val, prevVal, field, e, $el);
|
3286 |
+
acf.doAction('acfe/change_field/name=' + field.get('name'), val, prevVal, field, e, $el);
|
3287 |
+
acf.doAction('acfe/change_field/key=' + field.get('key'), val, prevVal, field, e, $el);
|
3288 |
+
|
3289 |
+
}
|
3290 |
+
|
3291 |
+
|
3292 |
+
});
|
3293 |
+
|
3294 |
+
callback(val, prevVal, field, e, $el);
|
3295 |
+
|
3296 |
+
}));
|
3297 |
+
|
3298 |
+
}, this);
|
3299 |
+
|
3300 |
+
}, this);
|
3301 |
+
|
3302 |
+
}
|
3303 |
+
|
3304 |
+
});
|
3305 |
+
|
3306 |
+
// ACF
|
3307 |
+
acfe.registerEventForFieldType('button_group', 'change');
|
3308 |
+
acfe.registerEventForFieldType('checkbox', 'change');
|
3309 |
+
acfe.registerEventForFieldType('color_picker', 'change');
|
3310 |
+
acfe.registerEventForFieldType('date_picker', 'change');
|
3311 |
+
acfe.registerEventForFieldType('date_time_picker', 'change');
|
3312 |
+
acfe.registerEventForFieldType('email', ['input', 'change']);
|
3313 |
+
acfe.registerEventForFieldType('file', 'change');
|
3314 |
+
acfe.registerEventForFieldType('flexible_content', 'change');
|
3315 |
+
acfe.registerEventForFieldType('gallery', 'change');
|
3316 |
+
acfe.registerEventForFieldType('google_map', 'change');
|
3317 |
+
acfe.registerEventForFieldType('image', 'change');
|
3318 |
+
acfe.registerEventForFieldType('link', 'change');
|
3319 |
+
acfe.registerEventForFieldType('number', ['input', 'change']);
|
3320 |
+
acfe.registerEventForFieldType('oembed', 'change');
|
3321 |
+
acfe.registerEventForFieldType('page_link', 'change');
|
3322 |
+
acfe.registerEventForFieldType('post_object', 'change');
|
3323 |
+
acfe.registerEventForFieldType('relationship', 'change');
|
3324 |
+
acfe.registerEventForFieldType('password', ['input', 'change']);
|
3325 |
+
acfe.registerEventForFieldType('radio', 'change');
|
3326 |
+
acfe.registerEventForFieldType('range', ['input', 'change']);
|
3327 |
+
acfe.registerEventForFieldType('repeater', 'change');
|
3328 |
+
acfe.registerEventForFieldType('select', 'change');
|
3329 |
+
acfe.registerEventForFieldType('taxonomy', 'change');
|
3330 |
+
acfe.registerEventForFieldType('text', ['input', 'change']);
|
3331 |
+
acfe.registerEventForFieldType('textarea', ['input', 'change']);
|
3332 |
+
acfe.registerEventForFieldType('time_picker', 'change');
|
3333 |
+
acfe.registerEventForFieldType('true_false', 'change');
|
3334 |
+
acfe.registerEventForFieldType('url', ['input', 'change']);
|
3335 |
+
acfe.registerEventForFieldType('user', 'change');
|
3336 |
+
acfe.registerEventForFieldType('wysiwyg', 'change');
|
3337 |
+
|
3338 |
+
// ACFE
|
3339 |
+
acfe.registerEventForFieldType('acfe_advanced_link', 'change');
|
3340 |
+
acfe.registerEventForFieldType('acfe_block_types', 'change');
|
3341 |
+
acfe.registerEventForFieldType('acfe_countries', 'change');
|
3342 |
+
acfe.registerEventForFieldType('acfe_currencies', 'change');
|
3343 |
+
acfe.registerEventForFieldType('acfe_code_editor', 'change');
|
3344 |
+
acfe.registerEventForFieldType('acfe_date_range_picker', 'change');
|
3345 |
+
acfe.registerEventForFieldType('acfe_field_groups', 'change');
|
3346 |
+
acfe.registerEventForFieldType('acfe_field_types', 'change');
|
3347 |
+
acfe.registerEventForFieldType('acfe_fields', 'change');
|
3348 |
+
acfe.registerEventForFieldType('acfe_forms', 'change');
|
3349 |
+
acfe.registerEventForFieldType('acfe_hidden', 'change');
|
3350 |
+
acfe.registerEventForFieldType('acfe_image_selector', 'change');
|
3351 |
+
acfe.registerEventForFieldType('acfe_image_sizes', 'change');
|
3352 |
+
acfe.registerEventForFieldType('acfe_languages', 'change');
|
3353 |
+
acfe.registerEventForFieldType('acfe_menu_locations', 'change');
|
3354 |
+
acfe.registerEventForFieldType('acfe_options_pages', 'change');
|
3355 |
+
acfe.registerEventForFieldType('acfe_payment', 'change');
|
3356 |
+
acfe.registerEventForFieldType('acfe_payment_cart', 'change');
|
3357 |
+
acfe.registerEventForFieldType('acfe_payment_selector', 'change');
|
3358 |
+
acfe.registerEventForFieldType('acfe_phone_number', 'change');
|
3359 |
+
acfe.registerEventForFieldType('acfe_post_formats', 'change');
|
3360 |
+
acfe.registerEventForFieldType('acfe_post_statuses', 'change');
|
3361 |
+
acfe.registerEventForFieldType('acfe_post_types', 'change');
|
3362 |
+
acfe.registerEventForFieldType('acfe_recaptcha', 'change');
|
3363 |
+
acfe.registerEventForFieldType('acfe_taxonomies', 'change');
|
3364 |
+
acfe.registerEventForFieldType('acfe_taxonomy_terms', 'change');
|
3365 |
+
acfe.registerEventForFieldType('acfe_templates', 'change');
|
3366 |
+
acfe.registerEventForFieldType('acfe_user_roles', 'change');
|
3367 |
+
acfe.registerEventForFieldType('acfe_slug', ['input', 'change']);
|
3368 |
+
|
3369 |
+
})(jQuery);
|
3370 |
+
(function($) {
|
3371 |
+
|
3372 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
3373 |
return;
|
3374 |
+
}
|
3375 |
+
|
3376 |
+
new acf.Model({
|
3377 |
+
|
3378 |
+
actions: {
|
3379 |
+
'new_field': 'newField'
|
3380 |
+
},
|
3381 |
+
priority: 1,
|
3382 |
|
3383 |
+
newField: function(field) {
|
3384 |
+
|
3385 |
+
// acf taxonomy field has a ftype (related field type) feature
|
3386 |
+
if (field.has('ftype') && field.get('type') !== 'taxonomy') {
|
3387 |
+
|
3388 |
+
// real type (checkbox, radio...)
|
3389 |
+
field.set('rtype', field.get('type'), true);
|
3390 |
+
|
3391 |
+
// field type (acfe_post_types, acfe_post_formats...)
|
3392 |
+
field.set('type', field.get('ftype'), true);
|
3393 |
+
|
3394 |
+
// assign attribute
|
3395 |
+
field.$el.attr('data-type', field.get('ftype'));
|
3396 |
+
|
3397 |
+
// cleanup ...
|
3398 |
+
field.$el.removeAttr('data-ftype');
|
3399 |
+
|
3400 |
+
delete field.data['ftype'];
|
3401 |
+
|
3402 |
+
}
|
3403 |
+
|
3404 |
+
}
|
3405 |
+
|
3406 |
+
});
|
3407 |
+
|
3408 |
+
})(jQuery);
|
3409 |
+
(function($) {
|
3410 |
+
|
3411 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
3412 |
+
return;
|
3413 |
+
}
|
3414 |
+
|
3415 |
+
/**
|
3416 |
* Field: Instructions
|
3417 |
*/
|
3418 |
new acf.Model({
|
3444 |
|
3445 |
setTooltip: function() {
|
3446 |
|
3447 |
+
var icon = acfe.versionCompare(acf.get('wp_version'), '>=', '5.5') ? 'dashicons-info-outline' : 'dashicons-info';
|
3448 |
+
|
3449 |
+
this.field.$labelWrap().prepend('<span class="acfe-field-tooltip acf-js-tooltip dashicons ' + icon + '" title="' + _.escape(this.field.get('instructionTooltip')) + '"></span>');
|
3450 |
this.field.$labelWrap().find('.description').remove();
|
3451 |
|
3452 |
},
|
3549 |
|
3550 |
} else if (target === 'tooltip') {
|
3551 |
|
3552 |
+
var icon = acfe.versionCompare(acf.get('wp_version'), '>=', '5.5') ? 'dashicons-info-outline' : 'dashicons-info';
|
3553 |
+
|
3554 |
+
this.field.$labelWrap().prepend($('<span class="acfe-field-tooltip acf-js-tooltip dashicons ' + icon + '" title="' + _.escape($instruction.html()) + '"></span>'));
|
3555 |
$instruction.remove();
|
3556 |
|
3557 |
}
|
3563 |
})(jQuery);
|
3564 |
(function($) {
|
3565 |
|
3566 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
3567 |
return;
|
3568 |
+
}
|
3569 |
|
3570 |
+
var moduleManager = new acf.Model({
|
3571 |
+
wait: 'prepare',
|
3572 |
+
priority: 1,
|
3573 |
+
initialize: function() {
|
3574 |
+
if (!acfe.get('is_admin')) {
|
3575 |
+
new module();
|
3576 |
+
}
|
3577 |
+
}
|
3578 |
+
});
|
3579 |
+
|
3580 |
+
var module = acf.Model.extend({
|
3581 |
|
3582 |
actions: {
|
3583 |
+
'new_field/type=date_picker': 'datePicker',
|
3584 |
+
'new_field/type=date_time_picker': 'datePicker',
|
3585 |
+
'new_field/type=time_picker': 'datePicker',
|
3586 |
+
'new_field/type=google_map': 'googleMap',
|
3587 |
+
'invalid_field': 'invalidField',
|
3588 |
+
'validation_begin': 'validationBegin',
|
3589 |
},
|
3590 |
|
3591 |
+
events: {
|
3592 |
+
'click .acf-form .button': 'onClickSubmit',
|
3593 |
+
'click .acf-form [type="submit"]': 'onClickSubmit',
|
3594 |
+
'click .acfe-form .button': 'onClickSubmit',
|
3595 |
+
'click .acfe-form [type="submit"]': 'onClickSubmit',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3596 |
},
|
3597 |
|
3598 |
+
$getForm: function(field) {
|
3599 |
|
3600 |
+
field = field || false;
|
|
|
|
|
|
|
3601 |
|
3602 |
+
var $form = $('.acfe-form');
|
|
|
3603 |
|
3604 |
+
if (field) {
|
3605 |
+
$form = field.$el.closest('.acfe-form');
|
3606 |
+
}
|
3607 |
|
3608 |
+
return $form.length ? $form : false;
|
|
|
3609 |
|
3610 |
},
|
3611 |
|
3612 |
+
getFormFieldClass: function(field) {
|
3613 |
|
3614 |
+
var $form = this.$getForm(field);
|
|
|
3615 |
|
3616 |
+
if (!$form) {
|
3617 |
+
return false;
|
3618 |
+
}
|
3619 |
|
3620 |
+
return $form.data('fields-class') || false;
|
|
|
|
|
|
|
3621 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3622 |
},
|
3623 |
|
3624 |
+
initialize: function() {
|
|
|
|
|
|
|
|
|
|
|
3625 |
|
3626 |
+
this.setupUnload();
|
3627 |
+
this.setupSuccess();
|
3628 |
|
3629 |
+
},
|
3630 |
|
3631 |
+
setupUnload: function() {
|
3632 |
if ($('.acfe-form[data-hide-unload="1"]').length) {
|
3633 |
acf.unload.disable();
|
3634 |
}
|
3635 |
+
},
|
3636 |
|
3637 |
+
setupSuccess: function() {
|
|
|
|
|
3638 |
|
3639 |
+
if (!acfe.get('acfe_form_success')) {
|
3640 |
+
return;
|
3641 |
+
}
|
|
|
3642 |
|
3643 |
+
// Prevent refresh sending post fields again
|
3644 |
+
if (window.history.replaceState) {
|
3645 |
+
window.history.replaceState(null, null, window.location.href);
|
3646 |
+
}
|
3647 |
|
3648 |
+
// loop
|
3649 |
+
acfe.get('acfe_form_success').map(function(form) {
|
3650 |
|
3651 |
+
// hooks
|
3652 |
+
acf.doAction('acfe/form/success');
|
3653 |
+
acf.doAction('acfe/form/success/id=' + form.id);
|
3654 |
+
acf.doAction('acfe/form/success/name=' + form.name);
|
3655 |
|
3656 |
+
// deprecated
|
3657 |
+
acf.doAction('acfe/form/submit/success');
|
3658 |
+
acf.doAction('acfe/form/submit/success/id=' + form.id);
|
3659 |
+
acf.doAction('acfe/form/submit/success/name=' + form.name);
|
3660 |
|
3661 |
+
});
|
3662 |
|
3663 |
+
},
|
|
|
3664 |
|
3665 |
+
onClickSubmit: function(e, $el) {
|
3666 |
|
3667 |
+
// prevent submit spam
|
3668 |
+
if ($el.hasClass('disabled')) {
|
3669 |
e.preventDefault();
|
3670 |
+
}
|
|
|
|
|
3671 |
},
|
3672 |
|
3673 |
// Datepicker: Add field class
|
3674 |
datePicker: function(field) {
|
3675 |
|
3676 |
+
var fieldClass = this.getFormFieldClass(field);
|
|
|
|
|
|
|
|
|
3677 |
|
3678 |
+
if (fieldClass) {
|
3679 |
+
field.$inputText().addClass(fieldClass);
|
|
|
|
|
3680 |
}
|
3681 |
|
3682 |
},
|
3684 |
// Google Maps: Add field class
|
3685 |
googleMap: function(field) {
|
3686 |
|
3687 |
+
var fieldClass = this.getFormFieldClass(field);
|
|
|
|
|
|
|
|
|
3688 |
|
3689 |
+
if (fieldClass) {
|
3690 |
+
field.$search().addClass(fieldClass);
|
|
|
|
|
3691 |
}
|
3692 |
|
3693 |
},
|
3695 |
// Error: Move error
|
3696 |
invalidField: function(field) {
|
3697 |
|
3698 |
+
var $form = this.$getForm(field);
|
|
|
|
|
3699 |
|
3700 |
+
if (!$form) {
|
3701 |
+
return;
|
3702 |
+
}
|
3703 |
|
3704 |
+
// errors class
|
3705 |
+
var errorsClass = $form.data('errors-class');
|
3706 |
|
3707 |
+
if (errorsClass) {
|
3708 |
+
field.$el.find('.acf-notice.-error').addClass(errorsClass);
|
|
|
3709 |
}
|
3710 |
|
3711 |
+
// errors position
|
3712 |
+
var errorsPosition = $form.data('errors-position');
|
3713 |
|
3714 |
+
// position: hide
|
3715 |
+
if (errorsPosition === 'hide') {
|
3716 |
+
field.$el.find('.acf-notice.-error').remove();
|
3717 |
+
|
3718 |
+
// position: below
|
3719 |
+
} else if (errorsPosition === 'below') {
|
3720 |
|
3721 |
+
if (field.$control().length) {
|
3722 |
field.$el.find('.acf-notice.-error').insertAfter(field.$control());
|
3723 |
|
3724 |
} else if (field.$input().length) {
|
|
|
3725 |
field.$el.find('.acf-notice.-error').insertAfter(field.$input());
|
3726 |
|
3727 |
}
|
3729 |
var $selector = false;
|
3730 |
|
3731 |
if (field.$control().length) {
|
|
|
3732 |
$selector = field.$control();
|
3733 |
|
3734 |
} else if (field.$input().length) {
|
|
|
3735 |
$selector = field.$input();
|
3736 |
|
3737 |
}
|
3740 |
field.$el.find('.acf-notice.-error').insertAfter($selector);
|
3741 |
}
|
3742 |
|
3743 |
+
// position: grouped
|
3744 |
+
} else if (errorsPosition === 'group') {
|
|
|
|
|
3745 |
|
3746 |
var label = field.$el.find('.acf-label label').text().trim();
|
3747 |
var placeholder = field.$el.find('.acf-input-wrap [placeholder!=""]').attr('placeholder');
|
3749 |
|
3750 |
field.$el.find('.acf-notice.-error').remove();
|
3751 |
|
3752 |
+
// try label
|
3753 |
if (label && label.length && label !== '*') {
|
3754 |
+
|
3755 |
+
// remove end part " *"
|
3756 |
+
label = label.replace(/ \*$/, '');
|
3757 |
message = label + ': ' + message;
|
|
|
3758 |
|
3759 |
+
// try placeholder
|
3760 |
+
} else if (placeholder && placeholder.length && placeholder !== '') {
|
3761 |
message = placeholder + ': ' + message;
|
|
|
3762 |
|
3763 |
+
// try field name
|
3764 |
+
} else {
|
3765 |
message = field.get('name') + ': ' + message;
|
3766 |
+
|
3767 |
}
|
3768 |
|
3769 |
var $form_error = $form.find('> .acfe-form-error')
|
3776 |
|
3777 |
}
|
3778 |
|
|
|
|
|
|
|
|
|
|
|
3779 |
},
|
3780 |
|
3781 |
// Ajax Validation
|
3782 |
validationBegin: function($form) {
|
3783 |
|
3784 |
+
if (typeof $form === 'undefined') {
|
3785 |
+
return;
|
3786 |
+
}
|
3787 |
|
3788 |
$form.find('.acf-error-message').remove();
|
3789 |
|
3854 |
|
3855 |
// ACF Extended: Check in all form if targeted field not found
|
3856 |
if (target && !field) {
|
|
|
3857 |
field = acf.getField(rule.field);
|
|
|
3858 |
}
|
3859 |
|
3860 |
// bail ealry if no target or no field (possible if field doesn't exist due to HTML error)
|
assets/js/acfe-input.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){var e;"undefined"!=typeof acf&&(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}}))}(jQuery),function(i){var e;"undefined"!=typeof acf&&(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_key:this.get("key"),acf:acf.serialize(this.$el.closest("form"),"acf")},a=acf.applyFilters("acfe/fields/button/data",a,this.$el),a=acf.applyFilters("acfe/fields/button/data/name="+this.get("name"),a,this.$el),a=acf.applyFilters("acfe/fields/button/data/key="+this.get("key"),a,this.$el),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/name="+this.get("name"),this.$el,a),acf.doAction("acfe/fields/button/before/key="+this.get("key"),this.$el,a),i.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/name="+this.get("name"),e,this.$el,a),acf.doAction("acfe/fields/button/success/key="+this.get("key"),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/name="+this.get("name"),e,this.$el,a),acf.doAction("acfe/fields/button/complete/key="+this.get("key"),e,this.$el,a)}}))}}),acf.registerFieldType(e))}(jQuery),function(e){"undefined"!=typeof acf&&new acf.Model({actions:{"new_field/type=checkbox":"newField"},newField:function(a){a.has("acfeLabels")&&e.each(a.get("acfeLabels"),function(e,t){a.$control().find('input[type=checkbox][value="'+t+'"]').closest("ul").before("<strong>"+e+"</strong>")})}})}(jQuery),function(){var e;"undefined"!=typeof acf&&(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.$labelWrap().find("label").text().trim(),i=this.$el.find("> .acf-input > .acfe-modal").addClass("acfe-modal-edit-"+this.get("name")+" acfe-modal-edit-"+this.get("key"));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))}(jQuery),function(){var e;"undefined"!=typeof acf&&(e=acf.Field.extend({wait:"ready",type:"acfe_code_editor",events:{showField:"onShow",duplicateField:"onDuplicate"},$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:!1,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()},onDuplicate:function(e,t,a){a.find(".CodeMirror:last").remove()}}),acf.registerFieldType(e))}(jQuery),function(){var e;"undefined"!=typeof acf&&(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();t.addClass("acfe-column-wrapper"),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))}(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:none;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:none;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,a=r(t.layouts).closest("[data-layout]");if(!a.length)return alert("No layouts data available");var o=r(n.$popup().html()),c=n.$layouts(),l=[];if(a.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=acfe.versionCompare(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(){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").addClass("acfe-modal-edit-"+a.get("name")+" acfe-modal-edit-"+a.get("key")).addClass("acfe-modal-edit-"+i.data("layout")),o=i.find("> .acf-fc-layout-handle"),c=o.find("> .acf-fc-layout-order").outerHTML(),t=acfe.getTextNode(o.find(".acfe-layout-title-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(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 acfe-modal-select-'+a.get("name")+" acfe-modal-select-"+a.get("key")+'">'+o.html+'<div class="acfe-flex-container">'+n+"</div></div>").appendTo("body");new acfe.Popup(c,{title:t,size:a.get("acfeFlexibleModalSize"),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(f){var e;"undefined"!=typeof acf&&(e=acf.models.FlexibleContentField,acf.models.FlexibleContentField=e.extend({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")}})},acfeOneClick:function(e,t){var a=this.$clones(),i=f(a[0]).data("layout"),a=null;t.hasClass("acf-icon")&&(a=t.closest(".layout")),this.add({layout:i,before:a});a=f(".acf-fc-popup");a.length&&a.hide()},acfeLayoutInit:function(t){var e,a,i=this.get("key"),n=this.get("name"),o=this.$el,c=t.data("layout"),l=t.index(),r=t.find("> .acfe-fc-placeholder");r.removeClass("acf-hidden"),this.has("acfeFlexibleModalEdition")||this.isLayoutClosed(t)||r.addClass("acf-hidden"),this.isLayoutClosed(t)&&this.has("acfeFlexiblePreview")&&!r.hasClass("-loading")&&(r.addClass("acfe-fc-preview -loading").find("> .acfe-flexible-placeholder").prepend('<span class="spinner"></span>'),r.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,i:l,layout:c,value:acf.serialize(t,e)},acf.doAction("acfe/fields/flexible_content/before_preview",o,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/name="+n,o,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/key="+i,o,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/name="+n+"&layout="+c,o,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/key="+i+"&layout="+c,o,t,a),f.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),dataType:"html",type:"post",success:function(e){e?r.find("> .acfe-flexible-placeholder").html(e):r.removeClass("acfe-fc-preview"),acf.doAction("acfe/fields/flexible_content/preview",e,o,t,a),acf.doAction("acfe/fields/flexible_content/preview/name="+n,e,o,t,a),acf.doAction("acfe/fields/flexible_content/preview/key="+i,e,o,t,a),acf.doAction("acfe/fields/flexible_content/preview/name="+n+"&layout="+c,e,o,t,a),acf.doAction("acfe/fields/flexible_content/preview/key="+i+"&layout="+c,e,o,t,a)},complete:function(){r.find("> .acfe-fc-overlay").removeClass("-hover"),r.removeClass("-loading").find("> .acfe-flexible-placeholder > .spinner").remove()}}))}}),new acf.Model({actions:{"new_field/type=flexible_content":"newField","acfe/flexible/layouts":"newLayouts",show:"onShow",hide:"onHide",append:"onAppend",invalid_field:"onInvalidField",valid_field:"onValidField"},newField:function(a){var e=a.$clones();a.$layouts().each(function(){var e=f(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;f.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(){f("body").addClass("-loading")},success:function(e){if(e){var t=f(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(){f("body").removeClass("-loading")}})})},newLayouts:function(e,t){t.isLayoutClosed(e)&&(e.find("> .acfe-fc-placeholder").removeClass("acf-hidden"),t.has("acfeFlexibleOpen")&&(acfe.enableFilter("acfeFlexibleOpen"),t.openLayout(e),acfe.disableFilter("acfeFlexibleOpen")))},onShow: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"))},onHide: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))},onAppend: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):!acfe.versionCompare(acf.get("acf_version"),"<","5.9")&&e.hasClass("-focused")||f("html, body").animate({scrollTop:parseInt(e.offset().top)-200},200))},onInvalidField:function(e){e.$el.parents(".layout").addClass("acfe-flexible-modal-edit-error")},onValidField:function(e){e.$el.parents(".layout").each(function(){var e=f(this);e.find(".acf-error").length||e.removeClass("acfe-flexible-modal-edit-error")})}}))}(jQuery),function(){var e;"undefined"!=typeof acf&&(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.$labelWrap().find("label").text().trim(),i=this.$el.find("> .acf-input > .acfe-modal").addClass("acfe-modal-edit-"+this.get("name")+" acfe-modal-edit-"+this.get("key"));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))}(jQuery),function(e){"undefined"!=typeof acf&&new acf.Model({actions:{"new_field/type=radio":"newField"},newField:function(a){a.has("acfeLabels")&&(e.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(){e(this).nextUntil("li.parent").addBack().wrapAll("<li><ul></ul></li>")}))}})}(jQuery),function(){var e;"undefined"!=typeof acf&&(e=acf.Field.extend({type:"acfe_recaptcha",wait:"load",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]},initialize:function(){"v2"===this.get("version")?this.renderV2(this):"v3"===this.get("version")&&this.renderV3()},renderV2:function(t){var e=this.selector(),a=this.$input(),i=this.get("siteKey"),n=this.get("theme"),o=this.get("size");this.recaptcha=grecaptcha.render(e,{sitekey:i,theme:n,size:o,callback:function(e){acf.val(a,e,!0),t.removeError()},"error-callback":function(){acf.val(a,"",!0),t.showError("An error has occured")},"expired-callback":function(){acf.val(a,"",!0),t.showError("reCaptcha has expired")}})},renderV3:function(){var t=this.$input(),e=this.get("siteKey");grecaptcha.ready(function(){grecaptcha.execute(e,{action:"homepage"}).then(function(e){acf.val(t,e,!0)})})},validationFailure:function(e){"v2"===this.get("version")&&grecaptcha.reset(this.recaptcha)}}),acf.registerFieldType(e))}(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" />'))})),function(o){"undefined"!=typeof acf&&(new acf.Model({actions:{select2_init:"selectInit"},filters:{select2_args:"selectArgs",select2_ajax_data:"selectAjax"},selectInit:function(e,t,a,i,n){acf.doAction("select2_init/type="+i.get("type"),e,t,a,i,n),acf.doAction("select2_init/name="+i.get("name"),e,t,a,i,n),acf.doAction("select2_init/key="+i.get("key"),e,t,a,i,n)},selectArgs:function(e,t,a,i,n){return 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)},selectAjax: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=(e=acf.applyFilters("select2_ajax_data/key="+i.get("key"),e,t,a,i,n)).action?acf.applyFilters("select2_ajax_data/action="+e.action,e,t,a,i,n):e}}),new acf.Model({actions:{"new_field/type=select":"selectNew",select2_init:"selectInit"},filters:{select2_args:"selectArgs"},selectNew: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"))))},selectInit:function(e,t,a,i,n){e.data("select2")&&e.data("select2").$dropdown.addClass("select2-dropdown-acf").addClass("select2-dropdown-acf-field-"+i.get("name")).addClass("select2-dropdown-acf-field-"+i.get("key")),i.get("multiple")||i.get("acfeSearchPlaceholder")&&e.on("select2:open",function(e){o(".select2-search.select2-search--dropdown > .select2-search__field").attr("placeholder",i.get("acfeSearchPlaceholder"))})},selectArgs:function(e,t,a,i,n){return i.get("acfeAllowCustom")&&(e.tags=!0,e.createTag=function(e){var t=o.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;o.each(e,function(){if(o.trim(t.text).toUpperCase()===o.trim(this.text).toUpperCase())return!(a=!0)}),a||e.unshift(t)}),e}}))}(jQuery),function(){var e;"undefined"!=typeof acf&&(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))}(jQuery),function(a){"undefined"!=typeof acf&&new acf.Model({actions:{"prepare_field/type=tab":"prepareField"},prepareField:function(e){var t,i,n;e.has("noPreference")&&(t=e.findTabs(),t=acf.getInstances(t),i=e.get("key"),!t.length||(n=acf.getPreference("this.tabs"))&&(a.each(t,function(e,t){var a=t.get("index");t.data.key===i&&(n[a]=0)}),acf.setPreference("this.tabs",n)))}})}(jQuery),function(){var e;"undefined"!=typeof acf&&(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))}(jQuery),function(){var e;"undefined"!=typeof acf&&(e=acf.models.WysiwygField,acf.models.WysiwygField=e.extend({initialize:function(){this.has("id")||this.$control().hasClass("delay")||this.initializeEditor()}}),new acf.Model({actions:{"show_field/type=wysiwyg":"showField","ready_field/type=wysiwyg":"showField"},showField:function(e){e.has("acfeWysiwygAutoInit")&&e.$el.is(":visible")&&!e.has("id")&&!acfe.isFilterEnabled("acfeFlexibleOpen")&&this.initializeEditor(e)},initializeEditor:function(e){var t=e.$control();t.hasClass("delay")&&(t.removeClass("delay"),t.find(".acf-editor-toolbar").remove(),e.initializeEditor())}}))}(jQuery),jQuery,"undefined"!=typeof acf&&(acf.registerConditionForFieldType("contains","checkbox"),acf.registerConditionForFieldType("contains","radio"),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","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","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_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","time_picker"),acf.registerConditionForFieldType("notEqualTo","time_picker"),acf.registerConditionForFieldType("patternMatch","time_picker"),acf.registerConditionForFieldType("contains","time_picker"),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(i){"undefined"!=typeof acf&&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=i('<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(i('<span class="acfe-field-tooltip acf-js-tooltip dashicons dashicons-info" title="'+_.escape(a.html())+'"></span>')),a.remove())}})}(jQuery),jQuery,function(c){var a;"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=!(o=t.find("> .acfe-form-error")).length?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()}}),a=function(e){var t=c(".acf-field input"),e=e.closest("form");(t=e.length?e.find(".acf-field input"):t).each(function(){this.checkValidity()||function(e){e=e.parents(".acf-postbox");!e.length||(e=acf.getPostbox(e))&&(e.$el.hasClass("hide-if-js")||"none"==e.$el.css("display"))&&(e.$el.removeClass("hide-if-js"),e.$el.css("display",""))}(c(this))})},acf.validation.onClickSubmit=function(e,t){a(t),this.set("originalEvent",e)},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);
|
1 |
+
!function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(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||e.title)&&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}}))}(jQuery),function(i){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(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_key:this.get("key"),acf:acf.serialize(this.$el.closest("form"),"acf")},a=acf.applyFilters("acfe/fields/button/data",a,this.$el),a=acf.applyFilters("acfe/fields/button/data/name="+this.get("name"),a,this.$el),a=acf.applyFilters("acfe/fields/button/data/key="+this.get("key"),a,this.$el),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/name="+this.get("name"),this.$el,a),acf.doAction("acfe/fields/button/before/key="+this.get("key"),this.$el,a),i.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/name="+this.get("name"),e,this.$el,a),acf.doAction("acfe/fields/button/success/key="+this.get("key"),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/name="+this.get("name"),e,this.$el,a),acf.doAction("acfe/fields/button/complete/key="+this.get("key"),e,this.$el,a)}}))}}),acf.registerFieldType(e))}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({actions:{new_field:"newField"},validateField:function(e){return!!e.has("acfeLabels")&&"checkbox"===(e.has("rtype")?e.get("rtype"):e.get("type"))},newField:function(e){if(this.validateField(e)){var t,a,i=e.get("acfeLabels");for(t in i)a=i[t],e.$control().find('input[type=checkbox][value="'+a+'"]').closest("ul").before("<strong>"+t+"</strong>")}}}),function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(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.$labelWrap().find("label").text().trim();this.$el.is("td")&&(a=this.get("acfeGroupModalButton"),(o=this.$el.closest("table").find(' > thead th[data-key="'+this.get("key")+'"]')).length&&(a=acfe.getTextNode(o)));var i=this.$el.find("> .acf-input > .acfe-modal").addClass("acfe-modal-edit-"+this.get("name")+" acfe-modal-edit-"+this.get("key"));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))}(jQuery),function(t){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acf.Field.extend({wait:!1,type:"acfe_code_editor",editor:{},events:{showField:"onShow",duplicateField:"onDuplicate"},$control:function(){return this.$("> .acf-input > .acf-input-wrap")},$input:function(){return this.$control().find("> textarea")},initialize:function(){var e;acf.isset(wp,"codeEditor")&&(e={lineNumbers:this.get("lines"),lineWrapping:!0,styleActiveLine:!1,continueComments:!0,indentUnit:this.get("indentUnit"),tabSize:1,indentWithTabs:!1,autoRefresh:!0,mode:this.get("mode"),extraKeys:{Tab:function(e){e.execCommand("indentMore")},"Shift-Tab":function(e){e.execCommand("indentLess")}}},e=acf.applyFilters("acfe/fields/code_editor/args",e,this),e=acf.applyFilters("acfe/fields/code_editor/args/name="+this.get("name"),e,this),e=acf.applyFilters("acfe/fields/code_editor/args/key="+this.get("key"),e,this),this.editor=wp.codeEditor.initialize(this.$input().get(0),{codemirror:t.extend(wp.codeEditor.defaultSettings.codemirror,e)}),this.get("rows")&&(this.editor.codemirror.getScrollerElement().style.minHeight=18.5*this.get("rows")+"px"),this.get("maxRows")&&(this.editor.codemirror.getScrollerElement().style.maxHeight=18.5*this.get("maxRows")+"px"),this.editor.codemirror.on("change",this.proxy(this.onEditorChange)),acf.doAction("acfe/fields/code_editor/init",this.editor,this),acf.doAction("acfe/fields/code_editor/init/name="+this.get("name"),this.editor,this),acf.doAction("acfe/fields/code_editor/init/key="+this.get("key"),this.editor,this))},onEditorChange:function(e,t){this.editor.codemirror.save(),this.$input().change()},onShow:function(){this.editor.codemirror&&this.editor.codemirror.refresh()},onDuplicate:function(e,t,a){a.find(".CodeMirror:last").remove()}}),acf.registerFieldType(e))}(jQuery),function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(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();t.addClass("acfe-column-wrapper"),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))}(jQuery),function(r){var n;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&((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:none;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:none;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,a=r(t.layouts).closest("[data-layout]");if(!a.length)return alert("No layouts data available");var o=r(n.$popup().html()),c=n.$layouts(),l=[];if(a.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=acfe.versionCompare(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(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&((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").addClass("acfe-modal-edit-"+a.get("name")+" acfe-modal-edit-"+a.get("key")).addClass("acfe-modal-edit-"+i.data("layout")),o=i.find("> .acf-fc-layout-handle"),c=o.find("> .acf-fc-layout-order").outerHTML(),t=acfe.getTextNode(o.find(".acfe-layout-title")),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(l){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(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(){acfe.inArray(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 acfe-modal-select-'+a.get("name")+" acfe-modal-select-"+a.get("key")+'">'+o.html+'<div class="acfe-flex-container">'+n+"</div></div>").appendTo("body");new acfe.Popup(c,{title:t,size:a.get("acfeFlexibleModalSize"),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(){var e=acfe.versionCompare(acf.get("wp_version"),">=","5.5")?"dashicons-info-outline":"dashicons-info";l(this).addClass("acf-js-tooltip dashicons "+e)}),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(f){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acf.models.FlexibleContentField,acf.models.FlexibleContentField=e.extend({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")}})},acfeOneClick:function(e,t){var a=this.$clones(),i=f(a[0]).data("layout"),a=null;t.hasClass("acf-icon")&&(a=t.closest(".layout")),this.add({layout:i,before:a});a=f(".acf-fc-popup");a.length&&a.hide()},acfeLayoutInit:function(t){var e,a,i=this.get("key"),n=this.get("name"),o=this.$el,c=t.data("layout"),l=t.index(),r=t.find("> .acfe-fc-placeholder");r.removeClass("acf-hidden"),this.has("acfeFlexibleModalEdition")||this.isLayoutClosed(t)||r.addClass("acf-hidden"),this.isLayoutClosed(t)&&this.has("acfeFlexiblePreview")&&!r.hasClass("-loading")&&(r.addClass("acfe-fc-preview -loading").find("> .acfe-flexible-placeholder").prepend('<span class="spinner"></span>'),r.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,i:l,layout:c,value:acf.serialize(t,e)},acf.doAction("acfe/fields/flexible_content/before_preview",o,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/name="+n,o,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/key="+i,o,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/name="+n+"&layout="+c,o,t,a),acf.doAction("acfe/fields/flexible_content/before_preview/key="+i+"&layout="+c,o,t,a),f.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),dataType:"html",type:"post",success:function(e){e?r.find("> .acfe-flexible-placeholder").html(e):r.removeClass("acfe-fc-preview"),acf.doAction("acfe/fields/flexible_content/preview",e,o,t,a),acf.doAction("acfe/fields/flexible_content/preview/name="+n,e,o,t,a),acf.doAction("acfe/fields/flexible_content/preview/key="+i,e,o,t,a),acf.doAction("acfe/fields/flexible_content/preview/name="+n+"&layout="+c,e,o,t,a),acf.doAction("acfe/fields/flexible_content/preview/key="+i+"&layout="+c,e,o,t,a)},complete:function(){r.find("> .acfe-fc-overlay").removeClass("-hover"),r.removeClass("-loading").find("> .acfe-flexible-placeholder > .spinner").remove()}}))}}),new acf.Model({actions:{"new_field/type=flexible_content":"newField","acfe/flexible/layouts":"newLayouts",show:"onShow",hide:"onHide",append:"onAppend",invalid_field:"onInvalidField",valid_field:"onValidField"},newField:function(a){var e=a.$clones();a.$layouts().each(function(){var e=f(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;f.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(){f("body").addClass("-loading")},success:function(e){if(e){var t=f(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(){f("body").removeClass("-loading")}})})},newLayouts:function(e,t){t.isLayoutClosed(e)&&(e.find("> .acfe-fc-placeholder").removeClass("acf-hidden"),t.has("acfeFlexibleOpen")&&(acfe.enableFilter("acfeFlexibleOpen"),t.openLayout(e),acfe.disableFilter("acfeFlexibleOpen")))},onShow: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"))},onHide: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))},onAppend: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):!acfe.versionCompare(acf.get("acf_version"),"<","5.9")&&e.hasClass("-focused")||f("html, body").animate({scrollTop:parseInt(e.offset().top)-200},200))},onInvalidField:function(e){e.$el.parents(".layout").addClass("acfe-flexible-modal-edit-error")},onValidField:function(e){e.$el.parents(".layout").each(function(){var e=f(this);e.find(".acf-error").length||e.removeClass("acfe-flexible-modal-edit-error")})}}))}(jQuery),function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(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.$labelWrap().find("label").text().trim();this.$el.is("td")&&(a=this.get("acfeGroupModalButton"),(o=this.$el.closest("table").find(' > thead th[data-key="'+this.get("key")+'"]')).length&&(a=acfe.getTextNode(o)));var i=this.$el.find("> .acf-input > .acfe-modal").addClass("acfe-modal-edit-"+this.get("name")+" acfe-modal-edit-"+this.get("key"));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))}(jQuery),function(n){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({actions:{new_field:"newField"},validateField:function(e){return!!e.has("acfeLabels")&&"radio"===(e.has("rtype")?e.get("rtype"):e.get("type"))},newField:function(e){if(this.validateField(e)){var t,a,i=e.get("acfeLabels");for(t in i)a=i[t],e.$control().find('input[type=radio][value="'+a+'"]').closest("li").addClass("parent").prepend("<strong>"+t+"</strong>");e.$control().hasClass("acf-hl")&&e.$control().find("li.parent").each(function(){n(this).nextUntil("li.parent").addBack().wrapAll("<li><ul></ul></li>")})}}})}(jQuery),function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acf.Field.extend({type:"acfe_recaptcha",wait:"load",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]},initialize:function(){"v2"===this.get("version")?this.renderV2(this):"v3"===this.get("version")&&this.renderV3()},renderV2:function(t){var e=this.selector(),a=this.$input(),i=this.get("siteKey"),n=this.get("theme"),o=this.get("size");this.recaptcha=grecaptcha.render(e,{sitekey:i,theme:n,size:o,callback:function(e){acf.val(a,e,!0),t.removeError()},"error-callback":function(){acf.val(a,"",!0),t.showError("An error has occured")},"expired-callback":function(){acf.val(a,"",!0),t.showError("reCaptcha has expired")}})},renderV3:function(){var t=this.$input(),e=this.get("siteKey");grecaptcha.ready(function(){grecaptcha.execute(e,{action:"homepage"}).then(function(e){acf.val(t,e,!0)})})},validationFailure:function(e){"v2"===this.get("version")&&grecaptcha.reset(this.recaptcha)}}),acf.registerFieldType(e))}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(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" />'))})),function(o){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(new acf.Model({actions:{select2_init:"init"},filters:{select2_args:"args",select2_ajax_data:"ajax"},init:function(e,t,a,i,n){acf.doAction("select2_init/type="+i.get("type"),e,t,a,i,n),acf.doAction("select2_init/name="+i.get("name"),e,t,a,i,n),acf.doAction("select2_init/key="+i.get("key"),e,t,a,i,n)},args:function(e,t,a,i,n){return 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)},ajax: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=(e=acf.applyFilters("select2_ajax_data/key="+i.get("key"),e,t,a,i,n)).action?acf.applyFilters("select2_ajax_data/action="+e.action,e,t,a,i,n):e}}),new acf.Model({wait:"load",priority:20,actions:{"append_field/type=select":"closeOnClear"},initialize:function(){acf.getFields({type:"select"}).map(this.proxy(this.closeOnClear))},closeOnClear:function(e){e.select2&&e.select2.on("select2:clear",function(e){o(this).on("select2:opening.cancelOpen",function(e){e.preventDefault(),o(this).off("select2:opening.cancelOpen")})})}}),new acf.Model({actions:{"new_field/type=select":"newField",select2_init:"init"},filters:{select2_args:"args"},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"))))},init:function(e,t,a,i,n){e.data("select2")&&e.data("select2").$dropdown.addClass("select2-dropdown-acf").addClass("select2-dropdown-acf-field-"+i.get("name")).addClass("select2-dropdown-acf-field-"+i.get("key")),i.get("multiple")||i.get("acfeSearchPlaceholder")&&e.on("select2:open",function(e){o(".select2-search.select2-search--dropdown > .select2-search__field").attr("placeholder",i.get("acfeSearchPlaceholder"))})},args:function(e,t,a,i,n){return i.get("acfeAllowCustom")&&(e.tags=!0,e.createTag=function(e){var t=o.trim(e.term);if(""===t)return null;var a=!1,e=acf.isget(this,"_request","responseJSON","results");return e?o.each(e,function(){if(this.children)return o.each(this.children,function(){if(this.id.toLowerCase()===t.toLowerCase())return!(a=!0)}),!a&&void 0}):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;o.each(e,function(){if(o.trim(t.text).toUpperCase()===o.trim(this.text).toUpperCase())return!(a=!0)}),a||e.unshift(t)}),e}}))}(jQuery),function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(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))}(jQuery),function(a){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({actions:{"prepare_field/type=tab":"prepareField"},prepareField:function(e){var t,i,n;e.has("noPreference")&&(t=e.findTabs(),t=acf.getInstances(t),i=e.get("key"),!t.length||(n=acf.getPreference("this.tabs"))&&(a.each(t,function(e,t){var a=t.get("index");t.data.key===i&&(n[a]=0)}),acf.setPreference("this.tabs",n)))}})}(jQuery),function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(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))}(jQuery),function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acf.models.WysiwygField,acf.models.WysiwygField=e.extend({initialize:function(){this.has("id")||this.$control().hasClass("delay")||this.initializeEditor()}}),new acf.Model({actions:{"show_field/type=wysiwyg":"showField","ready_field/type=wysiwyg":"showField"},showField:function(e){e.has("acfeWysiwygAutoInit")&&e.$el.is(":visible")&&!e.has("id")&&!acfe.isFilterEnabled("acfeFlexibleOpen")&&this.initializeEditor(e)},initializeEditor:function(e){var t=e.$control();t.hasClass("delay")&&(t.removeClass("delay"),t.find(".acf-editor-toolbar").remove(),e.initializeEditor())}}))}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acf.registerConditionForFieldType("contains","checkbox"),acf.registerConditionForFieldType("contains","radio"),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","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","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_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","time_picker"),acf.registerConditionForFieldType("notEqualTo","time_picker"),acf.registerConditionForFieldType("patternMatch","time_picker"),acf.registerConditionForFieldType("contains","time_picker"),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){var i;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(i=[],acfe.registerEventForFieldType=function(e,t,a){i.push({fieldType:e,events:t="string"==typeof t?[t]:t,callback:a||!1})},acfe.getEvents=function(t){t=acf.parseArgs(t,{fieldType:""});var a=[];return i.map(function(e){t.fieldType&&-1===e.fieldType.indexOf(t.fieldType)||a.push(e)}),a},new acf.Model({actions:{new_field:"newField"},priority:20,data:{},parseEvent:function(e){return e.match(/^(\S+)\s*(.*)$/)},newField:function(o){this.set(o.cid,o.val()),acfe.getEvents({fieldType:o.get("type")}).map(function(n){n.events.map(function(e){e=this.parseEvent(e);o.on(e[1],e[2],this.proxy(function(e){var t=o.val(),a=this.get(o.cid),i=c(e.currentTarget);(n.callback||this.proxy(function(e,t,a,i,n){var o=e,c=t;"object"==typeof o&&(o=JSON.stringify(o)),(c="object"==typeof c?JSON.stringify(c):c)!==o&&(this.set(a.cid,e),acf.doAction("acfe/change_field",e,t,a,i,n),acf.doAction("acfe/change_field/type="+a.get("type"),e,t,a,i,n),acf.doAction("acfe/change_field/name="+a.get("name"),e,t,a,i,n),acf.doAction("acfe/change_field/key="+a.get("key"),e,t,a,i,n))}))(t,a,o,e,i)}))},this)},this)}}),acfe.registerEventForFieldType("button_group","change"),acfe.registerEventForFieldType("checkbox","change"),acfe.registerEventForFieldType("color_picker","change"),acfe.registerEventForFieldType("date_picker","change"),acfe.registerEventForFieldType("date_time_picker","change"),acfe.registerEventForFieldType("email",["input","change"]),acfe.registerEventForFieldType("file","change"),acfe.registerEventForFieldType("flexible_content","change"),acfe.registerEventForFieldType("gallery","change"),acfe.registerEventForFieldType("google_map","change"),acfe.registerEventForFieldType("image","change"),acfe.registerEventForFieldType("link","change"),acfe.registerEventForFieldType("number",["input","change"]),acfe.registerEventForFieldType("oembed","change"),acfe.registerEventForFieldType("page_link","change"),acfe.registerEventForFieldType("post_object","change"),acfe.registerEventForFieldType("relationship","change"),acfe.registerEventForFieldType("password",["input","change"]),acfe.registerEventForFieldType("radio","change"),acfe.registerEventForFieldType("range",["input","change"]),acfe.registerEventForFieldType("repeater","change"),acfe.registerEventForFieldType("select","change"),acfe.registerEventForFieldType("taxonomy","change"),acfe.registerEventForFieldType("text",["input","change"]),acfe.registerEventForFieldType("textarea",["input","change"]),acfe.registerEventForFieldType("time_picker","change"),acfe.registerEventForFieldType("true_false","change"),acfe.registerEventForFieldType("url",["input","change"]),acfe.registerEventForFieldType("user","change"),acfe.registerEventForFieldType("wysiwyg","change"),acfe.registerEventForFieldType("acfe_advanced_link","change"),acfe.registerEventForFieldType("acfe_block_types","change"),acfe.registerEventForFieldType("acfe_countries","change"),acfe.registerEventForFieldType("acfe_currencies","change"),acfe.registerEventForFieldType("acfe_code_editor","change"),acfe.registerEventForFieldType("acfe_date_range_picker","change"),acfe.registerEventForFieldType("acfe_field_groups","change"),acfe.registerEventForFieldType("acfe_field_types","change"),acfe.registerEventForFieldType("acfe_fields","change"),acfe.registerEventForFieldType("acfe_forms","change"),acfe.registerEventForFieldType("acfe_hidden","change"),acfe.registerEventForFieldType("acfe_image_selector","change"),acfe.registerEventForFieldType("acfe_image_sizes","change"),acfe.registerEventForFieldType("acfe_languages","change"),acfe.registerEventForFieldType("acfe_menu_locations","change"),acfe.registerEventForFieldType("acfe_options_pages","change"),acfe.registerEventForFieldType("acfe_payment","change"),acfe.registerEventForFieldType("acfe_payment_cart","change"),acfe.registerEventForFieldType("acfe_payment_selector","change"),acfe.registerEventForFieldType("acfe_phone_number","change"),acfe.registerEventForFieldType("acfe_post_formats","change"),acfe.registerEventForFieldType("acfe_post_statuses","change"),acfe.registerEventForFieldType("acfe_post_types","change"),acfe.registerEventForFieldType("acfe_recaptcha","change"),acfe.registerEventForFieldType("acfe_taxonomies","change"),acfe.registerEventForFieldType("acfe_taxonomy_terms","change"),acfe.registerEventForFieldType("acfe_templates","change"),acfe.registerEventForFieldType("acfe_user_roles","change"),acfe.registerEventForFieldType("acfe_slug",["input","change"]))}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({actions:{new_field:"newField"},priority:1,newField:function(e){e.has("ftype")&&"taxonomy"!==e.get("type")&&(e.set("rtype",e.get("type"),!0),e.set("type",e.get("ftype"),!0),e.$el.attr("data-type",e.get("ftype")),e.$el.removeAttr("data-ftype"),delete e.data.ftype)}}),function(i){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&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(){var e=acfe.versionCompare(acf.get("wp_version"),">=","5.5")?"dashicons-info-outline":"dashicons-info";this.field.$labelWrap().prepend('<span class="acfe-field-tooltip acf-js-tooltip dashicons '+e+'" 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=i('<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&&(e=acfe.versionCompare(acf.get("wp_version"),">=","5.5")?"dashicons-info-outline":"dashicons-info",this.field.$labelWrap().prepend(i('<span class="acfe-field-tooltip acf-js-tooltip dashicons '+e+'" title="'+_.escape(a.html())+'"></span>')),a.remove())}})}(jQuery),function(o){var e,a;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(new acf.Model({wait:"prepare",priority:1,initialize:function(){acfe.get("is_admin")||new e}}),e=acf.Model.extend({actions:{"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"},events:{"click .acf-form .button":"onClickSubmit",'click .acf-form [type="submit"]':"onClickSubmit","click .acfe-form .button":"onClickSubmit",'click .acfe-form [type="submit"]':"onClickSubmit"},$getForm:function(e){e=e||!1;var t=o(".acfe-form");return!!(t=e?e.$el.closest(".acfe-form"):t).length&&t},getFormFieldClass:function(e){e=this.$getForm(e);return e&&e.data("fields-class")||!1},initialize:function(){this.setupUnload(),this.setupSuccess()},setupUnload:function(){o('.acfe-form[data-hide-unload="1"]').length&&acf.unload.disable()},setupSuccess:function(){acfe.get("acfe_form_success")&&(window.history.replaceState&&window.history.replaceState(null,null,window.location.href),acfe.get("acfe_form_success").map(function(e){acf.doAction("acfe/form/success"),acf.doAction("acfe/form/success/id="+e.id),acf.doAction("acfe/form/success/name="+e.name),acf.doAction("acfe/form/submit/success"),acf.doAction("acfe/form/submit/success/id="+e.id),acf.doAction("acfe/form/submit/success/name="+e.name)}))},onClickSubmit:function(e,t){t.hasClass("disabled")&&e.preventDefault()},datePicker:function(e){var t=this.getFormFieldClass(e);t&&e.$inputText().addClass(t)},googleMap:function(e){var t=this.getFormFieldClass(e);t&&e.$search().addClass(t)},invalidField:function(e){var t,a,i,n=this.$getForm(e);n&&((t=n.data("errors-class"))&&e.$el.find(".acf-notice.-error").addClass(t),"hide"===(i=n.data("errors-position"))?e.$el.find(".acf-notice.-error").remove():"below"===i?(e.$control().length?e.$el.find(".acf-notice.-error").insertAfter(e.$control()):e.$input().length&&e.$el.find(".acf-notice.-error").insertAfter(e.$input()),a=!1,e.$control().length?a=e.$control():e.$input().length&&(a=e.$input()),a&&e.$el.find(".acf-notice.-error").insertAfter(a)):"group"===i&&(t=e.$el.find(".acf-label label").text().trim(),a=e.$el.find('.acf-input-wrap [placeholder!=""]').attr("placeholder"),i=e.$el.find(".acf-notice.-error").text().trim(),e.$el.find(".acf-notice.-error").remove(),i=t&&t.length&&"*"!==t?(t=t.replace(/ \*$/,""))+": "+i:a&&a.length&&""!==a?a+": "+i:e.get("name")+": "+i,(e=!(e=n.find("> .acfe-form-error")).length?o('<div class="acf-notice -error acf-error-message acfe-form-error" />').prependTo(n):e).append("<p>"+i+"</p>")))},validationBegin:function(e){void 0!==e&&e.find(".acf-error-message").remove()}}),a=function(e){var t=o(".acf-field input"),e=e.closest("form");(t=e.length?e.find(".acf-field input"):t).each(function(){this.checkValidity()||function(e){e=e.parents(".acf-postbox");!e.length||(e=acf.getPostbox(e))&&(e.$el.hasClass("hide-if-js")||"none"==e.$el.css("display"))&&(e.$el.removeClass("hide-if-js"),e.$el.css("display",""))}(o(this))})},acf.validation.onClickSubmit=function(e,t){a(t),this.set("originalEvent",e)},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);
|
assets/js/acfe-ui.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
(function($) {
|
2 |
|
3 |
-
if (typeof acf === 'undefined')
|
4 |
return;
|
|
|
5 |
|
6 |
acfe.enhancedEditUI = function(props) {
|
7 |
return new enhancedEditUI(props);
|
@@ -378,4 +379,58 @@
|
|
378 |
|
379 |
});
|
380 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
381 |
})(jQuery);
|
1 |
(function($) {
|
2 |
|
3 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
4 |
return;
|
5 |
+
}
|
6 |
|
7 |
acfe.enhancedEditUI = function(props) {
|
8 |
return new enhancedEditUI(props);
|
379 |
|
380 |
});
|
381 |
|
382 |
+
acfe.enhancedAttachmentUI = function(props) {
|
383 |
+
return new enhancedAttachmentUI(props);
|
384 |
+
};
|
385 |
+
|
386 |
+
var enhancedAttachmentUI = acf.Model.extend({
|
387 |
+
|
388 |
+
data: {
|
389 |
+
title: 'Edit Media'
|
390 |
+
},
|
391 |
+
|
392 |
+
setup: function(props) {
|
393 |
+
|
394 |
+
// extend data
|
395 |
+
$.extend(this.data, props);
|
396 |
+
|
397 |
+
// set element
|
398 |
+
this.$el = $('.wrap');
|
399 |
+
|
400 |
+
},
|
401 |
+
|
402 |
+
initialize: function() {
|
403 |
+
|
404 |
+
// postbox
|
405 |
+
this.$('.wp_attachment_details').addClass('postbox acf-postbox');
|
406 |
+
this.$('.wp_attachment_details').wrapInner('<div class="inside acf-fields -left" />');
|
407 |
+
this.$('.wp_attachment_details').prepend('<div class="postbox-header"><h2 class="hndle">' + this.get('title') + '</h2></div>');
|
408 |
+
|
409 |
+
// acf fields
|
410 |
+
this.$('.wp_attachment_details').find('.attachment-alt-text-description ~ p').wrapAll('<div class="acf-field acfe-caption" />');
|
411 |
+
this.$('.wp_attachment_details').find('.attachment-alt-text, .attachment-alt-text-description').wrapAll('<div class="acf-field acfe-alt-text" />');
|
412 |
+
this.$('.wp_attachment_details').find('label.attachment-content-description, #wp-attachment_content-wrap').wrapAll('<div class="acf-field acfe-description" />');
|
413 |
+
|
414 |
+
// alt text
|
415 |
+
this.$('.acf-field.acfe-alt-text').find('label').wrapAll('<div class="acf-label" />');
|
416 |
+
this.$('.acf-field.acfe-alt-text').find('.acf-label').prependTo('.acf-field.acfe-alt-text');
|
417 |
+
this.$('.acf-field.acfe-alt-text').find('input, p.attachment-alt-text-description').wrapAll('<div class="acf-input" />');
|
418 |
+
this.$('.acf-field.acfe-alt-text').find('.acf-input').appendTo('.acf-field.acfe-alt-text');
|
419 |
+
this.$('.acf-field.acfe-alt-text').find('.attachment-alt-text').remove();
|
420 |
+
|
421 |
+
// caption
|
422 |
+
this.$('.acf-field.acfe-caption').find('label').wrapAll('<div class="acf-label" />');
|
423 |
+
this.$('.acf-field.acfe-caption').find('.acf-label').prependTo('.acf-field.acfe-caption');
|
424 |
+
this.$('.acf-field.acfe-caption').find('textarea').wrapAll('<div class="acf-input" />');
|
425 |
+
this.$('.acf-field.acfe-caption').find('.acf-input').appendTo('.acf-field.acfe-caption');
|
426 |
+
this.$('.acf-field.acfe-caption').find('> p').remove();
|
427 |
+
|
428 |
+
// description
|
429 |
+
this.$('.acf-field.acfe-description').find('label').wrapAll('<div class="acf-label" />');
|
430 |
+
this.$('.acf-field.acfe-description').find('#wp-attachment_content-wrap').wrapAll('<div class="acf-input" />');
|
431 |
+
|
432 |
+
},
|
433 |
+
|
434 |
+
});
|
435 |
+
|
436 |
})(jQuery);
|
assets/js/acfe-ui.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a){var i,
|
1 |
+
!function(a){var e,i,s;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.enhancedEditUI=function(t){return new e(t)},e=acf.Model.extend({data:{screen:!1,submit:"> p.submit",pageTitle:!1},title:!1,$form:!1,$main:!1,$sidebar:!1,setup:function(t){a.extend(this.data,t),this.$el=a(".wrap"),this.$el.attr("id","poststuff"),this.$("> form").wrapInner('<div class="acf-columns-2"><div class="acf-column-1"></div></div>'),a("#side-sortables").appendTo(".acf-columns-2").wrapAll('<div class="acf-column-2"></div>'),this.title=this.$("> h1").text(),this.$form=this.$("> form"),this.$main=this.$(".acf-column-1"),this.$sidebar=this.$(".acf-column-2"),this.get("pageTitle")&&this.$main.find("> table:first").before("<h2>"+this.title+"</h2>"),a("#submitdiv > .postbox-header > h2.hndle").text(this.title),this.$main.find(this.get("submit")).contents().appendTo("#publishing-action"),this.$main.find(this.get("submit")).remove(),a("#submitdiv #publishing-action .button").addClass("button-large").after('<span class="spinner"></span>')},events:{"submit form":"onSubmit"},initialize:function(){this.addActions({"acfe/ui/user-edit":"userEdit","acfe/ui/user-new":"userNew","acfe/ui/term-edit":"termEdit","acfe/ui/settings":"settings"}),acf.doAction("acfe/ui/"+this.get("screen"),this)},onSubmit:function(t,e){acf.lockForm(e)},userEdit:function(){var t=this.$main;t.prepend(a("#acf_after_title-sortables"));var e=this.$("> form .yoast.yoast-settings");e.length&&(e.addClass("postbox"),e.find("> h2").wrapAll('<div class="postbox-header"></div>'),e.find("> .postbox-header ~ *").wrapAll('<div class="acf-fields -left"></div>'),e.find(".acf-fields > label:nth-of-type(1), .acf-fields > input:nth-of-type(1)").wrapAll('<div class="acf-field"></div>'),e.find(".acf-fields > label:nth-of-type(1), .acf-fields > label:nth-of-type(1) ~ *").wrapAll('<div class="acf-field"></div>'),e.find(".acf-fields > br").remove(),e.find(".acf-field").each(function(){var t=a(this);t.find("label:nth-of-type(1)").wrapAll('<div class="acf-label"></div>'),t.find(".acf-label ~ *").wrapAll('<div class="acf-input"></div>')}));var i=this.$("#ure_select_other_roles");i.length&&i.closest("table").find("tr:eq(1) > td > br").remove();e=a("#application-passwords-section");e.length&&(i=e.find("> h2").text(),e.addClass("postbox"),e.wrapInner('<div class="acf-fields -left"><div class="acf-field"><div class="acf-input"></div></div></div>'),e.find(".acf-input > h2").insertBefore(e.find(".acf-fields")).wrapAll('<div class="postbox-header"></div>'),e.find(".acf-input").before('<div class="acf-label"><label>'+i+"</label></div>"),e.find(".acf-input > p:first").css("margin-top",15).insertBefore(e.find("p.submit")),e.find(".acf-input > .create-application-password > .form-field").removeClass("form-field"),e.find(".acf-input > .create-application-password > div > label").remove());e=a("input#nickname");e.length&&(e.wrapAll('<div id="titlediv"><div id="titlewrap"></div></div>'),a("#titlediv").append(a("#edit-slug-box")).prependTo(t),t.find("tr.user-nickname-wrap").remove()),t.find("> h2:eq(1), > h2:eq(1) + table").insertBefore(t.find("> h2:first"))},userNew:function(){var t=this.$main;this.$("> p:first").insertAfter(t.find(">h2:first")),t.prepend(a("#acf_after_title-sortables"))},termEdit:function(){var t=this.$main,e=a("input#name");e.length&&(e.wrapAll('<div id="titlediv"><div id="titlewrap"></div></div>'),a("#titlediv").append(a(".permalink")).prependTo(t),t.find("tr.term-name-wrap").remove());t=a("#icl_tax_menu");t.length&&(i=t.find("h3.hndle").text(),t.find(".inside").addClass("icl-tax-postbox-content").attr("style","").insertAfter("#submitdiv"),this.$sidebar.find(".icl-tax-postbox-content").wrapAll('<div id="icl-tax-postbox" class="postbox"></div>').parent().prepend('<div class="postbox-header"><h2 class="hdnle">'+i+"</h2></div>"));var i,t=a(".wpseo-taxonomy-metabox-postbox");t.length&&(i=t.find("> h2").text(),t.find("> .inside").removeClass("inside").wrapAll('<div class="acf-fields -left"><div class="acf-field"><div class="acf-input"></div></div></div>'),a('<div class="acf-label"><label>'+i+"</label></div>").insertBefore(t.find(".acf-input"))),a("#submitdiv #publishing-action").addClass("edit-tag-actions")},settings:function(){acf.get("locale")||acf.set("locale","en_US"),a("#acf-form-data").prependTo(this.$form),a("#acf_after_title-sortables").prependTo(this.$main),a("#normal-sortables").appendTo(this.$main);var t=this.$("#ping_sites");t.length&&(t.wrap('<table class="form-table"><tbody><td class="td-full"></td></tbody></table>'),t.css("width","100%"));t=this.$(".permalink-structure");t.length&&t.prev().prev("p").insertBefore(t)}}),acfe.enhancedListUI=function(t){return new i(t)},i=acf.Model.extend({data:{taxonomy:!1},setup:function(t){a.extend(this.data,t)},initialize:function(){a(".wrap .wp-heading-inline").after(a("#tmpl-button-add-term").html()),a("#ajax-response").after(a("#col-container #col-left").addClass("acfe-bt")),a(".acfe-bt").hide(),a(".acfe-bt .form-wrap").append('<div id="poststuff"></div>');var t=a(".acfe-bt .form-wrap form");a(".acfe-bt #poststuff").append(t),t.wrapInner('<div class="postbox" id="acfe-bt-form"><div class="inside"></div></div>');var e=a(".acfe-bt .form-wrap > h2");a(".acfe-bt .postbox").prepend('<h2 class="hndle">'+e.text()+"</h2>"),e.remove(),a(".acfe-bt .inside .form-field").addClass("acf-field"),a(".acfe-bt .inside .submit").addClass("form-field"),a(".acfe-bt .inside .form-field").each(function(){var t,e=a(this);e.is("#term-translations")||(e.append('<div class="acf-input"></div>'),e.find(".acf-input").append(e.find('> :not("label")')),(t=e.find("> label")).length?t.wrap('<div class="acf-label"></div>'):e.addClass("acfe-bt-no-label"))}),a("#acf-term-fields").contents().unwrap(),a(".acfe-bt-admin-button-add").click(function(t){t.preventDefault();t=a(".acfe-bt");t.is(":visible")?t.hide():t.show()}),"undefined"!=typeof acf&&acf.postbox.render({id:"acfe-bt-form",label:"left"}),a("#acfe-bt-form .acf-tab-wrap.-left").removeClass("-left").addClass("-top");t=a("#icl_tax_menu");t.length&&((e=t.find(".postbox").removeClass("postbox")).find(".inside").removeClass("inside").css("padding",0),e.insertBefore(".acfe-bt .inside .submit"),t=e.find("h3.hndle").text(),e.find(".hndle").remove(),e.wrapAll('<div class="form-field acf-field"><div class="acf-input"></div></div>').parent().parent().prepend('<div class="acf-label"><label>'+t+"</label></div>")),this.addAction("ready","ready")},ready:function(){a(".global-new-entity-button").click(function(t){t.preventDefault();t=a(".acfe-bt");t.is(":visible")?t.hide():t.show()})}}),acfe.enhancedAttachmentUI=function(t){return new s(t)},s=acf.Model.extend({data:{title:"Edit Media"},setup:function(t){a.extend(this.data,t),this.$el=a(".wrap")},initialize:function(){this.$(".wp_attachment_details").addClass("postbox acf-postbox"),this.$(".wp_attachment_details").wrapInner('<div class="inside acf-fields -left" />'),this.$(".wp_attachment_details").prepend('<div class="postbox-header"><h2 class="hndle">'+this.get("title")+"</h2></div>"),this.$(".wp_attachment_details").find(".attachment-alt-text-description ~ p").wrapAll('<div class="acf-field acfe-caption" />'),this.$(".wp_attachment_details").find(".attachment-alt-text, .attachment-alt-text-description").wrapAll('<div class="acf-field acfe-alt-text" />'),this.$(".wp_attachment_details").find("label.attachment-content-description, #wp-attachment_content-wrap").wrapAll('<div class="acf-field acfe-description" />'),this.$(".acf-field.acfe-alt-text").find("label").wrapAll('<div class="acf-label" />'),this.$(".acf-field.acfe-alt-text").find(".acf-label").prependTo(".acf-field.acfe-alt-text"),this.$(".acf-field.acfe-alt-text").find("input, p.attachment-alt-text-description").wrapAll('<div class="acf-input" />'),this.$(".acf-field.acfe-alt-text").find(".acf-input").appendTo(".acf-field.acfe-alt-text"),this.$(".acf-field.acfe-alt-text").find(".attachment-alt-text").remove(),this.$(".acf-field.acfe-caption").find("label").wrapAll('<div class="acf-label" />'),this.$(".acf-field.acfe-caption").find(".acf-label").prependTo(".acf-field.acfe-caption"),this.$(".acf-field.acfe-caption").find("textarea").wrapAll('<div class="acf-input" />'),this.$(".acf-field.acfe-caption").find(".acf-input").appendTo(".acf-field.acfe-caption"),this.$(".acf-field.acfe-caption").find("> p").remove(),this.$(".acf-field.acfe-description").find("label").wrapAll('<div class="acf-label" />'),this.$(".acf-field.acfe-description").find("#wp-attachment_content-wrap").wrapAll('<div class="acf-input" />')}}))}(jQuery);
|
assets/js/acfe.js
CHANGED
@@ -1,35 +1,36 @@
|
|
1 |
(function($) {
|
2 |
|
3 |
-
if (typeof acf === 'undefined')
|
4 |
return;
|
|
|
5 |
|
6 |
-
|
7 |
* ACF Data
|
8 |
*/
|
9 |
acf.data.acfe = {};
|
10 |
|
11 |
-
|
12 |
* ACFE
|
13 |
*/
|
14 |
var acfe = {};
|
15 |
|
16 |
window.acfe = acfe;
|
17 |
|
18 |
-
|
19 |
* Get
|
20 |
*/
|
21 |
acfe.get = function(name) {
|
22 |
return acf.data.acfe[name] || null;
|
23 |
};
|
24 |
|
25 |
-
|
26 |
* Has
|
27 |
*/
|
28 |
acfe.has = function(name) {
|
29 |
return this.get(name) !== null;
|
30 |
};
|
31 |
|
32 |
-
|
33 |
* Set
|
34 |
*/
|
35 |
acfe.set = function(name, value) {
|
@@ -37,14 +38,14 @@
|
|
37 |
return this;
|
38 |
};
|
39 |
|
40 |
-
|
41 |
* Parse String
|
42 |
*/
|
43 |
acfe.parseString = function(val) {
|
44 |
return val ? '' + val : '';
|
45 |
};
|
46 |
|
47 |
-
|
48 |
* In Array
|
49 |
*/
|
50 |
acfe.inArray = function(v1, array) {
|
@@ -57,7 +58,14 @@
|
|
57 |
|
58 |
}
|
59 |
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
* Parse URL
|
62 |
*/
|
63 |
acfe.parseURL = function(url) {
|
@@ -65,11 +73,11 @@
|
|
65 |
url = url || acfe.currentURL();
|
66 |
|
67 |
var params = {};
|
68 |
-
|
69 |
var queryString = url.replace(/^[^\?]+\??/, '');
|
70 |
|
71 |
-
if (!queryString)
|
72 |
return params;
|
|
|
73 |
|
74 |
var Pairs = queryString.split(/[;&]/);
|
75 |
|
@@ -77,8 +85,9 @@
|
|
77 |
|
78 |
var KeyVal = Pairs[i].split('=');
|
79 |
|
80 |
-
if (!KeyVal || KeyVal.length !== 2)
|
81 |
continue;
|
|
|
82 |
|
83 |
var key = decodeURI(KeyVal[0]);
|
84 |
var val = decodeURI(KeyVal[1]);
|
@@ -93,43 +102,35 @@
|
|
93 |
|
94 |
};
|
95 |
|
96 |
-
|
97 |
* Current URL
|
98 |
*/
|
99 |
acfe.currentURL = function() {
|
100 |
-
|
101 |
return self.location.href;
|
102 |
-
|
103 |
};
|
104 |
|
105 |
-
|
106 |
* Current Path
|
107 |
*/
|
108 |
acfe.currentPath = function() {
|
109 |
-
|
110 |
return self.location.pathname;
|
111 |
-
|
112 |
};
|
113 |
|
114 |
-
|
115 |
* Current Filename
|
116 |
*/
|
117 |
acfe.currentFilename = function() {
|
118 |
-
|
119 |
return acfe.currentPath().split('/').pop();
|
120 |
-
|
121 |
};
|
122 |
|
123 |
-
|
124 |
* Parent Object
|
125 |
*/
|
126 |
acfe.parentObject = function(obj) {
|
127 |
-
|
128 |
return Object.getPrototypeOf(obj);
|
129 |
-
|
130 |
}
|
131 |
|
132 |
-
|
133 |
* Get Text Node
|
134 |
*/
|
135 |
acfe.getTextNode = function($selector) {
|
@@ -150,7 +151,14 @@
|
|
150 |
|
151 |
}
|
152 |
|
153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
* Find Submit Wrap
|
155 |
*/
|
156 |
acfe.findSubmitWrap = function($form) {
|
@@ -186,29 +194,27 @@
|
|
186 |
|
187 |
};
|
188 |
|
189 |
-
|
190 |
* Find Submit
|
191 |
*/
|
192 |
acfe.findSubmit = function($form) {
|
193 |
|
194 |
$form = $form || $('form');
|
195 |
-
|
196 |
return this.findSubmitWrap($form).find('.button, [type="submit"]');
|
197 |
|
198 |
}
|
199 |
|
200 |
-
|
201 |
* Find Spinner
|
202 |
*/
|
203 |
acfe.findSpinner = function($form) {
|
204 |
|
205 |
$form = $form || $('form');
|
206 |
-
|
207 |
return this.findSubmitWrap($form).find('.spinner, .acf-spinner');
|
208 |
|
209 |
}
|
210 |
|
211 |
-
|
212 |
* Filters
|
213 |
*/
|
214 |
var filters = [];
|
@@ -227,25 +233,23 @@
|
|
227 |
|
228 |
acfe.enableFilter = function(name) {
|
229 |
|
230 |
-
if (filters.indexOf(name) === -1)
|
231 |
filters.push(name);
|
|
|
232 |
|
233 |
};
|
234 |
|
235 |
acfe.disableFilter = function(name) {
|
236 |
|
237 |
for (var i = filters.length; i--;) {
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
filters.splice(i, 1);
|
243 |
-
|
244 |
}
|
245 |
|
246 |
};
|
247 |
|
248 |
-
|
249 |
* Field Extend
|
250 |
*/
|
251 |
acfe.fieldExtend = function(fieldType, props) {
|
@@ -286,38 +290,35 @@
|
|
286 |
|
287 |
}
|
288 |
|
289 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
290 |
* Version Compare
|
291 |
* https://locutus.io/php/info/version_compare/
|
292 |
*/
|
293 |
acfe.versionCompare = function(v1, operator, v2) {
|
294 |
-
// eslint-disable-line camelcase
|
295 |
-
// discuss at: https://locutus.io/php/version_compare/
|
296 |
-
// original by: Philippe Jausions (https://pear.php.net/user/jausions)
|
297 |
-
// original by: Aidan Lister (https://aidanlister.com/)
|
298 |
-
// reimplemented by: Kankrelune (https://www.webfaktory.info/)
|
299 |
-
// improved by: Brett Zamir (https://brett-zamir.me)
|
300 |
-
// improved by: Scott Baker
|
301 |
-
// improved by: Theriault (https://github.com/Theriault)
|
302 |
-
// example 1: version_compare('8.2.5rc', '8.2.5a')
|
303 |
-
// returns 1: 1
|
304 |
-
// example 2: version_compare('8.2.50', '8.2.52', '<')
|
305 |
-
// returns 2: true
|
306 |
-
// example 3: version_compare('5.3.0-dev', '5.3.0')
|
307 |
-
// returns 3: -1
|
308 |
-
// example 4: version_compare('4.1.0.52','4.01.0.51')
|
309 |
-
// returns 4: 1
|
310 |
-
// Important: compare must be initialized at 0.
|
311 |
let i
|
312 |
let x
|
313 |
let compare = 0
|
314 |
-
|
315 |
-
// PHP currently defines these as CASE-SENSITIVE. It is important to
|
316 |
-
// leave these as negatives so that they can come before numerical versions
|
317 |
-
// and as if no letters were there to begin with.
|
318 |
-
// (1alpha is < 1 and < 1.1 but > 1dev1)
|
319 |
-
// If a non-numerical value can't be mapped to this table, it receives
|
320 |
-
// -7 as its value.
|
321 |
const vm = {
|
322 |
dev: -6,
|
323 |
alpha: -5,
|
@@ -330,24 +331,13 @@
|
|
330 |
p: 1,
|
331 |
pl: 1
|
332 |
}
|
333 |
-
|
334 |
-
// It replaces every _, -, and + with a dot.
|
335 |
-
// It surrounds any nonsequence of numbers/dots with dots.
|
336 |
-
// It replaces sequences of dots with a single dot.
|
337 |
-
// version_compare('4..0', '4.0') === 0
|
338 |
-
// Important: A string of 0 length needs to be converted into a value
|
339 |
-
// even less than an unexisting value in vm (-7), hence [-8].
|
340 |
-
// It's also important to not strip spaces because of this.
|
341 |
-
// version_compare('', ' ') === 1
|
342 |
const _prepVersion = function(v) {
|
343 |
v = ('' + v).replace(/[_\-+]/g, '.')
|
344 |
v = v.replace(/([^.\d]+)/g, '.$1.').replace(/\.{2,}/g, '.')
|
345 |
return (!v.length ? [-8] : v.split('.'))
|
346 |
}
|
347 |
-
|
348 |
-
// Empty component becomes 0.
|
349 |
-
// Non-numerical component becomes a negative number.
|
350 |
-
// Numerical component becomes itself as an integer.
|
351 |
const _numVersion = function(v) {
|
352 |
return !v ? 0 : (isNaN(v) ? vm[v] || -7 : parseInt(v, 10))
|
353 |
}
|
@@ -371,9 +361,7 @@
|
|
371 |
if (!operator) {
|
372 |
return compare
|
373 |
}
|
374 |
-
|
375 |
-
// "No operator" seems to be treated as "<."
|
376 |
-
// Any other values seem to make the function return null.
|
377 |
switch (operator) {
|
378 |
case '>':
|
379 |
case 'gt':
|
@@ -405,10 +393,11 @@
|
|
405 |
})(jQuery);
|
406 |
(function($) {
|
407 |
|
408 |
-
if (typeof acf === 'undefined')
|
409 |
return;
|
|
|
410 |
|
411 |
-
|
412 |
* Popup
|
413 |
*/
|
414 |
var popups = [];
|
@@ -557,7 +546,7 @@
|
|
557 |
|
558 |
});
|
559 |
|
560 |
-
|
561 |
* Popup: Close
|
562 |
*/
|
563 |
acfe.closePopup = function() {
|
@@ -570,7 +559,7 @@
|
|
570 |
|
571 |
};
|
572 |
|
573 |
-
|
574 |
* Popup: Sync
|
575 |
*/
|
576 |
acfe.syncPopup = function() {
|
@@ -693,49 +682,68 @@
|
|
693 |
})(jQuery);
|
694 |
(function($) {
|
695 |
|
696 |
-
if (typeof acf === 'undefined')
|
697 |
return;
|
|
|
698 |
|
699 |
-
|
700 |
* Tooltip
|
701 |
*/
|
702 |
-
new acf.Model({
|
703 |
|
704 |
-
|
705 |
|
706 |
events: {
|
707 |
-
'click .acfe-field-tooltip': '
|
708 |
},
|
709 |
|
710 |
-
|
711 |
|
712 |
-
//
|
713 |
var title = $el.attr('title');
|
714 |
-
|
715 |
-
// bail ealry if no title
|
716 |
if (!title) {
|
717 |
return;
|
718 |
}
|
719 |
|
|
|
|
|
|
|
|
|
|
|
|
|
720 |
// clear title to avoid default browser tooltip
|
721 |
$el.attr('title', '');
|
722 |
|
723 |
-
//
|
724 |
-
if (!this.
|
725 |
-
|
|
|
726 |
text: title,
|
727 |
target: $el
|
728 |
});
|
729 |
|
730 |
-
|
|
|
|
|
|
|
|
|
731 |
} else {
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
736 |
}
|
737 |
|
738 |
-
}
|
739 |
|
740 |
});
|
741 |
|
1 |
(function($) {
|
2 |
|
3 |
+
if (typeof acf === 'undefined') {
|
4 |
return;
|
5 |
+
}
|
6 |
|
7 |
+
/**
|
8 |
* ACF Data
|
9 |
*/
|
10 |
acf.data.acfe = {};
|
11 |
|
12 |
+
/**
|
13 |
* ACFE
|
14 |
*/
|
15 |
var acfe = {};
|
16 |
|
17 |
window.acfe = acfe;
|
18 |
|
19 |
+
/**
|
20 |
* Get
|
21 |
*/
|
22 |
acfe.get = function(name) {
|
23 |
return acf.data.acfe[name] || null;
|
24 |
};
|
25 |
|
26 |
+
/**
|
27 |
* Has
|
28 |
*/
|
29 |
acfe.has = function(name) {
|
30 |
return this.get(name) !== null;
|
31 |
};
|
32 |
|
33 |
+
/**
|
34 |
* Set
|
35 |
*/
|
36 |
acfe.set = function(name, value) {
|
38 |
return this;
|
39 |
};
|
40 |
|
41 |
+
/**
|
42 |
* Parse String
|
43 |
*/
|
44 |
acfe.parseString = function(val) {
|
45 |
return val ? '' + val : '';
|
46 |
};
|
47 |
|
48 |
+
/**
|
49 |
* In Array
|
50 |
*/
|
51 |
acfe.inArray = function(v1, array) {
|
58 |
|
59 |
}
|
60 |
|
61 |
+
/**
|
62 |
+
* Get Array
|
63 |
+
*/
|
64 |
+
acfe.getArray = function(val) {
|
65 |
+
return [].concat(val || []);
|
66 |
+
}
|
67 |
+
|
68 |
+
/**
|
69 |
* Parse URL
|
70 |
*/
|
71 |
acfe.parseURL = function(url) {
|
73 |
url = url || acfe.currentURL();
|
74 |
|
75 |
var params = {};
|
|
|
76 |
var queryString = url.replace(/^[^\?]+\??/, '');
|
77 |
|
78 |
+
if (!queryString) {
|
79 |
return params;
|
80 |
+
}
|
81 |
|
82 |
var Pairs = queryString.split(/[;&]/);
|
83 |
|
85 |
|
86 |
var KeyVal = Pairs[i].split('=');
|
87 |
|
88 |
+
if (!KeyVal || KeyVal.length !== 2) {
|
89 |
continue;
|
90 |
+
}
|
91 |
|
92 |
var key = decodeURI(KeyVal[0]);
|
93 |
var val = decodeURI(KeyVal[1]);
|
102 |
|
103 |
};
|
104 |
|
105 |
+
/**
|
106 |
* Current URL
|
107 |
*/
|
108 |
acfe.currentURL = function() {
|
|
|
109 |
return self.location.href;
|
|
|
110 |
};
|
111 |
|
112 |
+
/**
|
113 |
* Current Path
|
114 |
*/
|
115 |
acfe.currentPath = function() {
|
|
|
116 |
return self.location.pathname;
|
|
|
117 |
};
|
118 |
|
119 |
+
/**
|
120 |
* Current Filename
|
121 |
*/
|
122 |
acfe.currentFilename = function() {
|
|
|
123 |
return acfe.currentPath().split('/').pop();
|
|
|
124 |
};
|
125 |
|
126 |
+
/**
|
127 |
* Parent Object
|
128 |
*/
|
129 |
acfe.parentObject = function(obj) {
|
|
|
130 |
return Object.getPrototypeOf(obj);
|
|
|
131 |
}
|
132 |
|
133 |
+
/**
|
134 |
* Get Text Node
|
135 |
*/
|
136 |
acfe.getTextNode = function($selector) {
|
151 |
|
152 |
}
|
153 |
|
154 |
+
/**
|
155 |
+
* UC First
|
156 |
+
*/
|
157 |
+
acfe.ucFirst = function(string) {
|
158 |
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
159 |
+
}
|
160 |
+
|
161 |
+
/**
|
162 |
* Find Submit Wrap
|
163 |
*/
|
164 |
acfe.findSubmitWrap = function($form) {
|
194 |
|
195 |
};
|
196 |
|
197 |
+
/**
|
198 |
* Find Submit
|
199 |
*/
|
200 |
acfe.findSubmit = function($form) {
|
201 |
|
202 |
$form = $form || $('form');
|
|
|
203 |
return this.findSubmitWrap($form).find('.button, [type="submit"]');
|
204 |
|
205 |
}
|
206 |
|
207 |
+
/**
|
208 |
* Find Spinner
|
209 |
*/
|
210 |
acfe.findSpinner = function($form) {
|
211 |
|
212 |
$form = $form || $('form');
|
|
|
213 |
return this.findSubmitWrap($form).find('.spinner, .acf-spinner');
|
214 |
|
215 |
}
|
216 |
|
217 |
+
/**
|
218 |
* Filters
|
219 |
*/
|
220 |
var filters = [];
|
233 |
|
234 |
acfe.enableFilter = function(name) {
|
235 |
|
236 |
+
if (filters.indexOf(name) === -1) {
|
237 |
filters.push(name);
|
238 |
+
}
|
239 |
|
240 |
};
|
241 |
|
242 |
acfe.disableFilter = function(name) {
|
243 |
|
244 |
for (var i = filters.length; i--;) {
|
245 |
+
if (filters[i] === name) {
|
246 |
+
filters.splice(i, 1);
|
247 |
+
}
|
|
|
|
|
|
|
248 |
}
|
249 |
|
250 |
};
|
251 |
|
252 |
+
/**
|
253 |
* Field Extend
|
254 |
*/
|
255 |
acfe.fieldExtend = function(fieldType, props) {
|
290 |
|
291 |
}
|
292 |
|
293 |
+
/**
|
294 |
+
* isFieldKey
|
295 |
+
*
|
296 |
+
* @param name
|
297 |
+
* @returns {boolean}
|
298 |
+
*/
|
299 |
+
acfe.isFieldKey = function(name) {
|
300 |
+
return typeof name === 'string' && name.substr(0, 6) === 'field_';
|
301 |
+
}
|
302 |
+
|
303 |
+
/**
|
304 |
+
* isGroupKey
|
305 |
+
*
|
306 |
+
* @param name
|
307 |
+
* @returns {boolean}
|
308 |
+
*/
|
309 |
+
acfe.isGroupKey = function(name) {
|
310 |
+
return typeof name === 'string' && name.substr(0, 6) === 'group_';
|
311 |
+
}
|
312 |
+
|
313 |
+
/**
|
314 |
* Version Compare
|
315 |
* https://locutus.io/php/info/version_compare/
|
316 |
*/
|
317 |
acfe.versionCompare = function(v1, operator, v2) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
318 |
let i
|
319 |
let x
|
320 |
let compare = 0
|
321 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
322 |
const vm = {
|
323 |
dev: -6,
|
324 |
alpha: -5,
|
331 |
p: 1,
|
332 |
pl: 1
|
333 |
}
|
334 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
const _prepVersion = function(v) {
|
336 |
v = ('' + v).replace(/[_\-+]/g, '.')
|
337 |
v = v.replace(/([^.\d]+)/g, '.$1.').replace(/\.{2,}/g, '.')
|
338 |
return (!v.length ? [-8] : v.split('.'))
|
339 |
}
|
340 |
+
|
|
|
|
|
|
|
341 |
const _numVersion = function(v) {
|
342 |
return !v ? 0 : (isNaN(v) ? vm[v] || -7 : parseInt(v, 10))
|
343 |
}
|
361 |
if (!operator) {
|
362 |
return compare
|
363 |
}
|
364 |
+
|
|
|
|
|
365 |
switch (operator) {
|
366 |
case '>':
|
367 |
case 'gt':
|
393 |
})(jQuery);
|
394 |
(function($) {
|
395 |
|
396 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
397 |
return;
|
398 |
+
}
|
399 |
|
400 |
+
/**
|
401 |
* Popup
|
402 |
*/
|
403 |
var popups = [];
|
546 |
|
547 |
});
|
548 |
|
549 |
+
/**
|
550 |
* Popup: Close
|
551 |
*/
|
552 |
acfe.closePopup = function() {
|
559 |
|
560 |
};
|
561 |
|
562 |
+
/**
|
563 |
* Popup: Sync
|
564 |
*/
|
565 |
acfe.syncPopup = function() {
|
682 |
})(jQuery);
|
683 |
(function($) {
|
684 |
|
685 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
686 |
return;
|
687 |
+
}
|
688 |
|
689 |
+
/**
|
690 |
* Tooltip
|
691 |
*/
|
692 |
+
var tooltip = new acf.Model({
|
693 |
|
694 |
+
tooltips: {},
|
695 |
|
696 |
events: {
|
697 |
+
'click .acfe-field-tooltip': 'clickTooltip',
|
698 |
},
|
699 |
|
700 |
+
clickTooltip: function(e, $el) {
|
701 |
|
702 |
+
// title
|
703 |
var title = $el.attr('title');
|
|
|
|
|
704 |
if (!title) {
|
705 |
return;
|
706 |
}
|
707 |
|
708 |
+
// get field
|
709 |
+
var field = acf.getClosestField($el);
|
710 |
+
if (!field) {
|
711 |
+
return;
|
712 |
+
}
|
713 |
+
|
714 |
// clear title to avoid default browser tooltip
|
715 |
$el.attr('title', '');
|
716 |
|
717 |
+
// open
|
718 |
+
if (!this.tooltips[field.cid]) {
|
719 |
+
|
720 |
+
this.tooltips[field.cid] = acf.newTooltip({
|
721 |
text: title,
|
722 |
target: $el
|
723 |
});
|
724 |
|
725 |
+
if (acfe.versionCompare(acf.get('wp_version'), '>=', '5.5')) {
|
726 |
+
$el.removeClass('dashicons-info-outline').addClass('dashicons-remove');
|
727 |
+
}
|
728 |
+
|
729 |
+
// close
|
730 |
} else {
|
731 |
+
|
732 |
+
// hide tooltip
|
733 |
+
this.tooltips[field.cid].hide();
|
734 |
+
|
735 |
+
// restore title
|
736 |
+
$el.attr('title', this.tooltips[field.cid].get('text'));
|
737 |
+
|
738 |
+
this.tooltips[field.cid] = false;
|
739 |
+
|
740 |
+
if (acfe.versionCompare(acf.get('wp_version'), '>=', '5.5')) {
|
741 |
+
$el.removeClass('dashicons-remove').addClass('dashicons-info-outline');
|
742 |
+
}
|
743 |
+
|
744 |
}
|
745 |
|
746 |
+
},
|
747 |
|
748 |
});
|
749 |
|
assets/js/acfe.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(n){var
|
1 |
+
!function(n){var c,a;"undefined"!=typeof acf&&(acf.data.acfe={},c={},(window.acfe=c).get=function(e){return acf.data.acfe[e]||null},c.has=function(e){return null!==this.get(e)},c.set=function(e,t){return acf.data.acfe[e]=t,this},c.parseString=function(e){return e?""+e:""},c.inArray=function(e,t){return-1<(t=t.map(function(e){return c.parseString(e)})).indexOf(e)},c.getArray=function(e){return[].concat(e||[])},c.parseURL=function(e){var t={},e=(e=e||c.currentURL()).replace(/^[^\?]+\??/,"");if(!e)return t;for(var n=e.split(/[;&]/),a=0;a<n.length;a++){var i,o=n[a].split("=");o&&2===o.length&&(i=decodeURI(o[0]),o=(o=decodeURI(o[1])).replace(/\+/g," "),t[i]=o)}return t},c.currentURL=function(){return self.location.href},c.currentPath=function(){return self.location.pathname},c.currentFilename=function(){return c.currentPath().split("/").pop()},c.parentObject=function(e){return Object.getPrototypeOf(e)},c.getTextNode=function(e){var t;return e.contents().each(function(){var e=n.trim(n(this).text());if(e)return t=e,!1}),t},c.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},c.findSubmitWrap=function(e){var t=(e=e||n("form")).find("#submitdiv");return t.length||(t=e.find("#submitpost")).length||(t=e.find("p.submit").last()).length||(t=e.find(".acf-form-submit")).length?t:e},c.findSubmit=function(e){return e=e||n("form"),this.findSubmitWrap(e).find('.button, [type="submit"]')},c.findSpinner=function(e){return e=e||n("form"),this.findSubmitWrap(e).find(".spinner, .acf-spinner")},a=[],c.disableFilters=function(){a=[]},c.getFilters=function(){return a},c.isFilterEnabled=function(e){return-1<a.indexOf(e)},c.enableFilter=function(e){-1===a.indexOf(e)&&a.push(e)},c.disableFilter=function(e){for(var t=a.length;t--;)a[t]===e&&a.splice(t,1)},c.fieldExtend=function(e,t){var n=acf.getFieldType(e);return t.parent=function(){return n.prototype},t.initialize||(t.initialize=function(){n.prototype.initialize.apply(this,arguments),t.init&&t.init.apply(this,arguments),t._events&&n.prototype.addEvents.apply(this,[t._events]),t._actions&&n.prototype.addActions.apply(this,[t._actions]),t._filters&&n.prototype.addFilters.apply(this,[t._filters])}),n.extend(t)},c.isFieldKey=function(e){return"string"==typeof e&&"field_"===e.substr(0,6)},c.isGroupKey=function(e){return"string"==typeof e&&"group_"===e.substr(0,6)},c.versionCompare=function(e,t,n){let a;var i;let o=0;const c={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1};function r(e){return(e=(e=(""+e).replace(/[_\-+]/g,".")).replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".")).length?e.split("."):[-8]}function s(e){return e?isNaN(e)?c[e]||-7:parseInt(e,10):0}for(e=r(e),n=r(n),i=Math.max(e.length,n.length),a=0;a<i;a++)if(e[a]!==n[a]){if(e[a]=s(e[a]),n[a]=s(n[a]),e[a]<n[a]){o=-1;break}if(e[a]>n[a]){o=1;break}}if(!t)return o;switch(t){case">":case"gt":return 0<o;case">=":case"ge":return 0<=o;case"<=":case"le":return o<=0;case"===":case"=":case"eq":return 0===o;case"<>":case"!==":case"ne":return 0!==o;case"":case"<":case"lt":return o<0;default:return null}})}(jQuery),function(o){var n;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.Popup=acf.Model.extend({data:{title:!(n=[]),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>"),"undefined"!=typeof tinymce&&acf.isset(tinymce,"ui","FloatPanel")&&e.find(".acfe-modal-content").off("scroll.tinymcePanel").on("scroll.tinymcePanel",function(e){tinymce.ui.FloatPanel.hideAll()})},open:function(){this.$el.addClass("-open"),n.push(this),acfe.syncPopup(),acf.getFields({parent:this.$el,visible:!0}).map(function(e){acf.doAction("show_field",e,"group")},this),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"),acfe.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()}}),acfe.closePopup=function(){if(!n.length)return!1;n.pop().close()},acfe.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(),acfe.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(),acfe.closePopup())}),acfe.modal={open:function(e,t){new acfe.Popup(e,t)},close:function(){acfe.closePopup()}},new acf.Model({events:{"click a[data-acfe-modal]":"onClick","click button[data-acfe-modal]":"onClick","click input[data-acfe-modal]":"onClick"},onClick:function(e,t){e.preventDefault();var n=t.attr("data-acfe-modal")||!1,a=t.attr("data-acfe-modal-size")||"medium",i=t.attr("data-acfe-modal-title")||!1,e=t.attr("data-acfe-modal-footer")||!1;(n=!((n=n||t.parent().find(".acfe-modal").first())instanceof jQuery)?o(".acfe-modal[data-acfe-modal="+n+"]"):n).length&&(a={size:a},i&&(a.title=i),e&&(a.footer=e),new acfe.Popup(n,a))}}))}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({tooltips:{},events:{"click .acfe-field-tooltip":"clickTooltip"},clickTooltip:function(e,t){var n,a=t.attr("title");!a||(n=acf.getClosestField(t))&&(t.attr("title",""),this.tooltips[n.cid]?(this.tooltips[n.cid].hide(),t.attr("title",this.tooltips[n.cid].get("text")),this.tooltips[n.cid]=!1,acfe.versionCompare(acf.get("wp_version"),">=","5.5")&&t.removeClass("dashicons-remove").addClass("dashicons-info-outline")):(this.tooltips[n.cid]=acf.newTooltip({text:a,target:t}),acfe.versionCompare(acf.get("wp_version"),">=","5.5")&&t.removeClass("dashicons-info-outline").addClass("dashicons-remove")))}});
|
includes/acfe-field-functions.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
/**
|
7 |
* acfe_get_field_group_from_field
|
@@ -100,10 +101,10 @@ function acfe_extract_sub_field(&$layout, $name, $value){
|
|
100 |
// loop
|
101 |
foreach($layout['sub_fields'] as $k => $row){
|
102 |
|
103 |
-
if($row['name']
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
|
108 |
}
|
109 |
|
@@ -111,18 +112,15 @@ function acfe_extract_sub_field(&$layout, $name, $value){
|
|
111 |
return false;
|
112 |
}
|
113 |
|
114 |
-
//
|
115 |
$layout['sub_fields'] = array_values($layout['sub_fields']);
|
116 |
|
117 |
-
//
|
118 |
if(isset($value[$sub_field['key']])){
|
119 |
-
|
120 |
$sub_field['value'] = $value[$sub_field['key']];
|
121 |
|
122 |
}elseif(isset($sub_field['default_value'])){
|
123 |
-
|
124 |
$sub_field['value'] = $sub_field['default_value'];
|
125 |
-
|
126 |
}
|
127 |
|
128 |
return $sub_field;
|
@@ -155,3 +153,412 @@ function acfe_map_any_field($fields, $type, $callback){
|
|
155 |
return $fields;
|
156 |
|
157 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
/**
|
8 |
* acfe_get_field_group_from_field
|
101 |
// loop
|
102 |
foreach($layout['sub_fields'] as $k => $row){
|
103 |
|
104 |
+
if($row['name'] === $name){
|
105 |
+
$sub_field = acf_extract_var($layout['sub_fields'], $k);
|
106 |
+
break;
|
107 |
+
}
|
108 |
|
109 |
}
|
110 |
|
112 |
return false;
|
113 |
}
|
114 |
|
115 |
+
// reset keys
|
116 |
$layout['sub_fields'] = array_values($layout['sub_fields']);
|
117 |
|
118 |
+
// add value
|
119 |
if(isset($value[$sub_field['key']])){
|
|
|
120 |
$sub_field['value'] = $value[$sub_field['key']];
|
121 |
|
122 |
}elseif(isset($sub_field['default_value'])){
|
|
|
123 |
$sub_field['value'] = $sub_field['default_value'];
|
|
|
124 |
}
|
125 |
|
126 |
return $sub_field;
|
153 |
return $fields;
|
154 |
|
155 |
}
|
156 |
+
|
157 |
+
|
158 |
+
/**
|
159 |
+
* acfe_query_field
|
160 |
+
*
|
161 |
+
* @param $args
|
162 |
+
*
|
163 |
+
* @return false|mixed
|
164 |
+
*/
|
165 |
+
function acfe_query_field($args = array()){
|
166 |
+
|
167 |
+
// default limit
|
168 |
+
$args = wp_parse_args($args, array(
|
169 |
+
'limit' => 1
|
170 |
+
));
|
171 |
+
|
172 |
+
// query
|
173 |
+
$fields = acfe_query_fields($args);
|
174 |
+
|
175 |
+
// return
|
176 |
+
return current($fields);
|
177 |
+
|
178 |
+
}
|
179 |
+
|
180 |
+
|
181 |
+
/**
|
182 |
+
* acfe_query_fields
|
183 |
+
*
|
184 |
+
* @param $args
|
185 |
+
*
|
186 |
+
* @return array
|
187 |
+
*/
|
188 |
+
function acfe_query_fields($args = array()){
|
189 |
+
|
190 |
+
// vars
|
191 |
+
$storage = array();
|
192 |
+
$fields = array();
|
193 |
+
|
194 |
+
// validate query
|
195 |
+
$args = wp_parse_args($args, array(
|
196 |
+
'query' => array(), // main query, should be compatible with wp_list_filter()
|
197 |
+
'context' => acf_get_field_groups(), // can be field/field group array, or field/field group key, array of fields or field groups etc...
|
198 |
+
'orderby' => false, // orderby list
|
199 |
+
'order' => 'ASC', // order list
|
200 |
+
'limit' => 0, // limit list
|
201 |
+
'offset' => 0, // offset list
|
202 |
+
'level' => -1, // maximum allowed field level (-1 = any, 0 = only top level, 1 = max 1 sub level etc...)
|
203 |
+
'field' => false, // list pluck field
|
204 |
+
'filters' => true, // enable/disable acf_filters (such as clone, local)
|
205 |
+
|
206 |
+
// internal args
|
207 |
+
'_query' => false,
|
208 |
+
'_depth' => 0,
|
209 |
+
'_level' => 0,
|
210 |
+
'_filters' => false,
|
211 |
+
));
|
212 |
+
|
213 |
+
// validate context
|
214 |
+
$args['context'] = acf_get_array($args['context']);
|
215 |
+
|
216 |
+
// validate query
|
217 |
+
$args['query'] = acf_get_array($args['query']);
|
218 |
+
|
219 |
+
// top-level call
|
220 |
+
if(!$args['_depth']){
|
221 |
+
|
222 |
+
// disable acf filters
|
223 |
+
if(!$args['filters']){
|
224 |
+
$args['_filters'] = acf_disable_filters();
|
225 |
+
}
|
226 |
+
|
227 |
+
}
|
228 |
+
|
229 |
+
// process query
|
230 |
+
if($args['_query'] === false){
|
231 |
+
|
232 |
+
$_query = array();
|
233 |
+
|
234 |
+
/*
|
235 |
+
* $_query = array('type' => 'text');
|
236 |
+
|
237 |
+
* $_query = array(
|
238 |
+
* array('type' => 'text'),
|
239 |
+
* array('type' => 'image'),
|
240 |
+
* );
|
241 |
+
|
242 |
+
* $_query = array(
|
243 |
+
* 'relation' => 'AND',
|
244 |
+
* array(
|
245 |
+
* 'type' => 'text',
|
246 |
+
* 'name' => 'my_text'
|
247 |
+
* )
|
248 |
+
* );
|
249 |
+
|
250 |
+
* $_query = array(
|
251 |
+
* array(
|
252 |
+
* 'relation' => 'AND',
|
253 |
+
* array(
|
254 |
+
* 'type' => 'text',
|
255 |
+
* 'name' => 'my_text'
|
256 |
+
* )
|
257 |
+
* ),
|
258 |
+
* array(
|
259 |
+
* 'relation' => 'AND',
|
260 |
+
* array(
|
261 |
+
* 'type' => 'image',
|
262 |
+
* 'name' => 'my_image'
|
263 |
+
* )
|
264 |
+
* ),
|
265 |
+
* );
|
266 |
+
*/
|
267 |
+
|
268 |
+
/*
|
269 |
+
* $_query = array(
|
270 |
+
* array('type' => 'text'),
|
271 |
+
* array('type' => 'image'),
|
272 |
+
* )
|
273 |
+
*/
|
274 |
+
if(acf_is_associative_array($args['query'])){
|
275 |
+
|
276 |
+
if(!isset($args['query']['relation'])){
|
277 |
+
|
278 |
+
$_query[] = array(
|
279 |
+
'relation' => 'AND',
|
280 |
+
$args['query']
|
281 |
+
);
|
282 |
+
|
283 |
+
}else{
|
284 |
+
|
285 |
+
if(isset($args['query'][0]) && is_array($args['query'][0])){
|
286 |
+
|
287 |
+
$_query[] = array(
|
288 |
+
'relation' => $args['query']['relation'],
|
289 |
+
$args['query'][0]
|
290 |
+
);
|
291 |
+
|
292 |
+
}
|
293 |
+
|
294 |
+
}
|
295 |
+
|
296 |
+
}else{
|
297 |
+
|
298 |
+
foreach($args['query'] as $q){
|
299 |
+
|
300 |
+
if(!isset($q['relation'])){
|
301 |
+
|
302 |
+
if(isset($q[0]) && is_array($q[0])){
|
303 |
+
|
304 |
+
if(!empty($q[0])){
|
305 |
+
$_query[] = array(
|
306 |
+
'relation' => 'AND',
|
307 |
+
current($q)
|
308 |
+
);
|
309 |
+
}
|
310 |
+
|
311 |
+
}elseif(!empty($q)){
|
312 |
+
|
313 |
+
$_query[] = array(
|
314 |
+
'relation' => 'AND',
|
315 |
+
$q
|
316 |
+
);
|
317 |
+
|
318 |
+
}
|
319 |
+
|
320 |
+
}else{
|
321 |
+
|
322 |
+
if(isset($q[0]) && is_array($q[0]) && !empty($q[0])){
|
323 |
+
|
324 |
+
$_query[] = array(
|
325 |
+
'relation' => $q['relation'],
|
326 |
+
$q[0]
|
327 |
+
);
|
328 |
+
|
329 |
+
}
|
330 |
+
|
331 |
+
}
|
332 |
+
|
333 |
+
}
|
334 |
+
|
335 |
+
}
|
336 |
+
|
337 |
+
// empty query = all
|
338 |
+
if(empty($_query)){
|
339 |
+
|
340 |
+
$_query[] = array(
|
341 |
+
'relation' => 'AND',
|
342 |
+
array()
|
343 |
+
);
|
344 |
+
|
345 |
+
}
|
346 |
+
|
347 |
+
// assign
|
348 |
+
$args['_query'] = $_query;
|
349 |
+
|
350 |
+
}
|
351 |
+
|
352 |
+
// $field
|
353 |
+
// $field_group
|
354 |
+
if(acf_is_associative_array($args['context'])){
|
355 |
+
|
356 |
+
// field group
|
357 |
+
if(acf_is_field_group($args['context'])){
|
358 |
+
$fields = acf_get_fields($args['context']);
|
359 |
+
|
360 |
+
// field
|
361 |
+
}else{
|
362 |
+
|
363 |
+
foreach($args['_query'] as $q){
|
364 |
+
$storage = array_merge($storage, wp_list_filter(array($args['context']), $q[0], $q['relation']));
|
365 |
+
}
|
366 |
+
|
367 |
+
// query sub fields
|
368 |
+
if(isset($args['context']['sub_fields'])){
|
369 |
+
$args['_level']++;
|
370 |
+
$fields = acf_get_fields($args['context']);
|
371 |
+
}
|
372 |
+
|
373 |
+
}
|
374 |
+
|
375 |
+
if($fields){
|
376 |
+
foreach($fields as $field){
|
377 |
+
|
378 |
+
foreach($args['_query'] as $q){
|
379 |
+
$storage = array_merge($storage, wp_list_filter(array($field), $q[0], $q['relation']));
|
380 |
+
}
|
381 |
+
|
382 |
+
// query sub fields
|
383 |
+
if(isset($field['sub_fields'])){
|
384 |
+
|
385 |
+
if($args['level'] === -1 || ($args['level'] > 0 && $args['_level'] < $args['level'])){
|
386 |
+
|
387 |
+
// sub query
|
388 |
+
$_args = $args;
|
389 |
+
$_args['context'] = $field;
|
390 |
+
$_args['_depth']++;
|
391 |
+
|
392 |
+
$storage = array_merge($storage, acfe_query_fields($_args));
|
393 |
+
|
394 |
+
}
|
395 |
+
|
396 |
+
}
|
397 |
+
|
398 |
+
}
|
399 |
+
}
|
400 |
+
|
401 |
+
// array(field_abcdef123456, field_abcdef123456)
|
402 |
+
// array(group_abcdef123456, group_abcdef123456)
|
403 |
+
// array($field, $field)
|
404 |
+
// array($field_group, $field_group)
|
405 |
+
}else{
|
406 |
+
|
407 |
+
foreach($args['context'] as $context){
|
408 |
+
|
409 |
+
// set new sub context
|
410 |
+
$_args = $args;
|
411 |
+
$_args['_depth']++;
|
412 |
+
|
413 |
+
// array
|
414 |
+
if(is_array($context)){
|
415 |
+
|
416 |
+
$_args['context'] = $context;
|
417 |
+
|
418 |
+
// numeric
|
419 |
+
}elseif(is_numeric($context)){
|
420 |
+
|
421 |
+
$post_type = get_post_type($context);
|
422 |
+
|
423 |
+
if($post_type === 'acf-field-group'){
|
424 |
+
$_args['context'] = acf_get_field_group($context);
|
425 |
+
|
426 |
+
}elseif($post_type === 'acf-field'){
|
427 |
+
$_args['context'] = acf_get_field($context);
|
428 |
+
}
|
429 |
+
|
430 |
+
// string
|
431 |
+
}else{
|
432 |
+
|
433 |
+
// group_abcdef123456
|
434 |
+
if(acf_is_field_group_key($context)){
|
435 |
+
$_args['context'] = acf_get_fields($context);
|
436 |
+
|
437 |
+
// field_abcdef123456
|
438 |
+
}else{
|
439 |
+
$_args['context'] = acf_get_field($context);
|
440 |
+
}
|
441 |
+
|
442 |
+
}
|
443 |
+
|
444 |
+
// loop query
|
445 |
+
$storage = array_merge($storage, acfe_query_fields($_args));
|
446 |
+
|
447 |
+
}
|
448 |
+
|
449 |
+
}
|
450 |
+
|
451 |
+
// unique array
|
452 |
+
// make sure returned fields are unique (based on field key)
|
453 |
+
$temp = array();
|
454 |
+
$storage = array_filter($storage, function($field) use(&$temp){
|
455 |
+
if(in_array($field['key'], $temp)){
|
456 |
+
return false;
|
457 |
+
}else{
|
458 |
+
$temp[] = $field['key'];
|
459 |
+
return true;
|
460 |
+
}
|
461 |
+
});
|
462 |
+
|
463 |
+
// reorder
|
464 |
+
$storage = array_values($storage);
|
465 |
+
|
466 |
+
// top-level call
|
467 |
+
if(!$args['_depth']){
|
468 |
+
|
469 |
+
// order
|
470 |
+
if($args['orderby']){
|
471 |
+
$args['order'] = $args['order'] === 'ASC' ? 'ASC' : 'DESC';
|
472 |
+
$storage = wp_list_sort($storage, $args['orderby'], $args['order']);
|
473 |
+
}
|
474 |
+
|
475 |
+
// field
|
476 |
+
if($args['field']){
|
477 |
+
$storage = wp_list_pluck($storage, $args['field']);
|
478 |
+
}
|
479 |
+
|
480 |
+
// offset
|
481 |
+
if($args['offset'] > 0){
|
482 |
+
$storage = array_slice($storage, $args['offset']);
|
483 |
+
}
|
484 |
+
|
485 |
+
// limit
|
486 |
+
if($args['limit'] > 0){
|
487 |
+
$storage = array_slice($storage, 0, $args['limit']);
|
488 |
+
}
|
489 |
+
|
490 |
+
// re-enable acf filters
|
491 |
+
if(!$args['filters']){
|
492 |
+
acf_enable_filters($args['_filters']);
|
493 |
+
}
|
494 |
+
|
495 |
+
}
|
496 |
+
|
497 |
+
// return
|
498 |
+
return $storage;
|
499 |
+
|
500 |
+
}
|
501 |
+
|
502 |
+
/**
|
503 |
+
* acfe_get_fields_details_recursive
|
504 |
+
*
|
505 |
+
* @param $fields
|
506 |
+
*
|
507 |
+
* @return array|mixed
|
508 |
+
*/
|
509 |
+
function acfe_get_fields_details_recursive($fields){
|
510 |
+
|
511 |
+
$fields = acf_get_array($fields);
|
512 |
+
$return = array();
|
513 |
+
|
514 |
+
foreach($fields as $field){
|
515 |
+
|
516 |
+
$ancestors = isset($field['ancestors']) ? $field['ancestors'] : count(acf_get_field_ancestors($field));
|
517 |
+
|
518 |
+
$label = '';
|
519 |
+
$label = str_repeat('- ', $ancestors) . $label;
|
520 |
+
$label .= !empty($field['label']) ? $field['label'] : '(' . __('no label', 'acf') . ')';
|
521 |
+
$label .= $field['required'] ? ' <span class="acf-required">*</span>' : '';
|
522 |
+
|
523 |
+
$field_type = acf_get_field_type($field['type']);
|
524 |
+
$type = isset($field_type->label) ? $field_type->label : '-';
|
525 |
+
|
526 |
+
$return[] = array(
|
527 |
+
'label' => $label,
|
528 |
+
'name' => $field['name'],
|
529 |
+
'key' => $field['key'],
|
530 |
+
'type' => $type,
|
531 |
+
);
|
532 |
+
|
533 |
+
if(acf_maybe_get($field, 'sub_fields')){
|
534 |
+
$return = array_merge($return, acfe_get_fields_details_recursive($field['sub_fields']));
|
535 |
+
}
|
536 |
+
|
537 |
+
}
|
538 |
+
|
539 |
+
return $return;
|
540 |
+
|
541 |
+
}
|
542 |
+
|
543 |
+
|
544 |
+
/**
|
545 |
+
* acfe_get_pretty_field_label
|
546 |
+
*
|
547 |
+
* @param $field
|
548 |
+
* @param $with_key
|
549 |
+
*
|
550 |
+
* @return mixed|string|null
|
551 |
+
*/
|
552 |
+
function acfe_get_pretty_field_label($field, $with_key = false){
|
553 |
+
|
554 |
+
// vars
|
555 |
+
$name = isset($field['_name']) ? $field['_name'] : $field['name'];
|
556 |
+
$label = acf_maybe_get($field, 'label', $name);
|
557 |
+
|
558 |
+
if($with_key){
|
559 |
+
$label .= " ({$field['key']})";
|
560 |
+
}
|
561 |
+
|
562 |
+
return $label;
|
563 |
+
|
564 |
+
}
|
includes/acfe-field-group-functions.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
/**
|
7 |
* acfe_get_post_id_field_groups
|
@@ -32,6 +33,11 @@ function acfe_get_post_id_field_groups($post_id = 0){
|
|
32 |
$post_type = '';
|
33 |
$taxonomy = '';
|
34 |
|
|
|
|
|
|
|
|
|
|
|
35 |
// override attachment
|
36 |
if($type === 'post' && acfe_starts_with($post_id, 'attachment_')){
|
37 |
|
@@ -260,8 +266,9 @@ function acfe_get_locations_array($locations){
|
|
260 |
$return = array();
|
261 |
$types = acf_get_location_rule_types();
|
262 |
|
263 |
-
if(!$locations || !$types)
|
264 |
return $return;
|
|
|
265 |
|
266 |
$icon_default = 'admin-generic';
|
267 |
|
@@ -321,15 +328,16 @@ function acfe_get_locations_array($locations){
|
|
321 |
|
322 |
foreach($icons as $_icon => $icon_slugs){
|
323 |
|
324 |
-
if(!in_array($slug, $icon_slugs))
|
325 |
continue;
|
|
|
326 |
|
327 |
$icon = $_icon;
|
328 |
break;
|
329 |
|
330 |
}
|
331 |
|
332 |
-
$rules[$slug] = array(
|
333 |
'name' => $slug,
|
334 |
'label' => $name,
|
335 |
'icon' => $icon
|
@@ -341,11 +349,12 @@ function acfe_get_locations_array($locations){
|
|
341 |
|
342 |
foreach($locations as $group){
|
343 |
|
344 |
-
if(!acf_maybe_get($rules, $group['param']) || !acf_maybe_get($group, 'value'))
|
345 |
continue;
|
|
|
346 |
|
347 |
// init
|
348 |
-
$rule = $rules[$group['param']];
|
349 |
|
350 |
// vars
|
351 |
$icon = $rule['icon'];
|
@@ -368,15 +377,14 @@ function acfe_get_locations_array($locations){
|
|
368 |
|
369 |
foreach($values as $value_slug => $value_name){
|
370 |
|
371 |
-
if($value != $value_slug)
|
372 |
continue;
|
|
|
373 |
|
374 |
$value = $value_name;
|
375 |
|
376 |
if(is_array($value_name) && isset($value_name[$value_slug])){
|
377 |
-
|
378 |
$value = $value_name[$value_slug];
|
379 |
-
|
380 |
}
|
381 |
|
382 |
break;
|
@@ -401,16 +409,16 @@ function acfe_get_locations_array($locations){
|
|
401 |
|
402 |
}
|
403 |
|
404 |
-
$html = '<span ' .
|
405 |
|
406 |
$return[] = array(
|
407 |
-
'html'
|
408 |
-
'icon'
|
409 |
-
'title'
|
410 |
-
'name'
|
411 |
-
'label'
|
412 |
-
'operator'
|
413 |
-
'value'
|
414 |
);
|
415 |
|
416 |
}
|
@@ -437,9 +445,7 @@ function acfe_render_field_group_locations_html($field_group){
|
|
437 |
$array = array();
|
438 |
|
439 |
foreach($html as $location){
|
440 |
-
|
441 |
$array[] = $location['html'];
|
442 |
-
|
443 |
}
|
444 |
|
445 |
echo implode(' ', $array);
|
@@ -448,4 +454,99 @@ function acfe_render_field_group_locations_html($field_group){
|
|
448 |
|
449 |
}
|
450 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
/**
|
8 |
* acfe_get_post_id_field_groups
|
33 |
$post_type = '';
|
34 |
$taxonomy = '';
|
35 |
|
36 |
+
// check post id is attachment
|
37 |
+
if($type === 'post' && get_post_type($id) === 'attachment'){
|
38 |
+
$post_id = "attachment_{$id}";
|
39 |
+
}
|
40 |
+
|
41 |
// override attachment
|
42 |
if($type === 'post' && acfe_starts_with($post_id, 'attachment_')){
|
43 |
|
266 |
$return = array();
|
267 |
$types = acf_get_location_rule_types();
|
268 |
|
269 |
+
if(!$locations || !$types){
|
270 |
return $return;
|
271 |
+
}
|
272 |
|
273 |
$icon_default = 'admin-generic';
|
274 |
|
328 |
|
329 |
foreach($icons as $_icon => $icon_slugs){
|
330 |
|
331 |
+
if(!in_array($slug, $icon_slugs)){
|
332 |
continue;
|
333 |
+
}
|
334 |
|
335 |
$icon = $_icon;
|
336 |
break;
|
337 |
|
338 |
}
|
339 |
|
340 |
+
$rules[ $slug ] = array(
|
341 |
'name' => $slug,
|
342 |
'label' => $name,
|
343 |
'icon' => $icon
|
349 |
|
350 |
foreach($locations as $group){
|
351 |
|
352 |
+
if(!acf_maybe_get($rules, $group['param']) || !acf_maybe_get($group, 'value')){
|
353 |
continue;
|
354 |
+
}
|
355 |
|
356 |
// init
|
357 |
+
$rule = $rules[ $group['param'] ];
|
358 |
|
359 |
// vars
|
360 |
$icon = $rule['icon'];
|
377 |
|
378 |
foreach($values as $value_slug => $value_name){
|
379 |
|
380 |
+
if($value != $value_slug){
|
381 |
continue;
|
382 |
+
}
|
383 |
|
384 |
$value = $value_name;
|
385 |
|
386 |
if(is_array($value_name) && isset($value_name[$value_slug])){
|
|
|
387 |
$value = $value_name[$value_slug];
|
|
|
388 |
}
|
389 |
|
390 |
break;
|
409 |
|
410 |
}
|
411 |
|
412 |
+
$html = '<span ' . acf_esc_attrs($atts) . '></span>';
|
413 |
|
414 |
$return[] = array(
|
415 |
+
'html' => $html,
|
416 |
+
'icon' => $icon,
|
417 |
+
'title' => $title,
|
418 |
+
'name' => $name,
|
419 |
+
'label' => $label,
|
420 |
+
'operator' => $operator,
|
421 |
+
'value' => $value,
|
422 |
);
|
423 |
|
424 |
}
|
445 |
$array = array();
|
446 |
|
447 |
foreach($html as $location){
|
|
|
448 |
$array[] = $location['html'];
|
|
|
449 |
}
|
450 |
|
451 |
echo implode(' ', $array);
|
454 |
|
455 |
}
|
456 |
|
457 |
+
}
|
458 |
+
|
459 |
+
/**
|
460 |
+
* acfe_add_field_groups_metabox
|
461 |
+
*
|
462 |
+
* @param $field_groups
|
463 |
+
*/
|
464 |
+
function acfe_add_field_groups_metabox($args = array()){
|
465 |
+
|
466 |
+
$args = wp_parse_args($args, array(
|
467 |
+
'id' => 'acfe-field-groups',
|
468 |
+
'title' => __('Field Groups', 'acfe'),
|
469 |
+
'screen' => '',
|
470 |
+
'context' => 'normal',
|
471 |
+
'priority' => 'default',
|
472 |
+
'field_groups' => array(),
|
473 |
+
));
|
474 |
+
|
475 |
+
add_meta_box($args['id'], $args['title'], function($object, $data) use($args){
|
476 |
+
|
477 |
+
$data = $data['args'];
|
478 |
+
|
479 |
+
foreach($data as $field_group){
|
480 |
+
|
481 |
+
$fields = acf_get_fields($field_group);
|
482 |
+
$url = $field_group['ID'] ? admin_url("post.php?post={$field_group['ID']}&action=edit") : false;
|
483 |
+
$edit = $url ? '(<a href="' . $url . '">' . __('edit'). '</a>)' : '';
|
484 |
+
?>
|
485 |
+
|
486 |
+
<div class="acf-field">
|
487 |
+
|
488 |
+
<div class="acf-label">
|
489 |
+
<label><?php echo $field_group['title']; ?> <?php echo $edit; ?></label>
|
490 |
+
<p class="description"><code style="font-size:12px;"><?php echo $field_group['key']; ?></code></p>
|
491 |
+
</div>
|
492 |
+
|
493 |
+
<div class="acf-input">
|
494 |
+
<?php if(!empty($fields)){ ?>
|
495 |
+
|
496 |
+
<?php $details = acfe_get_fields_details_recursive($fields); ?>
|
497 |
+
|
498 |
+
<table class="acf-table">
|
499 |
+
<thead>
|
500 |
+
<th class="acf-th" width="25%"><strong>Label</strong></th>
|
501 |
+
<th class="acf-th" width="25%"><strong>Name</strong></th>
|
502 |
+
<th class="acf-th" width="25%"><strong>Key</strong></th>
|
503 |
+
<th class="acf-th" width="25%"><strong>Type</strong></th>
|
504 |
+
</thead>
|
505 |
+
|
506 |
+
<tbody>
|
507 |
+
<?php foreach($details as $field){ ?>
|
508 |
+
|
509 |
+
<?php
|
510 |
+
$field_name = $field['name'] ? '<code style="font-size:12px;">' . $field['name'] . '</code>' : '';
|
511 |
+
$field_key = $field['key'] ? '<code style="font-size:12px;">' . $field['key'] . '</code>' : '';
|
512 |
+
?>
|
513 |
+
|
514 |
+
<tr class="acf-row">
|
515 |
+
<td width="25%"><?php echo $field['label']; ?></td>
|
516 |
+
<td width="25%"><?php echo $field_name; ?></td>
|
517 |
+
<td width="25%"><?php echo $field_key; ?></td>
|
518 |
+
<td width="25%"><?php echo $field['type']; ?></td>
|
519 |
+
</tr>
|
520 |
+
<?php } ?>
|
521 |
+
</tbody>
|
522 |
+
</table>
|
523 |
+
|
524 |
+
<?php } ?>
|
525 |
+
</div>
|
526 |
+
|
527 |
+
</div>
|
528 |
+
|
529 |
+
<?php } ?>
|
530 |
+
|
531 |
+
<script type="text/javascript">
|
532 |
+
(function($){
|
533 |
+
|
534 |
+
if(typeof acf === 'undefined'){
|
535 |
+
return;
|
536 |
+
}
|
537 |
+
|
538 |
+
acf.newPostbox(<?php echo wp_json_encode(array(
|
539 |
+
'id' => $args['id'],
|
540 |
+
'key' => '',
|
541 |
+
'style' => 'default',
|
542 |
+
'label' => 'left',
|
543 |
+
'edit' => false
|
544 |
+
)); ?>);
|
545 |
+
|
546 |
+
})(jQuery);
|
547 |
+
</script>
|
548 |
+
<?php
|
549 |
+
|
550 |
+
}, $args['screen'], $args['context'], $args['priority'], $args['field_groups']);
|
551 |
+
|
552 |
}
|
includes/acfe-file-functions.php
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
/**
|
7 |
* acfe_get_abs_path_to_url
|
8 |
*
|
9 |
-
*
|
10 |
*
|
11 |
* @param string $path
|
12 |
*
|
@@ -39,8 +40,9 @@ function acfe_locate_file_url($filenames){
|
|
39 |
|
40 |
foreach((array) $filenames as $filename){
|
41 |
|
42 |
-
if(!$filename)
|
43 |
continue;
|
|
|
44 |
|
45 |
// Direct URL: https://www.domain.com/folder/file.js
|
46 |
if(stripos($filename, 'http://') === 0 || stripos($filename, 'https://') === 0 || stripos($filename, '//') === 0){
|
@@ -117,8 +119,9 @@ function acfe_locate_file_path($filenames){
|
|
117 |
|
118 |
foreach((array) $filenames as $filename){
|
119 |
|
120 |
-
if(!$filename)
|
121 |
continue;
|
|
|
122 |
|
123 |
$_filename = ltrim($filename, '/\\');
|
124 |
$abspath = untrailingslashit(ABSPATH);
|
@@ -167,4 +170,91 @@ function acfe_locate_file_path($filenames){
|
|
167 |
|
168 |
return $located;
|
169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
/**
|
8 |
* acfe_get_abs_path_to_url
|
9 |
*
|
10 |
+
* Converts "/url" to "https://www.domain.com/url"
|
11 |
*
|
12 |
* @param string $path
|
13 |
*
|
40 |
|
41 |
foreach((array) $filenames as $filename){
|
42 |
|
43 |
+
if(!$filename){
|
44 |
continue;
|
45 |
+
}
|
46 |
|
47 |
// Direct URL: https://www.domain.com/folder/file.js
|
48 |
if(stripos($filename, 'http://') === 0 || stripos($filename, 'https://') === 0 || stripos($filename, '//') === 0){
|
119 |
|
120 |
foreach((array) $filenames as $filename){
|
121 |
|
122 |
+
if(!$filename){
|
123 |
continue;
|
124 |
+
}
|
125 |
|
126 |
$_filename = ltrim($filename, '/\\');
|
127 |
$abspath = untrailingslashit(ABSPATH);
|
170 |
|
171 |
return $located;
|
172 |
|
173 |
+
}
|
174 |
+
|
175 |
+
|
176 |
+
/**
|
177 |
+
* acfe_get_human_readable_location
|
178 |
+
*
|
179 |
+
* Returns "Located in theme: /acf-json/group_abcdef123456.json"
|
180 |
+
* Returns "Located in plugin: /my-plugin/group_abcdef123456.json"
|
181 |
+
* Returns "Located in: /group_abcdef123456.json"
|
182 |
+
*
|
183 |
+
* @param $path
|
184 |
+
* @param $prefix
|
185 |
+
* @param $new_line
|
186 |
+
*
|
187 |
+
* @return string
|
188 |
+
*/
|
189 |
+
function acfe_get_human_readable_location($path, $prefix = true, $new_line = true){
|
190 |
+
|
191 |
+
// vars
|
192 |
+
$located = '';
|
193 |
+
$path = wp_normalize_path($path);
|
194 |
+
$file_exists = file_exists($path);
|
195 |
+
|
196 |
+
// paths to check
|
197 |
+
$stylesheet_path = wp_normalize_path(get_stylesheet_directory());
|
198 |
+
$template_path = wp_normalize_path(get_template_directory());
|
199 |
+
$wp_plugin_dir = wp_normalize_path(WP_PLUGIN_DIR);
|
200 |
+
$abspath = wp_normalize_path(ABSPATH);
|
201 |
+
|
202 |
+
// prefix labels
|
203 |
+
$prefix_label = array(
|
204 |
+
__('Located', 'acfe'),
|
205 |
+
__('Not found', 'acfe'),
|
206 |
+
);
|
207 |
+
|
208 |
+
if(is_array($prefix)){
|
209 |
+
$prefix_label = $prefix;
|
210 |
+
}
|
211 |
+
|
212 |
+
if(strpos($path, $stylesheet_path) !== false){
|
213 |
+
|
214 |
+
$rel_path = str_replace($stylesheet_path, '', $path);
|
215 |
+
|
216 |
+
if($prefix){
|
217 |
+
$located .= ($file_exists ? $prefix_label[0] : $prefix_label[1]) . ' ';
|
218 |
+
}
|
219 |
+
|
220 |
+
$located .= __('in theme:', 'acfe') . ($new_line ? "<br/>" : ' ');
|
221 |
+
$located .= $rel_path;
|
222 |
+
|
223 |
+
}elseif(strpos($path, $template_path) !== false){
|
224 |
+
|
225 |
+
$rel_path = str_replace($template_path, '', $path);
|
226 |
+
|
227 |
+
if($prefix){
|
228 |
+
$located .= ($file_exists ? $prefix_label[0] : $prefix_label[1]) . ' ';
|
229 |
+
}
|
230 |
+
|
231 |
+
$located .= __('in theme:', 'acfe') . ($new_line ? "<br/>" : ' ');
|
232 |
+
$located .= $rel_path;
|
233 |
+
|
234 |
+
}elseif(strpos($path, $wp_plugin_dir) !== false){
|
235 |
+
|
236 |
+
$rel_path = str_replace($wp_plugin_dir, '', $path);
|
237 |
+
|
238 |
+
if($prefix){
|
239 |
+
$located .= ($file_exists ? $prefix_label[0] : $prefix_label[1]) . ' ';
|
240 |
+
}
|
241 |
+
|
242 |
+
$located .= __('in plugin:', 'acfe') . ($new_line ? "<br/>" : ' ');
|
243 |
+
$located .= $rel_path;
|
244 |
+
|
245 |
+
}else{
|
246 |
+
|
247 |
+
$rel_file = str_replace($abspath, '', $path);
|
248 |
+
|
249 |
+
if($prefix){
|
250 |
+
$located .= ($file_exists ? $prefix_label[0] : $prefix_label[1]) . ' ';
|
251 |
+
}
|
252 |
+
|
253 |
+
$located .= __('in:', 'acfe') . ($new_line ? "<br/>" : ' ');
|
254 |
+
$located .= $rel_file;
|
255 |
+
|
256 |
+
}
|
257 |
+
|
258 |
+
return $located;
|
259 |
+
|
260 |
}
|
includes/acfe-form-functions.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
/**
|
7 |
* acfe_get_pretty_forms
|
@@ -35,7 +36,8 @@ function acfe_get_pretty_forms($forms = array()){
|
|
35 |
|
36 |
$form_name = get_the_title($form_id);
|
37 |
|
38 |
-
|
|
|
39 |
|
40 |
}
|
41 |
|
@@ -54,13 +56,15 @@ function acfe_get_pretty_forms($forms = array()){
|
|
54 |
*/
|
55 |
function acfe_form_decrypt_args(){
|
56 |
|
57 |
-
if(!acf_maybe_get_POST('_acf_form'))
|
58 |
return false;
|
|
|
59 |
|
60 |
$form = json_decode(acf_decrypt($_POST['_acf_form']), true);
|
61 |
|
62 |
-
if(empty($form))
|
63 |
return false;
|
|
|
64 |
|
65 |
return $form;
|
66 |
|
@@ -98,12 +102,12 @@ function acfe_is_form_success($form_name = false){
|
|
98 |
if(!acf_is_filter_enabled('acfe/form/is_success')){
|
99 |
?>
|
100 |
<script>
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
</script>
|
105 |
<?php
|
106 |
-
|
107 |
// only once
|
108 |
acf_enable_filter('acfe/form/is_success');
|
109 |
}
|
@@ -174,9 +178,7 @@ function acfe_form_unique_action_id($form, $type){
|
|
174 |
* @return mixed
|
175 |
*/
|
176 |
function acfe_form_get_actions(){
|
177 |
-
|
178 |
return get_query_var('acfe_form_actions', array());
|
179 |
-
|
180 |
}
|
181 |
|
182 |
/**
|
@@ -194,8 +196,9 @@ function acfe_form_get_action($name = false, $key = false){
|
|
194 |
$actions = acfe_form_get_actions();
|
195 |
|
196 |
// No action
|
197 |
-
if(empty($actions))
|
198 |
return false;
|
|
|
199 |
|
200 |
// Action name
|
201 |
if(!empty($name)){
|
@@ -204,8 +207,9 @@ function acfe_form_get_action($name = false, $key = false){
|
|
204 |
$return = end($actions);
|
205 |
}
|
206 |
|
207 |
-
if($key !== false || is_numeric($key))
|
208 |
$return = acf_maybe_get($return, $key, false);
|
|
|
209 |
|
210 |
return $return;
|
211 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
/**
|
8 |
* acfe_get_pretty_forms
|
36 |
|
37 |
$form_name = get_the_title($form_id);
|
38 |
|
39 |
+
// todo: use form name instead of ID
|
40 |
+
$return[ $form_id ] = $form_name;
|
41 |
|
42 |
}
|
43 |
|
56 |
*/
|
57 |
function acfe_form_decrypt_args(){
|
58 |
|
59 |
+
if(!acf_maybe_get_POST('_acf_form')){
|
60 |
return false;
|
61 |
+
}
|
62 |
|
63 |
$form = json_decode(acf_decrypt($_POST['_acf_form']), true);
|
64 |
|
65 |
+
if(empty($form)){
|
66 |
return false;
|
67 |
+
}
|
68 |
|
69 |
return $form;
|
70 |
|
102 |
if(!acf_is_filter_enabled('acfe/form/is_success')){
|
103 |
?>
|
104 |
<script>
|
105 |
+
if(window.history.replaceState){
|
106 |
+
window.history.replaceState(null, null, window.location.href);
|
107 |
+
}
|
108 |
</script>
|
109 |
<?php
|
110 |
+
|
111 |
// only once
|
112 |
acf_enable_filter('acfe/form/is_success');
|
113 |
}
|
178 |
* @return mixed
|
179 |
*/
|
180 |
function acfe_form_get_actions(){
|
|
|
181 |
return get_query_var('acfe_form_actions', array());
|
|
|
182 |
}
|
183 |
|
184 |
/**
|
196 |
$actions = acfe_form_get_actions();
|
197 |
|
198 |
// No action
|
199 |
+
if(empty($actions)){
|
200 |
return false;
|
201 |
+
}
|
202 |
|
203 |
// Action name
|
204 |
if(!empty($name)){
|
207 |
$return = end($actions);
|
208 |
}
|
209 |
|
210 |
+
if($key !== false || is_numeric($key)){
|
211 |
$return = acf_maybe_get($return, $key, false);
|
212 |
+
}
|
213 |
|
214 |
return $return;
|
215 |
|
includes/acfe-helper-functions.php
CHANGED
@@ -1,7 +1,92 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
/**
|
7 |
* acfe_maybe_get
|
@@ -35,9 +120,7 @@ function acfe_maybe_get($array = array(), $key = 0, $default = null){
|
|
35 |
* @return mixed|null
|
36 |
*/
|
37 |
function acfe_maybe_get_REQUEST($key = '', $default = null){
|
38 |
-
|
39 |
-
return isset($_REQUEST[$key]) ? $_REQUEST[$key] : $default;
|
40 |
-
|
41 |
}
|
42 |
|
43 |
/**
|
@@ -77,11 +160,9 @@ function acfe_array_keys_r($array){
|
|
77 |
$keys = array_keys($array);
|
78 |
|
79 |
foreach($array as $i){
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
$keys = array_merge($keys, acfe_array_keys_r($i));
|
84 |
-
|
85 |
}
|
86 |
|
87 |
return $keys;
|
@@ -101,7 +182,7 @@ function acfe_array_keys_r($array){
|
|
101 |
function acfe_starts_with($haystack, $needle){
|
102 |
|
103 |
$length = strlen($needle);
|
104 |
-
return
|
105 |
|
106 |
}
|
107 |
|
@@ -119,9 +200,112 @@ function acfe_ends_with($haystack, $needle){
|
|
119 |
|
120 |
$length = strlen($needle);
|
121 |
|
122 |
-
if($length
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
|
124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
|
126 |
}
|
127 |
|
@@ -137,25 +321,48 @@ function acfe_ends_with($haystack, $needle){
|
|
137 |
*
|
138 |
* @return array
|
139 |
*/
|
140 |
-
function acfe_array_insert_before($
|
141 |
|
142 |
-
if(!
|
143 |
return $array;
|
144 |
}
|
145 |
|
146 |
-
$
|
|
|
147 |
|
148 |
foreach($array as $k => $value){
|
149 |
|
150 |
if($k === $key){
|
151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
}
|
|
|
|
|
|
|
153 |
|
154 |
-
|
|
|
|
|
155 |
|
156 |
}
|
157 |
|
158 |
-
return $
|
159 |
|
160 |
}
|
161 |
|
@@ -171,25 +378,48 @@ function acfe_array_insert_before($key, array &$array, $new_key, $new_value){
|
|
171 |
*
|
172 |
* @return array
|
173 |
*/
|
174 |
-
function acfe_array_insert_after($
|
175 |
|
176 |
-
if(!
|
177 |
return $array;
|
178 |
}
|
179 |
|
180 |
-
$
|
|
|
181 |
|
182 |
foreach($array as $k => $value){
|
|
|
|
|
|
|
183 |
|
184 |
-
|
|
|
|
|
185 |
|
186 |
if($k === $key){
|
187 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
}
|
189 |
|
190 |
}
|
191 |
|
192 |
-
return $
|
193 |
|
194 |
}
|
195 |
|
@@ -209,6 +439,37 @@ function acfe_array_move(&$array, $a, $b){
|
|
209 |
|
210 |
}
|
211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
/**
|
213 |
* acfe_add_validation_error
|
214 |
*
|
@@ -223,9 +484,7 @@ function acfe_add_validation_error($selector = '', $message = ''){
|
|
223 |
|
224 |
// general error
|
225 |
if(empty($selector)){
|
226 |
-
|
227 |
return acf_add_validation_error('', $message);
|
228 |
-
|
229 |
}
|
230 |
|
231 |
// selector is a field key
|
@@ -241,6 +500,7 @@ function acfe_add_validation_error($selector = '', $message = ''){
|
|
241 |
$field = acf_get_field($selector);
|
242 |
|
243 |
// check form data
|
|
|
244 |
if($form = acf_get_form_data('acfe/form')){
|
245 |
|
246 |
// vars
|
@@ -255,7 +515,9 @@ function acfe_add_validation_error($selector = '', $message = ''){
|
|
255 |
foreach($fields as $_field){
|
256 |
|
257 |
// field name is different
|
258 |
-
if($_field['name'] !== $selector)
|
|
|
|
|
259 |
|
260 |
// assign field
|
261 |
$field = $_field;
|
@@ -278,9 +540,7 @@ function acfe_add_validation_error($selector = '', $message = ''){
|
|
278 |
|
279 |
// field not found: add general error
|
280 |
if(!$field){
|
281 |
-
|
282 |
return acf_add_validation_error('', $message);
|
283 |
-
|
284 |
}
|
285 |
|
286 |
// add validation error
|
@@ -303,7 +563,7 @@ function acfe_add_validation_error($selector = '', $message = ''){
|
|
303 |
*/
|
304 |
function acfe_number_suffix($num){
|
305 |
|
306 |
-
if(!in_array(($num % 100), array(11,12,13))){
|
307 |
|
308 |
switch($num % 10){
|
309 |
case 1: return $num . 'st';
|
@@ -328,37 +588,23 @@ function acfe_number_suffix($num){
|
|
328 |
*/
|
329 |
function acfe_array_to_string($array = array()){
|
330 |
|
331 |
-
|
332 |
-
|
333 |
-
}
|
334 |
-
|
335 |
-
if(empty($array)){
|
336 |
-
return false;
|
337 |
-
}
|
338 |
-
|
339 |
-
if(acf_is_sequential_array($array)){
|
340 |
|
341 |
-
|
342 |
-
|
343 |
-
if(
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
}
|
348 |
|
349 |
-
|
350 |
-
|
351 |
-
foreach($array as $k => $v){
|
352 |
-
|
353 |
-
if(!is_string($v)) continue;
|
354 |
-
|
355 |
-
return $v;
|
356 |
-
|
357 |
-
}
|
358 |
|
359 |
}
|
360 |
|
361 |
-
|
|
|
362 |
|
363 |
}
|
364 |
|
@@ -375,7 +621,6 @@ function acfe_is_dev(){
|
|
375 |
if(defined('ACFE_dev')){
|
376 |
|
377 |
_deprecated_function('ACF Extended: "ACFE_dev" constant', '0.8.8.7', 'the constant "ACFE_DEV"');
|
378 |
-
|
379 |
return ACFE_dev;
|
380 |
|
381 |
}
|
@@ -397,7 +642,6 @@ function acfe_is_super_dev(){
|
|
397 |
if(defined('ACFE_super_dev')){
|
398 |
|
399 |
_deprecated_function('ACF Extended: "ACFE_super_dev" constant', '0.8.8.7', 'the constant "ACFE_SUPER_DEV"');
|
400 |
-
|
401 |
return ACFE_super_dev;
|
402 |
|
403 |
}
|
@@ -489,9 +733,7 @@ function acfe_is_taxonomy_reserved_dev($taxonomy){
|
|
489 |
* @return bool|true
|
490 |
*/
|
491 |
function acfe_update_setting($name, $value){
|
492 |
-
|
493 |
return acf_update_setting("acfe/{$name}", $value);
|
494 |
-
|
495 |
}
|
496 |
|
497 |
/**
|
@@ -505,9 +747,7 @@ function acfe_update_setting($name, $value){
|
|
505 |
* @return bool|true
|
506 |
*/
|
507 |
function acfe_append_setting($name, $value){
|
508 |
-
|
509 |
return acf_append_setting("acfe/{$name}", $value);
|
510 |
-
|
511 |
}
|
512 |
|
513 |
/**
|
@@ -521,9 +761,7 @@ function acfe_append_setting($name, $value){
|
|
521 |
* @return mixed|void
|
522 |
*/
|
523 |
function acfe_get_setting($name, $value = null){
|
524 |
-
|
525 |
return acf_get_setting("acfe/{$name}", $value);
|
526 |
-
|
527 |
}
|
528 |
|
529 |
/**
|
@@ -536,8 +774,8 @@ function acfe_get_setting($name, $value = null){
|
|
536 |
*/
|
537 |
function acfe_unset(&$array, $key){
|
538 |
|
539 |
-
if(isset($array[$key])){
|
540 |
-
unset($array[$key]);
|
541 |
}
|
542 |
|
543 |
}
|
@@ -574,13 +812,13 @@ function acfe_get_ip(){
|
|
574 |
$ip = filter_var(wp_unslash($_SERVER['HTTP_CLIENT_IP']), FILTER_VALIDATE_IP);
|
575 |
|
576 |
// proxy pass
|
577 |
-
}elseif(!empty(
|
578 |
|
579 |
// can include more than 1 ip, first is the public one.
|
580 |
$ips = explode(',', wp_unslash($_SERVER['HTTP_X_FORWARDED_FOR']));
|
581 |
|
582 |
-
if
|
583 |
-
$ip = filter_var(
|
584 |
}
|
585 |
|
586 |
// remote addr
|
@@ -600,4 +838,157 @@ function acfe_get_ip(){
|
|
600 |
// return
|
601 |
return $ip_array[0];
|
602 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
603 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
+
|
7 |
+
/**
|
8 |
+
* acfe_array_get
|
9 |
+
*
|
10 |
+
* Search within array using dot mapping
|
11 |
+
*
|
12 |
+
* @param $array
|
13 |
+
* @param $key
|
14 |
+
* @param $default
|
15 |
+
*
|
16 |
+
* @return mixed|null
|
17 |
+
*/
|
18 |
+
function acfe_array_get($array, $key, $default = null){
|
19 |
+
|
20 |
+
if(empty($key)){
|
21 |
+
return $array;
|
22 |
+
}
|
23 |
+
|
24 |
+
if(!is_array($key)){
|
25 |
+
$key = explode('.', $key);
|
26 |
+
}
|
27 |
+
|
28 |
+
$count = count($key);
|
29 |
+
$i=-1; foreach($key as $segment){ $i++;
|
30 |
+
|
31 |
+
if(isset($array[ $segment ])){
|
32 |
+
|
33 |
+
if($i+1 === $count){
|
34 |
+
return $array[ $segment ];
|
35 |
+
}
|
36 |
+
|
37 |
+
unset($key[ $i ]);
|
38 |
+
|
39 |
+
return acfe_array_get($array[ $segment ], $key, $default);
|
40 |
+
|
41 |
+
}
|
42 |
+
|
43 |
+
}
|
44 |
+
|
45 |
+
return $default;
|
46 |
+
|
47 |
+
}
|
48 |
+
|
49 |
+
/**
|
50 |
+
* acfe_array_set
|
51 |
+
*
|
52 |
+
* @param $array
|
53 |
+
* @param $key
|
54 |
+
* @param $value
|
55 |
+
*
|
56 |
+
* @return array|mixed
|
57 |
+
*/
|
58 |
+
function acfe_array_set(&$array, $key, $value){
|
59 |
+
|
60 |
+
if (is_null($key)){
|
61 |
+
return $array = $value;
|
62 |
+
}
|
63 |
+
|
64 |
+
$keys = explode('.', $key);
|
65 |
+
|
66 |
+
foreach($keys as $i => $key){
|
67 |
+
|
68 |
+
if(count($keys) === 1){
|
69 |
+
break;
|
70 |
+
}
|
71 |
+
|
72 |
+
unset($keys[ $i ]);
|
73 |
+
|
74 |
+
// If the key doesn't exist at this depth, we will just create an empty array
|
75 |
+
// to hold the next value, allowing us to create the arrays to hold final
|
76 |
+
// values at the correct depth. Then we'll keep digging into the array.
|
77 |
+
if (!isset($array[ $key ]) || !is_array($array[ $key ])) {
|
78 |
+
$array[$key] = array();
|
79 |
+
}
|
80 |
+
|
81 |
+
$array = &$array[ $key ];
|
82 |
+
|
83 |
+
}
|
84 |
+
|
85 |
+
$array[ array_shift($keys) ] = $value;
|
86 |
+
|
87 |
+
return $array;
|
88 |
+
|
89 |
+
}
|
90 |
|
91 |
/**
|
92 |
* acfe_maybe_get
|
120 |
* @return mixed|null
|
121 |
*/
|
122 |
function acfe_maybe_get_REQUEST($key = '', $default = null){
|
123 |
+
return isset($_REQUEST[ $key ]) ? $_REQUEST[ $key ] : $default;
|
|
|
|
|
124 |
}
|
125 |
|
126 |
/**
|
160 |
$keys = array_keys($array);
|
161 |
|
162 |
foreach($array as $i){
|
163 |
+
if(is_array($i)){
|
164 |
+
$keys = array_merge($keys, acfe_array_keys_r($i));
|
165 |
+
}
|
|
|
|
|
166 |
}
|
167 |
|
168 |
return $keys;
|
182 |
function acfe_starts_with($haystack, $needle){
|
183 |
|
184 |
$length = strlen($needle);
|
185 |
+
return substr($haystack, 0, $length) === $needle;
|
186 |
|
187 |
}
|
188 |
|
200 |
|
201 |
$length = strlen($needle);
|
202 |
|
203 |
+
if($length === 0){
|
204 |
+
return true;
|
205 |
+
}
|
206 |
+
|
207 |
+
return substr($haystack, -$length) === $needle;
|
208 |
+
|
209 |
+
}
|
210 |
+
|
211 |
+
/**
|
212 |
+
* acfe_prefix_array_keys
|
213 |
+
*
|
214 |
+
* Prefix array keys recursively ignoring numeric keys
|
215 |
+
*
|
216 |
+
* @param $array
|
217 |
+
* @param $prefix
|
218 |
+
* @param $ignore
|
219 |
+
*
|
220 |
+
* @return array
|
221 |
+
*/
|
222 |
+
function acfe_prefix_array_keys($array, $prefix, $ignore = array(), $recursive = true){
|
223 |
+
|
224 |
+
// vars
|
225 |
+
$array2 = array();
|
226 |
+
|
227 |
+
// loop
|
228 |
+
foreach($array as $k => $v){
|
229 |
+
|
230 |
+
if(is_numeric($k)){
|
231 |
+
|
232 |
+
$k2 = $k;
|
233 |
+
$array2[ $k2 ] = $v;
|
234 |
+
|
235 |
+
}else{
|
236 |
+
|
237 |
+
$k2 = $prefix . $k;
|
238 |
+
|
239 |
+
// ignore
|
240 |
+
if($ignore && in_array($k, $ignore)){
|
241 |
+
$k2 = $k;
|
242 |
+
}
|
243 |
+
|
244 |
+
$array2[ $k2 ] = $v;
|
245 |
+
|
246 |
+
}
|
247 |
+
|
248 |
+
// recursive sub array
|
249 |
+
if($recursive){
|
250 |
+
if(is_array($array2[ $k2 ])){
|
251 |
+
$array2[ $k2 ] = acfe_prefix_array_keys($array2[ $k2 ], $prefix, $ignore, $recursive);
|
252 |
+
}
|
253 |
+
}
|
254 |
+
|
255 |
+
}
|
256 |
+
|
257 |
+
// return
|
258 |
+
return $array2;
|
259 |
+
|
260 |
+
}
|
261 |
|
262 |
+
/**
|
263 |
+
* acfe_unprefix_array_keys
|
264 |
+
*
|
265 |
+
* Prefix array keys recursively ignoring numeric keys
|
266 |
+
*
|
267 |
+
* @param $array
|
268 |
+
* @param $prefix
|
269 |
+
* @param $ignore
|
270 |
+
*
|
271 |
+
* @return array
|
272 |
+
*/
|
273 |
+
function acfe_unprefix_array_keys($array, $prefix, $ignore = array(), $recursive = true){
|
274 |
+
|
275 |
+
// vars
|
276 |
+
$array2 = array();
|
277 |
+
|
278 |
+
// loop
|
279 |
+
foreach($array as $k => $v){
|
280 |
+
|
281 |
+
if(is_numeric($k)){
|
282 |
+
|
283 |
+
$k2 = $k;
|
284 |
+
$array2[ $k2 ] = $v;
|
285 |
+
|
286 |
+
}else{
|
287 |
+
|
288 |
+
$k2 = acfe_starts_with($k, $prefix) ? substr($k, strlen($prefix)) : $k;
|
289 |
+
|
290 |
+
if($ignore && in_array($k, $ignore)){
|
291 |
+
$k2 = $k;
|
292 |
+
}
|
293 |
+
|
294 |
+
$array2[ $k2 ] = $v;
|
295 |
+
|
296 |
+
}
|
297 |
+
|
298 |
+
// recursive sub array
|
299 |
+
if($recursive){
|
300 |
+
if(is_array($array2[ $k2 ])){
|
301 |
+
$array2[ $k2 ] = acfe_unprefix_array_keys($array2[ $k2 ], $prefix, $ignore, $recursive);
|
302 |
+
}
|
303 |
+
}
|
304 |
+
|
305 |
+
}
|
306 |
+
|
307 |
+
// return
|
308 |
+
return $array2;
|
309 |
|
310 |
}
|
311 |
|
321 |
*
|
322 |
* @return array
|
323 |
*/
|
324 |
+
function acfe_array_insert_before($array, $key, $new_key, $new_value = null){
|
325 |
|
326 |
+
if(!is_array($array) || !isset($array[ $key ])){
|
327 |
return $array;
|
328 |
}
|
329 |
|
330 |
+
$is_sequential = acf_is_sequential_array($array);
|
331 |
+
$new_array = array();
|
332 |
|
333 |
foreach($array as $k => $value){
|
334 |
|
335 |
if($k === $key){
|
336 |
+
|
337 |
+
if($is_sequential){
|
338 |
+
|
339 |
+
$new_value = $new_value === null ? $new_key : $new_value;
|
340 |
+
$new_array[] = $new_value;
|
341 |
+
|
342 |
+
}else{
|
343 |
+
|
344 |
+
if($new_value === null && is_array($new_key)){
|
345 |
+
reset($new_key);
|
346 |
+
$new_value = current($new_key);
|
347 |
+
$new_key = key($new_key);
|
348 |
+
}
|
349 |
+
|
350 |
+
$new_array[ $new_key ] = $new_value;
|
351 |
+
|
352 |
+
}
|
353 |
+
|
354 |
}
|
355 |
+
|
356 |
+
if($is_sequential){
|
357 |
+
$new_array[] = $value;
|
358 |
|
359 |
+
}else{
|
360 |
+
$new_array[ $k ] = $value;
|
361 |
+
}
|
362 |
|
363 |
}
|
364 |
|
365 |
+
return $new_array;
|
366 |
|
367 |
}
|
368 |
|
378 |
*
|
379 |
* @return array
|
380 |
*/
|
381 |
+
function acfe_array_insert_after($array, $key, $new_key, $new_value = null){
|
382 |
|
383 |
+
if(!is_array($array) || !isset($array[ $key ])){
|
384 |
return $array;
|
385 |
}
|
386 |
|
387 |
+
$is_sequential = acf_is_sequential_array($array);
|
388 |
+
$new_array = array();
|
389 |
|
390 |
foreach($array as $k => $value){
|
391 |
+
|
392 |
+
if($is_sequential){
|
393 |
+
$new_array[] = $value;
|
394 |
|
395 |
+
}else{
|
396 |
+
$new_array[ $k ] = $value;
|
397 |
+
}
|
398 |
|
399 |
if($k === $key){
|
400 |
+
|
401 |
+
if($is_sequential){
|
402 |
+
|
403 |
+
$new_value = $new_value === null ? $new_key : $new_value;
|
404 |
+
$new_array[] = $new_value;
|
405 |
+
|
406 |
+
}else{
|
407 |
+
|
408 |
+
if($new_value === null && is_array($new_key)){
|
409 |
+
reset($new_key);
|
410 |
+
$new_value = current($new_key);
|
411 |
+
$new_key = key($new_key);
|
412 |
+
}
|
413 |
+
|
414 |
+
$new_array[ $new_key ] = $new_value;
|
415 |
+
|
416 |
+
}
|
417 |
+
|
418 |
}
|
419 |
|
420 |
}
|
421 |
|
422 |
+
return $new_array;
|
423 |
|
424 |
}
|
425 |
|
439 |
|
440 |
}
|
441 |
|
442 |
+
|
443 |
+
/**
|
444 |
+
* acfe_parse_args_r
|
445 |
+
*
|
446 |
+
* parse arguments recursively
|
447 |
+
*
|
448 |
+
* @param $a
|
449 |
+
* @param $b
|
450 |
+
*
|
451 |
+
* @return array
|
452 |
+
*/
|
453 |
+
function acfe_parse_args_r(&$a, $b){
|
454 |
+
|
455 |
+
$a = (array) $a;
|
456 |
+
$b = (array) $b;
|
457 |
+
$r = $b;
|
458 |
+
|
459 |
+
foreach($a as $k => &$v){
|
460 |
+
|
461 |
+
if(is_array($v) && isset($r[ $k ])){
|
462 |
+
$r[$k] = acfe_parse_args_r($v, $r[ $k ]);
|
463 |
+
}else{
|
464 |
+
$r[$k] = $v;
|
465 |
+
}
|
466 |
+
|
467 |
+
}
|
468 |
+
|
469 |
+
return $r;
|
470 |
+
|
471 |
+
}
|
472 |
+
|
473 |
/**
|
474 |
* acfe_add_validation_error
|
475 |
*
|
484 |
|
485 |
// general error
|
486 |
if(empty($selector)){
|
|
|
487 |
return acf_add_validation_error('', $message);
|
|
|
488 |
}
|
489 |
|
490 |
// selector is a field key
|
500 |
$field = acf_get_field($selector);
|
501 |
|
502 |
// check form data
|
503 |
+
// todo: make it more clean
|
504 |
if($form = acf_get_form_data('acfe/form')){
|
505 |
|
506 |
// vars
|
515 |
foreach($fields as $_field){
|
516 |
|
517 |
// field name is different
|
518 |
+
if($_field['name'] !== $selector){
|
519 |
+
continue;
|
520 |
+
}
|
521 |
|
522 |
// assign field
|
523 |
$field = $_field;
|
540 |
|
541 |
// field not found: add general error
|
542 |
if(!$field){
|
|
|
543 |
return acf_add_validation_error('', $message);
|
|
|
544 |
}
|
545 |
|
546 |
// add validation error
|
563 |
*/
|
564 |
function acfe_number_suffix($num){
|
565 |
|
566 |
+
if(!in_array(($num % 100), array(11, 12, 13))){
|
567 |
|
568 |
switch($num % 10){
|
569 |
case 1: return $num . 'st';
|
588 |
*/
|
589 |
function acfe_array_to_string($array = array()){
|
590 |
|
591 |
+
// check type
|
592 |
+
if(is_array($array)){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
593 |
|
594 |
+
// loop
|
595 |
+
foreach($array as $val){
|
596 |
+
if(is_string($val) || is_numeric($val) || is_bool($val)){
|
597 |
+
return $val;
|
598 |
+
}
|
|
|
599 |
}
|
600 |
|
601 |
+
// no valid value
|
602 |
+
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
603 |
|
604 |
}
|
605 |
|
606 |
+
// default
|
607 |
+
return $array;
|
608 |
|
609 |
}
|
610 |
|
621 |
if(defined('ACFE_dev')){
|
622 |
|
623 |
_deprecated_function('ACF Extended: "ACFE_dev" constant', '0.8.8.7', 'the constant "ACFE_DEV"');
|
|
|
624 |
return ACFE_dev;
|
625 |
|
626 |
}
|
642 |
if(defined('ACFE_super_dev')){
|
643 |
|
644 |
_deprecated_function('ACF Extended: "ACFE_super_dev" constant', '0.8.8.7', 'the constant "ACFE_SUPER_DEV"');
|
|
|
645 |
return ACFE_super_dev;
|
646 |
|
647 |
}
|
733 |
* @return bool|true
|
734 |
*/
|
735 |
function acfe_update_setting($name, $value){
|
|
|
736 |
return acf_update_setting("acfe/{$name}", $value);
|
|
|
737 |
}
|
738 |
|
739 |
/**
|
747 |
* @return bool|true
|
748 |
*/
|
749 |
function acfe_append_setting($name, $value){
|
|
|
750 |
return acf_append_setting("acfe/{$name}", $value);
|
|
|
751 |
}
|
752 |
|
753 |
/**
|
761 |
* @return mixed|void
|
762 |
*/
|
763 |
function acfe_get_setting($name, $value = null){
|
|
|
764 |
return acf_get_setting("acfe/{$name}", $value);
|
|
|
765 |
}
|
766 |
|
767 |
/**
|
774 |
*/
|
775 |
function acfe_unset(&$array, $key){
|
776 |
|
777 |
+
if(isset($array[ $key ])){
|
778 |
+
unset($array[ $key ]);
|
779 |
}
|
780 |
|
781 |
}
|
812 |
$ip = filter_var(wp_unslash($_SERVER['HTTP_CLIENT_IP']), FILTER_VALIDATE_IP);
|
813 |
|
814 |
// proxy pass
|
815 |
+
}elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){
|
816 |
|
817 |
// can include more than 1 ip, first is the public one.
|
818 |
$ips = explode(',', wp_unslash($_SERVER['HTTP_X_FORWARDED_FOR']));
|
819 |
|
820 |
+
if(is_array($ips)){
|
821 |
+
$ip = filter_var($ips[0], FILTER_VALIDATE_IP);
|
822 |
}
|
823 |
|
824 |
// remote addr
|
838 |
// return
|
839 |
return $ip_array[0];
|
840 |
|
841 |
+
}
|
842 |
+
|
843 |
+
/**
|
844 |
+
* acfe_var_export
|
845 |
+
*
|
846 |
+
* export php code
|
847 |
+
*
|
848 |
+
* @param $code
|
849 |
+
* @param $esc
|
850 |
+
*
|
851 |
+
* @return array|string|string[]|null
|
852 |
+
*/
|
853 |
+
function acfe_var_export($code, $esc = true){
|
854 |
+
|
855 |
+
$str_replace = array(
|
856 |
+
" " => " ",
|
857 |
+
"'!!__(!!\'" => "__('",
|
858 |
+
"!!\', !!\'" => "', '",
|
859 |
+
"!!\')!!'" => "')",
|
860 |
+
"array (" => "array(",
|
861 |
+
" NULL," => " null,",
|
862 |
+
);
|
863 |
+
|
864 |
+
$preg_replace = array(
|
865 |
+
'/([ \r\n]+?)array/' => ' array',
|
866 |
+
'/array\(\n\)/' => 'array()',
|
867 |
+
'/array\(\n([ ]+)\)/' => 'array()',
|
868 |
+
'/[0-9]+ => /' => '',
|
869 |
+
//'/[0-9]+ => array/' => 'array',
|
870 |
+
);
|
871 |
+
|
872 |
+
// code
|
873 |
+
$code = var_export($code, true);
|
874 |
+
|
875 |
+
// change double spaces to tabs
|
876 |
+
$code = str_replace(array_keys($str_replace), array_values($str_replace), $code);
|
877 |
+
|
878 |
+
// correctly formats "=> array("
|
879 |
+
$code = preg_replace(array_keys($preg_replace), array_values($preg_replace), $code);
|
880 |
+
|
881 |
+
// esc_textarea
|
882 |
+
if($esc){
|
883 |
+
$code = esc_textarea($code);
|
884 |
+
}
|
885 |
+
|
886 |
+
// return
|
887 |
+
return $code;
|
888 |
+
|
889 |
+
}
|
890 |
+
|
891 |
+
/**
|
892 |
+
* acfe_parse_types
|
893 |
+
*
|
894 |
+
* cousin of acf_parse_type() but also handle 'false' | 'true' | 'null' values
|
895 |
+
*
|
896 |
+
* @param $v
|
897 |
+
* @param $filters
|
898 |
+
*
|
899 |
+
* @return array|bool|int|mixed|string|null
|
900 |
+
*/
|
901 |
+
function acfe_parse_types($v, $filters = array('trim', 'int', 'bool', 'null')){
|
902 |
+
|
903 |
+
// validate filters
|
904 |
+
$filters = acf_get_array($filters);
|
905 |
+
|
906 |
+
// check array
|
907 |
+
if(is_array($v) && !empty($v)){
|
908 |
+
|
909 |
+
$v = array_map(function($v) use($filters){
|
910 |
+
return acfe_parse_types($v, $filters);
|
911 |
+
}, $v);
|
912 |
+
|
913 |
+
// check if string
|
914 |
+
}elseif(is_string($v)){
|
915 |
+
|
916 |
+
// trim ('word ' = 'word')
|
917 |
+
if(in_array('trim', $filters)){
|
918 |
+
$v = trim($v);
|
919 |
+
}
|
920 |
+
|
921 |
+
// convert int strings to int ('123' = 123)
|
922 |
+
if(in_array('int', $filters) && is_numeric($v) && strval(intval($v)) === $v){
|
923 |
+
$v = intval($v);
|
924 |
+
|
925 |
+
// convert ('false' = false)
|
926 |
+
}elseif(in_array('bool', $filters) && strtolower($v) === 'false'){
|
927 |
+
$v = false;
|
928 |
+
|
929 |
+
// convert ('true' = true)
|
930 |
+
}elseif(in_array('bool', $filters) && strtolower($v) === 'true'){
|
931 |
+
$v = true;
|
932 |
+
|
933 |
+
// convert ('null' = null)
|
934 |
+
}elseif(in_array('null', $filters) && strtolower($v) === 'null'){
|
935 |
+
$v = null;
|
936 |
+
|
937 |
+
}
|
938 |
+
|
939 |
+
}
|
940 |
+
|
941 |
+
// return
|
942 |
+
return $v;
|
943 |
+
|
944 |
+
}
|
945 |
+
|
946 |
+
/**
|
947 |
+
* acfe_unparse_types
|
948 |
+
*
|
949 |
+
* reverse of acfe_parse_types
|
950 |
+
*
|
951 |
+
* @param $v
|
952 |
+
* @param $filters
|
953 |
+
*
|
954 |
+
* @return array|mixed|string
|
955 |
+
*/
|
956 |
+
function acfe_unparse_types($v, $filters = array('int', 'bool', 'null')){
|
957 |
+
|
958 |
+
// validate filters
|
959 |
+
$filters = acf_get_array($filters);
|
960 |
+
|
961 |
+
// check array
|
962 |
+
if(is_array($v) && !empty($v)){
|
963 |
+
|
964 |
+
$v = array_map(function($v) use($filters){
|
965 |
+
return acfe_unparse_types($v, $filters);
|
966 |
+
}, $v);
|
967 |
+
|
968 |
+
// others
|
969 |
+
}else{
|
970 |
+
|
971 |
+
// convert int strings to int (123 = '123')
|
972 |
+
if(in_array('int', $filters) && is_int($v)){
|
973 |
+
$v = strval($v);
|
974 |
+
|
975 |
+
// convert (false = 'false')
|
976 |
+
}elseif(in_array('bool', $filters) && $v === false){
|
977 |
+
$v = 'false';
|
978 |
+
|
979 |
+
// convert (true = 'true')
|
980 |
+
}elseif(in_array('bool', $filters) && $v === true){
|
981 |
+
$v = 'true';
|
982 |
+
|
983 |
+
// convert (null = 'null')
|
984 |
+
}elseif(in_array('null', $filters) && $v === null){
|
985 |
+
$v = 'null';
|
986 |
+
|
987 |
+
}
|
988 |
+
|
989 |
+
}
|
990 |
+
|
991 |
+
// return
|
992 |
+
return $v;
|
993 |
+
|
994 |
}
|
includes/acfe-meta-functions.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
/**
|
7 |
* acfe_get_fields
|
@@ -35,7 +36,9 @@ function acfe_get_fields($post_id = false, $format_value = false){
|
|
35 |
$meta = array();
|
36 |
|
37 |
// bail early
|
38 |
-
if(!$fields)
|
|
|
|
|
39 |
|
40 |
// populate
|
41 |
foreach($fields as $k => $field){
|
@@ -97,12 +100,16 @@ function acfe_get_meta($post_id = false){
|
|
97 |
foreach($meta as $key => $value){
|
98 |
|
99 |
// Bail early
|
100 |
-
if(!isset($meta["_$key"]))
|
|
|
|
|
101 |
|
102 |
$field_key = $meta["_$key"];
|
103 |
|
104 |
// Bail early if field key isn't valid
|
105 |
-
if(!acf_is_field_key($field_key))
|
|
|
|
|
106 |
|
107 |
// Get field
|
108 |
$field = acf_get_field($field_key);
|
@@ -235,9 +242,7 @@ function acfe_delete_orphan_meta($post_id = 0, $confirm = true){
|
|
235 |
$single_deleted = array();
|
236 |
|
237 |
foreach($meta as $key => $val){
|
238 |
-
|
239 |
$single_deleted['single_meta'][ $key ] = $val;
|
240 |
-
|
241 |
}
|
242 |
|
243 |
// store
|
@@ -247,9 +252,7 @@ function acfe_delete_orphan_meta($post_id = 0, $confirm = true){
|
|
247 |
|
248 |
// delete single meta
|
249 |
if($confirm){
|
250 |
-
|
251 |
acfe_delete_single_meta($post_id);
|
252 |
-
|
253 |
}
|
254 |
|
255 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
/**
|
8 |
* acfe_get_fields
|
36 |
$meta = array();
|
37 |
|
38 |
// bail early
|
39 |
+
if(!$fields){
|
40 |
+
return false;
|
41 |
+
}
|
42 |
|
43 |
// populate
|
44 |
foreach($fields as $k => $field){
|
100 |
foreach($meta as $key => $value){
|
101 |
|
102 |
// Bail early
|
103 |
+
if(!isset($meta["_$key"])){
|
104 |
+
continue;
|
105 |
+
}
|
106 |
|
107 |
$field_key = $meta["_$key"];
|
108 |
|
109 |
// Bail early if field key isn't valid
|
110 |
+
if(!acf_is_field_key($field_key)){
|
111 |
+
continue;
|
112 |
+
}
|
113 |
|
114 |
// Get field
|
115 |
$field = acf_get_field($field_key);
|
242 |
$single_deleted = array();
|
243 |
|
244 |
foreach($meta as $key => $val){
|
|
|
245 |
$single_deleted['single_meta'][ $key ] = $val;
|
|
|
246 |
}
|
247 |
|
248 |
// store
|
252 |
|
253 |
// delete single meta
|
254 |
if($confirm){
|
|
|
255 |
acfe_delete_single_meta($post_id);
|
|
|
256 |
}
|
257 |
|
258 |
}
|
includes/acfe-post-functions.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
/**
|
7 |
* acfe_get_post_type_objects
|
@@ -17,22 +18,21 @@ function acfe_get_post_type_objects($args = array()){
|
|
17 |
// vars
|
18 |
$return = array();
|
19 |
|
20 |
-
//
|
21 |
$posts_types = acf_get_post_types($args);
|
22 |
|
23 |
-
//
|
24 |
-
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
}
|
33 |
|
34 |
}
|
35 |
|
|
|
36 |
return $return;
|
37 |
|
38 |
}
|
@@ -48,27 +48,48 @@ function acfe_get_post_type_objects($args = array()){
|
|
48 |
*/
|
49 |
function acfe_get_pretty_post_statuses($posts_statuses = array()){
|
50 |
|
|
|
51 |
if(empty($posts_statuses)){
|
52 |
-
|
53 |
-
$posts_statuses = get_post_stati(array(), 'names');
|
54 |
-
|
55 |
}
|
56 |
|
|
|
|
|
57 |
$return = array();
|
58 |
|
59 |
-
//
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
|
62 |
-
|
63 |
-
|
64 |
-
$
|
65 |
-
|
66 |
-
$return[$post_status_object->name] = $post_status_object->label . ' (' . $post_status_object->name . ')';
|
67 |
-
|
68 |
}
|
69 |
|
70 |
}
|
71 |
|
|
|
72 |
return $return;
|
73 |
|
74 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
/**
|
8 |
* acfe_get_post_type_objects
|
18 |
// vars
|
19 |
$return = array();
|
20 |
|
21 |
+
// get post types
|
22 |
$posts_types = acf_get_post_types($args);
|
23 |
|
24 |
+
// loop
|
25 |
+
foreach($posts_types as $post_type){
|
26 |
|
27 |
+
// get object
|
28 |
+
$object = get_post_type_object($post_type);
|
29 |
+
|
30 |
+
// append
|
31 |
+
$return[ $object->name ] = $object;
|
|
|
|
|
32 |
|
33 |
}
|
34 |
|
35 |
+
// return
|
36 |
return $return;
|
37 |
|
38 |
}
|
48 |
*/
|
49 |
function acfe_get_pretty_post_statuses($posts_statuses = array()){
|
50 |
|
51 |
+
// get post statuses
|
52 |
if(empty($posts_statuses)){
|
53 |
+
$posts_statuses = get_post_stati();
|
|
|
|
|
54 |
}
|
55 |
|
56 |
+
// vars
|
57 |
+
$ref = array();
|
58 |
$return = array();
|
59 |
|
60 |
+
// loop
|
61 |
+
foreach($posts_statuses as $post_status){
|
62 |
+
|
63 |
+
// vars
|
64 |
+
$object = get_post_status_object($post_status);
|
65 |
+
$label = $object->label;
|
66 |
+
|
67 |
+
// append to return
|
68 |
+
$return[ $object->name ] = $label;
|
69 |
+
|
70 |
+
// increase counter
|
71 |
+
if(!isset($ref[ $label ])){
|
72 |
+
$ref[ $label ] = 0;
|
73 |
+
}
|
74 |
+
|
75 |
+
$ref[ $label ]++;
|
76 |
+
|
77 |
+
}
|
78 |
+
|
79 |
+
// get slugs
|
80 |
+
foreach(array_keys($return) as $slug){
|
81 |
+
|
82 |
+
// vars
|
83 |
+
$label = $return[ $slug ];
|
84 |
|
85 |
+
// append slug
|
86 |
+
if($ref[ $label ] > 1){
|
87 |
+
$return[ $slug ] .= " ({$slug})";
|
|
|
|
|
|
|
88 |
}
|
89 |
|
90 |
}
|
91 |
|
92 |
+
// return
|
93 |
return $return;
|
94 |
|
95 |
}
|
includes/acfe-screen-functions.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
/**
|
7 |
* acfe_is_admin
|
@@ -11,9 +12,7 @@ if(!defined('ABSPATH'))
|
|
11 |
* @return bool
|
12 |
*/
|
13 |
function acfe_is_admin(){
|
14 |
-
|
15 |
return !acfe_is_front();
|
16 |
-
|
17 |
}
|
18 |
|
19 |
/**
|
@@ -27,8 +26,9 @@ function acfe_is_front(){
|
|
27 |
|
28 |
// todo: use acf_get_form_data('screen')
|
29 |
|
30 |
-
if(!is_admin() || (is_admin() && wp_doing_ajax() && (acf_maybe_get_POST('_acf_screen') === 'acfe_form' || acf_maybe_get_POST('_acf_screen') === 'acf_form')))
|
31 |
return true;
|
|
|
32 |
|
33 |
return false;
|
34 |
|
@@ -46,12 +46,13 @@ function acfe_is_front(){
|
|
46 |
*/
|
47 |
function acfe_get_acf_screen_id($page = ''){
|
48 |
|
49 |
-
$prefix = sanitize_title(
|
50 |
|
51 |
-
if(empty($page))
|
52 |
return $prefix;
|
|
|
53 |
|
54 |
-
return $prefix
|
55 |
|
56 |
}
|
57 |
|
@@ -67,20 +68,19 @@ function acfe_get_acf_screen_id($page = ''){
|
|
67 |
function acfe_is_admin_screen($modules = false){
|
68 |
|
69 |
// bail early if not defined
|
70 |
-
if(!function_exists('get_current_screen'))
|
71 |
return false;
|
|
|
72 |
|
73 |
// vars
|
74 |
$screen = get_current_screen();
|
75 |
|
76 |
// no screen
|
77 |
-
if(!$screen)
|
78 |
return false;
|
|
|
79 |
|
80 |
-
$post_types = array(
|
81 |
-
'acf-field-group', // ACF
|
82 |
-
);
|
83 |
-
|
84 |
$field_group_category = false;
|
85 |
|
86 |
// include ACF Extended Modules?
|
@@ -94,8 +94,9 @@ function acfe_is_admin_screen($modules = false){
|
|
94 |
|
95 |
}
|
96 |
|
97 |
-
if(in_array($screen->post_type, $post_types) || $field_group_category)
|
98 |
return true;
|
|
|
99 |
|
100 |
return false;
|
101 |
|
@@ -117,7 +118,9 @@ function acfe_match_location_rules($location, $screen){
|
|
117 |
foreach($location as $group){
|
118 |
|
119 |
// ignore group if no rules.
|
120 |
-
if(empty($group))
|
|
|
|
|
121 |
|
122 |
// Loop over rules and determine if all rules match.
|
123 |
$match_group = true;
|
@@ -132,7 +135,9 @@ function acfe_match_location_rules($location, $screen){
|
|
132 |
}
|
133 |
|
134 |
// Show the field group
|
135 |
-
if($match_group)
|
|
|
|
|
136 |
|
137 |
}
|
138 |
|
@@ -206,7 +211,5 @@ function acfe_is_block_editor(){
|
|
206 |
* @deprecated
|
207 |
*/
|
208 |
function acfe_is_gutenberg(){
|
209 |
-
|
210 |
return acfe_is_block_editor();
|
211 |
-
|
212 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
/**
|
8 |
* acfe_is_admin
|
12 |
* @return bool
|
13 |
*/
|
14 |
function acfe_is_admin(){
|
|
|
15 |
return !acfe_is_front();
|
|
|
16 |
}
|
17 |
|
18 |
/**
|
26 |
|
27 |
// todo: use acf_get_form_data('screen')
|
28 |
|
29 |
+
if(!is_admin() || (is_admin() && wp_doing_ajax() && (acf_maybe_get_POST('_acf_screen') === 'acfe_form' || acf_maybe_get_POST('_acf_screen') === 'acf_form'))){
|
30 |
return true;
|
31 |
+
}
|
32 |
|
33 |
return false;
|
34 |
|
46 |
*/
|
47 |
function acfe_get_acf_screen_id($page = ''){
|
48 |
|
49 |
+
$prefix = sanitize_title(__("Custom Fields", 'acf'));
|
50 |
|
51 |
+
if(empty($page)){
|
52 |
return $prefix;
|
53 |
+
}
|
54 |
|
55 |
+
return "{$prefix}_page_{$page}";
|
56 |
|
57 |
}
|
58 |
|
68 |
function acfe_is_admin_screen($modules = false){
|
69 |
|
70 |
// bail early if not defined
|
71 |
+
if(!function_exists('get_current_screen')){
|
72 |
return false;
|
73 |
+
}
|
74 |
|
75 |
// vars
|
76 |
$screen = get_current_screen();
|
77 |
|
78 |
// no screen
|
79 |
+
if(!$screen){
|
80 |
return false;
|
81 |
+
}
|
82 |
|
83 |
+
$post_types = array('acf-field-group');
|
|
|
|
|
|
|
84 |
$field_group_category = false;
|
85 |
|
86 |
// include ACF Extended Modules?
|
94 |
|
95 |
}
|
96 |
|
97 |
+
if(in_array($screen->post_type, $post_types) || $field_group_category){
|
98 |
return true;
|
99 |
+
}
|
100 |
|
101 |
return false;
|
102 |
|
118 |
foreach($location as $group){
|
119 |
|
120 |
// ignore group if no rules.
|
121 |
+
if(empty($group)){
|
122 |
+
continue;
|
123 |
+
}
|
124 |
|
125 |
// Loop over rules and determine if all rules match.
|
126 |
$match_group = true;
|
135 |
}
|
136 |
|
137 |
// Show the field group
|
138 |
+
if($match_group){
|
139 |
+
return true;
|
140 |
+
}
|
141 |
|
142 |
}
|
143 |
|
211 |
* @deprecated
|
212 |
*/
|
213 |
function acfe_is_gutenberg(){
|
|
|
214 |
return acfe_is_block_editor();
|
|
|
215 |
}
|
includes/acfe-template-functions.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
/**
|
7 |
* get_flexible
|
@@ -18,7 +19,9 @@ if(!function_exists('get_flexible')){
|
|
18 |
function get_flexible($selector, $post_id = false){
|
19 |
|
20 |
// Bail early
|
21 |
-
if(!have_rows($selector, $post_id))
|
|
|
|
|
22 |
|
23 |
// Vars
|
24 |
$flexible = acf_get_field_type('flexible_content');
|
@@ -32,8 +35,9 @@ if(!function_exists('get_flexible')){
|
|
32 |
$field = $loop['field'];
|
33 |
|
34 |
// Bail early if not Flexible Content
|
35 |
-
if($field['type'] !== 'flexible_content')
|
36 |
break;
|
|
|
37 |
|
38 |
$loop_i = acf_get_loop('active', 'i');
|
39 |
$layout = $flexible->get_layout(get_row_layout(), $field);
|
@@ -45,8 +49,9 @@ if(!function_exists('get_flexible')){
|
|
45 |
global $is_preview;
|
46 |
|
47 |
// Vars
|
48 |
-
if(!isset($is_preview))
|
49 |
$is_preview = false;
|
|
|
50 |
|
51 |
$name = $field['_name'];
|
52 |
$key = $field['key'];
|
@@ -86,9 +91,7 @@ if(!function_exists('get_flexible')){
|
|
86 |
if(!function_exists('the_flexible')){
|
87 |
|
88 |
function the_flexible($selector, $post_id = false){
|
89 |
-
|
90 |
echo get_flexible($selector, $post_id);
|
91 |
-
|
92 |
}
|
93 |
|
94 |
}
|
@@ -106,9 +109,7 @@ if(!function_exists('the_flexible')){
|
|
106 |
if(!function_exists('has_flexible')){
|
107 |
|
108 |
function has_flexible($selector, $post_id = false){
|
109 |
-
|
110 |
return have_rows($selector, $post_id);
|
111 |
-
|
112 |
}
|
113 |
|
114 |
}
|
@@ -174,7 +175,7 @@ function acfe_flexible_render_layout_template($layout, $field){
|
|
174 |
// Include
|
175 |
include($file_found);
|
176 |
|
177 |
-
|
178 |
}else{
|
179 |
|
180 |
$path = pathinfo($file);
|
@@ -272,9 +273,7 @@ function acfe_flexible_render_layout_enqueue($layout, $field){
|
|
272 |
|
273 |
// URL starting with current domain
|
274 |
if(stripos($style, home_url()) === 0){
|
275 |
-
|
276 |
$style = str_replace(home_url(), '', $style);
|
277 |
-
|
278 |
}
|
279 |
|
280 |
// Locate
|
@@ -282,9 +281,7 @@ function acfe_flexible_render_layout_enqueue($layout, $field){
|
|
282 |
|
283 |
// Front-end
|
284 |
if(!empty($style_file)){
|
285 |
-
|
286 |
wp_enqueue_style($handle, $style_file, array(), false, 'all');
|
287 |
-
|
288 |
}
|
289 |
|
290 |
// Preview
|
@@ -300,9 +297,7 @@ function acfe_flexible_render_layout_enqueue($layout, $field){
|
|
300 |
|
301 |
// Enqueue
|
302 |
if(!empty($style_preview)){
|
303 |
-
|
304 |
wp_enqueue_style($handle . '-preview', $style_preview, array(), false, 'all');
|
305 |
-
|
306 |
}
|
307 |
|
308 |
}
|
@@ -329,9 +324,7 @@ function acfe_flexible_render_layout_enqueue($layout, $field){
|
|
329 |
|
330 |
// URL starting with current domain
|
331 |
if(stripos($script, home_url()) === 0){
|
332 |
-
|
333 |
$script = str_replace(home_url(), '', $script);
|
334 |
-
|
335 |
}
|
336 |
|
337 |
// Locate
|
@@ -341,9 +334,7 @@ function acfe_flexible_render_layout_enqueue($layout, $field){
|
|
341 |
if(!$is_preview || (stripos($script, 'http://') === 0 || stripos($script, 'https://') === 0 || stripos($script, '//') === 0)){
|
342 |
|
343 |
if(!empty($script_file)){
|
344 |
-
|
345 |
wp_enqueue_script($handle, $script_file, array(), false, true);
|
346 |
-
|
347 |
}
|
348 |
|
349 |
}else{
|
@@ -383,9 +374,7 @@ function acfe_flexible_render_layout_enqueue($layout, $field){
|
|
383 |
if(!function_exists('have_settings')){
|
384 |
|
385 |
function have_settings(){
|
386 |
-
|
387 |
return have_rows('layout_settings');
|
388 |
-
|
389 |
}
|
390 |
|
391 |
}
|
@@ -400,9 +389,7 @@ if(!function_exists('have_settings')){
|
|
400 |
if(!function_exists('the_setting')){
|
401 |
|
402 |
function the_setting(){
|
403 |
-
|
404 |
return the_row();
|
405 |
-
|
406 |
}
|
407 |
|
408 |
}
|
@@ -418,7 +405,7 @@ if(!function_exists('the_setting')){
|
|
418 |
*/
|
419 |
if(!function_exists('have_archive')){
|
420 |
|
421 |
-
function have_archive($
|
422 |
|
423 |
global $acfe_archive_i, $acfe_archive_post_type;
|
424 |
|
@@ -428,21 +415,41 @@ if(!function_exists('have_archive')){
|
|
428 |
|
429 |
$acfe_archive_i = 0;
|
430 |
|
431 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
432 |
|
433 |
-
if(
|
434 |
-
|
|
|
435 |
|
436 |
-
if(!post_type_exists($post_type))
|
437 |
return false;
|
|
|
438 |
|
439 |
$post_type_object = get_post_type_object($post_type);
|
440 |
|
441 |
-
if(empty($post_type_object))
|
442 |
return false;
|
|
|
443 |
|
444 |
-
if(!
|
445 |
return false;
|
|
|
446 |
|
447 |
$acfe_archive_post_type = $post_type;
|
448 |
|
@@ -489,17 +496,17 @@ if(!function_exists('the_archive')){
|
|
489 |
*/
|
490 |
function acfe_the_archive_post_id($null, $post_id){
|
491 |
|
492 |
-
if($post_id !== false)
|
493 |
return $null;
|
|
|
494 |
|
495 |
global $acfe_archive_post_type;
|
496 |
|
497 |
-
if(empty($acfe_archive_post_type))
|
498 |
return $null;
|
|
|
499 |
|
500 |
-
|
501 |
-
|
502 |
-
return $return;
|
503 |
|
504 |
}
|
505 |
|
@@ -518,31 +525,24 @@ function acfe_get_post_id($format = true){
|
|
518 |
// Admin
|
519 |
if(acfe_is_admin()){
|
520 |
|
521 |
-
// Legacy ACF method
|
522 |
$post_id = acf_get_valid_post_id();
|
523 |
|
524 |
// Exclude local meta post ids
|
525 |
-
if(function_exists('acfe_get_local_post_ids')){
|
526 |
-
|
527 |
-
$exclude_post_ids = acfe_get_local_post_ids();
|
528 |
-
|
529 |
-
if(in_array($post_id, $exclude_post_ids))
|
530 |
-
$post_id = false;
|
531 |
-
|
532 |
}
|
533 |
|
534 |
if($post_id){
|
535 |
return $post_id;
|
536 |
}
|
537 |
|
538 |
-
global $pagenow;
|
539 |
-
|
540 |
// ACF Form Data
|
541 |
$post_id = acf_get_form_data('post_id');
|
542 |
|
543 |
// $_POST['_acf_post_id']
|
544 |
if(!$post_id){
|
545 |
-
$post_id = acf_maybe_get_POST('_acf_post_id');
|
546 |
}
|
547 |
|
548 |
// $_REQUEST['post']
|
@@ -550,7 +550,7 @@ function acfe_get_post_id($format = true){
|
|
550 |
$post_id = isset($_REQUEST['post']) ? absint($_REQUEST['post']) : 0;
|
551 |
}
|
552 |
|
553 |
-
// $_REQUEST['post_id']
|
554 |
if(!$post_id){
|
555 |
$post_id = isset($_REQUEST['post_id']) ? absint($_REQUEST['post_id']) : 0;
|
556 |
}
|
@@ -561,9 +561,8 @@ function acfe_get_post_id($format = true){
|
|
561 |
}
|
562 |
|
563 |
// global $user_ID
|
564 |
-
global $user_ID;
|
565 |
-
|
566 |
if(!$post_id){
|
|
|
567 |
$post_id = $pagenow === 'profile.php' && $user_ID !== null ? 'user_' . absint($user_ID) : 0;
|
568 |
}
|
569 |
|
@@ -579,38 +578,45 @@ function acfe_get_post_id($format = true){
|
|
579 |
|
580 |
// Front
|
581 |
}else{
|
|
|
|
|
|
|
582 |
|
583 |
-
|
584 |
-
$object = get_queried_object();
|
585 |
-
$post_id = 0;
|
586 |
-
|
587 |
-
if(is_object($object)){
|
588 |
|
589 |
-
//
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
// Post Type Archive
|
595 |
-
}elseif(isset($object->hierarchical, $object->name, $object->acfe_admin_archive)){
|
596 |
-
|
597 |
-
// Validate with ACF filter (for multilang)
|
598 |
-
$post_id = $object->name . '_archive';
|
599 |
-
|
600 |
-
// User
|
601 |
-
}elseif(isset($object->roles, $object->ID)){
|
602 |
-
|
603 |
-
$post_id = 'user_' . $object->ID;
|
604 |
-
|
605 |
-
// Term
|
606 |
-
}elseif(isset($object->taxonomy, $object->term_id)){
|
607 |
-
|
608 |
-
$post_id = 'term_' . $object->term_id;
|
609 |
-
|
610 |
-
// Comment
|
611 |
-
}elseif(isset($object->comment_ID)){
|
612 |
|
613 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
614 |
|
615 |
}
|
616 |
|
@@ -632,6 +638,7 @@ function acfe_get_post_id($format = true){
|
|
632 |
|
633 |
}
|
634 |
|
|
|
635 |
return $post_id;
|
636 |
|
637 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
/**
|
8 |
* get_flexible
|
19 |
function get_flexible($selector, $post_id = false){
|
20 |
|
21 |
// Bail early
|
22 |
+
if(!have_rows($selector, $post_id)){
|
23 |
+
return false;
|
24 |
+
}
|
25 |
|
26 |
// Vars
|
27 |
$flexible = acf_get_field_type('flexible_content');
|
35 |
$field = $loop['field'];
|
36 |
|
37 |
// Bail early if not Flexible Content
|
38 |
+
if($field['type'] !== 'flexible_content'){
|
39 |
break;
|
40 |
+
}
|
41 |
|
42 |
$loop_i = acf_get_loop('active', 'i');
|
43 |
$layout = $flexible->get_layout(get_row_layout(), $field);
|
49 |
global $is_preview;
|
50 |
|
51 |
// Vars
|
52 |
+
if(!isset($is_preview)){
|
53 |
$is_preview = false;
|
54 |
+
}
|
55 |
|
56 |
$name = $field['_name'];
|
57 |
$key = $field['key'];
|
91 |
if(!function_exists('the_flexible')){
|
92 |
|
93 |
function the_flexible($selector, $post_id = false){
|
|
|
94 |
echo get_flexible($selector, $post_id);
|
|
|
95 |
}
|
96 |
|
97 |
}
|
109 |
if(!function_exists('has_flexible')){
|
110 |
|
111 |
function has_flexible($selector, $post_id = false){
|
|
|
112 |
return have_rows($selector, $post_id);
|
|
|
113 |
}
|
114 |
|
115 |
}
|
175 |
// Include
|
176 |
include($file_found);
|
177 |
|
178 |
+
// Preview
|
179 |
}else{
|
180 |
|
181 |
$path = pathinfo($file);
|
273 |
|
274 |
// URL starting with current domain
|
275 |
if(stripos($style, home_url()) === 0){
|
|
|
276 |
$style = str_replace(home_url(), '', $style);
|
|
|
277 |
}
|
278 |
|
279 |
// Locate
|
281 |
|
282 |
// Front-end
|
283 |
if(!empty($style_file)){
|
|
|
284 |
wp_enqueue_style($handle, $style_file, array(), false, 'all');
|
|
|
285 |
}
|
286 |
|
287 |
// Preview
|
297 |
|
298 |
// Enqueue
|
299 |
if(!empty($style_preview)){
|
|
|
300 |
wp_enqueue_style($handle . '-preview', $style_preview, array(), false, 'all');
|
|
|
301 |
}
|
302 |
|
303 |
}
|
324 |
|
325 |
// URL starting with current domain
|
326 |
if(stripos($script, home_url()) === 0){
|
|
|
327 |
$script = str_replace(home_url(), '', $script);
|
|
|
328 |
}
|
329 |
|
330 |
// Locate
|
334 |
if(!$is_preview || (stripos($script, 'http://') === 0 || stripos($script, 'https://') === 0 || stripos($script, '//') === 0)){
|
335 |
|
336 |
if(!empty($script_file)){
|
|
|
337 |
wp_enqueue_script($handle, $script_file, array(), false, true);
|
|
|
338 |
}
|
339 |
|
340 |
}else{
|
374 |
if(!function_exists('have_settings')){
|
375 |
|
376 |
function have_settings(){
|
|
|
377 |
return have_rows('layout_settings');
|
|
|
378 |
}
|
379 |
|
380 |
}
|
389 |
if(!function_exists('the_setting')){
|
390 |
|
391 |
function the_setting(){
|
|
|
392 |
return the_row();
|
|
|
393 |
}
|
394 |
|
395 |
}
|
405 |
*/
|
406 |
if(!function_exists('have_archive')){
|
407 |
|
408 |
+
function have_archive($post_type = false){
|
409 |
|
410 |
global $acfe_archive_i, $acfe_archive_post_type;
|
411 |
|
415 |
|
416 |
$acfe_archive_i = 0;
|
417 |
|
418 |
+
if(!$post_type){
|
419 |
+
|
420 |
+
// try get_post_type()
|
421 |
+
$post_type = get_post_type();
|
422 |
+
|
423 |
+
if(!$post_type){
|
424 |
+
|
425 |
+
// try get_queried_object()
|
426 |
+
$object = get_queried_object();
|
427 |
+
|
428 |
+
if(is_a($object, 'WP_Post_Type') && property_exists($object, 'has_archive')){
|
429 |
+
$post_type = $object->name;
|
430 |
+
}
|
431 |
+
|
432 |
+
}
|
433 |
+
|
434 |
+
}
|
435 |
|
436 |
+
if(!$post_type){
|
437 |
+
return false;
|
438 |
+
}
|
439 |
|
440 |
+
if(!post_type_exists($post_type)){
|
441 |
return false;
|
442 |
+
}
|
443 |
|
444 |
$post_type_object = get_post_type_object($post_type);
|
445 |
|
446 |
+
if(empty($post_type_object)){
|
447 |
return false;
|
448 |
+
}
|
449 |
|
450 |
+
if(!acfe_maybe_get($post_type_object, 'acfe_admin_archive')){
|
451 |
return false;
|
452 |
+
}
|
453 |
|
454 |
$acfe_archive_post_type = $post_type;
|
455 |
|
496 |
*/
|
497 |
function acfe_the_archive_post_id($null, $post_id){
|
498 |
|
499 |
+
if($post_id !== false){
|
500 |
return $null;
|
501 |
+
}
|
502 |
|
503 |
global $acfe_archive_post_type;
|
504 |
|
505 |
+
if(empty($acfe_archive_post_type)){
|
506 |
return $null;
|
507 |
+
}
|
508 |
|
509 |
+
return acf_get_valid_post_id("{$acfe_archive_post_type}_archive");
|
|
|
|
|
510 |
|
511 |
}
|
512 |
|
525 |
// Admin
|
526 |
if(acfe_is_admin()){
|
527 |
|
528 |
+
// Legacy ACF method (get_the_ID(), get_queried_object() etc...)
|
529 |
$post_id = acf_get_valid_post_id();
|
530 |
|
531 |
// Exclude local meta post ids
|
532 |
+
if(function_exists('acfe_get_local_post_ids') && in_array($post_id, acfe_get_local_post_ids())){
|
533 |
+
$post_id = false;
|
|
|
|
|
|
|
|
|
|
|
534 |
}
|
535 |
|
536 |
if($post_id){
|
537 |
return $post_id;
|
538 |
}
|
539 |
|
|
|
|
|
540 |
// ACF Form Data
|
541 |
$post_id = acf_get_form_data('post_id');
|
542 |
|
543 |
// $_POST['_acf_post_id']
|
544 |
if(!$post_id){
|
545 |
+
$post_id = acf_maybe_get_POST('_acf_post_id', 0);
|
546 |
}
|
547 |
|
548 |
// $_REQUEST['post']
|
550 |
$post_id = isset($_REQUEST['post']) ? absint($_REQUEST['post']) : 0;
|
551 |
}
|
552 |
|
553 |
+
// $_REQUEST['post_id'] (ACF Block Type)
|
554 |
if(!$post_id){
|
555 |
$post_id = isset($_REQUEST['post_id']) ? absint($_REQUEST['post_id']) : 0;
|
556 |
}
|
561 |
}
|
562 |
|
563 |
// global $user_ID
|
|
|
|
|
564 |
if(!$post_id){
|
565 |
+
global $pagenow, $user_ID;
|
566 |
$post_id = $pagenow === 'profile.php' && $user_ID !== null ? 'user_' . absint($user_ID) : 0;
|
567 |
}
|
568 |
|
578 |
|
579 |
// Front
|
580 |
}else{
|
581 |
+
|
582 |
+
// ACF Form Data
|
583 |
+
$post_id = acf_get_form_data('post_id');
|
584 |
|
585 |
+
if(!$post_id){
|
|
|
|
|
|
|
|
|
586 |
|
587 |
+
// vars
|
588 |
+
$object = get_queried_object();
|
589 |
+
$post_id = 0;
|
590 |
+
|
591 |
+
if(is_object($object)){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
592 |
|
593 |
+
// Post
|
594 |
+
if(isset($object->post_type, $object->ID)){
|
595 |
+
|
596 |
+
$post_id = $object->ID;
|
597 |
+
|
598 |
+
// Post Type Archive
|
599 |
+
}elseif(isset($object->hierarchical, $object->name, $object->acfe_admin_archive)){
|
600 |
+
|
601 |
+
// Validate with ACF filter (for multilang)
|
602 |
+
$post_id = $object->name . '_archive';
|
603 |
+
|
604 |
+
// User
|
605 |
+
}elseif(isset($object->roles, $object->ID)){
|
606 |
+
|
607 |
+
$post_id = 'user_' . $object->ID;
|
608 |
+
|
609 |
+
// Term
|
610 |
+
}elseif(isset($object->taxonomy, $object->term_id)){
|
611 |
+
|
612 |
+
$post_id = 'term_' . $object->term_id;
|
613 |
+
|
614 |
+
// Comment
|
615 |
+
}elseif(isset($object->comment_ID)){
|
616 |
+
|
617 |
+
$post_id = 'comment_' . $object->comment_ID;
|
618 |
+
|
619 |
+
}
|
620 |
|
621 |
}
|
622 |
|
638 |
|
639 |
}
|
640 |
|
641 |
+
// return
|
642 |
return $post_id;
|
643 |
|
644 |
}
|
includes/acfe-term-functions.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
/**
|
7 |
* acfe_get_taxonomy_objects
|
@@ -27,7 +28,7 @@ function acfe_get_taxonomy_objects($args = array()){
|
|
27 |
|
28 |
$taxonomy_object = get_taxonomy($taxonomy);
|
29 |
|
30 |
-
$return[$taxonomy_object->name] = $taxonomy_object;
|
31 |
|
32 |
}
|
33 |
|
@@ -62,7 +63,7 @@ function acfe_get_taxonomy_terms_ids($taxonomies = array()){
|
|
62 |
foreach(array_keys($taxonomies) as $taxonomy){
|
63 |
|
64 |
// vars
|
65 |
-
$label = $taxonomies[$taxonomy];
|
66 |
$is_hierarchical = is_taxonomy_hierarchical($taxonomy);
|
67 |
|
68 |
$terms = acf_get_terms(array(
|
@@ -71,14 +72,13 @@ function acfe_get_taxonomy_terms_ids($taxonomies = array()){
|
|
71 |
));
|
72 |
|
73 |
// bail early if no terms
|
74 |
-
if(empty($terms))
|
75 |
continue;
|
|
|
76 |
|
77 |
// sort into hierachial order!
|
78 |
if($is_hierarchical){
|
79 |
-
|
80 |
$terms = _get_term_children(0, $terms, $taxonomy);
|
81 |
-
|
82 |
}
|
83 |
|
84 |
// add placeholder
|
@@ -86,10 +86,7 @@ function acfe_get_taxonomy_terms_ids($taxonomies = array()){
|
|
86 |
|
87 |
// add choices
|
88 |
foreach($terms as $term){
|
89 |
-
|
90 |
-
$k = "{$term->term_id}";
|
91 |
-
$r[$label][$k] = acf_get_term_title($term);
|
92 |
-
|
93 |
}
|
94 |
|
95 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
/**
|
8 |
* acfe_get_taxonomy_objects
|
28 |
|
29 |
$taxonomy_object = get_taxonomy($taxonomy);
|
30 |
|
31 |
+
$return[ $taxonomy_object->name ] = $taxonomy_object;
|
32 |
|
33 |
}
|
34 |
|
63 |
foreach(array_keys($taxonomies) as $taxonomy){
|
64 |
|
65 |
// vars
|
66 |
+
$label = $taxonomies[ $taxonomy ];
|
67 |
$is_hierarchical = is_taxonomy_hierarchical($taxonomy);
|
68 |
|
69 |
$terms = acf_get_terms(array(
|
72 |
));
|
73 |
|
74 |
// bail early if no terms
|
75 |
+
if(empty($terms)){
|
76 |
continue;
|
77 |
+
}
|
78 |
|
79 |
// sort into hierachial order!
|
80 |
if($is_hierarchical){
|
|
|
81 |
$terms = _get_term_children(0, $terms, $taxonomy);
|
|
|
82 |
}
|
83 |
|
84 |
// add placeholder
|
86 |
|
87 |
// add choices
|
88 |
foreach($terms as $term){
|
89 |
+
$r[ $label ][ $term->term_id ] = acf_get_term_title($term);
|
|
|
|
|
|
|
90 |
}
|
91 |
|
92 |
}
|
includes/acfe-user-functions.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
/**
|
7 |
* acfe_get_roles
|
@@ -18,13 +19,12 @@ function acfe_get_roles($filtered_user_roles = array()){
|
|
18 |
|
19 |
global $wp_roles;
|
20 |
|
21 |
-
if(is_multisite())
|
22 |
$list['super_admin'] = __('Super Admin');
|
|
|
23 |
|
24 |
foreach($wp_roles->roles as $role => $settings){
|
25 |
-
|
26 |
-
$list[$role] = $settings['name'];
|
27 |
-
|
28 |
}
|
29 |
|
30 |
$user_roles = $list;
|
@@ -34,12 +34,9 @@ function acfe_get_roles($filtered_user_roles = array()){
|
|
34 |
$user_roles = array();
|
35 |
|
36 |
foreach($list as $role => $role_label){
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
$user_roles[$role] = $role_label;
|
42 |
-
|
43 |
}
|
44 |
|
45 |
}
|
@@ -59,13 +56,15 @@ function acfe_get_current_user_roles(){
|
|
59 |
|
60 |
global $current_user;
|
61 |
|
62 |
-
if(!is_object($current_user) || !isset($current_user->roles))
|
63 |
return false;
|
|
|
64 |
|
65 |
$roles = $current_user->roles;
|
66 |
|
67 |
-
if(is_multisite() && current_user_can('setup_network'))
|
68 |
$roles[] = 'super_admin';
|
|
|
69 |
|
70 |
return $roles;
|
71 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
/**
|
8 |
* acfe_get_roles
|
19 |
|
20 |
global $wp_roles;
|
21 |
|
22 |
+
if(is_multisite()){
|
23 |
$list['super_admin'] = __('Super Admin');
|
24 |
+
}
|
25 |
|
26 |
foreach($wp_roles->roles as $role => $settings){
|
27 |
+
$list[ $role ] = $settings['name'];
|
|
|
|
|
28 |
}
|
29 |
|
30 |
$user_roles = $list;
|
34 |
$user_roles = array();
|
35 |
|
36 |
foreach($list as $role => $role_label){
|
37 |
+
if(in_array($role, $filtered_user_roles)){
|
38 |
+
$user_roles[$role] = $role_label;
|
39 |
+
}
|
|
|
|
|
|
|
40 |
}
|
41 |
|
42 |
}
|
56 |
|
57 |
global $current_user;
|
58 |
|
59 |
+
if(!is_object($current_user) || !isset($current_user->roles)){
|
60 |
return false;
|
61 |
+
}
|
62 |
|
63 |
$roles = $current_user->roles;
|
64 |
|
65 |
+
if(is_multisite() && current_user_can('setup_network')){
|
66 |
$roles[] = 'super_admin';
|
67 |
+
}
|
68 |
|
69 |
return $roles;
|
70 |
|
includes/acfe-wp-functions.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
/**
|
7 |
* acfe_get_registered_image_sizes
|
@@ -23,8 +24,9 @@ function acfe_get_registered_image_sizes($filter = false){
|
|
23 |
|
24 |
foreach($wp_sizes as $size_name){
|
25 |
|
26 |
-
if($filter && $
|
27 |
continue;
|
|
|
28 |
|
29 |
$size_data = array(
|
30 |
'name' => $size_name,
|
@@ -36,7 +38,7 @@ function acfe_get_registered_image_sizes($filter = false){
|
|
36 |
// For sizes added by plugins and themes.
|
37 |
if(isset( $additional_sizes[ $size_name ]['width'])){
|
38 |
$size_data['width'] = (int) $additional_sizes[ $size_name ]['width'];
|
39 |
-
|
40 |
}else{
|
41 |
$size_data['width'] = (int) get_option("{$size_name}_size_w");
|
42 |
}
|
@@ -61,33 +63,35 @@ function acfe_get_registered_image_sizes($filter = false){
|
|
61 |
|
62 |
}
|
63 |
|
64 |
-
if($filter && isset($all_sizes[ $filter ]))
|
65 |
return $all_sizes[ $filter ];
|
|
|
66 |
|
67 |
return $all_sizes;
|
68 |
|
69 |
}
|
70 |
|
|
|
71 |
/**
|
72 |
* acfe_remove_class_filter
|
73 |
*
|
74 |
* Remove hook from inaccessible PHP class
|
75 |
* https://gist.github.com/tripflex/c6518efc1753cf2392559866b4bd1a53
|
76 |
*
|
77 |
-
* @param
|
78 |
-
* @param
|
79 |
-
* @param
|
80 |
-
* @param
|
81 |
*
|
82 |
* @return bool
|
83 |
*/
|
84 |
-
function acfe_remove_class_filter(
|
85 |
|
86 |
global $wp_filter;
|
87 |
|
88 |
// Check that filter actually exists first
|
89 |
-
if
|
90 |
-
return
|
91 |
}
|
92 |
|
93 |
/**
|
@@ -108,7 +112,7 @@ function acfe_remove_class_filter( $tag, $class_name = '', $method_name = '', $p
|
|
108 |
|
109 |
// Exit if there aren't any callbacks for specified priority
|
110 |
if ( ! isset( $callbacks[ $priority ] ) || empty( $callbacks[ $priority ] ) ) {
|
111 |
-
return
|
112 |
}
|
113 |
|
114 |
// Loop through each filter for the specified priority, looking for our class & method
|
@@ -152,23 +156,24 @@ function acfe_remove_class_filter( $tag, $class_name = '', $method_name = '', $p
|
|
152 |
unset( $GLOBALS['merged_filters'][ $tag ] );
|
153 |
}
|
154 |
|
155 |
-
return
|
156 |
}
|
157 |
}
|
158 |
|
159 |
-
return
|
160 |
}
|
161 |
|
|
|
162 |
/**
|
163 |
* acfe_remove_class_action
|
164 |
*
|
165 |
-
* @param
|
166 |
-
* @param
|
167 |
-
* @param
|
168 |
-
* @param
|
169 |
*
|
170 |
* @return bool
|
171 |
*/
|
172 |
-
function acfe_remove_class_action(
|
173 |
-
return acfe_remove_class_filter(
|
174 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
/**
|
8 |
* acfe_get_registered_image_sizes
|
24 |
|
25 |
foreach($wp_sizes as $size_name){
|
26 |
|
27 |
+
if($filter && $filter !== $size_name){
|
28 |
continue;
|
29 |
+
}
|
30 |
|
31 |
$size_data = array(
|
32 |
'name' => $size_name,
|
38 |
// For sizes added by plugins and themes.
|
39 |
if(isset( $additional_sizes[ $size_name ]['width'])){
|
40 |
$size_data['width'] = (int) $additional_sizes[ $size_name ]['width'];
|
41 |
+
// For default sizes set in options.
|
42 |
}else{
|
43 |
$size_data['width'] = (int) get_option("{$size_name}_size_w");
|
44 |
}
|
63 |
|
64 |
}
|
65 |
|
66 |
+
if($filter && isset($all_sizes[ $filter ])){
|
67 |
return $all_sizes[ $filter ];
|
68 |
+
}
|
69 |
|
70 |
return $all_sizes;
|
71 |
|
72 |
}
|
73 |
|
74 |
+
|
75 |
/**
|
76 |
* acfe_remove_class_filter
|
77 |
*
|
78 |
* Remove hook from inaccessible PHP class
|
79 |
* https://gist.github.com/tripflex/c6518efc1753cf2392559866b4bd1a53
|
80 |
*
|
81 |
+
* @param $class_name
|
82 |
+
* @param $tag
|
83 |
+
* @param $method_name
|
84 |
+
* @param $priority
|
85 |
*
|
86 |
* @return bool
|
87 |
*/
|
88 |
+
function acfe_remove_class_filter($class_name = '', $tag = '', $method_name = '', $priority = 10){
|
89 |
|
90 |
global $wp_filter;
|
91 |
|
92 |
// Check that filter actually exists first
|
93 |
+
if(!isset($wp_filter[ $tag ])){
|
94 |
+
return false;
|
95 |
}
|
96 |
|
97 |
/**
|
112 |
|
113 |
// Exit if there aren't any callbacks for specified priority
|
114 |
if ( ! isset( $callbacks[ $priority ] ) || empty( $callbacks[ $priority ] ) ) {
|
115 |
+
return false;
|
116 |
}
|
117 |
|
118 |
// Loop through each filter for the specified priority, looking for our class & method
|
156 |
unset( $GLOBALS['merged_filters'][ $tag ] );
|
157 |
}
|
158 |
|
159 |
+
return true;
|
160 |
}
|
161 |
}
|
162 |
|
163 |
+
return false;
|
164 |
}
|
165 |
|
166 |
+
|
167 |
/**
|
168 |
* acfe_remove_class_action
|
169 |
*
|
170 |
+
* @param $class_name
|
171 |
+
* @param $tag
|
172 |
+
* @param $method_name
|
173 |
+
* @param $priority
|
174 |
*
|
175 |
* @return bool
|
176 |
*/
|
177 |
+
function acfe_remove_class_action($class_name = '', $tag = '', $method_name = '', $priority = 10){
|
178 |
+
return acfe_remove_class_filter($class_name, $tag, $method_name, $priority);
|
179 |
}
|
includes/admin/compatibility.php
ADDED
@@ -0,0 +1,215 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
+
exit;
|
5 |
+
}
|
6 |
+
|
7 |
+
// check version
|
8 |
+
if(!acfe_is_acf_6()){
|
9 |
+
return;
|
10 |
+
}
|
11 |
+
|
12 |
+
if(!class_exists('acfe_admin_compatibility')):
|
13 |
+
|
14 |
+
class acfe_admin_compatibility{
|
15 |
+
|
16 |
+
/**
|
17 |
+
* construct
|
18 |
+
*/
|
19 |
+
function __construct(){
|
20 |
+
|
21 |
+
add_action('admin_menu', array($this, 'admin_menu'));
|
22 |
+
|
23 |
+
// hooks
|
24 |
+
add_action('acfe/load_posts/post_type=acf-field-group', array($this, 'load_posts'));
|
25 |
+
add_action('acfe/load_post/post_type=acf-field-group', array($this, 'load_post'));
|
26 |
+
|
27 |
+
// acf load post
|
28 |
+
add_action('load-post.php', array($this, 'acf_load_post'), 9);
|
29 |
+
add_action('load-post-new.php', array($this, 'acf_load_post'), 9);
|
30 |
+
|
31 |
+
// current screen
|
32 |
+
add_action('current_screen', array($this, 'current_screen'));
|
33 |
+
|
34 |
+
}
|
35 |
+
|
36 |
+
|
37 |
+
/**
|
38 |
+
* admin_menu
|
39 |
+
*/
|
40 |
+
function admin_menu(){
|
41 |
+
|
42 |
+
// get pages
|
43 |
+
$updates = get_plugin_page_hookname('acf-settings-updates', 'edit.php?post_type=acf-field-group');
|
44 |
+
$tools = get_plugin_page_hookname('acf-tools', 'edit.php?post_type=acf-field-group');
|
45 |
+
|
46 |
+
// actions
|
47 |
+
add_action("load-{$updates}", array($this, 'load_acf_page'));
|
48 |
+
add_action("load-{$tools}", array($this, 'load_acf_page'));
|
49 |
+
|
50 |
+
}
|
51 |
+
|
52 |
+
|
53 |
+
/**
|
54 |
+
* load_acf_page
|
55 |
+
*/
|
56 |
+
function load_acf_page(){
|
57 |
+
add_filter('admin_body_class', array($this, 'admin_body_class'));
|
58 |
+
}
|
59 |
+
|
60 |
+
|
61 |
+
/**
|
62 |
+
* load_posts
|
63 |
+
*/
|
64 |
+
function load_posts(){
|
65 |
+
add_filter('admin_body_class', array($this, 'admin_body_class'));
|
66 |
+
}
|
67 |
+
|
68 |
+
|
69 |
+
/**
|
70 |
+
* load_post
|
71 |
+
*/
|
72 |
+
function load_post(){
|
73 |
+
add_filter('admin_body_class', array($this, 'admin_body_class'));
|
74 |
+
add_action('acf/input/admin_head', array($this, 'admin_head'), 20);
|
75 |
+
}
|
76 |
+
|
77 |
+
|
78 |
+
/**
|
79 |
+
* acf_load_post
|
80 |
+
*
|
81 |
+
* Rewrite the ACF_Form_Post initialize which remove the submitdiv metabox
|
82 |
+
*/
|
83 |
+
function acf_load_post(){
|
84 |
+
|
85 |
+
// remove class action
|
86 |
+
acfe_remove_class_action('ACF_Form_Post', 'load-post.php', 'initialize');
|
87 |
+
acfe_remove_class_action('ACF_Form_Post', 'load-post-new.php', 'initialize');
|
88 |
+
|
89 |
+
// rewrite load post
|
90 |
+
// /advanced-custom-fields-pro/includes/forms/form-post.php:48
|
91 |
+
|
92 |
+
// globals
|
93 |
+
global $typenow;
|
94 |
+
|
95 |
+
// restrict specific post types
|
96 |
+
$restricted = array('acf-field-group', 'attachment');
|
97 |
+
if(in_array($typenow, $restricted)){
|
98 |
+
return;
|
99 |
+
}
|
100 |
+
|
101 |
+
// enqueue scripts
|
102 |
+
acf_enqueue_scripts(array(
|
103 |
+
'uploader' => true,
|
104 |
+
));
|
105 |
+
|
106 |
+
// actions
|
107 |
+
add_action('add_meta_boxes', array(acf_get_instance('ACF_Form_Post'), 'add_meta_boxes'), 10, 2);
|
108 |
+
|
109 |
+
}
|
110 |
+
|
111 |
+
|
112 |
+
/**
|
113 |
+
* admin_body_class
|
114 |
+
*
|
115 |
+
* Adds acf-admin-6 class to body
|
116 |
+
*/
|
117 |
+
function admin_body_class($classes){
|
118 |
+
$classes .= ' acf-admin-6';
|
119 |
+
return $classes;
|
120 |
+
}
|
121 |
+
|
122 |
+
|
123 |
+
/**
|
124 |
+
* admin_head
|
125 |
+
*
|
126 |
+
*/
|
127 |
+
function admin_head(){
|
128 |
+
|
129 |
+
// remove forced 1 column on screen_layout options
|
130 |
+
acfe_remove_class_action('acf_admin_field_group', 'get_user_option_screen_layout_acf-field-group', 'screen_layout');
|
131 |
+
|
132 |
+
// base url
|
133 |
+
$default_icon = acf_get_url('assets/images/icons/icon-fields.svg');
|
134 |
+
|
135 |
+
// generate default field type missing icon
|
136 |
+
?>
|
137 |
+
<style>
|
138 |
+
.field-type-icon:before{
|
139 |
+
-webkit-mask-image: url(<?php echo $default_icon; ?>);
|
140 |
+
mask-image: url(<?php echo $default_icon; ?>);
|
141 |
+
}
|
142 |
+
</style>
|
143 |
+
<?php
|
144 |
+
|
145 |
+
}
|
146 |
+
|
147 |
+
|
148 |
+
/**
|
149 |
+
* current_screen
|
150 |
+
*
|
151 |
+
* @param $screen
|
152 |
+
*/
|
153 |
+
function current_screen($screen){
|
154 |
+
|
155 |
+
// allowed screens
|
156 |
+
$allowed = array(
|
157 |
+
'edit-acf-field-group-category',
|
158 |
+
'edit-acf-field-group',
|
159 |
+
'acf-field-group',
|
160 |
+
'edit-acfe-dbt',
|
161 |
+
'acfe-dbt',
|
162 |
+
'edit-acfe-dop',
|
163 |
+
'acfe-dop',
|
164 |
+
'edit-acfe-template',
|
165 |
+
'acfe-template',
|
166 |
+
'edit-acfe-form',
|
167 |
+
'acfe-form'
|
168 |
+
);
|
169 |
+
|
170 |
+
// check screen
|
171 |
+
if(acfe_maybe_get($screen, 'post_type') === 'acf-field-group' || acf_is_screen($allowed)){
|
172 |
+
add_action('admin_head', array($this, 'admin_head_navigation'));
|
173 |
+
}
|
174 |
+
|
175 |
+
}
|
176 |
+
|
177 |
+
|
178 |
+
/**
|
179 |
+
* admin_head_navigation
|
180 |
+
*/
|
181 |
+
function admin_head_navigation(){
|
182 |
+
|
183 |
+
// base url
|
184 |
+
$base_url = acf_get_url('assets/images/');
|
185 |
+
|
186 |
+
// pages rules
|
187 |
+
$pages = array(
|
188 |
+
'categories' => 'field-type-icons/icon-field-taxonomy.svg',
|
189 |
+
'block-types' => 'icons/icon-fields.svg',
|
190 |
+
'forms' => 'field-type-icons/icon-field-post-object.svg',
|
191 |
+
'options-pages' => 'field-type-icons/icon-field-group.svg',
|
192 |
+
'settings' => 'icons/icon-settings.svg',
|
193 |
+
'templates' => 'field-type-icons/icon-field-wysiwyg.svg',
|
194 |
+
);
|
195 |
+
|
196 |
+
// generate css
|
197 |
+
?>
|
198 |
+
<style>
|
199 |
+
<?php foreach($pages as $page => $icon): ?>
|
200 |
+
.acf-admin-toolbar .acf-header-tab-<?php echo $page; ?> i.acf-icon{
|
201 |
+
display: inline-flex;
|
202 |
+
-webkit-mask-image: url(<?php echo $base_url . $icon; ?>);
|
203 |
+
mask-image: url(<?php echo $base_url . $icon; ?>);
|
204 |
+
}
|
205 |
+
<?php endforeach; ?>
|
206 |
+
</style>
|
207 |
+
<?php
|
208 |
+
|
209 |
+
}
|
210 |
+
|
211 |
+
}
|
212 |
+
|
213 |
+
new acfe_admin_compatibility();
|
214 |
+
|
215 |
+
endif;
|
includes/admin/menu.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_admin_menu')):
|
7 |
|
@@ -12,8 +13,8 @@ class acfe_admin_menu{
|
|
12 |
*/
|
13 |
function __construct(){
|
14 |
|
15 |
-
add_action('current_screen',
|
16 |
-
add_action('admin_menu',
|
17 |
|
18 |
}
|
19 |
|
@@ -24,19 +25,40 @@ class acfe_admin_menu{
|
|
24 |
*/
|
25 |
function current_screen($screen){
|
26 |
|
27 |
-
//
|
28 |
-
if(acf_version_compare(acf_get_setting('version'), '
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
}
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
/**
|
41 |
* admin_menu
|
42 |
*
|
@@ -44,105 +66,77 @@ class acfe_admin_menu{
|
|
44 |
*/
|
45 |
function admin_menu(){
|
46 |
|
|
|
47 |
global $submenu;
|
48 |
|
49 |
-
|
|
|
50 |
return;
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
-
|
53 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
|
|
55 |
foreach($submenu['edit.php?post_type=acf-field-group'] as $k => $item){
|
56 |
|
57 |
-
//
|
58 |
-
|
59 |
-
|
60 |
-
$array[0] = $item;
|
61 |
-
unset($_submenu[$k]);
|
62 |
-
|
63 |
-
}
|
64 |
-
|
65 |
-
// Add New
|
66 |
-
elseif($item[2] === 'post-new.php?post_type=acf-field-group'){
|
67 |
-
|
68 |
-
$array[1] = $item;
|
69 |
-
unset($_submenu[$k]);
|
70 |
-
|
71 |
-
}
|
72 |
-
|
73 |
-
// Categories
|
74 |
-
elseif($item[2] === 'edit-tags.php?taxonomy=acf-field-group-category'){
|
75 |
-
|
76 |
-
$array[2] = $item;
|
77 |
-
unset($_submenu[$k]);
|
78 |
-
|
79 |
-
}
|
80 |
-
|
81 |
-
// Block Types
|
82 |
-
elseif($item[2] === 'edit.php?post_type=acfe-dbt'){
|
83 |
-
|
84 |
-
$array[3] = $item;
|
85 |
-
unset($_submenu[$k]);
|
86 |
-
|
87 |
-
}
|
88 |
-
|
89 |
-
// Forms
|
90 |
-
elseif($item[2] === 'edit.php?post_type=acfe-form'){
|
91 |
-
|
92 |
-
$array[4] = $item;
|
93 |
-
unset($_submenu[$k]);
|
94 |
-
|
95 |
-
}
|
96 |
|
97 |
-
//
|
98 |
-
|
99 |
-
|
100 |
-
$array[5] = $item;
|
101 |
-
unset($_submenu[$k]);
|
102 |
-
|
103 |
-
}
|
104 |
-
|
105 |
-
// Settings
|
106 |
-
elseif($item[2] === 'acfe-settings'){
|
107 |
-
|
108 |
-
$array[6] = $item;
|
109 |
-
unset($_submenu[$k]);
|
110 |
-
|
111 |
-
}
|
112 |
-
|
113 |
-
// Tools
|
114 |
-
elseif($item[2] === 'acf-tools'){
|
115 |
-
|
116 |
-
$array[7] = $item;
|
117 |
-
unset($_submenu[$k]);
|
118 |
-
|
119 |
-
}
|
120 |
|
121 |
-
//
|
122 |
-
|
123 |
-
|
124 |
-
$array[8] = $item;
|
125 |
-
unset($_submenu[$k]);
|
126 |
-
|
127 |
}
|
128 |
|
129 |
}
|
130 |
|
131 |
-
//
|
132 |
-
ksort($
|
133 |
|
134 |
-
//
|
135 |
-
$submenu['edit.php?post_type=acf-field-group'] = $
|
136 |
|
137 |
-
//
|
138 |
-
if(!empty($
|
139 |
-
|
140 |
-
$submenu['edit.php?post_type=acf-field-group'] = array_merge($array, $_submenu);
|
141 |
-
|
142 |
}
|
143 |
|
144 |
}
|
145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
}
|
147 |
|
148 |
new acfe_admin_menu();
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_admin_menu')):
|
8 |
|
13 |
*/
|
14 |
function __construct(){
|
15 |
|
16 |
+
add_action('current_screen', array($this, 'current_screen'));
|
17 |
+
add_action('admin_menu', array($this, 'admin_menu'), 999);
|
18 |
|
19 |
}
|
20 |
|
25 |
*/
|
26 |
function current_screen($screen){
|
27 |
|
28 |
+
// check version
|
29 |
+
if(acf_version_compare(acf_get_setting('version'), '>=', '5.9')){
|
30 |
+
|
31 |
+
// allowed screens
|
32 |
+
$allowed = array(
|
33 |
+
'edit-acf-field-group-category',
|
34 |
+
'edit-acfe-dbt',
|
35 |
+
'acfe-dbt',
|
36 |
+
'edit-acfe-dop',
|
37 |
+
'acfe-dop',
|
38 |
+
'edit-acfe-template',
|
39 |
+
'acfe-template',
|
40 |
+
'edit-acfe-form',
|
41 |
+
'acfe-form'
|
42 |
+
);
|
43 |
+
|
44 |
+
// chgeck allowed
|
45 |
+
if(acf_is_screen($allowed)){
|
46 |
+
add_action('in_admin_header', array($this, 'in_admin_header'));
|
47 |
+
}
|
48 |
+
|
49 |
+
}
|
50 |
|
51 |
}
|
52 |
|
53 |
+
|
54 |
+
/**
|
55 |
+
* in_admin_header
|
56 |
+
*/
|
57 |
+
function in_admin_header(){
|
58 |
+
acf_get_view('html-admin-navigation');
|
59 |
+
}
|
60 |
+
|
61 |
+
|
62 |
/**
|
63 |
* admin_menu
|
64 |
*
|
66 |
*/
|
67 |
function admin_menu(){
|
68 |
|
69 |
+
// global
|
70 |
global $submenu;
|
71 |
|
72 |
+
// bail early
|
73 |
+
if(!acf_maybe_get($submenu, 'edit.php?post_type=acf-field-group')){
|
74 |
return;
|
75 |
+
}
|
76 |
+
|
77 |
+
// vars
|
78 |
+
$new_menu = array();
|
79 |
+
$all_menu = $submenu['edit.php?post_type=acf-field-group'];
|
80 |
|
81 |
+
// order
|
82 |
+
$order = array(
|
83 |
+
'edit.php?post_type=acf-field-group',
|
84 |
+
'post-new.php?post_type=acf-field-group',
|
85 |
+
'edit-tags.php?taxonomy=acf-field-group-category',
|
86 |
+
'edit.php?post_type=acfe-dbt',
|
87 |
+
'edit.php?post_type=acfe-form',
|
88 |
+
'edit.php?post_type=acfe-dop',
|
89 |
+
'acfe-settings',
|
90 |
+
'acf-tools',
|
91 |
+
'acf-settings-updates',
|
92 |
+
);
|
93 |
|
94 |
+
// loop
|
95 |
foreach($submenu['edit.php?post_type=acf-field-group'] as $k => $item){
|
96 |
|
97 |
+
//name
|
98 |
+
$name = $item[2];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
|
100 |
+
// search
|
101 |
+
$position = array_search($name, $order);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
+
// found position
|
104 |
+
if($position !== false){
|
105 |
+
$this->assign_submenu($new_menu, $position, $item, $all_menu, $k);
|
|
|
|
|
|
|
106 |
}
|
107 |
|
108 |
}
|
109 |
|
110 |
+
// sort new menu
|
111 |
+
ksort($new_menu);
|
112 |
|
113 |
+
// assign new menu
|
114 |
+
$submenu['edit.php?post_type=acf-field-group'] = $new_menu;
|
115 |
|
116 |
+
// add menu items that are left
|
117 |
+
if(!empty($all_menu)){
|
118 |
+
$submenu['edit.php?post_type=acf-field-group'] = array_merge($new_menu, $all_menu);
|
|
|
|
|
119 |
}
|
120 |
|
121 |
}
|
122 |
|
123 |
+
|
124 |
+
/**
|
125 |
+
* assign_submenu
|
126 |
+
*
|
127 |
+
* @param $new_menu
|
128 |
+
* @param $new_menu_key
|
129 |
+
* @param $item
|
130 |
+
* @param $all_menu
|
131 |
+
* @param $all_menu_key
|
132 |
+
*/
|
133 |
+
function assign_submenu(&$new_menu, $new_menu_key, $item, &$all_menu, $all_menu_key){
|
134 |
+
|
135 |
+
$new_menu[ $new_menu_key ] = $item;
|
136 |
+
unset($all_menu[ $all_menu_key ]);
|
137 |
+
|
138 |
+
}
|
139 |
+
|
140 |
}
|
141 |
|
142 |
new acfe_admin_menu();
|
includes/admin/plugins.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_admin_plugins')):
|
7 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_admin_plugins')):
|
8 |
|
includes/admin/settings.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_admin_settings')):
|
7 |
|
@@ -31,7 +32,15 @@ class acfe_admin_settings{
|
|
31 |
* Post Init
|
32 |
*/
|
33 |
function acf_post_init(){
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
36 |
|
37 |
/*
|
@@ -69,7 +78,7 @@ class acfe_admin_settings{
|
|
69 |
'label' => 'Strip slashes',
|
70 |
'name' => 'stripslashes',
|
71 |
'type' => 'true_false',
|
72 |
-
'description' => 'Runs the function stripslashes on all $_POST data. Some servers / WP instals may require this extra
|
73 |
'category' => 'acf',
|
74 |
),
|
75 |
array(
|
@@ -463,8 +472,9 @@ class acfe_admin_settings_ui{
|
|
463 |
*/
|
464 |
function admin_menu(){
|
465 |
|
466 |
-
if(!acf_get_setting('show_admin'))
|
467 |
return;
|
|
|
468 |
|
469 |
$page = add_submenu_page('edit.php?post_type=acf-field-group', __('Settings'), __('Settings'), acf_get_setting('capability'), 'acfe-settings', array($this, 'menu_html'));
|
470 |
|
@@ -500,6 +510,18 @@ class acfe_admin_settings_ui{
|
|
500 |
// Enqueue
|
501 |
acf_enqueue_scripts();
|
502 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
503 |
}
|
504 |
|
505 |
/*
|
@@ -679,12 +701,15 @@ class acfe_admin_settings_ui{
|
|
679 |
<?php
|
680 |
}
|
681 |
));
|
|
|
|
|
682 |
|
683 |
foreach($fields as $field){ ?>
|
684 |
|
685 |
<div class="acf-field">
|
686 |
<div class="acf-label">
|
687 |
-
<
|
|
|
688 |
<?php if($field['description']){ ?>
|
689 |
<p class="description"><?php echo $field['description']; ?></p>
|
690 |
<?php } ?>
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_admin_settings')):
|
8 |
|
32 |
* Post Init
|
33 |
*/
|
34 |
function acf_post_init(){
|
35 |
+
|
36 |
+
$settings = acf_get_array(acf()->settings);
|
37 |
+
|
38 |
+
foreach($settings as $name => $value){
|
39 |
+
|
40 |
+
// pass thru acf/settings filter
|
41 |
+
$this->updated[ $name ] = acf_get_setting($name, $value);
|
42 |
+
}
|
43 |
+
|
44 |
}
|
45 |
|
46 |
/*
|
78 |
'label' => 'Strip slashes',
|
79 |
'name' => 'stripslashes',
|
80 |
'type' => 'true_false',
|
81 |
+
'description' => 'Runs the function stripslashes on all $_POST data. Some servers / WP instals may require this extra functionality. Defaults to false',
|
82 |
'category' => 'acf',
|
83 |
),
|
84 |
array(
|
472 |
*/
|
473 |
function admin_menu(){
|
474 |
|
475 |
+
if(!acf_get_setting('show_admin')){
|
476 |
return;
|
477 |
+
}
|
478 |
|
479 |
$page = add_submenu_page('edit.php?post_type=acf-field-group', __('Settings'), __('Settings'), acf_get_setting('capability'), 'acfe-settings', array($this, 'menu_html'));
|
480 |
|
510 |
// Enqueue
|
511 |
acf_enqueue_scripts();
|
512 |
|
513 |
+
add_action('admin_footer', array($this, 'admin_footer'));
|
514 |
+
|
515 |
+
}
|
516 |
+
|
517 |
+
function admin_footer(){
|
518 |
+
?>
|
519 |
+
<script type="text/javascript">
|
520 |
+
(function($) {
|
521 |
+
$('body').removeClass('post-type-acf-field-group');
|
522 |
+
})(jQuery);
|
523 |
+
</script>
|
524 |
+
<?php
|
525 |
}
|
526 |
|
527 |
/*
|
701 |
<?php
|
702 |
}
|
703 |
));
|
704 |
+
|
705 |
+
$icon = acf_version_compare('wp', '>=', '5.5') ? 'dashicons-info-outline' : 'dashicons-info';
|
706 |
|
707 |
foreach($fields as $field){ ?>
|
708 |
|
709 |
<div class="acf-field">
|
710 |
<div class="acf-label">
|
711 |
+
<span class="acfe-field-tooltip acf-js-tooltip dashicons <?php echo $icon; ?>" title="<?php echo $field['name']; ?>"></span>
|
712 |
+
<label><?php echo $field['label']; ?></label>
|
713 |
<?php if($field['description']){ ?>
|
714 |
<p class="description"><?php echo $field['description']; ?></p>
|
715 |
<?php } ?>
|
includes/admin/tools/block-types-export.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
// Check setting
|
7 |
if(!acf_get_setting('acfe/modules/block_types'))
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
// Check setting
|
8 |
if(!acf_get_setting('acfe/modules/block_types'))
|
includes/admin/tools/block-types-import.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
// Check setting
|
7 |
if(!acf_get_setting('acfe/modules/block_types'))
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
// Check setting
|
8 |
if(!acf_get_setting('acfe/modules/block_types'))
|
includes/admin/tools/field-groups-export.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_groups_export')):
|
7 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_groups_export')):
|
8 |
|
includes/admin/tools/field-groups-local.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_groups_local_export')):
|
7 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_groups_local_export')):
|
8 |
|
includes/admin/tools/forms-export.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
// Check setting
|
7 |
if(!acf_get_setting('acfe/modules/forms'))
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
// Check setting
|
8 |
if(!acf_get_setting('acfe/modules/forms'))
|
includes/admin/tools/forms-import.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
// Check setting
|
7 |
if(!acf_get_setting('acfe/modules/forms'))
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
// Check setting
|
8 |
if(!acf_get_setting('acfe/modules/forms'))
|
includes/admin/tools/module-export.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_module_export')):
|
7 |
|
@@ -41,7 +42,19 @@ class acfe_module_export extends ACF_Admin_Tool{
|
|
41 |
$choices = $this->instance->export_choices();
|
42 |
|
43 |
?>
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
<div class="acf-fields">
|
47 |
<?php
|
@@ -57,6 +70,7 @@ class acfe_module_export extends ACF_Admin_Tool{
|
|
57 |
'value' => false,
|
58 |
'toggle' => true,
|
59 |
'choices' => $choices,
|
|
|
60 |
));
|
61 |
|
62 |
}
|
@@ -85,6 +99,11 @@ class acfe_module_export extends ACF_Admin_Tool{
|
|
85 |
<?php } ?>
|
86 |
|
87 |
</p>
|
|
|
|
|
|
|
|
|
|
|
88 |
<?php
|
89 |
|
90 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_module_export')):
|
8 |
|
42 |
$choices = $this->instance->export_choices();
|
43 |
|
44 |
?>
|
45 |
+
|
46 |
+
<?php if(acfe_is_acf_6()): ?>
|
47 |
+
|
48 |
+
<div class="acf-postbox-header">
|
49 |
+
<h2 class="acf-postbox-title"><?php echo $this->description; ?></h2>
|
50 |
+
</div>
|
51 |
+
<div class="acf-postbox-inner">
|
52 |
+
|
53 |
+
<?php else: ?>
|
54 |
+
|
55 |
+
<p><?php echo $this->description; ?></p>
|
56 |
+
|
57 |
+
<?php endif; ?>
|
58 |
|
59 |
<div class="acf-fields">
|
60 |
<?php
|
70 |
'value' => false,
|
71 |
'toggle' => true,
|
72 |
'choices' => $choices,
|
73 |
+
'class' => 'acfe-module-export-choices'
|
74 |
));
|
75 |
|
76 |
}
|
99 |
<?php } ?>
|
100 |
|
101 |
</p>
|
102 |
+
|
103 |
+
<?php if(acfe_is_acf_6()): ?>
|
104 |
+
</div>
|
105 |
+
<?php endif; ?>
|
106 |
+
|
107 |
<?php
|
108 |
|
109 |
}
|
includes/admin/tools/module-import.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_module_import')):
|
7 |
|
@@ -15,7 +16,19 @@ class acfe_module_import extends ACF_Admin_Tool{
|
|
15 |
function html(){
|
16 |
|
17 |
?>
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
<div class="acf-fields">
|
21 |
<?php
|
@@ -34,6 +47,11 @@ class acfe_module_import extends ACF_Admin_Tool{
|
|
34 |
<p class="acf-submit">
|
35 |
<button type="submit" name="action" class="button button-primary"><?php _e('Import File'); ?></button>
|
36 |
</p>
|
|
|
|
|
|
|
|
|
|
|
37 |
<?php
|
38 |
|
39 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_module_import')):
|
8 |
|
16 |
function html(){
|
17 |
|
18 |
?>
|
19 |
+
|
20 |
+
<?php if(acfe_is_acf_6()): ?>
|
21 |
+
|
22 |
+
<div class="acf-postbox-header">
|
23 |
+
<h2 class="acf-postbox-title"><?php echo $this->description; ?></h2>
|
24 |
+
</div>
|
25 |
+
<div class="acf-postbox-inner">
|
26 |
+
|
27 |
+
<?php else: ?>
|
28 |
+
|
29 |
+
<p><?php echo $this->description; ?></p>
|
30 |
+
|
31 |
+
<?php endif; ?>
|
32 |
|
33 |
<div class="acf-fields">
|
34 |
<?php
|
47 |
<p class="acf-submit">
|
48 |
<button type="submit" name="action" class="button button-primary"><?php _e('Import File'); ?></button>
|
49 |
</p>
|
50 |
+
|
51 |
+
<?php if(acfe_is_acf_6()): ?>
|
52 |
+
</div>
|
53 |
+
<?php endif; ?>
|
54 |
+
|
55 |
<?php
|
56 |
|
57 |
}
|
includes/admin/tools/options-pages-export.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
// Check setting
|
7 |
if(!acf_get_setting('acfe/modules/options_pages'))
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
// Check setting
|
8 |
if(!acf_get_setting('acfe/modules/options_pages'))
|
includes/admin/tools/options-pages-import.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
// Check setting
|
7 |
if(!acf_get_setting('acfe/modules/options_pages'))
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
// Check setting
|
8 |
if(!acf_get_setting('acfe/modules/options_pages'))
|
includes/admin/tools/post-types-export.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
// Check setting
|
7 |
if(!acf_get_setting('acfe/modules/post_types'))
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
// Check setting
|
8 |
if(!acf_get_setting('acfe/modules/post_types'))
|
includes/admin/tools/post-types-import.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
// Check setting
|
7 |
if(!acf_get_setting('acfe/modules/post_types'))
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
// Check setting
|
8 |
if(!acf_get_setting('acfe/modules/post_types'))
|
includes/admin/tools/taxonomies-export.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
// Check setting
|
7 |
if(!acf_get_setting('acfe/modules/taxonomies'))
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
// Check setting
|
8 |
if(!acf_get_setting('acfe/modules/taxonomies'))
|
includes/admin/tools/taxonomies-import.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
// Check setting
|
7 |
if(!acf_get_setting('acfe/modules/taxonomies'))
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
// Check setting
|
8 |
if(!acf_get_setting('acfe/modules/taxonomies'))
|
includes/assets.php
CHANGED
@@ -1,107 +1,145 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_assets')):
|
7 |
|
8 |
class acfe_assets{
|
9 |
|
10 |
-
|
11 |
-
*
|
12 |
*/
|
13 |
function __construct(){
|
14 |
|
15 |
// Hooks
|
16 |
add_action('init', array($this, 'init'));
|
17 |
-
add_action('admin_enqueue_scripts', array($this, '
|
18 |
-
add_action('acf/
|
|
|
|
|
19 |
|
20 |
}
|
21 |
|
22 |
-
|
23 |
-
|
|
|
24 |
*/
|
25 |
function init(){
|
26 |
-
|
|
|
27 |
$version = ACFE_VERSION;
|
28 |
$min = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
|
29 |
|
30 |
// register scripts
|
31 |
-
wp_register_script('acf-extended', acfe_get_url("assets/js/acfe{$min}.js"), array('acf
|
32 |
-
wp_register_script('acf-extended-input', acfe_get_url("assets/js/acfe-input{$min}.js"), array('acf-extended'),
|
33 |
-
wp_register_script('acf-extended-admin', acfe_get_url("assets/js/acfe-admin{$min}.js"), array('acf-extended'),
|
34 |
-
wp_register_script('acf-extended-field-group', acfe_get_url("assets/js/acfe-field-group{$min}.js"), array('acf-field-group'), $version);
|
35 |
-
wp_register_script('acf-extended-ui', acfe_get_url("assets/js/acfe-ui{$min}.js"), array('acf-extended'),
|
36 |
|
37 |
// register styles
|
38 |
-
wp_register_style('acf-extended', acfe_get_url("assets/css/acfe{$min}.css"), array(),
|
39 |
-
wp_register_style('acf-extended-input', acfe_get_url("assets/css/acfe-input{$min}.css"), array(),
|
40 |
-
wp_register_style('acf-extended-admin', acfe_get_url("assets/css/acfe-admin{$min}.css"), array(),
|
41 |
-
wp_register_style('acf-extended-field-group', acfe_get_url("assets/css/acfe-field-group{$min}.css"), array(),
|
42 |
-
wp_register_style('acf-extended-ui', acfe_get_url("assets/css/acfe-ui{$min}.css"), array(),
|
43 |
|
44 |
}
|
45 |
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
48 |
*/
|
49 |
-
function
|
50 |
|
51 |
-
//
|
52 |
wp_enqueue_style('acf-extended-admin');
|
53 |
|
54 |
-
//
|
55 |
if(acf_is_screen(array('edit-acf-field-group', 'acf-field-group'))){
|
56 |
-
|
57 |
wp_enqueue_style('acf-extended-field-group');
|
58 |
-
|
59 |
}
|
60 |
|
61 |
}
|
62 |
|
63 |
-
|
64 |
-
|
|
|
|
|
|
|
|
|
|
|
65 |
*/
|
66 |
function acf_admin_enqueue_scripts(){
|
67 |
|
68 |
-
//
|
69 |
wp_enqueue_style('acf-extended');
|
70 |
wp_enqueue_script('acf-extended');
|
|
|
|
|
71 |
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
wp_enqueue_style('acf-extended-input');
|
74 |
wp_enqueue_script('acf-extended-input');
|
75 |
|
76 |
-
//
|
77 |
if(is_admin()){
|
78 |
-
|
79 |
wp_enqueue_script('acf-extended-admin');
|
80 |
-
|
81 |
}
|
82 |
|
83 |
-
//
|
84 |
if(acf_is_screen(array('acf-field-group'))){
|
85 |
-
|
86 |
wp_enqueue_script('acf-extended-field-group');
|
87 |
-
|
88 |
}
|
89 |
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
|
|
|
|
98 |
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
'Close' => __('Close', 'acfe'),
|
101 |
'Read more' => __('Read more', 'acfe'),
|
102 |
'Details' => __('Details', 'acfe'),
|
103 |
'Debug' => __('Debug', 'acfe'),
|
104 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
}
|
107 |
|
@@ -109,4 +147,51 @@ class acfe_assets{
|
|
109 |
|
110 |
new acfe_assets();
|
111 |
|
112 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_assets')):
|
8 |
|
9 |
class acfe_assets{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
*/
|
14 |
function __construct(){
|
15 |
|
16 |
// Hooks
|
17 |
add_action('init', array($this, 'init'));
|
18 |
+
add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));
|
19 |
+
add_action('acf/admin_enqueue_scripts', array($this, 'acf_admin_enqueue_scripts'));
|
20 |
+
add_action('acf/input/admin_enqueue_scripts', array($this, 'acf_input_admin_enqueue_scripts'));
|
21 |
+
add_action('acf/enqueue_scripts', array($this, 'acf_enqueue_scripts'), 99);
|
22 |
|
23 |
}
|
24 |
|
25 |
+
|
26 |
+
/**
|
27 |
+
* init
|
28 |
*/
|
29 |
function init(){
|
30 |
+
|
31 |
+
// vars
|
32 |
$version = ACFE_VERSION;
|
33 |
$min = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
|
34 |
|
35 |
// register scripts
|
36 |
+
wp_register_script('acf-extended', acfe_get_url("assets/js/acfe{$min}.js"), array('acf'), $version);
|
37 |
+
wp_register_script('acf-extended-input', acfe_get_url("assets/js/acfe-input{$min}.js"), array('acf-extended', 'acf-input'), $version);
|
38 |
+
wp_register_script('acf-extended-admin', acfe_get_url("assets/js/acfe-admin{$min}.js"), array('acf-extended'), $version);
|
39 |
+
wp_register_script('acf-extended-field-group', acfe_get_url("assets/js/acfe-field-group{$min}.js"), array('acf-extended', 'acf-field-group'), $version);
|
40 |
+
wp_register_script('acf-extended-ui', acfe_get_url("assets/js/acfe-ui{$min}.js"), array('acf-extended'), $version);
|
41 |
|
42 |
// register styles
|
43 |
+
wp_register_style('acf-extended', acfe_get_url("assets/css/acfe{$min}.css"), array(), $version);
|
44 |
+
wp_register_style('acf-extended-input', acfe_get_url("assets/css/acfe-input{$min}.css"), array(), $version);
|
45 |
+
wp_register_style('acf-extended-admin', acfe_get_url("assets/css/acfe-admin{$min}.css"), array(), $version);
|
46 |
+
wp_register_style('acf-extended-field-group', acfe_get_url("assets/css/acfe-field-group{$min}.css"), array(), $version);
|
47 |
+
wp_register_style('acf-extended-ui', acfe_get_url("assets/css/acfe-ui{$min}.css"), array(), $version);
|
48 |
|
49 |
}
|
50 |
|
51 |
+
|
52 |
+
/**
|
53 |
+
* admin_enqueue_scripts
|
54 |
+
*
|
55 |
+
* All admin pages
|
56 |
*/
|
57 |
+
function admin_enqueue_scripts(){
|
58 |
|
59 |
+
// admin
|
60 |
wp_enqueue_style('acf-extended-admin');
|
61 |
|
62 |
+
// field groups
|
63 |
if(acf_is_screen(array('edit-acf-field-group', 'acf-field-group'))){
|
|
|
64 |
wp_enqueue_style('acf-extended-field-group');
|
|
|
65 |
}
|
66 |
|
67 |
}
|
68 |
|
69 |
+
|
70 |
+
/**
|
71 |
+
* acf_admin_enqueue_scripts
|
72 |
+
*
|
73 |
+
* acf/admin_enqueue_scripts
|
74 |
+
*
|
75 |
+
* When acf_enqueue_script('acf') is used
|
76 |
*/
|
77 |
function acf_admin_enqueue_scripts(){
|
78 |
|
79 |
+
// global
|
80 |
wp_enqueue_style('acf-extended');
|
81 |
wp_enqueue_script('acf-extended');
|
82 |
+
|
83 |
+
}
|
84 |
|
85 |
+
|
86 |
+
/**
|
87 |
+
* acf_input_admin_enqueue_scripts
|
88 |
+
*
|
89 |
+
* acf/input/admin_enqueue_scripts
|
90 |
+
*
|
91 |
+
* When acf_enqueue_scripts() is used (including acf-input.js)
|
92 |
+
*/
|
93 |
+
function acf_input_admin_enqueue_scripts(){
|
94 |
+
|
95 |
+
// input
|
96 |
wp_enqueue_style('acf-extended-input');
|
97 |
wp_enqueue_script('acf-extended-input');
|
98 |
|
99 |
+
// admin
|
100 |
if(is_admin()){
|
|
|
101 |
wp_enqueue_script('acf-extended-admin');
|
|
|
102 |
}
|
103 |
|
104 |
+
// field group
|
105 |
if(acf_is_screen(array('acf-field-group'))){
|
|
|
106 |
wp_enqueue_script('acf-extended-field-group');
|
|
|
107 |
}
|
108 |
|
109 |
+
}
|
110 |
+
|
111 |
+
/**
|
112 |
+
* acf_enqueue_scripts
|
113 |
+
*
|
114 |
+
* acf/enqueue_scripts:99
|
115 |
+
*
|
116 |
+
* When acf_enqueue_script('acf') is used (late)
|
117 |
+
*/
|
118 |
+
function acf_enqueue_scripts(){
|
119 |
|
120 |
+
// data
|
121 |
+
$data = array(
|
122 |
+
'version' => ACFE_VERSION,
|
123 |
+
'home_url' => home_url(),
|
124 |
+
'is_admin' => is_admin(),
|
125 |
+
'is_user_logged_in' => is_user_logged_in(),
|
126 |
+
);
|
127 |
+
|
128 |
+
// text
|
129 |
+
$text = array(
|
130 |
'Close' => __('Close', 'acfe'),
|
131 |
'Read more' => __('Read more', 'acfe'),
|
132 |
'Details' => __('Details', 'acfe'),
|
133 |
'Debug' => __('Debug', 'acfe'),
|
134 |
+
);
|
135 |
+
|
136 |
+
// filters
|
137 |
+
$data = apply_filters('acfe/localize_data', $data);
|
138 |
+
$text = apply_filters('acfe/localize_text', $text);
|
139 |
+
|
140 |
+
// localize
|
141 |
+
acfe_localize_data($data);
|
142 |
+
acf_localize_text($text);
|
143 |
|
144 |
}
|
145 |
|
147 |
|
148 |
new acfe_assets();
|
149 |
|
150 |
+
endif;
|
151 |
+
|
152 |
+
/**
|
153 |
+
* acfe_localize_data
|
154 |
+
*
|
155 |
+
* @param $data
|
156 |
+
*/
|
157 |
+
function acfe_localize_data($data){
|
158 |
+
|
159 |
+
$acfe_data = acfe_get_localize_data();
|
160 |
+
$acfe_data = array_merge($acfe_data, $data);
|
161 |
+
|
162 |
+
acf_localize_data(array('acfe' => $acfe_data));
|
163 |
+
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
+
/**
|
168 |
+
* acfe_get_localize_data
|
169 |
+
* @return array|false|string[]
|
170 |
+
*/
|
171 |
+
function acfe_get_localize_data(){
|
172 |
+
|
173 |
+
return acf_get_array(acf_maybe_get(acf_get_instance('ACF_Assets')->data, 'acfe', array()));
|
174 |
+
|
175 |
+
}
|
176 |
+
|
177 |
+
|
178 |
+
/**
|
179 |
+
* acfe_localize_append_data
|
180 |
+
*
|
181 |
+
* @param $name
|
182 |
+
* @param $data
|
183 |
+
*/
|
184 |
+
function acfe_append_localize_data($name, $data){
|
185 |
+
|
186 |
+
$acfe_data = acfe_get_localize_data();
|
187 |
+
|
188 |
+
if(!isset($acfe_data[ $name ])){
|
189 |
+
$acfe_data[ $name ] = array();
|
190 |
+
}
|
191 |
+
|
192 |
+
$acfe_data[ $name ] = acf_get_array($acfe_data[ $name ]);
|
193 |
+
$acfe_data[ $name ][] = $data;
|
194 |
+
|
195 |
+
acfe_localize_data($acfe_data);
|
196 |
+
|
197 |
+
}
|
includes/compatibility.php
CHANGED
@@ -1,162 +1,104 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
|
4 |
-
use WPGraphQL\Model\Term;
|
5 |
-
|
6 |
-
if(!defined('ABSPATH'))
|
7 |
exit;
|
|
|
8 |
|
9 |
if(!class_exists('acfe_compatibility')):
|
10 |
|
11 |
class acfe_compatibility{
|
12 |
|
|
|
|
|
|
|
13 |
function __construct(){
|
14 |
-
|
15 |
-
add_action('acf/init', array($this, 'init'), 98);
|
16 |
-
add_action('after_plugin_row_' . ACFE_BASENAME, array($this, 'plugin_row'), 5, 3);
|
17 |
-
|
18 |
-
add_filter('acfe/form/import_args', array($this, 'acfe_form_import_compatibility'), 10, 3);
|
19 |
-
add_filter('pto/posts_orderby/ignore', array($this, 'pto_acf_field_group'), 10, 3);
|
20 |
-
add_filter('pto/get_options', array($this, 'pto_options_acf_field_group'));
|
21 |
-
|
22 |
-
add_action('admin_menu', array($this, 'cotto_submenu'), 999);
|
23 |
-
add_filter('rank_math/metabox/priority', array($this, 'rankmath_metaboxes_priority'));
|
24 |
-
add_filter('wpseo_metabox_prio', array($this, 'yoast_metaboxes_priority'));
|
25 |
-
add_filter('pll_get_post_types', array($this, 'polylang'), 10, 2);
|
26 |
-
add_action('elementor/documents/register_controls', array($this, 'elementor'));
|
27 |
-
add_filter('wpgraphql_acf_supported_fields', array($this, 'wpgraphql_supported_fields'));
|
28 |
-
add_filter('wpgraphql_acf_register_graphql_field', array($this, 'wpgraphql_register_field'), 10, 4);
|
29 |
-
|
30 |
-
}
|
31 |
-
|
32 |
-
function plugin_row($plugin_file, $plugin_data, $status){
|
33 |
-
|
34 |
-
// Bail early
|
35 |
-
if(acfe()->acf()) return;
|
36 |
-
|
37 |
-
// Check WP version
|
38 |
-
$colspan = version_compare($GLOBALS['wp_version'], '5.5', '<') ? 3 : 4;
|
39 |
-
|
40 |
-
?>
|
41 |
-
<style>
|
42 |
-
.plugins tr[data-plugin='<?php echo ACFE_BASENAME; ?>'] th,
|
43 |
-
.plugins tr[data-plugin='<?php echo ACFE_BASENAME; ?>'] td{
|
44 |
-
box-shadow:none;
|
45 |
-
}
|
46 |
-
|
47 |
-
<?php if(isset($plugin_data['update']) && !empty($plugin_data['update'])){ ?>
|
48 |
-
|
49 |
-
.plugins tr.acfe-plugin-tr td{
|
50 |
-
box-shadow:none !important;
|
51 |
-
}
|
52 |
-
|
53 |
-
.plugins tr.acfe-plugin-tr .update-message{
|
54 |
-
margin-bottom:0;
|
55 |
-
}
|
56 |
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
<tr class="plugin-update-tr active acfe-plugin-tr">
|
61 |
-
<td colspan="<?php echo $colspan; ?>" class="plugin-update colspanchange">
|
62 |
-
<div class="update-message notice inline notice-error notice-alt">
|
63 |
-
<p><?php _e('ACF Extended requires <a href="https://www.advancedcustomfields.com/pro/" target="_blank">Advanced Custom Fields PRO</a> (minimum: 5.8).', 'acfe'); ?></p>
|
64 |
-
</div>
|
65 |
-
</td>
|
66 |
-
</tr>
|
67 |
-
<?php
|
68 |
-
|
69 |
-
}
|
70 |
-
|
71 |
-
function init(){
|
72 |
|
73 |
-
|
74 |
-
|
75 |
add_filter('acf/validate_field_group', array($this, 'field_group_location_list'), 20);
|
76 |
add_filter('acf/validate_field', array($this, 'field_acfe_update'), 20);
|
77 |
-
|
78 |
add_filter('acf/validate_field/type=group', array($this, 'field_seamless_style'), 20);
|
79 |
add_filter('acf/validate_field/type=clone', array($this, 'field_seamless_style'), 20);
|
80 |
add_filter('acf/validate_field/type=acfe_dynamic_message', array($this, 'field_dynamic_message'), 20);
|
|
|
|
|
|
|
81 |
add_filter('acfe/load_fields/type=flexible_content', array($this, 'field_flexible_settings_title'), 20, 2);
|
82 |
-
|
83 |
add_filter('acf/prepare_field/name=acfe_flexible_category', array($this, 'field_flexible_layout_categories'), 10, 2);
|
84 |
|
|
|
|
|
|
|
85 |
}
|
86 |
|
|
|
87 |
/**
|
88 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
*/
|
90 |
-
function
|
91 |
-
|
92 |
-
// ACF Extended: 0.8.8 - 'acfe/modules/taxonomies' is now used for the old 'acfe/modules/dynamic_taxonomies'
|
93 |
-
// ACF Extended: 0.8.6.3 - Renamed 'acfe/modules/taxonomies' to 'acfe/modules/ui'
|
94 |
-
//if(acf_get_setting('acfe/modules/taxonomies') !== null){
|
95 |
-
// acf_update_setting('acfe/modules/ui', acf_get_setting('acfe/modules/taxonomies'));
|
96 |
-
//}
|
97 |
-
|
98 |
-
// ACF Extended: 0.8 - Renamed 'acfe_php*' to 'acfe/php*'
|
99 |
-
if(acf_get_setting('acfe_php') !== null){
|
100 |
-
acf_update_setting('acfe/php', acf_get_setting('acfe_php'));
|
101 |
-
}
|
102 |
-
|
103 |
-
if(acf_get_setting('php_save') !== null){
|
104 |
-
acf_update_setting('acfe/php_save', acf_get_setting('php_save'));
|
105 |
-
}
|
106 |
-
|
107 |
-
if(acf_get_setting('php_load') !== null){
|
108 |
-
acf_update_setting('acfe/php_load', acf_get_setting('php_load'));
|
109 |
-
}
|
110 |
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
if(acf_get_setting('acfe/modules/dynamic_options_pages') !== null){
|
125 |
-
acf_update_setting('acfe/modules/options_pages', acf_get_setting('acfe/modules/dynamic_options_pages'));
|
126 |
-
}
|
127 |
-
|
128 |
-
if(acf_get_setting('acfe/modules/dynamic_post_types') !== null){
|
129 |
-
acf_update_setting('acfe/modules/post_types', acf_get_setting('acfe/modules/dynamic_post_types'));
|
130 |
-
}
|
131 |
|
132 |
-
|
133 |
-
|
|
|
|
|
|
|
|
|
|
|
134 |
}
|
135 |
|
136 |
}
|
137 |
-
|
|
|
138 |
/**
|
139 |
-
*
|
|
|
|
|
|
|
140 |
* Field Group Location: Archive renamed to List
|
|
|
|
|
141 |
*/
|
142 |
function field_group_location_list($field_group){
|
143 |
|
144 |
-
if(!acf_maybe_get($field_group, 'location'))
|
145 |
return $field_group;
|
|
|
146 |
|
147 |
foreach($field_group['location'] as &$or){
|
148 |
|
149 |
foreach($or as &$and){
|
150 |
|
151 |
-
if(!isset($and['value']))
|
152 |
continue;
|
|
|
153 |
|
154 |
// Post Type List
|
155 |
if($and['param'] === 'post_type' && acfe_ends_with($and['value'], '_archive')){
|
156 |
-
|
157 |
$and['param'] = 'post_type_list';
|
158 |
$and['value'] = substr_replace($and['value'], '', -8);
|
159 |
-
|
160 |
}
|
161 |
|
162 |
// Taxonomy List
|
@@ -174,41 +116,59 @@ class acfe_compatibility{
|
|
174 |
return $field_group;
|
175 |
|
176 |
}
|
177 |
-
|
|
|
178 |
/**
|
179 |
-
*
|
180 |
-
*
|
|
|
|
|
|
|
|
|
|
|
181 |
*/
|
182 |
function field_acfe_update($field){
|
183 |
|
184 |
-
if(!acf_maybe_get($field, 'acfe_update'))
|
185 |
return $field;
|
|
|
186 |
|
187 |
unset($field['acfe_update']);
|
188 |
|
189 |
return $field;
|
190 |
|
191 |
}
|
192 |
-
|
|
|
193 |
/**
|
194 |
-
*
|
195 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
*/
|
197 |
function field_seamless_style($field){
|
198 |
|
199 |
if($seamless = acf_maybe_get($field, 'acfe_seemless_style', false)){
|
200 |
-
|
201 |
$field['acfe_seamless_style'] = $seamless;
|
202 |
-
|
203 |
}
|
204 |
|
205 |
return $field;
|
206 |
|
207 |
}
|
208 |
|
|
|
209 |
/**
|
210 |
-
*
|
211 |
-
*
|
|
|
|
|
|
|
|
|
|
|
212 |
*/
|
213 |
function field_dynamic_message($field){
|
214 |
|
@@ -217,16 +177,101 @@ class acfe_compatibility{
|
|
217 |
return $field;
|
218 |
|
219 |
}
|
220 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
/**
|
222 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
* Field Flexible Content: Fix duplicated "layout_settings" & "layout_title"
|
|
|
|
|
224 |
*/
|
225 |
function field_flexible_settings_title($fields, $parent){
|
226 |
|
227 |
// Check if is tool screen
|
228 |
-
if(!acf_is_screen(acfe_get_acf_screen_id('acf-tools')))
|
229 |
return $fields;
|
|
|
230 |
|
231 |
foreach($fields as $_k => $_field){
|
232 |
|
@@ -234,8 +279,9 @@ class acfe_compatibility{
|
|
234 |
$_field_name = acf_maybe_get($_field, 'name');
|
235 |
|
236 |
// check 'acfe_flexible_layout_title' & 'layout_settings'
|
237 |
-
if($_field_name !== 'acfe_flexible_layout_title' && $_field_name !== 'layout_settings')
|
238 |
continue;
|
|
|
239 |
|
240 |
// unset
|
241 |
unset($fields[$_k]);
|
@@ -246,44 +292,57 @@ class acfe_compatibility{
|
|
246 |
|
247 |
}
|
248 |
|
|
|
249 |
/**
|
250 |
-
*
|
|
|
|
|
|
|
251 |
* Field Flexible Content: Compatibility for Layout Categories
|
|
|
|
|
252 |
*/
|
253 |
function field_flexible_layout_categories($field){
|
254 |
|
255 |
$value = acf_maybe_get($field, 'value');
|
256 |
-
|
257 |
-
if(empty($value))
|
258 |
return $field;
|
259 |
-
|
260 |
-
if(is_string($value)){
|
261 |
|
|
|
|
|
262 |
$explode = explode('|', $value);
|
263 |
-
|
264 |
$choices = array();
|
265 |
-
|
266 |
-
foreach($explode as $v){
|
267 |
|
|
|
|
|
268 |
$v = trim($v);
|
269 |
-
$choices[$v] = $v;
|
270 |
-
|
271 |
}
|
272 |
-
|
273 |
$field['choices'] = $choices;
|
274 |
$field['value'] = $choices;
|
275 |
-
|
276 |
}
|
277 |
-
|
278 |
return $field;
|
279 |
-
|
280 |
}
|
281 |
|
|
|
282 |
/**
|
283 |
-
*
|
|
|
|
|
|
|
284 |
* Module Dynamic Forms: Upgrade previous versions
|
|
|
|
|
285 |
*/
|
286 |
-
function
|
287 |
|
288 |
// ACF Extended: 0.8.5 Compatibility - Step 1
|
289 |
// Groups upgrade
|
@@ -381,25 +440,23 @@ class acfe_compatibility{
|
|
381 |
|
382 |
foreach($rules as $rule){
|
383 |
|
384 |
-
if(!acf_maybe_get($row, $rule['group']))
|
385 |
continue;
|
|
|
386 |
|
387 |
$value = null;
|
388 |
$group = $row[$rule['group']];
|
389 |
|
390 |
if(acf_maybe_get($group, $rule['sub_field']) === 'custom'){
|
391 |
-
|
392 |
$value = acf_maybe_get($group, $rule['sub_field_custom']);
|
393 |
|
394 |
}else{
|
395 |
-
|
396 |
$value = acf_maybe_get($group, $rule['sub_field']);
|
397 |
-
|
398 |
}
|
399 |
|
400 |
unset($row[$rule['group']]);
|
401 |
|
402 |
-
$row[$rule['sub_field']] = $value;
|
403 |
|
404 |
$has_upgraded = true;
|
405 |
|
@@ -464,37 +521,47 @@ class acfe_compatibility{
|
|
464 |
$load_values = acf_maybe_get($row, $rule['load_values']);
|
465 |
$fields = $rule['fields'];
|
466 |
|
467 |
-
if(!empty($load_values))
|
468 |
continue;
|
|
|
469 |
|
470 |
foreach($fields as $map => $save){
|
471 |
|
472 |
$map_value = acf_maybe_get($row, $map);
|
473 |
|
474 |
-
if(empty($map_value))
|
475 |
continue;
|
476 |
-
|
477 |
-
if($save === 'field_acfe_form_post_save_post_content'){
|
478 |
-
|
479 |
-
$row['field_acfe_form_post_save_post_content_group'][$save] = $map_value;
|
480 |
-
|
481 |
}
|
482 |
|
483 |
-
|
484 |
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
|
|
490 |
|
491 |
-
|
|
|
|
|
|
|
|
|
|
|
492 |
|
493 |
-
|
494 |
-
|
495 |
-
|
|
|
|
|
|
|
496 |
|
497 |
-
|
|
|
|
|
|
|
|
|
|
|
498 |
|
499 |
}
|
500 |
|
@@ -509,196 +576,6 @@ class acfe_compatibility{
|
|
509 |
return $args;
|
510 |
|
511 |
}
|
512 |
-
|
513 |
-
/**
|
514 |
-
* Plugin: Post Types Order
|
515 |
-
* https://wordpress.org/plugins/post-types-order/
|
516 |
-
* The plugin apply custom order to ACF Field Group Post Type. We have to fix this
|
517 |
-
*/
|
518 |
-
function pto_acf_field_group($ignore, $orderby, $query){
|
519 |
-
|
520 |
-
if(is_admin() && $query->is_main_query() && $query->get('post_type') === 'acf-field-group')
|
521 |
-
$ignore = true;
|
522 |
-
|
523 |
-
return $ignore;
|
524 |
-
|
525 |
-
}
|
526 |
-
|
527 |
-
/**
|
528 |
-
* Plugin: Post Types Order
|
529 |
-
* https://wordpress.org/plugins/post-types-order/
|
530 |
-
* The plugin apply a drag & drop UI on ACF Field Group UI. We have to fix this
|
531 |
-
*/
|
532 |
-
function pto_options_acf_field_group($options){
|
533 |
-
|
534 |
-
$options['show_reorder_interfaces']['acf-field-group'] = 'hide';
|
535 |
-
|
536 |
-
return $options;
|
537 |
-
|
538 |
-
}
|
539 |
-
|
540 |
-
/**
|
541 |
-
* Plugin: Category Order and Taxonomy Terms Order
|
542 |
-
* https://wordpress.org/plugins/taxonomy-terms-order/
|
543 |
-
* The plugin add a submenu to 'Custom Fields' to order Field Group Categories. It's unecessary
|
544 |
-
*/
|
545 |
-
function cotto_submenu(){
|
546 |
-
|
547 |
-
remove_submenu_page('edit.php?post_type=acf-field-group', 'to-interface-acf-field-group');
|
548 |
-
|
549 |
-
}
|
550 |
-
|
551 |
-
/**
|
552 |
-
* Plugin: Rank Math SEO
|
553 |
-
* https://wordpress.org/plugins/seo-by-rank-math/
|
554 |
-
* Fix the plugin post metabox which is always above ACF metaboxes
|
555 |
-
*/
|
556 |
-
function rankmath_metaboxes_priority(){
|
557 |
-
|
558 |
-
return 'default';
|
559 |
-
|
560 |
-
}
|
561 |
-
|
562 |
-
/**
|
563 |
-
* Plugin: YOAST SEO
|
564 |
-
* https://wordpress.org/plugins/wordpress-seo/
|
565 |
-
* Fix the plugin post metabox which is always above ACF metaboxes
|
566 |
-
*/
|
567 |
-
function yoast_metaboxes_priority(){
|
568 |
-
|
569 |
-
return 'default';
|
570 |
-
|
571 |
-
}
|
572 |
-
|
573 |
-
/**
|
574 |
-
* ACF Extended: 0.8.3
|
575 |
-
* Modules: Enable PolyLang Translation for ACFE Form Module
|
576 |
-
* https://polylang.pro/doc/filter-reference/
|
577 |
-
*/
|
578 |
-
function polylang($post_types, $is_settings){
|
579 |
-
|
580 |
-
if($is_settings){
|
581 |
-
|
582 |
-
unset($post_types['acfe-form']);
|
583 |
-
unset($post_types['acfe-template']);
|
584 |
-
|
585 |
-
}else{
|
586 |
-
|
587 |
-
$post_types['acfe-form'] = 'acfe-form';
|
588 |
-
$post_types['acfe-template'] = 'acfe-template';
|
589 |
-
|
590 |
-
}
|
591 |
-
|
592 |
-
return $post_types;
|
593 |
-
|
594 |
-
}
|
595 |
-
|
596 |
-
/*
|
597 |
-
* ACF Extended: 0.8.8
|
598 |
-
* Elementor Pro
|
599 |
-
* Fix Elementor listing all private ACF Extended Field Groups in Dynamic ACF Tags options list
|
600 |
-
*/
|
601 |
-
function elementor(){
|
602 |
-
|
603 |
-
add_filter('acf/load_field_groups', function($field_groups){
|
604 |
-
|
605 |
-
// Hidden Local Field Groups
|
606 |
-
$hidden = acfe_get_setting('reserved_field_groups', array());
|
607 |
-
|
608 |
-
foreach($field_groups as $i => $field_group){
|
609 |
-
|
610 |
-
if(!in_array($field_group['key'], $hidden))
|
611 |
-
continue;
|
612 |
-
|
613 |
-
unset($field_groups[$i]);
|
614 |
-
|
615 |
-
}
|
616 |
-
|
617 |
-
$field_groups = array_values($field_groups);
|
618 |
-
|
619 |
-
return $field_groups;
|
620 |
-
|
621 |
-
}, 25);
|
622 |
-
|
623 |
-
}
|
624 |
-
|
625 |
-
/*
|
626 |
-
* ACF Extended: 0.8.8.2
|
627 |
-
* WP GraphQL ACF Supported Fields
|
628 |
-
*/
|
629 |
-
function wpgraphql_supported_fields($fields){
|
630 |
-
|
631 |
-
$acfe_fields = array(
|
632 |
-
'acfe_advanced_link',
|
633 |
-
'acfe_code_editor',
|
634 |
-
'acfe_forms',
|
635 |
-
'acfe_hidden',
|
636 |
-
'acfe_post_statuses',
|
637 |
-
'acfe_post_types',
|
638 |
-
'acfe_slug',
|
639 |
-
'acfe_taxonomies',
|
640 |
-
'acfe_taxonomy_terms',
|
641 |
-
'acfe_user_roles',
|
642 |
-
);
|
643 |
-
|
644 |
-
return array_merge($fields, $acfe_fields);
|
645 |
-
|
646 |
-
}
|
647 |
-
|
648 |
-
/*
|
649 |
-
* ACF Extended: 0.8.8.4
|
650 |
-
* WP GraphQL ACF Register Field
|
651 |
-
*/
|
652 |
-
function wpgraphql_register_field($field_config, $type_name, $field_name, $config){
|
653 |
-
|
654 |
-
$acf_field = isset( $config['acf_field'] ) ? $config['acf_field'] : null;
|
655 |
-
$acf_type = isset( $acf_field['type'] ) ? $acf_field['type'] : null;
|
656 |
-
|
657 |
-
if($acf_type === 'acfe_advanced_link'){
|
658 |
-
|
659 |
-
$field_config['type'] = array('list_of' => 'String');
|
660 |
-
|
661 |
-
}elseif($acf_type === 'acfe_code_editor'){
|
662 |
-
|
663 |
-
$field_config['type'] = 'String';
|
664 |
-
|
665 |
-
}elseif($acf_type === 'acfe_forms'){
|
666 |
-
|
667 |
-
$field_config['type'] = array('list_of' => 'String');
|
668 |
-
|
669 |
-
}elseif($acf_type === 'acfe_hidden'){
|
670 |
-
|
671 |
-
$field_config['type'] = 'String';
|
672 |
-
|
673 |
-
}elseif($acf_type === 'acfe_post_statuses'){
|
674 |
-
|
675 |
-
$field_config['type'] = array('list_of' => 'String');
|
676 |
-
|
677 |
-
}elseif($acf_type === 'acfe_post_types'){
|
678 |
-
|
679 |
-
$field_config['type'] = array('list_of' => 'String');
|
680 |
-
|
681 |
-
}elseif($acf_type === 'acfe_slug'){
|
682 |
-
|
683 |
-
$field_config['type'] = 'String';
|
684 |
-
|
685 |
-
}elseif($acf_type === 'acfe_taxonomies'){
|
686 |
-
|
687 |
-
$field_config['type'] = array('list_of' => 'String');
|
688 |
-
|
689 |
-
}elseif($acf_type === 'acfe_taxonomy_terms'){
|
690 |
-
|
691 |
-
$field_config['type'] = array('list_of' => 'String');
|
692 |
-
|
693 |
-
}elseif($acf_type === 'acfe_user_roles'){
|
694 |
-
|
695 |
-
$field_config['type'] = array('list_of' => 'String');
|
696 |
-
|
697 |
-
}
|
698 |
-
|
699 |
-
return $field_config;
|
700 |
-
|
701 |
-
}
|
702 |
|
703 |
}
|
704 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
|
|
|
|
|
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_compatibility')):
|
8 |
|
9 |
class acfe_compatibility{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
+
// global
|
17 |
+
add_action('acf/init', array($this, 'init'), 98);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
+
// fields
|
|
|
20 |
add_filter('acf/validate_field_group', array($this, 'field_group_location_list'), 20);
|
21 |
add_filter('acf/validate_field', array($this, 'field_acfe_update'), 20);
|
|
|
22 |
add_filter('acf/validate_field/type=group', array($this, 'field_seamless_style'), 20);
|
23 |
add_filter('acf/validate_field/type=clone', array($this, 'field_seamless_style'), 20);
|
24 |
add_filter('acf/validate_field/type=acfe_dynamic_message', array($this, 'field_dynamic_message'), 20);
|
25 |
+
add_filter('acf/validate_field/type=acfe_column', array($this, 'field_column'), 20);
|
26 |
+
add_filter('acf/validate_field/type=image', array($this, 'field_image'), 20);
|
27 |
+
add_filter('acf/validate_field/type=file', array($this, 'field_image'), 20);
|
28 |
add_filter('acfe/load_fields/type=flexible_content', array($this, 'field_flexible_settings_title'), 20, 2);
|
|
|
29 |
add_filter('acf/prepare_field/name=acfe_flexible_category', array($this, 'field_flexible_layout_categories'), 10, 2);
|
30 |
|
31 |
+
// modules
|
32 |
+
add_filter('acfe/form/import_args', array($this, 'acfe_form_import'), 10, 3);
|
33 |
+
|
34 |
}
|
35 |
|
36 |
+
|
37 |
/**
|
38 |
+
* init
|
39 |
+
*
|
40 |
+
* acf/init:98
|
41 |
+
*
|
42 |
+
* Rename modules
|
43 |
+
*
|
44 |
+
* @since 0.8 (20/10/2019)
|
45 |
*/
|
46 |
+
function init(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
+
// settings list
|
49 |
+
$settings = array(
|
50 |
+
'acfe_php' => 'acfe/php',
|
51 |
+
'php_save' => 'acfe/php_save',
|
52 |
+
'php_load' => 'acfe/php_load',
|
53 |
+
'php_found' => 'acfe/php_found',
|
54 |
+
'acfe/modules/dynamic_block_types' => 'acfe/modules/block_types',
|
55 |
+
'acfe/modules/dynamic_forms' => 'acfe/modules/forms',
|
56 |
+
'acfe/modules/dynamic_options_pages' => 'acfe/modules/options_pages',
|
57 |
+
'acfe/modules/dynamic_post_types' => 'acfe/modules/post_types',
|
58 |
+
'acfe/modules/dynamic_taxonomies' => 'acfe/modules/taxonomies',
|
59 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
|
61 |
+
// loop settings
|
62 |
+
foreach($settings as $old => $new){
|
63 |
+
|
64 |
+
if(acf_get_setting($old) !== null){
|
65 |
+
acf_update_setting($new, acf_get_setting($old));
|
66 |
+
}
|
67 |
+
|
68 |
}
|
69 |
|
70 |
}
|
71 |
+
|
72 |
+
|
73 |
/**
|
74 |
+
* field_group_location_list
|
75 |
+
*
|
76 |
+
* acf/validate_field_group:20
|
77 |
+
*
|
78 |
* Field Group Location: Archive renamed to List
|
79 |
+
*
|
80 |
+
* @since 0.8 (20/10/2019)
|
81 |
*/
|
82 |
function field_group_location_list($field_group){
|
83 |
|
84 |
+
if(!acf_maybe_get($field_group, 'location')){
|
85 |
return $field_group;
|
86 |
+
}
|
87 |
|
88 |
foreach($field_group['location'] as &$or){
|
89 |
|
90 |
foreach($or as &$and){
|
91 |
|
92 |
+
if(!isset($and['value'])){
|
93 |
continue;
|
94 |
+
}
|
95 |
|
96 |
// Post Type List
|
97 |
if($and['param'] === 'post_type' && acfe_ends_with($and['value'], '_archive')){
|
98 |
+
|
99 |
$and['param'] = 'post_type_list';
|
100 |
$and['value'] = substr_replace($and['value'], '', -8);
|
101 |
+
|
102 |
}
|
103 |
|
104 |
// Taxonomy List
|
116 |
return $field_group;
|
117 |
|
118 |
}
|
119 |
+
|
120 |
+
|
121 |
/**
|
122 |
+
* field_acfe_update
|
123 |
+
*
|
124 |
+
* acf/validate_field:20
|
125 |
+
*
|
126 |
+
* Field Filter Value: Removed
|
127 |
+
*
|
128 |
+
* @since 0.8 (20/10/2019)
|
129 |
*/
|
130 |
function field_acfe_update($field){
|
131 |
|
132 |
+
if(!acf_maybe_get($field, 'acfe_update')){
|
133 |
return $field;
|
134 |
+
}
|
135 |
|
136 |
unset($field['acfe_update']);
|
137 |
|
138 |
return $field;
|
139 |
|
140 |
}
|
141 |
+
|
142 |
+
|
143 |
/**
|
144 |
+
* field_seamless_style
|
145 |
+
*
|
146 |
+
* acf/validate_field/type=group:20
|
147 |
+
* acf/validate_field/type=clone:20
|
148 |
+
*
|
149 |
+
* Field Group/Clone: Fixed typo 'Seamless'
|
150 |
+
*
|
151 |
+
* @since 0.8.5 (15/03/2020)
|
152 |
*/
|
153 |
function field_seamless_style($field){
|
154 |
|
155 |
if($seamless = acf_maybe_get($field, 'acfe_seemless_style', false)){
|
|
|
156 |
$field['acfe_seamless_style'] = $seamless;
|
|
|
157 |
}
|
158 |
|
159 |
return $field;
|
160 |
|
161 |
}
|
162 |
|
163 |
+
|
164 |
/**
|
165 |
+
* field_dynamic_message
|
166 |
+
*
|
167 |
+
* acf/validate_field/type=acfe_dynamic_message:20
|
168 |
+
*
|
169 |
+
* Renamed 'Dynamic Message' field to 'Dynamic Render'
|
170 |
+
*
|
171 |
+
* @since 0.8.8.5 (03/09/2021)
|
172 |
*/
|
173 |
function field_dynamic_message($field){
|
174 |
|
177 |
return $field;
|
178 |
|
179 |
}
|
180 |
+
|
181 |
+
|
182 |
+
/**
|
183 |
+
* field_column
|
184 |
+
*
|
185 |
+
* acf/validate_field/type=acfe_column:20
|
186 |
+
*
|
187 |
+
* Changed columns to 12 grid instead of 6
|
188 |
+
*
|
189 |
+
* @since 0.8.7.3 (29/09/2020)
|
190 |
+
*/
|
191 |
+
function field_column($field){
|
192 |
+
|
193 |
+
if(acfe_ends_with($field['columns'], '/6')){
|
194 |
+
|
195 |
+
switch($field['columns']){
|
196 |
+
|
197 |
+
case '1/6': {
|
198 |
+
$field['columns'] = '2/12';
|
199 |
+
break;
|
200 |
+
}
|
201 |
+
|
202 |
+
case '2/6': {
|
203 |
+
$field['columns'] = '4/12';
|
204 |
+
break;
|
205 |
+
}
|
206 |
+
|
207 |
+
case '3/6': {
|
208 |
+
$field['columns'] = '6/12';
|
209 |
+
break;
|
210 |
+
}
|
211 |
+
|
212 |
+
case '4/6': {
|
213 |
+
$field['columns'] = '8/12';
|
214 |
+
break;
|
215 |
+
}
|
216 |
+
|
217 |
+
case '5/6': {
|
218 |
+
$field['columns'] = '10/12';
|
219 |
+
break;
|
220 |
+
}
|
221 |
+
|
222 |
+
case '6/6': {
|
223 |
+
$field['columns'] = '12/12';
|
224 |
+
break;
|
225 |
+
}
|
226 |
+
|
227 |
+
}
|
228 |
+
|
229 |
+
}
|
230 |
+
|
231 |
+
return $field;
|
232 |
+
|
233 |
+
}
|
234 |
+
|
235 |
+
|
236 |
/**
|
237 |
+
* field_image
|
238 |
+
*
|
239 |
+
* acf/validate_field/type=image:20
|
240 |
+
* acf/validate_field/type=file:20
|
241 |
+
*
|
242 |
+
* Renamed setting 'acfe_uploader' to 'uploader' for image & file
|
243 |
+
*
|
244 |
+
* @since 0.8.7.5 (11/12/2020)
|
245 |
+
*/
|
246 |
+
function field_image($field){
|
247 |
+
|
248 |
+
if(acf_maybe_get($field, 'acfe_uploader')){
|
249 |
+
|
250 |
+
$field['uploader'] = $field['acfe_uploader'];
|
251 |
+
unset($field['acfe_uploader']);
|
252 |
+
|
253 |
+
}
|
254 |
+
|
255 |
+
return $field;
|
256 |
+
|
257 |
+
}
|
258 |
+
|
259 |
+
|
260 |
+
/**
|
261 |
+
* field_flexible_settings_title
|
262 |
+
*
|
263 |
+
* acfe/load_fields/type=flexible_content:20
|
264 |
+
*
|
265 |
* Field Flexible Content: Fix duplicated "layout_settings" & "layout_title"
|
266 |
+
*
|
267 |
+
* @since 0.8.4.5 (11/02/2020)
|
268 |
*/
|
269 |
function field_flexible_settings_title($fields, $parent){
|
270 |
|
271 |
// Check if is tool screen
|
272 |
+
if(!acf_is_screen(acfe_get_acf_screen_id('acf-tools'))){
|
273 |
return $fields;
|
274 |
+
}
|
275 |
|
276 |
foreach($fields as $_k => $_field){
|
277 |
|
279 |
$_field_name = acf_maybe_get($_field, 'name');
|
280 |
|
281 |
// check 'acfe_flexible_layout_title' & 'layout_settings'
|
282 |
+
if($_field_name !== 'acfe_flexible_layout_title' && $_field_name !== 'layout_settings'){
|
283 |
continue;
|
284 |
+
}
|
285 |
|
286 |
// unset
|
287 |
unset($fields[$_k]);
|
292 |
|
293 |
}
|
294 |
|
295 |
+
|
296 |
/**
|
297 |
+
* field_flexible_layout_categories
|
298 |
+
*
|
299 |
+
* acf/prepare_field/name=acfe_flexible_category
|
300 |
+
*
|
301 |
* Field Flexible Content: Compatibility for Layout Categories
|
302 |
+
*
|
303 |
+
* @since 0.8.6.7 (16/07/2020)
|
304 |
*/
|
305 |
function field_flexible_layout_categories($field){
|
306 |
|
307 |
$value = acf_maybe_get($field, 'value');
|
308 |
+
|
309 |
+
if(empty($value)){
|
310 |
return $field;
|
311 |
+
}
|
|
|
312 |
|
313 |
+
if(is_string($value)){
|
314 |
+
|
315 |
$explode = explode('|', $value);
|
316 |
+
|
317 |
$choices = array();
|
|
|
|
|
318 |
|
319 |
+
foreach($explode as $v){
|
320 |
+
|
321 |
$v = trim($v);
|
322 |
+
$choices[ $v ] = $v;
|
323 |
+
|
324 |
}
|
325 |
+
|
326 |
$field['choices'] = $choices;
|
327 |
$field['value'] = $choices;
|
328 |
+
|
329 |
}
|
330 |
+
|
331 |
return $field;
|
332 |
+
|
333 |
}
|
334 |
|
335 |
+
|
336 |
/**
|
337 |
+
* acfe_form_import
|
338 |
+
*
|
339 |
+
* acfe/form/import_args
|
340 |
+
*
|
341 |
* Module Dynamic Forms: Upgrade previous versions
|
342 |
+
*
|
343 |
+
* @since 0.8.5 (15/03/2020)
|
344 |
*/
|
345 |
+
function acfe_form_import($args, $name, $post_id){
|
346 |
|
347 |
// ACF Extended: 0.8.5 Compatibility - Step 1
|
348 |
// Groups upgrade
|
440 |
|
441 |
foreach($rules as $rule){
|
442 |
|
443 |
+
if(!acf_maybe_get($row, $rule['group'])){
|
444 |
continue;
|
445 |
+
}
|
446 |
|
447 |
$value = null;
|
448 |
$group = $row[$rule['group']];
|
449 |
|
450 |
if(acf_maybe_get($group, $rule['sub_field']) === 'custom'){
|
|
|
451 |
$value = acf_maybe_get($group, $rule['sub_field_custom']);
|
452 |
|
453 |
}else{
|
|
|
454 |
$value = acf_maybe_get($group, $rule['sub_field']);
|
|
|
455 |
}
|
456 |
|
457 |
unset($row[$rule['group']]);
|
458 |
|
459 |
+
$row[ $rule['sub_field'] ] = $value;
|
460 |
|
461 |
$has_upgraded = true;
|
462 |
|
521 |
$load_values = acf_maybe_get($row, $rule['load_values']);
|
522 |
$fields = $rule['fields'];
|
523 |
|
524 |
+
if(!empty($load_values)){
|
525 |
continue;
|
526 |
+
}
|
527 |
|
528 |
foreach($fields as $map => $save){
|
529 |
|
530 |
$map_value = acf_maybe_get($row, $map);
|
531 |
|
532 |
+
if(empty($map_value)){
|
533 |
continue;
|
|
|
|
|
|
|
|
|
|
|
534 |
}
|
535 |
|
536 |
+
switch($save){
|
537 |
|
538 |
+
case 'field_acfe_form_post_save_post_content': {
|
539 |
+
|
540 |
+
$row['field_acfe_form_post_save_post_content_group'][ $save ] = $map_value;
|
541 |
+
break;
|
542 |
+
|
543 |
+
}
|
544 |
|
545 |
+
case 'field_acfe_form_term_save_description': {
|
546 |
+
|
547 |
+
$row['field_acfe_form_term_save_description_group'][ $save ] = $map_value;
|
548 |
+
break;
|
549 |
+
|
550 |
+
}
|
551 |
|
552 |
+
case 'field_acfe_form_user_save_description': {
|
553 |
+
|
554 |
+
$row['field_acfe_form_user_save_description_group'][ $save ] = $map_value;
|
555 |
+
break;
|
556 |
+
|
557 |
+
}
|
558 |
|
559 |
+
default: {
|
560 |
+
|
561 |
+
$row[ $save ] = $map_value;
|
562 |
+
break;
|
563 |
+
|
564 |
+
}
|
565 |
|
566 |
}
|
567 |
|
576 |
return $args;
|
577 |
|
578 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
579 |
|
580 |
}
|
581 |
|
includes/field-extend.php
ADDED
@@ -0,0 +1,380 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
+
exit;
|
5 |
+
}
|
6 |
+
|
7 |
+
if(!class_exists('acfe_field_extend')):
|
8 |
+
|
9 |
+
class acfe_field_extend{
|
10 |
+
|
11 |
+
var $name = '',
|
12 |
+
$replace = array(),
|
13 |
+
$defaults = array(),
|
14 |
+
$instance = '';
|
15 |
+
|
16 |
+
/**
|
17 |
+
* construct
|
18 |
+
*/
|
19 |
+
function __construct(){
|
20 |
+
|
21 |
+
// initialize
|
22 |
+
$this->initialize();
|
23 |
+
|
24 |
+
// field instance
|
25 |
+
$this->instance = $this->get_field_type();
|
26 |
+
|
27 |
+
// defaults
|
28 |
+
if($this->defaults){
|
29 |
+
$this->instance->defaults = array_merge($this->instance->defaults, $this->defaults);
|
30 |
+
}
|
31 |
+
|
32 |
+
// field actions
|
33 |
+
$actions = array(
|
34 |
+
|
35 |
+
// value
|
36 |
+
array('filter', 'acf/load_value', array($this, 'load_value'), 10, 3),
|
37 |
+
array('filter', 'acf/update_value', array($this, 'update_value'), 10, 3),
|
38 |
+
array('filter', 'acf/format_value', array($this, 'format_value'), 10, 3),
|
39 |
+
array('filter', 'acf/validate_value', array($this, 'validate_value'), 10, 4),
|
40 |
+
array('action', 'acf/delete_value', array($this, 'delete_value'), 10, 3),
|
41 |
+
|
42 |
+
// field
|
43 |
+
array('filter', 'acf/validate_rest_value', array($this, 'validate_rest_value'), 10, 3),
|
44 |
+
array('filter', 'acf/validate_field', array($this, 'validate_field'), 10, 1),
|
45 |
+
array('filter', 'acf/load_field', array($this, 'load_field'), 10, 1),
|
46 |
+
array('filter', 'acf/update_field', array($this, 'update_field'), 10, 1),
|
47 |
+
array('filter', 'acf/duplicate_field', array($this, 'duplicate_field'), 10, 1),
|
48 |
+
array('action', 'acf/delete_field', array($this, 'delete_field'), 10, 1),
|
49 |
+
array('action', 'acf/render_field', array($this, 'render_field'), 9, 1),
|
50 |
+
array('action', 'acf/render_field_settings', array($this, 'render_field_settings'), 9, 1),
|
51 |
+
array('filter', 'acf/prepare_field', array($this, 'prepare_field'), 10, 1),
|
52 |
+
array('filter', 'acf/translate_field', array($this, 'translate_field'), 10, 1),
|
53 |
+
array('filter', 'acfe/field_wrapper_attributes', array($this, 'field_wrapper_attributes'), 10, 2),
|
54 |
+
array('filter', 'acfe/load_fields', array($this, 'load_fields'), 10, 2),
|
55 |
+
);
|
56 |
+
|
57 |
+
// loop
|
58 |
+
foreach($actions as $row){
|
59 |
+
|
60 |
+
// vars
|
61 |
+
list($type, $hook, $function, $priority, $args) = $row;
|
62 |
+
|
63 |
+
// get method
|
64 |
+
$method = $type === 'filter' ? 'add_field_filter' : 'add_field_action';
|
65 |
+
|
66 |
+
// use replace method
|
67 |
+
if(in_array($function[1], $this->replace)){
|
68 |
+
$method = $type === 'filter' ? 'replace_field_filter' : 'replace_field_action';
|
69 |
+
}
|
70 |
+
|
71 |
+
// call method
|
72 |
+
$this->{$method}($hook, $function, $priority, $args);
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
// input actions
|
77 |
+
$this->add_action('acf/input/admin_enqueue_scripts', array($this, 'input_admin_enqueue_scripts'), 10, 0);
|
78 |
+
$this->add_action('acf/input/admin_head', array($this, 'input_admin_head'), 10, 0);
|
79 |
+
$this->add_action('acf/input/form_data', array($this, 'input_form_data'), 10, 1);
|
80 |
+
$this->add_filter('acf/input/admin_l10n', array($this, 'input_admin_l10n'), 10, 1);
|
81 |
+
$this->add_action('acf/input/admin_footer', array($this, 'input_admin_footer'), 10, 1);
|
82 |
+
|
83 |
+
// field group actions
|
84 |
+
$this->add_action('acf/field_group/admin_enqueue_scripts', array($this, 'field_group_admin_enqueue_scripts'), 10, 0);
|
85 |
+
$this->add_action('acf/field_group/admin_head', array($this, 'field_group_admin_head'), 10, 0);
|
86 |
+
$this->add_action('acf/field_group/admin_footer', array($this, 'field_group_admin_footer'), 10, 0);
|
87 |
+
|
88 |
+
}
|
89 |
+
|
90 |
+
|
91 |
+
/**
|
92 |
+
* initialize
|
93 |
+
*/
|
94 |
+
function initialize(){
|
95 |
+
// ...
|
96 |
+
}
|
97 |
+
|
98 |
+
|
99 |
+
/**
|
100 |
+
* get_field_type
|
101 |
+
*
|
102 |
+
* @return mixed
|
103 |
+
*/
|
104 |
+
function get_field_type(){
|
105 |
+
return acf_get_field_type($this->name);
|
106 |
+
}
|
107 |
+
|
108 |
+
/**
|
109 |
+
* add_filter
|
110 |
+
*
|
111 |
+
* @param $tag
|
112 |
+
* @param $function_to_add
|
113 |
+
* @param $priority
|
114 |
+
* @param $accepted_args
|
115 |
+
*/
|
116 |
+
function add_filter($tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1){
|
117 |
+
|
118 |
+
// bail early if no callable
|
119 |
+
if(!is_callable($function_to_add)){
|
120 |
+
return;
|
121 |
+
}
|
122 |
+
|
123 |
+
// add
|
124 |
+
add_filter($tag, $function_to_add, $priority, $accepted_args);
|
125 |
+
|
126 |
+
}
|
127 |
+
|
128 |
+
|
129 |
+
/**
|
130 |
+
* remove_filter
|
131 |
+
*
|
132 |
+
* @param $tag
|
133 |
+
* @param $function_to_remove
|
134 |
+
* @param $priority
|
135 |
+
*/
|
136 |
+
function remove_filter($tag = '', $function_to_remove = '', $priority = 10){
|
137 |
+
|
138 |
+
// bail early if no callable
|
139 |
+
if(!is_callable($function_to_remove)){
|
140 |
+
return;
|
141 |
+
}
|
142 |
+
|
143 |
+
// remove
|
144 |
+
remove_filter($tag, $function_to_remove, $priority);
|
145 |
+
|
146 |
+
}
|
147 |
+
|
148 |
+
|
149 |
+
/**
|
150 |
+
* replace_filter
|
151 |
+
*
|
152 |
+
* @param $tag
|
153 |
+
* @param $function_to_replace
|
154 |
+
* @param $priority
|
155 |
+
* @param $accepted_args
|
156 |
+
*/
|
157 |
+
function replace_filter($tag = '', $function_to_replace = '', $priority = 10, $accepted_args = 1){
|
158 |
+
|
159 |
+
// check instance
|
160 |
+
if(!$this->instance){
|
161 |
+
$this->instance = $this->get_field_type();
|
162 |
+
}
|
163 |
+
|
164 |
+
// array
|
165 |
+
if(is_array($function_to_replace)){
|
166 |
+
$function_to_remove = array($this->instance, $function_to_replace[1]);
|
167 |
+
$function_to_add = $function_to_replace;
|
168 |
+
|
169 |
+
// string
|
170 |
+
}else{
|
171 |
+
$function_to_remove = array($this->instance, $function_to_replace);
|
172 |
+
$function_to_add = array($this, $function_to_replace);
|
173 |
+
|
174 |
+
}
|
175 |
+
|
176 |
+
// bail early if no callable
|
177 |
+
if(!is_callable($function_to_add)){
|
178 |
+
return;
|
179 |
+
}
|
180 |
+
|
181 |
+
// replace
|
182 |
+
$this->remove_filter($tag, $function_to_remove, $priority);
|
183 |
+
$this->add_filter($tag, $function_to_add, $priority, $accepted_args);
|
184 |
+
|
185 |
+
}
|
186 |
+
|
187 |
+
|
188 |
+
/**
|
189 |
+
* add_field_filter
|
190 |
+
*
|
191 |
+
* @param $tag
|
192 |
+
* @param $function_to_add
|
193 |
+
* @param $priority
|
194 |
+
* @param $accepted_args
|
195 |
+
*/
|
196 |
+
function add_field_filter($tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1){
|
197 |
+
|
198 |
+
// append
|
199 |
+
$tag .= '/type=' . $this->name;
|
200 |
+
|
201 |
+
// add
|
202 |
+
$this->add_filter($tag, $function_to_add, $priority, $accepted_args);
|
203 |
+
|
204 |
+
}
|
205 |
+
|
206 |
+
|
207 |
+
/**
|
208 |
+
* remove_field_filter
|
209 |
+
*
|
210 |
+
* @param $tag
|
211 |
+
* @param $function_to_remove
|
212 |
+
* @param $priority
|
213 |
+
*/
|
214 |
+
function remove_field_filter($tag = '', $function_to_remove = '', $priority = 10){
|
215 |
+
|
216 |
+
// append
|
217 |
+
$tag .= '/type=' . $this->name;
|
218 |
+
|
219 |
+
// remove
|
220 |
+
$this->remove_filter($tag, $function_to_remove, $priority);
|
221 |
+
|
222 |
+
}
|
223 |
+
|
224 |
+
|
225 |
+
/**
|
226 |
+
* replace_field_filter
|
227 |
+
*
|
228 |
+
* @param $tag
|
229 |
+
* @param $function_to_add
|
230 |
+
* @param $priority
|
231 |
+
* @param $accepted_args
|
232 |
+
*/
|
233 |
+
function replace_field_filter($tag = '', $function_to_replace = '', $priority = 10, $accepted_args = 1){
|
234 |
+
|
235 |
+
// append
|
236 |
+
$tag .= '/type=' . $this->name;
|
237 |
+
|
238 |
+
// replace
|
239 |
+
$this->replace_filter($tag, $function_to_replace, $priority, $accepted_args);
|
240 |
+
|
241 |
+
}
|
242 |
+
|
243 |
+
|
244 |
+
/**
|
245 |
+
* add_action
|
246 |
+
*
|
247 |
+
* @param $tag
|
248 |
+
* @param $function_to_add
|
249 |
+
* @param $priority
|
250 |
+
* @param $accepted_args
|
251 |
+
*/
|
252 |
+
function add_action($tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1){
|
253 |
+
|
254 |
+
// bail early if no callable
|
255 |
+
if(!is_callable($function_to_add)){
|
256 |
+
return;
|
257 |
+
}
|
258 |
+
|
259 |
+
// add
|
260 |
+
add_action($tag, $function_to_add, $priority, $accepted_args);
|
261 |
+
|
262 |
+
}
|
263 |
+
|
264 |
+
|
265 |
+
/**
|
266 |
+
* remove_action
|
267 |
+
*
|
268 |
+
* @param $tag
|
269 |
+
* @param $function_to_remove
|
270 |
+
* @param $priority
|
271 |
+
*/
|
272 |
+
function remove_action($tag = '', $function_to_remove = '', $priority = 10){
|
273 |
+
|
274 |
+
// bail early if no callable
|
275 |
+
if(!is_callable($function_to_remove)){
|
276 |
+
return;
|
277 |
+
}
|
278 |
+
|
279 |
+
// remove
|
280 |
+
remove_action($tag, $function_to_remove, $priority);
|
281 |
+
|
282 |
+
}
|
283 |
+
|
284 |
+
|
285 |
+
/**
|
286 |
+
* replace_action
|
287 |
+
*
|
288 |
+
* @param $tag
|
289 |
+
* @param $function_to_replace
|
290 |
+
* @param $priority
|
291 |
+
* @param $accepted_args
|
292 |
+
*/
|
293 |
+
function replace_action($tag = '', $function_to_replace = '', $priority = 10, $accepted_args = 1){
|
294 |
+
|
295 |
+
// check instance
|
296 |
+
if(!$this->instance){
|
297 |
+
$this->instance = $this->get_field_type();
|
298 |
+
}
|
299 |
+
|
300 |
+
// array
|
301 |
+
if(is_array($function_to_replace)){
|
302 |
+
$function_to_remove = array($this->instance, $function_to_replace[1]);
|
303 |
+
$function_to_add = $function_to_replace;
|
304 |
+
|
305 |
+
// string
|
306 |
+
}else{
|
307 |
+
$function_to_remove = array($this->instance, $function_to_replace);
|
308 |
+
$function_to_add = array($this, $function_to_replace);
|
309 |
+
|
310 |
+
}
|
311 |
+
|
312 |
+
// bail early if no callable
|
313 |
+
if(!is_callable($function_to_add)){
|
314 |
+
return;
|
315 |
+
}
|
316 |
+
|
317 |
+
// replace
|
318 |
+
$this->remove_action($tag, $function_to_remove, $priority);
|
319 |
+
$this->add_action($tag, $function_to_add, $priority, $accepted_args);
|
320 |
+
|
321 |
+
}
|
322 |
+
|
323 |
+
/**
|
324 |
+
* add_field_action
|
325 |
+
*
|
326 |
+
* @param $tag
|
327 |
+
* @param $function_to_add
|
328 |
+
* @param $priority
|
329 |
+
* @param $accepted_args
|
330 |
+
*/
|
331 |
+
function add_field_action($tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1){
|
332 |
+
|
333 |
+
// append
|
334 |
+
$tag .= '/type=' . $this->name;
|
335 |
+
|
336 |
+
// add
|
337 |
+
$this->add_action($tag, $function_to_add, $priority, $accepted_args);
|
338 |
+
|
339 |
+
}
|
340 |
+
|
341 |
+
|
342 |
+
/**
|
343 |
+
* remove_field_action
|
344 |
+
*
|
345 |
+
* @param $tag
|
346 |
+
* @param $function_to_remove
|
347 |
+
* @param $priority
|
348 |
+
*/
|
349 |
+
function remove_field_action($tag = '', $function_to_remove = '', $priority = 10){
|
350 |
+
|
351 |
+
// append
|
352 |
+
$tag .= '/type=' . $this->name;
|
353 |
+
|
354 |
+
// remove
|
355 |
+
$this->remove_action($tag, $function_to_remove, $priority);
|
356 |
+
|
357 |
+
}
|
358 |
+
|
359 |
+
|
360 |
+
/**
|
361 |
+
* replace_field_action
|
362 |
+
*
|
363 |
+
* @param $tag
|
364 |
+
* @param $function_to_replace
|
365 |
+
* @param $priority
|
366 |
+
* @param $accepted_args
|
367 |
+
*/
|
368 |
+
function replace_field_action($tag = '', $function_to_replace = '', $priority = 10, $accepted_args = 1){
|
369 |
+
|
370 |
+
// append
|
371 |
+
$tag .= '/type=' . $this->name;
|
372 |
+
|
373 |
+
// replace
|
374 |
+
$this->replace_action($tag, $function_to_replace, $priority, $accepted_args);
|
375 |
+
|
376 |
+
}
|
377 |
+
|
378 |
+
}
|
379 |
+
|
380 |
+
endif;
|
includes/field-groups/field-group-advanced.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
// Check setting
|
7 |
if(acfe_get_setting('modules/field_group_ui'))
|
@@ -44,13 +45,13 @@ class acfe_field_group_advanced{
|
|
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 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
// Check setting
|
8 |
if(acfe_get_setting('modules/field_group_ui'))
|
45 |
'prefix' => 'acf_field_group',
|
46 |
'type' => 'true_false',
|
47 |
'ui' => 1,
|
48 |
+
'instructions' => __('Enable advanced fields settings & validation', 'acfe'),
|
49 |
'value' => (isset($field_group['acfe_form'])) ? $field_group['acfe_form'] : '',
|
50 |
'required' => false,
|
51 |
'wrapper' => array(
|
52 |
'data-after' => 'active'
|
53 |
)
|
54 |
+
), 'div', 'label', true);
|
55 |
|
56 |
}
|
57 |
|
includes/field-groups/field-group-category.php
CHANGED
@@ -1,11 +1,13 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
// Check setting
|
7 |
-
if(!acf_get_setting('acfe/modules/categories'))
|
8 |
return;
|
|
|
9 |
|
10 |
if(!class_exists('acfe_field_group_category')):
|
11 |
|
@@ -16,18 +18,23 @@ class acfe_field_group_category{
|
|
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, '
|
25 |
-
add_action('acf/import_field_group', array($this, '
|
26 |
|
27 |
}
|
28 |
|
29 |
-
|
30 |
-
*
|
|
|
|
|
|
|
|
|
31 |
*/
|
32 |
function init(){
|
33 |
|
@@ -57,51 +64,101 @@ class acfe_field_group_category{
|
|
57 |
|
58 |
}
|
59 |
|
60 |
-
|
61 |
-
|
|
|
|
|
|
|
62 |
*/
|
63 |
function admin_menu(){
|
64 |
|
65 |
-
if(
|
66 |
-
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
*/
|
75 |
function parent_file($parent_file){
|
76 |
|
77 |
-
global $
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
*/
|
89 |
function columns($columns){
|
90 |
|
91 |
$new_columns = array();
|
92 |
-
foreach($columns as $key => $value)
|
93 |
-
|
|
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
*/
|
106 |
function column_html($column, $post_id){
|
107 |
|
@@ -121,13 +178,21 @@ class acfe_field_group_category{
|
|
121 |
|
122 |
}
|
123 |
|
124 |
-
|
125 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|
@@ -144,13 +209,15 @@ class acfe_field_group_category{
|
|
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 |
}
|
@@ -159,64 +226,86 @@ class acfe_field_group_category{
|
|
159 |
|
160 |
}
|
161 |
|
162 |
-
|
163 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
173 |
-
|
174 |
-
|
175 |
-
unset($taxonomies[$k]);
|
176 |
-
|
177 |
}
|
178 |
|
179 |
return $taxonomies;
|
180 |
|
181 |
}
|
182 |
|
183 |
-
|
184 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
*/
|
186 |
-
function
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
*/
|
216 |
-
function
|
217 |
|
218 |
-
if(!$categories = acf_maybe_get($field_group, 'acfe_categories'))
|
219 |
return;
|
|
|
220 |
|
221 |
foreach($categories as $term_slug => $term_name){
|
222 |
|
@@ -231,22 +320,16 @@ class acfe_field_group_category{
|
|
231 |
));
|
232 |
|
233 |
if(!is_wp_error($new_term)){
|
234 |
-
|
235 |
$new_term_id = $new_term['term_id'];
|
236 |
-
|
237 |
}
|
238 |
|
239 |
-
|
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 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
// Check setting
|
8 |
+
if(!acf_get_setting('acfe/modules/categories')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_field_group_category')):
|
13 |
|
18 |
add_action('init', array($this, 'init'), 9);
|
19 |
add_action('admin_menu', array($this, 'admin_menu'));
|
20 |
add_filter('parent_file', array($this, 'parent_file'));
|
21 |
+
add_action('acf/field_group/admin_head', array($this, 'admin_head'));
|
22 |
add_filter('manage_edit-acf-field-group_columns', array($this, 'columns'), 11);
|
23 |
add_action('manage_acf-field-group_posts_custom_column' , array($this, 'column_html'), 10, 2);
|
24 |
add_filter('views_edit-acf-field-group', array($this, 'views'), 9);
|
25 |
add_filter('acf/get_taxonomies', array($this, 'acf_get_taxonomies'), 10, 2);
|
26 |
|
27 |
+
add_filter('acf/prepare_field_group_for_export', array($this, 'prepare_field_group_for_export'));
|
28 |
+
add_action('acf/import_field_group', array($this, 'import_field_group'));
|
29 |
|
30 |
}
|
31 |
|
32 |
+
/**
|
33 |
+
* init
|
34 |
+
*
|
35 |
+
* init:9
|
36 |
+
*
|
37 |
+
* Register taxonomy
|
38 |
*/
|
39 |
function init(){
|
40 |
|
64 |
|
65 |
}
|
66 |
|
67 |
+
|
68 |
+
/**
|
69 |
+
* admin_menu
|
70 |
+
*
|
71 |
+
* Add submenu page manually
|
72 |
*/
|
73 |
function admin_menu(){
|
74 |
|
75 |
+
if(acf_get_setting('show_admin')){
|
76 |
+
add_submenu_page('edit.php?post_type=acf-field-group', __('Categories'), __('Categories'), acf_get_setting('capability'), 'edit-tags.php?taxonomy=acf-field-group-category');
|
77 |
+
}
|
|
|
78 |
|
79 |
}
|
80 |
|
81 |
+
|
82 |
+
/**
|
83 |
+
* parent_file
|
84 |
+
*
|
85 |
+
* set current submenu class
|
86 |
+
*
|
87 |
+
* @param $parent_file
|
88 |
+
*
|
89 |
+
* @return mixed|string
|
90 |
*/
|
91 |
function parent_file($parent_file){
|
92 |
|
93 |
+
global $current_screen, $pagenow;
|
94 |
|
95 |
+
if($current_screen->taxonomy === 'acf-field-group-category' && ($pagenow === 'edit-tags.php' || $pagenow === 'term.php')){
|
96 |
$parent_file = 'edit.php?post_type=acf-field-group';
|
97 |
+
}
|
98 |
|
99 |
return $parent_file;
|
100 |
|
101 |
}
|
102 |
|
103 |
+
|
104 |
+
/**
|
105 |
+
* admin_head
|
106 |
+
*
|
107 |
+
* acf/field_group/admin_head
|
108 |
+
*
|
109 |
+
* Hide metabox if no term has been added yet
|
110 |
+
*/
|
111 |
+
function admin_head(){
|
112 |
+
|
113 |
+
$count = get_terms(array(
|
114 |
+
'taxonomy' => 'acf-field-group-category',
|
115 |
+
'hide_empty' => false,
|
116 |
+
'fields' => 'count',
|
117 |
+
));
|
118 |
+
|
119 |
+
$count = intval($count);
|
120 |
+
|
121 |
+
if($count === 0){
|
122 |
+
remove_meta_box('acf-field-group-categorydiv', 'acf-field-group', 'side');
|
123 |
+
}
|
124 |
+
|
125 |
+
}
|
126 |
+
|
127 |
+
|
128 |
+
/**
|
129 |
+
* columns
|
130 |
+
*
|
131 |
+
* manage_edit-acf-field-group_columns:11
|
132 |
+
*
|
133 |
+
* @param $columns
|
134 |
+
*
|
135 |
+
* @return array
|
136 |
*/
|
137 |
function columns($columns){
|
138 |
|
139 |
$new_columns = array();
|
140 |
+
foreach($columns as $key => $value){
|
141 |
+
|
142 |
+
if($key === 'title'){
|
143 |
$new_columns['acf-field-group-category'] = __('Categories');
|
144 |
+
}
|
145 |
|
146 |
$new_columns[$key] = $value;
|
147 |
+
|
148 |
}
|
149 |
|
150 |
return $new_columns;
|
151 |
|
152 |
}
|
153 |
|
154 |
+
|
155 |
+
/**
|
156 |
+
* column_html
|
157 |
+
*
|
158 |
+
* manage_acf-field-group_posts_custom_column
|
159 |
+
*
|
160 |
+
* @param $column
|
161 |
+
* @param $post_id
|
162 |
*/
|
163 |
function column_html($column, $post_id){
|
164 |
|
178 |
|
179 |
}
|
180 |
|
181 |
+
|
182 |
+
/**
|
183 |
+
* views
|
184 |
+
*
|
185 |
+
* views_edit-acf-field-group:9
|
186 |
+
*
|
187 |
+
* @param $views
|
188 |
+
*
|
189 |
+
* @return mixed
|
190 |
*/
|
191 |
function views($views){
|
192 |
|
193 |
+
if(!$terms = get_terms('acf-field-group-category', array('hide_empty' => false))){
|
194 |
return $views;
|
195 |
+
}
|
196 |
|
197 |
foreach($terms as $term){
|
198 |
|
209 |
$count = count($groups);
|
210 |
|
211 |
$html = '';
|
212 |
+
if($count > 0){
|
213 |
$html = ' <span class="count">(' . $count . ')</span>';
|
214 |
+
}
|
215 |
|
216 |
global $wp_query;
|
217 |
$class = '';
|
218 |
+
if(isset($wp_query->query_vars['acf-field-group-category']) && $wp_query->query_vars['acf-field-group-category'] === $term->slug){
|
219 |
$class = ' class="current"';
|
220 |
+
}
|
221 |
|
222 |
$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>';
|
223 |
}
|
226 |
|
227 |
}
|
228 |
|
229 |
+
|
230 |
+
/**
|
231 |
+
* acf_get_taxonomies
|
232 |
+
*
|
233 |
+
* acf/get_taxonomies
|
234 |
+
*
|
235 |
+
* Exclude taxonomy from available field group locations
|
236 |
+
*
|
237 |
+
* @param $taxonomies
|
238 |
+
* @param $args
|
239 |
+
*
|
240 |
+
* @return mixed
|
241 |
*/
|
242 |
function acf_get_taxonomies($taxonomies, $args){
|
243 |
|
|
|
|
|
|
|
244 |
foreach($taxonomies as $k => $taxonomy){
|
245 |
+
if($taxonomy === 'acf-field-group-category'){
|
246 |
+
unset($taxonomies[$k]);
|
247 |
+
}
|
|
|
|
|
|
|
248 |
}
|
249 |
|
250 |
return $taxonomies;
|
251 |
|
252 |
}
|
253 |
|
254 |
+
|
255 |
+
/**
|
256 |
+
* prepare_field_group_for_export
|
257 |
+
*
|
258 |
+
* acf/prepare_field_group_for_export
|
259 |
+
*
|
260 |
+
* append categories slugs during export
|
261 |
+
*
|
262 |
+
* @param $field_group
|
263 |
+
*
|
264 |
+
* @return mixed
|
265 |
*/
|
266 |
+
function prepare_field_group_for_export($field_group){
|
267 |
|
268 |
$_field_group = acf_get_field_group($field_group['key']);
|
269 |
|
270 |
+
if(empty($_field_group)){
|
271 |
return $field_group;
|
272 |
+
}
|
273 |
|
274 |
+
if(!acf_maybe_get($_field_group, 'ID')){
|
275 |
return $field_group;
|
276 |
+
}
|
277 |
|
278 |
$categories = get_the_terms($_field_group['ID'], 'acf-field-group-category');
|
279 |
|
280 |
+
if(empty($categories) || is_wp_error($categories)){
|
281 |
return $field_group;
|
282 |
+
}
|
283 |
|
284 |
$field_group['acfe_categories'] = array();
|
285 |
|
286 |
foreach($categories as $term){
|
|
|
287 |
$field_group['acfe_categories'][$term->slug] = $term->name;
|
|
|
288 |
}
|
289 |
|
290 |
return $field_group;
|
291 |
|
292 |
}
|
293 |
|
294 |
+
|
295 |
+
/**
|
296 |
+
* import_field_group
|
297 |
+
*
|
298 |
+
* acf/import_field_group
|
299 |
+
*
|
300 |
+
* Create term if doesn't exist during import
|
301 |
+
*
|
302 |
+
* @param $field_group
|
303 |
*/
|
304 |
+
function import_field_group($field_group){
|
305 |
|
306 |
+
if(!$categories = acf_maybe_get($field_group, 'acfe_categories')){
|
307 |
return;
|
308 |
+
}
|
309 |
|
310 |
foreach($categories as $term_slug => $term_name){
|
311 |
|
320 |
));
|
321 |
|
322 |
if(!is_wp_error($new_term)){
|
|
|
323 |
$new_term_id = $new_term['term_id'];
|
|
|
324 |
}
|
325 |
|
326 |
+
// Term already exists
|
327 |
}else{
|
|
|
328 |
$new_term_id = $get_term->term_id;
|
|
|
329 |
}
|
330 |
|
331 |
if($new_term_id){
|
|
|
332 |
wp_set_post_terms($field_group['ID'], array($new_term_id), 'acf-field-group-category', true);
|
|
|
333 |
}
|
334 |
|
335 |
}
|
includes/field-groups/field-group-display-title.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_group_display_title')):
|
7 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_group_display_title')):
|
8 |
|
includes/field-groups/field-group-hide-on-screen.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_group_hide_on_screen')):
|
7 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_group_hide_on_screen')):
|
8 |
|
includes/field-groups/field-group-instruction-placement.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_group_instruction_placement')):
|
7 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_group_instruction_placement')):
|
8 |
|
includes/field-groups/field-group-meta.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
// Check setting
|
7 |
if(acfe_get_setting('modules/field_group_ui'))
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
// Check setting
|
8 |
if(acfe_get_setting('modules/field_group_ui'))
|
includes/field-groups/field-group-permissions.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_group_permissions')):
|
7 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_group_permissions')):
|
8 |
|
includes/field-groups/field-group.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('ACFE_Field_Group')):
|
7 |
|
@@ -29,15 +30,15 @@ class ACFE_Field_Group{
|
|
29 |
}
|
30 |
|
31 |
if(isset($groups['E-Commerce'])){
|
32 |
-
$groups = acfe_array_insert_after('jQuery',
|
33 |
}
|
34 |
|
35 |
if(isset($groups['ACF'])){
|
36 |
-
$groups = acfe_array_insert_after('jQuery',
|
37 |
}
|
38 |
|
39 |
if(isset($groups['WordPress'])){
|
40 |
-
$groups = acfe_array_insert_after('jQuery',
|
41 |
}
|
42 |
|
43 |
return $groups;
|
@@ -109,7 +110,7 @@ class ACFE_Field_Group{
|
|
109 |
'placeholder' => '',
|
110 |
'prepend' => '',
|
111 |
'append' => ''
|
112 |
-
));
|
113 |
|
114 |
}
|
115 |
|
@@ -203,7 +204,7 @@ class ACFE_Field_Group{
|
|
203 |
*/
|
204 |
$choices = array(
|
205 |
'php' => 'PHP',
|
206 |
-
'json' => '
|
207 |
);
|
208 |
|
209 |
global $pagenow;
|
@@ -230,7 +231,7 @@ class ACFE_Field_Group{
|
|
230 |
|
231 |
ob_start();
|
232 |
?>
|
233 |
-
<span <?php echo
|
234 |
|
235 |
<?php echo $choices[$type]; ?>
|
236 |
|
@@ -270,17 +271,17 @@ class ACFE_Field_Group{
|
|
270 |
if(acf_maybe_get($field_group, 'acfe_permissions') || acf_is_filter_enabled('acfe/field_group/advanced')){
|
271 |
|
272 |
acf_render_field_wrap(array(
|
273 |
-
'label' => __('Permissions'),
|
274 |
'name' => 'acfe_permissions',
|
275 |
'prefix' => 'acf_field_group',
|
276 |
'type' => 'checkbox',
|
277 |
-
'instructions' => __('Select user roles that are allowed to view and edit this field group in post edition'),
|
278 |
'required' => false,
|
279 |
'default_value' => false,
|
280 |
'choices' => acfe_get_roles(),
|
281 |
'value' => acf_maybe_get($field_group, 'acfe_permissions', array()),
|
282 |
'layout' => 'vertical'
|
283 |
-
));
|
284 |
|
285 |
}
|
286 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('ACFE_Field_Group')):
|
8 |
|
30 |
}
|
31 |
|
32 |
if(isset($groups['E-Commerce'])){
|
33 |
+
$groups = acfe_array_insert_after($groups, 'jQuery', 'E-Commerce', $groups['E-Commerce']);
|
34 |
}
|
35 |
|
36 |
if(isset($groups['ACF'])){
|
37 |
+
$groups = acfe_array_insert_after($groups, 'jQuery', 'ACF', $groups['ACF']);
|
38 |
}
|
39 |
|
40 |
if(isset($groups['WordPress'])){
|
41 |
+
$groups = acfe_array_insert_after($groups, 'jQuery', 'WordPress', $groups['WordPress']);
|
42 |
}
|
43 |
|
44 |
return $groups;
|
110 |
'placeholder' => '',
|
111 |
'prepend' => '',
|
112 |
'append' => ''
|
113 |
+
), 'div', 'label', true);
|
114 |
|
115 |
}
|
116 |
|
204 |
*/
|
205 |
$choices = array(
|
206 |
'php' => 'PHP',
|
207 |
+
'json' => 'JSON',
|
208 |
);
|
209 |
|
210 |
global $pagenow;
|
231 |
|
232 |
ob_start();
|
233 |
?>
|
234 |
+
<span <?php echo acf_esc_attrs($wrapper); ?>>
|
235 |
|
236 |
<?php echo $choices[$type]; ?>
|
237 |
|
271 |
if(acf_maybe_get($field_group, 'acfe_permissions') || acf_is_filter_enabled('acfe/field_group/advanced')){
|
272 |
|
273 |
acf_render_field_wrap(array(
|
274 |
+
'label' => __('Permissions', 'acfe'),
|
275 |
'name' => 'acfe_permissions',
|
276 |
'prefix' => 'acf_field_group',
|
277 |
'type' => 'checkbox',
|
278 |
+
'instructions' => __('Select user roles that are allowed to view and edit this field group in post edition', 'acfe'),
|
279 |
'required' => false,
|
280 |
'default_value' => false,
|
281 |
'choices' => acfe_get_roles(),
|
282 |
'value' => acf_maybe_get($field_group, 'acfe_permissions', array()),
|
283 |
'layout' => 'vertical'
|
284 |
+
), 'div', 'label', true);
|
285 |
|
286 |
}
|
287 |
|
includes/field-groups/field-groups-local.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('ACFE_Field_Groups_Local')):
|
7 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('ACFE_Field_Groups_Local')):
|
8 |
|
includes/field-groups/field-groups.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('ACFE_Field_Groups')):
|
7 |
|
@@ -28,12 +29,14 @@ class ACFE_Field_Groups{
|
|
28 |
function current_screen(){
|
29 |
|
30 |
// Bail early if not Field Groups admin page.
|
31 |
-
if(!acf_is_screen('edit-acf-field-group'))
|
32 |
return;
|
|
|
33 |
|
34 |
// Old Compatibility
|
35 |
-
if(acf_version_compare(acf_get_setting('version'), '<', '5.9'))
|
36 |
$this->old_version = true;
|
|
|
37 |
|
38 |
// ACF < 5.9
|
39 |
if($this->old_version){
|
@@ -331,7 +334,7 @@ class ACFE_Field_Groups{
|
|
331 |
$icons[] = '<span class="dashicons dashicons-warning"></span>';
|
332 |
|
333 |
?>
|
334 |
-
<span <?php echo
|
335 |
|
336 |
<?php if($return['wrapper_start']){ echo $return['wrapper_start']; } ?>
|
337 |
|
@@ -457,7 +460,7 @@ class ACFE_Field_Groups{
|
|
457 |
$icons[] = '<span class="dashicons dashicons-warning"></span>';
|
458 |
|
459 |
?>
|
460 |
-
<span <?php echo
|
461 |
|
462 |
<?php if($return['wrapper_start']){ echo $return['wrapper_start']; } ?>
|
463 |
|
@@ -851,8 +854,9 @@ class ACFE_Field_Groups{
|
|
851 |
|
852 |
$sync = array();
|
853 |
|
854 |
-
if(!acf_get_local_json_files())
|
855 |
return $sync;
|
|
|
856 |
|
857 |
$field_groups = acf_get_field_groups();
|
858 |
|
@@ -864,14 +868,13 @@ class ACFE_Field_Groups{
|
|
864 |
$private = acf_maybe_get($field_group, 'private');
|
865 |
|
866 |
// Bail early
|
867 |
-
if($private || $local !== 'json')
|
868 |
continue;
|
|
|
869 |
|
870 |
// If field group doesn't exists in DB or modified file date more recent than DB
|
871 |
if(!$field_group['ID'] || ($modified && $modified > get_post_modified_time('U', true, $field_group['ID']))){
|
872 |
-
|
873 |
$sync[$field_group['key']] = $field_group;
|
874 |
-
|
875 |
}
|
876 |
|
877 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('ACFE_Field_Groups')):
|
8 |
|
29 |
function current_screen(){
|
30 |
|
31 |
// Bail early if not Field Groups admin page.
|
32 |
+
if(!acf_is_screen('edit-acf-field-group')){
|
33 |
return;
|
34 |
+
}
|
35 |
|
36 |
// Old Compatibility
|
37 |
+
if(acf_version_compare(acf_get_setting('version'), '<', '5.9')){
|
38 |
$this->old_version = true;
|
39 |
+
}
|
40 |
|
41 |
// ACF < 5.9
|
42 |
if($this->old_version){
|
334 |
$icons[] = '<span class="dashicons dashicons-warning"></span>';
|
335 |
|
336 |
?>
|
337 |
+
<span <?php echo acf_esc_attrs($wrapper); ?>>
|
338 |
|
339 |
<?php if($return['wrapper_start']){ echo $return['wrapper_start']; } ?>
|
340 |
|
460 |
$icons[] = '<span class="dashicons dashicons-warning"></span>';
|
461 |
|
462 |
?>
|
463 |
+
<span <?php echo acf_esc_attrs($wrapper); ?>>
|
464 |
|
465 |
<?php if($return['wrapper_start']){ echo $return['wrapper_start']; } ?>
|
466 |
|
854 |
|
855 |
$sync = array();
|
856 |
|
857 |
+
if(!acf_get_local_json_files()){
|
858 |
return $sync;
|
859 |
+
}
|
860 |
|
861 |
$field_groups = acf_get_field_groups();
|
862 |
|
868 |
$private = acf_maybe_get($field_group, 'private');
|
869 |
|
870 |
// Bail early
|
871 |
+
if($private || $local !== 'json'){
|
872 |
continue;
|
873 |
+
}
|
874 |
|
875 |
// If field group doesn't exists in DB or modified file date more recent than DB
|
876 |
if(!$field_group['ID'] || ($modified && $modified > get_post_modified_time('U', true, $field_group['ID']))){
|
|
|
877 |
$sync[$field_group['key']] = $field_group;
|
|
|
878 |
}
|
879 |
|
880 |
}
|
includes/field.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
+
exit;
|
5 |
+
}
|
6 |
+
|
7 |
+
if(!class_exists('acfe_field')):
|
8 |
+
|
9 |
+
class acfe_field extends acf_field{
|
10 |
+
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
+
function __construct(){
|
15 |
+
|
16 |
+
// parent construct
|
17 |
+
parent::__construct();
|
18 |
+
|
19 |
+
// field
|
20 |
+
$this->add_field_filter('acfe/field_wrapper_attributes', array($this, 'field_wrapper_attributes'), 10, 2);
|
21 |
+
$this->add_field_filter('acfe/load_fields', array($this, 'load_fields'), 10, 2);
|
22 |
+
|
23 |
+
}
|
24 |
+
|
25 |
+
}
|
26 |
+
|
27 |
+
endif;
|
includes/fields-settings/bidirectional.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_bidirectional')):
|
7 |
|
@@ -110,7 +111,7 @@ class acfe_bidirectional{
|
|
110 |
function ajax_query(){
|
111 |
|
112 |
// validate
|
113 |
-
if
|
114 |
die();
|
115 |
}
|
116 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_bidirectional')):
|
8 |
|
111 |
function ajax_query(){
|
112 |
|
113 |
// validate
|
114 |
+
if(!acf_verify_ajax()){
|
115 |
die();
|
116 |
}
|
117 |
|
includes/fields-settings/data.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_data')):
|
7 |
|
@@ -18,8 +19,9 @@ class acfe_field_data{
|
|
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,
|
@@ -78,7 +80,7 @@ class acfe_field_data{
|
|
78 |
}
|
79 |
|
80 |
?>
|
81 |
-
<a href="#" class="button acfe-data-button" data-acfe-modal="<?php echo $id; ?>" data-acfe-modal-title="<?php echo $title; ?>" data-acfe-modal-footer="<?php _e('Close', '
|
82 |
<?php _e('Data', 'acf'); ?>
|
83 |
</a>
|
84 |
<div class="acfe-modal" data-acfe-modal="<?php echo $id; ?>">
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_data')):
|
8 |
|
19 |
|
20 |
$id = acf_maybe_get($field, 'ID');
|
21 |
|
22 |
+
if(!$id || $id === 'acfcloneindex'){
|
23 |
return;
|
24 |
+
}
|
25 |
|
26 |
acf_render_field_setting($field, array(
|
27 |
'label' => false,
|
80 |
}
|
81 |
|
82 |
?>
|
83 |
+
<a href="#" class="button acfe-data-button" data-acfe-modal="<?php echo $id; ?>" data-acfe-modal-title="<?php echo $title; ?>" data-acfe-modal-footer="<?php _e('Close', 'acfe'); ?>" style="margin-left:5px;">
|
84 |
<?php _e('Data', 'acf'); ?>
|
85 |
</a>
|
86 |
<div class="acfe-modal" data-acfe-modal="<?php echo $id; ?>">
|
includes/fields-settings/instructions.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_instructions')):
|
7 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_instructions')):
|
8 |
|
includes/fields-settings/permissions.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_permissions')):
|
7 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_permissions')):
|
8 |
|
includes/fields-settings/settings.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_settings')):
|
7 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_settings')):
|
8 |
|
includes/fields-settings/validation.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_validation')):
|
7 |
|
@@ -541,11 +542,11 @@ class acfe_field_validation{
|
|
541 |
$rule_match = true;
|
542 |
}
|
543 |
|
544 |
-
elseif($operator === 'regex' && preg_match('/' . $match . '/', $result)){
|
545 |
$rule_match = true;
|
546 |
}
|
547 |
|
548 |
-
elseif($operator === '!regex' && !preg_match('/' . $match . '/', $result)){
|
549 |
$rule_match = true;
|
550 |
}
|
551 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_validation')):
|
8 |
|
542 |
$rule_match = true;
|
543 |
}
|
544 |
|
545 |
+
elseif($operator === 'regex' && preg_match('/' . $match . '/u', $result)){
|
546 |
$rule_match = true;
|
547 |
}
|
548 |
|
549 |
+
elseif($operator === '!regex' && !preg_match('/' . $match . '/u', $result)){
|
550 |
$rule_match = true;
|
551 |
}
|
552 |
|
includes/fields/field-advanced-link.php
CHANGED
@@ -1,15 +1,20 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_advanced_link')):
|
7 |
|
8 |
class acfe_field_advanced_link extends acf_field{
|
9 |
|
|
|
10 |
public $post_object = '';
|
11 |
|
12 |
-
|
|
|
|
|
|
|
13 |
|
14 |
$this->name = 'acfe_advanced_link';
|
15 |
$this->label = __('Advanced Link', 'acfe');
|
@@ -19,18 +24,22 @@ class acfe_field_advanced_link extends acf_field{
|
|
19 |
'taxonomy' => array(),
|
20 |
);
|
21 |
|
22 |
-
add_action('wp_ajax_acfe/fields/advanced_link/post_query',
|
23 |
-
add_action('wp_ajax_nopriv_acfe/fields/advanced_link/post_query',
|
24 |
|
25 |
$this->post_object = acf_get_field_type('post_object');
|
26 |
|
27 |
remove_action('acf/render_field/type=post_object', array($this->post_object, 'render_field'), 9);
|
28 |
add_action('acf/render_field/type=post_object', array($this, 'post_object_render_field'), 9);
|
29 |
|
30 |
-
parent::__construct();
|
31 |
-
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
function post_object_render_field($field){
|
35 |
|
36 |
// Change Field into a select
|
@@ -70,6 +79,12 @@ class acfe_field_advanced_link extends acf_field{
|
|
70 |
|
71 |
}
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
function ajax_query(){
|
74 |
|
75 |
// validate
|
@@ -163,6 +178,12 @@ class acfe_field_advanced_link extends acf_field{
|
|
163 |
|
164 |
}
|
165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
function render_field_settings($field){
|
167 |
|
168 |
// Filter Post Type
|
@@ -193,6 +214,14 @@ class acfe_field_advanced_link extends acf_field{
|
|
193 |
|
194 |
}
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
function get_value($value = array()){
|
197 |
|
198 |
// vars
|
@@ -251,28 +280,30 @@ class acfe_field_advanced_link extends acf_field{
|
|
251 |
|
252 |
}
|
253 |
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
function render_field($field){
|
255 |
|
256 |
// vars
|
257 |
$div = array(
|
258 |
'id' => $field['id'],
|
259 |
-
'class'
|
260 |
);
|
261 |
|
262 |
// get link
|
263 |
$value = $this->get_value($field['value']);
|
264 |
|
265 |
// classes
|
266 |
-
if($value['url']){
|
267 |
-
|
268 |
$div['class'] .= ' -value';
|
269 |
-
|
270 |
}
|
271 |
|
272 |
if($value['target'] === '_blank'){
|
273 |
-
|
274 |
$div['class'] .= ' -external';
|
275 |
-
|
276 |
}
|
277 |
|
278 |
$sub_fields = array(
|
@@ -397,7 +428,7 @@ class acfe_field_advanced_link extends acf_field{
|
|
397 |
|
398 |
?>
|
399 |
|
400 |
-
<div <?php
|
401 |
|
402 |
<div class="acfe-modal" data-modal-title="<?php echo $field['label']; ?>">
|
403 |
<div class="acfe-modal-wrapper">
|
@@ -428,6 +459,16 @@ class acfe_field_advanced_link extends acf_field{
|
|
428 |
|
429 |
}
|
430 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
431 |
function format_value($value, $post_id, $field){
|
432 |
|
433 |
// get value
|
@@ -443,18 +484,32 @@ class acfe_field_advanced_link extends acf_field{
|
|
443 |
|
444 |
}
|
445 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
446 |
function validate_value($valid, $value, $field, $input){
|
447 |
|
448 |
// bail early if not required
|
449 |
-
if(!$field['required'])
|
450 |
return $valid;
|
|
|
451 |
|
452 |
// URL is required
|
453 |
-
if(empty($value))
|
454 |
return false;
|
|
|
455 |
|
456 |
-
if((acf_maybe_get($value, 'type') === 'url' && !acf_maybe_get($value, 'url')) || (acf_maybe_get($value, 'type') === 'post' && !acf_maybe_get($value, 'post')) || (acf_maybe_get($value, 'type') === 'term' && !acf_maybe_get($value, 'term')))
|
457 |
return false;
|
|
|
458 |
|
459 |
// return
|
460 |
return $valid;
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_advanced_link')):
|
8 |
|
9 |
class acfe_field_advanced_link extends acf_field{
|
10 |
|
11 |
+
// vars
|
12 |
public $post_object = '';
|
13 |
|
14 |
+
/**
|
15 |
+
* initialize
|
16 |
+
*/
|
17 |
+
function initialize(){
|
18 |
|
19 |
$this->name = 'acfe_advanced_link';
|
20 |
$this->label = __('Advanced Link', 'acfe');
|
24 |
'taxonomy' => array(),
|
25 |
);
|
26 |
|
27 |
+
$this->add_action('wp_ajax_acfe/fields/advanced_link/post_query', array($this, 'ajax_query'));
|
28 |
+
$this->add_action('wp_ajax_nopriv_acfe/fields/advanced_link/post_query', array($this, 'ajax_query'));
|
29 |
|
30 |
$this->post_object = acf_get_field_type('post_object');
|
31 |
|
32 |
remove_action('acf/render_field/type=post_object', array($this->post_object, 'render_field'), 9);
|
33 |
add_action('acf/render_field/type=post_object', array($this, 'post_object_render_field'), 9);
|
34 |
|
|
|
|
|
35 |
}
|
36 |
|
37 |
+
|
38 |
+
/**
|
39 |
+
* post_object_render_field
|
40 |
+
*
|
41 |
+
* @param $field
|
42 |
+
*/
|
43 |
function post_object_render_field($field){
|
44 |
|
45 |
// Change Field into a select
|
79 |
|
80 |
}
|
81 |
|
82 |
+
|
83 |
+
/**
|
84 |
+
* ajax_query
|
85 |
+
*
|
86 |
+
* @return false|void
|
87 |
+
*/
|
88 |
function ajax_query(){
|
89 |
|
90 |
// validate
|
178 |
|
179 |
}
|
180 |
|
181 |
+
|
182 |
+
/**
|
183 |
+
* render_field_settings
|
184 |
+
*
|
185 |
+
* @param $field
|
186 |
+
*/
|
187 |
function render_field_settings($field){
|
188 |
|
189 |
// Filter Post Type
|
214 |
|
215 |
}
|
216 |
|
217 |
+
|
218 |
+
/**
|
219 |
+
* get_value
|
220 |
+
*
|
221 |
+
* @param $value
|
222 |
+
*
|
223 |
+
* @return array
|
224 |
+
*/
|
225 |
function get_value($value = array()){
|
226 |
|
227 |
// vars
|
280 |
|
281 |
}
|
282 |
|
283 |
+
|
284 |
+
/**
|
285 |
+
* render_field
|
286 |
+
*
|
287 |
+
* @param $field
|
288 |
+
*/
|
289 |
function render_field($field){
|
290 |
|
291 |
// vars
|
292 |
$div = array(
|
293 |
'id' => $field['id'],
|
294 |
+
'class' => $field['class'] . ' acf-link',
|
295 |
);
|
296 |
|
297 |
// get link
|
298 |
$value = $this->get_value($field['value']);
|
299 |
|
300 |
// classes
|
301 |
+
if($value['url'] || $value['title']){
|
|
|
302 |
$div['class'] .= ' -value';
|
|
|
303 |
}
|
304 |
|
305 |
if($value['target'] === '_blank'){
|
|
|
306 |
$div['class'] .= ' -external';
|
|
|
307 |
}
|
308 |
|
309 |
$sub_fields = array(
|
428 |
|
429 |
?>
|
430 |
|
431 |
+
<div <?php echo acf_esc_attrs($div); ?>>
|
432 |
|
433 |
<div class="acfe-modal" data-modal-title="<?php echo $field['label']; ?>">
|
434 |
<div class="acfe-modal-wrapper">
|
459 |
|
460 |
}
|
461 |
|
462 |
+
|
463 |
+
/**
|
464 |
+
* format_value
|
465 |
+
*
|
466 |
+
* @param $value
|
467 |
+
* @param $post_id
|
468 |
+
* @param $field
|
469 |
+
*
|
470 |
+
* @return array
|
471 |
+
*/
|
472 |
function format_value($value, $post_id, $field){
|
473 |
|
474 |
// get value
|
484 |
|
485 |
}
|
486 |
|
487 |
+
|
488 |
+
/**
|
489 |
+
* validate_value
|
490 |
+
*
|
491 |
+
* @param $valid
|
492 |
+
* @param $value
|
493 |
+
* @param $field
|
494 |
+
* @param $input
|
495 |
+
*
|
496 |
+
* @return false
|
497 |
+
*/
|
498 |
function validate_value($valid, $value, $field, $input){
|
499 |
|
500 |
// bail early if not required
|
501 |
+
if(!$field['required']){
|
502 |
return $valid;
|
503 |
+
}
|
504 |
|
505 |
// URL is required
|
506 |
+
if(empty($value)){
|
507 |
return false;
|
508 |
+
}
|
509 |
|
510 |
+
if((acf_maybe_get($value, 'type') === 'url' && !acf_maybe_get($value, 'url')) || (acf_maybe_get($value, 'type') === 'post' && !acf_maybe_get($value, 'post')) || (acf_maybe_get($value, 'type') === 'term' && !acf_maybe_get($value, 'term'))){
|
511 |
return false;
|
512 |
+
}
|
513 |
|
514 |
// return
|
515 |
return $valid;
|
includes/fields/field-button.php
CHANGED
@@ -1,13 +1,17 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_button')):
|
7 |
|
8 |
class acfe_field_button extends acf_field{
|
9 |
|
10 |
-
|
|
|
|
|
|
|
11 |
|
12 |
$this->name = 'acfe_button';
|
13 |
$this->label = __('Button', 'acfe');
|
@@ -22,13 +26,15 @@ class acfe_field_button extends acf_field{
|
|
22 |
'button_ajax' => 0,
|
23 |
);
|
24 |
|
25 |
-
add_action('wp_ajax_acfe/fields/button', array($this, 'ajax_request'), 99);
|
26 |
-
add_action('wp_ajax_nopriv_acfe/fields/button', array($this, 'ajax_request'), 99);
|
27 |
-
|
28 |
-
parent::__construct();
|
29 |
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
32 |
function ajax_request(){
|
33 |
|
34 |
// vars
|
@@ -58,7 +64,13 @@ class acfe_field_button extends acf_field{
|
|
58 |
die;
|
59 |
|
60 |
}
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
function render_field_settings($field){
|
63 |
|
64 |
// Value
|
@@ -84,7 +96,7 @@ class acfe_field_button extends acf_field{
|
|
84 |
|
85 |
// class
|
86 |
acf_render_field_setting($field, array(
|
87 |
-
'label' => __('Button attributes','
|
88 |
'instructions' => '',
|
89 |
'type' => 'text',
|
90 |
'name' => 'button_class',
|
@@ -130,6 +142,12 @@ class acfe_field_button extends acf_field{
|
|
130 |
|
131 |
}
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
function render_field($field){
|
134 |
|
135 |
// Before
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_button')):
|
8 |
|
9 |
class acfe_field_button extends acf_field{
|
10 |
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
+
*/
|
14 |
+
function initialize(){
|
15 |
|
16 |
$this->name = 'acfe_button';
|
17 |
$this->label = __('Button', 'acfe');
|
26 |
'button_ajax' => 0,
|
27 |
);
|
28 |
|
29 |
+
$this->add_action('wp_ajax_acfe/fields/button', array($this, 'ajax_request'), 99);
|
30 |
+
$this->add_action('wp_ajax_nopriv_acfe/fields/button', array($this, 'ajax_request'), 99);
|
|
|
|
|
31 |
|
32 |
}
|
33 |
|
34 |
+
|
35 |
+
/**
|
36 |
+
* ajax_request
|
37 |
+
*/
|
38 |
function ajax_request(){
|
39 |
|
40 |
// vars
|
64 |
die;
|
65 |
|
66 |
}
|
67 |
+
|
68 |
+
|
69 |
+
/**
|
70 |
+
* render_field_settings
|
71 |
+
*
|
72 |
+
* @param $field
|
73 |
+
*/
|
74 |
function render_field_settings($field){
|
75 |
|
76 |
// Value
|
96 |
|
97 |
// class
|
98 |
acf_render_field_setting($field, array(
|
99 |
+
'label' => __('Button attributes', 'acfe'),
|
100 |
'instructions' => '',
|
101 |
'type' => 'text',
|
102 |
'name' => 'button_class',
|
142 |
|
143 |
}
|
144 |
|
145 |
+
|
146 |
+
/**
|
147 |
+
* render_field
|
148 |
+
*
|
149 |
+
* @param $field
|
150 |
+
*/
|
151 |
function render_field($field){
|
152 |
|
153 |
// Before
|
includes/fields/field-checkbox.php
CHANGED
@@ -1,48 +1,69 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_checkbox')):
|
7 |
|
8 |
class acfe_field_checkbox{
|
9 |
|
|
|
|
|
|
|
10 |
function __construct(){
|
11 |
-
|
12 |
-
//
|
13 |
-
add_filter('acf/prepare_field/name=choices', array($this, '
|
14 |
|
15 |
// Filters
|
16 |
-
add_filter('acf/prepare_field/type=acfe_taxonomy_terms', array($this, '
|
17 |
-
add_filter('acf/prepare_field/type=radio', array($this, '
|
18 |
-
add_filter('acf/prepare_field/type=checkbox', array($this, '
|
19 |
|
20 |
add_filter('acf/prepare_field/type=radio', array($this, 'prepare_radio'), 20);
|
21 |
add_filter('acf/prepare_field/type=acfe_taxonomy_terms', array($this, 'prepare_radio'), 20);
|
22 |
-
|
23 |
-
add_filter('acfe/field_wrapper_attributes/type=radio', array($this, 'field_wrapper'), 10, 2);
|
24 |
-
add_filter('acfe/field_wrapper_attributes/type=checkbox', array($this, 'field_wrapper'), 10, 2);
|
25 |
|
26 |
}
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
return $field;
|
39 |
|
40 |
}
|
41 |
|
42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
// bail early if no choices
|
45 |
-
if(empty($field['choices']))
|
|
|
|
|
46 |
|
47 |
// map '## group'
|
48 |
if(is_array($field['choices'])){
|
@@ -75,30 +96,38 @@ class acfe_field_checkbox{
|
|
75 |
}
|
76 |
|
77 |
if(!empty($found_array)){
|
78 |
-
|
79 |
$field['choices'] = $found_array;
|
80 |
-
|
81 |
}
|
82 |
|
83 |
}
|
84 |
|
85 |
// Labels
|
86 |
-
$labels = $this->
|
87 |
|
88 |
if(!empty($labels)){
|
89 |
-
|
90 |
-
$field['acfe_labels'] = $labels;
|
91 |
-
|
92 |
}
|
93 |
|
94 |
return $field;
|
95 |
|
96 |
}
|
97 |
|
98 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
|
100 |
// bail early if no choices
|
101 |
-
if(empty($choices))
|
|
|
|
|
102 |
|
103 |
foreach($choices as $value => $label){
|
104 |
|
@@ -112,7 +141,7 @@ class acfe_field_checkbox{
|
|
112 |
$labels = array_merge($labels, array($value => $key));
|
113 |
}
|
114 |
|
115 |
-
$labels = $this->
|
116 |
|
117 |
}
|
118 |
|
@@ -120,11 +149,23 @@ class acfe_field_checkbox{
|
|
120 |
|
121 |
}
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
function prepare_radio($field){
|
124 |
|
125 |
-
if($field['type'] !== 'radio' && $field['field_type'] !== 'radio')
|
|
|
|
|
126 |
|
127 |
-
if(empty($field['choices']))
|
|
|
|
|
128 |
|
129 |
$choices = array();
|
130 |
|
@@ -144,29 +185,25 @@ class acfe_field_checkbox{
|
|
144 |
|
145 |
}
|
146 |
|
147 |
-
function field_wrapper($wrapper, $field){
|
148 |
-
|
149 |
-
$labels = acf_maybe_get($field, 'acfe_labels');
|
150 |
-
|
151 |
-
if(empty($labels)) return $wrapper;
|
152 |
-
|
153 |
-
$wrapper['data-acfe-labels'] = $labels;
|
154 |
-
|
155 |
-
return $wrapper;
|
156 |
-
|
157 |
-
}
|
158 |
-
|
159 |
}
|
160 |
|
161 |
acf_new_instance('acfe_field_checkbox');
|
162 |
|
163 |
endif;
|
164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
function acfe_prepare_checkbox_labels($field){
|
166 |
|
167 |
$instance = acf_get_instance('acfe_field_checkbox');
|
168 |
|
169 |
-
$field = $instance->
|
170 |
$field = $instance->prepare_radio($field);
|
171 |
|
172 |
return $field;
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_checkbox')):
|
8 |
|
9 |
class acfe_field_checkbox{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
+
|
16 |
+
// instructions
|
17 |
+
add_filter('acf/prepare_field/name=choices', array($this, 'prepare_instructions'), 20);
|
18 |
|
19 |
// Filters
|
20 |
+
add_filter('acf/prepare_field/type=acfe_taxonomy_terms', array($this, 'prepare_choices'), 20);
|
21 |
+
add_filter('acf/prepare_field/type=radio', array($this, 'prepare_choices'), 20);
|
22 |
+
add_filter('acf/prepare_field/type=checkbox', array($this, 'prepare_choices'), 20);
|
23 |
|
24 |
add_filter('acf/prepare_field/type=radio', array($this, 'prepare_radio'), 20);
|
25 |
add_filter('acf/prepare_field/type=acfe_taxonomy_terms', array($this, 'prepare_radio'), 20);
|
|
|
|
|
|
|
26 |
|
27 |
}
|
28 |
|
29 |
+
|
30 |
+
/**
|
31 |
+
* prepare_instructions
|
32 |
+
*/
|
33 |
+
function prepare_instructions($field){
|
34 |
+
|
35 |
+
// check setting
|
36 |
+
if(acf_maybe_get($field['wrapper'], 'data-setting') === 'radio' || acf_maybe_get($field['wrapper'], 'data-setting') === 'checkbox' || acf_maybe_get($field['wrapper'], 'data-setting') === 'select'){
|
37 |
+
|
38 |
+
$text = "<br/><br/>" . __('You may use "## Title" to create a group of options.', 'acfe');
|
39 |
+
|
40 |
+
if(acf_maybe_get($field, 'hint')){
|
41 |
+
$field['hint'] .= $text;
|
42 |
+
}else{
|
43 |
+
$field['instructions'] .= $text;
|
44 |
+
}
|
45 |
+
|
46 |
+
|
47 |
+
}
|
48 |
+
|
49 |
return $field;
|
50 |
|
51 |
}
|
52 |
|
53 |
+
|
54 |
+
/**
|
55 |
+
* prepare_choices
|
56 |
+
*
|
57 |
+
* @param $field
|
58 |
+
*
|
59 |
+
* @return mixed
|
60 |
+
*/
|
61 |
+
function prepare_choices($field){
|
62 |
|
63 |
// bail early if no choices
|
64 |
+
if(empty($field['choices'])){
|
65 |
+
return $field;
|
66 |
+
}
|
67 |
|
68 |
// map '## group'
|
69 |
if(is_array($field['choices'])){
|
96 |
}
|
97 |
|
98 |
if(!empty($found_array)){
|
|
|
99 |
$field['choices'] = $found_array;
|
|
|
100 |
}
|
101 |
|
102 |
}
|
103 |
|
104 |
// Labels
|
105 |
+
$labels = $this->walk_choices($field['choices']);
|
106 |
|
107 |
if(!empty($labels)){
|
108 |
+
$field['wrapper']['data-acfe-labels'] = json_encode($labels);
|
|
|
|
|
109 |
}
|
110 |
|
111 |
return $field;
|
112 |
|
113 |
}
|
114 |
|
115 |
+
|
116 |
+
/**
|
117 |
+
* walk_choices
|
118 |
+
*
|
119 |
+
* @param $choices
|
120 |
+
* @param $depth
|
121 |
+
* @param $labels
|
122 |
+
*
|
123 |
+
* @return array|mixed
|
124 |
+
*/
|
125 |
+
function walk_choices($choices = array(), $depth = 1, $labels = array()){
|
126 |
|
127 |
// bail early if no choices
|
128 |
+
if(empty($choices)){
|
129 |
+
return $labels;
|
130 |
+
}
|
131 |
|
132 |
foreach($choices as $value => $label){
|
133 |
|
141 |
$labels = array_merge($labels, array($value => $key));
|
142 |
}
|
143 |
|
144 |
+
$labels = $this->walk_choices($label, $depth+1, $labels);
|
145 |
|
146 |
}
|
147 |
|
149 |
|
150 |
}
|
151 |
|
152 |
+
|
153 |
+
/**
|
154 |
+
* prepare_radio
|
155 |
+
*
|
156 |
+
* @param $field
|
157 |
+
*
|
158 |
+
* @return mixed
|
159 |
+
*/
|
160 |
function prepare_radio($field){
|
161 |
|
162 |
+
if($field['type'] !== 'radio' && $field['field_type'] !== 'radio'){
|
163 |
+
return $field;
|
164 |
+
}
|
165 |
|
166 |
+
if(empty($field['choices'])){
|
167 |
+
return $field;
|
168 |
+
}
|
169 |
|
170 |
$choices = array();
|
171 |
|
185 |
|
186 |
}
|
187 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
}
|
189 |
|
190 |
acf_new_instance('acfe_field_checkbox');
|
191 |
|
192 |
endif;
|
193 |
|
194 |
+
|
195 |
+
/**
|
196 |
+
* acfe_prepare_checkbox_labels
|
197 |
+
*
|
198 |
+
* @param $field
|
199 |
+
*
|
200 |
+
* @return mixed
|
201 |
+
*/
|
202 |
function acfe_prepare_checkbox_labels($field){
|
203 |
|
204 |
$instance = acf_get_instance('acfe_field_checkbox');
|
205 |
|
206 |
+
$field = $instance->prepare_choices($field);
|
207 |
$field = $instance->prepare_radio($field);
|
208 |
|
209 |
return $field;
|
includes/fields/field-clone.php
CHANGED
@@ -1,29 +1,85 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_clone')):
|
7 |
|
8 |
-
class acfe_field_clone{
|
9 |
|
10 |
-
|
11 |
-
*
|
12 |
*/
|
13 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
-
add_action('
|
16 |
-
add_filter('acfe/field_wrapper_attributes/type=clone', array($this, 'field_wrapper_attributes'), 10, 2);
|
17 |
-
add_filter('acf/prepare_field/type=clone', array($this, 'prepare_field'), 99);
|
18 |
-
add_action('wp_ajax_acf/fields/clone/query', array($this, 'ajax_query'), 5);
|
19 |
|
20 |
}
|
21 |
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
24 |
*/
|
25 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
acf_render_field_setting($field, array(
|
28 |
'label' => __('Seamless Style', 'acfe'),
|
29 |
'name' => 'acfe_seamless_style',
|
@@ -48,7 +104,8 @@ class acfe_field_clone{
|
|
48 |
)
|
49 |
)
|
50 |
));
|
51 |
-
|
|
|
52 |
acf_render_field_setting($field, array(
|
53 |
'label' => __('Edition modal'),
|
54 |
'name' => 'acfe_clone_modal',
|
@@ -68,7 +125,8 @@ class acfe_field_clone{
|
|
68 |
)
|
69 |
)
|
70 |
));
|
71 |
-
|
|
|
72 |
acf_render_field_setting($field, array(
|
73 |
'label' => __('Edition modal: Close button'),
|
74 |
'name' => 'acfe_clone_modal_close',
|
@@ -88,7 +146,8 @@ class acfe_field_clone{
|
|
88 |
)
|
89 |
)
|
90 |
));
|
91 |
-
|
|
|
92 |
acf_render_field_setting($field, array(
|
93 |
'label' => __('Edition modal: Text button'),
|
94 |
'name' => 'acfe_clone_modal_button',
|
@@ -106,7 +165,8 @@ class acfe_field_clone{
|
|
106 |
)
|
107 |
)
|
108 |
));
|
109 |
-
|
|
|
110 |
acf_render_field_setting($field, array(
|
111 |
'label' => __('Edition modal: Size'),
|
112 |
'name' => 'acfe_clone_modal_size',
|
@@ -134,98 +194,43 @@ class acfe_field_clone{
|
|
134 |
|
135 |
}
|
136 |
|
137 |
-
/*
|
138 |
-
* Field Wrapper Attributes
|
139 |
-
*/
|
140 |
-
function field_wrapper_attributes($wrapper, $field){
|
141 |
-
|
142 |
-
if(acf_maybe_get($field, 'acfe_clone_modal')){
|
143 |
-
|
144 |
-
$wrapper['data-acfe-clone-modal'] = 1;
|
145 |
-
$wrapper['data-acfe-clone-modal-button'] = __('Edit', 'acf');
|
146 |
-
|
147 |
-
if(acf_maybe_get($field, 'acfe_clone_modal_button')){
|
148 |
-
|
149 |
-
$wrapper['data-acfe-clone-modal-button'] = $field['acfe_clone_modal_button'];
|
150 |
-
|
151 |
-
}
|
152 |
-
|
153 |
-
if(acf_maybe_get($field, 'acfe_clone_modal_close')){
|
154 |
-
|
155 |
-
$wrapper['data-acfe-clone-modal-close'] = $field['acfe_clone_modal_close'];
|
156 |
-
|
157 |
-
}
|
158 |
-
|
159 |
-
if(acf_maybe_get($field, 'acfe_clone_modal_size')){
|
160 |
-
|
161 |
-
$wrapper['data-acfe-clone-modal-size'] = $field['acfe_clone_modal_size'];
|
162 |
-
|
163 |
-
}
|
164 |
-
|
165 |
-
}
|
166 |
-
|
167 |
-
return $wrapper;
|
168 |
-
|
169 |
-
}
|
170 |
|
171 |
-
|
172 |
-
*
|
|
|
|
|
|
|
|
|
173 |
*/
|
174 |
function prepare_field($field){
|
175 |
|
176 |
-
|
177 |
-
|
178 |
$field['wrapper']['class'] .= ' acfe-seamless-style';
|
179 |
-
|
180 |
}
|
181 |
|
182 |
-
|
183 |
-
|
184 |
$field['wrapper']['class'] .= ' acfe-field-clone-layout-' . $field['layout'];
|
185 |
-
|
186 |
}
|
187 |
|
188 |
-
|
189 |
-
|
190 |
-
}
|
191 |
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
// validate
|
198 |
-
if(!acf_verify_ajax())
|
199 |
-
die();
|
200 |
-
|
201 |
-
// local field groups are added at priortiy 20
|
202 |
-
add_filter('acf/load_field_groups', array($this, 'load_field_groups'), 25);
|
203 |
-
|
204 |
-
}
|
205 |
-
|
206 |
-
/*
|
207 |
-
* Load Field Groups
|
208 |
-
*/
|
209 |
-
function load_field_groups($field_groups){
|
210 |
-
|
211 |
-
// Hidden Local Field Groups
|
212 |
-
$hidden = acfe_get_setting('reserved_field_groups', array());
|
213 |
-
|
214 |
-
foreach($field_groups as $i => $field_group){
|
215 |
-
|
216 |
-
if(!in_array($field_group['key'], $hidden))
|
217 |
-
continue;
|
218 |
-
|
219 |
-
unset($field_groups[$i]);
|
220 |
|
221 |
}
|
222 |
-
|
223 |
-
return
|
|
|
224 |
|
225 |
}
|
226 |
|
227 |
}
|
228 |
|
229 |
-
|
230 |
|
231 |
endif;
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_clone')):
|
8 |
|
9 |
+
class acfe_field_clone extends acfe_field_extend{
|
10 |
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
*/
|
14 |
+
function initialize(){
|
15 |
+
|
16 |
+
$this->name = 'clone';
|
17 |
+
$this->defaults = array(
|
18 |
+
'acfe_seamless_style' => 0,
|
19 |
+
'acfe_clone_modal' => 0,
|
20 |
+
'acfe_clone_modal_close' => 0,
|
21 |
+
'acfe_clone_modal_button' => '',
|
22 |
+
'acfe_clone_modal_size' => 'large',
|
23 |
+
);
|
24 |
|
25 |
+
$this->add_action('wp_ajax_acf/fields/clone/query', array($this, 'ajax_query'), 5);
|
|
|
|
|
|
|
26 |
|
27 |
}
|
28 |
|
29 |
+
|
30 |
+
/**
|
31 |
+
* ajax_query
|
32 |
+
*
|
33 |
+
* wp_ajax_acf/fields/clone/query
|
34 |
*/
|
35 |
+
function ajax_query(){
|
36 |
+
|
37 |
+
// validate
|
38 |
+
if(!acf_verify_ajax()){
|
39 |
+
die();
|
40 |
+
}
|
41 |
+
|
42 |
+
// local field groups are added at priority 20
|
43 |
+
add_filter('acf/load_field_groups', array($this, 'ajax_load_field_groups'), 25);
|
44 |
+
|
45 |
+
}
|
46 |
+
|
47 |
|
48 |
+
/**
|
49 |
+
* ajax_load_field_groups
|
50 |
+
*
|
51 |
+
* @param $field_groups
|
52 |
+
*
|
53 |
+
* @return mixed
|
54 |
+
*/
|
55 |
+
function ajax_load_field_groups($field_groups){
|
56 |
+
|
57 |
+
// get reserved field groups
|
58 |
+
$hidden = acfe_get_setting('reserved_field_groups', array());
|
59 |
+
|
60 |
+
// loop
|
61 |
+
foreach($field_groups as $i => $field_group){
|
62 |
+
|
63 |
+
// hide
|
64 |
+
if(in_array($field_group['key'], $hidden)){
|
65 |
+
unset($field_groups[ $i ]);
|
66 |
+
}
|
67 |
+
|
68 |
+
}
|
69 |
+
|
70 |
+
return $field_groups;
|
71 |
+
|
72 |
+
}
|
73 |
+
|
74 |
+
|
75 |
+
/**
|
76 |
+
* render_field_settings
|
77 |
+
*
|
78 |
+
* @param $field
|
79 |
+
*/
|
80 |
+
function render_field_settings($field){
|
81 |
+
|
82 |
+
// seamless style
|
83 |
acf_render_field_setting($field, array(
|
84 |
'label' => __('Seamless Style', 'acfe'),
|
85 |
'name' => 'acfe_seamless_style',
|
104 |
)
|
105 |
)
|
106 |
));
|
107 |
+
|
108 |
+
// edit modal
|
109 |
acf_render_field_setting($field, array(
|
110 |
'label' => __('Edition modal'),
|
111 |
'name' => 'acfe_clone_modal',
|
125 |
)
|
126 |
)
|
127 |
));
|
128 |
+
|
129 |
+
// modal close
|
130 |
acf_render_field_setting($field, array(
|
131 |
'label' => __('Edition modal: Close button'),
|
132 |
'name' => 'acfe_clone_modal_close',
|
146 |
)
|
147 |
)
|
148 |
));
|
149 |
+
|
150 |
+
// modal button
|
151 |
acf_render_field_setting($field, array(
|
152 |
'label' => __('Edition modal: Text button'),
|
153 |
'name' => 'acfe_clone_modal_button',
|
165 |
)
|
166 |
)
|
167 |
));
|
168 |
+
|
169 |
+
// modal size
|
170 |
acf_render_field_setting($field, array(
|
171 |
'label' => __('Edition modal: Size'),
|
172 |
'name' => 'acfe_clone_modal_size',
|
194 |
|
195 |
}
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
|
198 |
+
/**
|
199 |
+
* prepare_field
|
200 |
+
*
|
201 |
+
* @param $field
|
202 |
+
*
|
203 |
+
* @return array
|
204 |
*/
|
205 |
function prepare_field($field){
|
206 |
|
207 |
+
// seamless style
|
208 |
+
if($field['acfe_seamless_style']){
|
209 |
$field['wrapper']['class'] .= ' acfe-seamless-style';
|
|
|
210 |
}
|
211 |
|
212 |
+
// layout
|
213 |
+
if($field['layout']){
|
214 |
$field['wrapper']['class'] .= ' acfe-field-clone-layout-' . $field['layout'];
|
|
|
215 |
}
|
216 |
|
217 |
+
// edit modal
|
218 |
+
if($field['acfe_clone_modal']){
|
|
|
219 |
|
220 |
+
$field['wrapper']['data-acfe-clone-modal'] = 1;
|
221 |
+
$field['wrapper']['data-acfe-clone-modal-button'] = $field['acfe_clone_modal_button'] ? $field['acfe_clone_modal_button'] : __('Edit', 'acf');
|
222 |
+
$field['wrapper']['data-acfe-clone-modal-close'] = $field['acfe_clone_modal_close'];
|
223 |
+
$field['wrapper']['data-acfe-clone-modal-size'] = $field['acfe_clone_modal_size'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
|
225 |
}
|
226 |
+
|
227 |
+
// return
|
228 |
+
return $field;
|
229 |
|
230 |
}
|
231 |
|
232 |
}
|
233 |
|
234 |
+
acf_new_instance('acfe_field_clone');
|
235 |
|
236 |
endif;
|
includes/fields/field-code-editor.php
CHANGED
@@ -1,16 +1,24 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
-
if(acf_version_compare($GLOBALS['wp_version'], '<', '4.9'))
|
7 |
return;
|
|
|
8 |
|
9 |
if(!class_exists('acfe_field_code_editor')):
|
10 |
|
11 |
class acfe_field_code_editor extends acf_field{
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
$this->name = 'acfe_code_editor';
|
16 |
$this->label = __('Code Editor', 'acfe');
|
@@ -29,31 +37,14 @@ class acfe_field_code_editor extends acf_field{
|
|
29 |
|
30 |
$this->textarea = acf_get_field_type('textarea');
|
31 |
|
32 |
-
parent::__construct();
|
33 |
-
|
34 |
-
}
|
35 |
-
|
36 |
-
function render_field($field){
|
37 |
-
|
38 |
-
$wrapper = array(
|
39 |
-
'class' => 'acf-input-wrap acfe-field-code-editor',
|
40 |
-
'data-mode' => $field['mode'],
|
41 |
-
'data-lines' => $field['lines'],
|
42 |
-
'data-indent-unit' => $field['indent_unit'],
|
43 |
-
'data-rows' => $field['rows'],
|
44 |
-
'data-max-rows' => $field['max_rows'],
|
45 |
-
);
|
46 |
-
|
47 |
-
$field['type'] = 'textarea';
|
48 |
-
|
49 |
-
?>
|
50 |
-
<div <?php acf_esc_attr_e($wrapper); ?>>
|
51 |
-
<?php $this->textarea->render_field($field); ?>
|
52 |
-
</div>
|
53 |
-
<?php
|
54 |
-
|
55 |
}
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
function render_field_settings($field){
|
58 |
|
59 |
// default_value
|
@@ -145,24 +136,86 @@ class acfe_field_code_editor extends acf_field{
|
|
145 |
|
146 |
}
|
147 |
|
|
|
|
|
|
|
|
|
148 |
function input_admin_enqueue_scripts(){
|
|
|
|
|
149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
wp_enqueue_script('code-editor');
|
151 |
wp_enqueue_style('code-editor');
|
152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
}
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
function validate_value($valid, $value, $field, $input){
|
156 |
-
|
157 |
return $this->textarea->validate_value($valid, $value, $field, $input);
|
158 |
-
|
159 |
}
|
160 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
function format_value($value, $post_id, $field){
|
162 |
|
163 |
-
if(
|
|
|
|
|
164 |
|
165 |
-
return
|
166 |
|
167 |
}
|
168 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
+
if(acf_version_compare($GLOBALS['wp_version'], '<', '4.9')){
|
8 |
return;
|
9 |
+
}
|
10 |
|
11 |
if(!class_exists('acfe_field_code_editor')):
|
12 |
|
13 |
class acfe_field_code_editor extends acf_field{
|
14 |
|
15 |
+
// vars
|
16 |
+
var $textarea = '';
|
17 |
+
|
18 |
+
/**
|
19 |
+
* initialize
|
20 |
+
*/
|
21 |
+
function initialize(){
|
22 |
|
23 |
$this->name = 'acfe_code_editor';
|
24 |
$this->label = __('Code Editor', 'acfe');
|
37 |
|
38 |
$this->textarea = acf_get_field_type('textarea');
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
|
42 |
+
|
43 |
+
/**
|
44 |
+
* render_field_settings
|
45 |
+
*
|
46 |
+
* @param $field
|
47 |
+
*/
|
48 |
function render_field_settings($field){
|
49 |
|
50 |
// default_value
|
136 |
|
137 |
}
|
138 |
|
139 |
+
|
140 |
+
/**
|
141 |
+
* input_admin_enqueue_scripts
|
142 |
+
*/
|
143 |
function input_admin_enqueue_scripts(){
|
144 |
+
|
145 |
+
if(acfe_is_block_editor()){
|
146 |
|
147 |
+
wp_enqueue_script('code-editor');
|
148 |
+
wp_enqueue_style('code-editor');
|
149 |
+
|
150 |
+
}
|
151 |
+
|
152 |
+
}
|
153 |
+
|
154 |
+
|
155 |
+
/**
|
156 |
+
* render_field
|
157 |
+
*
|
158 |
+
* @param $field
|
159 |
+
*/
|
160 |
+
function render_field($field){
|
161 |
+
|
162 |
+
// enqueue
|
163 |
wp_enqueue_script('code-editor');
|
164 |
wp_enqueue_style('code-editor');
|
165 |
|
166 |
+
// field type
|
167 |
+
$field['type'] = 'textarea';
|
168 |
+
|
169 |
+
// wrapper
|
170 |
+
$wrapper = array(
|
171 |
+
'class' => 'acf-input-wrap acfe-field-code-editor',
|
172 |
+
'data-mode' => $field['mode'],
|
173 |
+
'data-lines' => $field['lines'],
|
174 |
+
'data-indent-unit' => $field['indent_unit'],
|
175 |
+
'data-rows' => $field['rows'],
|
176 |
+
'data-max-rows' => $field['max_rows'],
|
177 |
+
);
|
178 |
+
|
179 |
+
?>
|
180 |
+
<div <?php echo acf_esc_attrs($wrapper); ?>>
|
181 |
+
<?php $this->textarea->render_field($field); ?>
|
182 |
+
</div>
|
183 |
+
<?php
|
184 |
+
|
185 |
}
|
186 |
|
187 |
+
|
188 |
+
/**
|
189 |
+
* validate_value
|
190 |
+
*
|
191 |
+
* @param $valid
|
192 |
+
* @param $value
|
193 |
+
* @param $field
|
194 |
+
* @param $input
|
195 |
+
*
|
196 |
+
* @return mixed
|
197 |
+
*/
|
198 |
function validate_value($valid, $value, $field, $input){
|
|
|
199 |
return $this->textarea->validate_value($valid, $value, $field, $input);
|
|
|
200 |
}
|
201 |
|
202 |
+
|
203 |
+
/**
|
204 |
+
* format_value
|
205 |
+
*
|
206 |
+
* @param $value
|
207 |
+
* @param $post_id
|
208 |
+
* @param $field
|
209 |
+
*
|
210 |
+
* @return string
|
211 |
+
*/
|
212 |
function format_value($value, $post_id, $field){
|
213 |
|
214 |
+
if($field['return_entities']){
|
215 |
+
return htmlentities($value);
|
216 |
+
}
|
217 |
|
218 |
+
return $value;
|
219 |
|
220 |
}
|
221 |
|
includes/fields/field-column.php
CHANGED
@@ -1,13 +1,17 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_column')):
|
7 |
|
8 |
-
class acfe_field_column extends
|
9 |
|
10 |
-
|
|
|
|
|
|
|
11 |
|
12 |
$this->name = 'acfe_column';
|
13 |
$this->label = __('Column', 'acfe');
|
@@ -17,37 +21,14 @@ class acfe_field_column extends acf_field{
|
|
17 |
'endpoint' => false,
|
18 |
);
|
19 |
|
20 |
-
// Hooks
|
21 |
-
add_filter('acfe/field_wrapper_attributes/type=acfe_column', array($this, 'field_wrapper_attributes'), 10, 2);
|
22 |
-
add_filter('acf/validate_field/type=acfe_column', array($this, 'new_validate_field'), 20);
|
23 |
-
|
24 |
-
parent::__construct();
|
25 |
-
|
26 |
}
|
27 |
|
28 |
-
function new_validate_field($field){
|
29 |
-
|
30 |
-
if(!acfe_ends_with($field['columns'], '/6'))
|
31 |
-
return $field;
|
32 |
-
|
33 |
-
if($field['columns'] === '1/6'){
|
34 |
-
$field['columns'] = '2/12';
|
35 |
-
}elseif($field['columns'] === '2/6'){
|
36 |
-
$field['columns'] = '4/12';
|
37 |
-
}elseif($field['columns'] === '3/6'){
|
38 |
-
$field['columns'] = '6/12';
|
39 |
-
}elseif($field['columns'] === '4/6'){
|
40 |
-
$field['columns'] = '8/12';
|
41 |
-
}elseif($field['columns'] === '5/6'){
|
42 |
-
$field['columns'] = '10/12';
|
43 |
-
}elseif($field['columns'] === '6/6'){
|
44 |
-
$field['columns'] = '12/12';
|
45 |
-
}
|
46 |
-
|
47 |
-
return $field;
|
48 |
-
|
49 |
-
}
|
50 |
|
|
|
|
|
|
|
|
|
|
|
51 |
function render_field_settings($field){
|
52 |
|
53 |
// columns
|
@@ -94,46 +75,25 @@ class acfe_field_column extends acf_field{
|
|
94 |
|
95 |
}
|
96 |
|
97 |
-
function field_wrapper_attributes($wrapper, $field){
|
98 |
-
|
99 |
-
if($field['endpoint']){
|
100 |
-
|
101 |
-
$wrapper['data-endpoint'] = $field['endpoint'];
|
102 |
-
|
103 |
-
}
|
104 |
-
|
105 |
-
elseif($field['columns']){
|
106 |
-
|
107 |
-
$wrapper['data-columns'] = $field['columns'];
|
108 |
-
|
109 |
-
}
|
110 |
-
|
111 |
-
return $wrapper;
|
112 |
-
|
113 |
-
}
|
114 |
-
|
115 |
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
?>
|
124 |
-
<div <?php acf_esc_attr_e($atts); ?>></div>
|
125 |
-
<?php
|
126 |
-
|
127 |
-
}
|
128 |
-
|
129 |
function load_field($field){
|
130 |
|
131 |
$columns = '';
|
132 |
-
|
|
|
133 |
$columns = ucfirst($field['columns']);
|
|
|
134 |
|
135 |
-
if($field['endpoint'])
|
136 |
$columns = 'Endpoint';
|
|
|
137 |
|
138 |
$field['label'] = '(Column ' . $columns . ')';
|
139 |
$field['name'] = '';
|
@@ -145,23 +105,76 @@ class acfe_field_column extends acf_field{
|
|
145 |
|
146 |
}
|
147 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
function prepare_field($field){
|
149 |
|
150 |
global $pagenow;
|
151 |
|
152 |
-
//
|
153 |
-
if((acf_is_screen(array('profile', 'user-edit')) || (acf_is_screen('user') && !is_multisite()) || $pagenow === 'term.php') && !acf_get_setting('acfe/modules/ui'))
|
154 |
return false;
|
|
|
155 |
|
156 |
-
//
|
157 |
-
if($pagenow === 'edit-tags.php')
|
158 |
return false;
|
|
|
159 |
|
|
|
160 |
$field['label'] = false;
|
161 |
|
|
|
162 |
return $field;
|
163 |
|
164 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
|
166 |
}
|
167 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_column')):
|
8 |
|
9 |
+
class acfe_field_column extends acfe_field{
|
10 |
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
+
*/
|
14 |
+
function initialize(){
|
15 |
|
16 |
$this->name = 'acfe_column';
|
17 |
$this->label = __('Column', 'acfe');
|
21 |
'endpoint' => false,
|
22 |
);
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
+
/**
|
28 |
+
* render_field_settings
|
29 |
+
*
|
30 |
+
* @param $field
|
31 |
+
*/
|
32 |
function render_field_settings($field){
|
33 |
|
34 |
// columns
|
75 |
|
76 |
}
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
+
/**
|
80 |
+
* load_field
|
81 |
+
*
|
82 |
+
* @param $field
|
83 |
+
*
|
84 |
+
* @return mixed
|
85 |
+
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
function load_field($field){
|
87 |
|
88 |
$columns = '';
|
89 |
+
|
90 |
+
if($field['columns']){
|
91 |
$columns = ucfirst($field['columns']);
|
92 |
+
}
|
93 |
|
94 |
+
if($field['endpoint']){
|
95 |
$columns = 'Endpoint';
|
96 |
+
}
|
97 |
|
98 |
$field['label'] = '(Column ' . $columns . ')';
|
99 |
$field['name'] = '';
|
105 |
|
106 |
}
|
107 |
|
108 |
+
|
109 |
+
/**
|
110 |
+
* prepare_field
|
111 |
+
*
|
112 |
+
* @param $field
|
113 |
+
*
|
114 |
+
* @return false
|
115 |
+
*/
|
116 |
function prepare_field($field){
|
117 |
|
118 |
global $pagenow;
|
119 |
|
120 |
+
// do not render on User/Term views without Enhanced UI module (because of Table render)
|
121 |
+
if((acf_is_screen(array('profile', 'user-edit')) || (acf_is_screen('user') && !is_multisite()) || $pagenow === 'term.php') && !acf_get_setting('acfe/modules/ui')){
|
122 |
return false;
|
123 |
+
}
|
124 |
|
125 |
+
// do not render on New Term page (forced to left)
|
126 |
+
if($pagenow === 'edit-tags.php'){
|
127 |
return false;
|
128 |
+
}
|
129 |
|
130 |
+
// hide label
|
131 |
$field['label'] = false;
|
132 |
|
133 |
+
// return
|
134 |
return $field;
|
135 |
|
136 |
}
|
137 |
+
|
138 |
+
|
139 |
+
/**
|
140 |
+
* field_wrapper_attributes
|
141 |
+
*
|
142 |
+
* @param $wrapper
|
143 |
+
* @param $field
|
144 |
+
*
|
145 |
+
* @return mixed
|
146 |
+
*/
|
147 |
+
function field_wrapper_attributes($wrapper, $field){
|
148 |
+
|
149 |
+
if($field['endpoint']){
|
150 |
+
$wrapper['data-endpoint'] = $field['endpoint'];
|
151 |
+
|
152 |
+
}elseif($field['columns']){
|
153 |
+
$wrapper['data-columns'] = $field['columns'];
|
154 |
+
}
|
155 |
+
|
156 |
+
return $wrapper;
|
157 |
+
|
158 |
+
}
|
159 |
+
|
160 |
+
|
161 |
+
/**
|
162 |
+
* render_field
|
163 |
+
*
|
164 |
+
* @param $field
|
165 |
+
*/
|
166 |
+
function render_field($field){
|
167 |
+
|
168 |
+
// vars
|
169 |
+
$atts = array(
|
170 |
+
'class' => 'acf-fields',
|
171 |
+
);
|
172 |
+
|
173 |
+
?>
|
174 |
+
<div <?php echo acf_esc_attrs($atts); ?>></div>
|
175 |
+
<?php
|
176 |
+
|
177 |
+
}
|
178 |
|
179 |
}
|
180 |
|
includes/fields/field-dynamic-render.php
CHANGED
@@ -1,27 +1,40 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_dynamic_render')):
|
7 |
|
8 |
class acfe_field_dynamic_render extends acf_field{
|
9 |
|
|
|
|
|
|
|
10 |
function initialize(){
|
11 |
|
12 |
$this->name = 'acfe_dynamic_render';
|
13 |
$this->label = __('Dynamic Render', 'acfe');
|
14 |
$this->category = 'layout';
|
|
|
|
|
|
|
15 |
|
16 |
}
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
function render_field($field){
|
19 |
|
20 |
-
//
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
|
26 |
}
|
27 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_dynamic_render')):
|
8 |
|
9 |
class acfe_field_dynamic_render extends acf_field{
|
10 |
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
+
*/
|
14 |
function initialize(){
|
15 |
|
16 |
$this->name = 'acfe_dynamic_render';
|
17 |
$this->label = __('Dynamic Render', 'acfe');
|
18 |
$this->category = 'layout';
|
19 |
+
$this->defaults = array(
|
20 |
+
'render' => ''
|
21 |
+
);
|
22 |
|
23 |
}
|
24 |
|
25 |
+
|
26 |
+
/**
|
27 |
+
* render_field
|
28 |
+
*
|
29 |
+
* @param $field
|
30 |
+
*/
|
31 |
function render_field($field){
|
32 |
|
33 |
+
// check callback
|
34 |
+
// check isset() for backward compatibility with the old acfe_dynamic_message field type
|
35 |
+
if(isset($field['render']) && is_callable($field['render'])){
|
36 |
+
call_user_func_array($field['render'], array($field));
|
37 |
+
}
|
38 |
|
39 |
}
|
40 |
|
includes/fields/field-file.php
CHANGED
@@ -1,99 +1,133 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_file')):
|
7 |
|
8 |
-
class acfe_field_file{
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
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 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
}
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
28 |
|
29 |
-
|
30 |
|
31 |
-
$field['label'] = __('File size', 'acf');
|
32 |
-
$field['prepend'] = 'Min size';
|
33 |
-
|
34 |
-
}elseif($field['_name'] === 'max_size'){
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
}
|
40 |
|
41 |
-
return $
|
42 |
|
43 |
}
|
44 |
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
-
|
48 |
-
|
|
|
49 |
|
50 |
-
|
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 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
return $translated_text;
|
80 |
-
|
81 |
-
}
|
82 |
|
83 |
-
|
|
|
84 |
|
85 |
-
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
-
|
89 |
-
unset($field['acfe_uploader']);
|
90 |
|
91 |
return $field;
|
92 |
|
93 |
}
|
94 |
|
95 |
-
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
acf_render_field_setting($field, array(
|
98 |
'label' => __('Uploader type'),
|
99 |
'name' => 'uploader',
|
@@ -112,26 +146,43 @@ class acfe_field_file{
|
|
112 |
|
113 |
}
|
114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
function prepare_field($field){
|
116 |
|
117 |
-
//
|
118 |
-
if(acf_is_filter_enabled('acfe/form/uploader'))
|
119 |
-
|
120 |
-
|
121 |
-
|
|
|
|
|
|
|
122 |
$field['uploader'] = acf_get_setting('uploader');
|
|
|
123 |
|
124 |
-
|
|
|
|
|
125 |
$field['uploader'] = 'basic';
|
126 |
-
|
|
|
|
|
127 |
acf_update_setting('uploader', $field['uploader']);
|
128 |
-
|
|
|
129 |
return $field;
|
130 |
|
131 |
}
|
132 |
|
133 |
}
|
134 |
|
135 |
-
|
136 |
|
137 |
endif;
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_file')):
|
8 |
|
9 |
+
class acfe_field_file extends acfe_field_extend{
|
10 |
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
+
*/
|
14 |
+
function initialize(){
|
|
|
|
|
|
|
15 |
|
16 |
+
$this->name = 'file';
|
17 |
+
$this->defaults = array(
|
18 |
+
'uploader' => '',
|
19 |
+
);
|
|
|
20 |
|
21 |
+
$this->add_filter('gettext', array($this, 'gettext'), 99, 3);
|
22 |
+
$this->add_filter('acf/prepare_field/name=min_size', array($this, 'prepare_size'));
|
23 |
+
$this->add_filter('acf/prepare_field/name=max_size', array($this, 'prepare_size'));
|
24 |
+
$this->add_filter('acf/prepare_field/name=library', array($this, 'prepare_library'));
|
25 |
+
|
26 |
+
$this->add_field_action('acf/render_field_settings', array($this, '_render_field_settings'), 0);
|
27 |
|
28 |
+
}
|
29 |
|
|
|
|
|
|
|
|
|
30 |
|
31 |
+
/**
|
32 |
+
* gettext
|
33 |
+
*
|
34 |
+
* @param $translated_text
|
35 |
+
* @param $text
|
36 |
+
* @param $domain
|
37 |
+
*
|
38 |
+
* @return string
|
39 |
+
*/
|
40 |
+
function gettext($translated_text, $text, $domain){
|
41 |
+
|
42 |
+
if($domain === 'acf'){
|
43 |
+
if($text === 'No file selected'){
|
44 |
+
return '';
|
45 |
+
}
|
46 |
}
|
47 |
|
48 |
+
return $translated_text;
|
49 |
|
50 |
}
|
51 |
|
52 |
+
|
53 |
+
/**
|
54 |
+
* prepare_size
|
55 |
+
*
|
56 |
+
* @param $field
|
57 |
+
*
|
58 |
+
* @return mixed
|
59 |
+
*/
|
60 |
+
function prepare_size($field){
|
61 |
+
|
62 |
+
if(acf_maybe_get($field['wrapper'], 'data-setting') === 'file'){
|
63 |
+
|
64 |
+
switch($field['_name']){
|
65 |
+
|
66 |
+
case 'min_size': {
|
67 |
+
|
68 |
+
$field['label'] = __('File size', 'acf');
|
69 |
+
$field['prepend'] = __('Min size', 'acfe');
|
70 |
+
break;
|
71 |
+
|
72 |
+
}
|
73 |
+
|
74 |
+
case 'max_size': {
|
75 |
+
|
76 |
+
$field['prepend'] = __('Max size', 'acfe');
|
77 |
+
$field['wrapper']['data-append'] = 'min_size';
|
78 |
+
break;
|
79 |
|
80 |
+
}
|
81 |
+
|
82 |
+
}
|
83 |
|
84 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
|
86 |
return $field;
|
87 |
|
88 |
}
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
91 |
+
/**
|
92 |
+
* prepare_library
|
93 |
+
*
|
94 |
+
* @param $field
|
95 |
+
*
|
96 |
+
* @return mixed
|
97 |
+
*/
|
98 |
+
function prepare_library($field){
|
|
|
|
|
|
|
99 |
|
100 |
+
// check if field group ui setting
|
101 |
+
if(acf_maybe_get($field['wrapper'], 'data-setting') === 'file'){
|
102 |
|
103 |
+
// add conditional logic
|
104 |
+
$field['conditional_logic'] = array(
|
105 |
+
array(
|
106 |
+
array(
|
107 |
+
'field' => 'uploader',
|
108 |
+
'operator' => '==',
|
109 |
+
'value' => 'wp',
|
110 |
+
)
|
111 |
+
)
|
112 |
+
);
|
113 |
|
114 |
+
}
|
|
|
115 |
|
116 |
return $field;
|
117 |
|
118 |
}
|
119 |
|
120 |
+
|
121 |
+
/**
|
122 |
+
* _render_field_settings
|
123 |
+
*
|
124 |
+
* acf/render_field_settings:0
|
125 |
+
*
|
126 |
+
* @param $field
|
127 |
+
*/
|
128 |
+
function _render_field_settings($field){
|
129 |
+
|
130 |
+
// uploader
|
131 |
acf_render_field_setting($field, array(
|
132 |
'label' => __('Uploader type'),
|
133 |
'name' => 'uploader',
|
146 |
|
147 |
}
|
148 |
|
149 |
+
|
150 |
+
/**
|
151 |
+
* prepare_field
|
152 |
+
*
|
153 |
+
* @param $field
|
154 |
+
*
|
155 |
+
* @return mixed
|
156 |
+
*/
|
157 |
function prepare_field($field){
|
158 |
|
159 |
+
// let acfe form force specific uploader
|
160 |
+
if(acf_is_filter_enabled('acfe/form/uploader')){
|
161 |
+
unset($field['uploader']);
|
162 |
+
}
|
163 |
+
|
164 |
+
// default uploader in settings
|
165 |
+
// use global acf uploader
|
166 |
+
if(!$field['uploader']){
|
167 |
$field['uploader'] = acf_get_setting('uploader');
|
168 |
+
}
|
169 |
|
170 |
+
// current user can't upload files
|
171 |
+
// force basic
|
172 |
+
if(!current_user_can('upload_files')){
|
173 |
$field['uploader'] = 'basic';
|
174 |
+
}
|
175 |
+
|
176 |
+
// update global uploader
|
177 |
acf_update_setting('uploader', $field['uploader']);
|
178 |
+
|
179 |
+
// return
|
180 |
return $field;
|
181 |
|
182 |
}
|
183 |
|
184 |
}
|
185 |
|
186 |
+
acf_new_instance('acfe_field_file');
|
187 |
|
188 |
endif;
|
includes/fields/field-flexible-content-actions.php
CHANGED
@@ -1,12 +1,16 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_flexible_content_actions')):
|
7 |
|
8 |
class acfe_field_flexible_content_actions{
|
9 |
|
|
|
|
|
|
|
10 |
function __construct(){
|
11 |
|
12 |
// Hooks
|
@@ -18,13 +22,22 @@ class acfe_field_flexible_content_actions{
|
|
18 |
add_filter('acfe/flexible/load_fields', array($this, 'load_fields'), 10, 2);
|
19 |
add_filter('acfe/flexible/prepare_layout', array($this, 'prepare_layout'), 10, 5);
|
20 |
add_filter('acfe/flexible/layouts/icons', array($this, 'layout_icons'), 11, 3);
|
21 |
-
add_filter(
|
22 |
-
|
23 |
-
add_filter('acf/fields/flexible_content/
|
24 |
add_filter('acf/load_value/type=flexible_content', array($this, 'load_value'), 10, 3);
|
25 |
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
function defaults_field($field){
|
29 |
|
30 |
$field['acfe_flexible_add_actions'] = array();
|
@@ -33,6 +46,13 @@ class acfe_field_flexible_content_actions{
|
|
33 |
|
34 |
}
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
function render_field_settings($field){
|
37 |
|
38 |
/*
|
@@ -81,6 +101,15 @@ class acfe_field_flexible_content_actions{
|
|
81 |
|
82 |
}
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
function validate_actions($field){
|
85 |
|
86 |
$actions = acf_get_array($field['acfe_flexible_add_actions']);
|
@@ -139,21 +168,34 @@ class acfe_field_flexible_content_actions{
|
|
139 |
|
140 |
}
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
function wrapper_attributes($wrapper, $field){
|
143 |
|
144 |
$actions = $field['acfe_flexible_add_actions'];
|
145 |
|
146 |
// Title
|
147 |
-
if(in_array('title', $actions))
|
148 |
$wrapper['data-acfe-flexible-title-edition'] = 1;
|
|
|
149 |
|
150 |
// Toggle
|
151 |
-
if(in_array('toggle', $actions))
|
152 |
$wrapper['data-acfe-flexible-toggle'] = 1;
|
|
|
153 |
|
154 |
// Copy
|
155 |
-
if(in_array('copy', $actions))
|
156 |
$wrapper['data-acfe-flexible-copy-paste'] = 1;
|
|
|
157 |
|
158 |
// Lock
|
159 |
$lock = in_array('lock', $actions);
|
@@ -161,17 +203,29 @@ class acfe_field_flexible_content_actions{
|
|
161 |
$lock = apply_filters("acfe/flexible/lock/name={$field['_name']}", $lock, $field);
|
162 |
$lock = apply_filters("acfe/flexible/lock/key={$field['key']}", $lock, $field);
|
163 |
|
164 |
-
if($lock)
|
165 |
$wrapper['data-acfe-flexible-lock'] = 1;
|
|
|
166 |
|
167 |
// Clone
|
168 |
-
if(in_array('close', $actions))
|
169 |
$wrapper['data-acfe-flexible-close-button'] = 1;
|
|
|
170 |
|
171 |
return $wrapper;
|
172 |
|
173 |
}
|
174 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
function load_fields($fields, $field){
|
176 |
|
177 |
// Actions
|
@@ -236,10 +290,24 @@ class acfe_field_flexible_content_actions{
|
|
236 |
|
237 |
}
|
238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
function prepare_layout($layout, $field, $i, $value, $prefix){
|
240 |
|
241 |
-
if(empty($layout['sub_fields']))
|
242 |
return $layout;
|
|
|
243 |
|
244 |
// Actions
|
245 |
$actions = $field['acfe_flexible_add_actions'];
|
@@ -309,6 +377,17 @@ class acfe_field_flexible_content_actions{
|
|
309 |
|
310 |
}
|
311 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
312 |
function layout_icons($icons, $layout, $field){
|
313 |
|
314 |
$actions = $field['acfe_flexible_add_actions'];
|
@@ -344,10 +423,21 @@ class acfe_field_flexible_content_actions{
|
|
344 |
|
345 |
}
|
346 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
347 |
function secondary_actions($actions, $field){
|
348 |
|
349 |
-
if(!in_array('copy', $field['acfe_flexible_add_actions']))
|
350 |
return $actions;
|
|
|
351 |
|
352 |
$actions['copy'] = '<a href="#" data-acfe-flexible-control-action="copy">' . __('Copy layouts', 'acfe') . '</a>';
|
353 |
$actions['paste'] = '<a href="#" data-acfe-flexible-control-action="paste">' . __('Paste layouts', 'acfe') . '</a>';
|
@@ -356,37 +446,63 @@ class acfe_field_flexible_content_actions{
|
|
356 |
|
357 |
}
|
358 |
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
369 |
}
|
|
|
|
|
|
|
370 |
|
371 |
-
return
|
372 |
|
373 |
}
|
374 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
375 |
function load_value($value, $post_id, $field){
|
376 |
|
377 |
// Bail early if admin
|
378 |
-
if(is_admin() && !wp_doing_ajax())
|
379 |
return $value;
|
|
|
380 |
|
381 |
// Bail early if preview
|
382 |
-
if(acf_maybe_get_POST('action') === 'acfe/flexible/layout_preview')
|
383 |
return $value;
|
|
|
384 |
|
385 |
-
if(empty($field['layouts']))
|
386 |
return $value;
|
|
|
387 |
|
388 |
-
if(!in_array('toggle', $field['acfe_flexible_add_actions']))
|
389 |
return $value;
|
|
|
390 |
|
391 |
$models = array();
|
392 |
|
@@ -404,11 +520,13 @@ class acfe_field_flexible_content_actions{
|
|
404 |
|
405 |
foreach($value as $k => $layout){
|
406 |
|
407 |
-
if(!isset($models[$layout['acf_fc_layout']]))
|
408 |
continue;
|
|
|
409 |
|
410 |
-
if(!acf_maybe_get($layout, $models[$layout['acf_fc_layout']]['toggle']))
|
411 |
continue;
|
|
|
412 |
|
413 |
unset($value[$k]);
|
414 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_flexible_content_actions')):
|
8 |
|
9 |
class acfe_field_flexible_content_actions{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
// Hooks
|
22 |
add_filter('acfe/flexible/load_fields', array($this, 'load_fields'), 10, 2);
|
23 |
add_filter('acfe/flexible/prepare_layout', array($this, 'prepare_layout'), 10, 5);
|
24 |
add_filter('acfe/flexible/layouts/icons', array($this, 'layout_icons'), 11, 3);
|
25 |
+
add_filter('acfe/flexible/secondary_actions', array($this, 'secondary_actions'), 10, 2);
|
26 |
+
|
27 |
+
add_filter('acf/fields/flexible_content/layout_attrs', array($this, 'layout_attrs'), 5, 4);
|
28 |
add_filter('acf/load_value/type=flexible_content', array($this, 'load_value'), 10, 3);
|
29 |
|
30 |
}
|
31 |
|
32 |
+
/**
|
33 |
+
* defaults_field
|
34 |
+
*
|
35 |
+
* acfe/flexible/defaults_field
|
36 |
+
*
|
37 |
+
* @param $field
|
38 |
+
*
|
39 |
+
* @return mixed
|
40 |
+
*/
|
41 |
function defaults_field($field){
|
42 |
|
43 |
$field['acfe_flexible_add_actions'] = array();
|
46 |
|
47 |
}
|
48 |
|
49 |
+
/**
|
50 |
+
* render_field_settings
|
51 |
+
*
|
52 |
+
* acfe/flexible/render_field_settings
|
53 |
+
*
|
54 |
+
* @param $field
|
55 |
+
*/
|
56 |
function render_field_settings($field){
|
57 |
|
58 |
/*
|
101 |
|
102 |
}
|
103 |
|
104 |
+
/**
|
105 |
+
* validate_actions
|
106 |
+
*
|
107 |
+
* acfe/flexible/validate_field
|
108 |
+
*
|
109 |
+
* @param $field
|
110 |
+
*
|
111 |
+
* @return mixed
|
112 |
+
*/
|
113 |
function validate_actions($field){
|
114 |
|
115 |
$actions = acf_get_array($field['acfe_flexible_add_actions']);
|
168 |
|
169 |
}
|
170 |
|
171 |
+
/**
|
172 |
+
* wrapper_attributes
|
173 |
+
*
|
174 |
+
* acfe/flexible/wrapper_attributes
|
175 |
+
*
|
176 |
+
* @param $wrapper
|
177 |
+
* @param $field
|
178 |
+
*
|
179 |
+
* @return mixed
|
180 |
+
*/
|
181 |
function wrapper_attributes($wrapper, $field){
|
182 |
|
183 |
$actions = $field['acfe_flexible_add_actions'];
|
184 |
|
185 |
// Title
|
186 |
+
if(in_array('title', $actions)){
|
187 |
$wrapper['data-acfe-flexible-title-edition'] = 1;
|
188 |
+
}
|
189 |
|
190 |
// Toggle
|
191 |
+
if(in_array('toggle', $actions)){
|
192 |
$wrapper['data-acfe-flexible-toggle'] = 1;
|
193 |
+
}
|
194 |
|
195 |
// Copy
|
196 |
+
if(in_array('copy', $actions)){
|
197 |
$wrapper['data-acfe-flexible-copy-paste'] = 1;
|
198 |
+
}
|
199 |
|
200 |
// Lock
|
201 |
$lock = in_array('lock', $actions);
|
203 |
$lock = apply_filters("acfe/flexible/lock/name={$field['_name']}", $lock, $field);
|
204 |
$lock = apply_filters("acfe/flexible/lock/key={$field['key']}", $lock, $field);
|
205 |
|
206 |
+
if($lock){
|
207 |
$wrapper['data-acfe-flexible-lock'] = 1;
|
208 |
+
}
|
209 |
|
210 |
// Clone
|
211 |
+
if(in_array('close', $actions)){
|
212 |
$wrapper['data-acfe-flexible-close-button'] = 1;
|
213 |
+
}
|
214 |
|
215 |
return $wrapper;
|
216 |
|
217 |
}
|
218 |
|
219 |
+
/**
|
220 |
+
* load_fields
|
221 |
+
*
|
222 |
+
* acfe/flexible/load_fields
|
223 |
+
*
|
224 |
+
* @param $fields
|
225 |
+
* @param $field
|
226 |
+
*
|
227 |
+
* @return mixed
|
228 |
+
*/
|
229 |
function load_fields($fields, $field){
|
230 |
|
231 |
// Actions
|
290 |
|
291 |
}
|
292 |
|
293 |
+
/**
|
294 |
+
* prepare_layout
|
295 |
+
*
|
296 |
+
* acfe/flexible/prepare_layout
|
297 |
+
*
|
298 |
+
* @param $layout
|
299 |
+
* @param $field
|
300 |
+
* @param $i
|
301 |
+
* @param $value
|
302 |
+
* @param $prefix
|
303 |
+
*
|
304 |
+
* @return mixed
|
305 |
+
*/
|
306 |
function prepare_layout($layout, $field, $i, $value, $prefix){
|
307 |
|
308 |
+
if(empty($layout['sub_fields'])){
|
309 |
return $layout;
|
310 |
+
}
|
311 |
|
312 |
// Actions
|
313 |
$actions = $field['acfe_flexible_add_actions'];
|
377 |
|
378 |
}
|
379 |
|
380 |
+
/**
|
381 |
+
* layout_icons
|
382 |
+
*
|
383 |
+
* acfe/flexible/layouts/icons
|
384 |
+
*
|
385 |
+
* @param $icons
|
386 |
+
* @param $layout
|
387 |
+
* @param $field
|
388 |
+
*
|
389 |
+
* @return mixed
|
390 |
+
*/
|
391 |
function layout_icons($icons, $layout, $field){
|
392 |
|
393 |
$actions = $field['acfe_flexible_add_actions'];
|
423 |
|
424 |
}
|
425 |
|
426 |
+
/**
|
427 |
+
* secondary_actions
|
428 |
+
*
|
429 |
+
* acfe/flexible/secondary_actions
|
430 |
+
*
|
431 |
+
* @param $actions
|
432 |
+
* @param $field
|
433 |
+
*
|
434 |
+
* @return mixed
|
435 |
+
*/
|
436 |
function secondary_actions($actions, $field){
|
437 |
|
438 |
+
if(!in_array('copy', $field['acfe_flexible_add_actions'])){
|
439 |
return $actions;
|
440 |
+
}
|
441 |
|
442 |
$actions['copy'] = '<a href="#" data-acfe-flexible-control-action="copy">' . __('Copy layouts', 'acfe') . '</a>';
|
443 |
$actions['paste'] = '<a href="#" data-acfe-flexible-control-action="paste">' . __('Paste layouts', 'acfe') . '</a>';
|
446 |
|
447 |
}
|
448 |
|
449 |
+
|
450 |
+
/**
|
451 |
+
* layout_attrs
|
452 |
+
*
|
453 |
+
* acf/fields/flexible_content/layout_attrs
|
454 |
+
*
|
455 |
+
* @param $attrs
|
456 |
+
* @param $field
|
457 |
+
* @param $layout
|
458 |
+
* @param $i
|
459 |
+
*
|
460 |
+
* @return mixed
|
461 |
+
*/
|
462 |
+
function layout_attrs($attrs, $field, $layout, $i){
|
463 |
+
|
464 |
+
if(!in_array('title', $field['acfe_flexible_add_actions'])){
|
465 |
+
return $attrs;
|
466 |
}
|
467 |
+
|
468 |
+
$attrs['class'] .= ' acf-js-tooltip';
|
469 |
+
$attrs['title'] = __('Layout', 'acfe') . ': ' . esc_attr(strip_tags($layout['label']));
|
470 |
|
471 |
+
return $attrs;
|
472 |
|
473 |
}
|
474 |
|
475 |
+
|
476 |
+
/**
|
477 |
+
* load_value
|
478 |
+
*
|
479 |
+
* acf/load_value/type=flexible_content
|
480 |
+
*
|
481 |
+
* @param $value
|
482 |
+
* @param $post_id
|
483 |
+
* @param $field
|
484 |
+
*
|
485 |
+
* @return array|mixed
|
486 |
+
*/
|
487 |
function load_value($value, $post_id, $field){
|
488 |
|
489 |
// Bail early if admin
|
490 |
+
if(is_admin() && !wp_doing_ajax()){
|
491 |
return $value;
|
492 |
+
}
|
493 |
|
494 |
// Bail early if preview
|
495 |
+
if(acf_maybe_get_POST('action') === 'acfe/flexible/layout_preview'){
|
496 |
return $value;
|
497 |
+
}
|
498 |
|
499 |
+
if(empty($field['layouts'])){
|
500 |
return $value;
|
501 |
+
}
|
502 |
|
503 |
+
if(!in_array('toggle', $field['acfe_flexible_add_actions'])){
|
504 |
return $value;
|
505 |
+
}
|
506 |
|
507 |
$models = array();
|
508 |
|
520 |
|
521 |
foreach($value as $k => $layout){
|
522 |
|
523 |
+
if(!isset($models[$layout['acf_fc_layout']])){
|
524 |
continue;
|
525 |
+
}
|
526 |
|
527 |
+
if(!acf_maybe_get($layout, $models[$layout['acf_fc_layout']]['toggle'])){
|
528 |
continue;
|
529 |
+
}
|
530 |
|
531 |
unset($value[$k]);
|
532 |
|
includes/fields/field-flexible-content-async.php
CHANGED
@@ -1,12 +1,16 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_flexible_content_async')):
|
7 |
|
8 |
class acfe_field_flexible_content_async{
|
9 |
|
|
|
|
|
|
|
10 |
function __construct(){
|
11 |
|
12 |
// Hooks
|
@@ -23,6 +27,14 @@ class acfe_field_flexible_content_async{
|
|
23 |
|
24 |
}
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
function defaults_field($field){
|
27 |
|
28 |
$field['acfe_flexible_async'] = array();
|
@@ -31,6 +43,12 @@ class acfe_field_flexible_content_async{
|
|
31 |
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
function render_field_settings($field){
|
35 |
|
36 |
/*
|
@@ -65,6 +83,14 @@ class acfe_field_flexible_content_async{
|
|
65 |
|
66 |
}
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
function validate_async($field){
|
69 |
|
70 |
$async = acf_get_array($field['acfe_flexible_async']);
|
@@ -91,13 +117,23 @@ class acfe_field_flexible_content_async{
|
|
91 |
|
92 |
}
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
function wrapper_attributes($wrapper, $field){
|
95 |
|
96 |
$async = $field['acfe_flexible_async'];
|
97 |
|
98 |
// Ajax Layout
|
99 |
-
if(in_array('layout', $async))
|
100 |
$wrapper['data-acfe-flexible-ajax'] = 1;
|
|
|
101 |
|
102 |
// Remove ajax 'layout_title' call
|
103 |
$disable = in_array('title', $async);
|
@@ -105,17 +141,29 @@ class acfe_field_flexible_content_async{
|
|
105 |
$disable = apply_filters("acfe/flexible/remove_ajax_title/name={$field['_name']}", $disable, $field);
|
106 |
$disable = apply_filters("acfe/flexible/remove_ajax_title/key={$field['key']}", $disable, $field);
|
107 |
|
108 |
-
if($disable)
|
109 |
$wrapper['data-acfe-flexible-remove-ajax-title'] = 1;
|
|
|
110 |
|
111 |
return $wrapper;
|
112 |
|
113 |
}
|
114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
function layout_model($return, $field, $layout){
|
116 |
|
117 |
-
if(!in_array('layout', $field['acfe_flexible_async']))
|
118 |
return $return;
|
|
|
119 |
|
120 |
$i = 'acfcloneindex';
|
121 |
$id = 'acfcloneindex';
|
@@ -144,6 +192,10 @@ class acfe_field_flexible_content_async{
|
|
144 |
|
145 |
}
|
146 |
|
|
|
|
|
|
|
|
|
147 |
function ajax_layout_model(){
|
148 |
|
149 |
// options
|
@@ -153,16 +205,18 @@ class acfe_field_flexible_content_async{
|
|
153 |
));
|
154 |
|
155 |
$field = acf_get_field($options['field_key']);
|
156 |
-
if(!$field)
|
157 |
die;
|
|
|
158 |
|
159 |
$acfe_instance = acf_get_instance('acfe_field_flexible_content');
|
160 |
$field = acf_prepare_field($field);
|
161 |
|
162 |
foreach($field['layouts'] as $k => $layout){
|
163 |
|
164 |
-
if($layout['name'] !== $options['layout'])
|
165 |
continue;
|
|
|
166 |
|
167 |
$acfe_instance->render_layout($field, $layout, 'acfcloneindex', array());
|
168 |
die;
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_flexible_content_async')):
|
8 |
|
9 |
class acfe_field_flexible_content_async{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
// Hooks
|
27 |
|
28 |
}
|
29 |
|
30 |
+
|
31 |
+
/**
|
32 |
+
* defaults_field
|
33 |
+
*
|
34 |
+
* @param $field
|
35 |
+
*
|
36 |
+
* @return mixed
|
37 |
+
*/
|
38 |
function defaults_field($field){
|
39 |
|
40 |
$field['acfe_flexible_async'] = array();
|
43 |
|
44 |
}
|
45 |
|
46 |
+
|
47 |
+
/**
|
48 |
+
* render_field_settings
|
49 |
+
*
|
50 |
+
* @param $field
|
51 |
+
*/
|
52 |
function render_field_settings($field){
|
53 |
|
54 |
/*
|
83 |
|
84 |
}
|
85 |
|
86 |
+
|
87 |
+
/**
|
88 |
+
* validate_async
|
89 |
+
*
|
90 |
+
* @param $field
|
91 |
+
*
|
92 |
+
* @return mixed
|
93 |
+
*/
|
94 |
function validate_async($field){
|
95 |
|
96 |
$async = acf_get_array($field['acfe_flexible_async']);
|
117 |
|
118 |
}
|
119 |
|
120 |
+
|
121 |
+
/**
|
122 |
+
* wrapper_attributes
|
123 |
+
*
|
124 |
+
* @param $wrapper
|
125 |
+
* @param $field
|
126 |
+
*
|
127 |
+
* @return mixed
|
128 |
+
*/
|
129 |
function wrapper_attributes($wrapper, $field){
|
130 |
|
131 |
$async = $field['acfe_flexible_async'];
|
132 |
|
133 |
// Ajax Layout
|
134 |
+
if(in_array('layout', $async)){
|
135 |
$wrapper['data-acfe-flexible-ajax'] = 1;
|
136 |
+
}
|
137 |
|
138 |
// Remove ajax 'layout_title' call
|
139 |
$disable = in_array('title', $async);
|
141 |
$disable = apply_filters("acfe/flexible/remove_ajax_title/name={$field['_name']}", $disable, $field);
|
142 |
$disable = apply_filters("acfe/flexible/remove_ajax_title/key={$field['key']}", $disable, $field);
|
143 |
|
144 |
+
if($disable){
|
145 |
$wrapper['data-acfe-flexible-remove-ajax-title'] = 1;
|
146 |
+
}
|
147 |
|
148 |
return $wrapper;
|
149 |
|
150 |
}
|
151 |
|
152 |
+
|
153 |
+
/**
|
154 |
+
* layout_model
|
155 |
+
*
|
156 |
+
* @param $return
|
157 |
+
* @param $field
|
158 |
+
* @param $layout
|
159 |
+
*
|
160 |
+
* @return bool|mixed
|
161 |
+
*/
|
162 |
function layout_model($return, $field, $layout){
|
163 |
|
164 |
+
if(!in_array('layout', $field['acfe_flexible_async'])){
|
165 |
return $return;
|
166 |
+
}
|
167 |
|
168 |
$i = 'acfcloneindex';
|
169 |
$id = 'acfcloneindex';
|
192 |
|
193 |
}
|
194 |
|
195 |
+
|
196 |
+
/**
|
197 |
+
* ajax_layout_model
|
198 |
+
*/
|
199 |
function ajax_layout_model(){
|
200 |
|
201 |
// options
|
205 |
));
|
206 |
|
207 |
$field = acf_get_field($options['field_key']);
|
208 |
+
if(!$field){
|
209 |
die;
|
210 |
+
}
|
211 |
|
212 |
$acfe_instance = acf_get_instance('acfe_field_flexible_content');
|
213 |
$field = acf_prepare_field($field);
|
214 |
|
215 |
foreach($field['layouts'] as $k => $layout){
|
216 |
|
217 |
+
if($layout['name'] !== $options['layout']){
|
218 |
continue;
|
219 |
+
}
|
220 |
|
221 |
$acfe_instance->render_layout($field, $layout, 'acfcloneindex', array());
|
222 |
die;
|
includes/fields/field-flexible-content-controls.php
CHANGED
@@ -1,12 +1,16 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_flexible_content_controls')):
|
7 |
|
8 |
class acfe_field_flexible_content_controls{
|
9 |
|
|
|
|
|
|
|
10 |
function __construct(){
|
11 |
|
12 |
// Hooks
|
@@ -18,41 +22,18 @@ class acfe_field_flexible_content_controls{
|
|
18 |
add_filter('acfe/flexible/action_wrapper', array($this, 'action_wrapper'), 10, 2);
|
19 |
add_filter('acfe/flexible/action_button', array($this, 'action_button'), 10, 2);
|
20 |
add_filter('acfe/flexible/action_button_secondary', array($this, 'action_button_secondary'), 10, 2);
|
21 |
-
|
22 |
add_filter('acf/fields/flexible_content/no_value_message', array($this, 'no_value_message'), 1, 2);
|
23 |
|
24 |
}
|
25 |
|
26 |
-
function action_wrapper($wrapper, $field){
|
27 |
-
|
28 |
-
if($field['acfe_flexible_stylised_button']){
|
29 |
-
$wrapper['class'] = ' acfe-flexible-stylised-button';
|
30 |
-
}
|
31 |
-
|
32 |
-
return $wrapper;
|
33 |
-
|
34 |
-
}
|
35 |
-
|
36 |
-
function action_button($button, $field){
|
37 |
-
|
38 |
-
if(!$field['acfe_flexible_stylised_button']){
|
39 |
-
$button['class'] .= ' button-primary';
|
40 |
-
}
|
41 |
-
|
42 |
-
return $button;
|
43 |
-
|
44 |
-
}
|
45 |
-
|
46 |
-
function action_button_secondary($button, $field){
|
47 |
-
|
48 |
-
if(!$field['acfe_flexible_stylised_button']){
|
49 |
-
$button['class'] .= ' button-primary';
|
50 |
-
}
|
51 |
-
|
52 |
-
return $button;
|
53 |
-
|
54 |
-
}
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
function defaults_field($field){
|
57 |
|
58 |
$field['acfe_flexible_advanced'] = false;
|
@@ -64,6 +45,12 @@ class acfe_field_flexible_content_controls{
|
|
64 |
|
65 |
}
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
function render_field_settings($field){
|
68 |
|
69 |
// Advanced settings
|
@@ -167,6 +154,15 @@ class acfe_field_flexible_content_controls{
|
|
167 |
|
168 |
}
|
169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
function wrapper_attributes($wrapper, $field){
|
171 |
|
172 |
// Stylised button
|
@@ -183,6 +179,18 @@ class acfe_field_flexible_content_controls{
|
|
183 |
|
184 |
}
|
185 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
function prepare_layout($layout, $field, $i, $value, $prefix){
|
187 |
|
188 |
// Vars
|
@@ -222,10 +230,77 @@ class acfe_field_flexible_content_controls{
|
|
222 |
|
223 |
}
|
224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
function no_value_message($message, $field){
|
226 |
|
227 |
-
if(!empty($field['acfe_flexible_empty_message']))
|
228 |
$message = $field['acfe_flexible_empty_message'];
|
|
|
229 |
|
230 |
return $message;
|
231 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_flexible_content_controls')):
|
8 |
|
9 |
class acfe_field_flexible_content_controls{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
// Hooks
|
22 |
add_filter('acfe/flexible/action_wrapper', array($this, 'action_wrapper'), 10, 2);
|
23 |
add_filter('acfe/flexible/action_button', array($this, 'action_button'), 10, 2);
|
24 |
add_filter('acfe/flexible/action_button_secondary', array($this, 'action_button_secondary'), 10, 2);
|
|
|
25 |
add_filter('acf/fields/flexible_content/no_value_message', array($this, 'no_value_message'), 1, 2);
|
26 |
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
+
/**
|
31 |
+
* defaults_field
|
32 |
+
*
|
33 |
+
* @param $field
|
34 |
+
*
|
35 |
+
* @return mixed
|
36 |
+
*/
|
37 |
function defaults_field($field){
|
38 |
|
39 |
$field['acfe_flexible_advanced'] = false;
|
45 |
|
46 |
}
|
47 |
|
48 |
+
|
49 |
+
/**
|
50 |
+
* render_field_settings
|
51 |
+
*
|
52 |
+
* @param $field
|
53 |
+
*/
|
54 |
function render_field_settings($field){
|
55 |
|
56 |
// Advanced settings
|
154 |
|
155 |
}
|
156 |
|
157 |
+
|
158 |
+
/**
|
159 |
+
* wrapper_attributes
|
160 |
+
*
|
161 |
+
* @param $wrapper
|
162 |
+
* @param $field
|
163 |
+
*
|
164 |
+
* @return mixed
|
165 |
+
*/
|
166 |
function wrapper_attributes($wrapper, $field){
|
167 |
|
168 |
// Stylised button
|
179 |
|
180 |
}
|
181 |
|
182 |
+
|
183 |
+
/**
|
184 |
+
* prepare_layout
|
185 |
+
*
|
186 |
+
* @param $layout
|
187 |
+
* @param $field
|
188 |
+
* @param $i
|
189 |
+
* @param $value
|
190 |
+
* @param $prefix
|
191 |
+
*
|
192 |
+
* @return mixed
|
193 |
+
*/
|
194 |
function prepare_layout($layout, $field, $i, $value, $prefix){
|
195 |
|
196 |
// Vars
|
230 |
|
231 |
}
|
232 |
|
233 |
+
|
234 |
+
/**
|
235 |
+
* action_wrapper
|
236 |
+
*
|
237 |
+
* @param $wrapper
|
238 |
+
* @param $field
|
239 |
+
*
|
240 |
+
* @return mixed
|
241 |
+
*/
|
242 |
+
function action_wrapper($wrapper, $field){
|
243 |
+
|
244 |
+
if($field['acfe_flexible_stylised_button']){
|
245 |
+
$wrapper['class'] = ' acfe-flexible-stylised-button';
|
246 |
+
}
|
247 |
+
|
248 |
+
return $wrapper;
|
249 |
+
|
250 |
+
}
|
251 |
+
|
252 |
+
|
253 |
+
/**
|
254 |
+
* action_button
|
255 |
+
*
|
256 |
+
* @param $button
|
257 |
+
* @param $field
|
258 |
+
*
|
259 |
+
* @return mixed
|
260 |
+
*/
|
261 |
+
function action_button($button, $field){
|
262 |
+
|
263 |
+
if(!$field['acfe_flexible_stylised_button']){
|
264 |
+
$button['class'] .= ' button-primary';
|
265 |
+
}
|
266 |
+
|
267 |
+
return $button;
|
268 |
+
|
269 |
+
}
|
270 |
+
|
271 |
+
|
272 |
+
/**
|
273 |
+
* action_button_secondary
|
274 |
+
*
|
275 |
+
* @param $button
|
276 |
+
* @param $field
|
277 |
+
*
|
278 |
+
* @return mixed
|
279 |
+
*/
|
280 |
+
function action_button_secondary($button, $field){
|
281 |
+
|
282 |
+
if(!$field['acfe_flexible_stylised_button']){
|
283 |
+
$button['class'] .= ' button-primary';
|
284 |
+
}
|
285 |
+
|
286 |
+
return $button;
|
287 |
+
|
288 |
+
}
|
289 |
+
|
290 |
+
|
291 |
+
/**
|
292 |
+
* no_value_message
|
293 |
+
*
|
294 |
+
* @param $message
|
295 |
+
* @param $field
|
296 |
+
*
|
297 |
+
* @return mixed
|
298 |
+
*/
|
299 |
function no_value_message($message, $field){
|
300 |
|
301 |
+
if(!empty($field['acfe_flexible_empty_message'])){
|
302 |
$message = $field['acfe_flexible_empty_message'];
|
303 |
+
}
|
304 |
|
305 |
return $message;
|
306 |
|
includes/fields/field-flexible-content-edit.php
CHANGED
@@ -1,14 +1,16 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_flexible_content_edit')):
|
7 |
|
8 |
class acfe_field_flexible_content_edit{
|
9 |
|
10 |
-
|
11 |
-
|
|
|
12 |
function __construct(){
|
13 |
|
14 |
// Hooks
|
@@ -29,6 +31,14 @@ class acfe_field_flexible_content_edit{
|
|
29 |
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
function defaults_field($field){
|
33 |
|
34 |
$field['acfe_flexible_modal_edit'] = array(
|
@@ -40,6 +50,14 @@ class acfe_field_flexible_content_edit{
|
|
40 |
|
41 |
}
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
function defaults_layout($layout){
|
44 |
|
45 |
$layout['acfe_flexible_modal_edit_size'] = false;
|
@@ -48,6 +66,12 @@ class acfe_field_flexible_content_edit{
|
|
48 |
|
49 |
}
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
function render_field_settings($field){
|
52 |
|
53 |
acf_render_field_setting($field, array(
|
@@ -125,10 +149,19 @@ class acfe_field_flexible_content_edit{
|
|
125 |
|
126 |
}
|
127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
function render_layout_settings($field, $layout, $prefix){
|
129 |
|
130 |
-
if(!$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled'])
|
131 |
return;
|
|
|
132 |
|
133 |
// Title
|
134 |
echo '</li>';
|
@@ -171,10 +204,19 @@ class acfe_field_flexible_content_edit{
|
|
171 |
|
172 |
}
|
173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
function validate_edit($field){
|
175 |
|
176 |
-
if(!isset($field['acfe_flexible_modal_edition']))
|
177 |
return $field;
|
|
|
178 |
|
179 |
$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled'] = $field['acfe_flexible_modal_edition'];
|
180 |
|
@@ -184,11 +226,21 @@ class acfe_field_flexible_content_edit{
|
|
184 |
|
185 |
}
|
186 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
function wrapper_attributes($wrapper, $field){
|
188 |
|
189 |
// Check setting
|
190 |
-
if(!$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled'])
|
191 |
return $wrapper;
|
|
|
192 |
|
193 |
$wrapper['data-acfe-flexible-modal-edition'] = 1;
|
194 |
|
@@ -196,10 +248,21 @@ class acfe_field_flexible_content_edit{
|
|
196 |
|
197 |
}
|
198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
function pre_render_layout($layout, $field, $i, $value, $prefix){
|
200 |
|
201 |
-
if(empty($layout['sub_fields']) || !$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled'])
|
202 |
return;
|
|
|
203 |
|
204 |
// Field
|
205 |
$size = $field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_size'];
|
@@ -216,10 +279,21 @@ class acfe_field_flexible_content_edit{
|
|
216 |
|
217 |
}
|
218 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
function render_layout($layout, $field, $i, $value, $prefix){
|
220 |
|
221 |
-
if(empty($layout['sub_fields']) || !$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled'])
|
222 |
return;
|
|
|
223 |
|
224 |
?>
|
225 |
</div>
|
@@ -229,14 +303,26 @@ class acfe_field_flexible_content_edit{
|
|
229 |
|
230 |
}
|
231 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
function layout_div($div, $layout, $field){
|
233 |
|
234 |
-
if(!$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled'])
|
235 |
return $div;
|
|
|
236 |
|
237 |
// Already in class
|
238 |
-
if(in_array('-collapsed', explode(' ', $div['class'])))
|
239 |
return $div;
|
|
|
240 |
|
241 |
$div['class'] .= ' -collapsed';
|
242 |
|
@@ -244,10 +330,21 @@ class acfe_field_flexible_content_edit{
|
|
244 |
|
245 |
}
|
246 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
function layout_icons($icons, $layout, $field){
|
248 |
|
249 |
-
if(!$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled'])
|
250 |
return $icons;
|
|
|
251 |
|
252 |
acfe_unset($icons, 'collapse');
|
253 |
|
@@ -255,10 +352,21 @@ class acfe_field_flexible_content_edit{
|
|
255 |
|
256 |
}
|
257 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
function layout_handle($handle, $layout, $field){
|
259 |
|
260 |
-
if(!$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled'])
|
261 |
return $handle;
|
|
|
262 |
|
263 |
$handle['data-action'] = 'acfe-flexible-modal-edit';
|
264 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_flexible_content_edit')):
|
8 |
|
9 |
class acfe_field_flexible_content_edit{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
// Hooks
|
31 |
|
32 |
}
|
33 |
|
34 |
+
|
35 |
+
/**
|
36 |
+
* defaults_field
|
37 |
+
*
|
38 |
+
* @param $field
|
39 |
+
*
|
40 |
+
* @return mixed
|
41 |
+
*/
|
42 |
function defaults_field($field){
|
43 |
|
44 |
$field['acfe_flexible_modal_edit'] = array(
|
50 |
|
51 |
}
|
52 |
|
53 |
+
|
54 |
+
/**
|
55 |
+
* defaults_layout
|
56 |
+
*
|
57 |
+
* @param $layout
|
58 |
+
*
|
59 |
+
* @return mixed
|
60 |
+
*/
|
61 |
function defaults_layout($layout){
|
62 |
|
63 |
$layout['acfe_flexible_modal_edit_size'] = false;
|
66 |
|
67 |
}
|
68 |
|
69 |
+
|
70 |
+
/**
|
71 |
+
* render_field_settings
|
72 |
+
*
|
73 |
+
* @param $field
|
74 |
+
*/
|
75 |
function render_field_settings($field){
|
76 |
|
77 |
acf_render_field_setting($field, array(
|
149 |
|
150 |
}
|
151 |
|
152 |
+
|
153 |
+
/**
|
154 |
+
* render_layout_settings
|
155 |
+
*
|
156 |
+
* @param $field
|
157 |
+
* @param $layout
|
158 |
+
* @param $prefix
|
159 |
+
*/
|
160 |
function render_layout_settings($field, $layout, $prefix){
|
161 |
|
162 |
+
if(!$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled']){
|
163 |
return;
|
164 |
+
}
|
165 |
|
166 |
// Title
|
167 |
echo '</li>';
|
204 |
|
205 |
}
|
206 |
|
207 |
+
|
208 |
+
/**
|
209 |
+
* validate_edit
|
210 |
+
*
|
211 |
+
* @param $field
|
212 |
+
*
|
213 |
+
* @return array|mixed
|
214 |
+
*/
|
215 |
function validate_edit($field){
|
216 |
|
217 |
+
if(!isset($field['acfe_flexible_modal_edition'])){
|
218 |
return $field;
|
219 |
+
}
|
220 |
|
221 |
$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled'] = $field['acfe_flexible_modal_edition'];
|
222 |
|
226 |
|
227 |
}
|
228 |
|
229 |
+
|
230 |
+
/**
|
231 |
+
* wrapper_attributes
|
232 |
+
*
|
233 |
+
* @param $wrapper
|
234 |
+
* @param $field
|
235 |
+
*
|
236 |
+
* @return mixed
|
237 |
+
*/
|
238 |
function wrapper_attributes($wrapper, $field){
|
239 |
|
240 |
// Check setting
|
241 |
+
if(!$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled']){
|
242 |
return $wrapper;
|
243 |
+
}
|
244 |
|
245 |
$wrapper['data-acfe-flexible-modal-edition'] = 1;
|
246 |
|
248 |
|
249 |
}
|
250 |
|
251 |
+
|
252 |
+
/**
|
253 |
+
* pre_render_layout
|
254 |
+
*
|
255 |
+
* @param $layout
|
256 |
+
* @param $field
|
257 |
+
* @param $i
|
258 |
+
* @param $value
|
259 |
+
* @param $prefix
|
260 |
+
*/
|
261 |
function pre_render_layout($layout, $field, $i, $value, $prefix){
|
262 |
|
263 |
+
if(empty($layout['sub_fields']) || !$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled']){
|
264 |
return;
|
265 |
+
}
|
266 |
|
267 |
// Field
|
268 |
$size = $field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_size'];
|
279 |
|
280 |
}
|
281 |
|
282 |
+
|
283 |
+
/**
|
284 |
+
* render_layout
|
285 |
+
*
|
286 |
+
* @param $layout
|
287 |
+
* @param $field
|
288 |
+
* @param $i
|
289 |
+
* @param $value
|
290 |
+
* @param $prefix
|
291 |
+
*/
|
292 |
function render_layout($layout, $field, $i, $value, $prefix){
|
293 |
|
294 |
+
if(empty($layout['sub_fields']) || !$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled']){
|
295 |
return;
|
296 |
+
}
|
297 |
|
298 |
?>
|
299 |
</div>
|
303 |
|
304 |
}
|
305 |
|
306 |
+
|
307 |
+
/**
|
308 |
+
* layout_div
|
309 |
+
*
|
310 |
+
* @param $div
|
311 |
+
* @param $layout
|
312 |
+
* @param $field
|
313 |
+
*
|
314 |
+
* @return mixed
|
315 |
+
*/
|
316 |
function layout_div($div, $layout, $field){
|
317 |
|
318 |
+
if(!$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled']){
|
319 |
return $div;
|
320 |
+
}
|
321 |
|
322 |
// Already in class
|
323 |
+
if(in_array('-collapsed', explode(' ', $div['class']))){
|
324 |
return $div;
|
325 |
+
}
|
326 |
|
327 |
$div['class'] .= ' -collapsed';
|
328 |
|
330 |
|
331 |
}
|
332 |
|
333 |
+
|
334 |
+
/**
|
335 |
+
* layout_icons
|
336 |
+
*
|
337 |
+
* @param $icons
|
338 |
+
* @param $layout
|
339 |
+
* @param $field
|
340 |
+
*
|
341 |
+
* @return mixed
|
342 |
+
*/
|
343 |
function layout_icons($icons, $layout, $field){
|
344 |
|
345 |
+
if(!$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled']){
|
346 |
return $icons;
|
347 |
+
}
|
348 |
|
349 |
acfe_unset($icons, 'collapse');
|
350 |
|
352 |
|
353 |
}
|
354 |
|
355 |
+
|
356 |
+
/**
|
357 |
+
* layout_handle
|
358 |
+
*
|
359 |
+
* @param $handle
|
360 |
+
* @param $layout
|
361 |
+
* @param $field
|
362 |
+
*
|
363 |
+
* @return mixed
|
364 |
+
*/
|
365 |
function layout_handle($handle, $layout, $field){
|
366 |
|
367 |
+
if(!$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled']){
|
368 |
return $handle;
|
369 |
+
}
|
370 |
|
371 |
$handle['data-action'] = 'acfe-flexible-modal-edit';
|
372 |
|
includes/fields/field-flexible-content-hide.php
CHANGED
@@ -1,12 +1,16 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_flexible_content_hide')):
|
7 |
|
8 |
class acfe_field_flexible_content_hide{
|
9 |
|
|
|
|
|
|
|
10 |
function __construct(){
|
11 |
|
12 |
// Hooks
|
@@ -19,6 +23,14 @@ class acfe_field_flexible_content_hide{
|
|
19 |
|
20 |
}
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
function defaults_field($field){
|
23 |
|
24 |
$field['acfe_flexible_remove_button'] = array();
|
@@ -27,6 +39,12 @@ class acfe_field_flexible_content_hide{
|
|
27 |
|
28 |
}
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
function render_field_settings($field){
|
31 |
|
32 |
$hide_choices = array(
|
@@ -63,6 +81,14 @@ class acfe_field_flexible_content_hide{
|
|
63 |
|
64 |
}
|
65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
function validate_hide($field){
|
67 |
|
68 |
/*
|
@@ -105,28 +131,52 @@ class acfe_field_flexible_content_hide{
|
|
105 |
|
106 |
}
|
107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
function remove_actions($return, $field){
|
109 |
|
110 |
-
if(!in_array('add', $field['acfe_flexible_remove_button']))
|
111 |
return $return;
|
|
|
112 |
|
113 |
return true;
|
114 |
|
115 |
}
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
function layout_icons($icons, $layout, $field){
|
118 |
|
119 |
-
if(in_array('add', $field['acfe_flexible_remove_button']))
|
120 |
acfe_unset($icons, 'add');
|
|
|
121 |
|
122 |
-
if(in_array('duplicate', $field['acfe_flexible_remove_button']))
|
123 |
acfe_unset($icons, 'duplicate');
|
|
|
124 |
|
125 |
-
if(in_array('delete', $field['acfe_flexible_remove_button']))
|
126 |
acfe_unset($icons, 'delete');
|
|
|
127 |
|
128 |
-
if(in_array('collapse', $field['acfe_flexible_remove_button']))
|
129 |
acfe_unset($icons, 'collapse');
|
|
|
130 |
|
131 |
return $icons;
|
132 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_flexible_content_hide')):
|
8 |
|
9 |
class acfe_field_flexible_content_hide{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
// Hooks
|
23 |
|
24 |
}
|
25 |
|
26 |
+
|
27 |
+
/**
|
28 |
+
* defaults_field
|
29 |
+
*
|
30 |
+
* @param $field
|
31 |
+
*
|
32 |
+
* @return mixed
|
33 |
+
*/
|
34 |
function defaults_field($field){
|
35 |
|
36 |
$field['acfe_flexible_remove_button'] = array();
|
39 |
|
40 |
}
|
41 |
|
42 |
+
|
43 |
+
/**
|
44 |
+
* render_field_settings
|
45 |
+
*
|
46 |
+
* @param $field
|
47 |
+
*/
|
48 |
function render_field_settings($field){
|
49 |
|
50 |
$hide_choices = array(
|
81 |
|
82 |
}
|
83 |
|
84 |
+
|
85 |
+
/**
|
86 |
+
* validate_hide
|
87 |
+
*
|
88 |
+
* @param $field
|
89 |
+
*
|
90 |
+
* @return mixed
|
91 |
+
*/
|
92 |
function validate_hide($field){
|
93 |
|
94 |
/*
|
131 |
|
132 |
}
|
133 |
|
134 |
+
|
135 |
+
/**
|
136 |
+
* remove_actions
|
137 |
+
*
|
138 |
+
* @param $return
|
139 |
+
* @param $field
|
140 |
+
*
|
141 |
+
* @return bool|mixed
|
142 |
+
*/
|
143 |
function remove_actions($return, $field){
|
144 |
|
145 |
+
if(!in_array('add', $field['acfe_flexible_remove_button'])){
|
146 |
return $return;
|
147 |
+
}
|
148 |
|
149 |
return true;
|
150 |
|
151 |
}
|
152 |
|
153 |
+
|
154 |
+
/**
|
155 |
+
* layout_icons
|
156 |
+
*
|
157 |
+
* @param $icons
|
158 |
+
* @param $layout
|
159 |
+
* @param $field
|
160 |
+
*
|
161 |
+
* @return mixed
|
162 |
+
*/
|
163 |
function layout_icons($icons, $layout, $field){
|
164 |
|
165 |
+
if(in_array('add', $field['acfe_flexible_remove_button'])){
|
166 |
acfe_unset($icons, 'add');
|
167 |
+
}
|
168 |
|
169 |
+
if(in_array('duplicate', $field['acfe_flexible_remove_button'])){
|
170 |
acfe_unset($icons, 'duplicate');
|
171 |
+
}
|
172 |
|
173 |
+
if(in_array('delete', $field['acfe_flexible_remove_button'])){
|
174 |
acfe_unset($icons, 'delete');
|
175 |
+
}
|
176 |
|
177 |
+
if(in_array('collapse', $field['acfe_flexible_remove_button'])){
|
178 |
acfe_unset($icons, 'collapse');
|
179 |
+
}
|
180 |
|
181 |
return $icons;
|
182 |
|
includes/fields/field-flexible-content-preview.php
CHANGED
@@ -1,12 +1,16 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_flexible_content_preview')):
|
7 |
|
8 |
class acfe_field_flexible_content_preview{
|
9 |
|
|
|
|
|
|
|
10 |
function __construct(){
|
11 |
|
12 |
// Hooks
|
@@ -25,6 +29,14 @@ class acfe_field_flexible_content_preview{
|
|
25 |
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
function defaults_field($field){
|
29 |
|
30 |
$field['acfe_flexible_layouts_templates'] = false;
|
@@ -35,6 +47,14 @@ class acfe_field_flexible_content_preview{
|
|
35 |
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
function defaults_layout($layout){
|
39 |
|
40 |
$layout['acfe_flexible_render_template'] = false;
|
@@ -45,6 +65,12 @@ class acfe_field_flexible_content_preview{
|
|
45 |
|
46 |
}
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
function render_field_settings($field){
|
49 |
|
50 |
// Render
|
@@ -128,10 +154,19 @@ class acfe_field_flexible_content_preview{
|
|
128 |
|
129 |
}
|
130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
function render_layout_settings($flexible, $layout, $prefix){
|
132 |
|
133 |
-
if(!acf_maybe_get($flexible, 'acfe_flexible_layouts_templates'))
|
134 |
return;
|
|
|
135 |
|
136 |
// vars
|
137 |
$name = $flexible['name'];
|
@@ -209,11 +244,18 @@ class acfe_field_flexible_content_preview{
|
|
209 |
|
210 |
}
|
211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
function render_field($field){
|
213 |
|
214 |
// Check setting
|
215 |
-
if(!acf_maybe_get($field, 'acfe_flexible_layouts_templates') || !acf_maybe_get($field, 'acfe_flexible_layouts_previews'))
|
216 |
return;
|
|
|
217 |
|
218 |
// Vars
|
219 |
$name = $field['_name'];
|
@@ -238,6 +280,15 @@ class acfe_field_flexible_content_preview{
|
|
238 |
|
239 |
}
|
240 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
function wrapper_attributes($wrapper, $field){
|
242 |
|
243 |
if(acf_maybe_get($field, 'acfe_flexible_layouts_placeholder')){
|
@@ -252,10 +303,23 @@ class acfe_field_flexible_content_preview{
|
|
252 |
|
253 |
}
|
254 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
function prepare_layout($layout, $field, $i, $value, $prefix){
|
256 |
|
257 |
-
if(!acf_maybe_get($field, 'acfe_flexible_layouts_placeholder') && !acf_maybe_get($field, 'acfe_flexible_layouts_previews'))
|
258 |
return $layout;
|
|
|
259 |
|
260 |
// Vars
|
261 |
$name = $field['_name'];
|
@@ -313,6 +377,14 @@ class acfe_field_flexible_content_preview{
|
|
313 |
|
314 |
}
|
315 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
function layout_preview($options = array()){
|
317 |
|
318 |
if(empty($options)){
|
@@ -331,15 +403,17 @@ class acfe_field_flexible_content_preview{
|
|
331 |
|
332 |
// Load field
|
333 |
$field = acf_get_field($options['field_key']);
|
334 |
-
if(!$field)
|
335 |
return $this->return_or_die();
|
|
|
336 |
|
337 |
// Layout
|
338 |
$instance = acf_get_field_type('flexible_content');
|
339 |
$layout = $instance->get_layout($options['layout'], $field);
|
340 |
|
341 |
-
if(!$layout)
|
342 |
return $this->return_or_die();
|
|
|
343 |
|
344 |
// Global
|
345 |
global $is_preview;
|
@@ -386,10 +460,17 @@ class acfe_field_flexible_content_preview{
|
|
386 |
|
387 |
}
|
388 |
|
|
|
|
|
|
|
|
|
|
|
|
|
389 |
function return_or_die(){
|
390 |
|
391 |
-
if(wp_doing_ajax())
|
392 |
die;
|
|
|
393 |
|
394 |
return true;
|
395 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_flexible_content_preview')):
|
8 |
|
9 |
class acfe_field_flexible_content_preview{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
// Hooks
|
29 |
|
30 |
}
|
31 |
|
32 |
+
|
33 |
+
/**
|
34 |
+
* defaults_field
|
35 |
+
*
|
36 |
+
* @param $field
|
37 |
+
*
|
38 |
+
* @return mixed
|
39 |
+
*/
|
40 |
function defaults_field($field){
|
41 |
|
42 |
$field['acfe_flexible_layouts_templates'] = false;
|
47 |
|
48 |
}
|
49 |
|
50 |
+
|
51 |
+
/**
|
52 |
+
* defaults_layout
|
53 |
+
*
|
54 |
+
* @param $layout
|
55 |
+
*
|
56 |
+
* @return mixed
|
57 |
+
*/
|
58 |
function defaults_layout($layout){
|
59 |
|
60 |
$layout['acfe_flexible_render_template'] = false;
|
65 |
|
66 |
}
|
67 |
|
68 |
+
|
69 |
+
/**
|
70 |
+
* render_field_settings
|
71 |
+
*
|
72 |
+
* @param $field
|
73 |
+
*/
|
74 |
function render_field_settings($field){
|
75 |
|
76 |
// Render
|
154 |
|
155 |
}
|
156 |
|
157 |
+
|
158 |
+
/**
|
159 |
+
* render_layout_settings
|
160 |
+
*
|
161 |
+
* @param $flexible
|
162 |
+
* @param $layout
|
163 |
+
* @param $prefix
|
164 |
+
*/
|
165 |
function render_layout_settings($flexible, $layout, $prefix){
|
166 |
|
167 |
+
if(!acf_maybe_get($flexible, 'acfe_flexible_layouts_templates')){
|
168 |
return;
|
169 |
+
}
|
170 |
|
171 |
// vars
|
172 |
$name = $flexible['name'];
|
244 |
|
245 |
}
|
246 |
|
247 |
+
|
248 |
+
/**
|
249 |
+
* render_field
|
250 |
+
*
|
251 |
+
* @param $field
|
252 |
+
*/
|
253 |
function render_field($field){
|
254 |
|
255 |
// Check setting
|
256 |
+
if(!acf_maybe_get($field, 'acfe_flexible_layouts_templates') || !acf_maybe_get($field, 'acfe_flexible_layouts_previews')){
|
257 |
return;
|
258 |
+
}
|
259 |
|
260 |
// Vars
|
261 |
$name = $field['_name'];
|
280 |
|
281 |
}
|
282 |
|
283 |
+
|
284 |
+
/**
|
285 |
+
* wrapper_attributes
|
286 |
+
*
|
287 |
+
* @param $wrapper
|
288 |
+
* @param $field
|
289 |
+
*
|
290 |
+
* @return mixed
|
291 |
+
*/
|
292 |
function wrapper_attributes($wrapper, $field){
|
293 |
|
294 |
if(acf_maybe_get($field, 'acfe_flexible_layouts_placeholder')){
|
303 |
|
304 |
}
|
305 |
|
306 |
+
|
307 |
+
/**
|
308 |
+
* prepare_layout
|
309 |
+
*
|
310 |
+
* @param $layout
|
311 |
+
* @param $field
|
312 |
+
* @param $i
|
313 |
+
* @param $value
|
314 |
+
* @param $prefix
|
315 |
+
*
|
316 |
+
* @return mixed
|
317 |
+
*/
|
318 |
function prepare_layout($layout, $field, $i, $value, $prefix){
|
319 |
|
320 |
+
if(!acf_maybe_get($field, 'acfe_flexible_layouts_placeholder') && !acf_maybe_get($field, 'acfe_flexible_layouts_previews')){
|
321 |
return $layout;
|
322 |
+
}
|
323 |
|
324 |
// Vars
|
325 |
$name = $field['_name'];
|
377 |
|
378 |
}
|
379 |
|
380 |
+
|
381 |
+
/**
|
382 |
+
* layout_preview
|
383 |
+
*
|
384 |
+
* @param $options
|
385 |
+
*
|
386 |
+
* @return bool|null
|
387 |
+
*/
|
388 |
function layout_preview($options = array()){
|
389 |
|
390 |
if(empty($options)){
|
403 |
|
404 |
// Load field
|
405 |
$field = acf_get_field($options['field_key']);
|
406 |
+
if(!$field){
|
407 |
return $this->return_or_die();
|
408 |
+
}
|
409 |
|
410 |
// Layout
|
411 |
$instance = acf_get_field_type('flexible_content');
|
412 |
$layout = $instance->get_layout($options['layout'], $field);
|
413 |
|
414 |
+
if(!$layout){
|
415 |
return $this->return_or_die();
|
416 |
+
}
|
417 |
|
418 |
// Global
|
419 |
global $is_preview;
|
460 |
|
461 |
}
|
462 |
|
463 |
+
|
464 |
+
/**
|
465 |
+
* return_or_die
|
466 |
+
*
|
467 |
+
* @return bool|void
|
468 |
+
*/
|
469 |
function return_or_die(){
|
470 |
|
471 |
+
if(wp_doing_ajax()){
|
472 |
die;
|
473 |
+
}
|
474 |
|
475 |
return true;
|
476 |
|
includes/fields/field-flexible-content-select.php
CHANGED
@@ -1,12 +1,16 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_flexible_content_select')):
|
7 |
|
8 |
class acfe_field_flexible_content_select{
|
9 |
|
|
|
|
|
|
|
10 |
function __construct(){
|
11 |
|
12 |
// Hooks
|
@@ -21,6 +25,14 @@ class acfe_field_flexible_content_select{
|
|
21 |
|
22 |
}
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
function defaults_field($field){
|
25 |
|
26 |
$field['acfe_flexible_modal'] = array(
|
@@ -35,6 +47,14 @@ class acfe_field_flexible_content_select{
|
|
35 |
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
function defaults_layout($layout){
|
39 |
|
40 |
$layout['acfe_flexible_category'] = false;
|
@@ -43,6 +63,12 @@ class acfe_field_flexible_content_select{
|
|
43 |
|
44 |
}
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
function render_field_settings($field){
|
47 |
|
48 |
acf_render_field_setting($field, array(
|
@@ -200,11 +226,23 @@ class acfe_field_flexible_content_select{
|
|
200 |
|
201 |
}
|
202 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
function render_layout_settings($field, $layout, $prefix){
|
204 |
|
205 |
-
if(!$field['acfe_flexible_modal']['acfe_flexible_modal_categories'])
|
206 |
return;
|
207 |
-
|
|
|
|
|
|
|
|
|
208 |
acf_render_field_wrap(array(
|
209 |
'prepend' => __('Category', 'acfe'),
|
210 |
'name' => 'acfe_flexible_category',
|
@@ -223,38 +261,60 @@ class acfe_field_flexible_content_select{
|
|
223 |
|
224 |
}
|
225 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
function wrapper_attributes($wrapper, $field){
|
227 |
|
228 |
-
if(!$field['acfe_flexible_modal']['acfe_flexible_modal_enabled'])
|
229 |
return $wrapper;
|
|
|
230 |
|
231 |
$wrapper['data-acfe-flexible-modal'] = 1;
|
232 |
$wrapper['data-acfe-flexible-modal-col'] = $field['acfe_flexible_modal']['acfe_flexible_modal_col'];
|
233 |
$wrapper['data-acfe-flexible-modal-size'] = $field['acfe_flexible_modal']['acfe_flexible_modal_size'];
|
234 |
|
235 |
// Title
|
236 |
-
if(!empty($field['acfe_flexible_modal']['acfe_flexible_modal_title']))
|
237 |
$wrapper['data-acfe-flexible-modal-title'] = $field['acfe_flexible_modal']['acfe_flexible_modal_title'];
|
|
|
238 |
|
239 |
return $wrapper;
|
240 |
|
241 |
}
|
242 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
function label_atts($atts, $layout, $field){
|
244 |
|
245 |
// Category
|
246 |
-
if(!$field['acfe_flexible_modal']['acfe_flexible_modal_categories']
|
247 |
return $atts;
|
|
|
248 |
|
249 |
$categories = $layout['acfe_flexible_category'];
|
250 |
|
251 |
// Compatibility
|
252 |
-
if(is_string($categories)){
|
253 |
$categories = explode('|', $categories);
|
254 |
$categories = array_map('trim', $categories);
|
255 |
}
|
256 |
|
257 |
-
$atts['data-acfe-flexible-category'] = $categories;
|
258 |
|
259 |
return $atts;
|
260 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_flexible_content_select')):
|
8 |
|
9 |
class acfe_field_flexible_content_select{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
// Hooks
|
25 |
|
26 |
}
|
27 |
|
28 |
+
|
29 |
+
/**
|
30 |
+
* defaults_field
|
31 |
+
*
|
32 |
+
* @param $field
|
33 |
+
*
|
34 |
+
* @return mixed
|
35 |
+
*/
|
36 |
function defaults_field($field){
|
37 |
|
38 |
$field['acfe_flexible_modal'] = array(
|
47 |
|
48 |
}
|
49 |
|
50 |
+
|
51 |
+
/**
|
52 |
+
* defaults_layout
|
53 |
+
*
|
54 |
+
* @param $layout
|
55 |
+
*
|
56 |
+
* @return mixed
|
57 |
+
*/
|
58 |
function defaults_layout($layout){
|
59 |
|
60 |
$layout['acfe_flexible_category'] = false;
|
63 |
|
64 |
}
|
65 |
|
66 |
+
|
67 |
+
/**
|
68 |
+
* render_field_settings
|
69 |
+
*
|
70 |
+
* @param $field
|
71 |
+
*/
|
72 |
function render_field_settings($field){
|
73 |
|
74 |
acf_render_field_setting($field, array(
|
226 |
|
227 |
}
|
228 |
|
229 |
+
|
230 |
+
/**
|
231 |
+
* render_layout_settings
|
232 |
+
*
|
233 |
+
* @param $field
|
234 |
+
* @param $layout
|
235 |
+
* @param $prefix
|
236 |
+
*/
|
237 |
function render_layout_settings($field, $layout, $prefix){
|
238 |
|
239 |
+
if(!$field['acfe_flexible_modal']['acfe_flexible_modal_categories']){
|
240 |
return;
|
241 |
+
}
|
242 |
+
|
243 |
+
echo '</li>';
|
244 |
+
|
245 |
+
echo '<li>';
|
246 |
acf_render_field_wrap(array(
|
247 |
'prepend' => __('Category', 'acfe'),
|
248 |
'name' => 'acfe_flexible_category',
|
261 |
|
262 |
}
|
263 |
|
264 |
+
|
265 |
+
/**
|
266 |
+
* wrapper_attributes
|
267 |
+
*
|
268 |
+
* @param $wrapper
|
269 |
+
* @param $field
|
270 |
+
*
|
271 |
+
* @return mixed
|
272 |
+
*/
|
273 |
function wrapper_attributes($wrapper, $field){
|
274 |
|
275 |
+
if(!$field['acfe_flexible_modal']['acfe_flexible_modal_enabled']){
|
276 |
return $wrapper;
|
277 |
+
}
|
278 |
|
279 |
$wrapper['data-acfe-flexible-modal'] = 1;
|
280 |
$wrapper['data-acfe-flexible-modal-col'] = $field['acfe_flexible_modal']['acfe_flexible_modal_col'];
|
281 |
$wrapper['data-acfe-flexible-modal-size'] = $field['acfe_flexible_modal']['acfe_flexible_modal_size'];
|
282 |
|
283 |
// Title
|
284 |
+
if(!empty($field['acfe_flexible_modal']['acfe_flexible_modal_title'])){
|
285 |
$wrapper['data-acfe-flexible-modal-title'] = $field['acfe_flexible_modal']['acfe_flexible_modal_title'];
|
286 |
+
}
|
287 |
|
288 |
return $wrapper;
|
289 |
|
290 |
}
|
291 |
|
292 |
+
|
293 |
+
/**
|
294 |
+
* label_atts
|
295 |
+
*
|
296 |
+
* @param $atts
|
297 |
+
* @param $layout
|
298 |
+
* @param $field
|
299 |
+
*
|
300 |
+
* @return mixed
|
301 |
+
*/
|
302 |
function label_atts($atts, $layout, $field){
|
303 |
|
304 |
// Category
|
305 |
+
if(!$field['acfe_flexible_modal']['acfe_flexible_modal_categories']){
|
306 |
return $atts;
|
307 |
+
}
|
308 |
|
309 |
$categories = $layout['acfe_flexible_category'];
|
310 |
|
311 |
// Compatibility
|
312 |
+
if(is_string($categories) && !empty($categories)){
|
313 |
$categories = explode('|', $categories);
|
314 |
$categories = array_map('trim', $categories);
|
315 |
}
|
316 |
|
317 |
+
$atts['data-acfe-flexible-category'] = acf_get_array($categories);
|
318 |
|
319 |
return $atts;
|
320 |
|
includes/fields/field-flexible-content-settings.php
CHANGED
@@ -1,12 +1,16 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_flexible_content_settings')):
|
7 |
|
8 |
class acfe_field_flexible_content_settings{
|
9 |
|
|
|
|
|
|
|
10 |
function __construct(){
|
11 |
|
12 |
// Hooks
|
@@ -22,6 +26,14 @@ class acfe_field_flexible_content_settings{
|
|
22 |
|
23 |
}
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
function defaults_field($field){
|
26 |
|
27 |
$field['acfe_flexible_layouts_settings'] = false;
|
@@ -30,6 +42,14 @@ class acfe_field_flexible_content_settings{
|
|
30 |
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
function defaults_layout($layout){
|
34 |
|
35 |
$layout['acfe_flexible_settings'] = false;
|
@@ -39,6 +59,12 @@ class acfe_field_flexible_content_settings{
|
|
39 |
|
40 |
}
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
function render_field_settings($field){
|
43 |
|
44 |
acf_render_field_setting($field, array(
|
@@ -65,10 +91,19 @@ class acfe_field_flexible_content_settings{
|
|
65 |
|
66 |
}
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
function render_layout_settings($flexible, $layout, $prefix){
|
69 |
|
70 |
-
if(!acf_maybe_get($flexible, 'acfe_flexible_layouts_settings'))
|
71 |
return;
|
|
|
72 |
|
73 |
acf_disable_filters();
|
74 |
|
@@ -143,11 +178,21 @@ class acfe_field_flexible_content_settings{
|
|
143 |
|
144 |
}
|
145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
function load_fields($fields, $field){
|
147 |
|
148 |
// Check setting
|
149 |
-
if(!acf_maybe_get($field, 'acfe_flexible_layouts_settings'))
|
150 |
return $fields;
|
|
|
151 |
|
152 |
// Loop
|
153 |
foreach($field['layouts'] as $i => $layout){
|
@@ -156,8 +201,9 @@ class acfe_field_flexible_content_settings{
|
|
156 |
$field_groups = acf_get_array($field_groups);
|
157 |
|
158 |
// Check
|
159 |
-
if(empty($field_groups))
|
160 |
continue;
|
|
|
161 |
|
162 |
// Vars
|
163 |
$key = "field_{$layout['key']}_settings";
|
@@ -194,6 +240,18 @@ class acfe_field_flexible_content_settings{
|
|
194 |
|
195 |
}
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
function prepare_layout($layout, $field, $i, $value, $prefix){
|
198 |
|
199 |
if(empty($layout['sub_fields']) || !$field['acfe_flexible_layouts_settings'])
|
@@ -229,10 +287,21 @@ class acfe_field_flexible_content_settings{
|
|
229 |
|
230 |
}
|
231 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
function layout_icons($icons, $layout, $field){
|
233 |
|
234 |
-
if(!acf_maybe_get($field, 'acfe_flexible_layouts_settings') || !acf_maybe_get($layout, 'acfe_flexible_settings'))
|
235 |
return $icons;
|
|
|
236 |
|
237 |
$icons = array_merge($icons, array(
|
238 |
'settings' => '<a class="acf-icon small acf-js-tooltip acfe-flexible-icon dashicons dashicons-admin-generic" href="#" title="Settings" data-acfe-flexible-settings="' . $layout['name'] . '"></a>'
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_flexible_content_settings')):
|
8 |
|
9 |
class acfe_field_flexible_content_settings{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
// Hooks
|
26 |
|
27 |
}
|
28 |
|
29 |
+
|
30 |
+
/**
|
31 |
+
* defaults_field
|
32 |
+
*
|
33 |
+
* @param $field
|
34 |
+
*
|
35 |
+
* @return mixed
|
36 |
+
*/
|
37 |
function defaults_field($field){
|
38 |
|
39 |
$field['acfe_flexible_layouts_settings'] = false;
|
42 |
|
43 |
}
|
44 |
|
45 |
+
|
46 |
+
/**
|
47 |
+
* defaults_layout
|
48 |
+
*
|
49 |
+
* @param $layout
|
50 |
+
*
|
51 |
+
* @return mixed
|
52 |
+
*/
|
53 |
function defaults_layout($layout){
|
54 |
|
55 |
$layout['acfe_flexible_settings'] = false;
|
59 |
|
60 |
}
|
61 |
|
62 |
+
|
63 |
+
/**
|
64 |
+
* render_field_settings
|
65 |
+
*
|
66 |
+
* @param $field
|
67 |
+
*/
|
68 |
function render_field_settings($field){
|
69 |
|
70 |
acf_render_field_setting($field, array(
|
91 |
|
92 |
}
|
93 |
|
94 |
+
|
95 |
+
/**
|
96 |
+
* render_layout_settings
|
97 |
+
*
|
98 |
+
* @param $flexible
|
99 |
+
* @param $layout
|
100 |
+
* @param $prefix
|
101 |
+
*/
|
102 |
function render_layout_settings($flexible, $layout, $prefix){
|
103 |
|
104 |
+
if(!acf_maybe_get($flexible, 'acfe_flexible_layouts_settings')){
|
105 |
return;
|
106 |
+
}
|
107 |
|
108 |
acf_disable_filters();
|
109 |
|
178 |
|
179 |
}
|
180 |
|
181 |
+
|
182 |
+
/**
|
183 |
+
* load_fields
|
184 |
+
*
|
185 |
+
* @param $fields
|
186 |
+
* @param $field
|
187 |
+
*
|
188 |
+
* @return mixed
|
189 |
+
*/
|
190 |
function load_fields($fields, $field){
|
191 |
|
192 |
// Check setting
|
193 |
+
if(!acf_maybe_get($field, 'acfe_flexible_layouts_settings')){
|
194 |
return $fields;
|
195 |
+
}
|
196 |
|
197 |
// Loop
|
198 |
foreach($field['layouts'] as $i => $layout){
|
201 |
$field_groups = acf_get_array($field_groups);
|
202 |
|
203 |
// Check
|
204 |
+
if(empty($field_groups)){
|
205 |
continue;
|
206 |
+
}
|
207 |
|
208 |
// Vars
|
209 |
$key = "field_{$layout['key']}_settings";
|
240 |
|
241 |
}
|
242 |
|
243 |
+
|
244 |
+
/**
|
245 |
+
* prepare_layout
|
246 |
+
*
|
247 |
+
* @param $layout
|
248 |
+
* @param $field
|
249 |
+
* @param $i
|
250 |
+
* @param $value
|
251 |
+
* @param $prefix
|
252 |
+
*
|
253 |
+
* @return mixed
|
254 |
+
*/
|
255 |
function prepare_layout($layout, $field, $i, $value, $prefix){
|
256 |
|
257 |
if(empty($layout['sub_fields']) || !$field['acfe_flexible_layouts_settings'])
|
287 |
|
288 |
}
|
289 |
|
290 |
+
|
291 |
+
/**
|
292 |
+
* layout_icons
|
293 |
+
*
|
294 |
+
* @param $icons
|
295 |
+
* @param $layout
|
296 |
+
* @param $field
|
297 |
+
*
|
298 |
+
* @return mixed
|
299 |
+
*/
|
300 |
function layout_icons($icons, $layout, $field){
|
301 |
|
302 |
+
if(!acf_maybe_get($field, 'acfe_flexible_layouts_settings') || !acf_maybe_get($layout, 'acfe_flexible_settings')){
|
303 |
return $icons;
|
304 |
+
}
|
305 |
|
306 |
$icons = array_merge($icons, array(
|
307 |
'settings' => '<a class="acf-icon small acf-js-tooltip acfe-flexible-icon dashicons dashicons-admin-generic" href="#" title="Settings" data-acfe-flexible-settings="' . $layout['name'] . '"></a>'
|
includes/fields/field-flexible-content-state.php
CHANGED
@@ -1,12 +1,16 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_flexible_content_state')):
|
7 |
|
8 |
class acfe_field_flexible_content_state{
|
9 |
|
|
|
|
|
|
|
10 |
function __construct(){
|
11 |
|
12 |
// Hooks
|
@@ -22,6 +26,14 @@ class acfe_field_flexible_content_state{
|
|
22 |
|
23 |
}
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
function defaults_field($field){
|
26 |
|
27 |
$field['acfe_flexible_layouts_state'] = false;
|
@@ -30,6 +42,12 @@ class acfe_field_flexible_content_state{
|
|
30 |
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
function render_field_settings($field){
|
34 |
|
35 |
// Layouts: Force State
|
@@ -66,10 +84,19 @@ class acfe_field_flexible_content_state{
|
|
66 |
|
67 |
}
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
function validate_state($field){
|
70 |
|
71 |
-
if(!acf_maybe_get($field, 'acfe_flexible_layouts_remove_collapse'))
|
72 |
return $field;
|
|
|
73 |
|
74 |
$field['acfe_flexible_layouts_state'] = 'force_open';
|
75 |
|
@@ -77,11 +104,21 @@ class acfe_field_flexible_content_state{
|
|
77 |
|
78 |
}
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
function wrapper_attributes($wrapper, $field){
|
81 |
|
82 |
// Check setting
|
83 |
-
if(($field['acfe_flexible_layouts_state'] !== 'open' && $field['acfe_flexible_layouts_state'] !== 'force_open') || $field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled'])
|
84 |
return $wrapper;
|
|
|
85 |
|
86 |
$wrapper['data-acfe-flexible-open'] = 1;
|
87 |
|
@@ -89,14 +126,26 @@ class acfe_field_flexible_content_state{
|
|
89 |
|
90 |
}
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
function layout_div($div, $layout, $field){
|
93 |
|
94 |
-
if($field['acfe_flexible_layouts_state'] !== 'collapse')
|
95 |
return $div;
|
|
|
96 |
|
97 |
// Already in class
|
98 |
-
if(in_array('-collapsed', explode(' ', $div['class'])))
|
99 |
return $div;
|
|
|
100 |
|
101 |
$div['class'] .= ' -collapsed';
|
102 |
|
@@ -104,14 +153,26 @@ class acfe_field_flexible_content_state{
|
|
104 |
|
105 |
}
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
function layout_placeholder($placeholder, $layout, $field){
|
108 |
|
109 |
-
if($field['acfe_flexible_layouts_state'] === 'collapse' || $field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled'])
|
110 |
return $placeholder;
|
|
|
111 |
|
112 |
// Already in class
|
113 |
-
if(in_array('acf-hidden', explode(' ', $placeholder['class'])))
|
114 |
return $placeholder;
|
|
|
115 |
|
116 |
$placeholder['class'] .= ' acf-hidden';
|
117 |
|
@@ -119,10 +180,21 @@ class acfe_field_flexible_content_state{
|
|
119 |
|
120 |
}
|
121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
function layout_handle($handle, $layout, $field){
|
123 |
|
124 |
-
if($field['acfe_flexible_layouts_state'] !== 'force_open')
|
125 |
return $handle;
|
|
|
126 |
|
127 |
acfe_unset($handle, 'data-name');
|
128 |
|
@@ -130,10 +202,21 @@ class acfe_field_flexible_content_state{
|
|
130 |
|
131 |
}
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
function layout_icons($icons, $layout, $field){
|
134 |
|
135 |
-
if($field['acfe_flexible_layouts_state'] !== 'force_open')
|
136 |
return $icons;
|
|
|
137 |
|
138 |
acfe_unset($icons, 'collapse');
|
139 |
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_flexible_content_state')):
|
8 |
|
9 |
class acfe_field_flexible_content_state{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
// Hooks
|
26 |
|
27 |
}
|
28 |
|
29 |
+
|
30 |
+
/**
|
31 |
+
* defaults_field
|
32 |
+
*
|
33 |
+
* @param $field
|
34 |
+
*
|
35 |
+
* @return mixed
|
36 |
+
*/
|
37 |
function defaults_field($field){
|
38 |
|
39 |
$field['acfe_flexible_layouts_state'] = false;
|
42 |
|
43 |
}
|
44 |
|
45 |
+
|
46 |
+
/**
|
47 |
+
* render_field_settings
|
48 |
+
*
|
49 |
+
* @param $field
|
50 |
+
*/
|
51 |
function render_field_settings($field){
|
52 |
|
53 |
// Layouts: Force State
|
84 |
|
85 |
}
|
86 |
|
87 |
+
|
88 |
+
/**
|
89 |
+
* validate_state
|
90 |
+
*
|
91 |
+
* @param $field
|
92 |
+
*
|
93 |
+
* @return mixed
|
94 |
+
*/
|
95 |
function validate_state($field){
|
96 |
|
97 |
+
if(!acf_maybe_get($field, 'acfe_flexible_layouts_remove_collapse')){
|
98 |
return $field;
|
99 |
+
}
|
100 |
|
101 |
$field['acfe_flexible_layouts_state'] = 'force_open';
|
102 |
|
104 |
|
105 |
}
|
106 |
|
107 |
+
|
108 |
+
/**
|
109 |
+
* wrapper_attributes
|
110 |
+
*
|
111 |
+
* @param $wrapper
|
112 |
+
* @param $field
|
113 |
+
*
|
114 |
+
* @return mixed
|
115 |
+
*/
|
116 |
function wrapper_attributes($wrapper, $field){
|
117 |
|
118 |
// Check setting
|
119 |
+
if(($field['acfe_flexible_layouts_state'] !== 'open' && $field['acfe_flexible_layouts_state'] !== 'force_open') || $field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled']){
|
120 |
return $wrapper;
|
121 |
+
}
|
122 |
|
123 |
$wrapper['data-acfe-flexible-open'] = 1;
|
124 |
|
126 |
|
127 |
}
|
128 |
|
129 |
+
|
130 |
+
/**
|
131 |
+
* layout_div
|
132 |
+
*
|
133 |
+
* @param $div
|
134 |
+
* @param $layout
|
135 |
+
* @param $field
|
136 |
+
*
|
137 |
+
* @return mixed
|
138 |
+
*/
|
139 |
function layout_div($div, $layout, $field){
|
140 |
|
141 |
+
if($field['acfe_flexible_layouts_state'] !== 'collapse'){
|
142 |
return $div;
|
143 |
+
}
|
144 |
|
145 |
// Already in class
|
146 |
+
if(in_array('-collapsed', explode(' ', $div['class']))){
|
147 |
return $div;
|
148 |
+
}
|
149 |
|
150 |
$div['class'] .= ' -collapsed';
|
151 |
|
153 |
|
154 |
}
|
155 |
|
156 |
+
|
157 |
+
/**
|
158 |
+
* layout_placeholder
|
159 |
+
*
|
160 |
+
* @param $placeholder
|
161 |
+
* @param $layout
|
162 |
+
* @param $field
|
163 |
+
*
|
164 |
+
* @return mixed
|
165 |
+
*/
|
166 |
function layout_placeholder($placeholder, $layout, $field){
|
167 |
|
168 |
+
if($field['acfe_flexible_layouts_state'] === 'collapse' || $field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled']){
|
169 |
return $placeholder;
|
170 |
+
}
|
171 |
|
172 |
// Already in class
|
173 |
+
if(in_array('acf-hidden', explode(' ', $placeholder['class']))){
|
174 |
return $placeholder;
|
175 |
+
}
|
176 |
|
177 |
$placeholder['class'] .= ' acf-hidden';
|
178 |
|
180 |
|
181 |
}
|
182 |
|
183 |
+
|
184 |
+
/**
|
185 |
+
* layout_handle
|
186 |
+
*
|
187 |
+
* @param $handle
|
188 |
+
* @param $layout
|
189 |
+
* @param $field
|
190 |
+
*
|
191 |
+
* @return mixed
|
192 |
+
*/
|
193 |
function layout_handle($handle, $layout, $field){
|
194 |
|
195 |
+
if($field['acfe_flexible_layouts_state'] !== 'force_open'){
|
196 |
return $handle;
|
197 |
+
}
|
198 |
|
199 |
acfe_unset($handle, 'data-name');
|
200 |
|
202 |
|
203 |
}
|
204 |
|
205 |
+
|
206 |
+
/**
|
207 |
+
* layout_icons
|
208 |
+
*
|
209 |
+
* @param $icons
|
210 |
+
* @param $layout
|
211 |
+
* @param $field
|
212 |
+
*
|
213 |
+
* @return mixed
|
214 |
+
*/
|
215 |
function layout_icons($icons, $layout, $field){
|
216 |
|
217 |
+
if($field['acfe_flexible_layouts_state'] !== 'force_open'){
|
218 |
return $icons;
|
219 |
+
}
|
220 |
|
221 |
acfe_unset($icons, 'collapse');
|
222 |
|
includes/fields/field-flexible-content-thumbnail.php
CHANGED
@@ -1,12 +1,16 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_flexible_content_thumbnail')):
|
7 |
|
8 |
class acfe_field_flexible_content_thumbnail{
|
9 |
|
|
|
|
|
|
|
10 |
function __construct(){
|
11 |
|
12 |
// Hooks
|
@@ -18,12 +22,19 @@ class acfe_field_flexible_content_thumbnail{
|
|
18 |
add_filter('acfe/flexible/validate_field', array($this, 'validate_thumbnail'));
|
19 |
add_filter('acfe/flexible/wrapper_attributes', array($this, 'wrapper_attributes'), 10, 2);
|
20 |
add_filter('acfe/flexible/layouts/label_prepend', array($this, 'label_prepend'), 10, 3);
|
21 |
-
add_filter('acfe/flexible/layouts/label_atts', array($this, 'label_atts'), 20, 3);
|
22 |
|
23 |
add_filter('acf/fields/flexible_content/layout_title', array($this, 'layout_title'), 0, 4);
|
24 |
|
25 |
}
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
function defaults_field($field){
|
28 |
|
29 |
$field['acfe_flexible_layouts_thumbnails'] = false;
|
@@ -32,6 +43,14 @@ class acfe_field_flexible_content_thumbnail{
|
|
32 |
|
33 |
}
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
function defaults_layout($layout){
|
36 |
|
37 |
$layout['acfe_flexible_thumbnail'] = false;
|
@@ -40,6 +59,12 @@ class acfe_field_flexible_content_thumbnail{
|
|
40 |
|
41 |
}
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
function render_field_settings($field){
|
44 |
|
45 |
acf_render_field_setting($field, array(
|
@@ -66,10 +91,19 @@ class acfe_field_flexible_content_thumbnail{
|
|
66 |
|
67 |
}
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
function render_layout_settings($flexible, $layout, $prefix){
|
70 |
|
71 |
-
if(!acf_maybe_get($flexible, 'acfe_flexible_layouts_thumbnails'))
|
72 |
return;
|
|
|
73 |
|
74 |
// Title
|
75 |
echo '</li>';
|
@@ -98,10 +132,19 @@ class acfe_field_flexible_content_thumbnail{
|
|
98 |
|
99 |
}
|
100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
function validate_thumbnail($field){
|
102 |
|
103 |
-
if(acfe_is_admin_screen())
|
104 |
return $field;
|
|
|
105 |
|
106 |
// Vars
|
107 |
$name = $field['name'];
|
@@ -134,11 +177,21 @@ class acfe_field_flexible_content_thumbnail{
|
|
134 |
|
135 |
}
|
136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
function wrapper_attributes($wrapper, $field){
|
138 |
|
139 |
// Check setting
|
140 |
-
if(!acf_maybe_get($field, 'acfe_flexible_layouts_thumbnails'))
|
141 |
return $wrapper;
|
|
|
142 |
|
143 |
$wrapper['data-acfe-flexible-thumbnails'] = 1;
|
144 |
|
@@ -146,10 +199,21 @@ class acfe_field_flexible_content_thumbnail{
|
|
146 |
|
147 |
}
|
148 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
function label_prepend($prepend, $layout, $field){
|
150 |
|
151 |
-
if(!acf_maybe_get($field, 'acfe_flexible_layouts_thumbnails'))
|
152 |
return $prepend;
|
|
|
153 |
|
154 |
$prepend = array(
|
155 |
'class' => 'acfe-flexible-layout-thumbnail',
|
@@ -188,23 +252,23 @@ class acfe_field_flexible_content_thumbnail{
|
|
188 |
$prepend['class'] .= ' acfe-flexible-layout-thumbnail-not-found';
|
189 |
}
|
190 |
|
191 |
-
$prepend = '<div ' .
|
192 |
|
193 |
return $prepend;
|
194 |
|
195 |
}
|
196 |
|
197 |
-
function label_atts($atts, $layout, $field){
|
198 |
-
|
199 |
-
if(!acf_maybe_get($field, 'acfe_flexible_layouts_thumbnails'))
|
200 |
-
return $atts;
|
201 |
-
|
202 |
-
acfe_unset($atts, 'class');
|
203 |
-
|
204 |
-
return $atts;
|
205 |
-
|
206 |
-
}
|
207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
function layout_title($title, $field, $layout, $i){
|
209 |
|
210 |
$title = preg_replace('#<div class="acfe-flexible-layout-thumbnail(.*?)</div>#', '', $title);
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_flexible_content_thumbnail')):
|
8 |
|
9 |
class acfe_field_flexible_content_thumbnail{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
// Hooks
|
22 |
add_filter('acfe/flexible/validate_field', array($this, 'validate_thumbnail'));
|
23 |
add_filter('acfe/flexible/wrapper_attributes', array($this, 'wrapper_attributes'), 10, 2);
|
24 |
add_filter('acfe/flexible/layouts/label_prepend', array($this, 'label_prepend'), 10, 3);
|
|
|
25 |
|
26 |
add_filter('acf/fields/flexible_content/layout_title', array($this, 'layout_title'), 0, 4);
|
27 |
|
28 |
}
|
29 |
|
30 |
+
|
31 |
+
/**
|
32 |
+
* defaults_field
|
33 |
+
*
|
34 |
+
* @param $field
|
35 |
+
*
|
36 |
+
* @return mixed
|
37 |
+
*/
|
38 |
function defaults_field($field){
|
39 |
|
40 |
$field['acfe_flexible_layouts_thumbnails'] = false;
|
43 |
|
44 |
}
|
45 |
|
46 |
+
|
47 |
+
/**
|
48 |
+
* defaults_layout
|
49 |
+
*
|
50 |
+
* @param $layout
|
51 |
+
*
|
52 |
+
* @return mixed
|
53 |
+
*/
|
54 |
function defaults_layout($layout){
|
55 |
|
56 |
$layout['acfe_flexible_thumbnail'] = false;
|
59 |
|
60 |
}
|
61 |
|
62 |
+
|
63 |
+
/**
|
64 |
+
* render_field_settings
|
65 |
+
*
|
66 |
+
* @param $field
|
67 |
+
*/
|
68 |
function render_field_settings($field){
|
69 |
|
70 |
acf_render_field_setting($field, array(
|
91 |
|
92 |
}
|
93 |
|
94 |
+
|
95 |
+
/**
|
96 |
+
* render_layout_settings
|
97 |
+
*
|
98 |
+
* @param $flexible
|
99 |
+
* @param $layout
|
100 |
+
* @param $prefix
|
101 |
+
*/
|
102 |
function render_layout_settings($flexible, $layout, $prefix){
|
103 |
|
104 |
+
if(!acf_maybe_get($flexible, 'acfe_flexible_layouts_thumbnails')){
|
105 |
return;
|
106 |
+
}
|
107 |
|
108 |
// Title
|
109 |
echo '</li>';
|
132 |
|
133 |
}
|
134 |
|
135 |
+
|
136 |
+
/**
|
137 |
+
* validate_thumbnail
|
138 |
+
*
|
139 |
+
* @param $field
|
140 |
+
*
|
141 |
+
* @return mixed
|
142 |
+
*/
|
143 |
function validate_thumbnail($field){
|
144 |
|
145 |
+
if(acfe_is_admin_screen()){
|
146 |
return $field;
|
147 |
+
}
|
148 |
|
149 |
// Vars
|
150 |
$name = $field['name'];
|
177 |
|
178 |
}
|
179 |
|
180 |
+
|
181 |
+
/**
|
182 |
+
* wrapper_attributes
|
183 |
+
*
|
184 |
+
* @param $wrapper
|
185 |
+
* @param $field
|
186 |
+
*
|
187 |
+
* @return mixed
|
188 |
+
*/
|
189 |
function wrapper_attributes($wrapper, $field){
|
190 |
|
191 |
// Check setting
|
192 |
+
if(!acf_maybe_get($field, 'acfe_flexible_layouts_thumbnails')){
|
193 |
return $wrapper;
|
194 |
+
}
|
195 |
|
196 |
$wrapper['data-acfe-flexible-thumbnails'] = 1;
|
197 |
|
199 |
|
200 |
}
|
201 |
|
202 |
+
|
203 |
+
/**
|
204 |
+
* label_prepend
|
205 |
+
*
|
206 |
+
* @param $prepend
|
207 |
+
* @param $layout
|
208 |
+
* @param $field
|
209 |
+
*
|
210 |
+
* @return mixed|string
|
211 |
+
*/
|
212 |
function label_prepend($prepend, $layout, $field){
|
213 |
|
214 |
+
if(!acf_maybe_get($field, 'acfe_flexible_layouts_thumbnails')){
|
215 |
return $prepend;
|
216 |
+
}
|
217 |
|
218 |
$prepend = array(
|
219 |
'class' => 'acfe-flexible-layout-thumbnail',
|
252 |
$prepend['class'] .= ' acfe-flexible-layout-thumbnail-not-found';
|
253 |
}
|
254 |
|
255 |
+
$prepend = '<div ' . acf_esc_attrs($prepend) . '></div>';
|
256 |
|
257 |
return $prepend;
|
258 |
|
259 |
}
|
260 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
|
262 |
+
/**
|
263 |
+
* layout_title
|
264 |
+
*
|
265 |
+
* @param $title
|
266 |
+
* @param $field
|
267 |
+
* @param $layout
|
268 |
+
* @param $i
|
269 |
+
*
|
270 |
+
* @return array|string|string[]|null
|
271 |
+
*/
|
272 |
function layout_title($title, $field, $layout, $i){
|
273 |
|
274 |
$title = preg_replace('#<div class="acfe-flexible-layout-thumbnail(.*?)</div>#', '', $title);
|
includes/fields/field-flexible-content.php
CHANGED
@@ -1,53 +1,59 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_flexible_content')):
|
7 |
|
8 |
-
class acfe_field_flexible_content{
|
9 |
-
|
10 |
-
var $instance;
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
// Flexible Settings
|
18 |
-
add_action('acf/render_field_settings/type=flexible_content', array($this, 'render_field_settings'), 0);
|
19 |
-
add_action('acf/render_field', array($this, 'render_field_layouts_settings_label'), 0);
|
20 |
-
add_action('acf/render_field', array($this, 'render_field_layouts_settings'), 10);
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
add_action('acf/render_field/type=flexible_content', array($this, 'render_field'), 9);
|
30 |
-
add_filter('acf/fields/flexible_content/layout_title', array($this, 'prepare_layout_title'), 0, 4);
|
31 |
|
32 |
}
|
33 |
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
36 |
*/
|
37 |
-
function
|
38 |
|
39 |
// Action
|
40 |
do_action("acfe/flexible/render_field_settings", $field);
|
41 |
|
42 |
}
|
43 |
|
44 |
-
|
45 |
-
|
|
|
|
|
|
|
46 |
*/
|
47 |
-
function
|
48 |
|
49 |
-
|
|
|
50 |
return;
|
|
|
51 |
|
52 |
echo '</li>';
|
53 |
|
@@ -61,13 +67,18 @@ class acfe_field_flexible_content{
|
|
61 |
|
62 |
}
|
63 |
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
66 |
*/
|
67 |
-
function
|
68 |
|
69 |
-
|
|
|
70 |
return;
|
|
|
71 |
|
72 |
// Prefix
|
73 |
$prefix = $field['prefix'];
|
@@ -83,8 +94,9 @@ class acfe_field_flexible_content{
|
|
83 |
// Profit!
|
84 |
$flexible = acf_get_field($_field_id);
|
85 |
|
86 |
-
if(!acf_maybe_get($flexible, 'layouts'))
|
87 |
return;
|
|
|
88 |
|
89 |
$layout = $flexible['layouts'][$_layout_key];
|
90 |
|
@@ -103,8 +115,13 @@ class acfe_field_flexible_content{
|
|
103 |
|
104 |
}
|
105 |
|
106 |
-
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
108 |
*/
|
109 |
function validate_field($field){
|
110 |
|
@@ -160,8 +177,13 @@ class acfe_field_flexible_content{
|
|
160 |
|
161 |
}
|
162 |
|
163 |
-
|
164 |
-
|
|
|
|
|
|
|
|
|
|
|
165 |
*/
|
166 |
function prepare_field($field){
|
167 |
|
@@ -184,7 +206,7 @@ class acfe_field_flexible_content{
|
|
184 |
$prepend = apply_filters("acfe/flexible/layouts/label_prepend/key={$key}&layout={$l_name}", $prepend, $layout, $field);
|
185 |
|
186 |
// Atts
|
187 |
-
$atts = array(
|
188 |
$atts = apply_filters("acfe/flexible/layouts/label_atts", $atts, $layout, $field);
|
189 |
$atts = apply_filters("acfe/flexible/layouts/label_atts/name={$name}", $atts, $layout, $field);
|
190 |
$atts = apply_filters("acfe/flexible/layouts/label_atts/key={$key}", $atts, $layout, $field);
|
@@ -193,7 +215,7 @@ class acfe_field_flexible_content{
|
|
193 |
$atts = apply_filters("acfe/flexible/layouts/label_atts/key={$key}&layout={$l_name}", $atts, $layout, $field);
|
194 |
|
195 |
// Label
|
196 |
-
$layout['label'] = $prepend . '<span ' .
|
197 |
|
198 |
}
|
199 |
|
@@ -201,17 +223,25 @@ class acfe_field_flexible_content{
|
|
201 |
|
202 |
}
|
203 |
|
204 |
-
|
205 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
*/
|
207 |
function load_fields($fields, $field){
|
208 |
|
209 |
-
if(acfe_is_admin_screen())
|
210 |
return $fields;
|
|
|
211 |
|
212 |
// check layouts
|
213 |
-
if(empty($field['layouts']))
|
214 |
return $fields;
|
|
|
215 |
|
216 |
// vars
|
217 |
$name = $field['name'];
|
@@ -225,10 +255,16 @@ class acfe_field_flexible_content{
|
|
225 |
|
226 |
}
|
227 |
|
228 |
-
|
229 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
*/
|
231 |
-
function
|
232 |
|
233 |
$wrapper = apply_filters('acfe/flexible/wrapper_attributes', $wrapper, $field);
|
234 |
|
@@ -236,8 +272,11 @@ class acfe_field_flexible_content{
|
|
236 |
|
237 |
}
|
238 |
|
239 |
-
|
240 |
-
|
|
|
|
|
|
|
241 |
*/
|
242 |
function render_field($field){
|
243 |
|
@@ -426,8 +465,14 @@ class acfe_field_flexible_content{
|
|
426 |
|
427 |
}
|
428 |
|
429 |
-
|
430 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
431 |
*/
|
432 |
function render_layout($field, $layout, $i, $value){
|
433 |
|
@@ -481,7 +526,7 @@ class acfe_field_flexible_content{
|
|
481 |
<?php acf_hidden_input(array('name' => $prefix.'[acf_fc_layout]', 'value' => $layout['name'])); ?>
|
482 |
|
483 |
<div <?php echo acf_esc_attrs($handle); ?>>
|
484 |
-
<?php echo $this->
|
485 |
</div>
|
486 |
|
487 |
<?php
|
@@ -523,8 +568,127 @@ class acfe_field_flexible_content{
|
|
523 |
|
524 |
}
|
525 |
|
526 |
-
|
527 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
528 |
*/
|
529 |
function render_layout_fields($layout, $field, $i, $value, $prefix){
|
530 |
|
@@ -532,8 +696,9 @@ class acfe_field_flexible_content{
|
|
532 |
$sub_fields = $layout['sub_fields'];
|
533 |
$el = $layout['display'] === 'table' ? 'td' : 'div';
|
534 |
|
535 |
-
if(empty($sub_fields))
|
536 |
return;
|
|
|
537 |
|
538 |
if($layout['display'] == 'table'): ?>
|
539 |
<table class="acf-table">
|
@@ -627,8 +792,13 @@ class acfe_field_flexible_content{
|
|
627 |
|
628 |
}
|
629 |
|
630 |
-
|
631 |
-
|
|
|
|
|
|
|
|
|
|
|
632 |
*/
|
633 |
function prepare_layout_editor($field){
|
634 |
|
@@ -638,24 +808,13 @@ class acfe_field_flexible_content{
|
|
638 |
|
639 |
}
|
640 |
|
641 |
-
/*
|
642 |
-
* Prepare Layout Title
|
643 |
-
*/
|
644 |
-
function prepare_layout_title($title, $field, $layout, $i){
|
645 |
-
|
646 |
-
return '<span class="acfe-layout-title-text">' . $title . '</span>';
|
647 |
-
|
648 |
-
}
|
649 |
-
|
650 |
}
|
651 |
|
652 |
acf_new_instance('acfe_field_flexible_content');
|
653 |
|
654 |
endif;
|
655 |
|
656 |
-
|
657 |
-
* Includes
|
658 |
-
*/
|
659 |
acfe_include('includes/fields/field-flexible-content-actions.php');
|
660 |
acfe_include('includes/fields/field-flexible-content-async.php');
|
661 |
acfe_include('includes/fields/field-flexible-content-controls.php');
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_flexible_content')):
|
8 |
|
9 |
+
class acfe_field_flexible_content extends acfe_field_extend{
|
|
|
|
|
10 |
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
+
*/
|
14 |
+
function initialize(){
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
+
$this->name = 'flexible_content';
|
17 |
+
$this->replace = array(
|
18 |
+
'render_field',
|
19 |
+
);
|
20 |
+
|
21 |
+
$this->add_field_action('acf/render_field_settings', array($this, '_render_field_settings'), 0);
|
22 |
+
$this->add_action('acf/render_field', array($this, 'render_layout_label'), 0);
|
23 |
+
$this->add_action('acf/render_field', array($this, 'render_layout_settings'));
|
24 |
|
25 |
+
$this->replace_action('wp_ajax_acf/fields/flexible_content/layout_title', array($this, 'ajax_layout_title'));
|
26 |
+
$this->replace_action('wp_ajax_nopriv_acf/fields/flexible_content/layout_title', array($this, 'ajax_layout_title'));
|
|
|
|
|
27 |
|
28 |
}
|
29 |
|
30 |
+
|
31 |
+
/**
|
32 |
+
* _render_field_settings
|
33 |
+
*
|
34 |
+
* acf/render_field_settings/type=flexible_content:0
|
35 |
+
*
|
36 |
+
* @param $field
|
37 |
*/
|
38 |
+
function _render_field_settings($field){
|
39 |
|
40 |
// Action
|
41 |
do_action("acfe/flexible/render_field_settings", $field);
|
42 |
|
43 |
}
|
44 |
|
45 |
+
|
46 |
+
/**
|
47 |
+
* render_layout_label
|
48 |
+
*
|
49 |
+
* @param $field
|
50 |
*/
|
51 |
+
function render_layout_label($field){
|
52 |
|
53 |
+
// validate setting
|
54 |
+
if($field['_name'] !== 'label' || stripos($field['name'], '[layouts]') === false){
|
55 |
return;
|
56 |
+
}
|
57 |
|
58 |
echo '</li>';
|
59 |
|
67 |
|
68 |
}
|
69 |
|
70 |
+
|
71 |
+
/**
|
72 |
+
* render_layout_settings
|
73 |
+
*
|
74 |
+
* @param $field
|
75 |
*/
|
76 |
+
function render_layout_settings($field){
|
77 |
|
78 |
+
// validate setting
|
79 |
+
if($field['_name'] !== 'max' || stripos($field['name'], '[layouts]') === false){
|
80 |
return;
|
81 |
+
}
|
82 |
|
83 |
// Prefix
|
84 |
$prefix = $field['prefix'];
|
94 |
// Profit!
|
95 |
$flexible = acf_get_field($_field_id);
|
96 |
|
97 |
+
if(!acf_maybe_get($flexible, 'layouts')){
|
98 |
return;
|
99 |
+
}
|
100 |
|
101 |
$layout = $flexible['layouts'][$_layout_key];
|
102 |
|
115 |
|
116 |
}
|
117 |
|
118 |
+
|
119 |
+
/**
|
120 |
+
* validate_field
|
121 |
+
*
|
122 |
+
* @param $field
|
123 |
+
*
|
124 |
+
* @return mixed|null
|
125 |
*/
|
126 |
function validate_field($field){
|
127 |
|
177 |
|
178 |
}
|
179 |
|
180 |
+
|
181 |
+
/**
|
182 |
+
* prepare_field
|
183 |
+
*
|
184 |
+
* @param $field
|
185 |
+
*
|
186 |
+
* @return mixed
|
187 |
*/
|
188 |
function prepare_field($field){
|
189 |
|
206 |
$prepend = apply_filters("acfe/flexible/layouts/label_prepend/key={$key}&layout={$l_name}", $prepend, $layout, $field);
|
207 |
|
208 |
// Atts
|
209 |
+
$atts = array();
|
210 |
$atts = apply_filters("acfe/flexible/layouts/label_atts", $atts, $layout, $field);
|
211 |
$atts = apply_filters("acfe/flexible/layouts/label_atts/name={$name}", $atts, $layout, $field);
|
212 |
$atts = apply_filters("acfe/flexible/layouts/label_atts/key={$key}", $atts, $layout, $field);
|
215 |
$atts = apply_filters("acfe/flexible/layouts/label_atts/key={$key}&layout={$l_name}", $atts, $layout, $field);
|
216 |
|
217 |
// Label
|
218 |
+
$layout['label'] = $prepend . '<span ' . acf_esc_attrs($atts) . '>' . $layout['label'] . '</span>';
|
219 |
|
220 |
}
|
221 |
|
223 |
|
224 |
}
|
225 |
|
226 |
+
|
227 |
+
/**
|
228 |
+
* load_fields
|
229 |
+
*
|
230 |
+
* @param $fields
|
231 |
+
* @param $field
|
232 |
+
*
|
233 |
+
* @return mixed|null
|
234 |
*/
|
235 |
function load_fields($fields, $field){
|
236 |
|
237 |
+
if(acfe_is_admin_screen()){
|
238 |
return $fields;
|
239 |
+
}
|
240 |
|
241 |
// check layouts
|
242 |
+
if(empty($field['layouts'])){
|
243 |
return $fields;
|
244 |
+
}
|
245 |
|
246 |
// vars
|
247 |
$name = $field['name'];
|
255 |
|
256 |
}
|
257 |
|
258 |
+
|
259 |
+
/**
|
260 |
+
* field_wrapper_attributes
|
261 |
+
*
|
262 |
+
* @param $wrapper
|
263 |
+
* @param $field
|
264 |
+
*
|
265 |
+
* @return mixed|null
|
266 |
*/
|
267 |
+
function field_wrapper_attributes($wrapper, $field){
|
268 |
|
269 |
$wrapper = apply_filters('acfe/flexible/wrapper_attributes', $wrapper, $field);
|
270 |
|
272 |
|
273 |
}
|
274 |
|
275 |
+
|
276 |
+
/**
|
277 |
+
* render_field
|
278 |
+
*
|
279 |
+
* @param $field
|
280 |
*/
|
281 |
function render_field($field){
|
282 |
|
465 |
|
466 |
}
|
467 |
|
468 |
+
|
469 |
+
/**
|
470 |
+
* render_layout
|
471 |
+
*
|
472 |
+
* @param $field
|
473 |
+
* @param $layout
|
474 |
+
* @param $i
|
475 |
+
* @param $value
|
476 |
*/
|
477 |
function render_layout($field, $layout, $i, $value){
|
478 |
|
526 |
<?php acf_hidden_input(array('name' => $prefix.'[acf_fc_layout]', 'value' => $layout['name'])); ?>
|
527 |
|
528 |
<div <?php echo acf_esc_attrs($handle); ?>>
|
529 |
+
<?php echo $this->get_layout_title($field, $layout, $i, $value); ?>
|
530 |
</div>
|
531 |
|
532 |
<?php
|
568 |
|
569 |
}
|
570 |
|
571 |
+
|
572 |
+
/**
|
573 |
+
* ajax_layout_title
|
574 |
+
*
|
575 |
+
* wp_ajax_acf/fields/flexible_content/layout_title
|
576 |
+
*/
|
577 |
+
function ajax_layout_title(){
|
578 |
+
|
579 |
+
// options
|
580 |
+
$options = acf_parse_args($_POST, array(
|
581 |
+
'post_id' => 0,
|
582 |
+
'i' => 0,
|
583 |
+
'field_key' => '',
|
584 |
+
'nonce' => '',
|
585 |
+
'layout' => '',
|
586 |
+
'value' => array(),
|
587 |
+
));
|
588 |
+
|
589 |
+
// load field
|
590 |
+
$field = acf_get_field($options['field_key']);
|
591 |
+
|
592 |
+
if(!$field){
|
593 |
+
die();
|
594 |
+
}
|
595 |
+
|
596 |
+
// vars
|
597 |
+
$layout = $this->instance->get_layout($options['layout'], $field);
|
598 |
+
|
599 |
+
if(!$layout){
|
600 |
+
die();
|
601 |
+
}
|
602 |
+
|
603 |
+
// title
|
604 |
+
$title = $this->get_layout_title($field, $layout, $options['i'], $options['value']);
|
605 |
+
|
606 |
+
// echo
|
607 |
+
echo $title;
|
608 |
+
die();
|
609 |
+
|
610 |
+
}
|
611 |
+
|
612 |
+
|
613 |
+
/**
|
614 |
+
* get_layout_title
|
615 |
+
*
|
616 |
+
* @param $field
|
617 |
+
* @param $layout
|
618 |
+
* @param $i
|
619 |
+
* @param $value
|
620 |
+
*
|
621 |
+
* @return string
|
622 |
+
*/
|
623 |
+
function get_layout_title($field, $layout, $i, $value){
|
624 |
+
|
625 |
+
// vars
|
626 |
+
$rows = array();
|
627 |
+
$rows[ $i ] = $value;
|
628 |
+
|
629 |
+
// add loop
|
630 |
+
acf_add_loop(
|
631 |
+
array(
|
632 |
+
'selector' => $field['name'],
|
633 |
+
'name' => $field['name'],
|
634 |
+
'value' => $rows,
|
635 |
+
'field' => $field,
|
636 |
+
'i' => $i,
|
637 |
+
'post_id' => 0,
|
638 |
+
)
|
639 |
+
);
|
640 |
+
|
641 |
+
// vars
|
642 |
+
$_title = $layout['label'];
|
643 |
+
$title = $layout['label'];
|
644 |
+
|
645 |
+
// filters
|
646 |
+
$title = apply_filters("acf/fields/flexible_content/layout_title", $title, $field, $layout, $i);
|
647 |
+
$title = apply_filters("acf/fields/flexible_content/layout_title/name={$field['_name']}", $title, $field, $layout, $i);
|
648 |
+
$title = apply_filters("acf/fields/flexible_content/layout_title/key={$field['key']}", $title, $field, $layout, $i);
|
649 |
+
|
650 |
+
if(in_array('title', $field['acfe_flexible_add_actions'])){
|
651 |
+
|
652 |
+
// Get Layout Title
|
653 |
+
$value = get_sub_field('acfe_flexible_layout_title');
|
654 |
+
|
655 |
+
if(!empty($value)){
|
656 |
+
$title = wp_unslash($value);
|
657 |
+
}
|
658 |
+
|
659 |
+
$title = '<span class="acfe-layout-title-text">' . $title . '</span>';
|
660 |
+
|
661 |
+
}
|
662 |
+
|
663 |
+
$attrs = array(
|
664 |
+
'class' => 'acfe-layout-title'
|
665 |
+
);
|
666 |
+
|
667 |
+
$attrs = apply_filters("acf/fields/flexible_content/layout_attrs", $attrs, $field, $layout, $i);
|
668 |
+
$attrs = apply_filters("acf/fields/flexible_content/layout_attrs/name={$field['_name']}", $attrs, $field, $layout, $i);
|
669 |
+
$attrs = apply_filters("acf/fields/flexible_content/layout_attrs/key={$field['key']}", $attrs, $field, $layout, $i);
|
670 |
+
|
671 |
+
// remove loop
|
672 |
+
acf_remove_loop();
|
673 |
+
|
674 |
+
// prepend order
|
675 |
+
$order = is_numeric($i) ? $i + 1 : 0;
|
676 |
+
$title = '<span class="acf-fc-layout-order">' . $order . '</span> <span ' . acf_esc_attrs($attrs). '>' . acf_esc_html($title) . '</span>';
|
677 |
+
|
678 |
+
// return
|
679 |
+
return $title;
|
680 |
+
|
681 |
+
}
|
682 |
+
|
683 |
+
|
684 |
+
/**
|
685 |
+
* render_layout_fields
|
686 |
+
*
|
687 |
+
* @param $layout
|
688 |
+
* @param $field
|
689 |
+
* @param $i
|
690 |
+
* @param $value
|
691 |
+
* @param $prefix
|
692 |
*/
|
693 |
function render_layout_fields($layout, $field, $i, $value, $prefix){
|
694 |
|
696 |
$sub_fields = $layout['sub_fields'];
|
697 |
$el = $layout['display'] === 'table' ? 'td' : 'div';
|
698 |
|
699 |
+
if(empty($sub_fields)){
|
700 |
return;
|
701 |
+
}
|
702 |
|
703 |
if($layout['display'] == 'table'): ?>
|
704 |
<table class="acf-table">
|
792 |
|
793 |
}
|
794 |
|
795 |
+
|
796 |
+
/**
|
797 |
+
* prepare_layout_editor
|
798 |
+
*
|
799 |
+
* @param $field
|
800 |
+
*
|
801 |
+
* @return mixed
|
802 |
*/
|
803 |
function prepare_layout_editor($field){
|
804 |
|
808 |
|
809 |
}
|
810 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
811 |
}
|
812 |
|
813 |
acf_new_instance('acfe_field_flexible_content');
|
814 |
|
815 |
endif;
|
816 |
|
817 |
+
// includes
|
|
|
|
|
818 |
acfe_include('includes/fields/field-flexible-content-actions.php');
|
819 |
acfe_include('includes/fields/field-flexible-content-async.php');
|
820 |
acfe_include('includes/fields/field-flexible-content-controls.php');
|
includes/fields/field-forms.php
CHANGED
@@ -1,13 +1,17 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_forms')):
|
7 |
|
8 |
class acfe_field_forms extends acf_field{
|
9 |
|
10 |
-
|
|
|
|
|
|
|
11 |
|
12 |
$this->name = 'acfe_forms';
|
13 |
$this->label = __('Forms', 'acfe');
|
@@ -26,28 +30,23 @@ class acfe_field_forms extends acf_field{
|
|
26 |
'layout' => '',
|
27 |
'toggle' => 0,
|
28 |
'allow_custom' => 0,
|
|
|
29 |
'return_format' => 'name',
|
30 |
);
|
31 |
|
32 |
-
parent::__construct();
|
33 |
-
|
34 |
-
}
|
35 |
-
|
36 |
-
function prepare_field($field){
|
37 |
-
|
38 |
-
$field['choices'] = acfe_get_pretty_forms($field['forms']);
|
39 |
-
|
40 |
-
// Set Field Type
|
41 |
-
$field['type'] = $field['field_type'];
|
42 |
-
|
43 |
-
return $field;
|
44 |
-
|
45 |
}
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
function render_field_settings($field){
|
48 |
|
49 |
-
if(isset($field['default_value']))
|
50 |
$field['default_value'] = acf_encode_choices($field['default_value'], false);
|
|
|
51 |
|
52 |
// Allow Form
|
53 |
acf_render_field_setting($field, array(
|
@@ -414,51 +413,110 @@ class acfe_field_forms extends acf_field{
|
|
414 |
|
415 |
}
|
416 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
417 |
function update_field($field){
|
418 |
|
419 |
$field['default_value'] = acf_decode_choices($field['default_value'], true);
|
420 |
|
421 |
-
if($field['field_type'] === 'radio')
|
422 |
$field['default_value'] = acfe_unarray($field['default_value']);
|
|
|
423 |
|
424 |
return $field;
|
425 |
|
426 |
}
|
427 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
428 |
function format_value($value, $post_id, $field){
|
429 |
|
430 |
-
//
|
431 |
-
if(empty($value))
|
432 |
return $value;
|
|
|
433 |
|
434 |
-
//
|
435 |
$is_array = is_array($value);
|
436 |
$value = acf_get_array($value);
|
437 |
|
438 |
-
//
|
439 |
foreach($value as &$v){
|
440 |
|
441 |
-
//
|
442 |
$object = get_field('acfe_form_name', $v);
|
443 |
|
444 |
-
if(!$object || is_wp_error($object))
|
445 |
-
continue;
|
446 |
|
447 |
-
//
|
448 |
if($field['return_format'] === 'name'){
|
449 |
-
|
450 |
$v = $object;
|
451 |
-
|
452 |
}
|
453 |
|
454 |
}
|
455 |
|
456 |
-
//
|
457 |
if(!$is_array){
|
458 |
$value = acfe_unarray($value);
|
459 |
}
|
460 |
|
461 |
-
//
|
462 |
return $value;
|
463 |
|
464 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_forms')):
|
8 |
|
9 |
class acfe_field_forms extends acf_field{
|
10 |
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
+
*/
|
14 |
+
function initialize(){
|
15 |
|
16 |
$this->name = 'acfe_forms';
|
17 |
$this->label = __('Forms', 'acfe');
|
30 |
'layout' => '',
|
31 |
'toggle' => 0,
|
32 |
'allow_custom' => 0,
|
33 |
+
'other_choice' => 0,
|
34 |
'return_format' => 'name',
|
35 |
);
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
|
39 |
+
|
40 |
+
/**
|
41 |
+
* render_field_settings
|
42 |
+
*
|
43 |
+
* @param $field
|
44 |
+
*/
|
45 |
function render_field_settings($field){
|
46 |
|
47 |
+
if(isset($field['default_value'])){
|
48 |
$field['default_value'] = acf_encode_choices($field['default_value'], false);
|
49 |
+
}
|
50 |
|
51 |
// Allow Form
|
52 |
acf_render_field_setting($field, array(
|
413 |
|
414 |
}
|
415 |
|
416 |
+
|
417 |
+
/**
|
418 |
+
* update_field
|
419 |
+
*
|
420 |
+
* @param $field
|
421 |
+
*
|
422 |
+
* @return mixed
|
423 |
+
*/
|
424 |
function update_field($field){
|
425 |
|
426 |
$field['default_value'] = acf_decode_choices($field['default_value'], true);
|
427 |
|
428 |
+
if($field['field_type'] === 'radio'){
|
429 |
$field['default_value'] = acfe_unarray($field['default_value']);
|
430 |
+
}
|
431 |
|
432 |
return $field;
|
433 |
|
434 |
}
|
435 |
|
436 |
+
|
437 |
+
/**
|
438 |
+
* prepare_field
|
439 |
+
*
|
440 |
+
* @param $field
|
441 |
+
*
|
442 |
+
* @return mixed
|
443 |
+
*/
|
444 |
+
function prepare_field($field){
|
445 |
+
|
446 |
+
// field type
|
447 |
+
$type = $field['type'];
|
448 |
+
$field_type = $field['field_type'];
|
449 |
+
|
450 |
+
$field['type'] = $field_type;
|
451 |
+
$field['wrapper']['data-ftype'] = $type;
|
452 |
+
|
453 |
+
// choices
|
454 |
+
$field['choices'] = acfe_get_pretty_forms($field['forms']);
|
455 |
+
|
456 |
+
// allow custom
|
457 |
+
if($field['allow_custom']){
|
458 |
+
|
459 |
+
$value = acf_maybe_get($field, 'value');
|
460 |
+
$value = acf_get_array($value);
|
461 |
+
|
462 |
+
foreach($value as $v){
|
463 |
+
|
464 |
+
// append custom value to choices
|
465 |
+
if(!isset($field['choices'][ $v ])){
|
466 |
+
$field['choices'][ $v ] = $v;
|
467 |
+
$field['custom_choices'][ $v ] = $v;
|
468 |
+
}
|
469 |
+
}
|
470 |
+
|
471 |
+
}
|
472 |
+
|
473 |
+
// return
|
474 |
+
return $field;
|
475 |
+
|
476 |
+
}
|
477 |
+
|
478 |
+
|
479 |
+
/**
|
480 |
+
* format_value
|
481 |
+
*
|
482 |
+
* @param $value
|
483 |
+
* @param $post_id
|
484 |
+
* @param $field
|
485 |
+
*
|
486 |
+
* @return array|false|mixed|string[]
|
487 |
+
*/
|
488 |
function format_value($value, $post_id, $field){
|
489 |
|
490 |
+
// bail early
|
491 |
+
if(empty($value)){
|
492 |
return $value;
|
493 |
+
}
|
494 |
|
495 |
+
// vars
|
496 |
$is_array = is_array($value);
|
497 |
$value = acf_get_array($value);
|
498 |
|
499 |
+
// loop
|
500 |
foreach($value as &$v){
|
501 |
|
502 |
+
// get object
|
503 |
$object = get_field('acfe_form_name', $v);
|
504 |
|
505 |
+
if(!$object || is_wp_error($object)) continue;
|
|
|
506 |
|
507 |
+
// return: name
|
508 |
if($field['return_format'] === 'name'){
|
|
|
509 |
$v = $object;
|
|
|
510 |
}
|
511 |
|
512 |
}
|
513 |
|
514 |
+
// check array
|
515 |
if(!$is_array){
|
516 |
$value = acfe_unarray($value);
|
517 |
}
|
518 |
|
519 |
+
// return
|
520 |
return $value;
|
521 |
|
522 |
}
|
includes/fields/field-group.php
CHANGED
@@ -1,32 +1,40 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_group_field')):
|
7 |
|
8 |
-
class acfe_field_group_field{
|
9 |
|
10 |
-
|
11 |
-
*
|
12 |
*/
|
13 |
-
function
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
}
|
20 |
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
23 |
*/
|
24 |
function render_field_settings($field){
|
25 |
|
26 |
acf_render_field_setting($field, array(
|
27 |
'label' => __('Seamless Style', 'acfe'),
|
28 |
'name' => 'acfe_seamless_style',
|
29 |
-
'key' => 'acfe_seamless_style',
|
30 |
'instructions' => __('Enable better CSS integration: remove borders and padding'),
|
31 |
'type' => 'true_false',
|
32 |
'message' => '',
|
@@ -46,18 +54,25 @@ class acfe_field_group_field{
|
|
46 |
acf_render_field_setting($field, array(
|
47 |
'label' => __('Edition modal'),
|
48 |
'name' => 'acfe_group_modal',
|
49 |
-
'key' => 'acfe_group_modal',
|
50 |
'instructions' => __('Edit fields in a modal'),
|
51 |
'type' => 'true_false',
|
52 |
'message' => '',
|
53 |
'default_value' => false,
|
54 |
'ui' => true,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
));
|
56 |
|
57 |
acf_render_field_setting($field, array(
|
58 |
'label' => __('Edition modal: Close button'),
|
59 |
'name' => 'acfe_group_modal_close',
|
60 |
-
'key' => 'acfe_group_modal_close',
|
61 |
'instructions' => __('Display close button'),
|
62 |
'type' => 'true_false',
|
63 |
'message' => '',
|
@@ -77,7 +92,6 @@ class acfe_field_group_field{
|
|
77 |
acf_render_field_setting($field, array(
|
78 |
'label' => __('Edition modal: Text button'),
|
79 |
'name' => 'acfe_group_modal_button',
|
80 |
-
'key' => 'acfe_group_modal_button',
|
81 |
'instructions' => __('Text displayed in the edition modal button'),
|
82 |
'type' => 'text',
|
83 |
'placeholder' => __('Edit', 'acf'),
|
@@ -95,7 +109,6 @@ class acfe_field_group_field{
|
|
95 |
acf_render_field_setting($field, array(
|
96 |
'label' => __('Edition modal: Size'),
|
97 |
'name' => 'acfe_group_modal_size',
|
98 |
-
'key' => 'acfe_group_modal_size',
|
99 |
'instructions' => __('Choose the modal size'),
|
100 |
'type' => 'select',
|
101 |
'choices' => array(
|
@@ -118,51 +131,41 @@ class acfe_field_group_field{
|
|
118 |
|
119 |
}
|
120 |
|
121 |
-
/*
|
122 |
-
* Field Wrapper Attributes
|
123 |
-
*/
|
124 |
-
function field_wrapper_attributes($wrapper, $field){
|
125 |
-
|
126 |
-
if(acf_maybe_get($field, 'acfe_group_modal')){
|
127 |
-
|
128 |
-
$wrapper['data-acfe-group-modal'] = 1;
|
129 |
-
$wrapper['data-acfe-group-modal-button'] = __('Edit', 'acf');
|
130 |
-
|
131 |
-
if(acf_maybe_get($field, 'acfe_group_modal_button')){
|
132 |
-
$wrapper['data-acfe-group-modal-button'] = $field['acfe_group_modal_button'];
|
133 |
-
}
|
134 |
-
|
135 |
-
if(acf_maybe_get($field, 'acfe_group_modal_close')){
|
136 |
-
$wrapper['data-acfe-group-modal-close'] = $field['acfe_group_modal_close'];
|
137 |
-
}
|
138 |
-
|
139 |
-
if(acf_maybe_get($field, 'acfe_group_modal_size')){
|
140 |
-
$wrapper['data-acfe-group-modal-size'] = $field['acfe_group_modal_size'];
|
141 |
-
}
|
142 |
-
|
143 |
-
}
|
144 |
-
|
145 |
-
return $wrapper;
|
146 |
-
|
147 |
-
}
|
148 |
|
149 |
-
|
150 |
-
*
|
|
|
|
|
|
|
|
|
151 |
*/
|
152 |
function prepare_field($field){
|
153 |
|
154 |
-
|
|
|
155 |
$field['wrapper']['class'] .= ' acfe-seamless-style';
|
156 |
}
|
157 |
|
|
|
158 |
$field['wrapper']['class'] .= ' acfe-field-group-layout-' . $field['layout'];
|
159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
return $field;
|
161 |
|
162 |
}
|
163 |
|
164 |
}
|
165 |
|
166 |
-
|
167 |
|
168 |
endif;
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_group_field')):
|
8 |
|
9 |
+
class acfe_field_group_field extends acfe_field_extend{
|
10 |
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
*/
|
14 |
+
function initialize(){
|
15 |
|
16 |
+
$this->name = 'group';
|
17 |
+
$this->defaults = array(
|
18 |
+
'acfe_seamless_style' => 0,
|
19 |
+
'acfe_group_modal' => 0,
|
20 |
+
'acfe_group_modal_close' => 0,
|
21 |
+
'acfe_group_modal_button' => '',
|
22 |
+
'acfe_group_modal_size' => 'large',
|
23 |
+
);
|
24 |
|
25 |
}
|
26 |
|
27 |
+
|
28 |
+
/**
|
29 |
+
* render_field_settings
|
30 |
+
*
|
31 |
+
* @param $field
|
32 |
*/
|
33 |
function render_field_settings($field){
|
34 |
|
35 |
acf_render_field_setting($field, array(
|
36 |
'label' => __('Seamless Style', 'acfe'),
|
37 |
'name' => 'acfe_seamless_style',
|
|
|
38 |
'instructions' => __('Enable better CSS integration: remove borders and padding'),
|
39 |
'type' => 'true_false',
|
40 |
'message' => '',
|
54 |
acf_render_field_setting($field, array(
|
55 |
'label' => __('Edition modal'),
|
56 |
'name' => 'acfe_group_modal',
|
|
|
57 |
'instructions' => __('Edit fields in a modal'),
|
58 |
'type' => 'true_false',
|
59 |
'message' => '',
|
60 |
'default_value' => false,
|
61 |
'ui' => true,
|
62 |
+
'conditional_logic' => array(
|
63 |
+
array(
|
64 |
+
array(
|
65 |
+
'field' => 'acfe_seamless_style',
|
66 |
+
'operator' => '!=',
|
67 |
+
'value' => '1',
|
68 |
+
)
|
69 |
+
)
|
70 |
+
)
|
71 |
));
|
72 |
|
73 |
acf_render_field_setting($field, array(
|
74 |
'label' => __('Edition modal: Close button'),
|
75 |
'name' => 'acfe_group_modal_close',
|
|
|
76 |
'instructions' => __('Display close button'),
|
77 |
'type' => 'true_false',
|
78 |
'message' => '',
|
92 |
acf_render_field_setting($field, array(
|
93 |
'label' => __('Edition modal: Text button'),
|
94 |
'name' => 'acfe_group_modal_button',
|
|
|
95 |
'instructions' => __('Text displayed in the edition modal button'),
|
96 |
'type' => 'text',
|
97 |
'placeholder' => __('Edit', 'acf'),
|
109 |
acf_render_field_setting($field, array(
|
110 |
'label' => __('Edition modal: Size'),
|
111 |
'name' => 'acfe_group_modal_size',
|
|
|
112 |
'instructions' => __('Choose the modal size'),
|
113 |
'type' => 'select',
|
114 |
'choices' => array(
|
131 |
|
132 |
}
|
133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
|
135 |
+
/**
|
136 |
+
* prepare_field
|
137 |
+
*
|
138 |
+
* @param $field
|
139 |
+
*
|
140 |
+
* @return array
|
141 |
*/
|
142 |
function prepare_field($field){
|
143 |
|
144 |
+
// seamless style
|
145 |
+
if($field['acfe_seamless_style']){
|
146 |
$field['wrapper']['class'] .= ' acfe-seamless-style';
|
147 |
}
|
148 |
|
149 |
+
// class
|
150 |
$field['wrapper']['class'] .= ' acfe-field-group-layout-' . $field['layout'];
|
151 |
|
152 |
+
// modal edit
|
153 |
+
if($field['acfe_group_modal']){
|
154 |
+
|
155 |
+
$field['wrapper']['data-acfe-group-modal'] = $field['acfe_group_modal'];
|
156 |
+
$field['wrapper']['data-acfe-group-modal-button'] = $field['acfe_group_modal_button'] ? $field['acfe_group_modal_button'] : __('Edit', 'acf');
|
157 |
+
$field['wrapper']['data-acfe-group-modal-close'] = $field['acfe_group_modal_close'];
|
158 |
+
$field['wrapper']['data-acfe-group-modal-size'] = $field['acfe_group_modal_size'];
|
159 |
+
|
160 |
+
}
|
161 |
+
|
162 |
+
// return
|
163 |
return $field;
|
164 |
|
165 |
}
|
166 |
|
167 |
}
|
168 |
|
169 |
+
acf_new_instance('acfe_field_group_field');
|
170 |
|
171 |
endif;
|
includes/fields/field-hidden.php
CHANGED
@@ -1,13 +1,17 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_hidden')):
|
7 |
|
8 |
class acfe_field_hidden extends acf_field{
|
9 |
|
10 |
-
|
|
|
|
|
|
|
11 |
|
12 |
$this->name = 'acfe_hidden';
|
13 |
$this->label = __('Hidden', 'acfe');
|
@@ -16,10 +20,16 @@ class acfe_field_hidden extends acf_field{
|
|
16 |
'default_value' => ''
|
17 |
);
|
18 |
|
19 |
-
parent::__construct();
|
20 |
-
|
21 |
}
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
function prepare_field($field){
|
24 |
|
25 |
$field['wrapper']['class'] = 'acf-hidden';
|
@@ -28,20 +38,33 @@ class acfe_field_hidden extends acf_field{
|
|
28 |
|
29 |
}
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
function render_field($field){
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
36 |
|
37 |
}
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
function render_field_settings($field){
|
40 |
|
41 |
// default_value
|
42 |
acf_render_field_setting($field, array(
|
43 |
-
'label' => __('Value','acf'),
|
44 |
-
'instructions' => __('Default value in the hidden input','acf'),
|
45 |
'type' => 'text',
|
46 |
'name' => 'default_value',
|
47 |
));
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_hidden')):
|
8 |
|
9 |
class acfe_field_hidden extends acf_field{
|
10 |
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
+
*/
|
14 |
+
function initialize(){
|
15 |
|
16 |
$this->name = 'acfe_hidden';
|
17 |
$this->label = __('Hidden', 'acfe');
|
20 |
'default_value' => ''
|
21 |
);
|
22 |
|
|
|
|
|
23 |
}
|
24 |
|
25 |
+
|
26 |
+
/**
|
27 |
+
* prepare_field
|
28 |
+
*
|
29 |
+
* @param $field
|
30 |
+
*
|
31 |
+
* @return array
|
32 |
+
*/
|
33 |
function prepare_field($field){
|
34 |
|
35 |
$field['wrapper']['class'] = 'acf-hidden';
|
38 |
|
39 |
}
|
40 |
|
41 |
+
|
42 |
+
/**
|
43 |
+
* render_field
|
44 |
+
*
|
45 |
+
* @param $field
|
46 |
+
*/
|
47 |
function render_field($field){
|
48 |
+
|
49 |
+
acf_hidden_input(array(
|
50 |
+
'name' => $field['name'],
|
51 |
+
'value' => $field['value'],
|
52 |
+
));
|
53 |
|
54 |
}
|
55 |
|
56 |
+
|
57 |
+
/**
|
58 |
+
* render_field_settings
|
59 |
+
*
|
60 |
+
* @param $field
|
61 |
+
*/
|
62 |
function render_field_settings($field){
|
63 |
|
64 |
// default_value
|
65 |
acf_render_field_setting($field, array(
|
66 |
+
'label' => __('Value', 'acf'),
|
67 |
+
'instructions' => __('Default value in the hidden input', 'acf'),
|
68 |
'type' => 'text',
|
69 |
'name' => 'default_value',
|
70 |
));
|
includes/fields/field-image.php
CHANGED
@@ -1,66 +1,93 @@
|
|
1 |
<?php
|
2 |
|
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 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
$field['conditional_logic'] = array(
|
28 |
-
array(
|
29 |
-
array(
|
30 |
-
'field' => 'uploader',
|
31 |
-
'operator' => '==',
|
32 |
-
'value' => 'wp',
|
33 |
-
)
|
34 |
-
)
|
35 |
);
|
36 |
|
37 |
-
|
|
|
|
|
38 |
|
39 |
}
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
function gettext($translated_text, $text, $domain){
|
42 |
|
43 |
-
if($domain
|
44 |
-
|
45 |
-
|
|
|
|
|
46 |
|
47 |
return $translated_text;
|
48 |
|
49 |
}
|
50 |
|
51 |
-
|
52 |
-
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
return $field;
|
59 |
|
60 |
}
|
61 |
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
|
|
64 |
acf_render_field_setting($field, array(
|
65 |
'label' => __('Uploader type'),
|
66 |
'name' => 'uploader',
|
@@ -76,7 +103,8 @@ class acfe_field_image{
|
|
76 |
'layout' => 'horizontal',
|
77 |
'return_format' => 'value',
|
78 |
));
|
79 |
-
|
|
|
80 |
acf_render_field_setting($field, array(
|
81 |
'label' => __('Featured thumbnail'),
|
82 |
'name' => 'acfe_thumbnail',
|
@@ -92,81 +120,119 @@ class acfe_field_image{
|
|
92 |
|
93 |
}
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
function prepare_field($field){
|
96 |
|
97 |
-
//
|
98 |
if(acf_is_filter_enabled('acfe/form/uploader')){
|
99 |
unset($field['uploader']);
|
100 |
}
|
101 |
|
102 |
-
|
|
|
|
|
103 |
$field['uploader'] = acf_get_setting('uploader');
|
104 |
}
|
105 |
|
|
|
|
|
106 |
if(!current_user_can('upload_files')){
|
107 |
$field['uploader'] = 'basic';
|
108 |
}
|
109 |
-
|
|
|
110 |
acf_update_setting('uploader', $field['uploader']);
|
111 |
|
|
|
112 |
return $field;
|
113 |
|
114 |
}
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
function update_value($value, $post_id, $field){
|
117 |
|
118 |
-
//
|
119 |
-
if(
|
120 |
return $value;
|
121 |
}
|
122 |
|
123 |
-
//
|
124 |
if(acfe_is_local_post_id($post_id)){
|
125 |
return $value;
|
126 |
}
|
127 |
|
128 |
-
//
|
129 |
if(acf_maybe_get_POST('wp-preview') == 'dopreview'){
|
130 |
return $value;
|
131 |
}
|
132 |
|
133 |
-
//
|
134 |
$data = acf_get_post_id_info($post_id);
|
135 |
|
136 |
if($data['type'] !== 'post'){
|
137 |
return $value;
|
138 |
}
|
139 |
|
|
|
140 |
update_post_meta($post_id, '_thumbnail_id', $value);
|
141 |
|
|
|
142 |
return $value;
|
143 |
|
144 |
}
|
145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
function load_value($value, $post_id, $field){
|
147 |
-
|
148 |
-
|
|
|
149 |
return $value;
|
150 |
}
|
151 |
|
|
|
152 |
if(acf_maybe_get_GET('preview') && filter_var(acf_maybe_get_GET('preview'), FILTER_VALIDATE_BOOLEAN)){
|
153 |
return $value;
|
154 |
}
|
155 |
-
|
|
|
156 |
$data = acf_get_post_id_info($post_id);
|
157 |
|
158 |
if($data['type'] !== 'post'){
|
159 |
return $value;
|
160 |
}
|
161 |
|
162 |
-
|
163 |
-
|
164 |
-
return $value;
|
165 |
|
166 |
}
|
167 |
|
168 |
}
|
169 |
|
170 |
-
|
171 |
|
172 |
endif;
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_image')):
|
8 |
|
9 |
+
class acfe_field_image extends acfe_field_extend{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
+
*/
|
14 |
+
function initialize(){
|
15 |
|
16 |
+
$this->name = 'image';
|
17 |
+
$this->defaults = array(
|
18 |
+
'uploader' => '',
|
19 |
+
'acfe_thumbnail' => 0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
);
|
21 |
|
22 |
+
$this->add_filter('gettext', array($this, 'gettext'), 99, 3);
|
23 |
+
$this->add_filter('acf/prepare_field/name=library', array($this, 'prepare_library'));
|
24 |
+
$this->add_field_action('acf/render_field_settings', array($this, '_render_field_settings'), 0);
|
25 |
|
26 |
}
|
27 |
|
28 |
+
|
29 |
+
/**
|
30 |
+
* gettext
|
31 |
+
*
|
32 |
+
* @param $translated_text
|
33 |
+
* @param $text
|
34 |
+
* @param $domain
|
35 |
+
*
|
36 |
+
* @return string
|
37 |
+
*/
|
38 |
function gettext($translated_text, $text, $domain){
|
39 |
|
40 |
+
if($domain === 'acf'){
|
41 |
+
if($text === 'No image selected'){
|
42 |
+
return '';
|
43 |
+
}
|
44 |
+
}
|
45 |
|
46 |
return $translated_text;
|
47 |
|
48 |
}
|
49 |
|
50 |
+
|
51 |
+
/**
|
52 |
+
* prepare_library
|
53 |
+
*
|
54 |
+
* @param $field
|
55 |
+
*
|
56 |
+
* @return mixed
|
57 |
+
*/
|
58 |
+
function prepare_library($field){
|
59 |
|
60 |
+
// check if field group ui setting
|
61 |
+
if(acf_maybe_get($field['wrapper'], 'data-setting') === 'image'){
|
62 |
+
|
63 |
+
// add conditional logic
|
64 |
+
$field['conditional_logic'] = array(
|
65 |
+
array(
|
66 |
+
array(
|
67 |
+
'field' => 'uploader',
|
68 |
+
'operator' => '==',
|
69 |
+
'value' => 'wp',
|
70 |
+
)
|
71 |
+
)
|
72 |
+
);
|
73 |
+
|
74 |
+
}
|
75 |
|
76 |
return $field;
|
77 |
|
78 |
}
|
79 |
|
80 |
+
|
81 |
+
/**
|
82 |
+
* _render_field_settings
|
83 |
+
*
|
84 |
+
* acf/render_field_settings:0
|
85 |
+
*
|
86 |
+
* @param $field
|
87 |
+
*/
|
88 |
+
function _render_field_settings($field){
|
89 |
|
90 |
+
// uploader type
|
91 |
acf_render_field_setting($field, array(
|
92 |
'label' => __('Uploader type'),
|
93 |
'name' => 'uploader',
|
103 |
'layout' => 'horizontal',
|
104 |
'return_format' => 'value',
|
105 |
));
|
106 |
+
|
107 |
+
// featured thumbnail
|
108 |
acf_render_field_setting($field, array(
|
109 |
'label' => __('Featured thumbnail'),
|
110 |
'name' => 'acfe_thumbnail',
|
120 |
|
121 |
}
|
122 |
|
123 |
+
|
124 |
+
/**
|
125 |
+
* prepare_field
|
126 |
+
*
|
127 |
+
* @param $field
|
128 |
+
*
|
129 |
+
* @return mixed
|
130 |
+
*/
|
131 |
function prepare_field($field){
|
132 |
|
133 |
+
// let acfe form force specific uploader
|
134 |
if(acf_is_filter_enabled('acfe/form/uploader')){
|
135 |
unset($field['uploader']);
|
136 |
}
|
137 |
|
138 |
+
// default uploader in settings
|
139 |
+
// use global acf uploader
|
140 |
+
if(!$field['uploader']){
|
141 |
$field['uploader'] = acf_get_setting('uploader');
|
142 |
}
|
143 |
|
144 |
+
// current user can't upload files
|
145 |
+
// force basic
|
146 |
if(!current_user_can('upload_files')){
|
147 |
$field['uploader'] = 'basic';
|
148 |
}
|
149 |
+
|
150 |
+
// update global uploader
|
151 |
acf_update_setting('uploader', $field['uploader']);
|
152 |
|
153 |
+
// return
|
154 |
return $field;
|
155 |
|
156 |
}
|
157 |
|
158 |
+
|
159 |
+
/**
|
160 |
+
* update_value
|
161 |
+
*
|
162 |
+
* @param $value
|
163 |
+
* @param $post_id
|
164 |
+
* @param $field
|
165 |
+
*
|
166 |
+
* @return mixed
|
167 |
+
*/
|
168 |
function update_value($value, $post_id, $field){
|
169 |
|
170 |
+
// bail early setting
|
171 |
+
if(!$field['acfe_thumbnail']){
|
172 |
return $value;
|
173 |
}
|
174 |
|
175 |
+
// bail early when local meta
|
176 |
if(acfe_is_local_post_id($post_id)){
|
177 |
return $value;
|
178 |
}
|
179 |
|
180 |
+
// bail early on wp preview
|
181 |
if(acf_maybe_get_POST('wp-preview') == 'dopreview'){
|
182 |
return $value;
|
183 |
}
|
184 |
|
185 |
+
// bail early if not post
|
186 |
$data = acf_get_post_id_info($post_id);
|
187 |
|
188 |
if($data['type'] !== 'post'){
|
189 |
return $value;
|
190 |
}
|
191 |
|
192 |
+
// update meta
|
193 |
update_post_meta($post_id, '_thumbnail_id', $value);
|
194 |
|
195 |
+
// return
|
196 |
return $value;
|
197 |
|
198 |
}
|
199 |
|
200 |
+
|
201 |
+
/**
|
202 |
+
* load_value
|
203 |
+
*
|
204 |
+
* @param $value
|
205 |
+
* @param $post_id
|
206 |
+
* @param $field
|
207 |
+
*
|
208 |
+
* @return mixed
|
209 |
+
*/
|
210 |
function load_value($value, $post_id, $field){
|
211 |
+
|
212 |
+
// bail early setting
|
213 |
+
if(!$field['acfe_thumbnail']){
|
214 |
return $value;
|
215 |
}
|
216 |
|
217 |
+
// bail early on wp preview
|
218 |
if(acf_maybe_get_GET('preview') && filter_var(acf_maybe_get_GET('preview'), FILTER_VALIDATE_BOOLEAN)){
|
219 |
return $value;
|
220 |
}
|
221 |
+
|
222 |
+
// bail early if not post
|
223 |
$data = acf_get_post_id_info($post_id);
|
224 |
|
225 |
if($data['type'] !== 'post'){
|
226 |
return $value;
|
227 |
}
|
228 |
|
229 |
+
// return thumbnail
|
230 |
+
return get_post_meta($post_id, '_thumbnail_id', true);
|
|
|
231 |
|
232 |
}
|
233 |
|
234 |
}
|
235 |
|
236 |
+
acf_new_instance('acfe_field_image');
|
237 |
|
238 |
endif;
|
includes/fields/field-post-object.php
CHANGED
@@ -1,28 +1,41 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_post_object')):
|
7 |
|
8 |
-
class acfe_field_post_object{
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
-
//
|
16 |
-
|
17 |
-
add_filter('acf/update_value/type=post_object', array($this, 'update_value'), 5, 3);
|
18 |
|
19 |
}
|
20 |
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
// save custom value
|
24 |
acf_render_field_setting($field, array(
|
25 |
-
'label' => __('Allow & Save Custom value','acf'),
|
26 |
'instructions' => '',
|
27 |
'name' => 'save_custom',
|
28 |
'type' => 'true_false',
|
@@ -32,8 +45,8 @@ class acfe_field_post_object{
|
|
32 |
|
33 |
// save post_type
|
34 |
acf_render_field_setting($field, array(
|
35 |
-
'label' => __('New Post Arguments','acf'),
|
36 |
-
'instructions' => 'See available hooks in the <a href="https://www.acf-extended.com/features/fields/post-object#custom-value-hooks" target="_blank">documentation</a>.',
|
37 |
'name' => 'save_post_type',
|
38 |
'type' => 'acfe_post_types',
|
39 |
'field_type' => 'select',
|
@@ -61,95 +74,127 @@ class acfe_field_post_object{
|
|
61 |
|
62 |
}
|
63 |
|
64 |
-
function field_wrapper($wrapper, $field){
|
65 |
|
66 |
-
|
67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
$wrapper['data-acfe-allow-custom'] = 1;
|
69 |
-
|
70 |
}
|
71 |
|
72 |
return $wrapper;
|
73 |
|
74 |
}
|
75 |
|
76 |
-
function update_value($value, $post_id, $field){
|
77 |
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
return $value;
|
|
|
81 |
|
82 |
-
//
|
83 |
-
if(
|
84 |
return $value;
|
|
|
85 |
|
86 |
-
//
|
87 |
-
if(acfe_is_local_post_id($post_id))
|
88 |
return $value;
|
|
|
89 |
|
90 |
-
//
|
91 |
$post_type = acf_maybe_get($field, 'save_post_type', 'post');
|
92 |
$post_status = acf_maybe_get($field, 'save_post_status', 'publish');
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
$value = acf_get_array($value);
|
97 |
-
|
98 |
-
foreach($value as $k => $v){
|
99 |
|
100 |
-
|
|
|
|
|
|
|
|
|
|
|
101 |
continue;
|
102 |
-
|
|
|
|
|
103 |
$title = $v;
|
104 |
|
105 |
-
//
|
106 |
$args = array(
|
107 |
-
'post_title'
|
108 |
-
'post_type'
|
109 |
-
'post_status'
|
110 |
);
|
111 |
|
112 |
-
//
|
113 |
-
$args = apply_filters(
|
114 |
-
$args = apply_filters(
|
115 |
-
$args = apply_filters(
|
116 |
-
|
|
|
117 |
if($args === false){
|
118 |
|
119 |
-
unset($value[$k]);
|
120 |
continue;
|
121 |
|
122 |
}
|
123 |
|
124 |
-
//
|
125 |
$_post_id = wp_insert_post($args);
|
126 |
-
|
|
|
127 |
if(empty($_post_id) || is_wp_error($_post_id)){
|
128 |
|
129 |
-
unset($value[$k]);
|
130 |
continue;
|
131 |
|
132 |
}
|
133 |
|
134 |
-
//
|
135 |
-
do_action(
|
136 |
-
do_action(
|
137 |
-
do_action(
|
138 |
-
|
139 |
-
|
|
|
140 |
|
141 |
}
|
142 |
-
|
|
|
143 |
if(!$is_array){
|
144 |
$value = acfe_unarray($value);
|
145 |
}
|
146 |
-
|
|
|
147 |
return $value;
|
148 |
|
149 |
}
|
150 |
|
151 |
}
|
152 |
|
153 |
-
|
154 |
|
155 |
endif;
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_post_object')):
|
8 |
|
9 |
+
class acfe_field_post_object extends acfe_field_extend{
|
10 |
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
+
*/
|
14 |
+
function initialize(){
|
15 |
+
|
16 |
+
$this->name = 'post_object';
|
17 |
+
$this->defaults = array(
|
18 |
+
'save_custom' => 0,
|
19 |
+
'save_post_type' => '',
|
20 |
+
'save_post_status' => '',
|
21 |
+
);
|
22 |
|
23 |
+
// hooks
|
24 |
+
$this->add_field_filter('acf/update_value', array($this, '_update_value'), 5, 3);
|
|
|
25 |
|
26 |
}
|
27 |
|
28 |
+
|
29 |
+
/**
|
30 |
+
* render_field_settings
|
31 |
+
*
|
32 |
+
* @param $field
|
33 |
+
*/
|
34 |
+
function render_field_settings($field){
|
35 |
|
36 |
// save custom value
|
37 |
acf_render_field_setting($field, array(
|
38 |
+
'label' => __('Allow & Save Custom value', 'acf'),
|
39 |
'instructions' => '',
|
40 |
'name' => 'save_custom',
|
41 |
'type' => 'true_false',
|
45 |
|
46 |
// save post_type
|
47 |
acf_render_field_setting($field, array(
|
48 |
+
'label' => __('New Post Arguments', 'acf'),
|
49 |
+
'instructions' => __('See available hooks in the <a href="https://www.acf-extended.com/features/fields/post-object#custom-value-hooks" target="_blank">documentation</a>.', 'acfe'),
|
50 |
'name' => 'save_post_type',
|
51 |
'type' => 'acfe_post_types',
|
52 |
'field_type' => 'select',
|
74 |
|
75 |
}
|
76 |
|
|
|
77 |
|
78 |
+
/**
|
79 |
+
* field_wrapper_attributes
|
80 |
+
*
|
81 |
+
* @param $wrapper
|
82 |
+
* @param $field
|
83 |
+
*
|
84 |
+
* @return mixed
|
85 |
+
*/
|
86 |
+
function field_wrapper_attributes($wrapper, $field){
|
87 |
+
|
88 |
+
if($field['save_custom']){
|
89 |
$wrapper['data-acfe-allow-custom'] = 1;
|
|
|
90 |
}
|
91 |
|
92 |
return $wrapper;
|
93 |
|
94 |
}
|
95 |
|
|
|
96 |
|
97 |
+
/**
|
98 |
+
* _update_value
|
99 |
+
*
|
100 |
+
* acf/update_value:5
|
101 |
+
*
|
102 |
+
* @param $value
|
103 |
+
* @param $post_id
|
104 |
+
* @param $field
|
105 |
+
*
|
106 |
+
* @return array|false|mixed|string[]
|
107 |
+
*/
|
108 |
+
function _update_value($value, $post_id, $field){
|
109 |
+
|
110 |
+
// bail early if empty
|
111 |
+
if(empty($value)){
|
112 |
return $value;
|
113 |
+
}
|
114 |
|
115 |
+
// bail early if no save custom setting
|
116 |
+
if(!$field['save_custom']){
|
117 |
return $value;
|
118 |
+
}
|
119 |
|
120 |
+
// bail early when local meta
|
121 |
+
if(acfe_is_local_post_id($post_id)){
|
122 |
return $value;
|
123 |
+
}
|
124 |
|
125 |
+
// new post args
|
126 |
$post_type = acf_maybe_get($field, 'save_post_type', 'post');
|
127 |
$post_status = acf_maybe_get($field, 'save_post_status', 'publish');
|
128 |
+
|
129 |
+
// vars
|
130 |
+
$is_array = is_array($value);
|
131 |
$value = acf_get_array($value);
|
|
|
|
|
132 |
|
133 |
+
// loop
|
134 |
+
foreach($value as $k => $v){
|
135 |
+
|
136 |
+
// has to be words
|
137 |
+
// (post id are selected posts)
|
138 |
+
if(is_numeric($v)){
|
139 |
continue;
|
140 |
+
}
|
141 |
+
|
142 |
+
// vars
|
143 |
$title = $v;
|
144 |
|
145 |
+
// args
|
146 |
$args = array(
|
147 |
+
'post_title' => $title,
|
148 |
+
'post_type' => $post_type,
|
149 |
+
'post_status' => $post_status,
|
150 |
);
|
151 |
|
152 |
+
// filters
|
153 |
+
$args = apply_filters("acfe/fields/post_object/custom_save_args", $args, $title, $post_id, $field);
|
154 |
+
$args = apply_filters("acfe/fields/post_object/custom_save_args/name={$field['name']}", $args, $title, $post_id, $field);
|
155 |
+
$args = apply_filters("acfe/fields/post_object/custom_save_args/key={$field['key']}", $args, $title, $post_id, $field);
|
156 |
+
|
157 |
+
// do not create post
|
158 |
if($args === false){
|
159 |
|
160 |
+
unset($value[ $k ]);
|
161 |
continue;
|
162 |
|
163 |
}
|
164 |
|
165 |
+
// insert post
|
166 |
$_post_id = wp_insert_post($args);
|
167 |
+
|
168 |
+
// error during creation
|
169 |
if(empty($_post_id) || is_wp_error($_post_id)){
|
170 |
|
171 |
+
unset($value[ $k ]);
|
172 |
continue;
|
173 |
|
174 |
}
|
175 |
|
176 |
+
// actions after create
|
177 |
+
do_action("acfe/fields/post_object/custom_save", $_post_id, $title, $post_id, $field);
|
178 |
+
do_action("acfe/fields/post_object/custom_save/name={$field['name']}", $_post_id, $title, $post_id, $field);
|
179 |
+
do_action("acfe/fields/post_object/custom_save/key={$field['key']}", $_post_id, $title, $post_id, $field);
|
180 |
+
|
181 |
+
// assign new post id as selected
|
182 |
+
$value[ $k ] = $_post_id;
|
183 |
|
184 |
}
|
185 |
+
|
186 |
+
// check array
|
187 |
if(!$is_array){
|
188 |
$value = acfe_unarray($value);
|
189 |
}
|
190 |
+
|
191 |
+
// return
|
192 |
return $value;
|
193 |
|
194 |
}
|
195 |
|
196 |
}
|
197 |
|
198 |
+
acf_new_instance('acfe_field_post_object');
|
199 |
|
200 |
endif;
|
includes/fields/field-post-statuses.php
CHANGED
@@ -1,13 +1,17 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_post_statuses')):
|
7 |
|
8 |
class acfe_field_post_statuses extends acf_field{
|
9 |
|
10 |
-
|
|
|
|
|
|
|
11 |
|
12 |
$this->name = 'acfe_post_statuses';
|
13 |
$this->label = __('Post Statuses', 'acfe');
|
@@ -26,17 +30,23 @@ class acfe_field_post_statuses extends acf_field{
|
|
26 |
'layout' => '',
|
27 |
'toggle' => 0,
|
28 |
'allow_custom' => 0,
|
|
|
29 |
'return_format' => 'object',
|
30 |
);
|
31 |
|
32 |
-
parent::__construct();
|
33 |
-
|
34 |
}
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
function render_field_settings($field){
|
37 |
|
38 |
-
if(isset($field['default_value']))
|
39 |
$field['default_value'] = acf_encode_choices($field['default_value'], false);
|
|
|
40 |
|
41 |
// Allow Post Status
|
42 |
acf_render_field_setting($field, array(
|
@@ -365,83 +375,110 @@ class acfe_field_post_statuses extends acf_field{
|
|
365 |
|
366 |
}
|
367 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
368 |
function update_field($field){
|
369 |
|
370 |
$field['default_value'] = acf_decode_choices($field['default_value'], true);
|
371 |
|
372 |
-
if($field['field_type'] === 'radio')
|
373 |
$field['default_value'] = acfe_unarray($field['default_value']);
|
|
|
374 |
|
375 |
return $field;
|
376 |
|
377 |
}
|
378 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
function prepare_field($field){
|
380 |
|
381 |
-
//
|
382 |
-
$
|
|
|
|
|
|
|
|
|
383 |
|
384 |
-
//
|
385 |
$field['choices'] = acfe_get_pretty_post_statuses($field['post_status']);
|
|
|
|
|
|
|
|
|
|
|
|
|
386 |
|
387 |
-
|
388 |
-
if(acf_maybe_get($field, 'allow_custom')){
|
389 |
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
foreach($value as $v){
|
395 |
-
|
396 |
-
if(isset($field['choices'][$v]))
|
397 |
-
continue;
|
398 |
-
|
399 |
-
$field['choices'][$v] = $v;
|
400 |
-
|
401 |
}
|
402 |
-
|
403 |
}
|
404 |
-
|
405 |
}
|
406 |
|
|
|
407 |
return $field;
|
408 |
|
409 |
}
|
410 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
function format_value($value, $post_id, $field){
|
412 |
|
413 |
-
//
|
414 |
-
if(empty($value))
|
415 |
return $value;
|
|
|
416 |
|
417 |
-
//
|
418 |
$is_array = is_array($value);
|
419 |
$value = acf_get_array($value);
|
420 |
|
421 |
-
//
|
422 |
foreach($value as &$v){
|
423 |
|
424 |
-
//
|
425 |
$object = get_post_status_object($v);
|
426 |
|
427 |
-
if(!$object || is_wp_error($object))
|
428 |
-
continue;
|
429 |
|
430 |
-
//
|
431 |
if($field['return_format'] === 'object'){
|
432 |
-
|
433 |
$v = $object;
|
434 |
-
|
435 |
}
|
436 |
|
437 |
}
|
438 |
|
439 |
-
//
|
440 |
if(!$is_array){
|
441 |
$value = acfe_unarray($value);
|
442 |
}
|
443 |
|
444 |
-
//
|
445 |
return $value;
|
446 |
|
447 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_post_statuses')):
|
8 |
|
9 |
class acfe_field_post_statuses extends acf_field{
|
10 |
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
+
*/
|
14 |
+
function initialize(){
|
15 |
|
16 |
$this->name = 'acfe_post_statuses';
|
17 |
$this->label = __('Post Statuses', 'acfe');
|
30 |
'layout' => '',
|
31 |
'toggle' => 0,
|
32 |
'allow_custom' => 0,
|
33 |
+
'other_choice' => 0,
|
34 |
'return_format' => 'object',
|
35 |
);
|
36 |
|
|
|
|
|
37 |
}
|
38 |
|
39 |
+
|
40 |
+
/**
|
41 |
+
* render_field_settings
|
42 |
+
*
|
43 |
+
* @param $field
|
44 |
+
*/
|
45 |
function render_field_settings($field){
|
46 |
|
47 |
+
if(isset($field['default_value'])){
|
48 |
$field['default_value'] = acf_encode_choices($field['default_value'], false);
|
49 |
+
}
|
50 |
|
51 |
// Allow Post Status
|
52 |
acf_render_field_setting($field, array(
|
375 |
|
376 |
}
|
377 |
|
378 |
+
|
379 |
+
/**
|
380 |
+
* update_field
|
381 |
+
*
|
382 |
+
* @param $field
|
383 |
+
*
|
384 |
+
* @return mixed
|
385 |
+
*/
|
386 |
function update_field($field){
|
387 |
|
388 |
$field['default_value'] = acf_decode_choices($field['default_value'], true);
|
389 |
|
390 |
+
if($field['field_type'] === 'radio'){
|
391 |
$field['default_value'] = acfe_unarray($field['default_value']);
|
392 |
+
}
|
393 |
|
394 |
return $field;
|
395 |
|
396 |
}
|
397 |
|
398 |
+
|
399 |
+
/**
|
400 |
+
* prepare_field
|
401 |
+
*
|
402 |
+
* @param $field
|
403 |
+
*
|
404 |
+
* @return mixed
|
405 |
+
*/
|
406 |
function prepare_field($field){
|
407 |
|
408 |
+
// field type
|
409 |
+
$type = $field['type'];
|
410 |
+
$field_type = $field['field_type'];
|
411 |
+
|
412 |
+
$field['type'] = $field_type;
|
413 |
+
$field['wrapper']['data-ftype'] = $type;
|
414 |
|
415 |
+
// choices
|
416 |
$field['choices'] = acfe_get_pretty_post_statuses($field['post_status']);
|
417 |
+
|
418 |
+
// allow custom
|
419 |
+
if($field['allow_custom']){
|
420 |
+
|
421 |
+
$value = acf_maybe_get($field, 'value');
|
422 |
+
$value = acf_get_array($value);
|
423 |
|
424 |
+
foreach($value as $v){
|
|
|
425 |
|
426 |
+
// append custom value to choices
|
427 |
+
if(!isset($field['choices'][ $v ])){
|
428 |
+
$field['choices'][ $v ] = $v;
|
429 |
+
$field['custom_choices'][ $v ] = $v;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
430 |
}
|
|
|
431 |
}
|
432 |
+
|
433 |
}
|
434 |
|
435 |
+
// return
|
436 |
return $field;
|
437 |
|
438 |
}
|
439 |
|
440 |
+
|
441 |
+
/**
|
442 |
+
* format_value
|
443 |
+
*
|
444 |
+
* @param $value
|
445 |
+
* @param $post_id
|
446 |
+
* @param $field
|
447 |
+
*
|
448 |
+
* @return array|false|mixed|string[]
|
449 |
+
*/
|
450 |
function format_value($value, $post_id, $field){
|
451 |
|
452 |
+
// bail early
|
453 |
+
if(empty($value)){
|
454 |
return $value;
|
455 |
+
}
|
456 |
|
457 |
+
// vars
|
458 |
$is_array = is_array($value);
|
459 |
$value = acf_get_array($value);
|
460 |
|
461 |
+
// loop
|
462 |
foreach($value as &$v){
|
463 |
|
464 |
+
// get object
|
465 |
$object = get_post_status_object($v);
|
466 |
|
467 |
+
if(!$object || is_wp_error($object)) continue;
|
|
|
468 |
|
469 |
+
// return: object
|
470 |
if($field['return_format'] === 'object'){
|
|
|
471 |
$v = $object;
|
|
|
472 |
}
|
473 |
|
474 |
}
|
475 |
|
476 |
+
// check array
|
477 |
if(!$is_array){
|
478 |
$value = acfe_unarray($value);
|
479 |
}
|
480 |
|
481 |
+
// return
|
482 |
return $value;
|
483 |
|
484 |
}
|
includes/fields/field-post-types.php
CHANGED
@@ -1,13 +1,17 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
5 |
|
6 |
if(!class_exists('acfe_field_post_types')):
|
7 |
|
8 |
class acfe_field_post_types extends acf_field{
|
9 |
|
10 |
-
|
|
|
|
|
|
|
11 |
|
12 |
$this->name = 'acfe_post_types';
|
13 |
$this->label = __('Post Types', 'acfe');
|
@@ -26,17 +30,23 @@ class acfe_field_post_types extends acf_field{
|
|
26 |
'layout' => '',
|
27 |
'toggle' => 0,
|
28 |
'allow_custom' => 0,
|
|
|
29 |
'return_format' => 'object',
|
30 |
);
|
31 |
|
32 |
-
parent::__construct();
|
33 |
-
|
34 |
}
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
function render_field_settings($field){
|
37 |
|
38 |
-
if(isset($field['default_value']))
|
39 |
$field['default_value'] = acf_encode_choices($field['default_value'], false);
|
|
|
40 |
|
41 |
// Allow Post Type
|
42 |
acf_render_field_setting($field, array(
|
@@ -365,41 +375,59 @@ class acfe_field_post_types extends acf_field{
|
|
365 |
|
366 |
}
|
367 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
368 |
function update_field($field){
|
369 |
|
370 |
$field['default_value'] = acf_decode_choices($field['default_value'], true);
|
371 |
|
372 |
-
if($field['field_type'] === 'radio')
|
373 |
$field['default_value'] = acfe_unarray($field['default_value']);
|
|
|
374 |
|
375 |
return $field;
|
376 |
|
377 |
}
|
378 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
function prepare_field($field){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
|
381 |
-
//
|
382 |
-
$field['type'] = $field['field_type'];
|
383 |
-
|
384 |
-
// Choices
|
385 |
$field['choices'] = acf_get_pretty_post_types($field['post_type']);
|
386 |
|
387 |
-
//
|
388 |
-
if(
|
389 |
|
390 |
-
|
391 |
-
|
392 |
-
|
|
|
393 |
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
$field['choices'][$v] = $v;
|
400 |
-
|
401 |
}
|
402 |
-
|
403 |
}
|
404 |
|
405 |
}
|
@@ -409,40 +437,48 @@ class acfe_field_post_types extends acf_field{
|
|
409 |
|
410 |
}
|
411 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
412 |
function format_value($value, $post_id, $field){
|
413 |
|
414 |
-
//
|
415 |
-
if(empty($value))
|
416 |
return $value;
|
|
|
417 |
|
418 |
-
//
|
419 |
$is_array = is_array($value);
|
420 |
$value = acf_get_array($value);
|
421 |
|
422 |
-
//
|
423 |
foreach($value as &$v){
|
424 |
|
425 |
-
//
|
426 |
$object = get_post_type_object($v);
|
427 |
|
428 |
-
if(!$object || is_wp_error($object))
|
429 |
-
continue;
|
430 |
|
431 |
-
//
|
432 |
if($field['return_format'] === 'object'){
|
433 |
-
|
434 |
$v = $object;
|
435 |
-
|
436 |
}
|
437 |
|
438 |
}
|
439 |
|
440 |
-
//
|
441 |
if(!$is_array){
|
442 |
$value = acfe_unarray($value);
|
443 |
}
|
444 |
|
445 |
-
//
|
446 |
return $value;
|
447 |
|
448 |
}
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
|
7 |
if(!class_exists('acfe_field_post_types')):
|
8 |
|
9 |
class acfe_field_post_types extends acf_field{
|
10 |
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
+
*/
|
14 |
+
function initialize(){
|
15 |
|
16 |
$this->name = 'acfe_post_types';
|
17 |
$this->label = __('Post Types', 'acfe');
|
30 |
'layout' => '',
|
31 |
'toggle' => 0,
|
32 |
'allow_custom' => 0,
|
33 |
+
'other_choice' => 0,
|
34 |
'return_format' => 'object',
|
35 |
);
|
36 |
|
|
|
|
|
37 |
}
|
38 |
|
39 |
+
|
40 |
+
/**
|
41 |
+
* render_field_settings
|
42 |
+
*
|
43 |
+
* @param $field
|
44 |
+
*/
|
45 |
function render_field_settings($field){
|
46 |
|
47 |
+
if(isset($field['default_value'])){
|
48 |
$field['default_value'] = acf_encode_choices($field['default_value'], false);
|
49 |
+
}
|
50 |
|
51 |
// Allow Post Type
|
52 |
acf_render_field_setting($field, array(
|
375 |
|
376 |
}
|
377 |
|
378 |
+
|
379 |
+
/**
|
380 |
+
* update_field
|
381 |
+
*
|
382 |
+
* @param $field
|
383 |
+
*
|
384 |
+
* @return mixed
|
385 |
+
*/
|
386 |
function update_field($field){
|
387 |
|
388 |
$field['default_value'] = acf_decode_choices($field['default_value'], true);
|
389 |
|
390 |
+
if($field['field_type'] === 'radio'){
|
391 |
$field['default_value'] = acfe_unarray($field['default_value']);
|
392 |
+
}
|
393 |
|
394 |
return $field;
|
395 |
|
396 |
}
|
397 |
|
398 |
+
|
399 |
+
/**
|
400 |
+
* prepare_field
|
401 |
+
*
|
402 |
+
* @param $field
|
403 |
+
*
|
404 |
+
* @return mixed
|
405 |
+
*/
|
406 |
function prepare_field($field){
|
407 |
+
|
408 |
+
// field type
|
409 |
+
$type = $field['type'];
|
410 |
+
$field_type = $field['field_type'];
|
411 |
+
|
412 |
+
$field['type'] = $field_type;
|
413 |
+
$field['wrapper']['data-ftype'] = $type;
|
414 |
|
415 |
+
// choices
|
|
|
|
|
|
|
416 |
$field['choices'] = acf_get_pretty_post_types($field['post_type']);
|
417 |
|
418 |
+
// allow custom
|
419 |
+
if($field['allow_custom']){
|
420 |
|
421 |
+
$value = acf_maybe_get($field, 'value');
|
422 |
+
$value = acf_get_array($value);
|
423 |
+
|
424 |
+
foreach($value as $v){
|
425 |
|
426 |
+
// append custom value to choices
|
427 |
+
if(!isset($field['choices'][ $v ])){
|
428 |
+
$field['choices'][ $v ] = $v;
|
429 |
+
$field['custom_choices'][ $v ] = $v;
|
|
|
|
|
|
|
430 |
}
|
|
|
431 |
}
|
432 |
|
433 |
}
|
437 |
|
438 |
}
|
439 |
|
440 |
+
|
441 |
+
/**
|
442 |
+
* format_value
|
443 |
+
*
|
444 |
+
* @param $value
|
445 |
+
* @param $post_id
|
446 |
+
* @param $field
|
447 |
+
*
|
448 |
+
* @return array|false|mixed|string[]
|
449 |
+
*/
|
450 |
function format_value($value, $post_id, $field){
|
451 |
|
452 |
+
// bail early
|
453 |
+
if(empty($value)){
|
454 |
return $value;
|
455 |
+
}
|
456 |
|
457 |
+
// vars
|
458 |
$is_array = is_array($value);
|
459 |
$value = acf_get_array($value);
|
460 |
|
461 |
+
// loop
|
462 |
foreach($value as &$v){
|
463 |
|
464 |
+
// get object
|
465 |
$object = get_post_type_object($v);
|
466 |
|
467 |
+
if(!$object || is_wp_error($object)) continue;
|
|
|
468 |
|
469 |
+
// return: object
|
470 |
if($field['return_format'] === 'object'){
|
|
|
471 |
$v = $object;
|
|
|
472 |
}
|
473 |
|
474 |
}
|
475 |
|
476 |
+
// check array
|
477 |
if(!$is_array){
|
478 |
$value = acfe_unarray($value);
|
479 |
}
|
480 |
|
481 |
+
// return
|
482 |
return $value;
|
483 |
|
484 |
}
|
includes/fields/field-recaptcha.php
CHANGED
@@ -1,14 +1,20 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
|
|
|
|
|
|
5 |
|
6 |
class acfe_field_recaptcha extends acf_field{
|
7 |
|
8 |
-
|
|
|
|
|
|
|
9 |
|
10 |
$this->name = 'acfe_recaptcha';
|
11 |
-
$this->label = __('Google reCaptcha', '
|
12 |
$this->category = 'jquery';
|
13 |
$this->defaults = array(
|
14 |
'required' => 0,
|
@@ -22,16 +28,20 @@ class acfe_field_recaptcha extends acf_field{
|
|
22 |
'secret_key' => '',
|
23 |
);
|
24 |
|
25 |
-
parent::__construct();
|
26 |
-
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
function render_field_settings($field){
|
30 |
|
31 |
// Version
|
32 |
acf_render_field_setting($field, array(
|
33 |
'label' => __('Version', 'acf'),
|
34 |
-
'instructions' => __('Select the reCaptcha version', '
|
35 |
'type' => 'select',
|
36 |
'name' => 'version',
|
37 |
'choices' => array(
|
@@ -43,7 +53,7 @@ class acfe_field_recaptcha extends acf_field{
|
|
43 |
// V2 Theme
|
44 |
acf_render_field_setting($field, array(
|
45 |
'label' => __('Theme', 'acf'),
|
46 |
-
'instructions' => __('Select the reCaptcha theme', '
|
47 |
'type' => 'select',
|
48 |
'name' => 'v2_theme',
|
49 |
'choices' => array(
|
@@ -64,7 +74,7 @@ class acfe_field_recaptcha extends acf_field{
|
|
64 |
// V2 Size
|
65 |
acf_render_field_setting($field, array(
|
66 |
'label' => __('Size', 'acf'),
|
67 |
-
'instructions' => __('Select the reCaptcha size', '
|
68 |
'type' => 'select',
|
69 |
'name' => 'v2_size',
|
70 |
'choices' => array(
|
@@ -85,7 +95,7 @@ class acfe_field_recaptcha extends acf_field{
|
|
85 |
// V3 Hide Logo
|
86 |
acf_render_field_setting($field, array(
|
87 |
'label' => __('Hide logo', 'acf'),
|
88 |
-
'instructions' => __('Hide the reCaptcha logo', '
|
89 |
'type' => 'true_false',
|
90 |
'name' => 'v3_hide_logo',
|
91 |
'ui' => true,
|
@@ -103,7 +113,7 @@ class acfe_field_recaptcha extends acf_field{
|
|
103 |
// Site Key
|
104 |
acf_render_field_setting($field, array(
|
105 |
'label' => __('Site key', 'acf'),
|
106 |
-
'instructions' => __('Enter the site key. <a href="https://www.google.com/recaptcha/admin" target="_blank">reCaptcha API Admin</a>', '
|
107 |
'type' => 'text',
|
108 |
'name' => 'site_key',
|
109 |
));
|
@@ -111,37 +121,46 @@ class acfe_field_recaptcha extends acf_field{
|
|
111 |
// Site Secret
|
112 |
acf_render_field_setting($field, array(
|
113 |
'label' => __('Secret key', 'acf'),
|
114 |
-
'instructions' => __('Enter the secret key. <a href="https://www.google.com/recaptcha/admin" target="_blank">reCaptcha API Admin</a>', '
|
115 |
'type' => 'text',
|
116 |
'name' => 'secret_key',
|
117 |
));
|
118 |
|
119 |
}
|
120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
function prepare_field($field){
|
122 |
|
123 |
if($field['version'] === 'v3'){
|
124 |
-
|
125 |
$field['wrapper']['class'] = 'acf-hidden';
|
126 |
-
|
127 |
}
|
128 |
|
129 |
return $field;
|
130 |
|
131 |
}
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
function render_field($field){
|
134 |
|
135 |
-
//
|
136 |
$site_key = acf_get_setting('acfe/field/recaptcha/site_key', $field['site_key']);
|
137 |
-
|
138 |
-
// Version
|
139 |
-
$field['version'] = acf_get_setting('acfe/field/recaptcha/version', $field['version']);
|
140 |
|
141 |
// V2
|
142 |
-
if($
|
143 |
-
|
144 |
-
<?php
|
145 |
// Theme & Size
|
146 |
$field['v2_theme'] = acf_get_setting('acfe/field/recaptcha/v2/theme', $field['v2_theme']);
|
147 |
$field['v2_size'] = acf_get_setting('acfe/field/recaptcha/v2/size', $field['v2_size']);
|
@@ -149,7 +168,7 @@ class acfe_field_recaptcha extends acf_field{
|
|
149 |
$wrapper = array(
|
150 |
'class' => 'acf-input-wrap acfe-field-recaptcha',
|
151 |
'data-site-key' => $site_key,
|
152 |
-
'data-version' =>
|
153 |
'data-size' => $field['v2_size'],
|
154 |
'data-theme' => $field['v2_theme'],
|
155 |
);
|
@@ -170,12 +189,9 @@ class acfe_field_recaptcha extends acf_field{
|
|
170 |
<script src="https://www.google.com/recaptcha/api.js?render=explicit" async defer></script>
|
171 |
|
172 |
<?php
|
173 |
-
|
174 |
-
|
175 |
-
}
|
176 |
-
|
177 |
// V3
|
178 |
-
elseif($
|
179 |
|
180 |
// Hide logo
|
181 |
$field['v3_hide_logo'] = acf_get_setting('acfe/field/recaptcha/v3/hide_logo', $field['v3_hide_logo']);
|
@@ -183,7 +199,7 @@ class acfe_field_recaptcha extends acf_field{
|
|
183 |
$wrapper = array(
|
184 |
'class' => 'acf-input-wrap acfe-field-recaptcha',
|
185 |
'data-site-key' => $site_key,
|
186 |
-
'data-version' =>
|
187 |
);
|
188 |
|
189 |
$hidden_input = array(
|
@@ -211,19 +227,33 @@ class acfe_field_recaptcha extends acf_field{
|
|
211 |
<script src="https://www.google.com/recaptcha/api.js?render=<?php echo $site_key; ?>" async defer></script>
|
212 |
|
213 |
<?php
|
214 |
-
return;
|
215 |
|
216 |
}
|
217 |
|
218 |
}
|
219 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
function validate_value($valid, $value, $field, $input){
|
221 |
|
222 |
// bail early if not required
|
223 |
-
if(!$field['required'])
|
|
|
|
|
224 |
|
225 |
// Avoid duplicate token: Do not process during Ajax validation
|
226 |
-
if(wp_doing_ajax())
|
|
|
|
|
227 |
|
228 |
// Secret key
|
229 |
$secret_key = acf_get_setting('acfe/field/recaptcha/secret_key', $field['secret_key']);
|
@@ -239,31 +269,45 @@ class acfe_field_recaptcha extends acf_field{
|
|
239 |
curl_close($curl);
|
240 |
|
241 |
// No API response
|
242 |
-
if(empty($api))
|
|
|
|
|
243 |
|
244 |
// Decode
|
245 |
$response = json_decode($api);
|
246 |
|
247 |
// No success
|
248 |
-
if(!isset($response->success))
|
249 |
-
|
250 |
-
|
251 |
|
|
|
|
|
252 |
$valid = false;
|
253 |
|
|
|
254 |
}elseif($response->success === true){
|
255 |
-
|
256 |
$valid = true;
|
257 |
-
|
258 |
}
|
259 |
-
|
|
|
260 |
return $valid;
|
261 |
|
262 |
}
|
263 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
function update_value($value, $post_id, $field){
|
265 |
|
266 |
-
//
|
267 |
return null;
|
268 |
|
269 |
}
|
@@ -271,4 +315,6 @@ class acfe_field_recaptcha extends acf_field{
|
|
271 |
}
|
272 |
|
273 |
// initialize
|
274 |
-
acf_register_field_type('acfe_field_recaptcha');
|
|
|
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
5 |
+
}
|
6 |
+
|
7 |
+
if(!class_exists('acfe_field_recaptcha')):
|
8 |
|
9 |
class acfe_field_recaptcha extends acf_field{
|
10 |
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
+
*/
|
14 |
+
function initialize(){
|
15 |
|
16 |
$this->name = 'acfe_recaptcha';
|
17 |
+
$this->label = __('Google reCaptcha', 'acfe');
|
18 |
$this->category = 'jquery';
|
19 |
$this->defaults = array(
|
20 |
'required' => 0,
|
28 |
'secret_key' => '',
|
29 |
);
|
30 |
|
|
|
|
|
31 |
}
|
32 |
|
33 |
+
|
34 |
+
/**
|
35 |
+
* render_field_settings
|
36 |
+
*
|
37 |
+
* @param $field
|
38 |
+
*/
|
39 |
function render_field_settings($field){
|
40 |
|
41 |
// Version
|
42 |
acf_render_field_setting($field, array(
|
43 |
'label' => __('Version', 'acf'),
|
44 |
+
'instructions' => __('Select the reCaptcha version', 'acfe'),
|
45 |
'type' => 'select',
|
46 |
'name' => 'version',
|
47 |
'choices' => array(
|
53 |
// V2 Theme
|
54 |
acf_render_field_setting($field, array(
|
55 |
'label' => __('Theme', 'acf'),
|
56 |
+
'instructions' => __('Select the reCaptcha theme', 'acfe'),
|
57 |
'type' => 'select',
|
58 |
'name' => 'v2_theme',
|
59 |
'choices' => array(
|
74 |
// V2 Size
|
75 |
acf_render_field_setting($field, array(
|
76 |
'label' => __('Size', 'acf'),
|
77 |
+
'instructions' => __('Select the reCaptcha size', 'acfe'),
|
78 |
'type' => 'select',
|
79 |
'name' => 'v2_size',
|
80 |
'choices' => array(
|
95 |
// V3 Hide Logo
|
96 |
acf_render_field_setting($field, array(
|
97 |
'label' => __('Hide logo', 'acf'),
|
98 |
+
'instructions' => __('Hide the reCaptcha logo', 'acfe'),
|
99 |
'type' => 'true_false',
|
100 |
'name' => 'v3_hide_logo',
|
101 |
'ui' => true,
|
113 |
// Site Key
|
114 |
acf_render_field_setting($field, array(
|
115 |
'label' => __('Site key', 'acf'),
|
116 |
+
'instructions' => __('Enter the site key. <a href="https://www.google.com/recaptcha/admin" target="_blank">reCaptcha API Admin</a>', 'acfe'),
|
117 |
'type' => 'text',
|
118 |
'name' => 'site_key',
|
119 |
));
|
121 |
// Site Secret
|
122 |
acf_render_field_setting($field, array(
|
123 |
'label' => __('Secret key', 'acf'),
|
124 |
+
'instructions' => __('Enter the secret key. <a href="https://www.google.com/recaptcha/admin" target="_blank">reCaptcha API Admin</a>', 'acfe'),
|
125 |
'type' => 'text',
|
126 |
'name' => 'secret_key',
|
127 |
));
|
128 |
|
129 |
}
|
130 |
|
131 |
+
|
132 |
+
/**
|
133 |
+
* prepare_field
|
134 |
+
*
|
135 |
+
* @param $field
|
136 |
+
*
|
137 |
+
* @return array
|
138 |
+
*/
|
139 |
function prepare_field($field){
|
140 |
|
141 |
if($field['version'] === 'v3'){
|
|
|
142 |
$field['wrapper']['class'] = 'acf-hidden';
|
|
|
143 |
}
|
144 |
|
145 |
return $field;
|
146 |
|
147 |
}
|
148 |
|
149 |
+
|
150 |
+
/**
|
151 |
+
* render_field
|
152 |
+
*
|
153 |
+
* @param $field
|
154 |
+
*/
|
155 |
function render_field($field){
|
156 |
|
157 |
+
// vars
|
158 |
$site_key = acf_get_setting('acfe/field/recaptcha/site_key', $field['site_key']);
|
159 |
+
$version = acf_get_setting('acfe/field/recaptcha/version', $field['version']);
|
|
|
|
|
160 |
|
161 |
// V2
|
162 |
+
if($version === 'v2'){
|
163 |
+
|
|
|
164 |
// Theme & Size
|
165 |
$field['v2_theme'] = acf_get_setting('acfe/field/recaptcha/v2/theme', $field['v2_theme']);
|
166 |
$field['v2_size'] = acf_get_setting('acfe/field/recaptcha/v2/size', $field['v2_size']);
|
168 |
$wrapper = array(
|
169 |
'class' => 'acf-input-wrap acfe-field-recaptcha',
|
170 |
'data-site-key' => $site_key,
|
171 |
+
'data-version' => $version,
|
172 |
'data-size' => $field['v2_size'],
|
173 |
'data-theme' => $field['v2_theme'],
|
174 |
);
|
189 |
<script src="https://www.google.com/recaptcha/api.js?render=explicit" async defer></script>
|
190 |
|
191 |
<?php
|
192 |
+
|
|
|
|
|
|
|
193 |
// V3
|
194 |
+
}elseif($version === 'v3'){
|
195 |
|
196 |
// Hide logo
|
197 |
$field['v3_hide_logo'] = acf_get_setting('acfe/field/recaptcha/v3/hide_logo', $field['v3_hide_logo']);
|
199 |
$wrapper = array(
|
200 |
'class' => 'acf-input-wrap acfe-field-recaptcha',
|
201 |
'data-site-key' => $site_key,
|
202 |
+
'data-version' => $version,
|
203 |
);
|
204 |
|
205 |
$hidden_input = array(
|
227 |
<script src="https://www.google.com/recaptcha/api.js?render=<?php echo $site_key; ?>" async defer></script>
|
228 |
|
229 |
<?php
|
|
|
230 |
|
231 |
}
|
232 |
|
233 |
}
|
234 |
|
235 |
+
|
236 |
+
/**
|
237 |
+
* validate_value
|
238 |
+
*
|
239 |
+
* @param $valid
|
240 |
+
* @param $value
|
241 |
+
* @param $field
|
242 |
+
* @param $input
|
243 |
+
*
|
244 |
+
* @return bool|mixed|string|null
|
245 |
+
*/
|
246 |
function validate_value($valid, $value, $field, $input){
|
247 |
|
248 |
// bail early if not required
|
249 |
+
if(!$field['required']){
|
250 |
+
return $valid;
|
251 |
+
}
|
252 |
|
253 |
// Avoid duplicate token: Do not process during Ajax validation
|
254 |
+
if(wp_doing_ajax()){
|
255 |
+
return $valid;
|
256 |
+
}
|
257 |
|
258 |
// Secret key
|
259 |
$secret_key = acf_get_setting('acfe/field/recaptcha/secret_key', $field['secret_key']);
|
269 |
curl_close($curl);
|
270 |
|
271 |
// No API response
|
272 |
+
if(empty($api)){
|
273 |
+
return __('An error has occured');
|
274 |
+
}
|
275 |
|
276 |
// Decode
|
277 |
$response = json_decode($api);
|
278 |
|
279 |
// No success
|
280 |
+
if(!isset($response->success)){
|
281 |
+
return __('An error has occured');
|
282 |
+
}
|
283 |
|
284 |
+
// fail
|
285 |
+
if($response->success === false){
|
286 |
$valid = false;
|
287 |
|
288 |
+
// success
|
289 |
}elseif($response->success === true){
|
|
|
290 |
$valid = true;
|
|
|
291 |
}
|
292 |
+
|
293 |
+
// return
|
294 |
return $valid;
|
295 |
|
296 |
}
|
297 |
|
298 |
+
|
299 |
+
/**
|
300 |
+
* update_value
|
301 |
+
*
|
302 |
+
* @param $value
|
303 |
+
* @param $post_id
|
304 |
+
* @param $field
|
305 |
+
*
|
306 |
+
* @return null
|
307 |
+
*/
|
308 |
function update_value($value, $post_id, $field){
|
309 |
|
310 |
+
// do not save value
|
311 |
return null;
|
312 |
|
313 |
}
|
315 |
}
|
316 |
|
317 |
// initialize
|
318 |
+
acf_register_field_type('acfe_field_recaptcha');
|
319 |
+
|
320 |
+
endif;
|
includes/fields/field-repeater.php
CHANGED
@@ -1,62 +1,94 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if(!defined('ABSPATH'))
|
4 |
exit;
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Add Settings
|
8 |
-
*/
|
9 |
-
add_action('acf/render_field_settings/type=repeater', 'acfe_repeater_settings', 0);
|
10 |
-
function acfe_repeater_settings($field){
|
11 |
-
|
12 |
-
// Stylised button
|
13 |
-
acf_render_field_setting($field, array(
|
14 |
-
'label' => __('Stylised Button'),
|
15 |
-
'name' => 'acfe_repeater_stylised_button',
|
16 |
-
'key' => 'acfe_repeater_stylised_button',
|
17 |
-
'instructions' => __('Better row button integration'),
|
18 |
-
'type' => 'true_false',
|
19 |
-
'message' => '',
|
20 |
-
'default_value' => false,
|
21 |
-
'ui' => true,
|
22 |
-
));
|
23 |
-
|
24 |
}
|
25 |
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
-
|
30 |
-
|
|
|
|
|
31 |
|
32 |
-
$
|
33 |
|
34 |
}
|
35 |
|
36 |
-
// Lock sortable
|
37 |
-
$acfe_repeater_lock_sortable = false;
|
38 |
-
$acfe_repeater_lock_sortable = apply_filters('acfe/repeater/lock', $acfe_repeater_lock_sortable, $field);
|
39 |
-
$acfe_repeater_lock_sortable = apply_filters('acfe/repeater/lock/name=' . $field['_name'], $acfe_repeater_lock_sortable, $field);
|
40 |
-
$acfe_repeater_lock_sortable = apply_filters('acfe/repeater/lock/key=' . $field['key'], $acfe_repeater_lock_sortable, $field);
|
41 |
|
42 |
-
if($acfe_repeater_lock_sortable){
|
43 |
-
|
44 |
-
$wrapper['data-acfe-repeater-lock'] = 1;
|
1 |
<?php
|
2 |
|
3 |
+
if(!defined('ABSPATH')){
|
4 |
exit;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
}
|
6 |
|
7 |
+
if(!class_exists('acfe_field_repeater')):
|
8 |
+
|
9 |
+
class acfe_field_repeater extends acfe_field_extend{
|
10 |
+
|
11 |
+
/**
|
12 |
+
* initialize
|
13 |
+
*/
|
14 |
+
function initialize(){
|
15 |
|
16 |
+
$this->name = 'repeater';
|
17 |
+
$this->defaults = array(
|
18 |
+
'acfe_repeater_stylised_button' => 0,
|
19 |
+
);
|
20 |
|
21 |
+
$this->add_field_action('acf/render_field_settings', array($this, '_render_field_settings'), 0);
|
22 |
|
23 |
}
|
24 |
|
|
|
|
|
|
|
|
|
|
|
25 |
|
|
|
|
|
|