Version Description
ACF Extended Pro 0.8.8.11:
- Field: Date/Time Picker - Fixed instructions placement in ACF 6.0.x
- Field: Google Map - Added
is_array()
control informat_value()
- Field: Payment - Added initialization on
ready
to avoid too early JS init - Module: Scripts - Bumped "Clean Orphan Meta" script version to 1.1
- Module: Scripts - Added "Script Launcher" to easily launch scripts using hooks
- Module: Settings - Added
modules/scripts/demo
setting - General: ACF Updates screen has been uniformized accross 5.10.x to ACF 6.0.x versions
ACF Extended Basic 0.8.8.11:
- Field: Advanced Link - Reworked code & unified unformatted value
- Field: Clone - Fixed Seamless Style CSS in
acf-table
- Field: Columns - Fixed Columns render in Repeater when user sort rows
- Field: Flexible Content - Added check in
acfe/load_fields
to avoid potential PHP warning with third party plugins - Field: Flexible Content - Fixed "Added Layout" scroll animation
- Field: Flexible Content - Fixed Dynamic Preview Ajax when inside ACF Ajax Screen Check
- Field: Group - Fixed Seamless Style CSS in
acf-table
- Field: Post Object - Fixed older ACF version < 5.10 Select2 escape
- Field: Tab - Fixed last opened tab preference on page refresh
- Field: Taxonomy Terms - Fixed "Level" ajax setting not working correctly in ACF 6.0.x
- Field: Taxonomy Terms - Enhanced Load Terms/Save Terms settings logic to avoid call on front-end
- Field Group: Fixed Flexible Content "Duplicate Layout" sub fields moved to original layout
- Field Settings: Bidirectional - Fixed potential php warning when deleting related field groups
- Fields: Added
acf_translate()
inacf/translate_field/type=field_type
for all field types - Module: Dev Mode - "Bulk actions" is correctly hidden when metabox are cleared
- Module: Enhanced UI - Fixed Tabs "Align Left" placement on User Edit Screen
- Module: Form - Fixed "User Action" uploaded files so it can be used in a later action
- Module: Form - Added "User Action" Target control before processing builtin User Validation
- Module: Form - Added
acfe/form/submit/post_append_terms
filter to change thewp_set_object_terms
append - Module: Settings - Added
rest_api_enabled
rest_api_format
rest_api_embed_links
preload_blocks
enable_shortcode
settings - General: Fixed various ACF 6.0.x CSS
- General: Added multiple plugin activation warning messages
- General: Added select2 hooks controls to avoid initialize without
field
instance - General: Introduced
acfe.FieldExtender
and deprecatedacfe.fieldExtend
- General: Introduced
acfe.Modal
and deprecatedacfe.Popup
- General: Replaced
_.escape()
withacf.strEscape()
Download this release
Release Info
Developer | hwk-fr |
Plugin | Advanced Custom Fields: Extended |
Version | 0.8.8.11 |
Comparing to | |
See all releases |
Code changes from version 0.8.8.10 to 0.8.8.11
- acf-extended.php +41 -2
- assets/css/acfe-admin.css +9 -0
- assets/css/acfe-admin.min.css +1 -1
- assets/css/acfe-field-group.css +38 -2
- assets/css/acfe-field-group.min.css +1 -1
- assets/css/acfe-input.css +78 -15
- assets/css/acfe-input.min.css +1 -1
- assets/css/acfe-ui.css +0 -5
- assets/css/acfe-ui.min.css +1 -1
- assets/css/acfe.css +288 -307
- assets/css/acfe.min.css +1 -1
- assets/js/acfe-admin.js +1 -1
- assets/js/acfe-admin.min.js +1 -1
- assets/js/acfe-field-group.js +14 -6
- assets/js/acfe-field-group.min.js +1 -1
- assets/js/acfe-input.js +1502 -1270
- assets/js/acfe-input.min.js +1 -1
- assets/js/acfe.js +766 -250
- assets/js/acfe.min.js +1 -1
- includes/acfe-field-functions.php +2 -2
- includes/acfe-field-group-functions.php +2 -2
- includes/acfe-post-functions.php +57 -5
- includes/admin/compatibility.php +21 -0
- includes/admin/plugins.php +18 -10
- includes/admin/settings.php +83 -22
- includes/admin/tools/block-types-export.php +8 -2
- includes/admin/tools/block-types-import.php +8 -2
- includes/admin/tools/forms-export.php +8 -2
- includes/admin/tools/forms-import.php +8 -2
- includes/admin/tools/options-pages-export.php +8 -2
- includes/admin/tools/options-pages-import.php +8 -2
- includes/admin/tools/post-types-export.php +8 -2
- includes/admin/tools/post-types-import.php +9 -3
- includes/admin/tools/taxonomies-export.php +8 -2
- includes/admin/tools/taxonomies-import.php +8 -2
- includes/compatibility.php +22 -0
- includes/field-groups/field-group-advanced.php +14 -6
- includes/field-groups/field-group-category.php +5 -1
- includes/field-groups/field-group-display-title.php +10 -3
- includes/field-groups/field-group-hide-on-screen.php +37 -21
- includes/field-groups/field-group-instruction-placement.php +17 -23
- includes/field-groups/field-group-meta.php +29 -15
- includes/field-groups/field-group-permissions.php +23 -17
- includes/field-groups/field-group.php +49 -48
- includes/field-groups/field-groups-local.php +75 -33
- includes/field-groups/field-groups.php +219 -125
- includes/fields-settings/bidirectional.php +196 -108
- includes/fields-settings/data.php +5 -5
- includes/fields-settings/settings.php +77 -61
- includes/fields-settings/validation.php +149 -74
- includes/fields/field-advanced-link.php +578 -354
- includes/fields/field-button.php +16 -0
- includes/fields/field-clone.php +20 -1
- includes/fields/field-code-editor.php +8 -8
- includes/fields/field-file.php +2 -4
- includes/fields/field-flexible-content-actions.php +34 -2
- includes/fields/field-flexible-content-async.php +1 -1
- includes/fields/field-flexible-content-edit.php +15 -8
- includes/fields/field-flexible-content-hide.php +2 -2
- includes/fields/field-flexible-content-preview.php +8 -6
- includes/fields/field-flexible-content-settings.php +15 -11
- includes/fields/field-flexible-content-state.php +2 -1
- includes/fields/field-flexible-content-thumbnail.php +1 -1
- includes/fields/field-flexible-content.php +30 -0
- includes/fields/field-forms.php +17 -0
- includes/fields/field-group.php +16 -0
- includes/fields/field-post-statuses.php +17 -0
- includes/fields/field-post-types.php +17 -0
- includes/fields/field-select.php +17 -0
- includes/fields/field-slug.php +18 -0
- includes/fields/field-taxonomies.php +17 -0
- includes/fields/field-taxonomy-terms.php +46 -9
- includes/fields/field-user-roles.php +17 -0
- includes/hooks.php +1 -1
- includes/init.php +10 -17
- includes/locations/post-type-all.php +18 -6
- includes/modules/author.php +43 -13
- includes/modules/autosync.php +238 -115
- includes/modules/dev-clean-meta.php +2 -2
- includes/modules/dev-delete-meta.php +3 -0
- includes/modules/forms-action-post.php +20 -2
- includes/modules/forms-action-user.php +3 -2
- includes/modules/forms-helpers.php +14 -0
- includes/modules/options.php +129 -101
- includes/modules/single-meta.php +325 -150
- includes/modules/ui.php +38 -15
- includes/multilang.php +265 -115
- includes/screens/screen-attachment.php +1 -1
- includes/settings.php +127 -8
- includes/upgrades.php +43 -44
- lang/acfe-fr_FR.mo +0 -0
- lang/acfe-fr_FR.po +994 -4635
acf-extended.php
CHANGED
@@ -2,7 +2,7 @@
|
|
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 |
* Plugin URI: https://www.acf-extended.com
|
8 |
* Author URI: https://www.acf-extended.com
|
@@ -19,7 +19,7 @@ if(!class_exists('ACFE')):
|
|
19 |
class ACFE{
|
20 |
|
21 |
// vars
|
22 |
-
var $version = '0.8.8.
|
23 |
|
24 |
/**
|
25 |
* construct
|
@@ -392,4 +392,43 @@ function acfe(){
|
|
392 |
|
393 |
acfe();
|
394 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
395 |
endif;
|
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.11
|
6 |
* Author: ACF Extended
|
7 |
* Plugin URI: https://www.acf-extended.com
|
8 |
* Author URI: https://www.acf-extended.com
|
19 |
class ACFE{
|
20 |
|
21 |
// vars
|
22 |
+
var $version = '0.8.8.11';
|
23 |
|
24 |
/**
|
25 |
* construct
|
392 |
|
393 |
acfe();
|
394 |
|
395 |
+
else:
|
396 |
+
|
397 |
+
add_action('after_plugin_row_' . plugin_basename(__FILE__), function($plugin_file, $plugin_data, $status){
|
398 |
+
|
399 |
+
// vars
|
400 |
+
$colspan = version_compare($GLOBALS['wp_version'], '5.5', '<') ? 3 : 4;
|
401 |
+
$pro = defined('ACFE_PRO') && ACFE_PRO;
|
402 |
+
|
403 |
+
// message
|
404 |
+
$message = __('An another version of ACF Extended has been detected. Please activate only one version.', 'acfe');
|
405 |
+
if($pro){
|
406 |
+
$message = __('ACF Extended Pro has been detected. Please activate only one version.', 'acfe');
|
407 |
+
}
|
408 |
+
|
409 |
+
// class
|
410 |
+
$class = 'acfe-plugin-tr';
|
411 |
+
if(isset($plugin_data['update']) && !empty($plugin_data['update'])){
|
412 |
+
$class .= ' acfe-plugin-tr-update';
|
413 |
+
}
|
414 |
+
|
415 |
+
?>
|
416 |
+
<style>
|
417 |
+
.plugins tr[data-plugin='<?php echo $plugin_file; ?>'] th,
|
418 |
+
.plugins tr[data-plugin='<?php echo $plugin_file; ?>'] td{
|
419 |
+
box-shadow:none;
|
420 |
+
}
|
421 |
+
</style>
|
422 |
+
|
423 |
+
<tr class="plugin-update-tr active <?php echo $class; ?>">
|
424 |
+
<td colspan="<?php echo $colspan; ?>" class="plugin-update colspanchange">
|
425 |
+
<div class="update-message notice inline notice-error notice-alt">
|
426 |
+
<p><?php echo $message; ?></p>
|
427 |
+
</div>
|
428 |
+
</td>
|
429 |
+
</tr>
|
430 |
+
<?php
|
431 |
+
|
432 |
+
}, 5, 3);
|
433 |
+
|
434 |
endif;
|
assets/css/acfe-admin.css
CHANGED
@@ -42,6 +42,15 @@
|
|
42 |
margin: 20px 0 0
|
43 |
}
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
.acf-admin-toolbar i.acf-icon,
|
46 |
.acf-btn i.acf-icon {
|
47 |
display: -webkit-inline-box;
|
42 |
margin: 20px 0 0
|
43 |
}
|
44 |
|
45 |
+
.plugins tr.acfe-plugin-tr.acfe-plugin-tr-update td {
|
46 |
+
-webkit-box-shadow: none !important;
|
47 |
+
box-shadow: none !important
|
48 |
+
}
|
49 |
+
|
50 |
+
.plugins tr.acfe-plugin-tr.acfe-plugin-tr-update .update-message {
|
51 |
+
margin-bottom: 0
|
52 |
+
}
|
53 |
+
|
54 |
.acf-admin-toolbar i.acf-icon,
|
55 |
.acf-btn i.acf-icon {
|
56 |
display: -webkit-inline-box;
|
assets/css/acfe-admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.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 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}.post-type-attachment #post-body-content #acf_after_title-sortables{margin:20px 0 0}.acf-admin-toolbar i.acf-icon,.acf-btn i.acf-icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:20px;height:20px;background-color:currentColor;border:none;border-radius:0;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;text-indent:500%;white-space:nowrap;overflow:hidden}body:not(.acf-admin-single-field-group) .acf-tooltip{font-size:13px}@media only screen and (max-width:1300px){.acf-admin-toolbar i.acf-icon{display:none!important}}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,.postbox#acfe-wp-custom-fields+.acfe-dev-bulk{padding-top:0;margin-top:-8px;margin-bottom:20px}.postbox#acfe-acf-custom-fields+.acfe-dev-bulk:last-child,.postbox#acfe-wp-custom-fields+.acfe-dev-bulk: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-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}#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}.acf-postbox.seamless>.inside>.acf-field{padding:15px 12px}.acf-flexible-content .layout.ui-sortable-helper:first-child{margin-top:20px}.acf-flexible-content .layout.ui-sortable-helper:first-child+.layout.ui-sortable-placeholder{margin-top:0}.acf-fields.-top>.acf-field-flexible-content>.acf-input>.acf-flexible-content>.values>.layout.ui-sortable-helper:first-child{margin-top:10px}.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}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--single{border-radius:3px;height:30px;outline:0}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--single .select2-selection__rendered{font-size:14px;height:28px;line-height:27px;padding-right:23px}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--single .select2-selection__clear{line-height:26px;height:28px;font-size:16px;margin-right:0}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--single button.select2-selection__clear{position:absolute;right:24px;padding:0}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--single button.select2-selection__clear span{line-height:26px;height:28px;display:inline-block}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--single .select2-selection__placeholder{color:#444}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--single .select2-selection__arrow{height:28px}body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .acf-field .select2-container.-acf.select2-container--open .select2-selection--single,body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .select2-container .select2-dropdown{margin-top:0;border-color:#aaa!important}body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-webkit-input-placeholder{color:#777}body:not(.acf-admin-6) .select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-moz-placeholder{color:#777}body:not(.acf-admin-6) .select2-container .select2-dropdown .select2-search--dropdown .select2-search__field:-ms-input-placeholder{color:#777}body:not(.acf-admin-6) .select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-ms-input-placeholder{color:#777}body:not(.acf-admin-6) .select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::placeholder{color:#777}body:not(.acf-admin-6) .select2-container .select2-dropdown .select2-results__option{margin-bottom:0}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple{min-height:30px;line-height:1;border-radius:3px;padding:0}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__rendered{padding:0 2px;display:inline-block;margin:0}body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice .select2-selection__choice__display{padding:0}body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove:hover{background:0 0}body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple button.select2-selection__clear{float:right}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline{float:left;width:auto}body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-webkit-input-placeholder{color:#444}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-moz-placeholder{color:#444}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field:-ms-input-placeholder{color:#444}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-ms-input-placeholder{color:#444}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder{color:#444}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child:last-child .select2-search__field{padding-left:6px}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__rendered+.select2-search--inline{float:none;display:inline-block;vertical-align:top}body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .acf-field .select2-container.-acf.select2-container--focus .select2-selection--multiple,body:not(.acf-admin-6) .acf-field .select2-container.-acf.select2-container--open .select2-selection--multiple{border-color:#7e8993}body:not(.acf-admin-6) .select2-selection__choice>code,body:not(.acf-admin-6) .select2-selection__rendered>code{font-size:12px;padding:3px;vertical-align:1px;line-height:12px}body:not(.acf-admin-6) .select2-results__option>code{font-size:12px}body:not(.acf-admin-6) .acf-input-wrap .acf-is-prepended+.select2>.selection>.select2-selection{border-radius:0 3px 3px 0!important}body:not(.acf-admin-6) .acf-input-wrap .acf-is-appended+.select2>.selection>.select2-selection{border-radius:3px 0 0 3px!important}body:not(.acf-admin-6) .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 |
+
.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 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}.post-type-attachment #post-body-content #acf_after_title-sortables{margin:20px 0 0}.plugins tr.acfe-plugin-tr.acfe-plugin-tr-update td{-webkit-box-shadow:none!important;box-shadow:none!important}.plugins tr.acfe-plugin-tr.acfe-plugin-tr-update .update-message{margin-bottom:0}.acf-admin-toolbar i.acf-icon,.acf-btn i.acf-icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:20px;height:20px;background-color:currentColor;border:none;border-radius:0;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;text-indent:500%;white-space:nowrap;overflow:hidden}body:not(.acf-admin-single-field-group) .acf-tooltip{font-size:13px}@media only screen and (max-width:1300px){.acf-admin-toolbar i.acf-icon{display:none!important}}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,.postbox#acfe-wp-custom-fields+.acfe-dev-bulk{padding-top:0;margin-top:-8px;margin-bottom:20px}.postbox#acfe-acf-custom-fields+.acfe-dev-bulk:last-child,.postbox#acfe-wp-custom-fields+.acfe-dev-bulk: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-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}#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}.acf-postbox.seamless>.inside>.acf-field{padding:15px 12px}.acf-flexible-content .layout.ui-sortable-helper:first-child{margin-top:20px}.acf-flexible-content .layout.ui-sortable-helper:first-child+.layout.ui-sortable-placeholder{margin-top:0}.acf-fields.-top>.acf-field-flexible-content>.acf-input>.acf-flexible-content>.values>.layout.ui-sortable-helper:first-child{margin-top:10px}.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}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--single{border-radius:3px;height:30px;outline:0}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--single .select2-selection__rendered{font-size:14px;height:28px;line-height:27px;padding-right:23px}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--single .select2-selection__clear{line-height:26px;height:28px;font-size:16px;margin-right:0}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--single button.select2-selection__clear{position:absolute;right:24px;padding:0}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--single button.select2-selection__clear span{line-height:26px;height:28px;display:inline-block}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--single .select2-selection__placeholder{color:#444}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--single .select2-selection__arrow{height:28px}body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .acf-field .select2-container.-acf.select2-container--open .select2-selection--single,body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .select2-container .select2-dropdown{margin-top:0;border-color:#aaa!important}body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-webkit-input-placeholder{color:#777}body:not(.acf-admin-6) .select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-moz-placeholder{color:#777}body:not(.acf-admin-6) .select2-container .select2-dropdown .select2-search--dropdown .select2-search__field:-ms-input-placeholder{color:#777}body:not(.acf-admin-6) .select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::-ms-input-placeholder{color:#777}body:not(.acf-admin-6) .select2-container .select2-dropdown .select2-search--dropdown .select2-search__field::placeholder{color:#777}body:not(.acf-admin-6) .select2-container .select2-dropdown .select2-results__option{margin-bottom:0}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple{min-height:30px;line-height:1;border-radius:3px;padding:0}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__rendered{padding:0 2px;display:inline-block;margin:0}body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice .select2-selection__choice__display{padding:0}body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove:hover{background:0 0}body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple button.select2-selection__clear{float:right}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline{float:left;width:auto}body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-webkit-input-placeholder{color:#444}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-moz-placeholder{color:#444}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field:-ms-input-placeholder{color:#444}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::-ms-input-placeholder{color:#444}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder{color:#444}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-search--inline:first-child:last-child .select2-search__field{padding-left:6px}body:not(.acf-admin-6) .acf-field .select2-container.-acf .select2-selection--multiple .select2-selection__rendered+.select2-search--inline{float:none;display:inline-block;vertical-align:top}body:not(.acf-admin-6) .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}body:not(.acf-admin-6) .acf-field .select2-container.-acf.select2-container--focus .select2-selection--multiple,body:not(.acf-admin-6) .acf-field .select2-container.-acf.select2-container--open .select2-selection--multiple{border-color:#7e8993}body:not(.acf-admin-6) .select2-selection__choice>code,body:not(.acf-admin-6) .select2-selection__rendered>code{font-size:12px;padding:3px;vertical-align:1px;line-height:12px}body:not(.acf-admin-6) .select2-results__option>code{font-size:12px}body:not(.acf-admin-6) .acf-input-wrap .acf-is-prepended+.select2>.selection>.select2-selection{border-radius:0 3px 3px 0!important}body:not(.acf-admin-6) .acf-input-wrap .acf-is-appended+.select2>.selection>.select2-selection{border-radius:3px 0 0 3px!important}body:not(.acf-admin-6) .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
@@ -411,7 +411,7 @@ body.acf-admin-5-3 .acf-field-setting-fc_layout .acf-input-wrap.select select {
|
|
411 |
}
|
412 |
|
413 |
.acf-admin-6.acf-admin-single-field-group .wrap>#message.updated {
|
414 |
-
margin-bottom:
|
415 |
}
|
416 |
|
417 |
.acf-admin-6.acf-admin-single-field-group .acf-field-object .handle li.li-field-label::before {
|
@@ -447,6 +447,16 @@ body.acf-admin-5-3 .acf-field-setting-fc_layout .acf-input-wrap.select select {
|
|
447 |
width: auto
|
448 |
}
|
449 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-flexible-content>.acf-input,
|
451 |
.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-flexible-content>.acf-label,
|
452 |
.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-group>.acf-input,
|
@@ -599,14 +609,40 @@ body.acf-admin-5-3 .acf-field-setting-fc_layout .acf-input-wrap.select select {
|
|
599 |
padding-left: 0
|
600 |
}
|
601 |
|
|
|
|
|
|
|
|
|
602 |
.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_category],
|
603 |
.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label] {
|
604 |
padding-left: 0;
|
605 |
-
padding-right: 0
|
|
|
606 |
}
|
607 |
|
608 |
.acf-admin-6.acf-admin-single-field-group .acf-field-setting-acfe_field_group_condition {
|
609 |
padding-right: 72px;
|
610 |
padding-left: 72px;
|
611 |
margin-top: 32px
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
612 |
}
|
411 |
}
|
412 |
|
413 |
.acf-admin-6.acf-admin-single-field-group .wrap>#message.updated {
|
414 |
+
margin-bottom: 16px !important
|
415 |
}
|
416 |
|
417 |
.acf-admin-6.acf-admin-single-field-group .acf-field-object .handle li.li-field-label::before {
|
447 |
width: auto
|
448 |
}
|
449 |
|
450 |
+
.acf-admin-6.acf-admin-single-field-group #acf-field-group-options .acf-field[data-name=acfe_form] .acf-label {
|
451 |
+
display: -webkit-inline-box;
|
452 |
+
display: -ms-inline-flexbox;
|
453 |
+
display: inline-flex
|
454 |
+
}
|
455 |
+
|
456 |
+
.acf-admin-6.acf-admin-single-field-group #acf-field-group-acfe .acf-label {
|
457 |
+
display: block
|
458 |
+
}
|
459 |
+
|
460 |
.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-flexible-content>.acf-input,
|
461 |
.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-flexible-content>.acf-label,
|
462 |
.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-group>.acf-input,
|
609 |
padding-left: 0
|
610 |
}
|
611 |
|
612 |
+
.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-fc-meta-max+li {
|
613 |
+
clear: both
|
614 |
+
}
|
615 |
+
|
616 |
.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_category],
|
617 |
.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label] {
|
618 |
padding-left: 0;
|
619 |
+
padding-right: 0;
|
620 |
+
width: 100%
|
621 |
}
|
622 |
|
623 |
.acf-admin-6.acf-admin-single-field-group .acf-field-setting-acfe_field_group_condition {
|
624 |
padding-right: 72px;
|
625 |
padding-left: 72px;
|
626 |
margin-top: 32px
|
627 |
+
}
|
628 |
+
|
629 |
+
.acf-admin-6.acf-admin-single-field-group .acfe-modal>.acfe-modal-wrapper>.acfe-modal-title>.title {
|
630 |
+
min-height: unset;
|
631 |
+
display: block;
|
632 |
+
padding: 0
|
633 |
+
}
|
634 |
+
|
635 |
+
.acf-admin-6.acf-admin-single-field-group .acf-hl[data-cols="6"] {
|
636 |
+
-ms-flex-wrap: wrap;
|
637 |
+
flex-wrap: wrap
|
638 |
+
}
|
639 |
+
|
640 |
+
.acf-admin-6.acf-admin-single-field-group .acf-hl[data-cols="6"]>li {
|
641 |
+
width: 33.33%
|
642 |
+
}
|
643 |
+
|
644 |
+
.acf-admin-6.acf-admin-single-field-group .acf-hl[data-cols="6"]>li:nth-child(4),
|
645 |
+
.acf-admin-6.acf-admin-single-field-group .acf-hl[data-cols="6"]>li:nth-child(5),
|
646 |
+
.acf-admin-6.acf-admin-single-field-group .acf-hl[data-cols="6"]>li:nth-child(6) {
|
647 |
+
margin-top: 10px
|
648 |
}
|
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}.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%}.acf-admin-6.acf-admin-field-groups .wp-list-table td.check-column,.acf-admin-6.acf-admin-field-groups .wp-list-table th.check-column{padding-right:25px;padding-left:15px}.acf-admin-6.acf-admin-field-groups .wp-list-table tbody td,.acf-admin-6.acf-admin-field-groups .wp-list-table tbody th,.acf-admin-6.acf-admin-field-groups .wp-list-table tfoot td,.acf-admin-6.acf-admin-field-groups .wp-list-table tfoot th,.acf-admin-6.acf-admin-field-groups .wp-list-table thead td,.acf-admin-6.acf-admin-field-groups .wp-list-table thead th{padding-right:10px;padding-left:10px}.acf-admin-6.acf-admin-field-groups .wp-list-table .column-acf-count{width:70px}.acf-admin-6.acf-admin-field-groups .wp-list-table .column-acf-location{width:200px}.acf-admin-6.acf-admin-field-groups .wp-list-table .column-acfe-autosync-json,.acf-admin-6.acf-admin-field-groups .wp-list-table .column-acfe-autosync-php,.acf-admin-6.acf-admin-field-groups .wp-list-table .column-acfe-load{width:70px}.acf-admin-6.acf-admin-field-groups .wp-list-table a.row-title{font-size:14px!important}.acf-admin-6.acf-admin-field-groups .wp-list-table .row-actions{margin-top:4px}.acf-admin-6.acf-admin-single-field-group .wrap>#message.updated{margin-bottom:15px!important}.acf-admin-6.acf-admin-single-field-group .acf-field-object .handle li.li-field-label::before{width:16px}.acf-admin-6.acf-admin-single-field-group .acf-field-object .handle li.li-field-label>strong a{font-size:14px}.acf-admin-6.acf-admin-single-field-group .acf-fields .acf-field-tab{display:none!important}.acf-admin-6.acf-admin-single-field-group #submitdiv .button{height:32px}.acf-admin-6.acf-admin-single-field-group .acf-repeater .acf-actions .acf-button{float:left}.acf-admin-6.acf-admin-single-field-group #acf-field-group-options .acf-field .acf-table>tbody>tr>td,.acf-admin-6.acf-admin-single-field-group #acf-field-group-options .acf-field .acf-table>tbody>tr>th,.acf-admin-6.acf-admin-single-field-group #acf-field-group-options .acf-field .acf-table>thead>tr>td,.acf-admin-6.acf-admin-single-field-group #acf-field-group-options .acf-field .acf-table>thead>tr>th{padding:8px}.acf-admin-6.acf-admin-single-field-group #acf-field-group-options .acf-field .acf-table td.acf-field,.acf-admin-6.acf-admin-single-field-group #acf-field-group-options .acf-field .acf-table tr.acf-field{margin:0;width:auto}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-flexible-content>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-flexible-content>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-group>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-group>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-repeater>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-repeater>.acf-label{max-width:930px}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-fields.-left>.acf-field{padding:15px 0}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-fields>.acf-field{margin:0;padding:15px 12px}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-fields>.acf-field>.acf-label{display:block}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-fields>.acf-field>.acf-input{max-width:initial}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-table>tbody>tr>td,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-table>tbody>tr>th,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-table>thead>tr>td,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-table>thead>tr>th{padding:8px}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-table td.acf-field,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-table tr.acf-field{margin:0;width:auto}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .CodeMirror-wrap.cm-s-default{width:100%}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-add-actions>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-add-actions>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-async>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-async>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-grid-container>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-grid-container>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-grid>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-grid>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-layouts-state>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-layouts-state>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-modal-edit>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-modal-edit>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-modal>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-modal>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-remove-button>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-remove-button>.acf-label{max-width:930px}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .select2-container.-acf .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .acf-selection{line-height:1.5}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .select2-container.-acf .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove{margin-top:2px}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-allow_terms input[type=number]{width:56px;height:43px}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-min>.acf-input input[type=number]{max-width:98%}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field{padding:0}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field+.acf-field{border-left:0}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-hide_field>.acf-input ul{-ms-flex-wrap:wrap;flex-wrap:wrap}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-hide_field>.acf-input ul li{width:50%}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-hide_field>.acf-input ul li:nth-child(3),.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-hide_field>.acf-input ul li:nth-child(4){margin-top:10px}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-hide_field>.acf-input ul li select{min-width:50px}.acf-admin-6.acf-admin-single-field-group .acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field{padding:0 5px 0 0}.acf-admin-6.acf-admin-single-field-group .acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field.acf-field-acfe-flexible-modal-col{width:25%!important}.acf-admin-6.acf-admin-single-field-group .acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field select{min-width:50px}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting,.acf-admin-6.acf-admin-single-field-group .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.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta select{min-width:50px}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .select2-container.-acf,.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .select2-container.-acf .select2-selection__rendered{border-radius:0 6px 6px 0}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .select2-container.-acf .select2-selection__rendered .select2-search input{height:38px}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acfe-flexible-layout-location-rules{padding-left:0;padding-right:0}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acfe-flexible-layout-location-rules td:first-of-type{padding-left:0}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_category],.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label]{padding-left:0;padding-right:0}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-acfe_field_group_condition{padding-right:72px;padding-left:72px;margin-top:32px}
|
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}.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%}.acf-admin-6.acf-admin-field-groups .wp-list-table td.check-column,.acf-admin-6.acf-admin-field-groups .wp-list-table th.check-column{padding-right:25px;padding-left:15px}.acf-admin-6.acf-admin-field-groups .wp-list-table tbody td,.acf-admin-6.acf-admin-field-groups .wp-list-table tbody th,.acf-admin-6.acf-admin-field-groups .wp-list-table tfoot td,.acf-admin-6.acf-admin-field-groups .wp-list-table tfoot th,.acf-admin-6.acf-admin-field-groups .wp-list-table thead td,.acf-admin-6.acf-admin-field-groups .wp-list-table thead th{padding-right:10px;padding-left:10px}.acf-admin-6.acf-admin-field-groups .wp-list-table .column-acf-count{width:70px}.acf-admin-6.acf-admin-field-groups .wp-list-table .column-acf-location{width:200px}.acf-admin-6.acf-admin-field-groups .wp-list-table .column-acfe-autosync-json,.acf-admin-6.acf-admin-field-groups .wp-list-table .column-acfe-autosync-php,.acf-admin-6.acf-admin-field-groups .wp-list-table .column-acfe-load{width:70px}.acf-admin-6.acf-admin-field-groups .wp-list-table a.row-title{font-size:14px!important}.acf-admin-6.acf-admin-field-groups .wp-list-table .row-actions{margin-top:4px}.acf-admin-6.acf-admin-single-field-group .wrap>#message.updated{margin-bottom:16px!important}.acf-admin-6.acf-admin-single-field-group .acf-field-object .handle li.li-field-label::before{width:16px}.acf-admin-6.acf-admin-single-field-group .acf-field-object .handle li.li-field-label>strong a{font-size:14px}.acf-admin-6.acf-admin-single-field-group .acf-fields .acf-field-tab{display:none!important}.acf-admin-6.acf-admin-single-field-group #submitdiv .button{height:32px}.acf-admin-6.acf-admin-single-field-group .acf-repeater .acf-actions .acf-button{float:left}.acf-admin-6.acf-admin-single-field-group #acf-field-group-options .acf-field .acf-table>tbody>tr>td,.acf-admin-6.acf-admin-single-field-group #acf-field-group-options .acf-field .acf-table>tbody>tr>th,.acf-admin-6.acf-admin-single-field-group #acf-field-group-options .acf-field .acf-table>thead>tr>td,.acf-admin-6.acf-admin-single-field-group #acf-field-group-options .acf-field .acf-table>thead>tr>th{padding:8px}.acf-admin-6.acf-admin-single-field-group #acf-field-group-options .acf-field .acf-table td.acf-field,.acf-admin-6.acf-admin-single-field-group #acf-field-group-options .acf-field .acf-table tr.acf-field{margin:0;width:auto}.acf-admin-6.acf-admin-single-field-group #acf-field-group-options .acf-field[data-name=acfe_form] .acf-label{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.acf-admin-6.acf-admin-single-field-group #acf-field-group-acfe .acf-label{display:block}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-flexible-content>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-flexible-content>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-group>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-group>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-repeater>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field[data-setting].acf-field-repeater>.acf-label{max-width:930px}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-fields.-left>.acf-field{padding:15px 0}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-fields>.acf-field{margin:0;padding:15px 12px}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-fields>.acf-field>.acf-label{display:block}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-fields>.acf-field>.acf-input{max-width:initial}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-table>tbody>tr>td,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-table>tbody>tr>th,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-table>thead>tr>td,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-table>thead>tr>th{padding:8px}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-table td.acf-field,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .acf-table tr.acf-field{margin:0;width:auto}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field .CodeMirror-wrap.cm-s-default{width:100%}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-add-actions>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-add-actions>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-async>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-async>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-grid-container>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-grid-container>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-grid>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-grid>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-layouts-state>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-layouts-state>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-modal-edit>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-modal-edit>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-modal>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-modal>.acf-label,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-remove-button>.acf-input,.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field.acf-field-acfe-flexible-remove-button>.acf-label{max-width:930px}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .select2-container.-acf .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .acf-selection{line-height:1.5}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .select2-container.-acf .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove{margin-top:2px}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-allow_terms input[type=number]{width:56px;height:43px}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-min>.acf-input input[type=number]{max-width:98%}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field{padding:0}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-acfe_bidirectional>.acf-input>.acf-fields>.acf-field+.acf-field{border-left:0}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-hide_field>.acf-input ul{-ms-flex-wrap:wrap;flex-wrap:wrap}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-hide_field>.acf-input ul li{width:50%}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-hide_field>.acf-input ul li:nth-child(3),.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-hide_field>.acf-input ul li:nth-child(4){margin-top:10px}.acf-admin-6.acf-admin-single-field-group .acf-field-settings .acf-field-setting-hide_field>.acf-input ul li select{min-width:50px}.acf-admin-6.acf-admin-single-field-group .acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field{padding:0 5px 0 0}.acf-admin-6.acf-admin-single-field-group .acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field.acf-field-acfe-flexible-modal-col{width:25%!important}.acf-admin-6.acf-admin-single-field-group .acfe-field-setting-flex>.acf-input>.acf-fields>.acf-field select{min-width:50px}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field.acfe-flexible-field-setting,.acf-admin-6.acf-admin-single-field-group .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.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta select{min-width:50px}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .select2-container.-acf,.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .select2-container.-acf .select2-selection__rendered{border-radius:0 6px 6px 0}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .select2-container.-acf .select2-selection__rendered .select2-search input{height:38px}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acfe-flexible-layout-location-rules{padding-left:0;padding-right:0}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acfe-flexible-layout-location-rules td:first-of-type{padding-left:0}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-fc-meta-max+li{clear:both}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_category],.acf-admin-6.acf-admin-single-field-group .acf-field-setting-fc_layout>.acf-input>.acf-fc-meta .acf-field[data-name=acfe_flexible_settings_label]{padding-left:0;padding-right:0;width:100%}.acf-admin-6.acf-admin-single-field-group .acf-field-setting-acfe_field_group_condition{padding-right:72px;padding-left:72px;margin-top:32px}.acf-admin-6.acf-admin-single-field-group .acfe-modal>.acfe-modal-wrapper>.acfe-modal-title>.title{min-height:unset;display:block;padding:0}.acf-admin-6.acf-admin-single-field-group .acf-hl[data-cols="6"]{-ms-flex-wrap:wrap;flex-wrap:wrap}.acf-admin-6.acf-admin-single-field-group .acf-hl[data-cols="6"]>li{width:33.33%}.acf-admin-6.acf-admin-single-field-group .acf-hl[data-cols="6"]>li:nth-child(4),.acf-admin-6.acf-admin-single-field-group .acf-hl[data-cols="6"]>li:nth-child(5),.acf-admin-6.acf-admin-single-field-group .acf-hl[data-cols="6"]>li:nth-child(6){margin-top:10px}
|
assets/css/acfe-input.css
CHANGED
@@ -58,8 +58,8 @@ body .medium-editor-toolbar {
|
|
58 |
margin-bottom: -15px
|
59 |
}
|
60 |
|
61 |
-
.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-
|
62 |
-
.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-
|
63 |
margin-top: -15px
|
64 |
}
|
65 |
|
@@ -68,7 +68,7 @@ body .medium-editor-toolbar {
|
|
68 |
margin-bottom: 15px
|
69 |
}
|
70 |
|
71 |
-
.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-
|
72 |
border-width: 0
|
73 |
}
|
74 |
|
@@ -82,6 +82,11 @@ body .medium-editor-toolbar {
|
|
82 |
border-width: 0
|
83 |
}
|
84 |
|
|
|
|
|
|
|
|
|
|
|
85 |
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input {
|
86 |
margin: 0
|
87 |
}
|
@@ -90,6 +95,13 @@ body .medium-editor-toolbar {
|
|
90 |
border-width: 1px
|
91 |
}
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input,
|
94 |
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input {
|
95 |
padding: 0;
|
@@ -100,25 +112,27 @@ body .medium-editor-toolbar {
|
|
100 |
margin-right: 0
|
101 |
}
|
102 |
|
103 |
-
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-fields,
|
104 |
-
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input>.acf-table {
|
105 |
-
border-width: 0
|
106 |
-
}
|
107 |
-
|
108 |
-
.acf-fields>.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
109 |
-
.acf-fields>.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table {
|
110 |
-
border-width: 0
|
111 |
-
}
|
112 |
-
|
113 |
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input,
|
|
|
114 |
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input,
|
|
|
|
|
115 |
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-table {
|
116 |
margin: 0
|
117 |
}
|
118 |
|
119 |
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-fields,
|
|
|
|
|
|
|
120 |
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input>.acf-fields,
|
121 |
-
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
border-width: 1px
|
123 |
}
|
124 |
|
@@ -128,6 +142,20 @@ body .medium-editor-toolbar {
|
|
128 |
padding: 0 12px
|
129 |
}
|
130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
tr.acf-field.acf-field-clone.acfe-seamless-style>td.acf-input>.acf-fields {
|
132 |
border: 0;
|
133 |
margin-left: -10px;
|
@@ -354,6 +382,24 @@ body:not(.acf-admin-5-3) .acf-field-acfe-code-editor>.acf-input>.acf-input-wrap>
|
|
354 |
width: 100%
|
355 |
}
|
356 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
.acf-postbox.seamless>.inside.acfe-column-wrapper {
|
358 |
display: -webkit-box !important;
|
359 |
display: -ms-flexbox !important;
|
@@ -934,6 +980,10 @@ body:not(.acf-admin-5-3) .layout>.acfe-fc-placeholder>a span {
|
|
934 |
text-align: center
|
935 |
}
|
936 |
|
|
|
|
|
|
|
|
|
937 |
.acf-field.acf-field-flexible-content>.acf-input>.acf-flexible-content .acf-actions .acf-button .dashicons {
|
938 |
width: auto;
|
939 |
height: auto;
|
@@ -965,7 +1015,6 @@ body:not(.acf-admin-5-3) .layout>.acfe-fc-placeholder>a span {
|
|
965 |
}
|
966 |
|
967 |
.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons.dashicons-admin-generic:before {
|
968 |
-
margin-left: 1px;
|
969 |
line-height: .9
|
970 |
}
|
971 |
|
@@ -1140,6 +1189,20 @@ input.acfe-flexible-control-title {
|
|
1140 |
padding: 0 12px
|
1141 |
}
|
1142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1143 |
tr.acf-field.acf-field-group.acfe-seamless-style>td.acf-input>.acf-fields {
|
1144 |
border: 0;
|
1145 |
margin-left: -10px;
|
58 |
margin-bottom: -15px
|
59 |
}
|
60 |
|
61 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style.acfe-no-label:not([data-acfe-clone-modal="1"])>.acf-input,
|
62 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style.acfe-no-label:not([data-acfe-clone-modal="1"])>.acf-input {
|
63 |
margin-top: -15px
|
64 |
}
|
65 |
|
68 |
margin-bottom: 15px
|
69 |
}
|
70 |
|
71 |
+
.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style.acfe-no-label>.acf-input>.acf-fields {
|
72 |
border-width: 0
|
73 |
}
|
74 |
|
82 |
border-width: 0
|
83 |
}
|
84 |
|
85 |
+
.acf-fields>.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
86 |
+
.acf-fields>.acf-field-clone[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table {
|
87 |
+
border-width: 0
|
88 |
+
}
|
89 |
+
|
90 |
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input {
|
91 |
margin: 0
|
92 |
}
|
95 |
border-width: 1px
|
96 |
}
|
97 |
|
98 |
+
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-fields,
|
99 |
+
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-table,
|
100 |
+
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input>.acf-fields,
|
101 |
+
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input>.acf-table {
|
102 |
+
border-width: 0
|
103 |
+
}
|
104 |
+
|
105 |
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input,
|
106 |
.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style:not([data-acfe-clone-modal="1"])>.acf-input {
|
107 |
padding: 0;
|
112 |
margin-right: 0
|
113 |
}
|
114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input,
|
116 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-table,
|
117 |
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input,
|
118 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-table,
|
119 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input,
|
120 |
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-table {
|
121 |
margin: 0
|
122 |
}
|
123 |
|
124 |
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-fields,
|
125 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-table,
|
126 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-table>.acf-fields,
|
127 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-table>.acf-table,
|
128 |
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input>.acf-fields,
|
129 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-input>.acf-table,
|
130 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-table>.acf-fields,
|
131 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-table>.acf-table,
|
132 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input>.acf-fields,
|
133 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input>.acf-table,
|
134 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-table>.acf-fields,
|
135 |
+
.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-table>.acf-table {
|
136 |
border-width: 1px
|
137 |
}
|
138 |
|
142 |
padding: 0 12px
|
143 |
}
|
144 |
|
145 |
+
td.acf-field-clone.acfe-seamless-style {
|
146 |
+
padding: 0
|
147 |
+
}
|
148 |
+
|
149 |
+
td.acf-field-clone.acfe-seamless-style>.acf-input>.acf-fields,
|
150 |
+
td.acf-field-clone.acfe-seamless-style>.acf-input>.acf-table {
|
151 |
+
border: 0
|
152 |
+
}
|
153 |
+
|
154 |
+
td[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
155 |
+
td[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table {
|
156 |
+
border: 0
|
157 |
+
}
|
158 |
+
|
159 |
tr.acf-field.acf-field-clone.acfe-seamless-style>td.acf-input>.acf-fields {
|
160 |
border: 0;
|
161 |
margin-left: -10px;
|
382 |
width: 100%
|
383 |
}
|
384 |
|
385 |
+
.acf-repeater .acf-row.ui-sortable-helper {
|
386 |
+
display: -webkit-box;
|
387 |
+
display: -ms-flexbox;
|
388 |
+
display: flex
|
389 |
+
}
|
390 |
+
|
391 |
+
.acf-repeater .acf-row.ui-sortable-helper>td.acf-row-handle {
|
392 |
+
display: -webkit-box;
|
393 |
+
display: -ms-flexbox;
|
394 |
+
display: flex;
|
395 |
+
-webkit-box-pack: center;
|
396 |
+
-ms-flex-pack: center;
|
397 |
+
justify-content: center;
|
398 |
+
-webkit-box-align: center;
|
399 |
+
-ms-flex-align: center;
|
400 |
+
align-items: center
|
401 |
+
}
|
402 |
+
|
403 |
.acf-postbox.seamless>.inside.acfe-column-wrapper {
|
404 |
display: -webkit-box !important;
|
405 |
display: -ms-flexbox !important;
|
980 |
text-align: center
|
981 |
}
|
982 |
|
983 |
+
.acf-field.acf-field-flexible-content>.acf-input>.acf-flexible-content>.acfe-flexible-stylised-button>.acf-actions .acf-button {
|
984 |
+
float: none
|
985 |
+
}
|
986 |
+
|
987 |
.acf-field.acf-field-flexible-content>.acf-input>.acf-flexible-content .acf-actions .acf-button .dashicons {
|
988 |
width: auto;
|
989 |
height: auto;
|
1015 |
}
|
1016 |
|
1017 |
.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons.dashicons-admin-generic:before {
|
|
|
1018 |
line-height: .9
|
1019 |
}
|
1020 |
|
1189 |
padding: 0 12px
|
1190 |
}
|
1191 |
|
1192 |
+
td.acf-field-group.acfe-seamless-style {
|
1193 |
+
padding: 0
|
1194 |
+
}
|
1195 |
+
|
1196 |
+
td.acf-field-group.acfe-seamless-style>.acf-input>.acf-fields,
|
1197 |
+
td.acf-field-group.acfe-seamless-style>.acf-input>.acf-table {
|
1198 |
+
border: 0
|
1199 |
+
}
|
1200 |
+
|
1201 |
+
td[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
1202 |
+
td[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table {
|
1203 |
+
border: 0
|
1204 |
+
}
|
1205 |
+
|
1206 |
tr.acf-field.acf-field-group.acfe-seamless-style>td.acf-input>.acf-fields {
|
1207 |
border: 0;
|
1208 |
margin-left: -10px;
|
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>.acf-field{padding:15px 12px}.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}.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}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-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}.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}
|
1 |
+
.acf-field .acf-label label{font-weight:600}.acf-field p.description{word-break:break-word}.acf-fields>.acf-field{padding:15px 12px}.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}.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-seamless-style.acfe-no-label:not([data-acfe-clone-modal="1"])>.acf-input,.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style.acfe-no-label: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-seamless-style.acfe-no-label>.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,.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-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>.acf-input>.acf-fields,.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-input>.acf-table,.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input>.acf-fields,.acf-fields.-left>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-input>.acf-table{border-width:0}.acf-fields.-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-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-block.acfe-seamless-style>.acf-table,.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-row.acfe-seamless-style>.acf-table,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.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-block.acfe-seamless-style>.acf-input>.acf-table,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-table>.acf-fields,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-block.acfe-seamless-style>.acf-table>.acf-table,.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-row.acfe-seamless-style>.acf-input>.acf-table,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-table>.acf-fields,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-row.acfe-seamless-style>.acf-table>.acf-table,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.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,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-table>.acf-fields,.acf-postbox.seamless>.acf-fields>.acf-field-clone.acfe-field-clone-layout-table.acfe-seamless-style>.acf-table>.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}td.acf-field-clone.acfe-seamless-style{padding:0}td.acf-field-clone.acfe-seamless-style>.acf-input>.acf-fields,td.acf-field-clone.acfe-seamless-style>.acf-input>.acf-table,td[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,td[data-acfe-clone-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table{border:0}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-repeater .acf-row.ui-sortable-helper{display:-webkit-box;display:-ms-flexbox;display:flex}.acf-repeater .acf-row.ui-sortable-helper>td.acf-row-handle{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.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}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>.acfe-flexible-stylised-button>.acf-actions .acf-button{float:none}.acf-field.acf-field-flexible-content>.acf-input>.acf-flexible-content .acf-actions .acf-button .dashicons{width:auto;height:auto;vertical-align:text-top}.acf-field.acf-field-flexible-content[data-acfe-flexible-hide-empty-message="1"]>.acf-input>.acf-flexible-content>.no-value-message{display:none}.acf-field.acf-field-flexible-content[data-acfe-flexible-hide-empty-message="1"]>.acf-input>.acf-flexible-content.-empty>.values{margin-bottom:0}.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons:before{font-family:dashicons}.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons{visibility:hidden}.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons.dashicons-admin-generic,.acf-flexible-content .layout:hover>.acf-fc-layout-controls .acf-icon.acfe-flexible-icon.dashicons{visibility:visible}.acf-flexible-content .layout .acf-icon.acfe-flexible-icon.dashicons.dashicons-admin-generic:before{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}.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}td.acf-field-group.acfe-seamless-style{padding:0}td.acf-field-group.acfe-seamless-style>.acf-input>.acf-fields,td.acf-field-group.acfe-seamless-style>.acf-input>.acf-table,td[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,td[data-acfe-group-modal="1"]>.acf-input>.acfe-modal>.acfe-modal-wrapper>.acfe-modal-content>.acf-table{border:0}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
@@ -330,11 +330,6 @@ body:not(.taxonomy-product_cat):not(.woocommerce-page) .wrap {
|
|
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;
|
330 |
max-width: none
|
331 |
}
|
332 |
|
|
|
|
|
|
|
|
|
|
|
333 |
.wrap form#createuser select#ure_select_other_roles,
|
334 |
.wrap form#your-profile select#ure_select_other_roles {
|
335 |
width: 100% !important;
|
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}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}
|
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 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
@@ -2,6 +2,18 @@ body.acfe-modal-opened {
|
|
2 |
overflow: hidden
|
3 |
}
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
.acfe-modal-overlay {
|
6 |
background: rgba(0, 0, 0, .7);
|
7 |
position: fixed;
|
@@ -47,8 +59,12 @@ body.acfe-modal-opened {
|
|
47 |
pointer-events: none
|
48 |
}
|
49 |
|
50 |
-
.acfe-modal .acfe-modal-
|
51 |
-
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
|
54 |
.acfe-modal.-open>.acfe-modal-wrapper {
|
@@ -67,7 +83,14 @@ body.acfe-modal-opened {
|
|
67 |
position: relative
|
68 |
}
|
69 |
|
70 |
-
.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
position: absolute;
|
72 |
z-index: 10;
|
73 |
background: rgba(0, 0, 0, .7);
|
@@ -76,6 +99,107 @@ body.acfe-modal-opened {
|
|
76 |
pointer-events: none
|
77 |
}
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
.acfe-modal.-open.-small>.acfe-modal-wrapper {
|
80 |
max-width: 450px
|
81 |
}
|
@@ -99,11 +223,23 @@ body.acfe-modal-opened {
|
|
99 |
flex: 1
|
100 |
}
|
101 |
|
102 |
-
.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields
|
|
|
|
|
|
|
103 |
height: 100%
|
104 |
}
|
105 |
|
106 |
-
.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
content: "";
|
108 |
display: block;
|
109 |
position: absolute;
|
@@ -118,22 +254,55 @@ body.acfe-modal-opened {
|
|
118 |
width: 20%
|
119 |
}
|
120 |
|
121 |
-
.acfe-modal
|
122 |
-
|
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 |
-
.
|
129 |
-
|
130 |
}
|
131 |
|
132 |
-
.
|
|
|
|
|
|
|
|
|
|
|
133 |
margin: 0
|
134 |
}
|
135 |
|
136 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
content: "";
|
138 |
display: block;
|
139 |
position: absolute;
|
@@ -148,100 +317,98 @@ body.acfe-modal-opened {
|
|
148 |
width: 20%
|
149 |
}
|
150 |
|
151 |
-
.
|
152 |
-
|
153 |
-
-webkit-box-sizing: border-box;
|
154 |
-
box-sizing: border-box
|
155 |
}
|
156 |
|
157 |
-
.
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
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 |
-
.
|
174 |
-
|
|
|
175 |
}
|
176 |
|
177 |
-
.
|
178 |
-
|
179 |
-
color: #23282d;
|
180 |
-
font-weight: 600
|
181 |
}
|
182 |
|
183 |
-
.acfe-modal.-open
|
184 |
-
|
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
|
198 |
-
|
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
|
217 |
-
|
|
|
|
|
|
|
218 |
}
|
219 |
|
220 |
-
.acfe-modal.-open
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
content: "\f158";
|
226 |
-
margin: 0;
|
227 |
-
padding: 0
|
228 |
}
|
229 |
|
230 |
-
.acfe-modal.-open
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
|
|
|
|
237 |
}
|
238 |
|
239 |
-
.acfe-modal.-open
|
240 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
}
|
242 |
|
243 |
-
|
244 |
-
|
|
|
|
|
|
|
|
|
|
|
245 |
}
|
246 |
|
247 |
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper {
|
@@ -267,7 +434,7 @@ body.acfe-modal-opened {
|
|
267 |
line-height: 27px
|
268 |
}
|
269 |
|
270 |
-
.acfe-modal.-open
|
271 |
background: #f9f9f9;
|
272 |
color: #23282d
|
273 |
}
|
@@ -299,11 +466,6 @@ body.acfe-modal-opened {
|
|
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;
|
@@ -315,12 +477,6 @@ body.acfe-modal-opened {
|
|
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%;
|
@@ -344,17 +500,28 @@ body.acfe-modal-opened {
|
|
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 |
-
|
357 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
}
|
359 |
|
360 |
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span {
|
@@ -376,23 +543,10 @@ body:not(.acf-admin-5-3) .acfe-modal.-open .acfe-modal-content .acfe-flex-contai
|
|
376 |
font-size: 16px
|
377 |
}
|
378 |
|
379 |
-
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul
|
380 |
-
|
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 {
|
@@ -437,6 +591,15 @@ body:not(.acf-admin-5-3) .acfe-modal.-open .acfe-modal-content .acfe-flex-contai
|
|
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;
|
@@ -473,188 +636,6 @@ body:not(.acf-admin-5-3) .acfe-modal.-open .acfe-modal-content .acfe-flex-contai
|
|
473 |
}
|
474 |
}
|
475 |
|
476 |
-
.acfe-modal.-open .acfe-modal-
|
477 |
-
|
478 |
-
-webkit-box-sizing: border-box;
|
479 |
-
box-sizing: border-box
|
480 |
-
}
|
481 |
-
|
482 |
-
.acfe-modal.-open .acfe-modal-footer {
|
483 |
-
display: block;
|
484 |
-
color: #23282d;
|
485 |
-
background: #fcfcfc;
|
486 |
-
padding: 10px 16px;
|
487 |
-
position: relative;
|
488 |
-
text-align: right;
|
489 |
-
border-top: 1px solid #ddd;
|
490 |
-
pointer-events: auto
|
491 |
-
}
|
492 |
-
|
493 |
-
.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-footer {
|
494 |
-
pointer-events: none
|
495 |
-
}
|
496 |
-
|
497 |
-
body.block-editor-page .edit-post-layout .acfe-modal.-open {
|
498 |
-
-webkit-box-pack: start;
|
499 |
-
-ms-flex-pack: start;
|
500 |
-
justify-content: start;
|
501 |
-
-webkit-box-align: start;
|
502 |
-
-ms-flex-align: start;
|
503 |
-
align-items: start;
|
504 |
-
background: rgba(0, 0, 0, .7)
|
505 |
-
}
|
506 |
-
|
507 |
-
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
508 |
-
height: 100%;
|
509 |
-
width: 100%;
|
510 |
-
max-height: calc(100vh - 70px);
|
511 |
-
max-width: calc(100vw - 340px);
|
512 |
-
margin-left: 170px;
|
513 |
-
margin-top: 50px
|
514 |
-
}
|
515 |
-
|
516 |
-
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left {
|
517 |
-
height: 100%
|
518 |
-
}
|
519 |
-
|
520 |
-
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left:before {
|
521 |
-
content: "";
|
522 |
-
display: block;
|
523 |
-
position: absolute;
|
524 |
-
z-index: 0;
|
525 |
-
background: #f9f9f9;
|
526 |
-
border-color: #e1e1e1;
|
527 |
-
border-style: solid;
|
528 |
-
border-width: 0 1px 0 0;
|
529 |
-
top: 0;
|
530 |
-
bottom: 0;
|
531 |
-
left: 0;
|
532 |
-
width: 20%
|
533 |
-
}
|
534 |
-
|
535 |
-
body.block-editor-page .acfe-modal-overlay {
|
536 |
-
display: none
|
537 |
-
}
|
538 |
-
|
539 |
-
body.block-editor-page .acfe-modal.-open.acfe-modal-sub {
|
540 |
-
background: 0 0
|
541 |
-
}
|
542 |
-
|
543 |
-
body.block-editor-page .acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-wrapper-overlay {
|
544 |
-
background: 0 0
|
545 |
-
}
|
546 |
-
|
547 |
-
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
548 |
-
margin-top: 103px;
|
549 |
-
margin-left: 170px;
|
550 |
-
max-height: calc(100vh - 139px);
|
551 |
-
max-width: calc(100vw - 181px)
|
552 |
-
}
|
553 |
-
|
554 |
-
body.block-editor-page.folded .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
555 |
-
margin-top: 103px;
|
556 |
-
margin-left: 46px;
|
557 |
-
max-height: calc(100vh - 139px);
|
558 |
-
max-width: calc(100vw - 57px)
|
559 |
-
}
|
560 |
-
|
561 |
-
body.block-editor-page.is-fullscreen-mode .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
562 |
-
margin-top: 69px;
|
563 |
-
margin-left: 9px;
|
564 |
-
max-height: calc(100vh - 104px);
|
565 |
-
max-width: calc(100vw - 18px)
|
566 |
-
}
|
567 |
-
|
568 |
-
body.block-editor-page .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
569 |
-
max-width: calc(100vw - 461px)
|
570 |
-
}
|
571 |
-
|
572 |
-
body.block-editor-page.folded .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
573 |
-
max-width: calc(100vw - 337px)
|
574 |
-
}
|
575 |
-
|
576 |
-
body.block-editor-page.is-fullscreen-mode .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
577 |
-
max-width: calc(100vw - 298px)
|
578 |
-
}
|
579 |
-
|
580 |
-
@media only screen and (max-width:960px) {
|
581 |
-
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
582 |
-
margin-top: 103px;
|
583 |
-
margin-left: 170px;
|
584 |
-
max-height: calc(100vh - 139px);
|
585 |
-
max-width: calc(100vw - 181px)
|
586 |
-
}
|
587 |
-
|
588 |
-
body.block-editor-page .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
589 |
-
max-width: calc(100vw - 461px)
|
590 |
-
}
|
591 |
-
|
592 |
-
body.block-editor-page.auto-fold .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
593 |
-
margin-top: 103px;
|
594 |
-
margin-left: 46px;
|
595 |
-
max-height: calc(100vh - 139px);
|
596 |
-
max-width: calc(100vw - 57px)
|
597 |
-
}
|
598 |
-
|
599 |
-
body.block-editor-page.auto-fold .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
600 |
-
max-width: calc(100vw - 337px)
|
601 |
-
}
|
602 |
-
}
|
603 |
-
|
604 |
-
@media only screen and (max-width:782px) {
|
605 |
-
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
606 |
-
max-width: calc(100vw - 20px) !important;
|
607 |
-
margin-left: 10px !important;
|
608 |
-
max-height: calc(100vh - 127px) !important;
|
609 |
-
margin-top: 117px !important
|
610 |
-
}
|
611 |
-
}
|
612 |
-
|
613 |
-
body.wp-admin.upload-php.acfe-modal-opened>div:not([style*="display: none;"])>.media-modal.wp-core-ui:not(.acf-media-modal):before {
|
614 |
-
content: "";
|
615 |
-
display: block;
|
616 |
-
position: absolute;
|
617 |
-
background: rgba(0, 0, 0, .7);
|
618 |
-
top: 0;
|
619 |
-
left: 0;
|
620 |
-
width: 100%;
|
621 |
-
height: 100%;
|
622 |
-
z-index: 10000
|
623 |
-
}
|
624 |
-
|
625 |
-
.pac-container {
|
626 |
-
z-index: 100001
|
627 |
-
}
|
628 |
-
|
629 |
-
#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field::before {
|
630 |
-
display: block
|
631 |
-
}
|
632 |
-
|
633 |
-
#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field>.acf-label {
|
634 |
-
width: 20%;
|
635 |
-
margin: 0
|
636 |
-
}
|
637 |
-
|
638 |
-
#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field>.acf-input {
|
639 |
-
width: 80%
|
640 |
-
}
|
641 |
-
|
642 |
-
.block-editor .edit-post-sidebar .acfe-modal .acf-fields>.acf-field .acf-label label {
|
643 |
-
font-weight: 600
|
644 |
-
}
|
645 |
-
|
646 |
-
.block-editor .edit-post-sidebar .acfe-modal .acf-fields.-left>.acf-field {
|
647 |
-
margin: 0;
|
648 |
-
padding: 15px 0;
|
649 |
-
border-width: 1px;
|
650 |
-
border-color: #eee
|
651 |
-
}
|
652 |
-
|
653 |
-
.block-editor .edit-post-sidebar .acfe-modal .acf-fields.-left>.acf-field::before {
|
654 |
-
border-width: 0;
|
655 |
-
background: 0 0
|
656 |
-
}
|
657 |
-
|
658 |
-
body.acfe-modal-opened .edit-post-sidebar__panel-tabs {
|
659 |
-
visibility: hidden
|
660 |
}
|
2 |
overflow: hidden
|
3 |
}
|
4 |
|
5 |
+
body.acfe-modal-opened.wp-admin.upload-php>div:not([style*="display: none;"])>.media-modal.wp-core-ui:not(.acf-media-modal)::before {
|
6 |
+
content: "";
|
7 |
+
display: block;
|
8 |
+
position: absolute;
|
9 |
+
background: rgba(0, 0, 0, .7);
|
10 |
+
top: 0;
|
11 |
+
left: 0;
|
12 |
+
width: 100%;
|
13 |
+
height: 100%;
|
14 |
+
z-index: 10000
|
15 |
+
}
|
16 |
+
|
17 |
.acfe-modal-overlay {
|
18 |
background: rgba(0, 0, 0, .7);
|
19 |
position: fixed;
|
59 |
pointer-events: none
|
60 |
}
|
61 |
|
62 |
+
.acfe-modal.-open .acfe-modal-footer,
|
63 |
+
.acfe-modal.-open .acfe-modal-footer *,
|
64 |
+
.acfe-modal.-open .acfe-modal-title,
|
65 |
+
.acfe-modal.-open .acfe-modal-title * {
|
66 |
+
-webkit-box-sizing: border-box;
|
67 |
+
box-sizing: border-box
|
68 |
}
|
69 |
|
70 |
.acfe-modal.-open>.acfe-modal-wrapper {
|
83 |
position: relative
|
84 |
}
|
85 |
|
86 |
+
.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-content,
|
87 |
+
.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-footer,
|
88 |
+
.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-title {
|
89 |
+
pointer-events: none
|
90 |
+
}
|
91 |
+
|
92 |
+
.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper::before {
|
93 |
+
content: '';
|
94 |
position: absolute;
|
95 |
z-index: 10;
|
96 |
background: rgba(0, 0, 0, .7);
|
99 |
pointer-events: none
|
100 |
}
|
101 |
|
102 |
+
.acfe-modal.-open .acfe-modal-title {
|
103 |
+
display: block;
|
104 |
+
height: 50px;
|
105 |
+
line-height: 50px;
|
106 |
+
font-size: 22px;
|
107 |
+
color: #23282d;
|
108 |
+
border-bottom: 1px solid #ddd;
|
109 |
+
-o-text-overflow: ellipsis;
|
110 |
+
text-overflow: ellipsis;
|
111 |
+
background: #fcfcfc;
|
112 |
+
padding: 0 0 0 16px;
|
113 |
+
position: relative;
|
114 |
+
text-align: left;
|
115 |
+
pointer-events: auto
|
116 |
+
}
|
117 |
+
|
118 |
+
.acfe-modal.-open .acfe-modal-title>span.title {
|
119 |
+
line-height: 50px;
|
120 |
+
color: #23282d;
|
121 |
+
font-weight: 600
|
122 |
+
}
|
123 |
+
|
124 |
+
.acfe-modal.-open .acfe-modal-title>span.title .acf-fc-layout-order {
|
125 |
+
width: 30px;
|
126 |
+
height: 30px;
|
127 |
+
border-radius: 30px;
|
128 |
+
display: inline-block;
|
129 |
+
text-align: center;
|
130 |
+
line-height: 30px;
|
131 |
+
margin: 0 2px 0 0;
|
132 |
+
background: #f1f1f1;
|
133 |
+
font-size: 14px;
|
134 |
+
color: #666;
|
135 |
+
vertical-align: 2px
|
136 |
+
}
|
137 |
+
|
138 |
+
.acfe-modal.-open .acfe-modal-title>button.close {
|
139 |
+
height: 50px;
|
140 |
+
width: 50px;
|
141 |
+
color: #666;
|
142 |
+
border: 0;
|
143 |
+
border-left: 0;
|
144 |
+
margin: 0;
|
145 |
+
padding: 0;
|
146 |
+
border-radius: 0;
|
147 |
+
position: absolute;
|
148 |
+
top: 0;
|
149 |
+
right: 0;
|
150 |
+
-webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
|
151 |
+
-o-transition: color .1s ease-in-out, background .1s ease-in-out;
|
152 |
+
transition: color .1s ease-in-out, background .1s ease-in-out;
|
153 |
+
background: 0 0;
|
154 |
+
cursor: pointer
|
155 |
+
}
|
156 |
+
|
157 |
+
.acfe-modal.-open .acfe-modal-title>button.close:hover {
|
158 |
+
color: #00a0d2
|
159 |
+
}
|
160 |
+
|
161 |
+
.acfe-modal.-open .acfe-modal-title>button.close::before {
|
162 |
+
height: 50px;
|
163 |
+
width: 50px;
|
164 |
+
line-height: 50px !important;
|
165 |
+
font: normal 20px/1 dashicons;
|
166 |
+
content: "\f158";
|
167 |
+
margin: 0;
|
168 |
+
padding: 0
|
169 |
+
}
|
170 |
+
|
171 |
+
.acfe-modal.-open .acfe-modal-content {
|
172 |
+
height: 100%;
|
173 |
+
background: #fff;
|
174 |
+
display: block;
|
175 |
+
position: relative;
|
176 |
+
pointer-events: auto;
|
177 |
+
overflow: auto
|
178 |
+
}
|
179 |
+
|
180 |
+
.acfe-modal.-open.-iframe .acfe-modal-content {
|
181 |
+
overflow: hidden;
|
182 |
+
max-height: 100%;
|
183 |
+
height: 850px
|
184 |
+
}
|
185 |
+
|
186 |
+
.acfe-modal.-open.-iframe .acfe-modal-content>iframe {
|
187 |
+
width: 100%;
|
188 |
+
height: 100%;
|
189 |
+
border: 0
|
190 |
+
}
|
191 |
+
|
192 |
+
.acfe-modal.-open .acfe-modal-footer {
|
193 |
+
display: block;
|
194 |
+
color: #23282d;
|
195 |
+
background: #fcfcfc;
|
196 |
+
padding: 10px 16px;
|
197 |
+
position: relative;
|
198 |
+
text-align: right;
|
199 |
+
border-top: 1px solid #ddd;
|
200 |
+
pointer-events: auto
|
201 |
+
}
|
202 |
+
|
203 |
.acfe-modal.-open.-small>.acfe-modal-wrapper {
|
204 |
max-width: 450px
|
205 |
}
|
223 |
flex: 1
|
224 |
}
|
225 |
|
226 |
+
.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields,
|
227 |
+
.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone,
|
228 |
+
.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input,
|
229 |
+
.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input>.acf-clone-fields.acf-fields.-left {
|
230 |
height: 100%
|
231 |
}
|
232 |
|
233 |
+
.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone {
|
234 |
+
padding: 0
|
235 |
+
}
|
236 |
+
|
237 |
+
.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input {
|
238 |
+
margin: 0
|
239 |
+
}
|
240 |
+
|
241 |
+
.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left::before,
|
242 |
+
.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input>.acf-clone-fields.acf-fields.-left::before {
|
243 |
content: "";
|
244 |
display: block;
|
245 |
position: absolute;
|
254 |
width: 20%
|
255 |
}
|
256 |
|
257 |
+
.acfe-modal .acfe-modal-spacer {
|
258 |
+
padding: 15px
|
|
|
|
|
|
|
259 |
}
|
260 |
|
261 |
+
.pac-container {
|
262 |
+
z-index: 100001
|
263 |
}
|
264 |
|
265 |
+
#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field::before {
|
266 |
+
display: block
|
267 |
+
}
|
268 |
+
|
269 |
+
#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field>.acf-label {
|
270 |
+
width: 20%;
|
271 |
margin: 0
|
272 |
}
|
273 |
|
274 |
+
#side-sortables .acf-fields.-left .acfe-modal .acf-fields.-left>.acf-field>.acf-input {
|
275 |
+
width: 80%
|
276 |
+
}
|
277 |
+
|
278 |
+
body.block-editor-page.acfe-modal-opened .edit-post-sidebar__panel-tabs {
|
279 |
+
visibility: hidden
|
280 |
+
}
|
281 |
+
|
282 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open {
|
283 |
+
-webkit-box-pack: start;
|
284 |
+
-ms-flex-pack: start;
|
285 |
+
justify-content: start;
|
286 |
+
-webkit-box-align: start;
|
287 |
+
-ms-flex-align: start;
|
288 |
+
align-items: start;
|
289 |
+
background: rgba(0, 0, 0, .7)
|
290 |
+
}
|
291 |
+
|
292 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
293 |
+
height: 100%;
|
294 |
+
width: 100%;
|
295 |
+
max-height: calc(100vh - 70px);
|
296 |
+
max-width: calc(100vw - 340px);
|
297 |
+
margin-left: 170px;
|
298 |
+
margin-top: 50px
|
299 |
+
}
|
300 |
+
|
301 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left {
|
302 |
+
height: 100%
|
303 |
+
}
|
304 |
+
|
305 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left::before {
|
306 |
content: "";
|
307 |
display: block;
|
308 |
position: absolute;
|
317 |
width: 20%
|
318 |
}
|
319 |
|
320 |
+
body.block-editor-page .edit-post-sidebar .acfe-modal .acf-fields>.acf-field .acf-label label {
|
321 |
+
font-weight: 600
|
|
|
|
|
322 |
}
|
323 |
|
324 |
+
body.block-editor-page .edit-post-sidebar .acfe-modal .acf-fields.-left>.acf-field {
|
325 |
+
margin: 0;
|
326 |
+
padding: 15px 0;
|
327 |
+
border-width: 1px;
|
328 |
+
border-color: #eee
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
}
|
330 |
|
331 |
+
body.block-editor-page .edit-post-sidebar .acfe-modal .acf-fields.-left>.acf-field::before {
|
332 |
+
border-width: 0;
|
333 |
+
background: 0 0
|
334 |
}
|
335 |
|
336 |
+
body.block-editor-page .acfe-modal-overlay {
|
337 |
+
display: none
|
|
|
|
|
338 |
}
|
339 |
|
340 |
+
body.block-editor-page .acfe-modal.-open.acfe-modal-sub {
|
341 |
+
background: 0 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
}
|
343 |
|
344 |
+
body.block-editor-page .acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper::before {
|
345 |
+
background: 0 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
}
|
347 |
|
348 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
349 |
+
margin-top: 103px;
|
350 |
+
margin-left: 170px;
|
351 |
+
max-height: calc(100vh - 139px);
|
352 |
+
max-width: calc(100vw - 181px)
|
353 |
}
|
354 |
|
355 |
+
body.block-editor-page.folded .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
356 |
+
margin-top: 103px;
|
357 |
+
margin-left: 46px;
|
358 |
+
max-height: calc(100vh - 139px);
|
359 |
+
max-width: calc(100vw - 57px)
|
|
|
|
|
|
|
360 |
}
|
361 |
|
362 |
+
body.block-editor-page.is-fullscreen-mode .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
363 |
+
margin-top: 69px;
|
364 |
+
margin-left: 9px;
|
365 |
+
max-height: calc(100vh - 104px);
|
366 |
+
max-width: calc(100vw - 18px)
|
367 |
+
}
|
368 |
+
|
369 |
+
body.block-editor-page .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
370 |
+
max-width: calc(100vw - 461px)
|
371 |
}
|
372 |
|
373 |
+
body.block-editor-page.folded .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
374 |
+
max-width: calc(100vw - 337px)
|
375 |
+
}
|
376 |
+
|
377 |
+
body.block-editor-page.is-fullscreen-mode .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
378 |
+
max-width: calc(100vw - 298px)
|
379 |
+
}
|
380 |
+
|
381 |
+
@media only screen and (max-width:960px) {
|
382 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
383 |
+
margin-top: 103px;
|
384 |
+
margin-left: 170px;
|
385 |
+
max-height: calc(100vh - 139px);
|
386 |
+
max-width: calc(100vw - 181px)
|
387 |
+
}
|
388 |
+
|
389 |
+
body.block-editor-page .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
390 |
+
max-width: calc(100vw - 461px)
|
391 |
+
}
|
392 |
+
|
393 |
+
body.block-editor-page.auto-fold .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
394 |
+
margin-top: 103px;
|
395 |
+
margin-left: 46px;
|
396 |
+
max-height: calc(100vh - 139px);
|
397 |
+
max-width: calc(100vw - 57px)
|
398 |
+
}
|
399 |
+
|
400 |
+
body.block-editor-page.auto-fold .edit-post-layout.is-sidebar-opened .acfe-modal.-open>.acfe-modal-wrapper {
|
401 |
+
max-width: calc(100vw - 337px)
|
402 |
+
}
|
403 |
}
|
404 |
|
405 |
+
@media only screen and (max-width:782px) {
|
406 |
+
body.block-editor-page .edit-post-layout .acfe-modal.-open>.acfe-modal-wrapper {
|
407 |
+
max-width: calc(100vw - 20px) !important;
|
408 |
+
margin-left: 10px !important;
|
409 |
+
max-height: calc(100vh - 127px) !important;
|
410 |
+
margin-top: 117px !important
|
411 |
+
}
|
412 |
}
|
413 |
|
414 |
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper {
|
434 |
line-height: 27px
|
435 |
}
|
436 |
|
437 |
+
.acfe-modal.-open .acfe-modal-content .nav-tab-wrapper a:hover {
|
438 |
background: #f9f9f9;
|
439 |
color: #23282d
|
440 |
}
|
466 |
margin-left: auto
|
467 |
}
|
468 |
|
|
|
|
|
|
|
|
|
|
|
469 |
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul {
|
470 |
margin: 0;
|
471 |
margin-right: -7px;
|
477 |
flex-wrap: wrap
|
478 |
}
|
479 |
|
|
|
|
|
|
|
|
|
|
|
|
|
480 |
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li {
|
481 |
position: relative;
|
482 |
width: 100%;
|
500 |
height: 100%
|
501 |
}
|
502 |
|
|
|
|
|
|
|
|
|
503 |
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover {
|
504 |
background: #007cba;
|
505 |
color: #fff
|
506 |
}
|
507 |
|
508 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover span.badge.acf-js-tooltip {
|
509 |
+
color: #fff
|
510 |
+
}
|
511 |
+
|
512 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled {
|
513 |
+
pointer-events: none;
|
514 |
+
opacity: .67
|
515 |
+
}
|
516 |
+
|
517 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled:hover {
|
518 |
+
cursor: default
|
519 |
+
}
|
520 |
+
|
521 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a.disabled:focus {
|
522 |
+
-webkit-box-shadow: none;
|
523 |
+
box-shadow: none;
|
524 |
+
outline: 0
|
525 |
}
|
526 |
|
527 |
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a span {
|
543 |
font-size: 16px
|
544 |
}
|
545 |
|
546 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul::after {
|
547 |
+
content: "";
|
548 |
+
clear: both;
|
549 |
+
display: table
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
550 |
}
|
551 |
|
552 |
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-col-1 ul li {
|
591 |
max-width: 16.66%
|
592 |
}
|
593 |
|
594 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flex-container.acfe-flex-thumbnails ul li a {
|
595 |
+
text-align: center
|
596 |
+
}
|
597 |
+
|
598 |
+
.acfe-modal.-open .acfe-modal-content .acfe-flexible-categories~.acfe-flex-container {
|
599 |
+
overflow: auto;
|
600 |
+
height: calc(100% - 39px)
|
601 |
+
}
|
602 |
+
|
603 |
@media only screen and (max-width:960px) {
|
604 |
.acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li {
|
605 |
-webkit-box-flex: 0 !important;
|
636 |
}
|
637 |
}
|
638 |
|
639 |
+
body:not(.acf-admin-5-3) .acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover {
|
640 |
+
background: #0073aa
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
641 |
}
|
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;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;color:#23282d;background:#fcfcfc;padding:10px 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}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}body.acfe-modal-opened.wp-admin.upload-php>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}.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.-open .acfe-modal-footer,.acfe-modal.-open .acfe-modal-footer *,.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-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-content,.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-footer,.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper>.acfe-modal-title{pointer-events:none}.acfe-modal.-open.acfe-modal-sub>.acfe-modal-wrapper::before{content:'';position:absolute;z-index:10;background:rgba(0,0,0,.7);height:100%;width:100%;pointer-events:none}.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-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;max-height:100%;height:850px}.acfe-modal.-open.-iframe .acfe-modal-content>iframe{width:100%;height:100%;border:0}.acfe-modal.-open .acfe-modal-footer{display:block;color:#23282d;background:#fcfcfc;padding:10px 16px;position:relative;text-align:right;border-top:1px solid #ddd;pointer-events:auto}.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,.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone,.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input,.acfe-modal.-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.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone{padding:0}.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields>.acf-field-clone>.acf-input{margin:0}.acfe-modal.-open.-full>.acfe-modal-wrapper>.acfe-modal-content>.acf-fields.-left::before,.acfe-modal.-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 .acfe-modal-spacer{padding:15px}.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%}body.block-editor-page.acfe-modal-opened .edit-post-sidebar__panel-tabs{visibility:hidden}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 .edit-post-sidebar .acfe-modal .acf-fields>.acf-field .acf-label label{font-weight:600}body.block-editor-page .edit-post-sidebar .acfe-modal .acf-fields.-left>.acf-field{margin:0;padding:15px 0;border-width:1px;border-color:#eee}body.block-editor-page .edit-post-sidebar .acfe-modal .acf-fields.-left>.acf-field::before{border-width:0;background:0 0}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::before{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}}.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-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 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 ul li a:hover{background:#007cba;color:#fff}.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 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::after{content:"";clear:both;display:table}.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%}.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-flexible-categories~.acfe-flex-container{overflow:auto;height:calc(100% - 39px)}@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}}body:not(.acf-admin-5-3) .acfe-modal.-open .acfe-modal-content .acfe-flex-container ul li a:hover{background:#0073aa}
|
assets/js/acfe-admin.js
CHANGED
@@ -80,7 +80,7 @@
|
|
80 |
this.$wp().remove();
|
81 |
}
|
82 |
|
83 |
-
if (!this.count('acf') && !this.count('wp')) {
|
84 |
this.hideBulk();
|
85 |
}
|
86 |
|
80 |
this.$wp().remove();
|
81 |
}
|
82 |
|
83 |
+
if ((!this.count('acf') && !this.count('wp')) || (!this.$acf().is(':visible') && !this.$wp().is(':visible'))) {
|
84 |
this.hideBulk();
|
85 |
}
|
86 |
|
assets/js/acfe-admin.min.js
CHANGED
@@ -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-dev-delete-meta":"onDeleteSingle",'click .acfe-dev-bulk [type="submit"]':"onDeleteBulk","change #acfe-wp-custom-fields-hide":"onCheckPostbox","change #acfe-acf-custom-fields-hide":"onCheckPostbox"},$acf:function(){return f("#acfe-acf-custom-fields")},$wp:function(){return f("#acfe-wp-custom-fields")},$bulk:function(){return f(".acfe-dev-bulk")},count:function(e){return this["$"+e]().find("tbody tr").length},hideBulk:function(){this.$bulk().hide()},showBulk:function(){this.$bulk().show()},initialize:function(){this.$bulk().insertAfter(this.$bulk().closest(".postbox")),this.$acf().is(":visible")||this.$wp().is(":visible")||this.hideBulk(),f(".metabox-prefs .acfe-dev-meta-count").remove()},syncMetaboxes:function(){this.$acf().find(".acfe-dev-meta-count").text(this.count("acf")),this.$wp().find(".acfe-dev-meta-count").text(this.count("wp")),this.count("acf")||this.$acf().remove(),this.count("wp")||this.$wp().remove(),this.count("acf")||this.count("wp")||this.hideBulk()},onDeleteSingle:function(e,t){e.preventDefault();var a=this,n=t.closest("tr");f.ajax({url:acf.get("ajaxurl"),type:"post",data:{action:"acfe/dev/single_delete_meta",id:t.attr("data-meta-id"),key:t.attr("data-meta-key"),type:t.attr("data-meta-type"),_wpnonce:t.attr("data-nonce")},beforeSend:function(){n.css({backgroundColor:"#faafaa"}).fadeOut(350,function(){n.remove(),a.syncMetaboxes()})},success:function(e){"1"!==e&&(n.css({backgroundColor:""}),n.show())}})},onDeleteBulk:function(e,t){e.preventDefault();var a,n,i=this,c=t.prevAll(".acfe-dev-bulk-action").val(),e=t.prevAll(".acfe-dev-bulk-meta-type").val(),t=t.prevAll(".acfe-dev-bulk-nonce").val();"delete"===c&&(a=[],n=[],f("input.acfe-dev-bulk-checkbox: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/dev/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.syncMetaboxes()})})}}))},onCheckPostbox:function(e,t){var a=t.val();t.prop("checked")?this.showBulk():("acfe-wp-custom-fields"===a&&!this.$acf().is(":visible")||"acfe-acf-custom-fields"===a&&!this.$wp().is(":visible"))&&this.hideBulk()}})}(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&&"undefined"!=typeof acfe&&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_template_selection:"select2TemplateSelection",select2_template_result:"select2TemplateSelection"},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)})},select2TemplateSelection:function(e,t,a,n,i,c){return i.get("acfeAllowCustom")?this.replaceCode(e):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")});
|
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-dev-delete-meta":"onDeleteSingle",'click .acfe-dev-bulk [type="submit"]':"onDeleteBulk","change #acfe-wp-custom-fields-hide":"onCheckPostbox","change #acfe-acf-custom-fields-hide":"onCheckPostbox"},$acf:function(){return f("#acfe-acf-custom-fields")},$wp:function(){return f("#acfe-wp-custom-fields")},$bulk:function(){return f(".acfe-dev-bulk")},count:function(e){return this["$"+e]().find("tbody tr").length},hideBulk:function(){this.$bulk().hide()},showBulk:function(){this.$bulk().show()},initialize:function(){this.$bulk().insertAfter(this.$bulk().closest(".postbox")),this.$acf().is(":visible")||this.$wp().is(":visible")||this.hideBulk(),f(".metabox-prefs .acfe-dev-meta-count").remove()},syncMetaboxes:function(){this.$acf().find(".acfe-dev-meta-count").text(this.count("acf")),this.$wp().find(".acfe-dev-meta-count").text(this.count("wp")),this.count("acf")||this.$acf().remove(),this.count("wp")||this.$wp().remove(),(this.count("acf")||this.count("wp"))&&(this.$acf().is(":visible")||this.$wp().is(":visible"))||this.hideBulk()},onDeleteSingle:function(e,t){e.preventDefault();var a=this,n=t.closest("tr");f.ajax({url:acf.get("ajaxurl"),type:"post",data:{action:"acfe/dev/single_delete_meta",id:t.attr("data-meta-id"),key:t.attr("data-meta-key"),type:t.attr("data-meta-type"),_wpnonce:t.attr("data-nonce")},beforeSend:function(){n.css({backgroundColor:"#faafaa"}).fadeOut(350,function(){n.remove(),a.syncMetaboxes()})},success:function(e){"1"!==e&&(n.css({backgroundColor:""}),n.show())}})},onDeleteBulk:function(e,t){e.preventDefault();var a,n,i=this,c=t.prevAll(".acfe-dev-bulk-action").val(),e=t.prevAll(".acfe-dev-bulk-meta-type").val(),t=t.prevAll(".acfe-dev-bulk-nonce").val();"delete"===c&&(a=[],n=[],f("input.acfe-dev-bulk-checkbox: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/dev/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.syncMetaboxes()})})}}))},onCheckPostbox:function(e,t){var a=t.val();t.prop("checked")?this.showBulk():("acfe-wp-custom-fields"===a&&!this.$acf().is(":visible")||"acfe-acf-custom-fields"===a&&!this.$wp().is(":visible"))&&this.hideBulk()}})}(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&&"undefined"!=typeof acfe&&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_template_selection:"select2TemplateSelection",select2_template_result:"select2TemplateSelection"},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)})},select2TemplateSelection:function(e,t,a,n,i,c){return i.get("acfeAllowCustom")?this.replaceCode(e):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
@@ -94,7 +94,7 @@
|
|
94 |
taxonomyTermsAjax: function(ajaxData, data, $el, field, select) {
|
95 |
|
96 |
// Taxonomies
|
97 |
-
var $taxonomies = $el.closest('.acf-field-settings').find('
|
98 |
|
99 |
var tax = [];
|
100 |
|
@@ -105,7 +105,7 @@
|
|
105 |
ajaxData.taxonomies = tax;
|
106 |
|
107 |
// Terms level
|
108 |
-
var $level = $el.closest('.acf-field-settings').find('
|
109 |
|
110 |
ajaxData.level = $level.val();
|
111 |
|
@@ -381,12 +381,20 @@
|
|
381 |
|
382 |
if (acfe.versionCompare(acf.get('acf_version'), '>=', '6.0')) {
|
383 |
|
384 |
-
|
|
|
|
|
|
|
385 |
|
386 |
-
|
387 |
-
|
388 |
-
|
|
|
|
|
|
|
|
|
389 |
field.render();
|
|
|
390 |
}
|
391 |
|
392 |
}
|
94 |
taxonomyTermsAjax: function(ajaxData, data, $el, field, select) {
|
95 |
|
96 |
// Taxonomies
|
97 |
+
var $taxonomies = $el.closest('.acf-field-settings').find('.acf-field-setting-taxonomy > .acf-input > select > option:selected');
|
98 |
|
99 |
var tax = [];
|
100 |
|
105 |
ajaxData.taxonomies = tax;
|
106 |
|
107 |
// Terms level
|
108 |
+
var $level = $el.closest('.acf-field-settings').find('.acf-field-setting-allow_terms > .acf-input input[type="number"]');
|
109 |
|
110 |
ajaxData.level = $level.val();
|
111 |
|
381 |
|
382 |
if (acfe.versionCompare(acf.get('acf_version'), '>=', '6.0')) {
|
383 |
|
384 |
+
// do not use acf.getClosestField() in order to not instantiate the field
|
385 |
+
// otherwise, this would create a bug when duplicating a flexible content layout:
|
386 |
+
// new layout sub fields would be moved back to the original layout
|
387 |
+
var $field = acf.findClosestField($el2);
|
388 |
|
389 |
+
if ($field.is('[data-type="repeater"]')) {
|
390 |
+
|
391 |
+
// instantiate the field here
|
392 |
+
var field = acf.getField($field);
|
393 |
+
|
394 |
+
// field.render() should have been in the repeater "add" method, at the end of acf.duplicate()
|
395 |
+
// but it was removed in acf 6.0
|
396 |
field.render();
|
397 |
+
|
398 |
}
|
399 |
|
400 |
}
|
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),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({actions:{duplicate:"onAppend"},onAppend:function(e,t){!acfe.versionCompare(acf.get("acf_version"),">=","6.0")||(t=acf.findClosestField(t)).is('[data-type="repeater"]')&&acf.getField(t).render()}});
|
assets/js/acfe-input.js
CHANGED
@@ -342,295 +342,195 @@
|
|
342 |
}
|
343 |
|
344 |
/**
|
345 |
-
* acfe.
|
346 |
*
|
347 |
-
* @
|
|
|
|
|
348 |
*/
|
349 |
-
var
|
350 |
-
|
351 |
-
var modelId = function(model) {
|
352 |
-
return !acfe.isEmpty(model.prototype.id) ? model.prototype.id : acf.uniqueId('Extend');
|
353 |
-
};
|
354 |
-
|
355 |
-
acfe.registerFieldExtend = function(model) {
|
356 |
-
var mid = modelId(model);
|
357 |
-
models[mid] = model;
|
358 |
-
};
|
359 |
-
|
360 |
-
|
361 |
-
/**
|
362 |
-
* acfe.getExtendModels
|
363 |
-
*
|
364 |
-
* todo: Added sorted by priority too
|
365 |
-
*
|
366 |
-
* @returns {*[]}
|
367 |
-
*/
|
368 |
-
acfe.getExtendModels = function() {
|
369 |
-
|
370 |
-
var midsNoDeps = [];
|
371 |
|
372 |
-
|
373 |
|
374 |
-
|
|
|
375 |
|
376 |
-
|
|
|
|
|
|
|
377 |
|
378 |
-
|
379 |
-
|
380 |
-
found = true;
|
381 |
-
break;
|
382 |
-
}
|
383 |
-
}
|
384 |
|
385 |
-
|
386 |
-
|
387 |
-
}
|
388 |
|
389 |
-
|
390 |
-
}
|
391 |
|
392 |
-
|
|
|
|
|
|
|
|
|
|
|
393 |
|
394 |
-
|
395 |
-
if (!acfe.inArray(mid, midsNoDeps)) {
|
396 |
-
sortRules[mid] = model.prototype.dependencies;
|
397 |
-
}
|
398 |
-
}
|
399 |
|
|
|
|
|
400 |
|
401 |
-
var
|
402 |
-
var final = {};
|
403 |
|
404 |
-
|
405 |
-
|
406 |
}
|
407 |
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
|
412 |
-
|
413 |
-
|
414 |
-
*/
|
415 |
-
acfe.FieldExtend = acf.Model.extend({
|
416 |
|
417 |
-
|
418 |
-
|
419 |
-
*
|
420 |
-
* define specific id allowing query and dependencies
|
421 |
-
* cid will be used for storage if not set
|
422 |
-
*/
|
423 |
-
id: '',
|
424 |
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
* relationship : single field type
|
429 |
-
* [relationship, post_object...] : multiple field types
|
430 |
-
*/
|
431 |
-
type: '',
|
432 |
|
433 |
-
|
434 |
-
|
435 |
-
*
|
436 |
-
* define dependent extenders before hooking
|
437 |
-
*/
|
438 |
-
dependencies: [],
|
439 |
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
*
|
445 |
-
* @returns {boolean}
|
446 |
-
*/
|
447 |
-
conditions: function() {
|
448 |
-
return true;
|
449 |
-
},
|
450 |
|
451 |
-
|
452 |
-
|
453 |
-
*
|
454 |
-
* append methods to the targeted field
|
455 |
-
*
|
456 |
-
* false : no append
|
457 |
-
* [] : append all (default)
|
458 |
-
* [method1, method2...] : append specific methods
|
459 |
-
*/
|
460 |
-
methods: [],
|
461 |
|
462 |
-
|
463 |
-
|
464 |
-
*
|
465 |
-
* select the replacement type for objects (events, data...)
|
466 |
-
*
|
467 |
-
* append : append if doesn't exist
|
468 |
-
* replace : append & replace if exists (default)
|
469 |
-
* rewrite : rewrite completely
|
470 |
-
* {object: 'append', object2: 'replace'...} : specific rule by object key
|
471 |
-
*/
|
472 |
-
replace: 'replace',
|
473 |
|
474 |
-
|
475 |
-
|
476 |
-
*
|
477 |
-
* retrieve available methods for internal use
|
478 |
-
*
|
479 |
-
* @returns {*[]}
|
480 |
-
*/
|
481 |
-
getMethods: function() {
|
482 |
|
483 |
-
//
|
484 |
-
if (
|
485 |
-
|
486 |
}
|
487 |
|
488 |
-
//
|
489 |
-
|
490 |
-
|
491 |
-
// get reserved methods
|
492 |
-
var internalMethods = ['constructor', 'id', 'type', 'dependencies', 'conditions', 'methods', 'replace', 'getMethods', 'getObjReplace'];
|
493 |
-
|
494 |
-
// remove reserved methods & check method exists
|
495 |
-
return methods.filter(function(method) {
|
496 |
-
return !acfe.inArray(method, internalMethods) && this.hasOwnProperty(method);
|
497 |
-
}, this);
|
498 |
|
499 |
-
|
|
|
500 |
|
501 |
-
|
502 |
-
* getObjReplace
|
503 |
-
*
|
504 |
-
* retrieve replacement type for objects. Internal use
|
505 |
-
*
|
506 |
-
* @param method
|
507 |
-
* @returns {string|*}
|
508 |
-
*/
|
509 |
-
getObjReplace: function(method = false) {
|
510 |
|
511 |
-
|
512 |
-
|
513 |
|
514 |
-
|
515 |
-
|
516 |
-
return this.replace;
|
517 |
|
518 |
-
|
519 |
-
|
|
|
520 |
|
521 |
-
|
522 |
-
|
523 |
-
return replace;
|
524 |
-
}
|
525 |
}
|
526 |
|
|
|
|
|
527 |
}
|
528 |
|
529 |
-
|
530 |
-
return 'replace';
|
531 |
|
532 |
}
|
533 |
|
534 |
-
|
|
|
|
|
|
|
|
|
535 |
|
536 |
/**
|
537 |
-
*
|
538 |
*
|
539 |
-
* @
|
|
|
540 |
*/
|
541 |
-
var
|
542 |
-
wait: 'prepare',
|
543 |
-
priority: 5,
|
544 |
|
545 |
-
|
546 |
-
|
547 |
-
// loop extends
|
548 |
-
for (var [key, extend] of acfe.getEntries(acfe.getExtendModels())) {
|
549 |
-
|
550 |
-
// vars
|
551 |
-
var extendProto = extend.prototype;
|
552 |
-
var types = acfe.getArray(extendProto.type);
|
553 |
|
|
|
|
|
|
|
554 |
|
555 |
-
|
556 |
-
for (var type of types) {
|
557 |
|
558 |
-
|
559 |
|
560 |
-
if (model) {
|
561 |
-
this.extendModel(model, extendProto);
|
562 |
-
}
|
563 |
|
564 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
565 |
|
|
|
|
|
|
|
566 |
}
|
|
|
567 |
|
568 |
-
|
569 |
-
|
570 |
-
extendModel: function(model, extendProto) {
|
571 |
-
|
572 |
-
// backup setup
|
573 |
-
var setup = model.prototype.setup;
|
574 |
-
|
575 |
-
// extend setup
|
576 |
-
model.prototype.setup = function($field) {
|
577 |
-
|
578 |
-
// parent setup
|
579 |
-
setup.apply(this, arguments);
|
580 |
-
|
581 |
-
// validate conditions
|
582 |
-
if (!extendProto.conditions.apply(this)) {
|
583 |
-
return;
|
584 |
-
}
|
585 |
-
|
586 |
-
// loop methods
|
587 |
-
for (var method of extendProto.getMethods()) {
|
588 |
|
589 |
-
|
590 |
-
if (method === 'setup') {
|
591 |
-
extendProto[method].apply(this, arguments);
|
592 |
|
593 |
-
// object (events, data...)
|
594 |
-
} else if (acfe.isObject(extendProto[method])) {
|
595 |
|
596 |
-
|
597 |
-
|
|
|
|
|
|
|
|
|
|
|
598 |
|
599 |
-
|
600 |
-
case 'append': {
|
601 |
-
this[method] = $.extend(true, extendProto[method], this[method]);
|
602 |
-
break;
|
603 |
-
}
|
604 |
|
605 |
-
|
606 |
-
case 'replace': {
|
607 |
-
this[method] = $.extend(true, {}, this[method], extendProto[method]);
|
608 |
-
break;
|
609 |
-
}
|
610 |
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
}
|
616 |
|
617 |
-
|
|
|
|
|
|
|
618 |
|
619 |
-
|
620 |
-
|
621 |
-
this[method] = extendProto[method];
|
622 |
|
623 |
-
|
624 |
|
625 |
-
|
|
|
626 |
|
627 |
-
|
628 |
|
629 |
-
}
|
630 |
-
});
|
631 |
|
632 |
/**
|
633 |
-
*
|
634 |
*
|
635 |
* https://stackoverflow.com/a/54347328
|
636 |
*
|
@@ -640,7 +540,7 @@
|
|
640 |
* @param depth
|
641 |
* @returns {*|*[]}
|
642 |
*/
|
643 |
-
var
|
644 |
|
645 |
if (typeof names === 'object' && !Array.isArray(names)) {
|
646 |
names = Object.keys(names)
|
@@ -662,9 +562,9 @@
|
|
662 |
|
663 |
const goAgain = nextNames.length && depth <= names.length;
|
664 |
|
665 |
-
return goAgain ?
|
666 |
|
667 |
-
}
|
668 |
|
669 |
})(jQuery);
|
670 |
(function($) {
|
@@ -685,7 +585,7 @@
|
|
685 |
return false;
|
686 |
}
|
687 |
|
688 |
-
// check if prototype
|
689 |
return !acf.getFieldType(field.get('type')).prototype.get('ftype');
|
690 |
|
691 |
},
|
@@ -755,7 +655,7 @@
|
|
755 |
|
756 |
var icon = acfe.versionCompare(acf.get('wp_version'), '>=', '5.5') ? 'dashicons-info-outline' : 'dashicons-info';
|
757 |
|
758 |
-
this.field.$labelWrap().prepend('<span class="acfe-field-tooltip acf-js-tooltip dashicons ' + icon + '" title="' +
|
759 |
this.field.$labelWrap().find('.description').remove();
|
760 |
|
761 |
},
|
@@ -860,7 +760,7 @@
|
|
860 |
|
861 |
var icon = acfe.versionCompare(acf.get('wp_version'), '>=', '5.5') ? 'dashicons-info-outline' : 'dashicons-info';
|
862 |
|
863 |
-
this.field.$labelWrap().prepend($('<span class="acfe-field-tooltip acf-js-tooltip dashicons ' + icon + '" title="' +
|
864 |
$instruction.remove();
|
865 |
|
866 |
}
|
@@ -877,194 +777,427 @@
|
|
877 |
}
|
878 |
|
879 |
/**
|
880 |
-
* Field:
|
881 |
*/
|
882 |
-
|
883 |
-
|
884 |
-
type: 'acfe_advanced_link',
|
885 |
-
|
886 |
-
events: {
|
887 |
-
'click a[data-name="add"]': 'onClickEdit',
|
888 |
-
'click a[data-name="edit"]': 'onClickEdit',
|
889 |
-
'click a[data-name="remove"]': 'onClickRemove',
|
890 |
-
},
|
891 |
|
892 |
-
|
893 |
-
|
894 |
},
|
895 |
|
896 |
-
|
897 |
-
|
898 |
},
|
899 |
|
900 |
-
|
901 |
-
|
902 |
-
// return
|
903 |
-
var data = {
|
904 |
-
type: this.$('.input-type :checked').val(),
|
905 |
-
title: this.$('.input-title').val(),
|
906 |
-
url: this.$('.input-url').val(),
|
907 |
-
post: this.$('.input-post :selected').text(),
|
908 |
-
term: this.$('.input-term :selected').text(),
|
909 |
-
target: this.$('.input-target').is(':checked')
|
910 |
-
};
|
911 |
-
|
912 |
-
if (data.type === 'post') {
|
913 |
-
data.url = data.post;
|
914 |
|
915 |
-
|
916 |
-
|
|
|
917 |
}
|
918 |
|
919 |
-
|
|
|
920 |
|
921 |
},
|
922 |
|
923 |
-
|
924 |
|
925 |
-
//
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
url: '',
|
930 |
-
target: false
|
931 |
-
});
|
932 |
|
933 |
// vars
|
934 |
-
var
|
935 |
-
|
936 |
-
// remove class
|
937 |
-
$div.removeClass('-value -external');
|
938 |
|
939 |
-
|
940 |
-
if (val.url || val.title) {
|
941 |
-
$div.addClass('-value');
|
942 |
-
}
|
943 |
|
944 |
-
|
945 |
-
$div.addClass('-external');
|
946 |
-
}
|
947 |
|
948 |
-
|
949 |
-
|
950 |
-
|
|
|
|
|
951 |
|
952 |
-
|
953 |
-
if (val.remove) {
|
954 |
|
955 |
-
|
956 |
-
this.$('.input-type [value="url"]').prop('checked', true).trigger('change');
|
957 |
-
this.$('.input-title').val('');
|
958 |
-
this.$('.input-target').prop('checked', false);
|
959 |
-
this.$('.input-url').val('').trigger('change');
|
960 |
-
this.$('.input-post').val('').trigger('change');
|
961 |
-
this.$('.input-term').val('').trigger('change');
|
962 |
|
963 |
-
|
964 |
|
965 |
-
|
|
|
|
|
|
|
|
|
966 |
|
967 |
-
|
|
|
968 |
|
969 |
-
|
|
|
|
|
970 |
|
971 |
-
|
972 |
|
973 |
-
|
974 |
|
975 |
-
new acfe.Popup($modal, {
|
976 |
-
title: title,
|
977 |
-
size: 'medium',
|
978 |
-
footer: acf.__('Close'),
|
979 |
-
onClose: function() {
|
980 |
-
model.onChange();
|
981 |
}
|
982 |
-
});
|
983 |
|
984 |
-
|
985 |
|
986 |
-
|
987 |
|
988 |
-
|
989 |
-
remove: true
|
990 |
-
});
|
991 |
|
992 |
-
|
|
|
|
|
|
|
|
|
|
|
993 |
|
994 |
-
|
995 |
|
996 |
-
|
997 |
-
var val = this.getValue();
|
998 |
|
999 |
-
|
1000 |
-
|
|
|
1001 |
|
1002 |
-
|
1003 |
|
1004 |
-
}
|
1005 |
|
1006 |
-
|
|
|
|
|
|
|
|
|
|
|
1007 |
|
1008 |
/**
|
1009 |
-
* Field:
|
1010 |
*/
|
1011 |
new acf.Model({
|
1012 |
|
1013 |
actions: {
|
1014 |
-
'
|
1015 |
},
|
1016 |
|
1017 |
filters: {
|
1018 |
-
'
|
|
|
1019 |
},
|
1020 |
|
1021 |
-
|
1022 |
-
|
1023 |
-
var $advanced_link = field.$el.closest('.acf-field-acfe-advanced-link').not('.acf-error');
|
1024 |
-
|
1025 |
-
if ($advanced_link.length) {
|
1026 |
-
|
1027 |
-
var advanced_link_field = acf.getInstance($advanced_link);
|
1028 |
-
|
1029 |
-
advanced_link_field.showError(field.notice.get('text'));
|
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 |
-
return;
|
1058 |
-
}
|
1059 |
|
1060 |
-
|
1061 |
-
* Field: Button
|
1062 |
-
*/
|
1063 |
-
var ACFE_Button = acf.Field.extend({
|
1064 |
|
1065 |
-
|
1066 |
|
1067 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1068 |
'click input': 'onClick',
|
1069 |
'click button': 'onClick',
|
1070 |
},
|
@@ -1170,45 +1303,52 @@
|
|
1170 |
/**
|
1171 |
* Field: Checkbox
|
1172 |
*/
|
1173 |
-
|
1174 |
|
1175 |
-
|
1176 |
-
'new_field': 'newField',
|
1177 |
-
},
|
1178 |
|
1179 |
-
|
|
|
|
|
1180 |
|
1181 |
-
//
|
1182 |
-
if (!
|
1183 |
-
return
|
1184 |
}
|
1185 |
|
1186 |
-
//
|
1187 |
-
var
|
1188 |
|
1189 |
-
//
|
1190 |
-
|
1191 |
|
1192 |
-
|
|
|
1193 |
|
1194 |
-
|
|
|
1195 |
|
1196 |
-
|
1197 |
-
|
1198 |
-
return;
|
1199 |
-
}
|
1200 |
|
1201 |
-
|
1202 |
-
var label, item;
|
1203 |
-
var labels = field.get('acfeLabels');
|
1204 |
|
1205 |
-
|
1206 |
-
for (label in labels) {
|
1207 |
|
1208 |
-
|
1209 |
-
field.$control().find('input[type=checkbox][value="' + item + '"]').closest('ul').before('<strong>' + label + '</strong>');
|
1210 |
|
1211 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1212 |
|
1213 |
}
|
1214 |
|
@@ -1231,7 +1371,6 @@
|
|
1231 |
type: 'clone',
|
1232 |
|
1233 |
events: {
|
1234 |
-
'click [data-name="edit"]': 'onClick',
|
1235 |
'duplicateField': 'onDuplicate'
|
1236 |
},
|
1237 |
|
@@ -1239,16 +1378,16 @@
|
|
1239 |
|
1240 |
if (this.has('acfeCloneModal')) {
|
1241 |
|
1242 |
-
var edit = this.get('acfeCloneModalButton');
|
1243 |
-
|
1244 |
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>');
|
1245 |
-
this.$el.find('> .acf-input').append('<a
|
|
|
|
|
1246 |
|
1247 |
}
|
1248 |
|
1249 |
},
|
1250 |
|
1251 |
-
|
1252 |
|
1253 |
// normal title
|
1254 |
var title = this.$labelWrap().find('label').text().trim();
|
@@ -1256,7 +1395,7 @@
|
|
1256 |
// inside table
|
1257 |
if (this.$el.is('td')) {
|
1258 |
|
1259 |
-
title = this.get('
|
1260 |
var $th = this.$el.closest('table').find(' > thead th[data-key="' + this.get('key') + '"]');
|
1261 |
|
1262 |
if ($th.length) {
|
@@ -1265,38 +1404,23 @@
|
|
1265 |
|
1266 |
}
|
1267 |
|
1268 |
-
|
1269 |
-
|
1270 |
-
// Title
|
1271 |
if (!title.length) {
|
1272 |
title = this.get('acfeCloneModalButton');
|
1273 |
}
|
1274 |
|
1275 |
-
//
|
1276 |
-
|
1277 |
-
|
1278 |
-
if (this.has('acfeCloneModalClose')) {
|
1279 |
-
close = acf.__('Close');
|
1280 |
-
}
|
1281 |
-
|
1282 |
-
// Size
|
1283 |
-
var size = 'large';
|
1284 |
-
|
1285 |
-
if (this.has('acfeCloneModalSize')) {
|
1286 |
-
size = this.get('acfeCloneModalSize');
|
1287 |
-
}
|
1288 |
-
|
1289 |
-
// Open modal
|
1290 |
-
new acfe.Popup($modal, {
|
1291 |
title: title,
|
1292 |
-
size:
|
1293 |
-
footer:
|
|
|
1294 |
});
|
1295 |
|
1296 |
},
|
1297 |
|
1298 |
onDuplicate: function(e, $el, $duplicate) {
|
1299 |
-
$duplicate.find('a[data-
|
1300 |
}
|
1301 |
|
1302 |
});
|
@@ -1475,7 +1599,7 @@
|
|
1475 |
}
|
1476 |
|
1477 |
/**
|
1478 |
-
*
|
1479 |
*/
|
1480 |
var FlexibleContent = acf.models.FlexibleContentField;
|
1481 |
|
@@ -1492,10 +1616,10 @@
|
|
1492 |
this.$layoutsWrap().sortable({
|
1493 |
items: ' > .layout',
|
1494 |
handle: '> .acf-fc-layout-handle',
|
1495 |
-
forceHelperSize: false, //
|
1496 |
forcePlaceholderSize: true,
|
1497 |
revert: 50,
|
1498 |
-
tolerance:
|
1499 |
scroll: true,
|
1500 |
stop: function(event, ui) {
|
1501 |
self.render();
|
@@ -1507,400 +1631,250 @@
|
|
1507 |
|
1508 |
},
|
1509 |
|
1510 |
-
acfeOneClick: function(e, $el) {
|
1511 |
-
|
1512 |
-
// Vars
|
1513 |
-
var $clones = this.$clones();
|
1514 |
-
var $layout_name = $($clones[0]).data('layout');
|
1515 |
-
|
1516 |
-
// Source
|
1517 |
-
var $layout_source = null;
|
1518 |
|
1519 |
-
|
1520 |
-
$layout_source = $el.closest('.layout');
|
1521 |
-
}
|
1522 |
|
1523 |
-
//
|
1524 |
-
|
1525 |
-
layout: $layout_name,
|
1526 |
-
before: $layout_source
|
1527 |
-
});
|
1528 |
|
1529 |
-
|
1530 |
-
var acfPopup = $('.acf-fc-popup');
|
1531 |
|
1532 |
-
|
1533 |
-
|
1534 |
}
|
1535 |
|
1536 |
-
|
1537 |
},
|
1538 |
|
1539 |
-
|
1540 |
|
1541 |
-
|
1542 |
-
|
1543 |
-
|
1544 |
-
|
1545 |
|
1546 |
-
|
1547 |
-
|
1548 |
-
|
|
|
1549 |
|
1550 |
-
|
1551 |
-
var $placeholder = $layout.find('> .acfe-fc-placeholder');
|
1552 |
|
1553 |
-
|
1554 |
-
$placeholder.removeClass('acf-hidden');
|
1555 |
|
1556 |
-
|
1557 |
-
if (!this.has('acfeFlexibleModalEdition') && !this.isLayoutClosed($layout)) {
|
1558 |
|
1559 |
-
|
1560 |
|
1561 |
-
|
1562 |
|
1563 |
-
|
1564 |
-
if (this.isLayoutClosed($layout) && this.has('acfeFlexiblePreview') && !$placeholder.hasClass('-loading')) {
|
1565 |
|
1566 |
-
|
1567 |
-
|
|
|
1568 |
|
1569 |
-
|
1570 |
-
var $input = $layout.children('input');
|
1571 |
-
var prefix = $input.attr('name').replace('[acf_fc_layout]', '');
|
1572 |
-
|
1573 |
-
// ajax data
|
1574 |
-
var ajaxData = {
|
1575 |
-
action: 'acfe/flexible/layout_preview',
|
1576 |
-
field_key: key,
|
1577 |
-
i: index,
|
1578 |
-
layout: layout,
|
1579 |
-
value: acf.serialize($layout, prefix)
|
1580 |
-
};
|
1581 |
|
1582 |
-
|
1583 |
-
acf.doAction('acfe/fields/flexible_content/before_preview/name=' + name, $el, $layout, ajaxData);
|
1584 |
-
acf.doAction('acfe/fields/flexible_content/before_preview/key=' + key, $el, $layout, ajaxData);
|
1585 |
-
acf.doAction('acfe/fields/flexible_content/before_preview/name=' + name + '&layout=' + layout, $el, $layout, ajaxData);
|
1586 |
-
acf.doAction('acfe/fields/flexible_content/before_preview/key=' + key + '&layout=' + layout, $el, $layout, ajaxData);
|
1587 |
|
1588 |
-
|
1589 |
-
var onSuccess = function(response) {
|
1590 |
-
|
1591 |
-
if (response) {
|
1592 |
-
$placeholder.find('> .acfe-flexible-placeholder').html(response);
|
1593 |
-
} else {
|
1594 |
-
$placeholder.removeClass('acfe-fc-preview');
|
1595 |
-
}
|
1596 |
-
|
1597 |
-
acf.doAction('acfe/fields/flexible_content/preview', response, $el, $layout, ajaxData);
|
1598 |
-
acf.doAction('acfe/fields/flexible_content/preview/name=' + name, response, $el, $layout, ajaxData);
|
1599 |
-
acf.doAction('acfe/fields/flexible_content/preview/key=' + key, response, $el, $layout, ajaxData);
|
1600 |
-
acf.doAction('acfe/fields/flexible_content/preview/name=' + name + '&layout=' + layout, response, $el, $layout, ajaxData);
|
1601 |
-
acf.doAction('acfe/fields/flexible_content/preview/key=' + key + '&layout=' + layout, response, $el, $layout, ajaxData);
|
1602 |
-
|
1603 |
-
};
|
1604 |
-
|
1605 |
-
// on complete
|
1606 |
-
var onComplete = function() {
|
1607 |
-
|
1608 |
-
$placeholder.find('> .acfe-fc-overlay').removeClass('-hover');
|
1609 |
-
$placeholder.removeClass('-loading').find('> .acfe-flexible-placeholder > .spinner').remove();
|
1610 |
-
|
1611 |
-
};
|
1612 |
-
|
1613 |
-
// ajax
|
1614 |
-
$.ajax({
|
1615 |
-
url: acf.get('ajaxurl'),
|
1616 |
-
data: acf.prepareForAjax(ajaxData),
|
1617 |
-
dataType: 'html',
|
1618 |
-
type: 'post',
|
1619 |
-
success: onSuccess,
|
1620 |
-
complete: onComplete
|
1621 |
-
});
|
1622 |
-
|
1623 |
-
}
|
1624 |
|
1625 |
-
|
|
|
1626 |
|
1627 |
-
|
|
|
|
|
1628 |
|
1629 |
/**
|
1630 |
-
*
|
1631 |
*/
|
1632 |
-
|
1633 |
-
|
1634 |
-
actions: {
|
1635 |
-
'new_field/type=flexible_content': 'newField',
|
1636 |
-
'acfe/flexible/layouts': 'newLayouts',
|
1637 |
-
'show': 'onShow',
|
1638 |
-
'hide': 'onHide',
|
1639 |
-
'append': 'onAppend',
|
1640 |
-
'invalid_field': 'onInvalidField',
|
1641 |
-
'valid_field': 'onValidField',
|
1642 |
-
},
|
1643 |
-
|
1644 |
-
newField: function(flexible) {
|
1645 |
|
1646 |
-
|
1647 |
-
var $clones = flexible.$clones();
|
1648 |
-
var $layouts = flexible.$layouts();
|
1649 |
|
1650 |
-
|
1651 |
-
$layouts.each(function() {
|
1652 |
|
1653 |
-
|
1654 |
-
var $name = $layout.data('layout');
|
1655 |
|
1656 |
-
|
1657 |
-
|
1658 |
|
|
|
|
|
|
|
1659 |
});
|
1660 |
|
1661 |
-
|
1662 |
-
if ($clones.length === 1) {
|
1663 |
|
1664 |
-
|
1665 |
-
flexible.removeEvents({
|
1666 |
-
'click [data-name="add-layout"]': 'onClickAdd'
|
1667 |
-
});
|
1668 |
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
|
|
|
|
|
|
|
|
|
|
1673 |
|
1674 |
}
|
1675 |
|
1676 |
-
|
1677 |
-
|
1678 |
-
});
|
1679 |
|
1680 |
-
|
1681 |
-
|
1682 |
-
});
|
1683 |
|
1684 |
-
|
1685 |
-
if (flexible.has('acfeFlexibleAjax')) {
|
1686 |
|
1687 |
-
|
|
|
1688 |
|
1689 |
-
|
1690 |
-
var flexible = this;
|
1691 |
|
1692 |
-
|
1693 |
-
|
1694 |
-
layout: '',
|
1695 |
-
before: false
|
1696 |
-
});
|
1697 |
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
|
|
1701 |
}
|
|
|
1702 |
|
1703 |
-
// ajax
|
1704 |
-
$.ajax({
|
1705 |
-
url: acf.get('ajaxurl'),
|
1706 |
-
data: acf.prepareForAjax({
|
1707 |
-
action: 'acfe/flexible/models',
|
1708 |
-
field_key: this.get('key'),
|
1709 |
-
layout: args.layout,
|
1710 |
-
}),
|
1711 |
-
dataType: 'html',
|
1712 |
-
type: 'post',
|
1713 |
-
beforeSend: function() {
|
1714 |
-
$('body').addClass('-loading');
|
1715 |
-
},
|
1716 |
-
success: function(html) {
|
1717 |
-
if (html) {
|
1718 |
-
|
1719 |
-
var $layout = $(html);
|
1720 |
-
var uniqid = acf.uniqid();
|
1721 |
-
|
1722 |
-
var search = 'acf[' + flexible.get('key') + '][acfcloneindex]';
|
1723 |
-
var replace = flexible.$control().find('> input[type=hidden]').attr('name') + '[' + uniqid + ']';
|
1724 |
-
|
1725 |
-
// add row
|
1726 |
-
var $el = acf.duplicate({
|
1727 |
-
target: $layout,
|
1728 |
-
search: search,
|
1729 |
-
replace: replace,
|
1730 |
-
append: flexible.proxy(function($el, $el2) {
|
1731 |
-
|
1732 |
-
// append
|
1733 |
-
if (args.before) {
|
1734 |
-
args.before.before($el2);
|
1735 |
-
} else {
|
1736 |
-
flexible.$layoutsWrap().append($el2);
|
1737 |
-
}
|
1738 |
-
|
1739 |
-
// enable
|
1740 |
-
acf.enable($el2, flexible.cid);
|
1741 |
-
|
1742 |
-
// render
|
1743 |
-
flexible.render();
|
1744 |
-
})
|
1745 |
-
});
|
1746 |
-
|
1747 |
-
// Fix data-id
|
1748 |
-
$el.attr('data-id', uniqid);
|
1749 |
-
|
1750 |
-
// trigger change for validation errors
|
1751 |
-
flexible.$input().trigger('change');
|
1752 |
-
|
1753 |
-
// return
|
1754 |
-
return $el;
|
1755 |
-
|
1756 |
-
}
|
1757 |
-
},
|
1758 |
-
'complete': function() {
|
1759 |
-
$('body').removeClass('-loading');
|
1760 |
-
}
|
1761 |
-
});
|
1762 |
-
|
1763 |
-
};
|
1764 |
|
1765 |
}
|
1766 |
|
1767 |
},
|
1768 |
|
1769 |
-
|
1770 |
-
|
1771 |
-
// Layout Closed
|
1772 |
-
if (flexible.isLayoutClosed($layout)) {
|
1773 |
-
|
1774 |
-
// Placeholder
|
1775 |
-
$layout.find('> .acfe-fc-placeholder').removeClass('acf-hidden');
|
1776 |
|
1777 |
-
|
1778 |
-
|
1779 |
-
|
1780 |
|
1781 |
-
|
|
|
1782 |
|
1783 |
-
|
1784 |
|
1785 |
-
|
|
|
|
|
1786 |
|
1787 |
}
|
1788 |
|
1789 |
},
|
1790 |
|
1791 |
-
|
1792 |
-
|
1793 |
-
if (type !== 'collapse' || !$layout.is('.layout')) {
|
1794 |
-
return;
|
1795 |
-
}
|
1796 |
-
|
1797 |
-
var flexible = acf.getInstance($layout.closest('.acf-field-flexible-content'));
|
1798 |
-
|
1799 |
-
// Hide Placeholder
|
1800 |
-
if (!flexible.has('acfeFlexibleModalEdition')) {
|
1801 |
-
$layout.find('> .acfe-fc-placeholder').addClass('acf-hidden');
|
1802 |
-
}
|
1803 |
-
|
1804 |
-
},
|
1805 |
|
1806 |
-
|
|
|
1807 |
|
1808 |
-
|
1809 |
-
|
1810 |
-
|
1811 |
|
1812 |
-
|
1813 |
-
|
|
|
|
|
1814 |
|
1815 |
-
|
1816 |
-
if (flexible.has('acfeFlexibleRemoveAjaxTitle')) {
|
1817 |
-
flexible.renderLayout = function($layout) {};
|
1818 |
-
}
|
1819 |
|
1820 |
-
|
1821 |
-
flexible.acfeLayoutInit($layout);
|
1822 |
|
|
|
|
|
1823 |
},
|
1824 |
|
1825 |
-
|
1826 |
-
|
1827 |
-
// Bail early if layout is not layout
|
1828 |
-
if (!$el.is('.layout')) {
|
1829 |
-
return;
|
1830 |
-
}
|
1831 |
|
1832 |
-
//
|
1833 |
-
|
|
|
|
|
|
|
1834 |
|
1835 |
-
//
|
1836 |
-
if (
|
|
|
|
|
1837 |
|
1838 |
-
|
1839 |
-
|
1840 |
-
|
1841 |
-
|
|
|
|
|
1842 |
|
1843 |
-
|
1844 |
-
|
1845 |
-
|
1846 |
-
|
1847 |
|
|
|
|
|
|
|
1848 |
}
|
1849 |
|
1850 |
-
|
|
|
1851 |
|
1852 |
-
|
1853 |
|
1854 |
-
|
|
|
1855 |
|
1856 |
-
|
1857 |
-
|
1858 |
-
scrollTop: parseInt($el.offset().top) - 200
|
1859 |
-
}, 200);
|
1860 |
|
1861 |
-
|
|
|
|
|
|
|
|
|
|
|
1862 |
|
1863 |
-
|
|
|
|
|
|
|
|
|
|
|
1864 |
|
1865 |
-
|
1866 |
-
|
1867 |
-
scrollTop: parseInt($el.offset().top) - 200
|
1868 |
-
}, 200);
|
1869 |
|
1870 |
-
|
|
|
|
|
|
|
1871 |
|
1872 |
-
//
|
1873 |
-
|
1874 |
|
1875 |
-
|
1876 |
-
|
1877 |
-
scrollTop: parseInt($el.offset().top) - 200
|
1878 |
-
}, 200);
|
1879 |
|
1880 |
-
|
|
|
1881 |
|
1882 |
}
|
1883 |
|
1884 |
-
}
|
1885 |
-
|
1886 |
-
},
|
1887 |
-
|
1888 |
-
onInvalidField: function(field) {
|
1889 |
-
|
1890 |
-
field.$el.parents('.layout').addClass('acfe-flexible-modal-edit-error');
|
1891 |
-
|
1892 |
-
},
|
1893 |
-
|
1894 |
-
onValidField: function(field) {
|
1895 |
-
|
1896 |
-
field.$el.parents('.layout').each(function() {
|
1897 |
-
|
1898 |
-
var $layout = $(this);
|
1899 |
-
|
1900 |
-
if (!$layout.find('.acf-error').length) {
|
1901 |
-
$layout.removeClass('acfe-flexible-modal-edit-error');
|
1902 |
-
}
|
1903 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1904 |
});
|
1905 |
|
1906 |
}
|
@@ -1920,207 +1894,6 @@
|
|
1920 |
var flexible = acf.getFieldType('flexible_content');
|
1921 |
var model = flexible.prototype;
|
1922 |
|
1923 |
-
/**
|
1924 |
-
* Actions
|
1925 |
-
*/
|
1926 |
-
model.events['click .acf-fc-layout-handle'] = 'acfeEditLayoutTitleToggleHandle';
|
1927 |
-
model.acfeEditLayoutTitleToggleHandle = function(e, $el) {
|
1928 |
-
|
1929 |
-
var flexible = this;
|
1930 |
-
|
1931 |
-
// Title Edition
|
1932 |
-
if (!flexible.has('acfeFlexibleTitleEdition'))
|
1933 |
-
return;
|
1934 |
-
|
1935 |
-
// Vars
|
1936 |
-
var $layout = $el.closest('.layout');
|
1937 |
-
|
1938 |
-
if ($layout.hasClass('acfe-flexible-title-edition')) {
|
1939 |
-
|
1940 |
-
$layout.find('> .acf-fc-layout-handle > .acfe-layout-title > input.acfe-flexible-control-title').trigger('blur');
|
1941 |
-
|
1942 |
-
}
|
1943 |
-
|
1944 |
-
}
|
1945 |
-
|
1946 |
-
model.events['click .acfe-layout-title-text'] = 'acfeEditLayoutTitle';
|
1947 |
-
model.acfeEditLayoutTitle = function(e, $el) {
|
1948 |
-
|
1949 |
-
// Get Flexible
|
1950 |
-
var flexible = this;
|
1951 |
-
|
1952 |
-
// Title Edition
|
1953 |
-
if (!flexible.has('acfeFlexibleTitleEdition'))
|
1954 |
-
return;
|
1955 |
-
|
1956 |
-
// Stop propagation
|
1957 |
-
e.stopPropagation();
|
1958 |
-
|
1959 |
-
// Toggle
|
1960 |
-
flexible.acfeEditLayoutTitleToggle(e, $el);
|
1961 |
-
|
1962 |
-
}
|
1963 |
-
|
1964 |
-
model.events['blur input.acfe-flexible-control-title'] = 'acfeEditLayoutTitleToggle';
|
1965 |
-
model.acfeEditLayoutTitleToggle = function(e, $el) {
|
1966 |
-
|
1967 |
-
var flexible = this;
|
1968 |
-
|
1969 |
-
// Vars
|
1970 |
-
var $layout = $el.closest('.layout');
|
1971 |
-
var $handle = $layout.find('> .acf-fc-layout-handle');
|
1972 |
-
var $title = $handle.find('.acfe-layout-title');
|
1973 |
-
|
1974 |
-
if ($layout.hasClass('acfe-flexible-title-edition')) {
|
1975 |
-
|
1976 |
-
var $input = $title.find('> input[data-acfe-flexible-control-title-input]');
|
1977 |
-
|
1978 |
-
if ($input.val() === '')
|
1979 |
-
$input.val($input.attr('placeholder')).trigger('input');
|
1980 |
-
|
1981 |
-
$layout.removeClass('acfe-flexible-title-edition');
|
1982 |
-
|
1983 |
-
$input.insertAfter($handle);
|
1984 |
-
|
1985 |
-
} else {
|
1986 |
-
|
1987 |
-
var $input = $layout.find('> input[data-acfe-flexible-control-title-input]');
|
1988 |
-
|
1989 |
-
var $input = $input.appendTo($title);
|
1990 |
-
|
1991 |
-
$layout.addClass('acfe-flexible-title-edition');
|
1992 |
-
$input.focus().attr('size', $input.val().length);
|
1993 |
-
|
1994 |
-
}
|
1995 |
-
|
1996 |
-
}
|
1997 |
-
|
1998 |
-
// Layout: Edit Title
|
1999 |
-
model.events['click input.acfe-flexible-control-title'] = 'acfeEditLayoutTitlePropagation';
|
2000 |
-
model.acfeEditLayoutTitlePropagation = function(e, $el) {
|
2001 |
-
|
2002 |
-
e.stopPropagation();
|
2003 |
-
|
2004 |
-
}
|
2005 |
-
|
2006 |
-
// Layout: Edit Title Input
|
2007 |
-
model.events['input [data-acfe-flexible-control-title-input]'] = 'acfeEditLayoutTitleInput';
|
2008 |
-
model.acfeEditLayoutTitleInput = function(e, $el) {
|
2009 |
-
|
2010 |
-
// Vars
|
2011 |
-
var $layout = $el.closest('.layout');
|
2012 |
-
var $title = $layout.find('> .acf-fc-layout-handle .acfe-layout-title .acfe-layout-title-text');
|
2013 |
-
|
2014 |
-
var val = $el.val();
|
2015 |
-
|
2016 |
-
$el.attr('size', val.length);
|
2017 |
-
|
2018 |
-
$title.html(val);
|
2019 |
-
|
2020 |
-
}
|
2021 |
-
|
2022 |
-
// Layout: Edit Title Input Enter
|
2023 |
-
model.events['keypress [data-acfe-flexible-control-title-input]'] = 'acfeEditLayoutTitleInputEnter';
|
2024 |
-
model.acfeEditLayoutTitleInputEnter = function(e, $el) {
|
2025 |
-
|
2026 |
-
// Enter Key
|
2027 |
-
if (e.keyCode !== 13)
|
2028 |
-
return;
|
2029 |
-
|
2030 |
-
e.preventDefault();
|
2031 |
-
$el.blur();
|
2032 |
-
|
2033 |
-
}
|
2034 |
-
|
2035 |
-
// Layout: Settings
|
2036 |
-
model.events['click [data-acfe-flexible-settings]'] = 'acfeLayoutSettings';
|
2037 |
-
model.acfeLayoutSettings = function(e, $el) {
|
2038 |
-
|
2039 |
-
// Get Flexible
|
2040 |
-
var flexible = this;
|
2041 |
-
|
2042 |
-
// Vars
|
2043 |
-
var $layout = $el.closest('.layout');
|
2044 |
-
|
2045 |
-
// Modal data
|
2046 |
-
var $modal = $layout.find('> .acfe-modal.-settings');
|
2047 |
-
var $handle = $layout.find('> .acf-fc-layout-handle');
|
2048 |
-
|
2049 |
-
var $layout_order = $handle.find('> .acf-fc-layout-order').outerHTML();
|
2050 |
-
var $layout_title = $handle.find('.acfe-layout-title-text').text();
|
2051 |
-
|
2052 |
-
// Open modal
|
2053 |
-
new acfe.Popup($modal, {
|
2054 |
-
title: $layout_order + ' ' + $layout_title,
|
2055 |
-
footer: acf.__('Close'),
|
2056 |
-
onClose: function() {
|
2057 |
-
|
2058 |
-
if (flexible.has('acfeFlexiblePreview')) {
|
2059 |
-
flexible.closeLayout($layout);
|
2060 |
-
}
|
2061 |
-
|
2062 |
-
}
|
2063 |
-
});
|
2064 |
-
|
2065 |
-
}
|
2066 |
-
|
2067 |
-
/**
|
2068 |
-
* Layout: Toggle Action
|
2069 |
-
*/
|
2070 |
-
model.events['click [data-acfe-flexible-control-toggle]'] = 'acfeLayoutToggle';
|
2071 |
-
model.acfeLayoutToggle = function(e, $el) {
|
2072 |
-
|
2073 |
-
// Get Flexible
|
2074 |
-
var flexible = this;
|
2075 |
-
|
2076 |
-
// Vars
|
2077 |
-
var $layout = $el.closest('.layout');
|
2078 |
-
|
2079 |
-
var $field = $layout.find('> .acfe-flexible-layout-toggle');
|
2080 |
-
|
2081 |
-
if (!$field.length)
|
2082 |
-
return;
|
2083 |
-
|
2084 |
-
if ($field.val() === '1') {
|
2085 |
-
|
2086 |
-
$layout.removeClass('acfe-flexible-layout-hidden');
|
2087 |
-
$field.val('');
|
2088 |
-
|
2089 |
-
} else {
|
2090 |
-
|
2091 |
-
$layout.addClass('acfe-flexible-layout-hidden');
|
2092 |
-
$field.val('1');
|
2093 |
-
|
2094 |
-
}
|
2095 |
-
|
2096 |
-
}
|
2097 |
-
|
2098 |
-
/**
|
2099 |
-
* Layout: Toggle Spawn
|
2100 |
-
*/
|
2101 |
-
acf.addAction('acfe/flexible/layouts', function($layout, flexible) {
|
2102 |
-
|
2103 |
-
if (!flexible.has('acfeFlexibleToggle'))
|
2104 |
-
return;
|
2105 |
-
|
2106 |
-
// Layout Closed
|
2107 |
-
var $field = $layout.find('> .acfe-flexible-layout-toggle');
|
2108 |
-
|
2109 |
-
if (!$field.length)
|
2110 |
-
return;
|
2111 |
-
|
2112 |
-
if ($field.val() === '1') {
|
2113 |
-
|
2114 |
-
$layout.addClass('acfe-flexible-layout-hidden');
|
2115 |
-
|
2116 |
-
} else {
|
2117 |
-
|
2118 |
-
$layout.removeClass('acfe-flexible-layout-hidden');
|
2119 |
-
|
2120 |
-
}
|
2121 |
-
|
2122 |
-
});
|
2123 |
-
|
2124 |
// Layout: Clone
|
2125 |
model.events['click [data-acfe-flexible-control-clone]'] = 'acfeCloneLayout';
|
2126 |
model.acfeCloneLayout = function(e, $el) {
|
@@ -2780,22 +2553,6 @@
|
|
2780 |
|
2781 |
}
|
2782 |
|
2783 |
-
/**
|
2784 |
-
* Spawn
|
2785 |
-
*/
|
2786 |
-
acf.addAction('new_field/type=flexible_content', function(flexible) {
|
2787 |
-
|
2788 |
-
// ACFE: Lock
|
2789 |
-
if (flexible.has('acfeFlexibleLock')) {
|
2790 |
-
|
2791 |
-
flexible.removeEvents({
|
2792 |
-
'mouseover': 'onHover'
|
2793 |
-
});
|
2794 |
-
|
2795 |
-
}
|
2796 |
-
|
2797 |
-
});
|
2798 |
-
|
2799 |
})(jQuery);
|
2800 |
(function($) {
|
2801 |
|
@@ -2804,63 +2561,147 @@
|
|
2804 |
}
|
2805 |
|
2806 |
/**
|
2807 |
-
*
|
2808 |
*/
|
2809 |
-
var
|
2810 |
-
var model = flexible.prototype;
|
2811 |
|
2812 |
-
|
2813 |
-
|
2814 |
-
|
2815 |
-
|
2816 |
-
|
|
|
2817 |
|
2818 |
-
|
2819 |
|
2820 |
-
|
2821 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2822 |
|
2823 |
-
// Modal data
|
2824 |
-
var $modal = $layout.find('> .acfe-modal.-fields');
|
2825 |
-
var $handle = $layout.find('> .acf-fc-layout-handle');
|
2826 |
-
|
2827 |
-
var $layout_order = $handle.find('> .acf-fc-layout-order').outerHTML();
|
2828 |
-
var $layout_title = acfe.getTextNode($handle.find('.acfe-layout-title'));
|
2829 |
-
|
2830 |
-
var close = flexible.has('acfeFlexibleCloseButton') ? acf.__('Close') : false;
|
2831 |
-
|
2832 |
-
// Open modal
|
2833 |
-
new acfe.Popup($modal, {
|
2834 |
-
title: $layout_order + ' ' + $layout_title,
|
2835 |
-
class: 'acfe-modal-edit-' + flexible.get('name') + ' acfe-modal-edit-' + flexible.get('key') + ' acfe-modal-edit-' + $layout.data('layout'),
|
2836 |
-
footer: close,
|
2837 |
-
onOpen: function() {
|
2838 |
-
flexible.openLayout($layout);
|
2839 |
-
},
|
2840 |
-
onClose: function() {
|
2841 |
-
flexible.closeLayout($layout);
|
2842 |
}
|
2843 |
-
});
|
2844 |
|
2845 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2846 |
|
2847 |
/**
|
2848 |
-
*
|
2849 |
*/
|
2850 |
-
|
2851 |
|
2852 |
-
|
2853 |
|
2854 |
-
|
2855 |
-
flexible.removeEvents({
|
2856 |
-
'click [data-name="collapse-layout"]': 'onClickCollapse'
|
2857 |
-
});
|
2858 |
|
2859 |
-
|
2860 |
-
flexible
|
2861 |
-
|
2862 |
-
|
|
|
2863 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2864 |
}
|
2865 |
|
2866 |
});
|
@@ -2875,11 +2716,13 @@
|
|
2875 |
/**
|
2876 |
* Flexible Content: Modal Select
|
2877 |
*/
|
2878 |
-
var Field = acfe.
|
|
|
|
|
2879 |
|
2880 |
type: 'flexible_content',
|
2881 |
|
2882 |
-
|
2883 |
return this.has('acfeFlexibleModal') && this.$clones().length > 1;
|
2884 |
},
|
2885 |
|
@@ -2900,7 +2743,7 @@
|
|
2900 |
var $before = $el.hasClass('acf-icon') ? $el.closest('.layout') : null;
|
2901 |
|
2902 |
// Open Modal
|
2903 |
-
|
2904 |
title: flexible.get('acfeFlexibleModalTitle', acf.__('Add Row')),
|
2905 |
class: 'acfe-modal-select-' + flexible.get('name') + ' acfe-modal-select-' + flexible.get('key'),
|
2906 |
size: flexible.get('acfeFlexibleModalSize'),
|
@@ -3011,65 +2854,547 @@
|
|
3011 |
// get layouts selection html
|
3012 |
var $layouts = $(this.getPopupHTML());
|
3013 |
|
3014 |
-
// categories vars
|
3015 |
-
var
|
3016 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3017 |
|
3018 |
-
|
3019 |
-
|
|
|
|
|
3020 |
|
3021 |
-
|
3022 |
-
$layouts.find('li a span[data-acfe-flexible-category]').each(function() {
|
3023 |
|
3024 |
-
|
3025 |
-
var categories = $(this).data('acfe-flexible-category');
|
3026 |
|
3027 |
-
|
3028 |
-
|
|
|
3029 |
|
3030 |
-
|
3031 |
-
|
|
|
3032 |
|
3033 |
-
|
3034 |
-
var search = categoriesArray.filter(function(row) {
|
3035 |
-
return row.slug === slug;
|
3036 |
-
});
|
3037 |
|
3038 |
-
|
3039 |
-
|
3040 |
-
|
3041 |
-
slug: slug,
|
3042 |
-
label: label
|
3043 |
-
});
|
3044 |
-
}
|
3045 |
|
3046 |
-
|
3047 |
-
});
|
3048 |
|
3049 |
-
|
3050 |
-
if (categoriesArray.length) {
|
3051 |
|
3052 |
-
|
3053 |
-
|
3054 |
|
3055 |
-
|
3056 |
-
categoriesHtml += '<a href="#" data-acfe-flexible-category="' + row.label + '" class="nav-tab">' + row.label + '</a>';
|
3057 |
-
});
|
3058 |
|
3059 |
-
|
|
|
3060 |
|
3061 |
}
|
3062 |
|
3063 |
}
|
3064 |
|
3065 |
-
|
3066 |
-
|
3067 |
-
},
|
3068 |
|
3069 |
});
|
3070 |
|
3071 |
-
acfe.registerFieldExtend(Field);
|
3072 |
-
|
3073 |
})(jQuery);
|
3074 |
(function($) {
|
3075 |
|
@@ -3087,7 +3412,6 @@
|
|
3087 |
type: 'group',
|
3088 |
|
3089 |
events: {
|
3090 |
-
'click [data-name="edit"]': 'onClick',
|
3091 |
'duplicateField': 'onDuplicate'
|
3092 |
},
|
3093 |
|
@@ -3095,16 +3419,16 @@
|
|
3095 |
|
3096 |
if (this.has('acfeGroupModal')) {
|
3097 |
|
3098 |
-
|
|
|
3099 |
|
3100 |
-
this
|
3101 |
-
this.$el.find('> .acf-input').append('<a data-name="edit" class="acf-button button" href="#">' + edit + '</a>');
|
3102 |
|
3103 |
}
|
3104 |
|
3105 |
},
|
3106 |
|
3107 |
-
|
3108 |
|
3109 |
// normal title
|
3110 |
var title = this.$labelWrap().find('label').text().trim();
|
@@ -3121,38 +3445,23 @@
|
|
3121 |
|
3122 |
}
|
3123 |
|
3124 |
-
|
3125 |
-
|
3126 |
-
// Title
|
3127 |
if (!title.length) {
|
3128 |
title = this.get('acfeGroupModalButton');
|
3129 |
}
|
3130 |
|
3131 |
-
//
|
3132 |
-
|
3133 |
-
|
3134 |
-
if (this.has('acfeGroupModalClose')) {
|
3135 |
-
close = acf.__('Close');
|
3136 |
-
}
|
3137 |
-
|
3138 |
-
// Size
|
3139 |
-
var size = 'large';
|
3140 |
-
|
3141 |
-
if (this.has('acfeGroupModalSize')) {
|
3142 |
-
size = this.get('acfeGroupModalSize');
|
3143 |
-
}
|
3144 |
-
|
3145 |
-
// Open modal
|
3146 |
-
new acfe.Popup($modal, {
|
3147 |
title: title,
|
3148 |
-
size:
|
3149 |
-
footer:
|
|
|
3150 |
});
|
3151 |
|
3152 |
},
|
3153 |
|
3154 |
onDuplicate: function(e, $el, $duplicate) {
|
3155 |
-
$duplicate.find('a[data-
|
3156 |
}
|
3157 |
|
3158 |
});
|
@@ -3169,53 +3478,47 @@
|
|
3169 |
/**
|
3170 |
* Field: Radio
|
3171 |
*/
|
3172 |
-
|
3173 |
|
3174 |
-
|
3175 |
-
'new_field': 'newField',
|
3176 |
-
},
|
3177 |
|
3178 |
-
|
|
|
|
|
3179 |
|
3180 |
-
//
|
3181 |
-
if (!
|
3182 |
-
return
|
3183 |
}
|
3184 |
|
3185 |
-
// get
|
3186 |
-
var
|
3187 |
|
3188 |
-
// not
|
3189 |
-
|
3190 |
-
|
3191 |
-
},
|
3192 |
|
3193 |
-
|
|
|
|
|
3194 |
|
3195 |
-
// bail early
|
3196 |
-
if (!this.validateField(field)) {
|
3197 |
-
return;
|
3198 |
}
|
3199 |
|
3200 |
-
|
3201 |
-
var label, item;
|
3202 |
-
var labels = field.get('acfeLabels');
|
3203 |
-
|
3204 |
-
// loop
|
3205 |
-
for (label in labels) {
|
3206 |
-
|
3207 |
-
item = labels[label];
|
3208 |
-
field.$control().find('input[type=radio][value="' + item + '"]').closest('li').addClass('parent').prepend('<strong>' + label + '</strong>');
|
3209 |
|
3210 |
-
|
|
|
|
|
3211 |
|
3212 |
-
//
|
3213 |
-
if (
|
3214 |
|
3215 |
-
|
3216 |
-
|
3217 |
-
}
|
3218 |
|
|
|
|
|
|
|
3219 |
}
|
3220 |
|
3221 |
}
|
@@ -3409,129 +3712,6 @@
|
|
3409 |
return;
|
3410 |
}
|
3411 |
|
3412 |
-
/**
|
3413 |
-
* Field: Select2 Hooks
|
3414 |
-
*/
|
3415 |
-
new acf.Model({
|
3416 |
-
|
3417 |
-
actions: {
|
3418 |
-
'select2_init': 'init',
|
3419 |
-
},
|
3420 |
-
|
3421 |
-
filters: {
|
3422 |
-
'select2_args': 'args',
|
3423 |
-
'select2_ajax_data': 'ajax',
|
3424 |
-
},
|
3425 |
-
|
3426 |
-
init: function($select, options, data, field, instance) {
|
3427 |
-
|
3428 |
-
acf.doAction('select2_init/type=' + field.get('type'), $select, options, data, field, instance);
|
3429 |
-
acf.doAction('select2_init/name=' + field.get('name'), $select, options, data, field, instance);
|
3430 |
-
acf.doAction('select2_init/key=' + field.get('key'), $select, options, data, field, instance);
|
3431 |
-
|
3432 |
-
},
|
3433 |
-
|
3434 |
-
args: function(options, $select, data, field, instance) {
|
3435 |
-
|
3436 |
-
options = acf.applyFilters('select2_args/type=' + field.get('type'), options, $select, data, field, instance);
|
3437 |
-
options = acf.applyFilters('select2_args/name=' + field.get('name'), options, $select, data, field, instance);
|
3438 |
-
options = acf.applyFilters('select2_args/key=' + field.get('key'), options, $select, data, field, instance);
|
3439 |
-
|
3440 |
-
if (!acf.isset(window, 'jQuery', 'fn', 'selectWoo')) {
|
3441 |
-
|
3442 |
-
options.templateSelection = function(selection) {
|
3443 |
-
|
3444 |
-
var text = selection.text;
|
3445 |
-
|
3446 |
-
text = acf.applyFilters('select2_template_selection', text, selection, $select, data, field, instance);
|
3447 |
-
text = acf.applyFilters('select2_template_selection/type=' + field.get('type'), text, selection, $select, data, field, instance);
|
3448 |
-
text = acf.applyFilters('select2_template_selection/name=' + field.get('name'), text, selection, $select, data, field, instance);
|
3449 |
-
text = acf.applyFilters('select2_template_selection/key=' + field.get('key'), text, selection, $select, data, field, instance);
|
3450 |
-
|
3451 |
-
var $selection = $('<span class="acf-selection"></span>');
|
3452 |
-
$selection.html(acf.escHtml(text));
|
3453 |
-
$selection.data('element', selection.element);
|
3454 |
-
|
3455 |
-
return $selection;
|
3456 |
-
|
3457 |
-
};
|
3458 |
-
|
3459 |
-
options.templateResult = function(selection) {
|
3460 |
-
|
3461 |
-
var text = selection.text;
|
3462 |
-
|
3463 |
-
text = acf.applyFilters('select2_template_result', text, selection, $select, data, field, instance);
|
3464 |
-
text = acf.applyFilters('select2_template_result/type=' + field.get('type'), text, selection, $select, data, field, instance);
|
3465 |
-
text = acf.applyFilters('select2_template_result/name=' + field.get('name'), text, selection, $select, data, field, instance);
|
3466 |
-
text = acf.applyFilters('select2_template_result/key=' + field.get('key'), text, selection, $select, data, field, instance);
|
3467 |
-
|
3468 |
-
var $selection = $('<span class="acf-selection"></span>');
|
3469 |
-
$selection.html(acf.escHtml(text));
|
3470 |
-
$selection.data('element', selection.element);
|
3471 |
-
|
3472 |
-
return $selection;
|
3473 |
-
|
3474 |
-
};
|
3475 |
-
|
3476 |
-
}
|
3477 |
-
|
3478 |
-
return options;
|
3479 |
-
|
3480 |
-
},
|
3481 |
-
|
3482 |
-
ajax: function(ajaxData, data, $el, field, instance) {
|
3483 |
-
|
3484 |
-
ajaxData = acf.applyFilters('select2_ajax_data/type=' + field.get('type'), ajaxData, data, $el, field, instance);
|
3485 |
-
ajaxData = acf.applyFilters('select2_ajax_data/name=' + field.get('name'), ajaxData, data, $el, field, instance);
|
3486 |
-
ajaxData = acf.applyFilters('select2_ajax_data/key=' + field.get('key'), ajaxData, data, $el, field, instance);
|
3487 |
-
|
3488 |
-
if (ajaxData.action) {
|
3489 |
-
ajaxData = acf.applyFilters('select2_ajax_data/action=' + ajaxData.action, ajaxData, data, $el, field, instance);
|
3490 |
-
}
|
3491 |
-
|
3492 |
-
return ajaxData;
|
3493 |
-
|
3494 |
-
}
|
3495 |
-
|
3496 |
-
});
|
3497 |
-
|
3498 |
-
/**
|
3499 |
-
* Field: Select2 (onLoad)
|
3500 |
-
*/
|
3501 |
-
new acf.Model({
|
3502 |
-
|
3503 |
-
wait: 'load',
|
3504 |
-
priority: 20,
|
3505 |
-
actions: {
|
3506 |
-
'append_field/type=select': 'closeOnClear'
|
3507 |
-
},
|
3508 |
-
|
3509 |
-
initialize: function() {
|
3510 |
-
|
3511 |
-
acf.getFields({
|
3512 |
-
type: 'select'
|
3513 |
-
}).map(this.proxy(this.closeOnClear));
|
3514 |
-
|
3515 |
-
},
|
3516 |
-
|
3517 |
-
closeOnClear: function(field) {
|
3518 |
-
|
3519 |
-
if (field.select2) {
|
3520 |
-
|
3521 |
-
// close select2 on clear
|
3522 |
-
// https://github.com/select2/select2/issues/3320#issuecomment-1004007176
|
3523 |
-
field.select2.on('select2:clear', function(e) {
|
3524 |
-
$(this).on('select2:opening.cancelOpen', function(e) {
|
3525 |
-
e.preventDefault();
|
3526 |
-
$(this).off("select2:opening.cancelOpen");
|
3527 |
-
});
|
3528 |
-
});
|
3529 |
-
|
3530 |
-
}
|
3531 |
-
|
3532 |
-
}
|
3533 |
-
|
3534 |
-
});
|
3535 |
|
3536 |
/**
|
3537 |
* Field: Select
|
@@ -3539,7 +3719,7 @@
|
|
3539 |
new acf.Model({
|
3540 |
|
3541 |
actions: {
|
3542 |
-
'new_field/type=select': '
|
3543 |
'select2_init': 'init',
|
3544 |
},
|
3545 |
|
@@ -3547,27 +3727,23 @@
|
|
3547 |
'select2_args': 'args',
|
3548 |
},
|
3549 |
|
3550 |
-
|
3551 |
|
3552 |
// inherit properties
|
3553 |
field.inherit(field.$input());
|
3554 |
|
3555 |
// remove "- -" characters from placeholder
|
3556 |
-
//
|
3557 |
if (!field.get('ui') && field.get('allow_null')) {
|
3558 |
|
3559 |
field.$input().find('option').each(function(i, option) {
|
3560 |
|
3561 |
-
if (option.value) {
|
3562 |
-
return;
|
3563 |
-
}
|
3564 |
|
3565 |
-
|
3566 |
-
|
3567 |
-
}
|
3568 |
|
3569 |
-
|
3570 |
-
option.text = option.text.substring(0, option.text.length - 2);
|
3571 |
|
3572 |
});
|
3573 |
|
@@ -3602,7 +3778,20 @@
|
|
3602 |
|
3603 |
init: function($select, options, data, field, instance) {
|
3604 |
|
3605 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3606 |
if ($select.data('select2')) {
|
3607 |
|
3608 |
$select.data('select2').$dropdown
|
@@ -3612,17 +3801,13 @@
|
|
3612 |
|
3613 |
}
|
3614 |
|
|
|
3615 |
// only in single mode
|
3616 |
-
if (!field.get('multiple')) {
|
3617 |
|
3618 |
-
|
3619 |
-
|
3620 |
-
|
3621 |
-
$select.on('select2:open', function(e) {
|
3622 |
-
$('.select2-search.select2-search--dropdown > .select2-search__field').attr('placeholder', field.get('acfeSearchPlaceholder'));
|
3623 |
-
});
|
3624 |
-
|
3625 |
-
}
|
3626 |
|
3627 |
}
|
3628 |
|
@@ -3630,85 +3815,93 @@
|
|
3630 |
|
3631 |
args: function(options, $select, data, field, instance) {
|
3632 |
|
3633 |
-
//
|
3634 |
-
if (field
|
|
|
|
|
3635 |
|
3636 |
-
|
|
|
|
|
|
|
3637 |
|
3638 |
-
|
|
|
3639 |
|
3640 |
-
|
|
|
3641 |
|
3642 |
-
|
3643 |
-
return null;
|
3644 |
-
}
|
3645 |
|
3646 |
-
|
3647 |
-
|
3648 |
-
|
3649 |
|
3650 |
-
|
3651 |
-
|
|
|
3652 |
|
3653 |
-
|
|
|
3654 |
|
3655 |
-
|
3656 |
-
for (var child of item.children) {
|
3657 |
|
3658 |
-
|
3659 |
-
|
3660 |
-
break loop;
|
3661 |
-
}
|
3662 |
|
|
|
|
|
|
|
3663 |
}
|
3664 |
-
}
|
3665 |
|
|
|
3666 |
}
|
3667 |
|
3668 |
-
// normal results
|
3669 |
}
|
3670 |
-
else {
|
3671 |
|
3672 |
-
|
3673 |
-
|
3674 |
-
|
3675 |
-
break;
|
3676 |
-
}
|
3677 |
-
}
|
3678 |
|
|
|
|
|
|
|
|
|
|
|
3679 |
}
|
3680 |
|
3681 |
-
|
3682 |
-
if (foundTerm) {
|
3683 |
-
return null;
|
3684 |
-
}
|
3685 |
|
3686 |
-
|
3687 |
-
|
3688 |
-
|
3689 |
-
|
3690 |
-
};
|
3691 |
|
|
|
|
|
|
|
|
|
3692 |
};
|
3693 |
|
3694 |
-
|
3695 |
|
3696 |
-
|
|
|
3697 |
|
3698 |
-
|
3699 |
-
if ($.trim(tag.text).toUpperCase() === $.trim(result.text).toUpperCase()) {
|
3700 |
-
found = true;
|
3701 |
-
break;
|
3702 |
-
}
|
3703 |
-
}
|
3704 |
|
3705 |
-
|
3706 |
-
|
|
|
|
|
3707 |
}
|
|
|
3708 |
|
3709 |
-
|
|
|
|
|
3710 |
|
3711 |
-
}
|
3712 |
|
3713 |
return options;
|
3714 |
|
@@ -3852,6 +4045,45 @@
|
|
3852 |
|
3853 |
acf.registerFieldType(Textarea);
|
3854 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3855 |
})(jQuery);
|
3856 |
(function($) {
|
3857 |
|
342 |
}
|
343 |
|
344 |
/**
|
345 |
+
* acfe.FieldExtender
|
346 |
*
|
347 |
+
* @param protoProps
|
348 |
+
* @returns {*}
|
349 |
+
* @constructor
|
350 |
*/
|
351 |
+
var storage = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
|
353 |
+
acfe.FieldExtender = function(protoProps) {
|
354 |
|
355 |
+
// vars
|
356 |
+
var id = acfe.extractVar(protoProps, 'id', acf.uniqueId('extender'));
|
357 |
|
358 |
+
// validate
|
359 |
+
protoProps.type = acfe.getArray(protoProps.type);
|
360 |
+
protoProps.dependencies = acfe.getArray(protoProps.dependencies);
|
361 |
+
protoProps.extender = id;
|
362 |
|
363 |
+
// push to storage
|
364 |
+
storage.push(protoProps);
|
|
|
|
|
|
|
|
|
365 |
|
366 |
+
// return extender
|
367 |
+
return id;
|
|
|
368 |
|
369 |
+
}
|
|
|
370 |
|
371 |
+
/**
|
372 |
+
* acf.Field.setup
|
373 |
+
*
|
374 |
+
* @type {acf.Field.setup}
|
375 |
+
*/
|
376 |
+
var setup = acf.Field.prototype.setup;
|
377 |
|
378 |
+
acf.Field.prototype.setup = function(props) {
|
|
|
|
|
|
|
|
|
379 |
|
380 |
+
// parent setup
|
381 |
+
setup.apply(this, arguments);
|
382 |
|
383 |
+
var extenders = getFieldExtenders(this);
|
|
|
384 |
|
385 |
+
if (!extenders.length) {
|
386 |
+
return;
|
387 |
}
|
388 |
|
389 |
+
// vars
|
390 |
+
var prototype = Object.getPrototypeOf(this);
|
391 |
+
this.extenders = [];
|
392 |
|
393 |
+
// loop extenders
|
394 |
+
for (var model of extenders) {
|
|
|
|
|
395 |
|
396 |
+
// append extender
|
397 |
+
this.extenders.push(model.extender);
|
|
|
|
|
|
|
|
|
|
|
398 |
|
399 |
+
// clone model
|
400 |
+
var protoProps = $.extend(true, {}, model);
|
401 |
+
var events = acfe.extractVar(protoProps, 'events');
|
|
|
|
|
|
|
|
|
402 |
|
403 |
+
// cleanup
|
404 |
+
acfe.extractVars(protoProps, 'type', 'condition', 'dependencies');
|
|
|
|
|
|
|
|
|
405 |
|
406 |
+
// apply setup method if any
|
407 |
+
if (protoProps.hasOwnProperty('setup')) {
|
408 |
+
protoProps.setup.apply(this, arguments);
|
409 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
410 |
|
411 |
+
// generate child
|
412 |
+
var Child = function() {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
413 |
|
414 |
+
// create proto
|
415 |
+
Child.prototype = Object.create(prototype);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
416 |
|
417 |
+
// extend
|
418 |
+
$.extend(Child.prototype, protoProps);
|
|
|
|
|
|
|
|
|
|
|
|
|
419 |
|
420 |
+
// assign events
|
421 |
+
if (events) {
|
422 |
+
Child.prototype.events = $.extend(true, {}, Child.prototype.events, events);
|
423 |
}
|
424 |
|
425 |
+
// assign parent
|
426 |
+
Child.prototype.__parent__ = prototype;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
427 |
|
428 |
+
// assign prototype for next loop
|
429 |
+
prototype = Child.prototype;
|
430 |
|
431 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
432 |
|
433 |
+
// getParent function
|
434 |
+
this.getParent = function(extender) {
|
435 |
|
436 |
+
var prototype = Object.getPrototypeOf(this);
|
437 |
+
while (prototype) {
|
|
|
438 |
|
439 |
+
if (prototype.extender === extender) {
|
440 |
+
return prototype.__parent__;
|
441 |
+
}
|
442 |
|
443 |
+
if (!prototype.__parent__) {
|
444 |
+
return prototype;
|
|
|
|
|
445 |
}
|
446 |
|
447 |
+
prototype = prototype.__parent__;
|
448 |
+
|
449 |
}
|
450 |
|
451 |
+
return prototype;
|
|
|
452 |
|
453 |
}
|
454 |
|
455 |
+
// assign prototype
|
456 |
+
Object.setPrototypeOf(this, prototype);
|
457 |
+
|
458 |
+
}
|
459 |
+
|
460 |
|
461 |
/**
|
462 |
+
* getFieldExtenders
|
463 |
*
|
464 |
+
* @param field
|
465 |
+
* @returns {*[]}
|
466 |
*/
|
467 |
+
var getFieldExtenders = function(field) {
|
|
|
|
|
468 |
|
469 |
+
var extenders = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
470 |
|
471 |
+
for (var extender of getValidExtenders(field)) {
|
472 |
+
extenders.push(getExtender(extender));
|
473 |
+
}
|
474 |
|
475 |
+
return extenders;
|
|
|
476 |
|
477 |
+
};
|
478 |
|
|
|
|
|
|
|
479 |
|
480 |
+
/**
|
481 |
+
* getExtender
|
482 |
+
*
|
483 |
+
* @param extender
|
484 |
+
* @returns {boolean|*}
|
485 |
+
*/
|
486 |
+
var getExtender = function(extender) {
|
487 |
|
488 |
+
for (var model of storage) {
|
489 |
+
if (model.extender === extender) {
|
490 |
+
return model;
|
491 |
}
|
492 |
+
}
|
493 |
|
494 |
+
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
495 |
|
496 |
+
};
|
|
|
|
|
497 |
|
|
|
|
|
498 |
|
499 |
+
/**
|
500 |
+
* getValidExtenders
|
501 |
+
*
|
502 |
+
* @param field
|
503 |
+
* @returns {*|*[]}
|
504 |
+
*/
|
505 |
+
var getValidExtenders = function(field) {
|
506 |
|
507 |
+
var rules = {};
|
|
|
|
|
|
|
|
|
508 |
|
509 |
+
for (var model of storage) {
|
|
|
|
|
|
|
|
|
510 |
|
511 |
+
// validate type
|
512 |
+
if (!acfe.inArray(field.get('type'), model.type)) {
|
513 |
+
continue;
|
514 |
+
}
|
|
|
515 |
|
516 |
+
// validate condition
|
517 |
+
if (model.hasOwnProperty('condition') && !model.condition.apply(field, arguments)) {
|
518 |
+
continue;
|
519 |
+
}
|
520 |
|
521 |
+
// append rule
|
522 |
+
rules[model.extender] = model.dependencies;
|
|
|
523 |
|
524 |
+
}
|
525 |
|
526 |
+
// return array
|
527 |
+
return sortExtenders(rules);
|
528 |
|
529 |
+
};
|
530 |
|
|
|
|
|
531 |
|
532 |
/**
|
533 |
+
* sortExtenders
|
534 |
*
|
535 |
* https://stackoverflow.com/a/54347328
|
536 |
*
|
540 |
* @param depth
|
541 |
* @returns {*|*[]}
|
542 |
*/
|
543 |
+
var sortExtenders = function(names, obj = names, start = [], depth = 0) {
|
544 |
|
545 |
if (typeof names === 'object' && !Array.isArray(names)) {
|
546 |
names = Object.keys(names)
|
562 |
|
563 |
const goAgain = nextNames.length && depth <= names.length;
|
564 |
|
565 |
+
return goAgain ? sortExtenders(nextNames, obj, processed, depth + 1) : processed;
|
566 |
|
567 |
+
};
|
568 |
|
569 |
})(jQuery);
|
570 |
(function($) {
|
585 |
return false;
|
586 |
}
|
587 |
|
588 |
+
// check if prototype doesn't already have ftype (acf taxonomy field)
|
589 |
return !acf.getFieldType(field.get('type')).prototype.get('ftype');
|
590 |
|
591 |
},
|
655 |
|
656 |
var icon = acfe.versionCompare(acf.get('wp_version'), '>=', '5.5') ? 'dashicons-info-outline' : 'dashicons-info';
|
657 |
|
658 |
+
this.field.$labelWrap().prepend('<span class="acfe-field-tooltip acf-js-tooltip dashicons ' + icon + '" title="' + acf.escHtml(this.field.get('instructionTooltip')) + '"></span>');
|
659 |
this.field.$labelWrap().find('.description').remove();
|
660 |
|
661 |
},
|
760 |
|
761 |
var icon = acfe.versionCompare(acf.get('wp_version'), '>=', '5.5') ? 'dashicons-info-outline' : 'dashicons-info';
|
762 |
|
763 |
+
this.field.$labelWrap().prepend($('<span class="acfe-field-tooltip acf-js-tooltip dashicons ' + icon + '" title="' + acf.escHtml($instruction.html()) + '"></span>'));
|
764 |
$instruction.remove();
|
765 |
|
766 |
}
|
777 |
}
|
778 |
|
779 |
/**
|
780 |
+
* Field: Labels
|
781 |
*/
|
782 |
+
new acf.Model({
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
783 |
|
784 |
+
actions: {
|
785 |
+
'new_field': 'newField',
|
786 |
},
|
787 |
|
788 |
+
getFieldType: function(field) {
|
789 |
+
return field.get('rtype', field.get('type'));
|
790 |
},
|
791 |
|
792 |
+
validateField: function(field) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
793 |
|
794 |
+
// check setting
|
795 |
+
if (!field.has('acfeLabels')) {
|
796 |
+
return false;
|
797 |
}
|
798 |
|
799 |
+
// check type & real type
|
800 |
+
return this.getFieldType(field) === 'checkbox' || this.getFieldType(field) === 'radio';
|
801 |
|
802 |
},
|
803 |
|
804 |
+
newField: function(field) {
|
805 |
|
806 |
+
// bail early
|
807 |
+
if (!this.validateField(field)) {
|
808 |
+
return;
|
809 |
+
}
|
|
|
|
|
|
|
810 |
|
811 |
// vars
|
812 |
+
var label, item;
|
813 |
+
var labels = field.get('acfeLabels');
|
|
|
|
|
814 |
|
815 |
+
switch (this.getFieldType(field)) {
|
|
|
|
|
|
|
816 |
|
817 |
+
case 'checkbox': {
|
|
|
|
|
818 |
|
819 |
+
// loop
|
820 |
+
for (label in labels) {
|
821 |
+
item = labels[label];
|
822 |
+
field.$control().find('input[type=checkbox][value="' + item + '"]').closest('ul').before('<strong>' + label + '</strong>');
|
823 |
+
}
|
824 |
|
825 |
+
break;
|
|
|
826 |
|
827 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
828 |
|
829 |
+
case 'radio': {
|
830 |
|
831 |
+
// loop
|
832 |
+
for (label in labels) {
|
833 |
+
item = labels[label];
|
834 |
+
field.$control().find('input[type=radio][value="' + item + '"]').closest('li').addClass('parent').prepend('<strong>' + label + '</strong>');
|
835 |
+
}
|
836 |
|
837 |
+
// horizontal rule
|
838 |
+
if (field.$control().hasClass('acf-hl')) {
|
839 |
|
840 |
+
field.$control().find('li.parent').each(function() {
|
841 |
+
$(this).nextUntil('li.parent').addBack().wrapAll('<li><ul></ul></li>');
|
842 |
+
});
|
843 |
|
844 |
+
}
|
845 |
|
846 |
+
break;
|
847 |
|
|
|
|
|
|
|
|
|
|
|
|
|
848 |
}
|
|
|
849 |
|
850 |
+
}
|
851 |
|
852 |
+
}
|
853 |
|
854 |
+
});
|
|
|
|
|
855 |
|
856 |
+
})(jQuery);
|
857 |
+
(function($) {
|
858 |
+
|
859 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
860 |
+
return;
|
861 |
+
}
|
862 |
|
863 |
+
acf.Field.prototype.getModal = function(args) {
|
864 |
|
865 |
+
var $modal = acfe.findModal('', this.$inputWrap());
|
|
|
866 |
|
867 |
+
if (!$modal.length) {
|
868 |
+
return false;
|
869 |
+
}
|
870 |
|
871 |
+
return acfe.getModal($modal, args);
|
872 |
|
873 |
+
};
|
874 |
|
875 |
+
})(jQuery);
|
876 |
+
(function($) {
|
877 |
+
|
878 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
879 |
+
return;
|
880 |
+
}
|
881 |
|
882 |
/**
|
883 |
+
* Field: Select Hooks
|
884 |
*/
|
885 |
new acf.Model({
|
886 |
|
887 |
actions: {
|
888 |
+
'select2_init': 'init',
|
889 |
},
|
890 |
|
891 |
filters: {
|
892 |
+
'select2_args': 'args',
|
893 |
+
'select2_ajax_data': 'ajaxData',
|
894 |
},
|
895 |
|
896 |
+
init: function($select, options, data, field, instance) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
897 |
|
898 |
+
// bail early
|
899 |
+
if (!field) {
|
900 |
+
return;
|
901 |
}
|
902 |
|
903 |
+
// actions
|
904 |
+
acf.doAction('select2_init/type=' + field.get('type'), $select, options, data, field, instance);
|
905 |
+
acf.doAction('select2_init/name=' + field.get('name'), $select, options, data, field, instance);
|
906 |
+
acf.doAction('select2_init/key=' + field.get('key'), $select, options, data, field, instance);
|
907 |
+
|
908 |
},
|
909 |
|
910 |
+
args: function(options, $select, data, field, instance) {
|
911 |
|
912 |
+
// bail early
|
913 |
+
if (!field) {
|
914 |
+
return options;
|
915 |
}
|
916 |
|
917 |
+
// filters
|
918 |
+
options = acf.applyFilters('select2_args/type=' + field.get('type'), options, $select, data, field, instance);
|
919 |
+
options = acf.applyFilters('select2_args/name=' + field.get('name'), options, $select, data, field, instance);
|
920 |
+
options = acf.applyFilters('select2_args/key=' + field.get('key'), options, $select, data, field, instance);
|
921 |
|
922 |
+
// only on pages without woocommerce
|
923 |
+
if (!acf.isset(window, 'jQuery', 'fn', 'selectWoo')) {
|
|
|
924 |
|
925 |
+
options.templateSelection = function(selection) {
|
926 |
|
927 |
+
var text = selection.text;
|
928 |
|
929 |
+
text = acf.applyFilters('select2_template_selection', text, selection, $select, data, field, instance);
|
930 |
+
text = acf.applyFilters('select2_template_selection/type=' + field.get('type'), text, selection, $select, data, field, instance);
|
931 |
+
text = acf.applyFilters('select2_template_selection/name=' + field.get('name'), text, selection, $select, data, field, instance);
|
932 |
+
text = acf.applyFilters('select2_template_selection/key=' + field.get('key'), text, selection, $select, data, field, instance);
|
933 |
|
934 |
+
var $selection = $('<span class="acf-selection"></span>');
|
935 |
+
$selection.html(acf.escHtml(text));
|
936 |
+
$selection.data('element', selection.element);
|
937 |
|
938 |
+
return $selection;
|
|
|
|
|
939 |
|
940 |
+
};
|
|
|
|
|
|
|
941 |
|
942 |
+
options.templateResult = function(selection) {
|
943 |
|
944 |
+
var text = selection.text;
|
945 |
+
|
946 |
+
text = acf.applyFilters('select2_template_result', text, selection, $select, data, field, instance);
|
947 |
+
text = acf.applyFilters('select2_template_result/type=' + field.get('type'), text, selection, $select, data, field, instance);
|
948 |
+
text = acf.applyFilters('select2_template_result/name=' + field.get('name'), text, selection, $select, data, field, instance);
|
949 |
+
text = acf.applyFilters('select2_template_result/key=' + field.get('key'), text, selection, $select, data, field, instance);
|
950 |
+
|
951 |
+
var $selection = $('<span class="acf-selection"></span>');
|
952 |
+
$selection.html(acf.escHtml(text));
|
953 |
+
$selection.data('element', selection.element);
|
954 |
+
|
955 |
+
return $selection;
|
956 |
+
|
957 |
+
};
|
958 |
+
|
959 |
+
// fix old ACF 5.9 version which doesn't escape markup
|
960 |
+
if (acfe.versionCompare(acf.get('acf_version'), '<', '5.10')) {
|
961 |
+
|
962 |
+
options.escapeMarkup = function(markup) {
|
963 |
+
if (typeof markup !== 'string') {
|
964 |
+
return markup;
|
965 |
+
}
|
966 |
+
return acf.escHtml(markup);
|
967 |
+
}
|
968 |
+
|
969 |
+
}
|
970 |
+
|
971 |
+
}
|
972 |
+
|
973 |
+
return options;
|
974 |
+
|
975 |
+
},
|
976 |
+
|
977 |
+
ajaxData: function(ajaxData, data, $el, field, instance) {
|
978 |
+
|
979 |
+
// bail early
|
980 |
+
if (!field) {
|
981 |
+
return ajaxData;
|
982 |
+
}
|
983 |
+
|
984 |
+
// filters
|
985 |
+
ajaxData = acf.applyFilters('select2_ajax_data/type=' + field.get('type'), ajaxData, data, $el, field, instance);
|
986 |
+
ajaxData = acf.applyFilters('select2_ajax_data/name=' + field.get('name'), ajaxData, data, $el, field, instance);
|
987 |
+
ajaxData = acf.applyFilters('select2_ajax_data/key=' + field.get('key'), ajaxData, data, $el, field, instance);
|
988 |
+
|
989 |
+
if (ajaxData.action) {
|
990 |
+
ajaxData = acf.applyFilters('select2_ajax_data/action=' + ajaxData.action, ajaxData, data, $el, field, instance);
|
991 |
+
}
|
992 |
+
|
993 |
+
return ajaxData;
|
994 |
+
|
995 |
+
}
|
996 |
+
|
997 |
+
});
|
998 |
+
|
999 |
+
})(jQuery);
|
1000 |
+
(function($) {
|
1001 |
+
|
1002 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
1003 |
+
return;
|
1004 |
+
}
|
1005 |
+
|
1006 |
+
/**
|
1007 |
+
* Field: Advanced Link
|
1008 |
+
*/
|
1009 |
+
var ACFE_Advanced_Link = acf.Field.extend({
|
1010 |
+
|
1011 |
+
type: 'acfe_advanced_link',
|
1012 |
+
|
1013 |
+
events: {
|
1014 |
+
'click a[data-name="add"]': 'onClickEdit',
|
1015 |
+
'click a[data-name="edit"]': 'onClickEdit',
|
1016 |
+
'click a[data-name="remove"]': 'onClickRemove',
|
1017 |
+
},
|
1018 |
+
|
1019 |
+
$control: function() {
|
1020 |
+
return this.$('.acf-link');
|
1021 |
+
},
|
1022 |
+
|
1023 |
+
getSubField: function(key) {
|
1024 |
+
|
1025 |
+
return acf.getFields({
|
1026 |
+
key: key,
|
1027 |
+
parent: this.$el
|
1028 |
+
}).shift();
|
1029 |
+
|
1030 |
+
},
|
1031 |
+
|
1032 |
+
getSubFields: function() {
|
1033 |
+
|
1034 |
+
return acf.getFields({
|
1035 |
+
parent: this.$el
|
1036 |
+
});
|
1037 |
+
|
1038 |
+
},
|
1039 |
+
|
1040 |
+
getValue: function() {
|
1041 |
+
|
1042 |
+
// return
|
1043 |
+
var data = {
|
1044 |
+
type: this.getSubField('type').val(),
|
1045 |
+
title: this.getSubField('title').val(),
|
1046 |
+
value: '',
|
1047 |
+
name: '',
|
1048 |
+
target: Boolean(this.getSubField('target').val())
|
1049 |
+
};
|
1050 |
+
|
1051 |
+
// assign value
|
1052 |
+
data.value = this.getSubField(data.type).val();
|
1053 |
+
data.name = data.value;
|
1054 |
+
|
1055 |
+
// post / term value
|
1056 |
+
if (data.type === 'post' || data.type === 'term') {
|
1057 |
+
data.name = this.getSubField(data.type).$input().find(':selected').text();
|
1058 |
+
}
|
1059 |
+
|
1060 |
+
// return
|
1061 |
+
return data;
|
1062 |
+
|
1063 |
+
},
|
1064 |
+
|
1065 |
+
setValue: function(val) {
|
1066 |
+
|
1067 |
+
// clear value
|
1068 |
+
if (!val) {
|
1069 |
+
return this.clearValue();
|
1070 |
+
}
|
1071 |
+
|
1072 |
+
// allow val to be a string
|
1073 |
+
if (acfe.isString(val)) {
|
1074 |
+
|
1075 |
+
val = {
|
1076 |
+
type: 'url',
|
1077 |
+
title: '',
|
1078 |
+
value: val,
|
1079 |
+
target: false
|
1080 |
+
};
|
1081 |
+
|
1082 |
+
}
|
1083 |
+
|
1084 |
+
val = acf.parseArgs(val, {
|
1085 |
+
type: 'url',
|
1086 |
+
value: '',
|
1087 |
+
title: '',
|
1088 |
+
target: false
|
1089 |
+
});
|
1090 |
+
|
1091 |
+
// set sub fields
|
1092 |
+
this.getSubField('type').val(val.type);
|
1093 |
+
this.getSubField(val.type).val(val.value); // post / term value
|
1094 |
+
this.getSubField('title').val(val.title);
|
1095 |
+
this.getSubField('target').val(val.target);
|
1096 |
+
|
1097 |
+
// render value
|
1098 |
+
this.renderValue();
|
1099 |
+
|
1100 |
+
},
|
1101 |
+
|
1102 |
+
clearValue: function() {
|
1103 |
+
|
1104 |
+
// clear subfields values
|
1105 |
+
this.getSubFields().map(function(field) {
|
1106 |
+
field.val('');
|
1107 |
+
});
|
1108 |
+
|
1109 |
+
},
|
1110 |
+
|
1111 |
+
renderValue: function() {
|
1112 |
+
|
1113 |
+
// vars
|
1114 |
+
var val = this.val();
|
1115 |
+
var $control = this.$control();
|
1116 |
+
|
1117 |
+
// remove class
|
1118 |
+
$control.removeClass('-value -external');
|
1119 |
+
|
1120 |
+
// add class
|
1121 |
+
if (val.value || val.title) {
|
1122 |
+
$control.addClass('-value');
|
1123 |
+
}
|
1124 |
+
|
1125 |
+
// target
|
1126 |
+
if (val.target) {
|
1127 |
+
$control.addClass('-external');
|
1128 |
+
}
|
1129 |
+
|
1130 |
+
// update text
|
1131 |
+
var url = val.type === 'url' ? val.value : '#';
|
1132 |
+
this.$('.link-title').html(val.title);
|
1133 |
+
this.$('.link-url').attr('href', url).html(val.name);
|
1134 |
+
|
1135 |
+
},
|
1136 |
+
|
1137 |
+
onClickEdit: function(e, $el) {
|
1138 |
+
|
1139 |
+
// vars
|
1140 |
+
this.getModal({
|
1141 |
+
open: true,
|
1142 |
+
onClose: this.proxy(function() {
|
1143 |
+
this.renderValue();
|
1144 |
+
})
|
1145 |
+
});
|
1146 |
+
|
1147 |
+
},
|
1148 |
+
|
1149 |
+
onClickRemove: function(e, $el) {
|
1150 |
+
|
1151 |
+
this.clearValue();
|
1152 |
+
this.renderValue();
|
1153 |
+
|
1154 |
+
},
|
1155 |
+
|
1156 |
+
});
|
1157 |
+
|
1158 |
+
acf.registerFieldType(ACFE_Advanced_Link);
|
1159 |
+
|
1160 |
+
|
1161 |
+
/**
|
1162 |
+
* Field: Advanced Link Ajax Manager
|
1163 |
+
*/
|
1164 |
+
new acf.Model({
|
1165 |
+
|
1166 |
+
filters: {
|
1167 |
+
'select2_ajax_data/action=acfe/fields/advanced_link/post_query': 'ajaxData',
|
1168 |
+
},
|
1169 |
+
|
1170 |
+
ajaxData: function(ajaxData, data, $el, field, select) {
|
1171 |
+
|
1172 |
+
// get advanced link field
|
1173 |
+
var parentField = field.parent();
|
1174 |
+
|
1175 |
+
// assign parent field key
|
1176 |
+
if (parentField) {
|
1177 |
+
ajaxData.field_key = parentField.get('key');
|
1178 |
+
}
|
1179 |
+
|
1180 |
+
return ajaxData;
|
1181 |
+
|
1182 |
+
},
|
1183 |
+
|
1184 |
+
});
|
1185 |
+
|
1186 |
+
})(jQuery);
|
1187 |
+
(function($) {
|
1188 |
+
|
1189 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
1190 |
+
return;
|
1191 |
+
}
|
1192 |
+
|
1193 |
+
/**
|
1194 |
+
* Field: Button
|
1195 |
+
*/
|
1196 |
+
var ACFE_Button = acf.Field.extend({
|
1197 |
+
|
1198 |
+
type: 'acfe_button',
|
1199 |
+
|
1200 |
+
events: {
|
1201 |
'click input': 'onClick',
|
1202 |
'click button': 'onClick',
|
1203 |
},
|
1303 |
/**
|
1304 |
* Field: Checkbox
|
1305 |
*/
|
1306 |
+
var Checkbox = acf.models.CheckboxField;
|
1307 |
|
1308 |
+
acf.models.CheckboxField = Checkbox.extend({
|
|
|
|
|
1309 |
|
1310 |
+
// add setValue method
|
1311 |
+
// this allows to use field.val('new_value') to assign a new value to the field
|
1312 |
+
setValue: function(val) {
|
1313 |
|
1314 |
+
// clear value
|
1315 |
+
if (!val) {
|
1316 |
+
return this.clearValue();
|
1317 |
}
|
1318 |
|
1319 |
+
// force value as array
|
1320 |
+
var vals = acfe.getArray(val);
|
1321 |
|
1322 |
+
// map values
|
1323 |
+
vals.map(function(val) {
|
1324 |
|
1325 |
+
// get option with value
|
1326 |
+
var $option = this.$(':checkbox[value="' + val + '"]');
|
1327 |
|
1328 |
+
// option exists and is not already selected
|
1329 |
+
if ($option.length && !$option.is(':checked')) {
|
1330 |
|
1331 |
+
// select the option
|
1332 |
+
$option.prop('checked', true).trigger('change');
|
|
|
|
|
1333 |
|
1334 |
+
}
|
|
|
|
|
1335 |
|
1336 |
+
}, this);
|
|
|
1337 |
|
1338 |
+
},
|
|
|
1339 |
|
1340 |
+
// add clearValue method
|
1341 |
+
// this allows to set the value to the first radio or if allow_null is enabled, to null
|
1342 |
+
clearValue: function() {
|
1343 |
+
|
1344 |
+
var $inputs = this.$inputs();
|
1345 |
+
var $labels = this.$('label');
|
1346 |
+
|
1347 |
+
// update "checked" state.
|
1348 |
+
$inputs.prop('checked', false);
|
1349 |
+
|
1350 |
+
// remove "selected" class.
|
1351 |
+
$labels.removeClass('selected');
|
1352 |
|
1353 |
}
|
1354 |
|
1371 |
type: 'clone',
|
1372 |
|
1373 |
events: {
|
|
|
1374 |
'duplicateField': 'onDuplicate'
|
1375 |
},
|
1376 |
|
1378 |
|
1379 |
if (this.has('acfeCloneModal')) {
|
1380 |
|
|
|
|
|
1381 |
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>');
|
1382 |
+
this.$el.find('> .acf-input').append('<a href="#" class="acf-button button" data-modal>' + this.get('acfeCloneModalButton') + '</a>');
|
1383 |
+
|
1384 |
+
this.initializeModal();
|
1385 |
|
1386 |
}
|
1387 |
|
1388 |
},
|
1389 |
|
1390 |
+
initializeModal: function() {
|
1391 |
|
1392 |
// normal title
|
1393 |
var title = this.$labelWrap().find('label').text().trim();
|
1395 |
// inside table
|
1396 |
if (this.$el.is('td')) {
|
1397 |
|
1398 |
+
title = this.get('acfeCloneModalButton');
|
1399 |
var $th = this.$el.closest('table').find(' > thead th[data-key="' + this.get('key') + '"]');
|
1400 |
|
1401 |
if ($th.length) {
|
1404 |
|
1405 |
}
|
1406 |
|
1407 |
+
// fallback to button text
|
|
|
|
|
1408 |
if (!title.length) {
|
1409 |
title = this.get('acfeCloneModalButton');
|
1410 |
}
|
1411 |
|
1412 |
+
// modal
|
1413 |
+
this.getModal({
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1414 |
title: title,
|
1415 |
+
size: this.has('acfeCloneModalSize') ? this.get('acfeCloneModalSize') : 'large',
|
1416 |
+
footer: this.has('acfeCloneModalClose') ? acf.__('Close') : false,
|
1417 |
+
class: 'acfe-modal-edit-' + this.get('name') + ' acfe-modal-edit-' + this.get('key')
|
1418 |
});
|
1419 |
|
1420 |
},
|
1421 |
|
1422 |
onDuplicate: function(e, $el, $duplicate) {
|
1423 |
+
$duplicate.find('.acf-input:first > a[data-modal]').remove();
|
1424 |
}
|
1425 |
|
1426 |
});
|
1599 |
}
|
1600 |
|
1601 |
/**
|
1602 |
+
* Flexible Content: Overwrite
|
1603 |
*/
|
1604 |
var FlexibleContent = acf.models.FlexibleContentField;
|
1605 |
|
1616 |
this.$layoutsWrap().sortable({
|
1617 |
items: ' > .layout',
|
1618 |
handle: '> .acf-fc-layout-handle',
|
1619 |
+
forceHelperSize: false, // changed to false
|
1620 |
forcePlaceholderSize: true,
|
1621 |
revert: 50,
|
1622 |
+
tolerance: 'pointer', // changed to pointer
|
1623 |
scroll: true,
|
1624 |
stop: function(event, ui) {
|
1625 |
self.render();
|
1631 |
|
1632 |
},
|
1633 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1634 |
|
1635 |
+
add: function(args) {
|
|
|
|
|
1636 |
|
1637 |
+
// get element
|
1638 |
+
var $el = FlexibleContent.prototype.add.apply(this, arguments);
|
|
|
|
|
|
|
1639 |
|
1640 |
+
if ($el.length) {
|
|
|
1641 |
|
1642 |
+
// used in append
|
1643 |
+
$el.data('added', true);
|
1644 |
}
|
1645 |
|
|
|
1646 |
},
|
1647 |
|
1648 |
+
});
|
1649 |
|
1650 |
+
/**
|
1651 |
+
* Flexible Content: Validation
|
1652 |
+
*/
|
1653 |
+
new acf.Model({
|
1654 |
|
1655 |
+
actions: {
|
1656 |
+
'invalid_field': 'onInvalidField',
|
1657 |
+
'valid_field': 'onValidField',
|
1658 |
+
},
|
1659 |
|
1660 |
+
onInvalidField: function(field) {
|
|
|
1661 |
|
1662 |
+
field.$el.parents('.layout').addClass('acfe-flexible-modal-edit-error');
|
|
|
1663 |
|
1664 |
+
},
|
|
|
1665 |
|
1666 |
+
onValidField: function(field) {
|
1667 |
|
1668 |
+
field.$el.parents('.layout').each(function() {
|
1669 |
|
1670 |
+
var $layout = $(this);
|
|
|
1671 |
|
1672 |
+
if (!$layout.find('.acf-error').length) {
|
1673 |
+
$layout.removeClass('acfe-flexible-modal-edit-error');
|
1674 |
+
}
|
1675 |
|
1676 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1677 |
|
1678 |
+
}
|
|
|
|
|
|
|
|
|
1679 |
|
1680 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1681 |
|
1682 |
+
})(jQuery);
|
1683 |
+
(function($) {
|
1684 |
|
1685 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
1686 |
+
return;
|
1687 |
+
}
|
1688 |
|
1689 |
/**
|
1690 |
+
* Flexible Content: Append
|
1691 |
*/
|
1692 |
+
var Field = acfe.FieldExtender({
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1693 |
|
1694 |
+
id: 'fc_append',
|
|
|
|
|
1695 |
|
1696 |
+
type: 'flexible_content',
|
|
|
1697 |
|
1698 |
+
initialize: function() {
|
|
|
1699 |
|
1700 |
+
// initialize
|
1701 |
+
this.getParent(Field).initialize.apply(this, arguments);
|
1702 |
|
1703 |
+
// add events
|
1704 |
+
this.addEvents({
|
1705 |
+
'appendLayout': 'acfeAppendLayout',
|
1706 |
});
|
1707 |
|
1708 |
+
},
|
|
|
1709 |
|
1710 |
+
acfeAppendLayout: function(e, $el, $layout) {
|
|
|
|
|
|
|
1711 |
|
1712 |
+
// only native acf duplicate
|
1713 |
+
// .acfe-layout-duplicated is old clone & copy/paste
|
1714 |
+
if (!$layout.is('.acfe-layout-duplicated')) {
|
1715 |
+
|
1716 |
+
if (this.has('acfeFlexibleModalEdition')) {
|
1717 |
+
this.acfeModalEdit(null, $layout);
|
1718 |
+
} else {
|
1719 |
+
this.openLayout($layout);
|
1720 |
+
}
|
1721 |
|
1722 |
}
|
1723 |
|
1724 |
+
// check if inside modal
|
1725 |
+
var modal = acfe.getModal($layout.closest('.acfe-modal.-open'));
|
|
|
1726 |
|
1727 |
+
// already inside another modal
|
1728 |
+
if (modal) {
|
|
|
1729 |
|
1730 |
+
this.acfeScrollToLayout($layout, modal.$content());
|
|
|
1731 |
|
1732 |
+
// old clone + copy/paste
|
1733 |
+
} else if ($layout.is('.acfe-layout-duplicated')) {
|
1734 |
|
1735 |
+
this.acfeScrollToLayout($layout);
|
|
|
1736 |
|
1737 |
+
// added or duplicated
|
1738 |
+
} else {
|
|
|
|
|
|
|
1739 |
|
1740 |
+
// we must set timeout to let data() being appended
|
1741 |
+
this.setTimeout(function() {
|
1742 |
+
if ($layout.data('added')) {
|
1743 |
+
this.acfeScrollToLayout($layout);
|
1744 |
}
|
1745 |
+
}, 10);
|
1746 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1747 |
|
1748 |
}
|
1749 |
|
1750 |
},
|
1751 |
|
1752 |
+
acfeScrollToLayout: function($layout, $parent) {
|
|
|
|
|
|
|
|
|
|
|
|
|
1753 |
|
1754 |
+
// vars
|
1755 |
+
var hasParent = $parent || false;
|
1756 |
+
$parent = $parent || $('body, html');
|
1757 |
|
1758 |
+
// emulate acf.focusAttention
|
1759 |
+
if (!acf.isInView($layout)) {
|
1760 |
|
1761 |
+
var scrollTop = hasParent ? $layout.position().top : $layout.offset().top - $(window).height() / 2;
|
1762 |
|
1763 |
+
$parent.animate({
|
1764 |
+
scrollTop: scrollTop
|
1765 |
+
}, 500);
|
1766 |
|
1767 |
}
|
1768 |
|
1769 |
},
|
1770 |
|
1771 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1772 |
|
1773 |
+
})(jQuery);
|
1774 |
+
(function($) {
|
1775 |
|
1776 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
1777 |
+
return;
|
1778 |
+
}
|
1779 |
|
1780 |
+
/**
|
1781 |
+
* Flexible Content: One Click
|
1782 |
+
*/
|
1783 |
+
var Field = acfe.FieldExtender({
|
1784 |
|
1785 |
+
id: 'fc_async',
|
|
|
|
|
|
|
1786 |
|
1787 |
+
type: 'flexible_content',
|
|
|
1788 |
|
1789 |
+
condition: function() {
|
1790 |
+
return this.has('acfeFlexibleAjax');
|
1791 |
},
|
1792 |
|
1793 |
+
add: function(args) {
|
|
|
|
|
|
|
|
|
|
|
1794 |
|
1795 |
+
// defaults
|
1796 |
+
args = acf.parseArgs(args, {
|
1797 |
+
layout: '',
|
1798 |
+
before: false
|
1799 |
+
});
|
1800 |
|
1801 |
+
// validate
|
1802 |
+
if (!this.allowAdd()) {
|
1803 |
+
return false;
|
1804 |
+
}
|
1805 |
|
1806 |
+
// ajax data
|
1807 |
+
var ajaxData = {
|
1808 |
+
action: 'acfe/flexible/models',
|
1809 |
+
field_key: this.get('key'),
|
1810 |
+
layout: args.layout,
|
1811 |
+
};
|
1812 |
|
1813 |
+
// beforeSend callback
|
1814 |
+
var beforeSend = function() {
|
1815 |
+
$('body').addClass('-loading');
|
1816 |
+
}
|
1817 |
|
1818 |
+
// complete callback
|
1819 |
+
var complete = function() {
|
1820 |
+
$('body').removeClass('-loading');
|
1821 |
}
|
1822 |
|
1823 |
+
// success callback
|
1824 |
+
var success = this.proxy(function(html) {
|
1825 |
|
1826 |
+
if (html) {
|
1827 |
|
1828 |
+
var $layout = $(html);
|
1829 |
+
var uniqid = acf.uniqid();
|
1830 |
|
1831 |
+
var search = 'acf[' + this.get('key') + '][acfcloneindex]';
|
1832 |
+
var replace = this.$control().find('> input[type=hidden]').attr('name') + '[' + uniqid + ']';
|
|
|
|
|
1833 |
|
1834 |
+
// add row
|
1835 |
+
var $el = acf.duplicate({
|
1836 |
+
target: $layout,
|
1837 |
+
search: search,
|
1838 |
+
replace: replace,
|
1839 |
+
append: this.proxy(function($el, $el2) {
|
1840 |
|
1841 |
+
// append
|
1842 |
+
if (args.before) {
|
1843 |
+
args.before.before($el2);
|
1844 |
+
} else {
|
1845 |
+
this.$layoutsWrap().append($el2);
|
1846 |
+
}
|
1847 |
|
1848 |
+
// enable
|
1849 |
+
acf.enable($el2, this.cid);
|
|
|
|
|
1850 |
|
1851 |
+
// render
|
1852 |
+
this.render();
|
1853 |
+
})
|
1854 |
+
});
|
1855 |
|
1856 |
+
// fix data-id
|
1857 |
+
$el.attr('data-id', uniqid);
|
1858 |
|
1859 |
+
// trigger change for validation errors
|
1860 |
+
this.$input().trigger('change');
|
|
|
|
|
1861 |
|
1862 |
+
// return
|
1863 |
+
return $el;
|
1864 |
|
1865 |
}
|
1866 |
|
1867 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1868 |
|
1869 |
+
// ajax
|
1870 |
+
$.ajax({
|
1871 |
+
url: acf.get('ajaxurl'),
|
1872 |
+
data: acf.prepareForAjax(ajaxData),
|
1873 |
+
dataType: 'html',
|
1874 |
+
type: 'post',
|
1875 |
+
beforeSend: beforeSend,
|
1876 |
+
success: success,
|
1877 |
+
complete: complete
|
1878 |
});
|
1879 |
|
1880 |
}
|
1894 |
var flexible = acf.getFieldType('flexible_content');
|
1895 |
var model = flexible.prototype;
|
1896 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1897 |
// Layout: Clone
|
1898 |
model.events['click [data-acfe-flexible-control-clone]'] = 'acfeCloneLayout';
|
1899 |
model.acfeCloneLayout = function(e, $el) {
|
2553 |
|
2554 |
}
|
2555 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2556 |
})(jQuery);
|
2557 |
(function($) {
|
2558 |
|
2561 |
}
|
2562 |
|
2563 |
/**
|
2564 |
+
* Flexible Content: Events
|
2565 |
*/
|
2566 |
+
var eventManager = new acf.Model({
|
|
|
2567 |
|
2568 |
+
actions: {
|
2569 |
+
'new_field/type=flexible_content': 'newField',
|
2570 |
+
'show': 'onShow',
|
2571 |
+
'hide': 'onHide',
|
2572 |
+
'append': 'onAppend',
|
2573 |
+
},
|
2574 |
|
2575 |
+
newField: function(field) {
|
2576 |
|
2577 |
+
// placeholder
|
2578 |
+
field.addEvents({
|
2579 |
+
'click .acfe-fc-placeholder': 'onClickCollapse'
|
2580 |
+
});
|
2581 |
+
|
2582 |
+
// inline close button
|
2583 |
+
field.addEvents({
|
2584 |
+
'click .acfe-flexible-opened-actions > a': 'onClickCollapse'
|
2585 |
+
});
|
2586 |
+
|
2587 |
+
if (field.has('acfeFlexibleModalEdition') && (field.has('acfeFlexiblePlaceholder') || field.has('acfeFlexiblePreview'))) {
|
2588 |
+
|
2589 |
+
// collapse action
|
2590 |
+
field.removeEvents({
|
2591 |
+
'click [data-name="collapse-layout"]': 'onClickCollapse'
|
2592 |
+
});
|
2593 |
+
|
2594 |
+
// placeholder collapse Action
|
2595 |
+
field.removeEvents({
|
2596 |
+
'click .acfe-fc-placeholder': 'onClickCollapse'
|
2597 |
+
});
|
2598 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2599 |
}
|
|
|
2600 |
|
2601 |
+
// lock
|
2602 |
+
if (field.has('acfeFlexibleLock')) {
|
2603 |
+
field.removeEvents({
|
2604 |
+
'mouseover': 'onHover'
|
2605 |
+
});
|
2606 |
+
}
|
2607 |
+
|
2608 |
+
field.$layouts().each(function() {
|
2609 |
+
field.trigger('newLayout', [$(this)]);
|
2610 |
+
});
|
2611 |
+
|
2612 |
+
},
|
2613 |
+
|
2614 |
+
onShow: function($el, context) {
|
2615 |
+
|
2616 |
+
// validate
|
2617 |
+
if (context === 'collapse' && $el.is('.layout')) {
|
2618 |
+
|
2619 |
+
// get field
|
2620 |
+
var field = acf.getClosestField($el);
|
2621 |
+
|
2622 |
+
// trigger
|
2623 |
+
field.trigger('showLayout', [$el]);
|
2624 |
+
|
2625 |
+
}
|
2626 |
+
|
2627 |
+
},
|
2628 |
+
|
2629 |
+
onHide: function($el, context) {
|
2630 |
+
|
2631 |
+
// validate
|
2632 |
+
if (context === 'collapse' && $el.is('.layout') && !$el.is('.acf-clone')) {
|
2633 |
+
|
2634 |
+
// get field
|
2635 |
+
var field = acf.getClosestField($el);
|
2636 |
+
|
2637 |
+
// trigger
|
2638 |
+
field.trigger('hideLayout', [$el]);
|
2639 |
+
|
2640 |
+
}
|
2641 |
+
|
2642 |
+
},
|
2643 |
+
|
2644 |
+
onAppend: function($el) {
|
2645 |
+
|
2646 |
+
// validate
|
2647 |
+
if ($el.is('.layout')) {
|
2648 |
+
|
2649 |
+
// get field
|
2650 |
+
var field = acf.getClosestField($el);
|
2651 |
+
|
2652 |
+
// trigger
|
2653 |
+
field.trigger('newLayout', [$el]);
|
2654 |
+
field.trigger('appendLayout', [$el]);
|
2655 |
+
|
2656 |
+
}
|
2657 |
+
|
2658 |
+
},
|
2659 |
+
|
2660 |
+
});
|
2661 |
+
|
2662 |
+
})(jQuery);
|
2663 |
+
(function($) {
|
2664 |
+
|
2665 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
2666 |
+
return;
|
2667 |
+
}
|
2668 |
|
2669 |
/**
|
2670 |
+
* Flexible Content: Modal Edit
|
2671 |
*/
|
2672 |
+
var Field = acfe.FieldExtender({
|
2673 |
|
2674 |
+
id: 'fc_modal_edit',
|
2675 |
|
2676 |
+
type: 'flexible_content',
|
|
|
|
|
|
|
2677 |
|
2678 |
+
events: {
|
2679 |
+
'click [data-action="acfe-flexible-modal-edit"]': 'acfeModalEdit',
|
2680 |
+
},
|
2681 |
+
|
2682 |
+
acfeModalEdit: function(e, $el) {
|
2683 |
|
2684 |
+
// layout
|
2685 |
+
var $layout = $el.closest('.layout');
|
2686 |
+
|
2687 |
+
// modal
|
2688 |
+
var $modal = $layout.find('> .acfe-modal.-fields');
|
2689 |
+
|
2690 |
+
// vars
|
2691 |
+
var $handle = $layout.find('> .acf-fc-layout-handle');
|
2692 |
+
var order = $handle.find('> .acf-fc-layout-order').outerHTML();
|
2693 |
+
var title = acfe.getTextNode($handle.find('.acfe-layout-title'));
|
2694 |
+
|
2695 |
+
var modal = acfe.getModal($modal, {
|
2696 |
+
open: true,
|
2697 |
+
title: order + title,
|
2698 |
+
onOpen: this.proxy(function() {
|
2699 |
+
this.openLayout($layout);
|
2700 |
+
}),
|
2701 |
+
onClose: this.proxy(function() {
|
2702 |
+
this.closeLayout($layout);
|
2703 |
+
}),
|
2704 |
+
});
|
2705 |
}
|
2706 |
|
2707 |
});
|
2716 |
/**
|
2717 |
* Flexible Content: Modal Select
|
2718 |
*/
|
2719 |
+
var Field = acfe.FieldExtender({
|
2720 |
+
|
2721 |
+
id: 'fc_modal_select',
|
2722 |
|
2723 |
type: 'flexible_content',
|
2724 |
|
2725 |
+
condition: function() {
|
2726 |
return this.has('acfeFlexibleModal') && this.$clones().length > 1;
|
2727 |
},
|
2728 |
|
2743 |
var $before = $el.hasClass('acf-icon') ? $el.closest('.layout') : null;
|
2744 |
|
2745 |
// Open Modal
|
2746 |
+
acfe.newModal({
|
2747 |
title: flexible.get('acfeFlexibleModalTitle', acf.__('Add Row')),
|
2748 |
class: 'acfe-modal-select-' + flexible.get('name') + ' acfe-modal-select-' + flexible.get('key'),
|
2749 |
size: flexible.get('acfeFlexibleModalSize'),
|
2854 |
// get layouts selection html
|
2855 |
var $layouts = $(this.getPopupHTML());
|
2856 |
|
2857 |
+
// categories vars
|
2858 |
+
var html = '';
|
2859 |
+
var data = [];
|
2860 |
+
|
2861 |
+
// check if categories exist
|
2862 |
+
if ($layouts.find('li a span[data-acfe-flexible-category]').exists()) {
|
2863 |
+
|
2864 |
+
// loop
|
2865 |
+
$layouts.find('li a span[data-acfe-flexible-category]').each(function() {
|
2866 |
+
|
2867 |
+
// get categories from data
|
2868 |
+
var categories = $(this).data('acfe-flexible-category');
|
2869 |
+
|
2870 |
+
// loop categories
|
2871 |
+
categories.map(function(label) {
|
2872 |
+
|
2873 |
+
// generate slug
|
2874 |
+
var slug = acfe.slugify(label);
|
2875 |
+
|
2876 |
+
// search for slug
|
2877 |
+
var search = data.filter(function(row) {
|
2878 |
+
return row.slug === slug;
|
2879 |
+
});
|
2880 |
+
|
2881 |
+
// slug not found, append
|
2882 |
+
if (acfe.isEmpty(search)) {
|
2883 |
+
data.push({
|
2884 |
+
slug: slug,
|
2885 |
+
label: label
|
2886 |
+
});
|
2887 |
+
}
|
2888 |
+
|
2889 |
+
});
|
2890 |
+
});
|
2891 |
+
|
2892 |
+
// prepare html
|
2893 |
+
if (data.length) {
|
2894 |
+
|
2895 |
+
html += '<h2 class="acfe-flexible-categories nav-tab-wrapper">';
|
2896 |
+
html += '<a href="#" data-acfe-flexible-category="acfe-all" class="nav-tab nav-tab-active"><span class="dashicons dashicons-menu"></span></a>';
|
2897 |
+
|
2898 |
+
data.sort().map(function(row) {
|
2899 |
+
html += '<a href="#" data-acfe-flexible-category="' + row.label + '" class="nav-tab">' + row.label + '</a>';
|
2900 |
+
});
|
2901 |
+
|
2902 |
+
html += '</h2>';
|
2903 |
+
|
2904 |
+
}
|
2905 |
+
|
2906 |
+
}
|
2907 |
+
|
2908 |
+
return html;
|
2909 |
+
|
2910 |
+
},
|
2911 |
+
|
2912 |
+
});
|
2913 |
+
|
2914 |
+
})(jQuery);
|
2915 |
+
(function($) {
|
2916 |
+
|
2917 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
2918 |
+
return;
|
2919 |
+
}
|
2920 |
+
|
2921 |
+
/**
|
2922 |
+
* Flexible Content: Modal Settings
|
2923 |
+
*/
|
2924 |
+
var Field = acfe.FieldExtender({
|
2925 |
+
|
2926 |
+
id: 'fc_modal_settings',
|
2927 |
+
|
2928 |
+
type: 'flexible_content',
|
2929 |
+
|
2930 |
+
events: {
|
2931 |
+
'click [data-acfe-flexible-settings]': 'acfeLayoutSettings',
|
2932 |
+
},
|
2933 |
+
|
2934 |
+
acfeLayoutSettings: function(e, $el) {
|
2935 |
+
|
2936 |
+
// layout
|
2937 |
+
var $layout = $el.closest('.layout');
|
2938 |
+
|
2939 |
+
// modal
|
2940 |
+
var $modal = $layout.find('> .acfe-modal.-settings');
|
2941 |
+
|
2942 |
+
// vars
|
2943 |
+
var $handle = $layout.find('> .acf-fc-layout-handle');
|
2944 |
+
var order = $handle.find('> .acf-fc-layout-order').outerHTML();
|
2945 |
+
var title = acfe.getTextNode($handle.find('.acfe-layout-title'));
|
2946 |
+
|
2947 |
+
var modal = acfe.getModal($modal, {
|
2948 |
+
open: true,
|
2949 |
+
title: order + title,
|
2950 |
+
onClose: this.proxy(function() {
|
2951 |
+
if (this.has('acfeFlexiblePreview')) {
|
2952 |
+
this.closeLayout($layout);
|
2953 |
+
}
|
2954 |
+
})
|
2955 |
+
});
|
2956 |
+
|
2957 |
+
}
|
2958 |
+
|
2959 |
+
});
|
2960 |
+
|
2961 |
+
})(jQuery);
|
2962 |
+
(function($) {
|
2963 |
+
|
2964 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
2965 |
+
return;
|
2966 |
+
}
|
2967 |
+
|
2968 |
+
/**
|
2969 |
+
* Flexible Content: One Click
|
2970 |
+
*/
|
2971 |
+
var Field = acfe.FieldExtender({
|
2972 |
+
|
2973 |
+
id: 'fc_one_click',
|
2974 |
+
|
2975 |
+
type: 'flexible_content',
|
2976 |
+
|
2977 |
+
condition: function() {
|
2978 |
+
return this.$clones().length === 1;
|
2979 |
+
},
|
2980 |
+
|
2981 |
+
onClickAdd: function(e, $el) {
|
2982 |
+
|
2983 |
+
// validate
|
2984 |
+
if (!this.validateAdd()) {
|
2985 |
+
return false;
|
2986 |
+
}
|
2987 |
+
|
2988 |
+
// vars
|
2989 |
+
var $clones = this.$clones();
|
2990 |
+
var layout = $($clones[0]).data('layout');
|
2991 |
+
|
2992 |
+
// within layout
|
2993 |
+
var $before = null;
|
2994 |
+
if ($el.hasClass('acf-icon')) {
|
2995 |
+
$before = $el.closest('.layout');
|
2996 |
+
}
|
2997 |
+
|
2998 |
+
// add layout
|
2999 |
+
this.add({
|
3000 |
+
layout: layout,
|
3001 |
+
before: $before
|
3002 |
+
});
|
3003 |
+
|
3004 |
+
// hide popup just in case
|
3005 |
+
var $popup = $('.acf-fc-popup');
|
3006 |
+
|
3007 |
+
if ($popup.length) {
|
3008 |
+
$popup.hide();
|
3009 |
+
}
|
3010 |
+
|
3011 |
+
}
|
3012 |
+
|
3013 |
+
});
|
3014 |
+
|
3015 |
+
})(jQuery);
|
3016 |
+
(function($) {
|
3017 |
+
|
3018 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
3019 |
+
return;
|
3020 |
+
}
|
3021 |
+
|
3022 |
+
/**
|
3023 |
+
* Flexible Content: Placeholder
|
3024 |
+
*/
|
3025 |
+
var Field = acfe.FieldExtender({
|
3026 |
+
|
3027 |
+
id: 'fc_placeholder',
|
3028 |
+
|
3029 |
+
type: 'flexible_content',
|
3030 |
+
|
3031 |
+
condition: function() {
|
3032 |
+
return this.has('acfeFlexiblePlaceholder');
|
3033 |
+
},
|
3034 |
+
|
3035 |
+
initialize: function() {
|
3036 |
+
|
3037 |
+
// initialize
|
3038 |
+
this.getParent(Field).initialize.apply(this, arguments);
|
3039 |
+
|
3040 |
+
// add events
|
3041 |
+
this.addEvents({
|
3042 |
+
'showLayout': 'acfePlaceholderShowLayout',
|
3043 |
+
'hideLayout': 'acfePlaceholderHideLayout',
|
3044 |
+
'newLayout': 'acfePlaceholderNewLayout',
|
3045 |
+
});
|
3046 |
+
|
3047 |
+
},
|
3048 |
+
|
3049 |
+
acfePlaceholderShowLayout: function(e, $el, $layout) {
|
3050 |
+
|
3051 |
+
// hide placeholder
|
3052 |
+
if (!this.has('acfeFlexibleModalEdition')) {
|
3053 |
+
acf.hide($layout.find('> .acfe-fc-placeholder'));
|
3054 |
+
}
|
3055 |
+
|
3056 |
+
},
|
3057 |
+
|
3058 |
+
acfePlaceholderHideLayout: function(e, $el, $layout) {
|
3059 |
+
|
3060 |
+
// show placeholder
|
3061 |
+
acf.show($layout.find('> .acfe-fc-placeholder'));
|
3062 |
+
|
3063 |
+
},
|
3064 |
+
|
3065 |
+
acfePlaceholderNewLayout: function(e, $el, $layout) {
|
3066 |
+
|
3067 |
+
// show placeholder
|
3068 |
+
if (this.isLayoutClosed($layout)) {
|
3069 |
+
acf.show($layout.find('> .acfe-fc-placeholder'));
|
3070 |
+
}
|
3071 |
+
|
3072 |
+
},
|
3073 |
+
|
3074 |
+
});
|
3075 |
+
|
3076 |
+
})(jQuery);
|
3077 |
+
(function($) {
|
3078 |
+
|
3079 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
3080 |
+
return;
|
3081 |
+
}
|
3082 |
+
|
3083 |
+
/**
|
3084 |
+
* Flexible Content: Preview
|
3085 |
+
*/
|
3086 |
+
var Field = acfe.FieldExtender({
|
3087 |
+
|
3088 |
+
id: 'fc_preview',
|
3089 |
+
|
3090 |
+
type: 'flexible_content',
|
3091 |
+
|
3092 |
+
condition: function() {
|
3093 |
+
return this.has('acfeFlexiblePreview');
|
3094 |
+
},
|
3095 |
+
|
3096 |
+
events: {
|
3097 |
+
'hideLayout': 'acfePreviewHideLayout',
|
3098 |
+
'appendLayout': 'acfePreviewAppendLayout',
|
3099 |
+
},
|
3100 |
+
|
3101 |
+
acfeLayoutPreview: function($layout) {
|
3102 |
+
|
3103 |
+
// validate
|
3104 |
+
if (!this.isLayoutClosed($layout) || $layout.find('> .acfe-fc-placeholder').hasClass('-loading')) {
|
3105 |
+
return;
|
3106 |
+
}
|
3107 |
+
|
3108 |
+
// vars
|
3109 |
+
var key = this.get('key');
|
3110 |
+
var name = this.get('name');
|
3111 |
+
var $el = this.$el;
|
3112 |
+
var layout = $layout.data('layout');
|
3113 |
+
var index = $layout.index();
|
3114 |
+
var $placeholder = $layout.find('> .acfe-fc-placeholder');
|
3115 |
+
|
3116 |
+
$placeholder.addClass('acfe-fc-preview -loading').find('> .acfe-flexible-placeholder').prepend('<span class="spinner"></span>');
|
3117 |
+
$placeholder.find('> .acfe-fc-overlay').addClass('-hover');
|
3118 |
+
|
3119 |
+
// vars
|
3120 |
+
var $input = $layout.children('input');
|
3121 |
+
var prefix = $input.attr('name').replace('[acf_fc_layout]', '');
|
3122 |
+
|
3123 |
+
// ajax data
|
3124 |
+
var ajaxData = {
|
3125 |
+
action: 'acfe/flexible/layout_preview',
|
3126 |
+
field_key: key,
|
3127 |
+
i: index,
|
3128 |
+
layout: layout,
|
3129 |
+
value: acf.serialize($layout, prefix)
|
3130 |
+
};
|
3131 |
+
|
3132 |
+
acf.doAction('acfe/fields/flexible_content/before_preview', $el, $layout, ajaxData);
|
3133 |
+
acf.doAction('acfe/fields/flexible_content/before_preview/name=' + name, $el, $layout, ajaxData);
|
3134 |
+
acf.doAction('acfe/fields/flexible_content/before_preview/key=' + key, $el, $layout, ajaxData);
|
3135 |
+
acf.doAction('acfe/fields/flexible_content/before_preview/name=' + name + '&layout=' + layout, $el, $layout, ajaxData);
|
3136 |
+
acf.doAction('acfe/fields/flexible_content/before_preview/key=' + key + '&layout=' + layout, $el, $layout, ajaxData);
|
3137 |
+
|
3138 |
+
// on success
|
3139 |
+
var onSuccess = function(response) {
|
3140 |
+
|
3141 |
+
if (response) {
|
3142 |
+
$placeholder.find('> .acfe-flexible-placeholder').html(response);
|
3143 |
+
} else {
|
3144 |
+
$placeholder.removeClass('acfe-fc-preview');
|
3145 |
+
}
|
3146 |
+
|
3147 |
+
acf.doAction('acfe/fields/flexible_content/preview', response, $el, $layout, ajaxData);
|
3148 |
+
acf.doAction('acfe/fields/flexible_content/preview/name=' + name, response, $el, $layout, ajaxData);
|
3149 |
+
acf.doAction('acfe/fields/flexible_content/preview/key=' + key, response, $el, $layout, ajaxData);
|
3150 |
+
acf.doAction('acfe/fields/flexible_content/preview/name=' + name + '&layout=' + layout, response, $el, $layout, ajaxData);
|
3151 |
+
acf.doAction('acfe/fields/flexible_content/preview/key=' + key + '&layout=' + layout, response, $el, $layout, ajaxData);
|
3152 |
+
|
3153 |
+
};
|
3154 |
+
|
3155 |
+
// on complete
|
3156 |
+
var onComplete = function() {
|
3157 |
+
|
3158 |
+
$placeholder.find('> .acfe-fc-overlay').removeClass('-hover');
|
3159 |
+
$placeholder.removeClass('-loading').find('> .acfe-flexible-placeholder > .spinner').remove();
|
3160 |
+
|
3161 |
+
};
|
3162 |
+
|
3163 |
+
// ajax
|
3164 |
+
$.ajax({
|
3165 |
+
url: acf.get('ajaxurl'),
|
3166 |
+
data: acf.prepareForAjax(ajaxData),
|
3167 |
+
dataType: 'html',
|
3168 |
+
type: 'post',
|
3169 |
+
success: onSuccess,
|
3170 |
+
complete: onComplete
|
3171 |
+
});
|
3172 |
+
|
3173 |
+
},
|
3174 |
+
|
3175 |
+
acfePreviewHideLayout: function(e, $el, $layout) {
|
3176 |
+
|
3177 |
+
this.acfeLayoutPreview($layout);
|
3178 |
+
|
3179 |
+
},
|
3180 |
+
|
3181 |
+
acfePreviewAppendLayout: function(e, $el, $layout) {
|
3182 |
+
|
3183 |
+
this.acfeLayoutPreview($layout);
|
3184 |
+
|
3185 |
+
},
|
3186 |
+
|
3187 |
+
});
|
3188 |
+
|
3189 |
+
})(jQuery);
|
3190 |
+
(function($) {
|
3191 |
+
|
3192 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
3193 |
+
return;
|
3194 |
+
}
|
3195 |
+
|
3196 |
+
/**
|
3197 |
+
* Flexible Content: State
|
3198 |
+
*/
|
3199 |
+
var Field = acfe.FieldExtender({
|
3200 |
+
|
3201 |
+
id: 'fc_state',
|
3202 |
+
|
3203 |
+
type: 'flexible_content',
|
3204 |
+
|
3205 |
+
condition: function() {
|
3206 |
+
return this.has('acfeFlexibleOpen');
|
3207 |
+
},
|
3208 |
+
|
3209 |
+
addCollapsed: function() {
|
3210 |
+
// ...
|
3211 |
+
}
|
3212 |
+
|
3213 |
+
});
|
3214 |
+
|
3215 |
+
})(jQuery);
|
3216 |
+
(function($) {
|
3217 |
+
|
3218 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
3219 |
+
return;
|
3220 |
+
}
|
3221 |
+
|
3222 |
+
/**
|
3223 |
+
* Flexible Content: Title Ajax
|
3224 |
+
*/
|
3225 |
+
var Field = acfe.FieldExtender({
|
3226 |
+
|
3227 |
+
id: 'fc_title_ajax',
|
3228 |
+
|
3229 |
+
type: 'flexible_content',
|
3230 |
+
|
3231 |
+
condition: function() {
|
3232 |
+
return this.has('acfeFlexibleRemoveAjaxTitle');
|
3233 |
+
},
|
3234 |
+
|
3235 |
+
renderLayout: function() {
|
3236 |
+
// ...
|
3237 |
+
}
|
3238 |
+
|
3239 |
+
});
|
3240 |
+
|
3241 |
+
})(jQuery);
|
3242 |
+
(function($) {
|
3243 |
+
|
3244 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
3245 |
+
return;
|
3246 |
+
}
|
3247 |
+
|
3248 |
+
/**
|
3249 |
+
* Flexible Content: Title Inline
|
3250 |
+
*/
|
3251 |
+
var Field = acfe.FieldExtender({
|
3252 |
+
|
3253 |
+
id: 'fc_title_inline',
|
3254 |
+
|
3255 |
+
type: 'flexible_content',
|
3256 |
+
|
3257 |
+
condition: function() {
|
3258 |
+
return this.has('acfeFlexibleTitleEdition');
|
3259 |
+
},
|
3260 |
+
|
3261 |
+
events: {
|
3262 |
+
'click .acf-fc-layout-handle': 'acfeEditLayoutTitleToggleHandle',
|
3263 |
+
'click .acfe-layout-title-text': 'acfeEditLayoutTitle',
|
3264 |
+
'blur input.acfe-flexible-control-title': 'acfeEditLayoutTitleToggle',
|
3265 |
+
'click input.acfe-flexible-control-title': 'acfeEditLayoutTitlePropagation',
|
3266 |
+
'input [data-acfe-flexible-control-title-input]': 'acfeEditLayoutTitleInput',
|
3267 |
+
'keypress [data-acfe-flexible-control-title-input]': 'acfeEditLayoutTitleInputEnter',
|
3268 |
+
},
|
3269 |
+
|
3270 |
+
acfeEditLayoutTitleToggleHandle: function(e, $el) {
|
3271 |
+
|
3272 |
+
// layout
|
3273 |
+
var $layout = $el.closest('.layout');
|
3274 |
+
|
3275 |
+
if ($layout.hasClass('acfe-flexible-title-edition')) {
|
3276 |
+
$layout.find('> .acf-fc-layout-handle > .acfe-layout-title > input.acfe-flexible-control-title').trigger('blur');
|
3277 |
+
}
|
3278 |
+
|
3279 |
+
},
|
3280 |
+
|
3281 |
+
acfeEditLayoutTitle: function(e, $el) {
|
3282 |
+
|
3283 |
+
e.stopPropagation();
|
3284 |
+
this.acfeEditLayoutTitleToggle(e, $el);
|
3285 |
+
|
3286 |
+
},
|
3287 |
+
|
3288 |
+
acfeEditLayoutTitleToggle: function(e, $el) {
|
3289 |
+
|
3290 |
+
// vars
|
3291 |
+
var $layout = $el.closest('.layout');
|
3292 |
+
var $handle = $layout.find('> .acf-fc-layout-handle');
|
3293 |
+
var $title = $handle.find('.acfe-layout-title');
|
3294 |
+
|
3295 |
+
if ($layout.hasClass('acfe-flexible-title-edition')) {
|
3296 |
+
|
3297 |
+
var $input = $title.find('> input[data-acfe-flexible-control-title-input]');
|
3298 |
+
|
3299 |
+
if ($input.val() === '') {
|
3300 |
+
$input.val($input.attr('placeholder')).trigger('input');
|
3301 |
+
}
|
3302 |
+
|
3303 |
+
$layout.removeClass('acfe-flexible-title-edition');
|
3304 |
+
$input.insertAfter($handle);
|
3305 |
+
|
3306 |
+
} else {
|
3307 |
+
|
3308 |
+
var $input = $layout.find('> input[data-acfe-flexible-control-title-input]');
|
3309 |
+
var $input = $input.appendTo($title);
|
3310 |
+
|
3311 |
+
$layout.addClass('acfe-flexible-title-edition');
|
3312 |
+
$input.focus().attr('size', $input.val().length);
|
3313 |
+
|
3314 |
+
}
|
3315 |
+
|
3316 |
+
},
|
3317 |
+
|
3318 |
+
acfeEditLayoutTitlePropagation: function(e, $el) {
|
3319 |
+
e.stopPropagation();
|
3320 |
+
},
|
3321 |
+
|
3322 |
+
acfeEditLayoutTitleInput: function(e, $el) {
|
3323 |
+
|
3324 |
+
// vars
|
3325 |
+
var $layout = $el.closest('.layout');
|
3326 |
+
var $title = $layout.find('> .acf-fc-layout-handle .acfe-layout-title .acfe-layout-title-text');
|
3327 |
+
|
3328 |
+
var val = $el.val();
|
3329 |
+
|
3330 |
+
$el.attr('size', val.length);
|
3331 |
+
|
3332 |
+
$title.html(val);
|
3333 |
+
|
3334 |
+
},
|
3335 |
+
|
3336 |
+
acfeEditLayoutTitleInputEnter: function(e, $el) {
|
3337 |
+
|
3338 |
+
// 'enter'
|
3339 |
+
if (e.keyCode === 13) {
|
3340 |
+
e.preventDefault();
|
3341 |
+
$el.blur();
|
3342 |
+
}
|
3343 |
+
|
3344 |
+
}
|
3345 |
+
|
3346 |
+
});
|
3347 |
+
|
3348 |
+
})(jQuery);
|
3349 |
+
(function($) {
|
3350 |
+
|
3351 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
3352 |
+
return;
|
3353 |
+
}
|
3354 |
|
3355 |
+
/**
|
3356 |
+
* Flexible Content: Toggle
|
3357 |
+
*/
|
3358 |
+
var Field = acfe.FieldExtender({
|
3359 |
|
3360 |
+
id: 'fc_toggle',
|
|
|
3361 |
|
3362 |
+
type: 'flexible_content',
|
|
|
3363 |
|
3364 |
+
condition: function() {
|
3365 |
+
return this.has('acfeFlexibleToggle');
|
3366 |
+
},
|
3367 |
|
3368 |
+
events: {
|
3369 |
+
'click [data-acfe-flexible-control-toggle]': 'acfeLayoutToggle',
|
3370 |
+
},
|
3371 |
|
3372 |
+
acfeLayoutToggle: function(e, $el) {
|
|
|
|
|
|
|
3373 |
|
3374 |
+
// vars
|
3375 |
+
var $layout = $el.closest('.layout');
|
3376 |
+
var $input = $layout.find('> .acfe-flexible-layout-toggle');
|
|
|
|
|
|
|
|
|
3377 |
|
3378 |
+
if ($input.length) {
|
|
|
3379 |
|
3380 |
+
if ($input.val() === '1') {
|
|
|
3381 |
|
3382 |
+
$layout.removeClass('acfe-flexible-layout-hidden');
|
3383 |
+
$input.val('');
|
3384 |
|
3385 |
+
} else {
|
|
|
|
|
3386 |
|
3387 |
+
$layout.addClass('acfe-flexible-layout-hidden');
|
3388 |
+
$input.val('1');
|
3389 |
|
3390 |
}
|
3391 |
|
3392 |
}
|
3393 |
|
3394 |
+
}
|
|
|
|
|
3395 |
|
3396 |
});
|
3397 |
|
|
|
|
|
3398 |
})(jQuery);
|
3399 |
(function($) {
|
3400 |
|
3412 |
type: 'group',
|
3413 |
|
3414 |
events: {
|
|
|
3415 |
'duplicateField': 'onDuplicate'
|
3416 |
},
|
3417 |
|
3419 |
|
3420 |
if (this.has('acfeGroupModal')) {
|
3421 |
|
3422 |
+
this.$inputWrap().find('> .acf-fields, > .acf-table').wrapAll('<div class="acfe-modal"><div class="acfe-modal-wrapper"><div class="acfe-modal-content"></div></div></div>');
|
3423 |
+
this.$inputWrap().append('<a href="#" class="acf-button button" data-modal>' + this.get('acfeGroupModalButton') + '</a>');
|
3424 |
|
3425 |
+
this.initializeModal();
|
|
|
3426 |
|
3427 |
}
|
3428 |
|
3429 |
},
|
3430 |
|
3431 |
+
initializeModal: function() {
|
3432 |
|
3433 |
// normal title
|
3434 |
var title = this.$labelWrap().find('label').text().trim();
|
3445 |
|
3446 |
}
|
3447 |
|
3448 |
+
// fallback to button text
|
|
|
|
|
3449 |
if (!title.length) {
|
3450 |
title = this.get('acfeGroupModalButton');
|
3451 |
}
|
3452 |
|
3453 |
+
// modal
|
3454 |
+
this.getModal({
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3455 |
title: title,
|
3456 |
+
size: this.has('acfeGroupModalSize') ? this.get('acfeGroupModalSize') : 'large',
|
3457 |
+
footer: this.has('acfeGroupModalClose') ? acf.__('Close') : false,
|
3458 |
+
class: 'acfe-modal-edit-' + this.get('name') + ' acfe-modal-edit-' + this.get('key')
|
3459 |
});
|
3460 |
|
3461 |
},
|
3462 |
|
3463 |
onDuplicate: function(e, $el, $duplicate) {
|
3464 |
+
$duplicate.find('.acf-input:first > a[data-modal]').remove();
|
3465 |
}
|
3466 |
|
3467 |
});
|
3478 |
/**
|
3479 |
* Field: Radio
|
3480 |
*/
|
3481 |
+
var Radio = acf.models.RadioField;
|
3482 |
|
3483 |
+
acf.models.RadioField = Radio.extend({
|
|
|
|
|
3484 |
|
3485 |
+
// add setValue method
|
3486 |
+
// this allows to use field.val('new_value') to assign a new value to the field
|
3487 |
+
setValue: function(val) {
|
3488 |
|
3489 |
+
// clear value
|
3490 |
+
if (!val) {
|
3491 |
+
return this.clearValue();
|
3492 |
}
|
3493 |
|
3494 |
+
// get option with value
|
3495 |
+
var $option = this.$(':radio[value="' + val + '"]');
|
3496 |
|
3497 |
+
// option exists and is not already selected
|
3498 |
+
if ($option.length && !$option.is(':checked')) {
|
|
|
|
|
3499 |
|
3500 |
+
// select the option
|
3501 |
+
$option.prop('checked', true).trigger('change');
|
3502 |
+
this.onClick(null, $option);
|
3503 |
|
|
|
|
|
|
|
3504 |
}
|
3505 |
|
3506 |
+
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3507 |
|
3508 |
+
// add clearValue method
|
3509 |
+
// this allows to set the value to the first radio or if allow_null is enabled, to null
|
3510 |
+
clearValue: function() {
|
3511 |
|
3512 |
+
// if allow_null is enabled, get selected option and click it
|
3513 |
+
if (this.get('allow_null')) {
|
3514 |
|
3515 |
+
if (this.$input().length) {
|
3516 |
+
this.onClick(null, this.$input());
|
3517 |
+
}
|
3518 |
|
3519 |
+
// otherwise use first radio value as default value
|
3520 |
+
} else {
|
3521 |
+
this.val(this.$(':radio').first().val());
|
3522 |
}
|
3523 |
|
3524 |
}
|
3712 |
return;
|
3713 |
}
|
3714 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3715 |
|
3716 |
/**
|
3717 |
* Field: Select
|
3719 |
new acf.Model({
|
3720 |
|
3721 |
actions: {
|
3722 |
+
'new_field/type=select': 'newSelect',
|
3723 |
'select2_init': 'init',
|
3724 |
},
|
3725 |
|
3727 |
'select2_args': 'args',
|
3728 |
},
|
3729 |
|
3730 |
+
newSelect: function(field) {
|
3731 |
|
3732 |
// inherit properties
|
3733 |
field.inherit(field.$input());
|
3734 |
|
3735 |
// remove "- -" characters from placeholder
|
3736 |
+
// acf already apply this to all select2
|
3737 |
if (!field.get('ui') && field.get('allow_null')) {
|
3738 |
|
3739 |
field.$input().find('option').each(function(i, option) {
|
3740 |
|
3741 |
+
if (!option.value && option.text.startsWith('- ') && option.text.endsWith(' -')) {
|
|
|
|
|
3742 |
|
3743 |
+
option.text = option.text.substring(2); // remove starting "- "
|
3744 |
+
option.text = option.text.substring(0, option.text.length - 2); // remove ending " -"
|
|
|
3745 |
|
3746 |
+
}
|
|
|
3747 |
|
3748 |
});
|
3749 |
|
3778 |
|
3779 |
init: function($select, options, data, field, instance) {
|
3780 |
|
3781 |
+
// close dropdown on clear
|
3782 |
+
$select.on('select2:clear', function(e) {
|
3783 |
+
$(this).on('select2:opening.cancelOpen', function(e) {
|
3784 |
+
e.preventDefault();
|
3785 |
+
$(this).off("select2:opening.cancelOpen");
|
3786 |
+
});
|
3787 |
+
});
|
3788 |
+
|
3789 |
+
// bail early
|
3790 |
+
if (!field) {
|
3791 |
+
return;
|
3792 |
+
}
|
3793 |
+
|
3794 |
+
// add css class to dropdown with field name + key for developers <3
|
3795 |
if ($select.data('select2')) {
|
3796 |
|
3797 |
$select.data('select2').$dropdown
|
3801 |
|
3802 |
}
|
3803 |
|
3804 |
+
// search placeholder
|
3805 |
// only in single mode
|
3806 |
+
if (!field.get('multiple') && field.get('acfeSearchPlaceholder')) {
|
3807 |
|
3808 |
+
$select.on('select2:open', function(e) {
|
3809 |
+
$('.select2-search.select2-search--dropdown > .select2-search__field').attr('placeholder', field.get('acfeSearchPlaceholder'));
|
3810 |
+
});
|
|
|
|
|
|
|
|
|
|
|
3811 |
|
3812 |
}
|
3813 |
|
3815 |
|
3816 |
args: function(options, $select, data, field, instance) {
|
3817 |
|
3818 |
+
// bail early
|
3819 |
+
if (!field) {
|
3820 |
+
return options;
|
3821 |
+
}
|
3822 |
|
3823 |
+
// custom tags disallowed
|
3824 |
+
if (!field.get('acfeAllowCustom')) {
|
3825 |
+
return options;
|
3826 |
+
}
|
3827 |
|
3828 |
+
// allow custom tags
|
3829 |
+
options.tags = true;
|
3830 |
|
3831 |
+
// create tag
|
3832 |
+
options.createTag = function(params) {
|
3833 |
|
3834 |
+
var term = $.trim(params.term);
|
|
|
|
|
3835 |
|
3836 |
+
if (term === '') {
|
3837 |
+
return null;
|
3838 |
+
}
|
3839 |
|
3840 |
+
// vars
|
3841 |
+
var foundTerm;
|
3842 |
+
var ajaxResults = acf.isget(this, '_request', 'responseJSON', 'results');
|
3843 |
|
3844 |
+
// ajax results
|
3845 |
+
if (ajaxResults) {
|
3846 |
|
3847 |
+
loop: for (var item of ajaxResults) {
|
|
|
3848 |
|
3849 |
+
if (item.children) {
|
3850 |
+
for (var child of item.children) {
|
|
|
|
|
3851 |
|
3852 |
+
if (typeof child.id === 'string' && child.id.toLowerCase() === term.toLowerCase()) {
|
3853 |
+
foundTerm = true;
|
3854 |
+
break loop;
|
3855 |
}
|
|
|
3856 |
|
3857 |
+
}
|
3858 |
}
|
3859 |
|
|
|
3860 |
}
|
|
|
3861 |
|
3862 |
+
// normal results
|
3863 |
+
}
|
3864 |
+
else {
|
|
|
|
|
|
|
3865 |
|
3866 |
+
for (var option of this.$element.find('option')) {
|
3867 |
+
if (option.value.toLowerCase() === term.toLowerCase()) {
|
3868 |
+
foundTerm = true;
|
3869 |
+
break;
|
3870 |
+
}
|
3871 |
}
|
3872 |
|
3873 |
+
}
|
|
|
|
|
|
|
3874 |
|
3875 |
+
// found term
|
3876 |
+
if (foundTerm) {
|
3877 |
+
return null;
|
3878 |
+
}
|
|
|
3879 |
|
3880 |
+
// create tag
|
3881 |
+
return {
|
3882 |
+
id: term,
|
3883 |
+
text: term
|
3884 |
};
|
3885 |
|
3886 |
+
};
|
3887 |
|
3888 |
+
// insert tag
|
3889 |
+
options.insertTag = function(results, tag) {
|
3890 |
|
3891 |
+
var found;
|
|
|
|
|
|
|
|
|
|
|
3892 |
|
3893 |
+
for (var result of results) {
|
3894 |
+
if ($.trim(tag.text).toUpperCase() === $.trim(result.text).toUpperCase()) {
|
3895 |
+
found = true;
|
3896 |
+
break;
|
3897 |
}
|
3898 |
+
}
|
3899 |
|
3900 |
+
if (!found) {
|
3901 |
+
results.unshift(tag);
|
3902 |
+
}
|
3903 |
|
3904 |
+
};
|
3905 |
|
3906 |
return options;
|
3907 |
|
4045 |
|
4046 |
acf.registerFieldType(Textarea);
|
4047 |
|
4048 |
+
})(jQuery);
|
4049 |
+
(function($) {
|
4050 |
+
|
4051 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
4052 |
+
return;
|
4053 |
+
}
|
4054 |
+
|
4055 |
+
/**
|
4056 |
+
* Field: True/False
|
4057 |
+
*/
|
4058 |
+
var TrueFalse = acf.models.TrueFalseField;
|
4059 |
+
|
4060 |
+
acf.models.TrueFalseField = TrueFalse.extend({
|
4061 |
+
|
4062 |
+
// add setValue method
|
4063 |
+
// this allows to use field.val('new_value') to assign a new value to the field
|
4064 |
+
setValue: function(val) {
|
4065 |
+
|
4066 |
+
// clear value
|
4067 |
+
if (!val) {
|
4068 |
+
return this.clearValue();
|
4069 |
+
}
|
4070 |
+
|
4071 |
+
this.switchOn();
|
4072 |
+
this.trigger('change'); // trigger change for conditional logic
|
4073 |
+
|
4074 |
+
},
|
4075 |
+
|
4076 |
+
// add clearValue method
|
4077 |
+
// this allows to set the value to the first radio or if allow_null is enabled, to null
|
4078 |
+
clearValue: function() {
|
4079 |
+
|
4080 |
+
this.switchOff();
|
4081 |
+
this.trigger('change'); // trigger change for conditional logic
|
4082 |
+
|
4083 |
+
}
|
4084 |
+
|
4085 |
+
});
|
4086 |
+
|
4087 |
})(jQuery);
|
4088 |
(function($) {
|
4089 |
|
assets/js/acfe-input.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
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),function(n){var r,f;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(r={},acfe.registerFieldExtend=function(e){var t,t=(t=e,acfe.isEmpty(t.prototype.id)?acf.uniqueId("Extend"):t.prototype.id);r[t]=e},acfe.getExtendModels=function(){var e=[];for([c,n]of acfe.getEntries(r))if(acfe.isEmpty(n.prototype.dependencies)){var t,a,i=!1;for([t,a]of acfe.getEntries(r))if(acfe.inArray(c,a.prototype.dependencies)){i=!0;break}i||e.push(c)}var n,o={};for([c,n]of acfe.getEntries(r))acfe.inArray(c,e)||(o[c]=n.prototype.dependencies);var c,l={};for(c of f(o).concat(e))l[c]=r[c];return l},acfe.FieldExtend=acf.Model.extend({id:"",type:"",dependencies:[],conditions:function(){return!0},methods:[],replace:"replace",getMethods:function(){if(!1===this.methods)return[];var e=acfe.isEmpty(this.methods)?Object.keys(this):this.methods,t=["constructor","id","type","dependencies","conditions","methods","replace","getMethods","getObjReplace"];return e.filter(function(e){return!acfe.inArray(e,t)&&this.hasOwnProperty(e)},this)},getObjReplace:function(e=!1){var t=["append","replace","rewrite"];if(acfe.isString(this.replace)&&acfe.inArray(this.replace,t))return this.replace;if(acfe.isObject(this.replace))for(var[a,i]of acfe.getEntries(this.replace))if(a===e&&acfe.inArray(i,t))return i;return"replace"}}),new acf.Model({wait:"prepare",priority:5,initialize:function(){for(var[e,t]of acfe.getEntries(acfe.getExtendModels())){var a,i=t.prototype;for(a of acfe.getArray(i.type)){var n=acf.getFieldType(a);n&&this.extendModel(n,i)}}},extendModel:function(e,a){var i=e.prototype.setup;e.prototype.setup=function(e){if(i.apply(this,arguments),a.conditions.apply(this))for(var t of a.getMethods())if("setup"===t)a[t].apply(this,arguments);else if(acfe.isObject(a[t]))switch(a.getObjReplace(t)){case"append":this[t]=n.extend(!0,a[t],this[t]);break;case"replace":this[t]=n.extend(!0,{},this[t],a[t]);break;case"rewrite":this[t]=n.extend(!0,{},a[t])}else this[t]=a[t]}}}),f=function(e,i=e,t=[],a=0){const n=(e="object"==typeof e&&!Array.isArray(e)?Object.keys(e):e).reduce(function(e,t,a){return i[t].every(Array.prototype.includes,e)&&e.push(t),e},t);t=e.filter(function(e){return!n.includes(e)});return t.length&&a<=e.length?f(t,i,n,a+1):n})}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({actions:{new_field:"newField"},priority:1,validateField:function(e){return!!e.has("ftype")&&!acf.getFieldType(e.get("type")).prototype.get("ftype")},newField:function(e){this.validateField(e)&&(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(){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.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(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(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"),o=i.find("> .acf-fc-layout-handle"),c=o.find("> .acf-fc-layout-order").outerHTML(),t=acfe.getTextNode(o.find(".acfe-layout-title")),o=!!a.has("acfeFlexibleCloseButton")&&acf.__("Close");new acfe.Popup(n,{title:c+" "+t,class:"acfe-modal-edit-"+a.get("name")+" acfe-modal-edit-"+a.get("key")+" acfe-modal-edit-"+i.data("layout"),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(o){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acfe.FieldExtend.extend({type:"flexible_content",conditions:function(){return this.has("acfeFlexibleModal")&&1<this.$clones().length},onClickAdd:function(e,t){var a=this;if(!a.validateAdd())return!1;var i=this.getLayoutsCategories(),n=t.hasClass("acf-icon")?t.closest(".layout"):null;new acfe.Popup({title:a.get("acfeFlexibleModalTitle",acf.__("Add Row")),class:"acfe-modal-select-"+a.get("name")+" acfe-modal-select-"+a.get("key"),size:a.get("acfeFlexibleModalSize"),destroy:!0,events:{"click .acfe-flexible-categories a":"onClickCategory","click a[data-layout]":"onClickLayout"},content:function(){return'<div class="acfe-flex-container">'+a.getPopupHTML()+"</div>"},onOpen:function(){i&&this.$content().prepend(i),a.has("acfeFlexibleModalCol")&&this.$(".acfe-modal-content .acfe-flex-container").addClass("acfe-col-"+a.get("acfeFlexibleModalCol")),a.has("acfeFlexibleThumbnails")&&this.$(".acfe-modal-content .acfe-flex-container").addClass("acfe-flex-thumbnails");var e=acfe.versionCompare(acf.get("wp_version"),">=","5.5")?"dashicons-info-outline":"dashicons-info";this.$("li a span.badge").addClass("acf-js-tooltip dashicons "+e),this.$("li:first-of-type a").blur()},onClickCategory:function(e,t){e.preventDefault();var t=t,i=t.data("acfe-flexible-category");t.closest(".acfe-flexible-categories").find("a").removeClass("nav-tab-active"),t.addClass("nav-tab-active"),this.$("a[data-layout] span[data-acfe-flexible-category]").closest("li").show(),"acfe-all"!==i&&this.$("a[data-layout] span[data-acfe-flexible-category]").each(function(){var e,t=o(this),a=t.data("acfe-flexible-category");t.closest("li").hide();for(e of a)if(acfe.slugify(i)===acfe.slugify(e)){t.closest("li").show();break}})},onClickLayout:function(e,t){e.preventDefault(),this.close(),a.add({layout:t.data("layout"),before:n})}})},getLayoutsCategories:function(){var e=o(this.getPopupHTML()),t="",i=[];return e.find("li a span[data-acfe-flexible-category]").exists()&&(e.find("li a span[data-acfe-flexible-category]").each(function(){o(this).data("acfe-flexible-category").map(function(e){var t=acfe.slugify(e),a=i.filter(function(e){return e.slug===t});acfe.isEmpty(a)&&i.push({slug:t,label:e})})}),i.length&&(t+='<h2 class="acfe-flexible-categories nav-tab-wrapper">',t+='<a href="#" data-acfe-flexible-category="acfe-all" class="nav-tab nav-tab-active"><span class="dashicons dashicons-menu"></span></a>',i.sort().map(function(e){t+='<a href="#" data-acfe-flexible-category="'+e.label+'" class="nav-tab">'+e.label+"</a>"}),t+="</h2>")),t}}),acfe.registerFieldExtend(e))}(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(l){"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,i,n,o,c){return e=acf.applyFilters("select2_args/type="+o.get("type"),e,i,n,o,c),e=acf.applyFilters("select2_args/name="+o.get("name"),e,i,n,o,c),e=acf.applyFilters("select2_args/key="+o.get("key"),e,i,n,o,c),acf.isset(window,"jQuery","fn","selectWoo")||(e.templateSelection=function(e){var t=e.text,t=acf.applyFilters("select2_template_selection",t,e,i,n,o,c);t=acf.applyFilters("select2_template_selection/type="+o.get("type"),t,e,i,n,o,c),t=acf.applyFilters("select2_template_selection/name="+o.get("name"),t,e,i,n,o,c),t=acf.applyFilters("select2_template_selection/key="+o.get("key"),t,e,i,n,o,c);var a=l('<span class="acf-selection"></span>');return a.html(acf.escHtml(t)),a.data("element",e.element),a},e.templateResult=function(e){var t=e.text,t=acf.applyFilters("select2_template_result",t,e,i,n,o,c);t=acf.applyFilters("select2_template_result/type="+o.get("type"),t,e,i,n,o,c),t=acf.applyFilters("select2_template_result/name="+o.get("name"),t,e,i,n,o,c),t=acf.applyFilters("select2_template_result/key="+o.get("key"),t,e,i,n,o,c);var a=l('<span class="acf-selection"></span>');return a.html(acf.escHtml(t)),a.data("element",e.element),a}),e},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){l(this).on("select2:opening.cancelOpen",function(e){e.preventDefault(),l(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){l(".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,a=l.trim(e.term);if(""===a)return null;var i=acf.isget(this,"_request","responseJSON","results");if(i){e:for(var n of i)if(n.children)for(var o of n.children)if("string"==typeof o.id&&o.id.toLowerCase()===a.toLowerCase()){t=!0;break e}}else for(var c of this.$element.find("option"))if(c.value.toLowerCase()===a.toLowerCase()){t=!0;break}return t?null:{id:a,text:a}},e.insertTag=function(e,t){var a,i;for(i of e)if(l.trim(t.text).toUpperCase()===l.trim(i.text).toUpperCase()){a=!0;break}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),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=!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(){acf.isset(window,"wp","media","view","settings","post")&&(wp.media.view.settings.post=!1),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);
|
1 |
+
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),function(l){var i,r,f,n,o,c;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(i=[],acfe.FieldExtender=function(e){var t=acfe.extractVar(e,"id",acf.uniqueId("extender"));return e.type=acfe.getArray(e.type),e.dependencies=acfe.getArray(e.dependencies),e.extender=t,i.push(e),t},r=acf.Field.prototype.setup,acf.Field.prototype.setup=function(e){r.apply(this,arguments);var t=f(this);if(t.length){var a,i=Object.getPrototypeOf(this);this.extenders=[];for(a of t){this.extenders.push(a.extender);var n=l.extend(!0,{},a),o=acfe.extractVar(n,"events");acfe.extractVars(n,"type","condition","dependencies"),n.hasOwnProperty("setup")&&n.setup.apply(this,arguments);function c(){}c.prototype=Object.create(i),l.extend(c.prototype,n),o&&(c.prototype.events=l.extend(!0,{},c.prototype.events,o)),c.prototype.__parent__=i,i=c.prototype}this.getParent=function(e){for(var t=Object.getPrototypeOf(this);t;){if(t.extender===e)return t.__parent__;if(!t.__parent__)return t;t=t.__parent__}return t},Object.setPrototypeOf(this,i)}},f=function(e){var t,a=[];for(t of o(e))a.push(n(t));return a},n=function(e){for(var t of i)if(t.extender===e)return t;return!1},o=function(e){var t,a={};for(t of i)acfe.inArray(e.get("type"),t.type)&&(t.hasOwnProperty("condition")&&!t.condition.apply(e,arguments)||(a[t.extender]=t.dependencies));return c(a)},c=function(e,i=e,t=[],a=0){const n=(e="object"==typeof e&&!Array.isArray(e)?Object.keys(e):e).reduce(function(e,t,a){return i[t].every(Array.prototype.includes,e)&&e.push(t),e},t);t=e.filter(function(e){return!n.includes(e)});return t.length&&a<=e.length?c(t,i,n,a+1):n})}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({actions:{new_field:"newField"},priority:1,validateField:function(e){return!!e.has("ftype")&&!acf.getFieldType(e.get("type")).prototype.get("ftype")},newField:function(e){this.validateField(e)&&(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="'+acf.escHtml(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="'+acf.escHtml(a.html())+'"></span>')),a.remove())}})}(jQuery),function(n){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({actions:{new_field:"newField"},getFieldType:function(e){return e.get("rtype",e.get("type"))},validateField:function(e){return!!e.has("acfeLabels")&&("checkbox"===this.getFieldType(e)||"radio"===this.getFieldType(e))},newField:function(e){if(this.validateField(e)){var t,a,i=e.get("acfeLabels");switch(this.getFieldType(e)){case"checkbox":for(t in i)a=i[t],e.$control().find('input[type=checkbox][value="'+a+'"]').closest("ul").before("<strong>"+t+"</strong>");break;case"radio":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),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acf.Field.prototype.getModal=function(e){var t=acfe.findModal("",this.$inputWrap());return!!t.length&&acfe.getModal(t,e)}),function(l){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({actions:{select2_init:"init"},filters:{select2_args:"args",select2_ajax_data:"ajaxData"},init:function(e,t,a,i,n){i&&(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,i,n,o,c){return o&&(e=acf.applyFilters("select2_args/type="+o.get("type"),e,i,n,o,c),e=acf.applyFilters("select2_args/name="+o.get("name"),e,i,n,o,c),e=acf.applyFilters("select2_args/key="+o.get("key"),e,i,n,o,c),acf.isset(window,"jQuery","fn","selectWoo")||(e.templateSelection=function(e){var t=e.text,t=acf.applyFilters("select2_template_selection",t,e,i,n,o,c);t=acf.applyFilters("select2_template_selection/type="+o.get("type"),t,e,i,n,o,c),t=acf.applyFilters("select2_template_selection/name="+o.get("name"),t,e,i,n,o,c),t=acf.applyFilters("select2_template_selection/key="+o.get("key"),t,e,i,n,o,c);var a=l('<span class="acf-selection"></span>');return a.html(acf.escHtml(t)),a.data("element",e.element),a},e.templateResult=function(e){var t=e.text,t=acf.applyFilters("select2_template_result",t,e,i,n,o,c);t=acf.applyFilters("select2_template_result/type="+o.get("type"),t,e,i,n,o,c),t=acf.applyFilters("select2_template_result/name="+o.get("name"),t,e,i,n,o,c),t=acf.applyFilters("select2_template_result/key="+o.get("key"),t,e,i,n,o,c);var a=l('<span class="acf-selection"></span>');return a.html(acf.escHtml(t)),a.data("element",e.element),a},acfe.versionCompare(acf.get("acf_version"),"<","5.10")&&(e.escapeMarkup=function(e){return"string"!=typeof e?e:acf.escHtml(e)}))),e},ajaxData:function(e,t,a,i,n){return i?(e=acf.applyFilters("select2_ajax_data/type="+i.get("type"),e,t,a,i,n),e=acf.applyFilters("select2_ajax_data/name="+i.get("name"),e,t,a,i,n),(e=acf.applyFilters("select2_ajax_data/key="+i.get("key"),e,t,a,i,n)).action?acf.applyFilters("select2_ajax_data/action="+e.action,e,t,a,i,n):e):e}})}(jQuery),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")},getSubField:function(e){return acf.getFields({key:e,parent:this.$el}).shift()},getSubFields:function(){return acf.getFields({parent:this.$el})},getValue:function(){var e={type:this.getSubField("type").val(),title:this.getSubField("title").val(),value:"",name:"",target:Boolean(this.getSubField("target").val())};return e.value=this.getSubField(e.type).val(),e.name=e.value,"post"!==e.type&&"term"!==e.type||(e.name=this.getSubField(e.type).$input().find(":selected").text()),e},setValue:function(e){if(!e)return this.clearValue();acfe.isString(e)&&(e={type:"url",title:"",value:e,target:!1}),e=acf.parseArgs(e,{type:"url",value:"",title:"",target:!1}),this.getSubField("type").val(e.type),this.getSubField(e.type).val(e.value),this.getSubField("title").val(e.title),this.getSubField("target").val(e.target),this.renderValue()},clearValue:function(){this.getSubFields().map(function(e){e.val("")})},renderValue:function(){var e=this.val(),t=this.$control();t.removeClass("-value -external"),(e.value||e.title)&&t.addClass("-value"),e.target&&t.addClass("-external");t="url"===e.type?e.value:"#";this.$(".link-title").html(e.title),this.$(".link-url").attr("href",t).html(e.name)},onClickEdit:function(e,t){this.getModal({open:!0,onClose:this.proxy(function(){this.renderValue()})})},onClickRemove:function(e,t){this.clearValue(),this.renderValue()}}),acf.registerFieldType(e),new acf.Model({filters:{"select2_ajax_data/action=acfe/fields/advanced_link/post_query":"ajaxData"},ajaxData:function(e,t,a,i,n){i=i.parent();return i&&(e.field_key=i.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),function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acf.models.CheckboxField,acf.models.CheckboxField=e.extend({setValue:function(e){if(!e)return this.clearValue();acfe.getArray(e).map(function(e){e=this.$(':checkbox[value="'+e+'"]');e.length&&!e.is(":checked")&&e.prop("checked",!0).trigger("change")},this)},clearValue:function(){var e=this.$inputs(),t=this.$("label");e.prop("checked",!1),t.removeClass("selected")}}))}(jQuery),function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acf.Field.extend({wait:!1,type:"clone",events:{duplicateField:"onDuplicate"},initialize:function(){this.has("acfeCloneModal")&&(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 href="#" class="acf-button button" data-modal>'+this.get("acfeCloneModalButton")+"</a>"),this.initializeModal())},initializeModal:function(){var e,t=this.$labelWrap().find("label").text().trim();this.$el.is("td")&&(t=this.get("acfeCloneModalButton"),(e=this.$el.closest("table").find(' > thead th[data-key="'+this.get("key")+'"]')).length&&(t=acfe.getTextNode(e))),t.length||(t=this.get("acfeCloneModalButton")),this.getModal({title:t,size:this.has("acfeCloneModalSize")?this.get("acfeCloneModalSize"):"large",footer:!!this.has("acfeCloneModalClose")&&acf.__("Close"),class:"acfe-modal-edit-"+this.get("name")+" acfe-modal-edit-"+this.get("key")})},onDuplicate:function(e,t,a){a.find(".acf-input:first > a[data-modal]").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(t){var a;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(a=acf.models.FlexibleContentField,acf.models.FlexibleContentField=a.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")}})},add:function(e){var t=a.prototype.add.apply(this,arguments);t.length&&t.data("added",!0)}}),new acf.Model({actions:{invalid_field:"onInvalidField",valid_field:"onValidField"},onInvalidField:function(e){e.$el.parents(".layout").addClass("acfe-flexible-modal-edit-error")},onValidField:function(e){e.$el.parents(".layout").each(function(){var e=t(this);e.find(".acf-error").length||e.removeClass("acfe-flexible-modal-edit-error")})}}))}(jQuery),function(i){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acfe.FieldExtender({id:"fc_append",type:"flexible_content",initialize:function(){this.getParent(e).initialize.apply(this,arguments),this.addEvents({appendLayout:"acfeAppendLayout"})},acfeAppendLayout:function(e,t,a){a.is(".acfe-layout-duplicated")||(this.has("acfeFlexibleModalEdition")?this.acfeModalEdit(null,a):this.openLayout(a));var i=acfe.getModal(a.closest(".acfe-modal.-open"));i?this.acfeScrollToLayout(a,i.$content()):a.is(".acfe-layout-duplicated")?this.acfeScrollToLayout(a):this.setTimeout(function(){a.data("added")&&this.acfeScrollToLayout(a)},10)},acfeScrollToLayout:function(e,t){var a=t||!1;t=t||i("body, html"),acf.isInView(e)||(e=a?e.position().top:e.offset().top-i(window).height()/2,t.animate({scrollTop:e},500))}}))}(jQuery),function(o){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&acfe.FieldExtender({id:"fc_async",type:"flexible_content",condition:function(){return this.has("acfeFlexibleAjax")},add:function(n){if(n=acf.parseArgs(n,{layout:"",before:!1}),!this.allowAdd())return!1;var e={action:"acfe/flexible/models",field_key:this.get("key"),layout:n.layout},t=this.proxy(function(e){if(e){var t=o(e),a=acf.uniqid(),i="acf["+this.get("key")+"][acfcloneindex]",e=this.$control().find("> input[type=hidden]").attr("name")+"["+a+"]",e=acf.duplicate({target:t,search:i,replace:e,append:this.proxy(function(e,t){n.before?n.before.before(t):this.$layoutsWrap().append(t),acf.enable(t,this.cid),this.render()})});return e.attr("data-id",a),this.$input().trigger("change"),e}});o.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(e),dataType:"html",type:"post",beforeSend:function(){o("body").addClass("-loading")},success:t,complete:function(){o("body").removeClass("-loading")}})}})}(jQuery),function(r){var n;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&((n=acf.getFieldType("flexible_content").prototype).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>')})})}(jQuery),function(t){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({actions:{"new_field/type=flexible_content":"newField",show:"onShow",hide:"onHide",append:"onAppend"},newField:function(e){e.addEvents({"click .acfe-fc-placeholder":"onClickCollapse"}),e.addEvents({"click .acfe-flexible-opened-actions > a":"onClickCollapse"}),e.has("acfeFlexibleModalEdition")&&(e.has("acfeFlexiblePlaceholder")||e.has("acfeFlexiblePreview"))&&(e.removeEvents({'click [data-name="collapse-layout"]':"onClickCollapse"}),e.removeEvents({"click .acfe-fc-placeholder":"onClickCollapse"})),e.has("acfeFlexibleLock")&&e.removeEvents({mouseover:"onHover"}),e.$layouts().each(function(){e.trigger("newLayout",[t(this)])})},onShow:function(e,t){"collapse"===t&&e.is(".layout")&&acf.getClosestField(e).trigger("showLayout",[e])},onHide:function(e,t){"collapse"===t&&e.is(".layout")&&!e.is(".acf-clone")&&acf.getClosestField(e).trigger("hideLayout",[e])},onAppend:function(e){var t;e.is(".layout")&&((t=acf.getClosestField(e)).trigger("newLayout",[e]),t.trigger("appendLayout",[e]))}})}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&acfe.FieldExtender({id:"fc_modal_edit",type:"flexible_content",events:{'click [data-action="acfe-flexible-modal-edit"]':"acfeModalEdit"},acfeModalEdit:function(e,t){var a=t.closest(".layout"),i=a.find("> .acfe-modal.-fields"),n=a.find("> .acf-fc-layout-handle"),t=n.find("> .acf-fc-layout-order").outerHTML(),n=acfe.getTextNode(n.find(".acfe-layout-title"));acfe.getModal(i,{open:!0,title:t+n,onOpen:this.proxy(function(){this.openLayout(a)}),onClose:this.proxy(function(){this.closeLayout(a)})})}}),function(o){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&acfe.FieldExtender({id:"fc_modal_select",type:"flexible_content",condition:function(){return this.has("acfeFlexibleModal")&&1<this.$clones().length},onClickAdd:function(e,t){var a=this;if(!a.validateAdd())return!1;var i=this.getLayoutsCategories(),n=t.hasClass("acf-icon")?t.closest(".layout"):null;acfe.newModal({title:a.get("acfeFlexibleModalTitle",acf.__("Add Row")),class:"acfe-modal-select-"+a.get("name")+" acfe-modal-select-"+a.get("key"),size:a.get("acfeFlexibleModalSize"),destroy:!0,events:{"click .acfe-flexible-categories a":"onClickCategory","click a[data-layout]":"onClickLayout"},content:function(){return'<div class="acfe-flex-container">'+a.getPopupHTML()+"</div>"},onOpen:function(){i&&this.$content().prepend(i),a.has("acfeFlexibleModalCol")&&this.$(".acfe-modal-content .acfe-flex-container").addClass("acfe-col-"+a.get("acfeFlexibleModalCol")),a.has("acfeFlexibleThumbnails")&&this.$(".acfe-modal-content .acfe-flex-container").addClass("acfe-flex-thumbnails");var e=acfe.versionCompare(acf.get("wp_version"),">=","5.5")?"dashicons-info-outline":"dashicons-info";this.$("li a span.badge").addClass("acf-js-tooltip dashicons "+e),this.$("li:first-of-type a").blur()},onClickCategory:function(e,t){e.preventDefault();var t=t,i=t.data("acfe-flexible-category");t.closest(".acfe-flexible-categories").find("a").removeClass("nav-tab-active"),t.addClass("nav-tab-active"),this.$("a[data-layout] span[data-acfe-flexible-category]").closest("li").show(),"acfe-all"!==i&&this.$("a[data-layout] span[data-acfe-flexible-category]").each(function(){var e,t=o(this),a=t.data("acfe-flexible-category");t.closest("li").hide();for(e of a)if(acfe.slugify(i)===acfe.slugify(e)){t.closest("li").show();break}})},onClickLayout:function(e,t){e.preventDefault(),this.close(),a.add({layout:t.data("layout"),before:n})}})},getLayoutsCategories:function(){var e=o(this.getPopupHTML()),t="",i=[];return e.find("li a span[data-acfe-flexible-category]").exists()&&(e.find("li a span[data-acfe-flexible-category]").each(function(){o(this).data("acfe-flexible-category").map(function(e){var t=acfe.slugify(e),a=i.filter(function(e){return e.slug===t});acfe.isEmpty(a)&&i.push({slug:t,label:e})})}),i.length&&(t+='<h2 class="acfe-flexible-categories nav-tab-wrapper">',t+='<a href="#" data-acfe-flexible-category="acfe-all" class="nav-tab nav-tab-active"><span class="dashicons dashicons-menu"></span></a>',i.sort().map(function(e){t+='<a href="#" data-acfe-flexible-category="'+e.label+'" class="nav-tab">'+e.label+"</a>"}),t+="</h2>")),t}})}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&acfe.FieldExtender({id:"fc_modal_settings",type:"flexible_content",events:{"click [data-acfe-flexible-settings]":"acfeLayoutSettings"},acfeLayoutSettings:function(e,t){var a=t.closest(".layout"),i=a.find("> .acfe-modal.-settings"),n=a.find("> .acf-fc-layout-handle"),t=n.find("> .acf-fc-layout-order").outerHTML(),n=acfe.getTextNode(n.find(".acfe-layout-title"));acfe.getModal(i,{open:!0,title:t+n,onClose:this.proxy(function(){this.has("acfeFlexiblePreview")&&this.closeLayout(a)})})}}),function(n){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&acfe.FieldExtender({id:"fc_one_click",type:"flexible_content",condition:function(){return 1===this.$clones().length},onClickAdd:function(e,t){if(!this.validateAdd())return!1;var a=this.$clones(),i=n(a[0]).data("layout"),a=null;t.hasClass("acf-icon")&&(a=t.closest(".layout")),this.add({layout:i,before:a});a=n(".acf-fc-popup");a.length&&a.hide()}})}(jQuery),function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acfe.FieldExtender({id:"fc_placeholder",type:"flexible_content",condition:function(){return this.has("acfeFlexiblePlaceholder")},initialize:function(){this.getParent(e).initialize.apply(this,arguments),this.addEvents({showLayout:"acfePlaceholderShowLayout",hideLayout:"acfePlaceholderHideLayout",newLayout:"acfePlaceholderNewLayout"})},acfePlaceholderShowLayout:function(e,t,a){this.has("acfeFlexibleModalEdition")||acf.hide(a.find("> .acfe-fc-placeholder"))},acfePlaceholderHideLayout:function(e,t,a){acf.show(a.find("> .acfe-fc-placeholder"))},acfePlaceholderNewLayout:function(e,t,a){this.isLayoutClosed(a)&&acf.show(a.find("> .acfe-fc-placeholder"))}}))}(jQuery),function(f){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&acfe.FieldExtender({id:"fc_preview",type:"flexible_content",condition:function(){return this.has("acfeFlexiblePreview")},events:{hideLayout:"acfePreviewHideLayout",appendLayout:"acfePreviewAppendLayout"},acfeLayoutPreview:function(t){var a,i,n,o,e,c,l,r;this.isLayoutClosed(t)&&!t.find("> .acfe-fc-placeholder").hasClass("-loading")&&(a=this.get("key"),i=this.get("name"),n=this.$el,o=t.data("layout"),e=t.index(),(c=t.find("> .acfe-fc-placeholder")).addClass("acfe-fc-preview -loading").find("> .acfe-flexible-placeholder").prepend('<span class="spinner"></span>'),c.find("> .acfe-fc-overlay").addClass("-hover"),l=t.children("input").attr("name").replace("[acf_fc_layout]",""),r={action:"acfe/flexible/layout_preview",field_key:a,i:e,layout:o,value:acf.serialize(t,l)},acf.doAction("acfe/fields/flexible_content/before_preview",n,t,r),acf.doAction("acfe/fields/flexible_content/before_preview/name="+i,n,t,r),acf.doAction("acfe/fields/flexible_content/before_preview/key="+a,n,t,r),acf.doAction("acfe/fields/flexible_content/before_preview/name="+i+"&layout="+o,n,t,r),acf.doAction("acfe/fields/flexible_content/before_preview/key="+a+"&layout="+o,n,t,r),f.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(r),dataType:"html",type:"post",success:function(e){e?c.find("> .acfe-flexible-placeholder").html(e):c.removeClass("acfe-fc-preview"),acf.doAction("acfe/fields/flexible_content/preview",e,n,t,r),acf.doAction("acfe/fields/flexible_content/preview/name="+i,e,n,t,r),acf.doAction("acfe/fields/flexible_content/preview/key="+a,e,n,t,r),acf.doAction("acfe/fields/flexible_content/preview/name="+i+"&layout="+o,e,n,t,r),acf.doAction("acfe/fields/flexible_content/preview/key="+a+"&layout="+o,e,n,t,r)},complete:function(){c.find("> .acfe-fc-overlay").removeClass("-hover"),c.removeClass("-loading").find("> .acfe-flexible-placeholder > .spinner").remove()}}))},acfePreviewHideLayout:function(e,t,a){this.acfeLayoutPreview(a)},acfePreviewAppendLayout:function(e,t,a){this.acfeLayoutPreview(a)}})}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&acfe.FieldExtender({id:"fc_state",type:"flexible_content",condition:function(){return this.has("acfeFlexibleOpen")},addCollapsed:function(){}}),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&acfe.FieldExtender({id:"fc_title_ajax",type:"flexible_content",condition:function(){return this.has("acfeFlexibleRemoveAjaxTitle")},renderLayout:function(){}}),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&acfe.FieldExtender({id:"fc_title_inline",type:"flexible_content",condition:function(){return this.has("acfeFlexibleTitleEdition")},events:{"click .acf-fc-layout-handle":"acfeEditLayoutTitleToggleHandle","click .acfe-layout-title-text":"acfeEditLayoutTitle","blur input.acfe-flexible-control-title":"acfeEditLayoutTitleToggle","click input.acfe-flexible-control-title":"acfeEditLayoutTitlePropagation","input [data-acfe-flexible-control-title-input]":"acfeEditLayoutTitleInput","keypress [data-acfe-flexible-control-title-input]":"acfeEditLayoutTitleInputEnter"},acfeEditLayoutTitleToggleHandle:function(e,t){t=t.closest(".layout");t.hasClass("acfe-flexible-title-edition")&&t.find("> .acf-fc-layout-handle > .acfe-layout-title > input.acfe-flexible-control-title").trigger("blur")},acfeEditLayoutTitle:function(e,t){e.stopPropagation(),this.acfeEditLayoutTitleToggle(e,t)},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))},acfeEditLayoutTitlePropagation:function(e,t){e.stopPropagation()},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)},acfeEditLayoutTitleInputEnter:function(e,t){13===e.keyCode&&(e.preventDefault(),t.blur())}}),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&acfe.FieldExtender({id:"fc_toggle",type:"flexible_content",condition:function(){return this.has("acfeFlexibleToggle")},events:{"click [data-acfe-flexible-control-toggle]":"acfeLayoutToggle"},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")))}}),function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acf.Field.extend({wait:!1,type:"group",events:{duplicateField:"onDuplicate"},initialize:function(){this.has("acfeGroupModal")&&(this.$inputWrap().find("> .acf-fields, > .acf-table").wrapAll('<div class="acfe-modal"><div class="acfe-modal-wrapper"><div class="acfe-modal-content"></div></div></div>'),this.$inputWrap().append('<a href="#" class="acf-button button" data-modal>'+this.get("acfeGroupModalButton")+"</a>"),this.initializeModal())},initializeModal:function(){var e,t=this.$labelWrap().find("label").text().trim();this.$el.is("td")&&(t=this.get("acfeGroupModalButton"),(e=this.$el.closest("table").find(' > thead th[data-key="'+this.get("key")+'"]')).length&&(t=acfe.getTextNode(e))),t.length||(t=this.get("acfeGroupModalButton")),this.getModal({title:t,size:this.has("acfeGroupModalSize")?this.get("acfeGroupModalSize"):"large",footer:!!this.has("acfeGroupModalClose")&&acf.__("Close"),class:"acfe-modal-edit-"+this.get("name")+" acfe-modal-edit-"+this.get("key")})},onDuplicate:function(e,t,a){a.find(".acf-input:first > a[data-modal]").remove()}}),acf.registerFieldType(e))}(jQuery),function(){var e;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(e=acf.models.RadioField,acf.models.RadioField=e.extend({setValue:function(e){if(!e)return this.clearValue();e=this.$(':radio[value="'+e+'"]');e.length&&!e.is(":checked")&&(e.prop("checked",!0).trigger("change"),this.onClick(null,e))},clearValue:function(){this.get("allow_null")?this.$input().length&&this.onClick(null,this.$input()):this.val(this.$(":radio").first().val())}}))}(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(l){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({actions:{"new_field/type=select":"newSelect",select2_init:"init"},filters:{select2_args:"args"},newSelect: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.on("select2:clear",function(e){l(this).on("select2:opening.cancelOpen",function(e){e.preventDefault(),l(this).off("select2:opening.cancelOpen")})}),i&&(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){l(".select2-search.select2-search--dropdown > .select2-search__field").attr("placeholder",i.get("acfeSearchPlaceholder"))}))},args:function(e,t,a,i,n){return i&&i.get("acfeAllowCustom")&&(e.tags=!0,e.createTag=function(e){var t,a=l.trim(e.term);if(""===a)return null;var i=acf.isget(this,"_request","responseJSON","results");if(i){e:for(var n of i)if(n.children)for(var o of n.children)if("string"==typeof o.id&&o.id.toLowerCase()===a.toLowerCase()){t=!0;break e}}else for(var c of this.$element.find("option"))if(c.value.toLowerCase()===a.toLowerCase()){t=!0;break}return t?null:{id:a,text:a}},e.insertTag=function(e,t){var a,i;for(i of e)if(l.trim(t.text).toUpperCase()===l.trim(i.text).toUpperCase()){a=!0;break}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.TrueFalseField,acf.models.TrueFalseField=e.extend({setValue:function(e){if(!e)return this.clearValue();this.switchOn(),this.trigger("change")},clearValue:function(){this.switchOff(),this.trigger("change")}}))}(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),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=!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(){acf.isset(window,"wp","media","view","settings","post")&&(wp.media.view.settings.post=!1),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.js
CHANGED
@@ -32,6 +32,70 @@
|
|
32 |
};
|
33 |
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
/**
|
36 |
* acfe.getEntries
|
37 |
*
|
@@ -121,14 +185,14 @@
|
|
121 |
* acfe.arrayHas
|
122 |
*
|
123 |
* Check array/object has key using dot notation
|
124 |
-
* '!!
|
125 |
*
|
126 |
* @param obj
|
127 |
* @param path
|
128 |
* @returns {*}
|
129 |
*/
|
130 |
acfe.arrayHas = function(obj, path) {
|
131 |
-
return acfe.arrayGet(obj, path, '!!
|
132 |
}
|
133 |
|
134 |
|
@@ -238,7 +302,7 @@
|
|
238 |
/**
|
239 |
* acfe.arrayPluck
|
240 |
*
|
241 |
-
* '!!
|
242 |
*
|
243 |
* @param obj
|
244 |
* @param path
|
@@ -265,10 +329,10 @@
|
|
265 |
// loop
|
266 |
for (var row of obj) {
|
267 |
|
268 |
-
var result = acfe.arrayGet(row, path, '!!
|
269 |
|
270 |
// bail early
|
271 |
-
if (result === '!!
|
272 |
continue;
|
273 |
}
|
274 |
|
@@ -276,9 +340,9 @@
|
|
276 |
collect.push(result);
|
277 |
|
278 |
if (id) {
|
279 |
-
var key = acfe.arrayGet(row, idPath, '!!
|
280 |
|
281 |
-
if (key !== '!!
|
282 |
idObj[key] = result;
|
283 |
}
|
284 |
}
|
@@ -362,8 +426,8 @@
|
|
362 |
* @param def
|
363 |
* @returns {*|null}
|
364 |
*/
|
365 |
-
acfe.get = function(name, def = null) {
|
366 |
-
return acf.data.acfe
|
367 |
};
|
368 |
|
369 |
|
@@ -374,7 +438,7 @@
|
|
374 |
* @returns {boolean}
|
375 |
*/
|
376 |
acfe.has = function(name) {
|
377 |
-
return
|
378 |
};
|
379 |
|
380 |
|
@@ -386,10 +450,98 @@
|
|
386 |
* @returns {acfe}
|
387 |
*/
|
388 |
acfe.set = function(name, value) {
|
389 |
-
acf.data.acfe
|
390 |
return this;
|
391 |
};
|
392 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
})(jQuery);
|
394 |
(function($) {
|
395 |
|
@@ -470,7 +622,9 @@
|
|
470 |
/**
|
471 |
* find_fields_selector
|
472 |
*
|
473 |
-
*
|
|
|
|
|
474 |
*/
|
475 |
acf.addFilter('find_fields_selector', function(selector, args) {
|
476 |
|
@@ -647,84 +801,395 @@
|
|
647 |
}
|
648 |
|
649 |
/**
|
650 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
651 |
*/
|
652 |
-
acfe.
|
653 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
654 |
};
|
655 |
|
656 |
-
|
657 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
658 |
};
|
659 |
|
660 |
-
|
661 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
662 |
};
|
663 |
|
664 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
665 |
|
666 |
data: {
|
|
|
667 |
title: '',
|
668 |
content: '',
|
669 |
footer: '',
|
670 |
class: '',
|
671 |
-
size: '',
|
672 |
-
|
673 |
destroy: false,
|
674 |
events: {},
|
675 |
onOpen: function() {},
|
676 |
onClose: function() {},
|
677 |
},
|
678 |
|
|
|
|
|
679 |
events: {
|
680 |
-
'
|
681 |
-
'click
|
682 |
},
|
683 |
|
684 |
-
|
685 |
|
686 |
-
|
687 |
-
|
688 |
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
$el = $($el);
|
693 |
-
}
|
694 |
|
695 |
-
|
696 |
-
this.$el = $el;
|
697 |
|
698 |
-
|
699 |
-
} else {
|
700 |
|
701 |
-
|
702 |
-
args = $el;
|
703 |
|
704 |
-
// set el
|
705 |
-
|
|
|
706 |
|
707 |
}
|
708 |
|
709 |
-
//
|
710 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
711 |
|
712 |
// render
|
|
|
713 |
this.render();
|
714 |
|
715 |
},
|
716 |
|
717 |
initialize: function() {
|
718 |
|
719 |
-
this.
|
720 |
-
|
721 |
-
if (this.get('autoOpen')) {
|
722 |
-
this.open();
|
723 |
-
}
|
724 |
|
725 |
},
|
726 |
|
727 |
-
|
728 |
|
729 |
if (!this.get('events')) {
|
730 |
return;
|
@@ -771,152 +1236,132 @@
|
|
771 |
|
772 |
},
|
773 |
|
774 |
-
|
775 |
-
return this.$('> .acfe-modal-wrapper');
|
776 |
-
},
|
777 |
-
|
778 |
-
$title: function(val) {
|
779 |
|
780 |
-
//
|
781 |
-
|
782 |
-
return this.$wrapper().find('> .acfe-modal-title > .title').html(val);
|
783 |
-
}
|
784 |
|
785 |
-
|
786 |
-
|
787 |
|
788 |
-
|
|
|
|
|
|
|
789 |
|
790 |
-
//
|
791 |
-
|
792 |
-
|
|
|
793 |
}
|
794 |
|
795 |
-
|
|
|
|
|
796 |
},
|
797 |
|
798 |
-
|
799 |
|
800 |
-
|
801 |
-
if (val !== undefined) {
|
802 |
-
return this.$wrapper().find('> .acfe-modal-footer').html(val);
|
803 |
-
}
|
804 |
|
805 |
-
|
806 |
-
|
807 |
|
808 |
-
$overlay: function() {
|
809 |
-
return this.$wrapper().find('> .acfe-modal-wrapper-overlay');
|
810 |
},
|
811 |
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
this.$el.addClass('-' + this.get('size'));
|
816 |
}
|
|
|
817 |
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
|
|
|
|
|
822 |
},
|
823 |
|
824 |
-
|
825 |
-
|
826 |
-
this.$el.wrapInner('<div class="acfe-modal-wrapper" />');
|
827 |
-
}
|
828 |
},
|
829 |
|
830 |
-
|
831 |
-
|
|
|
832 |
|
833 |
-
|
834 |
-
this.$wrapper().prepend('<div class="acfe-modal-title"><span class="title"></span><button class="close"></button></div>');
|
835 |
-
}
|
836 |
|
837 |
-
|
838 |
-
|
839 |
-
} else {
|
840 |
-
this.$title(this.get('title'));
|
841 |
-
}
|
842 |
}
|
843 |
-
},
|
844 |
|
845 |
-
setupContent: function() {
|
846 |
if (!this.$content().length) {
|
847 |
-
this.$wrapper().wrapInner('<div class="acfe-modal-content"
|
848 |
}
|
849 |
|
850 |
-
if (this.get('content')) {
|
851 |
-
|
852 |
-
if (typeof this.get('content') === 'function') {
|
853 |
-
this.$content(this.get('content').apply(this));
|
854 |
-
} else {
|
855 |
-
this.$content(this.get('content'));
|
856 |
-
}
|
857 |
-
}
|
858 |
},
|
859 |
|
860 |
-
|
861 |
|
862 |
-
|
|
|
|
|
863 |
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
this.$footer('<button class="button button-primary close">' + this.get('footer') + '</button>');
|
872 |
-
}
|
873 |
|
|
|
|
|
874 |
}
|
875 |
|
876 |
-
|
|
|
|
|
877 |
|
878 |
-
|
879 |
-
if (
|
880 |
-
this.$wrapper().prepend('<div class="acfe-modal-wrapper-overlay" />');
|
881 |
-
}
|
882 |
-
},
|
883 |
|
884 |
-
|
|
|
885 |
|
886 |
-
// hide TinyMCE dropdown when scroll modal (fix position issues)
|
887 |
-
if (typeof tinymce !== 'undefined' && acf.isset(tinymce, 'ui', 'FloatPanel')) {
|
888 |
-
this.$content().off('scroll.tinymcePanel').on('scroll.tinymcePanel', function(e) {
|
889 |
-
tinymce.ui.FloatPanel.hideAll();
|
890 |
-
});
|
891 |
}
|
892 |
|
|
|
|
|
|
|
|
|
893 |
},
|
894 |
|
895 |
-
|
896 |
|
897 |
-
//
|
898 |
-
|
899 |
-
parent: this.$el,
|
900 |
-
visible: true,
|
901 |
-
});
|
902 |
|
903 |
-
//
|
904 |
-
|
905 |
-
acf.doAction('show_field', field, 'group');
|
906 |
-
}, this);
|
907 |
|
908 |
-
|
|
|
|
|
909 |
|
910 |
-
|
|
|
|
|
911 |
|
912 |
-
//
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
this.setupTinymce();
|
920 |
|
921 |
},
|
922 |
|
@@ -925,9 +1370,6 @@
|
|
925 |
// add class
|
926 |
this.$el.addClass('-open');
|
927 |
|
928 |
-
// push to popus storage
|
929 |
-
modalManager.addPopup(this);
|
930 |
-
|
931 |
// action
|
932 |
acf.doAction('acfe/modal/open', this);
|
933 |
|
@@ -937,9 +1379,6 @@
|
|
937 |
// event
|
938 |
this.trigger('open');
|
939 |
|
940 |
-
// setup fields
|
941 |
-
this.setupFields();
|
942 |
-
|
943 |
},
|
944 |
|
945 |
close: function() {
|
@@ -948,8 +1387,6 @@
|
|
948 |
this.$el.removeAttr('style');
|
949 |
this.$el.removeClass('-open');
|
950 |
|
951 |
-
modalManager.removePopup(this);
|
952 |
-
|
953 |
// action
|
954 |
acf.doAction('acfe/modal/close', this);
|
955 |
|
@@ -959,6 +1396,8 @@
|
|
959 |
// event
|
960 |
this.trigger('close');
|
961 |
|
|
|
|
|
962 |
// destroy
|
963 |
if (this.get('destroy')) {
|
964 |
this.remove();
|
@@ -975,127 +1414,144 @@
|
|
975 |
|
976 |
});
|
977 |
|
|
|
978 |
/**
|
979 |
-
*
|
|
|
|
|
|
|
980 |
*/
|
981 |
-
acfe.
|
982 |
-
|
983 |
-
// close last popup
|
984 |
-
if (instance === undefined) {
|
985 |
-
return modalManager.closeLastPopup();
|
986 |
-
}
|
987 |
-
|
988 |
-
var popup;
|
989 |
-
|
990 |
-
// jQuery element
|
991 |
-
if (instance instanceof jQuery) {
|
992 |
-
|
993 |
-
popup = acfe.getPopup(instance);
|
994 |
-
if (popup) {
|
995 |
-
popup.close();
|
996 |
-
}
|
997 |
-
|
998 |
-
// jQuery selector
|
999 |
-
} else if (typeof instance === 'string') {
|
1000 |
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
popup.close();
|
1005 |
-
}
|
1006 |
|
1007 |
-
//
|
1008 |
-
} else {
|
1009 |
|
1010 |
-
|
1011 |
-
|
|
|
1012 |
}
|
1013 |
|
1014 |
}
|
1015 |
|
1016 |
};
|
1017 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1018 |
var modalManager = new acf.Model({
|
1019 |
|
1020 |
-
|
|
|
|
|
|
|
1021 |
|
1022 |
events: {
|
1023 |
'click .acfe-modal-overlay': 'onClick',
|
1024 |
'keydown': 'onKeydown',
|
1025 |
},
|
1026 |
|
1027 |
-
|
1028 |
|
1029 |
-
|
1030 |
-
|
|
|
1031 |
|
1032 |
},
|
1033 |
|
1034 |
-
|
1035 |
-
if (e.keyCode === 27 && $('body').hasClass('acfe-modal-opened')) {
|
1036 |
-
e.preventDefault();
|
1037 |
-
this.closeLastPopup();
|
1038 |
-
}
|
1039 |
-
},
|
1040 |
|
1041 |
-
|
1042 |
|
1043 |
-
|
1044 |
-
this.syncPopups();
|
1045 |
|
1046 |
-
if (!$
|
1047 |
-
$
|
1048 |
}
|
1049 |
|
1050 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1051 |
|
1052 |
-
|
1053 |
|
1054 |
-
|
1055 |
-
return popup.cid !== instance.cid;
|
1056 |
-
}, this);
|
1057 |
|
1058 |
-
this.
|
1059 |
|
1060 |
-
if (!this.
|
1061 |
$('.acfe-modal-overlay').remove();
|
1062 |
$('body').removeClass('acfe-modal-opened');
|
1063 |
}
|
1064 |
|
1065 |
},
|
1066 |
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1070 |
}
|
1071 |
},
|
1072 |
|
1073 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1074 |
|
1075 |
// multiple popups: add css margin
|
1076 |
-
|
|
|
1077 |
|
1078 |
-
// last
|
1079 |
-
if (i === this.
|
1080 |
-
return
|
1081 |
}
|
1082 |
|
1083 |
// other popups
|
1084 |
-
|
1085 |
|
1086 |
}, this);
|
1087 |
|
1088 |
-
}
|
1089 |
|
1090 |
});
|
1091 |
|
1092 |
-
|
1093 |
-
|
|
|
|
|
|
|
|
|
|
|
1094 |
|
1095 |
events: {
|
1096 |
-
'click a[data-
|
1097 |
-
'click button[data-
|
1098 |
-
'click input[data-
|
1099 |
},
|
1100 |
|
1101 |
onClick: function(e, $el) {
|
@@ -1104,29 +1560,13 @@
|
|
1104 |
e.preventDefault();
|
1105 |
|
1106 |
// vars
|
1107 |
-
var
|
1108 |
-
var
|
1109 |
-
var title = $el.attr('data-acfe-modal-title') || '';
|
1110 |
-
var footer = $el.attr('data-acfe-modal-footer') || '';
|
1111 |
-
|
1112 |
-
// find next modal div
|
1113 |
-
if (!target) {
|
1114 |
-
target = $el.parent().find('.acfe-modal').first();
|
1115 |
-
}
|
1116 |
|
1117 |
-
if (
|
1118 |
-
// do nothing
|
1119 |
-
} else {
|
1120 |
-
target = $('.acfe-modal[data-acfe-modal=' + target + ']');
|
1121 |
-
}
|
1122 |
-
|
1123 |
-
if (target.length) {
|
1124 |
|
1125 |
-
|
1126 |
-
|
1127 |
-
title: title,
|
1128 |
-
footer: footer,
|
1129 |
-
});
|
1130 |
|
1131 |
}
|
1132 |
|
@@ -1134,6 +1574,38 @@
|
|
1134 |
|
1135 |
});
|
1136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1137 |
})(jQuery);
|
1138 |
(function($) {
|
1139 |
|
@@ -1142,29 +1614,73 @@
|
|
1142 |
}
|
1143 |
|
1144 |
/**
|
1145 |
-
* acf.Model.get
|
1146 |
*
|
1147 |
-
* Extends acf.Model.get
|
1148 |
*
|
1149 |
* @param name
|
1150 |
* @param def
|
1151 |
* @returns {*|null}
|
1152 |
*/
|
1153 |
-
acf.Model.prototype.get = function(name, def = null) {
|
1154 |
-
return this.data
|
1155 |
};
|
1156 |
|
|
|
1157 |
/**
|
1158 |
-
* acf.get()
|
1159 |
*
|
1160 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1161 |
*
|
1162 |
* @param name
|
1163 |
* @param def
|
1164 |
* @returns {*|null}
|
1165 |
*/
|
1166 |
-
acf.get = function(name, def = null) {
|
1167 |
-
return this.data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1168 |
};
|
1169 |
|
1170 |
})(jQuery);
|
32 |
};
|
33 |
|
34 |
|
35 |
+
/**
|
36 |
+
* acfe.getObject
|
37 |
+
*
|
38 |
+
* Forces val as an object
|
39 |
+
*
|
40 |
+
* @param val
|
41 |
+
* @returns {*[]}
|
42 |
+
*/
|
43 |
+
acfe.getObject = function(val) {
|
44 |
+
return acf.parseArgs(val);
|
45 |
+
};
|
46 |
+
|
47 |
+
|
48 |
+
/**
|
49 |
+
* acfe.extractVar
|
50 |
+
*
|
51 |
+
* Extracts a value from an object
|
52 |
+
*
|
53 |
+
* @param obj
|
54 |
+
* @param prop
|
55 |
+
* @param def
|
56 |
+
* @returns {null|*}
|
57 |
+
*/
|
58 |
+
acfe.extractVar = function(obj, prop, def = null) {
|
59 |
+
|
60 |
+
var value = obj[prop];
|
61 |
+
delete obj[prop];
|
62 |
+
|
63 |
+
if (acfe.isUndefined(value)) {
|
64 |
+
return def;
|
65 |
+
}
|
66 |
+
|
67 |
+
return value;
|
68 |
+
|
69 |
+
}
|
70 |
+
|
71 |
+
|
72 |
+
/**
|
73 |
+
* acfe.extractVars
|
74 |
+
*
|
75 |
+
* Extracts multiple values from an object
|
76 |
+
*
|
77 |
+
* @param obj
|
78 |
+
* @param props
|
79 |
+
* @returns {{}}
|
80 |
+
*/
|
81 |
+
acfe.extractVars = function(obj, ...props) {
|
82 |
+
|
83 |
+
var value = {};
|
84 |
+
for (var prop of props) {
|
85 |
+
|
86 |
+
var extract = acfe.extractVar(obj, prop, '!!undefined!!');
|
87 |
+
|
88 |
+
if (extract !== '!!undefined!!') {
|
89 |
+
value[prop] = extract;
|
90 |
+
}
|
91 |
+
|
92 |
+
}
|
93 |
+
|
94 |
+
return value;
|
95 |
+
|
96 |
+
}
|
97 |
+
|
98 |
+
|
99 |
/**
|
100 |
* acfe.getEntries
|
101 |
*
|
185 |
* acfe.arrayHas
|
186 |
*
|
187 |
* Check array/object has key using dot notation
|
188 |
+
* '!!undefined!!' is workaround allowing 'null' to be considered as a valid value
|
189 |
*
|
190 |
* @param obj
|
191 |
* @param path
|
192 |
* @returns {*}
|
193 |
*/
|
194 |
acfe.arrayHas = function(obj, path) {
|
195 |
+
return acfe.arrayGet(obj, path, '!!undefined!!') !== '!!undefined!!';
|
196 |
}
|
197 |
|
198 |
|
302 |
/**
|
303 |
* acfe.arrayPluck
|
304 |
*
|
305 |
+
* '!!undefined!!' is workaround allowing 'null' to be considered as a valid value
|
306 |
*
|
307 |
* @param obj
|
308 |
* @param path
|
329 |
// loop
|
330 |
for (var row of obj) {
|
331 |
|
332 |
+
var result = acfe.arrayGet(row, path, '!!undefined!!');
|
333 |
|
334 |
// bail early
|
335 |
+
if (result === '!!undefined!!') {
|
336 |
continue;
|
337 |
}
|
338 |
|
340 |
collect.push(result);
|
341 |
|
342 |
if (id) {
|
343 |
+
var key = acfe.arrayGet(row, idPath, '!!undefined!!');
|
344 |
|
345 |
+
if (key !== '!!undefined!!') {
|
346 |
idObj[key] = result;
|
347 |
}
|
348 |
}
|
426 |
* @param def
|
427 |
* @returns {*|null}
|
428 |
*/
|
429 |
+
acfe.get = function(name = null, def = null) {
|
430 |
+
return name === null ? acf.data.acfe : acfe.arrayGet(acf.data.acfe, name, def);
|
431 |
};
|
432 |
|
433 |
|
438 |
* @returns {boolean}
|
439 |
*/
|
440 |
acfe.has = function(name) {
|
441 |
+
return acfe.arrayGet(acf.data.acfe, name) !== null;
|
442 |
};
|
443 |
|
444 |
|
450 |
* @returns {acfe}
|
451 |
*/
|
452 |
acfe.set = function(name, value) {
|
453 |
+
acfe.arraySet(acf.data.acfe, name, value);
|
454 |
return this;
|
455 |
};
|
456 |
|
457 |
+
})(jQuery);
|
458 |
+
(function($) {
|
459 |
+
|
460 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
461 |
+
return;
|
462 |
+
}
|
463 |
+
|
464 |
+
/**
|
465 |
+
* acfe.deprecatedFunction
|
466 |
+
*
|
467 |
+
* @param fnc
|
468 |
+
* @param version
|
469 |
+
* @param replacement
|
470 |
+
*/
|
471 |
+
acfe.deprecatedFunction = function(fnc, version, replacement = '') {
|
472 |
+
|
473 |
+
replacement = replacement ? '! Use ' + replacement + ' instead.' : ' with no alternative available.';
|
474 |
+
|
475 |
+
console.log('ACF Extended: ' + fnc + ' is deprecated since version ' + version + replacement);
|
476 |
+
|
477 |
+
}
|
478 |
+
|
479 |
+
|
480 |
+
/**
|
481 |
+
* acfe.deprecatedHook
|
482 |
+
*
|
483 |
+
* @param hook
|
484 |
+
* @param version
|
485 |
+
* @param replacement
|
486 |
+
*/
|
487 |
+
acfe.deprecatedHook = function(hook, version, replacement = '') {
|
488 |
+
|
489 |
+
replacement = replacement ? '! Use ' + replacement + ' instead.' : ' with no alternative available.';
|
490 |
+
|
491 |
+
console.log('ACF Extended: Hook ' + hook + ' is deprecated since version ' + version + replacement);
|
492 |
+
|
493 |
+
}
|
494 |
+
|
495 |
+
|
496 |
+
/**
|
497 |
+
* acfe.applyFiltersDeprecated
|
498 |
+
*
|
499 |
+
* @param hook
|
500 |
+
* @param args
|
501 |
+
* @param version
|
502 |
+
* @param replacement
|
503 |
+
* @returns {*}
|
504 |
+
*/
|
505 |
+
acfe.applyFiltersDeprecated = function(hook, args, version, replacement = '') {
|
506 |
+
|
507 |
+
// bail early
|
508 |
+
if (!acfe.hasFilter(hook)) {
|
509 |
+
return args[0];
|
510 |
+
}
|
511 |
+
|
512 |
+
// log deprecated
|
513 |
+
acfe.deprecatedHook(hook, version, replacement);
|
514 |
+
|
515 |
+
// appply filters
|
516 |
+
return acf.applyFilters(hook, ...args);
|
517 |
+
|
518 |
+
}
|
519 |
+
|
520 |
+
|
521 |
+
/**
|
522 |
+
* acfe.doActionDeprecated
|
523 |
+
*
|
524 |
+
* @param hook
|
525 |
+
* @param args
|
526 |
+
* @param version
|
527 |
+
* @param replacement
|
528 |
+
* @returns {*}
|
529 |
+
*/
|
530 |
+
acfe.doActionDeprecated = function(hook, args, version, replacement = '') {
|
531 |
+
|
532 |
+
// bail early
|
533 |
+
if (!acfe.hasAction(hook)) {
|
534 |
+
return;
|
535 |
+
}
|
536 |
+
|
537 |
+
// log deprecated
|
538 |
+
acfe.deprecatedHook(hook, version, replacement);
|
539 |
+
|
540 |
+
// appply filters
|
541 |
+
return acf.doAction(hook, ...args);
|
542 |
+
|
543 |
+
}
|
544 |
+
|
545 |
})(jQuery);
|
546 |
(function($) {
|
547 |
|
622 |
/**
|
623 |
* find_fields_selector
|
624 |
*
|
625 |
+
* Allows to use multiple field types (array) as argument
|
626 |
+
*
|
627 |
+
* Available in ACF 6.0.
|
628 |
*/
|
629 |
acf.addFilter('find_fields_selector', function(selector, args) {
|
630 |
|
801 |
}
|
802 |
|
803 |
/**
|
804 |
+
* acfe.hasFilter
|
805 |
+
*
|
806 |
+
* @param hook
|
807 |
+
* @param callback
|
808 |
+
* @returns {boolean}
|
809 |
+
*/
|
810 |
+
acfe.hasFilter = function(hook, callback = false) {
|
811 |
+
return acfe.hasHook('filters', hook, callback);
|
812 |
+
}
|
813 |
+
|
814 |
+
|
815 |
+
/**
|
816 |
+
* acfe.hasAction
|
817 |
+
*
|
818 |
+
* @param hook
|
819 |
+
* @param callback
|
820 |
+
* @returns {boolean}
|
821 |
+
*/
|
822 |
+
acfe.hasAction = function(hook, callback = false) {
|
823 |
+
return acfe.hasHook('actions', hook, callback);
|
824 |
+
}
|
825 |
+
|
826 |
+
|
827 |
+
/**
|
828 |
+
* acfe.hasHook
|
829 |
+
*
|
830 |
+
* @param type
|
831 |
+
* @param hook
|
832 |
+
* @param callback
|
833 |
+
* @returns {boolean}
|
834 |
+
*/
|
835 |
+
acfe.hasHook = function(type, hook, callback = false) {
|
836 |
+
|
837 |
+
// get hooks storage
|
838 |
+
var storage = acf.hooks.storage();
|
839 |
+
|
840 |
+
// no hooks
|
841 |
+
if (!acfe.arrayGet(storage[type], hook)) {
|
842 |
+
return false;
|
843 |
+
}
|
844 |
+
|
845 |
+
// no callback specified
|
846 |
+
if (!callback) {
|
847 |
+
return true;
|
848 |
+
}
|
849 |
+
|
850 |
+
// loop on hooks
|
851 |
+
for (var row of storage[type][hook]) {
|
852 |
+
|
853 |
+
// callback name found
|
854 |
+
if (acfe.arrayGet(row, 'callback.name') === callback) {
|
855 |
+
return true;
|
856 |
+
}
|
857 |
+
|
858 |
+
}
|
859 |
+
|
860 |
+
return false;
|
861 |
+
|
862 |
+
}
|
863 |
+
|
864 |
+
})(jQuery);
|
865 |
+
(function($) {
|
866 |
+
|
867 |
+
if (typeof acf === 'undefined' || typeof acfe === 'undefined') {
|
868 |
+
return;
|
869 |
+
}
|
870 |
+
|
871 |
+
/**
|
872 |
+
* modal initializer
|
873 |
+
*
|
874 |
+
* @type {string[]}
|
875 |
+
*/
|
876 |
+
var actions = ['prepare', 'ready', 'load', 'append', 'remove', 'unmount', 'remount', 'sortstart', 'sortstop', 'show', 'hide', 'unload'];
|
877 |
+
|
878 |
+
actions.map(function(action) {
|
879 |
+
|
880 |
+
acf.addAction(action, function($el) {
|
881 |
+
|
882 |
+
// initialize modals
|
883 |
+
acfe.getModals({
|
884 |
+
parent: $el
|
885 |
+
});
|
886 |
+
|
887 |
+
});
|
888 |
+
|
889 |
+
});
|
890 |
+
|
891 |
+
|
892 |
+
/**
|
893 |
+
* acfe.getModals
|
894 |
+
*
|
895 |
+
* @param $modals
|
896 |
+
* @returns {*[]}
|
897 |
+
*/
|
898 |
+
acfe.getModals = function($modals) {
|
899 |
+
|
900 |
+
// jquery element allowed
|
901 |
+
// if not jquery perform query
|
902 |
+
if (!acfe.isJquery($modals)) {
|
903 |
+
$modals = acfe.findModals($modals);
|
904 |
+
}
|
905 |
+
|
906 |
+
// loop
|
907 |
+
var modals = [];
|
908 |
+
$modals.each(function() {
|
909 |
+
var modal = acfe.getModal($(this));
|
910 |
+
modals.push(modal);
|
911 |
+
});
|
912 |
+
|
913 |
+
// return
|
914 |
+
return modals;
|
915 |
+
|
916 |
+
}
|
917 |
+
|
918 |
+
|
919 |
+
/**
|
920 |
+
* acfe.getModal
|
921 |
+
*
|
922 |
+
* @param $modal
|
923 |
+
* @param args
|
924 |
+
* @returns {boolean|*}
|
925 |
*/
|
926 |
+
acfe.getModal = function($modal, args) {
|
927 |
+
|
928 |
+
// args query
|
929 |
+
if (!acfe.isJquery($modal)) {
|
930 |
+
$modal = acfe.findModal($modal);
|
931 |
+
}
|
932 |
+
|
933 |
+
// no modal found
|
934 |
+
// check class just in case of unrelated element
|
935 |
+
if (!$modal.length || !$modal.hasClass('acfe-modal')) {
|
936 |
+
return false;
|
937 |
+
}
|
938 |
+
|
939 |
+
// return
|
940 |
+
return acfe.newModal($modal, args);
|
941 |
+
|
942 |
};
|
943 |
|
944 |
+
|
945 |
+
/**
|
946 |
+
* acfe.findModals
|
947 |
+
*
|
948 |
+
* @param args
|
949 |
+
* @returns {*}
|
950 |
+
*/
|
951 |
+
acfe.findModals = function(args) {
|
952 |
+
|
953 |
+
// vars
|
954 |
+
var selector = '.acfe-modal';
|
955 |
+
var $modals = false;
|
956 |
+
|
957 |
+
// args
|
958 |
+
args = acf.parseArgs(args, {
|
959 |
+
modal: '', // The modal's name (data-attribute).
|
960 |
+
is: '', // jQuery selector to compare against.
|
961 |
+
parent: false, // jQuery element to search within.
|
962 |
+
sibling: false, // jQuery element to search alongside.
|
963 |
+
limit: false, // The number of modals to find.
|
964 |
+
open: false, // Whether to only return open modals.
|
965 |
+
close: false, // Whether to only return open modals.
|
966 |
+
suppressFilters: false, // Whether to allow filters to add/remove results. Default behaviour will ignore clone fields.
|
967 |
+
});
|
968 |
+
|
969 |
+
// modal
|
970 |
+
if (args.modal) {
|
971 |
+
selector += '[data-modal="' + args.modal + '"]';
|
972 |
+
}
|
973 |
+
|
974 |
+
// is
|
975 |
+
if (args.is) {
|
976 |
+
selector += args.is;
|
977 |
+
}
|
978 |
+
|
979 |
+
// open
|
980 |
+
if (args.open) {
|
981 |
+
selector += ':visible';
|
982 |
+
}
|
983 |
+
|
984 |
+
// close
|
985 |
+
if (args.close) {
|
986 |
+
selector += ':hidden';
|
987 |
+
}
|
988 |
+
|
989 |
+
// query
|
990 |
+
if (args.parent) {
|
991 |
+
$modals = args.parent.find(selector);
|
992 |
+
} else if (args.sibling) {
|
993 |
+
$modals = args.sibling.siblings(selector);
|
994 |
+
} else {
|
995 |
+
$modals = $(selector);
|
996 |
+
}
|
997 |
+
|
998 |
+
// filter
|
999 |
+
if (!args.suppressFilters) {
|
1000 |
+
$modals = $modals.not('.acf-clone .acfe-modal');
|
1001 |
+
}
|
1002 |
+
|
1003 |
+
// limit
|
1004 |
+
if (args.limit) {
|
1005 |
+
$modals = $modals.slice(0, args.limit);
|
1006 |
+
}
|
1007 |
+
|
1008 |
+
// return
|
1009 |
+
return $modals;
|
1010 |
+
|
1011 |
};
|
1012 |
|
1013 |
+
|
1014 |
+
/**
|
1015 |
+
* acfe.findModal
|
1016 |
+
*
|
1017 |
+
* @param modal
|
1018 |
+
* @param $parent
|
1019 |
+
* @returns {*}
|
1020 |
+
*/
|
1021 |
+
acfe.findModal = function(modal, $parent) {
|
1022 |
+
|
1023 |
+
// todo: allow args object to be passed to allow get opened/closed modals
|
1024 |
+
return acfe.findModals({
|
1025 |
+
modal: modal,
|
1026 |
+
limit: 1,
|
1027 |
+
parent: $parent,
|
1028 |
+
});
|
1029 |
};
|
1030 |
|
1031 |
+
|
1032 |
+
/**
|
1033 |
+
* acfe.findClosestModal
|
1034 |
+
*
|
1035 |
+
* @param $el
|
1036 |
+
* @returns {*|jQuery|boolean}
|
1037 |
+
*/
|
1038 |
+
acfe.findClosestModal = function($el) {
|
1039 |
+
|
1040 |
+
// move up through each parent and try again
|
1041 |
+
for (var parent of $el.parents()) {
|
1042 |
+
|
1043 |
+
var $parent = $(parent);
|
1044 |
+
var $modal = $parent.find('>.acfe-modal');
|
1045 |
+
|
1046 |
+
if ($modal.length) {
|
1047 |
+
return $modal;
|
1048 |
+
}
|
1049 |
+
|
1050 |
+
}
|
1051 |
+
|
1052 |
+
return false;
|
1053 |
+
|
1054 |
+
};
|
1055 |
+
|
1056 |
+
|
1057 |
+
/**
|
1058 |
+
* acfe.getClosestModal
|
1059 |
+
*
|
1060 |
+
* @param $el
|
1061 |
+
* @param args
|
1062 |
+
* @returns {boolean|*|jQuery}
|
1063 |
+
*/
|
1064 |
+
acfe.getClosestModal = function($el, args) {
|
1065 |
+
var $modal = acfe.findClosestModal($el);
|
1066 |
+
|
1067 |
+
if (!$modal.length) {
|
1068 |
+
return false;
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
return this.getModal($modal, args);
|
1072 |
+
};
|
1073 |
+
|
1074 |
+
|
1075 |
+
/**
|
1076 |
+
* acfe.newModal
|
1077 |
+
*
|
1078 |
+
* @param $modal
|
1079 |
+
* @param args
|
1080 |
+
* @returns {*}
|
1081 |
+
*/
|
1082 |
+
acfe.newModal = function($modal, args) {
|
1083 |
+
|
1084 |
+
// jquery object
|
1085 |
+
if (acfe.isJquery($modal)) {
|
1086 |
+
|
1087 |
+
var modal = $modal.data('acf');
|
1088 |
+
if (modal) {
|
1089 |
+
return modal.update(args);
|
1090 |
+
}
|
1091 |
+
|
1092 |
+
// instantiate
|
1093 |
+
modal = new acfe.Modal($modal, args);
|
1094 |
+
|
1095 |
+
// actions
|
1096 |
+
acf.doAction('new_modal', modal);
|
1097 |
+
|
1098 |
+
// return
|
1099 |
+
return modal;
|
1100 |
+
|
1101 |
+
}
|
1102 |
+
|
1103 |
+
// default
|
1104 |
+
args = acf.parseArgs($modal, {
|
1105 |
+
open: true
|
1106 |
+
});
|
1107 |
+
|
1108 |
+
// instantiate
|
1109 |
+
modal = new acfe.Modal(args);
|
1110 |
+
|
1111 |
+
// actions
|
1112 |
+
acf.doAction('new_modal', modal);
|
1113 |
+
|
1114 |
+
// return
|
1115 |
+
return modal;
|
1116 |
+
|
1117 |
+
}
|
1118 |
+
|
1119 |
+
|
1120 |
+
/**
|
1121 |
+
* acfe.Modal
|
1122 |
+
*/
|
1123 |
+
acfe.Modal = acf.Model.extend({
|
1124 |
|
1125 |
data: {
|
1126 |
+
modal: '',
|
1127 |
title: '',
|
1128 |
content: '',
|
1129 |
footer: '',
|
1130 |
class: '',
|
1131 |
+
size: 'medium',
|
1132 |
+
open: false,
|
1133 |
destroy: false,
|
1134 |
events: {},
|
1135 |
onOpen: function() {},
|
1136 |
onClose: function() {},
|
1137 |
},
|
1138 |
|
1139 |
+
eventScope: '.acfe-modal',
|
1140 |
+
|
1141 |
events: {
|
1142 |
+
'changed': 'onChanged',
|
1143 |
+
'click .close': 'onClickClose',
|
1144 |
},
|
1145 |
|
1146 |
+
onChanged: function(e, $el, name, value, prevValue) {
|
1147 |
|
1148 |
+
if (acfe.inArray(name, ['title', 'content', 'footer', 'class', 'size'])) {
|
1149 |
+
this.render();
|
1150 |
|
1151 |
+
} else if (name === 'open') {
|
1152 |
+
this.checkOpen();
|
1153 |
+
}
|
|
|
|
|
1154 |
|
1155 |
+
},
|
|
|
1156 |
|
1157 |
+
setup: function($el, args) {
|
|
|
1158 |
|
1159 |
+
if (!acfe.isJquery($el)) {
|
|
|
1160 |
|
1161 |
+
// set args & $el
|
1162 |
+
args = $el;
|
1163 |
+
$el = $('<div class="acfe-modal"></div>').appendTo('body');
|
1164 |
|
1165 |
}
|
1166 |
|
1167 |
+
// set $el
|
1168 |
+
this.$el = $el;
|
1169 |
+
|
1170 |
+
// force object
|
1171 |
+
args = acfe.getObject(args);
|
1172 |
+
|
1173 |
+
// inherit $modal data
|
1174 |
+
this.inherit($el);
|
1175 |
+
|
1176 |
+
// inherit args
|
1177 |
+
this.inherit(args);
|
1178 |
|
1179 |
// render
|
1180 |
+
this.renderTemplates();
|
1181 |
this.render();
|
1182 |
|
1183 |
},
|
1184 |
|
1185 |
initialize: function() {
|
1186 |
|
1187 |
+
this.addDataEvents();
|
1188 |
+
this.checkOpen();
|
|
|
|
|
|
|
1189 |
|
1190 |
},
|
1191 |
|
1192 |
+
addDataEvents: function() {
|
1193 |
|
1194 |
if (!this.get('events')) {
|
1195 |
return;
|
1236 |
|
1237 |
},
|
1238 |
|
1239 |
+
update: function(args) {
|
|
|
|
|
|
|
|
|
1240 |
|
1241 |
+
// force object
|
1242 |
+
args = acfe.getObject(args);
|
|
|
|
|
1243 |
|
1244 |
+
// extract open
|
1245 |
+
var open = acfe.extractVar(args, 'open');
|
1246 |
|
1247 |
+
// loop object
|
1248 |
+
for (var [key, value] of Object.entries(args)) {
|
1249 |
+
this.set(key, value);
|
1250 |
+
}
|
1251 |
|
1252 |
+
// execute open after all update
|
1253 |
+
// this let define onOpen() callback and execute it
|
1254 |
+
if (open) {
|
1255 |
+
this.set('open', open);
|
1256 |
}
|
1257 |
|
1258 |
+
// allow chaining
|
1259 |
+
return this;
|
1260 |
+
|
1261 |
},
|
1262 |
|
1263 |
+
on: function() {
|
1264 |
|
1265 |
+
acf.Model.prototype.on.apply(this, arguments);
|
|
|
|
|
|
|
1266 |
|
1267 |
+
// allow chaining
|
1268 |
+
return this;
|
1269 |
|
|
|
|
|
1270 |
},
|
1271 |
|
1272 |
+
checkOpen: function() {
|
1273 |
+
if (this.get('open')) {
|
1274 |
+
this.open();
|
|
|
1275 |
}
|
1276 |
+
},
|
1277 |
|
1278 |
+
$wrapper: function() {
|
1279 |
+
return this.$('> .acfe-modal-wrapper');
|
1280 |
+
},
|
1281 |
|
1282 |
+
$title: function(val) {
|
1283 |
+
return !acfe.isUndefined(val) ? this.$('> .acfe-modal-wrapper > .acfe-modal-title > .title').html(val) : this.$('> .acfe-modal-wrapper > .acfe-modal-title');
|
1284 |
},
|
1285 |
|
1286 |
+
$content: function(val) {
|
1287 |
+
return !acfe.isUndefined(val) ? this.$('> .acfe-modal-wrapper > .acfe-modal-content').html(val) : this.$('> .acfe-modal-wrapper > .acfe-modal-content');
|
|
|
|
|
1288 |
},
|
1289 |
|
1290 |
+
$footer: function(val) {
|
1291 |
+
return !acfe.isUndefined(val) ? this.$('> .acfe-modal-wrapper > .acfe-modal-footer').html(val) : this.$('> .acfe-modal-wrapper > .acfe-modal-footer');
|
1292 |
+
},
|
1293 |
|
1294 |
+
renderTemplates: function() {
|
|
|
|
|
1295 |
|
1296 |
+
if (!this.$wrapper().length) {
|
1297 |
+
this.$el.wrapInner('<div class="acfe-modal-wrapper"></div>');
|
|
|
|
|
|
|
1298 |
}
|
|
|
1299 |
|
|
|
1300 |
if (!this.$content().length) {
|
1301 |
+
this.$wrapper().wrapInner('<div class="acfe-modal-content"></div>');
|
1302 |
}
|
1303 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1304 |
},
|
1305 |
|
1306 |
+
renderContent: function() {
|
1307 |
|
1308 |
+
// title
|
1309 |
+
if (!this.$title().length && this.get('title')) {
|
1310 |
+
this.$wrapper().prepend('<div class="acfe-modal-title"><span class="title"></span><button class="close"></button></div>');
|
1311 |
|
1312 |
+
} else if (!this.get('title')) {
|
1313 |
+
this.$title().remove();
|
1314 |
+
}
|
1315 |
|
1316 |
+
// footer
|
1317 |
+
if (!this.$footer().length && this.get('footer')) {
|
1318 |
+
this.$wrapper().append('<div class="acfe-modal-footer"></div>');
|
|
|
|
|
1319 |
|
1320 |
+
} else if (!this.get('footer')) {
|
1321 |
+
this.$footer().remove();
|
1322 |
}
|
1323 |
|
1324 |
+
// title
|
1325 |
+
var title = acfe.isFunction(this.get('title')) ? this.get('title').apply(this) : this.get('title');
|
1326 |
+
this.$title(title);
|
1327 |
|
1328 |
+
// content
|
1329 |
+
if (this.get('content')) {
|
|
|
|
|
|
|
1330 |
|
1331 |
+
var content = acfe.isFunction(this.get('content')) ? this.get('content').apply(this) : this.get('content');
|
1332 |
+
this.$content(content);
|
1333 |
|
|
|
|
|
|
|
|
|
|
|
1334 |
}
|
1335 |
|
1336 |
+
// footer
|
1337 |
+
var footer = acfe.isFunction(this.get('footer')) ? this.get('footer').apply(this) : '<button class="button button-primary close">' + this.get('footer') + '</button>';
|
1338 |
+
this.$footer(footer);
|
1339 |
+
|
1340 |
},
|
1341 |
|
1342 |
+
render: function() {
|
1343 |
|
1344 |
+
// render content
|
1345 |
+
this.renderContent();
|
|
|
|
|
|
|
1346 |
|
1347 |
+
// clear class
|
1348 |
+
this.$el.removeClass('-medium -large -full');
|
|
|
|
|
1349 |
|
1350 |
+
if (this.get('size')) {
|
1351 |
+
this.$el.addClass('-' + this.get('size'));
|
1352 |
+
}
|
1353 |
|
1354 |
+
if (this.get('class')) {
|
1355 |
+
this.$el.addClass(this.get('class'));
|
1356 |
+
}
|
1357 |
|
1358 |
+
// hide tinymce buttons dropdown when scrolling modal
|
1359 |
+
// fix position issues
|
1360 |
+
if (typeof tinymce !== 'undefined' && acf.isset(tinymce, 'ui', 'FloatPanel')) {
|
1361 |
+
this.$content().off('scroll.tinymcePanel').on('scroll.tinymcePanel', function(e) {
|
1362 |
+
tinymce.ui.FloatPanel.hideAll();
|
1363 |
+
});
|
1364 |
+
}
|
|
|
1365 |
|
1366 |
},
|
1367 |
|
1370 |
// add class
|
1371 |
this.$el.addClass('-open');
|
1372 |
|
|
|
|
|
|
|
1373 |
// action
|
1374 |
acf.doAction('acfe/modal/open', this);
|
1375 |
|
1379 |
// event
|
1380 |
this.trigger('open');
|
1381 |
|
|
|
|
|
|
|
1382 |
},
|
1383 |
|
1384 |
close: function() {
|
1387 |
this.$el.removeAttr('style');
|
1388 |
this.$el.removeClass('-open');
|
1389 |
|
|
|
|
|
1390 |
// action
|
1391 |
acf.doAction('acfe/modal/close', this);
|
1392 |
|
1396 |
// event
|
1397 |
this.trigger('close');
|
1398 |
|
1399 |
+
this.set('open', false);
|
1400 |
+
|
1401 |
// destroy
|
1402 |
if (this.get('destroy')) {
|
1403 |
this.remove();
|
1414 |
|
1415 |
});
|
1416 |
|
1417 |
+
|
1418 |
/**
|
1419 |
+
* acfe.closeModal
|
1420 |
+
*
|
1421 |
+
* @param $el
|
1422 |
+
* @returns {*}
|
1423 |
*/
|
1424 |
+
acfe.closeModal = function($el) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1425 |
|
1426 |
+
// last modal
|
1427 |
+
if (acfe.isUndefined($el)) {
|
1428 |
+
return modalManager.closeLastModal();
|
|
|
|
|
1429 |
|
1430 |
+
// jQuery element
|
1431 |
+
} else if (acfe.isJquery($el)) {
|
1432 |
|
1433 |
+
var modal = acfe.getModal($el);
|
1434 |
+
if (modal) {
|
1435 |
+
modal.close();
|
1436 |
}
|
1437 |
|
1438 |
}
|
1439 |
|
1440 |
};
|
1441 |
|
1442 |
+
|
1443 |
+
/**
|
1444 |
+
* modal manager
|
1445 |
+
*
|
1446 |
+
* @type {acf.Model}
|
1447 |
+
*/
|
1448 |
var modalManager = new acf.Model({
|
1449 |
|
1450 |
+
actions: {
|
1451 |
+
'acfe/modal/open': 'onOpen',
|
1452 |
+
'acfe/modal/close': 'onClose',
|
1453 |
+
},
|
1454 |
|
1455 |
events: {
|
1456 |
'click .acfe-modal-overlay': 'onClick',
|
1457 |
'keydown': 'onKeydown',
|
1458 |
},
|
1459 |
|
1460 |
+
getModals: function() {
|
1461 |
|
1462 |
+
return acfe.getModals({
|
1463 |
+
open: true,
|
1464 |
+
});
|
1465 |
|
1466 |
},
|
1467 |
|
1468 |
+
onOpen: function(modal) {
|
|
|
|
|
|
|
|
|
|
|
1469 |
|
1470 |
+
this.syncModals();
|
1471 |
|
1472 |
+
var $body = $('body');
|
|
|
1473 |
|
1474 |
+
if (!$body.hasClass('acfe-modal-opened')) {
|
1475 |
+
$body.addClass('acfe-modal-opened').append($('<div class="acfe-modal-overlay" />'));
|
1476 |
}
|
1477 |
|
1478 |
+
// show subfields
|
1479 |
+
acf.getFields({
|
1480 |
+
parent: modal.$el,
|
1481 |
+
visible: true,
|
1482 |
+
}).map(function(field) {
|
1483 |
+
acf.doAction('show_field', field, 'group');
|
1484 |
+
});
|
1485 |
|
1486 |
+
},
|
1487 |
|
1488 |
+
onClose: function(modal) {
|
|
|
|
|
1489 |
|
1490 |
+
this.syncModals();
|
1491 |
|
1492 |
+
if (!this.getModals().length) {
|
1493 |
$('.acfe-modal-overlay').remove();
|
1494 |
$('body').removeClass('acfe-modal-opened');
|
1495 |
}
|
1496 |
|
1497 |
},
|
1498 |
|
1499 |
+
onClick: function(e) {
|
1500 |
+
|
1501 |
+
e.preventDefault();
|
1502 |
+
this.closeLastModal();
|
1503 |
+
|
1504 |
+
},
|
1505 |
+
|
1506 |
+
onKeydown: function(e) {
|
1507 |
+
if (e.keyCode === 27 && $('body').hasClass('acfe-modal-opened')) {
|
1508 |
+
e.preventDefault();
|
1509 |
+
this.closeLastModal();
|
1510 |
}
|
1511 |
},
|
1512 |
|
1513 |
+
closeLastModal: function() {
|
1514 |
+
|
1515 |
+
var modals = this.getModals();
|
1516 |
+
|
1517 |
+
if (modals.length) {
|
1518 |
+
modals[modals.length - 1].close();
|
1519 |
+
}
|
1520 |
+
|
1521 |
+
},
|
1522 |
+
|
1523 |
+
syncModals: function() {
|
1524 |
|
1525 |
// multiple popups: add css margin
|
1526 |
+
// add acfe-modal-sub to all modals, except the last one
|
1527 |
+
this.getModals().map(function(modal, i) {
|
1528 |
|
1529 |
+
// last modal
|
1530 |
+
if (i === this.getModals().length - 1) {
|
1531 |
+
return modal.$el.removeClass('acfe-modal-sub').css('margin-left', '');
|
1532 |
}
|
1533 |
|
1534 |
// other popups
|
1535 |
+
modal.$el.addClass('acfe-modal-sub').css('margin-left', -(500 / (i + 1)));
|
1536 |
|
1537 |
}, this);
|
1538 |
|
1539 |
+
}
|
1540 |
|
1541 |
});
|
1542 |
|
1543 |
+
|
1544 |
+
/**
|
1545 |
+
* link manager
|
1546 |
+
*
|
1547 |
+
* @type {acf.Model}
|
1548 |
+
*/
|
1549 |
+
var linkManager = new acf.Model({
|
1550 |
|
1551 |
events: {
|
1552 |
+
'click a[data-modal]': 'onClick',
|
1553 |
+
'click button[data-modal]': 'onClick',
|
1554 |
+
'click input[data-modal]': 'onClick',
|
1555 |
},
|
1556 |
|
1557 |
onClick: function(e, $el) {
|
1560 |
e.preventDefault();
|
1561 |
|
1562 |
// vars
|
1563 |
+
var data = $el.data();
|
1564 |
+
var modal = data.modal ? acfe.getModal(data.modal) : acfe.getClosestModal($el);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1565 |
|
1566 |
+
if (modal) {
|
|
|
|
|
|
|
|
|
|
|
|
|
1567 |
|
1568 |
+
modal.update(data);
|
1569 |
+
modal.open();
|
|
|
|
|
|
|
1570 |
|
1571 |
}
|
1572 |
|
1574 |
|
1575 |
});
|
1576 |
|
1577 |
+
|
1578 |
+
/**
|
1579 |
+
* acfe.Popup
|
1580 |
+
*
|
1581 |
+
* @deprecated
|
1582 |
+
*/
|
1583 |
+
acfe.Popup = function($modal, args) {
|
1584 |
+
|
1585 |
+
// notice
|
1586 |
+
acfe.deprecatedFunction('acfe.Popup', '0.8.8.11', 'acfe.newModal');
|
1587 |
+
|
1588 |
+
// jquery object
|
1589 |
+
if (acfe.isJquery($modal)) {
|
1590 |
+
|
1591 |
+
// default
|
1592 |
+
args = acf.parseArgs(args, {
|
1593 |
+
open: true
|
1594 |
+
});
|
1595 |
+
|
1596 |
+
return acfe.newModal($modal, args);
|
1597 |
+
|
1598 |
+
}
|
1599 |
+
|
1600 |
+
// default
|
1601 |
+
args = acf.parseArgs($modal, {
|
1602 |
+
open: true
|
1603 |
+
});
|
1604 |
+
|
1605 |
+
return acfe.newModal(args);
|
1606 |
+
|
1607 |
+
}
|
1608 |
+
|
1609 |
})(jQuery);
|
1610 |
(function($) {
|
1611 |
|
1614 |
}
|
1615 |
|
1616 |
/**
|
1617 |
+
* acf.Model.get
|
1618 |
*
|
1619 |
+
* Extends acf.Model.get to allow dot notation & default value
|
1620 |
*
|
1621 |
* @param name
|
1622 |
* @param def
|
1623 |
* @returns {*|null}
|
1624 |
*/
|
1625 |
+
acf.Model.prototype.get = function(name = null, def = null) {
|
1626 |
+
return name === null ? this.data : acfe.arrayGet(this.data, name, def);
|
1627 |
};
|
1628 |
|
1629 |
+
|
1630 |
/**
|
|
|
1631 |
*
|
1632 |
+
* acf.Model.has
|
1633 |
+
*
|
1634 |
+
* Extends acf.Model.has to allow dot notation
|
1635 |
+
*
|
1636 |
+
* @param name
|
1637 |
+
* @returns {boolean}
|
1638 |
+
*/
|
1639 |
+
acf.Model.prototype.has = function(name) {
|
1640 |
+
return acfe.arrayGet(this.data, name) !== null;
|
1641 |
+
};
|
1642 |
+
|
1643 |
+
|
1644 |
+
/**
|
1645 |
+
* acf.get
|
1646 |
+
*
|
1647 |
+
* Extends acf.get to allow dot notation & default value
|
1648 |
*
|
1649 |
* @param name
|
1650 |
* @param def
|
1651 |
* @returns {*|null}
|
1652 |
*/
|
1653 |
+
acf.get = function(name = null, def = null) {
|
1654 |
+
return name === null ? this.data : acfe.arrayGet(this.data, name, def);
|
1655 |
+
};
|
1656 |
+
|
1657 |
+
|
1658 |
+
/**
|
1659 |
+
* acf.has
|
1660 |
+
*
|
1661 |
+
* Extends acf.has to allow dot notation
|
1662 |
+
*
|
1663 |
+
* @param name
|
1664 |
+
* @returns {boolean}
|
1665 |
+
*/
|
1666 |
+
acf.has = function(name) {
|
1667 |
+
return acfe.arrayGet(this.data, name) !== null;
|
1668 |
+
};
|
1669 |
+
|
1670 |
+
|
1671 |
+
/**
|
1672 |
+
*
|
1673 |
+
* acf.set
|
1674 |
+
*
|
1675 |
+
* Extends acf.set to allow dot notation & default value
|
1676 |
+
*
|
1677 |
+
* @param name
|
1678 |
+
* @param value
|
1679 |
+
* @returns {acf}
|
1680 |
+
*/
|
1681 |
+
acf.set = function(name, value) {
|
1682 |
+
acfe.arraySet(this.data, name, value);
|
1683 |
+
return this;
|
1684 |
};
|
1685 |
|
1686 |
})(jQuery);
|
assets/js/acfe.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery,"undefined"!=typeof acf&&(window.acfe={}),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.getArray=function(e){return[].concat((e=0===e?"0":e)||[])},acfe.getEntries=function(e){return Object.entries(e)},acfe.inArray=function(e,t,n=!1){n||(e=acfe.getString(e),t=t.map(function(e){return acfe.getString(e)}));for(var i=0;i<t.length;i++)if(t[i]===e)return!0;return!1},acfe.arrayGet=function(e,t,n=null){for(var i,a=(t=acfe.normalizePath(t)).length,o=e,r=0;r<a;r++){if(i=t[r],acfe.isUndefined(o[i]))return n;o=o[i]}return o},acfe.arrayHas=function(e,t){return"!!default!!"!==acfe.arrayGet(e,t,"!!default!!")},acfe.arraySet=function(e,t,n){for(var i,a=(t=acfe.normalizePath(t)).length,o=e,r=0;r<a;r++)i=t[r],r===a-1?o[i]=n:o=(o[i]&&acfe.isObject(o[i])||(o[i]={}),o[i]);return e=acfe.arrayReindex(e)},acfe.arrayDelete=function(e,t){for(var n,i=(t=acfe.normalizePath(t)).length,a=e,o=0;o<i;o++)n=t[o],o===i-1?delete a[n]:a=a[n]||{};return e=acfe.arrayReindex(e)},acfe.arrayPluck=function(e,t,n=!1){var i,a,o={},r=[];n&&((i=t.split(".")).pop(),i.push(n),i=i.join("."));for(a of e){var c,f=acfe.arrayGet(a,t,"!!default!!");"!!default!!"!==f&&(r.push(f),!n||"!!default!!"!==(c=acfe.arrayGet(a,i,"!!default!!"))&&(o[c]=f))}return r=n?o:r},acfe.normalizePath=function(e){return e=(e=acfe.getString(e)).split(".")},acfe.arrayReindex=function(e){return e=acfe.isArray(e)?e.filter(function(e){return!acfe.isUndefined(e)}):e}),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acf.data.acfe={},acfe.get=function(e,t=null){return acf.data.acfe[e]||t},acfe.has=function(e){return null!=this.get(e)},acfe.set=function(e,t){return acf.data.acfe[e]=t,this}),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.isFieldKey=function(e){return acfe.isString(e)&&e.startsWith("field_")},acfe.isFieldName=function(e){return acfe.isString(e)&&!acfe.isFieldKey(e)},acfe.isGroupKey=function(e){return acfe.isString(e)&&e.startsWith("group_")},acfe.getField=function(e){return acfe.isFieldName(e)?acf.getFields({name:e,limit:1,suppressFilters:!0}).shift():acfe.isObject(e)?(e=acf.parseArgs(e,{limit:1,suppressFilters:!0}),acf.getFields(e).shift()):acf.getField(e)},acf.addFilter("find_fields_selector",function(e,t){if(t.types&&t.types.length&&acfe.isArray(t.types)){var n,i=[];for(n of t.types)i.push(e+'[data-type="'+n+'"]');e=i.join(",")}return e})),function(){var n;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(n=[],acfe.disableFilters=function(){n=[]},acfe.getFilters=function(){return n},acfe.isFilterEnabled=function(e){return-1<n.indexOf(e)},acfe.enableFilter=function(e){-1===n.indexOf(e)&&n.push(e)},acfe.disableFilter=function(e){for(var t=n.length;t--;)n[t]===e&&n.splice(t,1)})}(jQuery),function(n){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.findSubmitWrap=function(e){var t;return(t=(e=e||n("form")).find("#submitdiv")).length||(t=e.find("#submitpost")).length||(t=e.find("p.submit").last()).length||(t=e.find(".acf-form-submit")).length?t:e},acfe.findSubmit=function(e){return e=e||n("form"),this.findSubmitWrap(e).find('.button, [type="submit"]')},acfe.findSpinner=function(e){return e=e||n("form"),this.findSubmitWrap(e).find(".spinner, .acf-spinner")})}(jQuery),function(o){var n;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.getPopup=function(e){return acf.getInstance(e)},acfe.getPopups=function(){return acf.getInstances(o(".acfe-modal"))},acfe.newPopup=function(e,t){return new acfe.Popup(e,t)},acfe.Popup=acf.Model.extend({data:{title:"",content:"",footer:"",class:"",size:"",autoOpen:!0,destroy:!1,events:{},onOpen:function(){},onClose:function(){}},events:{"click >.acfe-modal-wrapper>.acfe-modal-title>.close":"onClickClose","click >.acfe-modal-wrapper>.acfe-modal-footer>.close":"onClickClose"},setup:function(e,t){t?(e instanceof jQuery||(e=o(e)),this.$el=e):(t=e,this.$el=o('<div class="acfe-modal"><div class="acfe-modal-wrapper"><div class="acfe-modal-content"></div></div></div>').appendTo("body")),o.extend(this.data,t),this.render()},initialize:function(){this.addUnscopedEvents(),this.get("autoOpen")&&this.open()},addUnscopedEvents:function(){if(this.get("events")){var e,t=this.get("events"),n=/^(\S+)\s*(.*)$/;for(e in t){var i,a=e.match(n),o=(i=a[2]?(r=a[1],a[2]):(r=a[1],""),t[e]),r=r+"."+this.cid;o=this.proxyEvent(this.get(o)),(a=this.$el).on.apply(a,i?[r,i,o]:[r,o])}}},$wrapper:function(){return this.$("> .acfe-modal-wrapper")},$title:function(e){return void 0!==e?this.$wrapper().find("> .acfe-modal-title > .title").html(e):this.$wrapper().find("> .acfe-modal-title")},$content:function(e){return void 0!==e?this.$(".acfe-modal-content").html(e):this.$wrapper().find("> .acfe-modal-content")},$footer:function(e){return void 0!==e?this.$wrapper().find("> .acfe-modal-footer").html(e):this.$wrapper().find("> .acfe-modal-footer")},$overlay:function(){return this.$wrapper().find("> .acfe-modal-wrapper-overlay")},setupClass:function(){this.get("size")&&this.$el.addClass("-"+this.get("size")),this.get("class")&&this.$el.addClass(this.get("class"))},setupWrapper:function(){this.$wrapper().length||this.$el.wrapInner('<div class="acfe-modal-wrapper" />')},setupTitle:function(){this.get("title")&&(this.$title().length||this.$wrapper().prepend('<div class="acfe-modal-title"><span class="title"></span><button class="close"></button></div>'),"function"==typeof this.get("title")?this.$title(this.get("title").apply(this)):this.$title(this.get("title")))},setupContent:function(){this.$content().length||this.$wrapper().wrapInner('<div class="acfe-modal-content" />'),this.get("content")&&("function"==typeof this.get("content")?this.$content(this.get("content").apply(this)):this.$content(this.get("content")))},setupFooter:function(){this.get("footer")&&(this.$footer().length||this.$wrapper().append('<div class="acfe-modal-footer" />'),"function"==typeof this.get("footer")?this.$footer(this.get("footer").apply(this)):this.$footer('<button class="button button-primary close">'+this.get("footer")+"</button>"))},setupOverlay:function(){this.$overlay().length||this.$wrapper().prepend('<div class="acfe-modal-wrapper-overlay" />')},setupTinymce:function(){"undefined"!=typeof tinymce&&acf.isset(tinymce,"ui","FloatPanel")&&this.$content().off("scroll.tinymcePanel").on("scroll.tinymcePanel",function(e){tinymce.ui.FloatPanel.hideAll()})},setupFields:function(){acf.getFields({parent:this.$el,visible:!0}).map(function(e){acf.doAction("show_field",e,"group")},this)},render:function(){this.setupClass(),this.setupWrapper(),this.setupContent(),this.setupTitle(),this.setupFooter(),this.setupOverlay(),this.setupTinymce()},open:function(){this.$el.addClass("-open"),n.addPopup(this),acf.doAction("acfe/modal/open",this),this.get("onOpen").apply(this),this.trigger("open"),this.setupFields()},close:function(){this.$el.removeAttr("style"),this.$el.removeClass("-open"),n.removePopup(this),acf.doAction("acfe/modal/close",this),this.get("onClose").apply(this),this.trigger("close"),this.get("destroy")&&this.remove()},onClickClose:function(e,t){e.preventDefault(),this.close()}}),acfe.closePopup=function(e){if(void 0===e)return n.closeLastPopup();var t;e instanceof jQuery?(t=acfe.getPopup(e))&&t.close():"string"==typeof e?(e=o(e),(t=acfe.getPopup(e))&&t.close()):"function"==typeof e.close&&e.close()},n=new acf.Model({popups:[],events:{"click .acfe-modal-overlay":"onClick",keydown:"onKeydown"},onClick:function(e){e.preventDefault(),this.closeLastPopup()},onKeydown:function(e){27===e.keyCode&&o("body").hasClass("acfe-modal-opened")&&(e.preventDefault(),this.closeLastPopup())},addPopup:function(e){this.popups.push(e),this.syncPopups(),o("body").hasClass("acfe-modal-opened")||o("body").addClass("acfe-modal-opened").append(o('<div class="acfe-modal-overlay" />'))},removePopup:function(t){this.popups=this.popups.filter(function(e){return e.cid!==t.cid},this),this.syncPopups(),this.popups.length||(o(".acfe-modal-overlay").remove(),o("body").removeClass("acfe-modal-opened"))},closeLastPopup:function(){this.popups.length&&this.popups[this.popups.length-1].close()},syncPopups:function(){this.popups.map(function(e,t){return t===this.popups.length-1?e.$el.removeClass("acfe-modal-sub").css("margin-left",""):void e.$el.addClass("acfe-modal-sub").css("margin-left",-500/(t+1))},this)}}),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,i=t.attr("data-acfe-modal-size")||"medium",a=t.attr("data-acfe-modal-title")||"",e=t.attr("data-acfe-modal-footer")||"";(n=!((n=n||t.parent().find(".acfe-modal").first())instanceof jQuery)?o(".acfe-modal[data-acfe-modal="+n+"]"):n).length&&new acfe.Popup(n,{size:i,title:a,footer:e})}}))}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acf.Model.prototype.get=function(e,t=null){return this.data[e]||t},acf.get=function(e,t=null){return this.data[e]||t}),function(n){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.getString=function(e){return acfe.isObject(e)?JSON.stringify(e):acfe.isEmpty(e)?"":""+e},acfe.getTextNode=function(e){if(e.exists())for(row of e.contents()){var t=n.trim(n(row).text());if(t)return t}return""},acfe.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.slice(1)})}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&new acf.Model({tooltips:{},events:{"click .acfe-field-tooltip":"clickTooltip"},clickTooltip:function(e,t){var n,i=t.attr("title");!i||(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:i,target:t}),acfe.versionCompare(acf.get("wp_version"),">=","5.5")&&t.removeClass("dashicons-info-outline").addClass("dashicons-remove")))}}),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.isArray=function(e){return Array.isArray(e)},acfe.isObject=function(e){return"object"==typeof e&&!acfe.isArray(e)},acfe.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},acfe.isString=function(e){return"string"==typeof e},acfe.isUndefined=function(e){return void 0===e},acfe.isFunction=function(e){return"function"==typeof e},acfe.isBool=function(e){return"boolean"==typeof e},acfe.isInt=function(e){return Number.isInteger(e)},acfe.isJquery=function(e){return e instanceof jQuery},acfe.isEmpty=function(e){return acfe.isArray(e)?!e.length:acfe.isObject(e)?e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype:acfe.isString(e)?!e.length:!e&&!acfe.isNumeric(e)}),function(){var a,t,o;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.slugify=function(e){return e.replace(/[\s\./]+/g,"-").replace(/[^\p{L}\p{N}_-]+/gu,"").replace(/-+$/,"").toLowerCase()},acfe.addQueryArgs=function(){let e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;let n=e;var i=e.indexOf("?");return-1!==i&&(t=Object.assign(acfe.getQueryArgs(e),t),n=n.substr(0,i)),n+"?"+a(t)},acfe.getQueryArgs=function(e){return(t(e)||"").replace(/\+/g,"%20").split("&").reduce((e,t)=>{const[n,i=""]=t.split("=").filter(Boolean).map(decodeURIComponent);return n&&(t=n.replace(/\]/g,"").split("["),o(e,t,i)),e},Object.create(null))},acfe.getFragment=function(e){e=/^\S+?(#[^\s\?]*)/.exec(e);return e?e[1]:""},acfe.getCurrentUrl=function(){return self.location.href},acfe.getCurrentPath=function(){return self.location.pathname},acfe.getCurrentFilename=function(){return acfe.getFilename(acfe.getCurrentPath())},acfe.getFilename=function(e){return e.split("/").pop()},a=function(e){let n="";const i=Object.entries(e);for(;r=i.shift();){let[e,t]=r;var a,o,r=Array.isArray(t)||t&&t.constructor===Object;if(r)for([a,o]of Object.entries(t).reverse())i.unshift([`${e}[${a}]`,o]);else void 0!==t&&(null===t&&(t=""),n+="&"+[e,t].map(encodeURIComponent).join("="))}return n.substr(1)},t=function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t},o=function(n,i,a){var e=i.length,o=e-1;for(let t=0;t<e;t++){let e=i[t];!e&&Array.isArray(n)&&(e=n.length.toString()),e=["__proto__","constructor","prototype"].includes(e)?e.toUpperCase():e;var r=!isNaN(Number(i[t+1]));n[e]=t===o?a:n[e]||(r?[]:{}),Array.isArray(n[e])&&!r&&(n[e]={...n[e]}),n=n[e]}})}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.versionCompare=function(e,t,n){let i;var a;let o=0;const r={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1};function c(e){return(e=(e=(""+e).replace(/[_\-+]/g,".")).replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".")).length?e.split("."):[-8]}function f(e){return e?isNaN(e)?r[e]||-7:parseInt(e,10):0}for(e=c(e),n=c(n),a=Math.max(e.length,n.length),i=0;i<a;i++)if(e[i]!==n[i]){if(e[i]=f(e[i]),n[i]=f(n[i]),e[i]<n[i]){o=-1;break}if(e[i]>n[i]){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}});
|
1 |
+
jQuery,"undefined"!=typeof acf&&(window.acfe={}),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.getArray=function(e){return[].concat((e=0===e?"0":e)||[])},acfe.getObject=function(e){return acf.parseArgs(e)},acfe.extractVar=function(e,t,n=null){var a=e[t];return delete e[t],acfe.isUndefined(a)?n:a},acfe.extractVars=function(e,...t){var n,a={};for(n of t){var i=acfe.extractVar(e,n,"!!undefined!!");"!!undefined!!"!==i&&(a[n]=i)}return a},acfe.getEntries=function(e){return Object.entries(e)},acfe.inArray=function(e,t,n=!1){n||(e=acfe.getString(e),t=t.map(function(e){return acfe.getString(e)}));for(var a=0;a<t.length;a++)if(t[a]===e)return!0;return!1},acfe.arrayGet=function(e,t,n=null){for(var a,i=(t=acfe.normalizePath(t)).length,r=e,o=0;o<i;o++){if(a=t[o],acfe.isUndefined(r[a]))return n;r=r[a]}return r},acfe.arrayHas=function(e,t){return"!!undefined!!"!==acfe.arrayGet(e,t,"!!undefined!!")},acfe.arraySet=function(e,t,n){for(var a,i=(t=acfe.normalizePath(t)).length,r=e,o=0;o<i;o++)a=t[o],o===i-1?r[a]=n:r=(r[a]&&acfe.isObject(r[a])||(r[a]={}),r[a]);return e=acfe.arrayReindex(e)},acfe.arrayDelete=function(e,t){for(var n,a=(t=acfe.normalizePath(t)).length,i=e,r=0;r<a;r++)n=t[r],r===a-1?delete i[n]:i=i[n]||{};return e=acfe.arrayReindex(e)},acfe.arrayPluck=function(e,t,n=!1){var a,i,r={},o=[];n&&((a=t.split(".")).pop(),a.push(n),a=a.join("."));for(i of e){var c,f=acfe.arrayGet(i,t,"!!undefined!!");"!!undefined!!"!==f&&(o.push(f),!n||"!!undefined!!"!==(c=acfe.arrayGet(i,a,"!!undefined!!"))&&(r[c]=f))}return o=n?r:o},acfe.normalizePath=function(e){return e=(e=acfe.getString(e)).split(".")},acfe.arrayReindex=function(e){return e=acfe.isArray(e)?e.filter(function(e){return!acfe.isUndefined(e)}):e}),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acf.data.acfe={},acfe.get=function(e=null,t=null){return null===e?acf.data.acfe:acfe.arrayGet(acf.data.acfe,e,t)},acfe.has=function(e){return null!==acfe.arrayGet(acf.data.acfe,e)},acfe.set=function(e,t){return acfe.arraySet(acf.data.acfe,e,t),this}),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.deprecatedFunction=function(e,t,n=""){n=n?"! Use "+n+" instead.":" with no alternative available.",console.log("ACF Extended: "+e+" is deprecated since version "+t+n)},acfe.deprecatedHook=function(e,t,n=""){n=n?"! Use "+n+" instead.":" with no alternative available.",console.log("ACF Extended: Hook "+e+" is deprecated since version "+t+n)},acfe.applyFiltersDeprecated=function(e,t,n,a=""){return acfe.hasFilter(e)?(acfe.deprecatedHook(e,n,a),acf.applyFilters(e,...t)):t[0]},acfe.doActionDeprecated=function(e,t,n,a=""){if(acfe.hasAction(e))return acfe.deprecatedHook(e,n,a),acf.doAction(e,...t)}),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.isFieldKey=function(e){return acfe.isString(e)&&e.startsWith("field_")},acfe.isFieldName=function(e){return acfe.isString(e)&&!acfe.isFieldKey(e)},acfe.isGroupKey=function(e){return acfe.isString(e)&&e.startsWith("group_")},acfe.getField=function(e){return acfe.isFieldName(e)?acf.getFields({name:e,limit:1,suppressFilters:!0}).shift():acfe.isObject(e)?(e=acf.parseArgs(e,{limit:1,suppressFilters:!0}),acf.getFields(e).shift()):acf.getField(e)},acf.addFilter("find_fields_selector",function(e,t){if(t.types&&t.types.length&&acfe.isArray(t.types)){var n,a=[];for(n of t.types)a.push(e+'[data-type="'+n+'"]');e=a.join(",")}return e})),function(){var n;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(n=[],acfe.disableFilters=function(){n=[]},acfe.getFilters=function(){return n},acfe.isFilterEnabled=function(e){return-1<n.indexOf(e)},acfe.enableFilter=function(e){-1===n.indexOf(e)&&n.push(e)},acfe.disableFilter=function(e){for(var t=n.length;t--;)n[t]===e&&n.splice(t,1)})}(jQuery),function(n){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.findSubmitWrap=function(e){var t;return(t=(e=e||n("form")).find("#submitdiv")).length||(t=e.find("#submitpost")).length||(t=e.find("p.submit").last()).length||(t=e.find(".acf-form-submit")).length?t:e},acfe.findSubmit=function(e){return e=e||n("form"),this.findSubmitWrap(e).find('.button, [type="submit"]')},acfe.findSpinner=function(e){return e=e||n("form"),this.findSubmitWrap(e).find(".spinner, .acf-spinner")})}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.hasFilter=function(e,t=!1){return acfe.hasHook("filters",e,t)},acfe.hasAction=function(e,t=!1){return acfe.hasHook("actions",e,t)},acfe.hasHook=function(e,t,n=!1){var a,i=acf.hooks.storage();if(!acfe.arrayGet(i[e],t))return!1;if(!n)return!0;for(a of i[e][t])if(acfe.arrayGet(a,"callback.name")===n)return!0;return!1}),function(a){var t;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(["prepare","ready","load","append","remove","unmount","remount","sortstart","sortstop","show","hide","unload"].map(function(e){acf.addAction(e,function(e){acfe.getModals({parent:e})})}),acfe.getModals=function(e){acfe.isJquery(e)||(e=acfe.findModals(e));var t=[];return e.each(function(){var e=acfe.getModal(a(this));t.push(e)}),t},acfe.getModal=function(e,t){return!(!(e=!acfe.isJquery(e)?acfe.findModal(e):e).length||!e.hasClass("acfe-modal"))&&acfe.newModal(e,t)},acfe.findModals=function(e){var t=".acfe-modal",n=!1;return(e=acf.parseArgs(e,{modal:"",is:"",parent:!1,sibling:!1,limit:!1,open:!1,close:!1,suppressFilters:!1})).modal&&(t+='[data-modal="'+e.modal+'"]'),e.is&&(t+=e.is),e.open&&(t+=":visible"),e.close&&(t+=":hidden"),n=e.parent?e.parent.find(t):e.sibling?e.sibling.siblings(t):a(t),e.suppressFilters||(n=n.not(".acf-clone .acfe-modal")),n=e.limit?n.slice(0,e.limit):n},acfe.findModal=function(e,t){return acfe.findModals({modal:e,limit:1,parent:t})},acfe.findClosestModal=function(e){for(var t of e.parents()){t=a(t).find(">.acfe-modal");if(t.length)return t}return!1},acfe.getClosestModal=function(e,t){e=acfe.findClosestModal(e);return!!e.length&&this.getModal(e,t)},acfe.newModal=function(e,t){if(acfe.isJquery(e)){var n=e.data("acf");return n?n.update(t):(n=new acfe.Modal(e,t),acf.doAction("new_modal",n),n)}return t=acf.parseArgs(e,{open:!0}),n=new acfe.Modal(t),acf.doAction("new_modal",n),n},acfe.Modal=acf.Model.extend({data:{modal:"",title:"",content:"",footer:"",class:"",size:"medium",open:!1,destroy:!1,events:{},onOpen:function(){},onClose:function(){}},eventScope:".acfe-modal",events:{changed:"onChanged","click .close":"onClickClose"},onChanged:function(e,t,n,a,i){acfe.inArray(n,["title","content","footer","class","size"])?this.render():"open"===n&&this.checkOpen()},setup:function(e,t){acfe.isJquery(e)||(t=e,e=a('<div class="acfe-modal"></div>').appendTo("body")),this.$el=e,t=acfe.getObject(t),this.inherit(e),this.inherit(t),this.renderTemplates(),this.render()},initialize:function(){this.addDataEvents(),this.checkOpen()},addDataEvents:function(){if(this.get("events")){var e,t=this.get("events"),n=/^(\S+)\s*(.*)$/;for(e in t){var a,i=e.match(n),r=(a=i[2]?(o=i[1],i[2]):(o=i[1],""),t[e]),o=o+"."+this.cid;r=this.proxyEvent(this.get(r)),(i=this.$el).on.apply(i,a?[o,a,r]:[o,r])}}},update:function(e){e=acfe.getObject(e);var t,n,a=acfe.extractVar(e,"open");for([t,n]of Object.entries(e))this.set(t,n);return a&&this.set("open",a),this},on:function(){return acf.Model.prototype.on.apply(this,arguments),this},checkOpen:function(){this.get("open")&&this.open()},$wrapper:function(){return this.$("> .acfe-modal-wrapper")},$title:function(e){return acfe.isUndefined(e)?this.$("> .acfe-modal-wrapper > .acfe-modal-title"):this.$("> .acfe-modal-wrapper > .acfe-modal-title > .title").html(e)},$content:function(e){return acfe.isUndefined(e)?this.$("> .acfe-modal-wrapper > .acfe-modal-content"):this.$("> .acfe-modal-wrapper > .acfe-modal-content").html(e)},$footer:function(e){return acfe.isUndefined(e)?this.$("> .acfe-modal-wrapper > .acfe-modal-footer"):this.$("> .acfe-modal-wrapper > .acfe-modal-footer").html(e)},renderTemplates:function(){this.$wrapper().length||this.$el.wrapInner('<div class="acfe-modal-wrapper"></div>'),this.$content().length||this.$wrapper().wrapInner('<div class="acfe-modal-content"></div>')},renderContent:function(){!this.$title().length&&this.get("title")?this.$wrapper().prepend('<div class="acfe-modal-title"><span class="title"></span><button class="close"></button></div>'):this.get("title")||this.$title().remove(),!this.$footer().length&&this.get("footer")?this.$wrapper().append('<div class="acfe-modal-footer"></div>'):this.get("footer")||this.$footer().remove();var e=acfe.isFunction(this.get("title"))?this.get("title").apply(this):this.get("title");this.$title(e),this.get("content")&&(t=acfe.isFunction(this.get("content"))?this.get("content").apply(this):this.get("content"),this.$content(t));var t=acfe.isFunction(this.get("footer"))?this.get("footer").apply(this):'<button class="button button-primary close">'+this.get("footer")+"</button>";this.$footer(t)},render:function(){this.renderContent(),this.$el.removeClass("-medium -large -full"),this.get("size")&&this.$el.addClass("-"+this.get("size")),this.get("class")&&this.$el.addClass(this.get("class")),"undefined"!=typeof tinymce&&acf.isset(tinymce,"ui","FloatPanel")&&this.$content().off("scroll.tinymcePanel").on("scroll.tinymcePanel",function(e){tinymce.ui.FloatPanel.hideAll()})},open:function(){this.$el.addClass("-open"),acf.doAction("acfe/modal/open",this),this.get("onOpen").apply(this),this.trigger("open")},close:function(){this.$el.removeAttr("style"),this.$el.removeClass("-open"),acf.doAction("acfe/modal/close",this),this.get("onClose").apply(this),this.trigger("close"),this.set("open",!1),this.get("destroy")&&this.remove()},onClickClose:function(e,t){e.preventDefault(),this.close()}}),acfe.closeModal=function(e){if(acfe.isUndefined(e))return t.closeLastModal();!acfe.isJquery(e)||(e=acfe.getModal(e))&&e.close()},t=new acf.Model({actions:{"acfe/modal/open":"onOpen","acfe/modal/close":"onClose"},events:{"click .acfe-modal-overlay":"onClick",keydown:"onKeydown"},getModals:function(){return acfe.getModals({open:!0})},onOpen:function(e){this.syncModals();var t=a("body");t.hasClass("acfe-modal-opened")||t.addClass("acfe-modal-opened").append(a('<div class="acfe-modal-overlay" />')),acf.getFields({parent:e.$el,visible:!0}).map(function(e){acf.doAction("show_field",e,"group")})},onClose:function(e){this.syncModals(),this.getModals().length||(a(".acfe-modal-overlay").remove(),a("body").removeClass("acfe-modal-opened"))},onClick:function(e){e.preventDefault(),this.closeLastModal()},onKeydown:function(e){27===e.keyCode&&a("body").hasClass("acfe-modal-opened")&&(e.preventDefault(),this.closeLastModal())},closeLastModal:function(){var e=this.getModals();e.length&&e[e.length-1].close()},syncModals:function(){this.getModals().map(function(e,t){return t===this.getModals().length-1?e.$el.removeClass("acfe-modal-sub").css("margin-left",""):void e.$el.addClass("acfe-modal-sub").css("margin-left",-500/(t+1))},this)}}),new acf.Model({events:{"click a[data-modal]":"onClick","click button[data-modal]":"onClick","click input[data-modal]":"onClick"},onClick:function(e,t){e.preventDefault();e=t.data(),t=e.modal?acfe.getModal(e.modal):acfe.getClosestModal(t);t&&(t.update(e),t.open())}}),acfe.Popup=function(e,t){return acfe.deprecatedFunction("acfe.Popup","0.8.8.11","acfe.newModal"),acfe.isJquery(e)?(t=acf.parseArgs(t,{open:!0}),acfe.newModal(e,t)):(t=acf.parseArgs(e,{open:!0}),acfe.newModal(t))})}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acf.Model.prototype.get=function(e=null,t=null){return null===e?this.data:acfe.arrayGet(this.data,e,t)},acf.Model.prototype.has=function(e){return null!==acfe.arrayGet(this.data,e)},acf.get=function(e=null,t=null){return null===e?this.data:acfe.arrayGet(this.data,e,t)},acf.has=function(e){return null!==acfe.arrayGet(this.data,e)},acf.set=function(e,t){return acfe.arraySet(this.data,e,t),this}),function(n){"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.getString=function(e){return acfe.isObject(e)?JSON.stringify(e):acfe.isEmpty(e)?"":""+e},acfe.getTextNode=function(e){if(e.exists())for(row of e.contents()){var t=n.trim(n(row).text());if(t)return t}return""},acfe.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.slice(1)})}(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")))}}),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.isArray=function(e){return Array.isArray(e)},acfe.isObject=function(e){return"object"==typeof e&&!acfe.isArray(e)},acfe.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},acfe.isString=function(e){return"string"==typeof e},acfe.isUndefined=function(e){return void 0===e},acfe.isFunction=function(e){return"function"==typeof e},acfe.isBool=function(e){return"boolean"==typeof e},acfe.isInt=function(e){return Number.isInteger(e)},acfe.isJquery=function(e){return e instanceof jQuery},acfe.isEmpty=function(e){return acfe.isArray(e)?!e.length:acfe.isObject(e)?e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype:acfe.isString(e)?!e.length:!e&&!acfe.isNumeric(e)}),function(){var i,t,r;"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.slugify=function(e){return e.replace(/[\s\./]+/g,"-").replace(/[^\p{L}\p{N}_-]+/gu,"").replace(/-+$/,"").toLowerCase()},acfe.addQueryArgs=function(){let e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;let n=e;var a=e.indexOf("?");return-1!==a&&(t=Object.assign(acfe.getQueryArgs(e),t),n=n.substr(0,a)),n+"?"+i(t)},acfe.getQueryArgs=function(e){return(t(e)||"").replace(/\+/g,"%20").split("&").reduce((e,t)=>{const[n,a=""]=t.split("=").filter(Boolean).map(decodeURIComponent);return n&&(t=n.replace(/\]/g,"").split("["),r(e,t,a)),e},Object.create(null))},acfe.getFragment=function(e){e=/^\S+?(#[^\s\?]*)/.exec(e);return e?e[1]:""},acfe.getCurrentUrl=function(){return self.location.href},acfe.getCurrentPath=function(){return self.location.pathname},acfe.getCurrentFilename=function(){return acfe.getFilename(acfe.getCurrentPath())},acfe.getFilename=function(e){return e.split("/").pop()},i=function(e){let n="";const a=Object.entries(e);for(;o=a.shift();){let[e,t]=o;var i,r,o=Array.isArray(t)||t&&t.constructor===Object;if(o)for([i,r]of Object.entries(t).reverse())a.unshift([`${e}[${i}]`,r]);else void 0!==t&&(null===t&&(t=""),n+="&"+[e,t].map(encodeURIComponent).join("="))}return n.substr(1)},t=function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t},r=function(n,a,i){var e=a.length,r=e-1;for(let t=0;t<e;t++){let e=a[t];!e&&Array.isArray(n)&&(e=n.length.toString()),e=["__proto__","constructor","prototype"].includes(e)?e.toUpperCase():e;var o=!isNaN(Number(a[t+1]));n[e]=t===r?i:n[e]||(o?[]:{}),Array.isArray(n[e])&&!o&&(n[e]={...n[e]}),n=n[e]}})}(jQuery),jQuery,"undefined"!=typeof acf&&"undefined"!=typeof acfe&&(acfe.versionCompare=function(e,t,n){let a;var i;let r=0;const o={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1};function c(e){return(e=(e=(""+e).replace(/[_\-+]/g,".")).replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".")).length?e.split("."):[-8]}function f(e){return e?isNaN(e)?o[e]||-7:parseInt(e,10):0}for(e=c(e),n=c(n),i=Math.max(e.length,n.length),a=0;a<i;a++)if(e[a]!==n[a]){if(e[a]=f(e[a]),n[a]=f(n[a]),e[a]<n[a]){r=-1;break}if(e[a]>n[a]){r=1;break}}if(!t)return r;switch(t){case">":case"gt":return 0<r;case">=":case"ge":return 0<=r;case"<=":case"le":return r<=0;case"===":case"=":case"eq":return 0===r;case"<>":case"!==":case"ne":return 0!==r;case"":case"<":case"lt":return r<0;default:return null}});
|
includes/acfe-field-functions.php
CHANGED
@@ -231,7 +231,7 @@ function acfe_query_fields($args = array()){
|
|
231 |
|
232 |
$_query = array();
|
233 |
|
234 |
-
|
235 |
* $_query = array('type' => 'text');
|
236 |
|
237 |
* $_query = array(
|
@@ -265,7 +265,7 @@ function acfe_query_fields($args = array()){
|
|
265 |
* );
|
266 |
*/
|
267 |
|
268 |
-
|
269 |
* $_query = array(
|
270 |
* array('type' => 'text'),
|
271 |
* array('type' => 'image'),
|
231 |
|
232 |
$_query = array();
|
233 |
|
234 |
+
/**
|
235 |
* $_query = array('type' => 'text');
|
236 |
|
237 |
* $_query = array(
|
265 |
* );
|
266 |
*/
|
267 |
|
268 |
+
/**
|
269 |
* $_query = array(
|
270 |
* array('type' => 'text'),
|
271 |
* array('type' => 'image'),
|
includes/acfe-field-group-functions.php
CHANGED
@@ -15,7 +15,7 @@ if(!defined('ABSPATH')){
|
|
15 |
*/
|
16 |
function acfe_get_post_id_field_groups($post_id = 0){
|
17 |
|
18 |
-
|
19 |
* @string $post_id 12 | term_46 | user_22 | my-option | comment_89 | widget_56 | menu_74 | menu_item_96 | block_my-block | blog_55 | site_36 | attachment_24
|
20 |
* @string $id 12 | 46 | 22 | my-option | 89 | widget_56 | 74 | 96 | block_my-block | 55 | 36 | 24
|
21 |
* @string $type post | term | user | option | comment | option | term | post | block | blog | blog | post
|
@@ -459,7 +459,7 @@ function acfe_render_field_group_locations_html($field_group){
|
|
459 |
/**
|
460 |
* acfe_add_field_groups_metabox
|
461 |
*
|
462 |
-
* @param $
|
463 |
*/
|
464 |
function acfe_add_field_groups_metabox($args = array()){
|
465 |
|
15 |
*/
|
16 |
function acfe_get_post_id_field_groups($post_id = 0){
|
17 |
|
18 |
+
/**
|
19 |
* @string $post_id 12 | term_46 | user_22 | my-option | comment_89 | widget_56 | menu_74 | menu_item_96 | block_my-block | blog_55 | site_36 | attachment_24
|
20 |
* @string $id 12 | 46 | 22 | my-option | 89 | widget_56 | 74 | 96 | block_my-block | 55 | 36 | 24
|
21 |
* @string $type post | term | user | option | comment | option | term | post | block | blog | blog | post
|
459 |
/**
|
460 |
* acfe_add_field_groups_metabox
|
461 |
*
|
462 |
+
* @param array $args
|
463 |
*/
|
464 |
function acfe_add_field_groups_metabox($args = array()){
|
465 |
|
includes/acfe-post-functions.php
CHANGED
@@ -4,6 +4,58 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
/**
|
8 |
* acfe_get_post_type_objects
|
9 |
*
|
@@ -19,7 +71,7 @@ function acfe_get_post_type_objects($args = array()){
|
|
19 |
$return = array();
|
20 |
|
21 |
// get post types
|
22 |
-
$posts_types =
|
23 |
|
24 |
// loop
|
25 |
foreach($posts_types as $post_type){
|
@@ -48,15 +100,15 @@ function acfe_get_post_type_objects($args = array()){
|
|
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 |
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
/**
|
8 |
+
* acfe_get_post_types
|
9 |
+
*
|
10 |
+
* Query & retrieve post types
|
11 |
+
*
|
12 |
+
* @param array $args
|
13 |
+
*
|
14 |
+
* @return array
|
15 |
+
*/
|
16 |
+
function acfe_get_post_types($args = array()){
|
17 |
+
|
18 |
+
// vars
|
19 |
+
$return = array();
|
20 |
+
|
21 |
+
// extract special args
|
22 |
+
$include = acf_extract_var($args, 'include');
|
23 |
+
$include = acf_get_array($include);
|
24 |
+
|
25 |
+
// get post types
|
26 |
+
$posts_types = acf_get_post_types($args);
|
27 |
+
|
28 |
+
// allow to retrieve post when has_archive is true
|
29 |
+
if(!empty($args['has_archive'])){
|
30 |
+
|
31 |
+
// check post has archive
|
32 |
+
$post_archive = get_option('show_on_front') === 'posts' || (get_option('show_on_front') === 'page' && get_option('page_for_posts'));
|
33 |
+
|
34 |
+
// append post
|
35 |
+
if($post_archive && !in_array('post', $posts_types)){
|
36 |
+
$posts_types[] = 'post';
|
37 |
+
}
|
38 |
+
|
39 |
+
}
|
40 |
+
|
41 |
+
// loop
|
42 |
+
foreach($posts_types as $post_type){
|
43 |
+
|
44 |
+
// validate include
|
45 |
+
if(!empty($include) && !in_array($post_type, $include)){
|
46 |
+
continue;
|
47 |
+
}
|
48 |
+
|
49 |
+
// append
|
50 |
+
$return[] = $post_type;
|
51 |
+
|
52 |
+
}
|
53 |
+
|
54 |
+
// return
|
55 |
+
return $return;
|
56 |
+
|
57 |
+
}
|
58 |
+
|
59 |
/**
|
60 |
* acfe_get_post_type_objects
|
61 |
*
|
71 |
$return = array();
|
72 |
|
73 |
// get post types
|
74 |
+
$posts_types = acfe_get_post_types($args);
|
75 |
|
76 |
// loop
|
77 |
foreach($posts_types as $post_type){
|
100 |
*/
|
101 |
function acfe_get_pretty_post_statuses($posts_statuses = array()){
|
102 |
|
103 |
+
// vars
|
104 |
+
$ref = array();
|
105 |
+
$return = array();
|
106 |
+
|
107 |
// get post statuses
|
108 |
if(empty($posts_statuses)){
|
109 |
$posts_statuses = get_post_stati();
|
110 |
}
|
111 |
|
|
|
|
|
|
|
|
|
112 |
// loop
|
113 |
foreach($posts_statuses as $post_status){
|
114 |
|
includes/admin/compatibility.php
CHANGED
@@ -30,6 +30,7 @@ class acfe_admin_compatibility{
|
|
30 |
|
31 |
// current screen
|
32 |
add_action('current_screen', array($this, 'current_screen'));
|
|
|
33 |
|
34 |
}
|
35 |
|
@@ -219,6 +220,26 @@ class acfe_admin_compatibility{
|
|
219 |
|
220 |
}
|
221 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
}
|
223 |
|
224 |
new acfe_admin_compatibility();
|
30 |
|
31 |
// current screen
|
32 |
add_action('current_screen', array($this, 'current_screen'));
|
33 |
+
add_filter('acf/validate_field', array($this, 'validate_field'));
|
34 |
|
35 |
}
|
36 |
|
220 |
|
221 |
}
|
222 |
|
223 |
+
/**
|
224 |
+
* validate_field
|
225 |
+
*
|
226 |
+
* Change instructions to hint for appended field settings
|
227 |
+
*
|
228 |
+
* @param $field
|
229 |
+
*
|
230 |
+
* @return mixed
|
231 |
+
*/
|
232 |
+
function validate_field($field){
|
233 |
+
|
234 |
+
if(acf_maybe_get($field, '_appended') && acf_maybe_get($field, 'instructions')){
|
235 |
+
$field['hint'] = $field['instructions'];
|
236 |
+
$field['instructions'] = '';
|
237 |
+
}
|
238 |
+
|
239 |
+
return $field;
|
240 |
+
|
241 |
+
}
|
242 |
+
|
243 |
}
|
244 |
|
245 |
new acfe_admin_compatibility();
|
includes/admin/plugins.php
CHANGED
@@ -8,8 +8,8 @@ if(!class_exists('acfe_admin_plugins')):
|
|
8 |
|
9 |
class acfe_admin_plugins{
|
10 |
|
11 |
-
|
12 |
-
*
|
13 |
*/
|
14 |
function __construct(){
|
15 |
|
@@ -19,8 +19,13 @@ class acfe_admin_plugins{
|
|
19 |
|
20 |
}
|
21 |
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
24 |
*/
|
25 |
function install_plugins_tabs($tabs){
|
26 |
|
@@ -30,8 +35,13 @@ class acfe_admin_plugins{
|
|
30 |
|
31 |
}
|
32 |
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
35 |
*/
|
36 |
function install_plugins_table_api_args($args){
|
37 |
|
@@ -45,13 +55,11 @@ class acfe_admin_plugins{
|
|
45 |
|
46 |
}
|
47 |
|
48 |
-
|
49 |
-
*
|
50 |
*/
|
51 |
function install_plugins(){
|
52 |
-
|
53 |
display_plugins_table();
|
54 |
-
|
55 |
}
|
56 |
|
57 |
}
|
8 |
|
9 |
class acfe_admin_plugins{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
*/
|
14 |
function __construct(){
|
15 |
|
19 |
|
20 |
}
|
21 |
|
22 |
+
|
23 |
+
/**
|
24 |
+
* install_plugins_tabs
|
25 |
+
*
|
26 |
+
* @param $tabs
|
27 |
+
*
|
28 |
+
* @return mixed
|
29 |
*/
|
30 |
function install_plugins_tabs($tabs){
|
31 |
|
35 |
|
36 |
}
|
37 |
|
38 |
+
|
39 |
+
/**
|
40 |
+
* install_plugins_table_api_args
|
41 |
+
*
|
42 |
+
* @param $args
|
43 |
+
*
|
44 |
+
* @return mixed
|
45 |
*/
|
46 |
function install_plugins_table_api_args($args){
|
47 |
|
55 |
|
56 |
}
|
57 |
|
58 |
+
/**
|
59 |
+
* install_plugins
|
60 |
*/
|
61 |
function install_plugins(){
|
|
|
62 |
display_plugins_table();
|
|
|
63 |
}
|
64 |
|
65 |
}
|
includes/admin/settings.php
CHANGED
@@ -8,10 +8,14 @@ if(!class_exists('acfe_admin_settings')):
|
|
8 |
|
9 |
class acfe_admin_settings{
|
10 |
|
|
|
11 |
public $defaults = array();
|
12 |
public $updated = array();
|
13 |
public $fields = array();
|
14 |
|
|
|
|
|
|
|
15 |
function __construct(){
|
16 |
|
17 |
add_action('acf/init', array($this, 'acf_pre_init'), 1);
|
@@ -21,15 +25,17 @@ class acfe_admin_settings{
|
|
21 |
|
22 |
}
|
23 |
|
24 |
-
|
25 |
-
|
|
|
26 |
*/
|
27 |
function acf_pre_init(){
|
28 |
$this->defaults = acf()->settings;
|
29 |
}
|
30 |
|
31 |
-
|
32 |
-
|
|
|
33 |
*/
|
34 |
function acf_post_init(){
|
35 |
|
@@ -43,8 +49,9 @@ class acfe_admin_settings{
|
|
43 |
|
44 |
}
|
45 |
|
46 |
-
|
47 |
-
|
|
|
48 |
*/
|
49 |
function register_fields(){
|
50 |
|
@@ -222,6 +229,41 @@ class acfe_admin_settings{
|
|
222 |
'description' => 'Allows ACF to remove the default WP custom fields metabox. Defaults to true',
|
223 |
'category' => 'acf',
|
224 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
|
226 |
),
|
227 |
|
@@ -447,6 +489,7 @@ class acfe_admin_settings{
|
|
447 |
|
448 |
}
|
449 |
|
|
|
450 |
acf_new_instance('acfe_admin_settings');
|
451 |
|
452 |
endif;
|
@@ -455,10 +498,14 @@ if(!class_exists('acfe_admin_settings_ui')):
|
|
455 |
|
456 |
class acfe_admin_settings_ui{
|
457 |
|
|
|
458 |
public $defaults = array();
|
459 |
public $updated = array();
|
460 |
public $fields = array();
|
461 |
|
|
|
|
|
|
|
462 |
function __construct(){
|
463 |
|
464 |
add_action('admin_menu', array($this, 'admin_menu'));
|
@@ -467,8 +514,9 @@ class acfe_admin_settings_ui{
|
|
467 |
|
468 |
}
|
469 |
|
470 |
-
|
471 |
-
|
|
|
472 |
*/
|
473 |
function admin_menu(){
|
474 |
|
@@ -482,22 +530,25 @@ class acfe_admin_settings_ui{
|
|
482 |
|
483 |
}
|
484 |
|
485 |
-
|
486 |
-
|
|
|
487 |
*/
|
488 |
function menu_load(){
|
489 |
do_action('acfe/admin_settings/load');
|
490 |
}
|
491 |
|
492 |
-
|
493 |
-
|
|
|
494 |
*/
|
495 |
function menu_html(){
|
496 |
do_action('acfe/admin_settings/html');
|
497 |
}
|
498 |
|
499 |
-
|
500 |
-
|
|
|
501 |
*/
|
502 |
function load(){
|
503 |
|
@@ -514,6 +565,10 @@ class acfe_admin_settings_ui{
|
|
514 |
|
515 |
}
|
516 |
|
|
|
|
|
|
|
|
|
517 |
function admin_footer(){
|
518 |
?>
|
519 |
<script type="text/javascript">
|
@@ -524,8 +579,13 @@ class acfe_admin_settings_ui{
|
|
524 |
<?php
|
525 |
}
|
526 |
|
527 |
-
|
528 |
-
|
|
|
|
|
|
|
|
|
|
|
529 |
*/
|
530 |
function prepare_setting($setting){
|
531 |
|
@@ -600,25 +660,23 @@ class acfe_admin_settings_ui{
|
|
600 |
|
601 |
}
|
602 |
|
603 |
-
|
604 |
-
|
|
|
605 |
*/
|
606 |
function html(){
|
607 |
-
|
608 |
?>
|
609 |
<div class="wrap" id="acfe-admin-settings">
|
610 |
|
611 |
<h1><?php _e('Settings'); ?></h1>
|
612 |
|
613 |
<div id="poststuff">
|
614 |
-
|
615 |
<div id="post-body" class="metabox-holder">
|
616 |
|
617 |
<!-- Metabox -->
|
618 |
<div id="postbox-container-2" class="postbox-container">
|
619 |
|
620 |
<div class="postbox acf-postbox">
|
621 |
-
|
622 |
<div class="postbox-header">
|
623 |
<h2 class="hndle ui-sortable-handle"><span><?php _e('Settings'); ?></span></h2>
|
624 |
</div>
|
@@ -640,13 +698,16 @@ class acfe_admin_settings_ui{
|
|
640 |
</div>
|
641 |
|
642 |
</div>
|
643 |
-
|
644 |
</div>
|
645 |
|
646 |
</div>
|
647 |
<?php
|
648 |
}
|
649 |
|
|
|
|
|
|
|
|
|
650 |
function render_fields(){
|
651 |
|
652 |
foreach(array('ACF', 'ACFE', 'AutoSync', 'Modules', 'Fields') as $tab){
|
8 |
|
9 |
class acfe_admin_settings{
|
10 |
|
11 |
+
// vars
|
12 |
public $defaults = array();
|
13 |
public $updated = array();
|
14 |
public $fields = array();
|
15 |
|
16 |
+
/**
|
17 |
+
* construct
|
18 |
+
*/
|
19 |
function __construct(){
|
20 |
|
21 |
add_action('acf/init', array($this, 'acf_pre_init'), 1);
|
25 |
|
26 |
}
|
27 |
|
28 |
+
|
29 |
+
/**
|
30 |
+
* acf_pre_init
|
31 |
*/
|
32 |
function acf_pre_init(){
|
33 |
$this->defaults = acf()->settings;
|
34 |
}
|
35 |
|
36 |
+
|
37 |
+
/**
|
38 |
+
* acf_post_init
|
39 |
*/
|
40 |
function acf_post_init(){
|
41 |
|
49 |
|
50 |
}
|
51 |
|
52 |
+
|
53 |
+
/**
|
54 |
+
* register_fields
|
55 |
*/
|
56 |
function register_fields(){
|
57 |
|
229 |
'description' => 'Allows ACF to remove the default WP custom fields metabox. Defaults to true',
|
230 |
'category' => 'acf',
|
231 |
),
|
232 |
+
array(
|
233 |
+
'label' => 'Rest API enabled',
|
234 |
+
'name' => 'rest_api_enabled',
|
235 |
+
'type' => 'true_false',
|
236 |
+
'description' => 'Enables/disables the ACF REST API integration.. Defaults to true',
|
237 |
+
'category' => 'acf',
|
238 |
+
),
|
239 |
+
array(
|
240 |
+
'label' => 'Rest API format',
|
241 |
+
'name' => 'rest_api_format',
|
242 |
+
'type' => 'text',
|
243 |
+
'description' => 'Defines how ACF formats field values in the REST API. Defaults to light',
|
244 |
+
'category' => 'acf',
|
245 |
+
),
|
246 |
+
array(
|
247 |
+
'label' => 'Rest API Embed Links',
|
248 |
+
'name' => 'rest_api_embed_links',
|
249 |
+
'type' => 'true_false',
|
250 |
+
'description' => 'Enables/disables embed links for ACF fields in the REST API. Defaults to true',
|
251 |
+
'category' => 'acf',
|
252 |
+
),
|
253 |
+
array(
|
254 |
+
'label' => 'Preload Blocks',
|
255 |
+
'name' => 'preload_blocks',
|
256 |
+
'type' => 'true_false',
|
257 |
+
'description' => 'Allows ACF to preload the initial render html of ACF Blocks into the block editor. Defaults to true',
|
258 |
+
'category' => 'acf',
|
259 |
+
),
|
260 |
+
array(
|
261 |
+
'label' => 'Enable Shortcode',
|
262 |
+
'name' => 'enable_shortcode',
|
263 |
+
'type' => 'true_false',
|
264 |
+
'description' => 'Enable the ACF shortcode. Defaults to true',
|
265 |
+
'category' => 'acf',
|
266 |
+
),
|
267 |
|
268 |
),
|
269 |
|
489 |
|
490 |
}
|
491 |
|
492 |
+
// instantiate
|
493 |
acf_new_instance('acfe_admin_settings');
|
494 |
|
495 |
endif;
|
498 |
|
499 |
class acfe_admin_settings_ui{
|
500 |
|
501 |
+
// vars
|
502 |
public $defaults = array();
|
503 |
public $updated = array();
|
504 |
public $fields = array();
|
505 |
|
506 |
+
/**
|
507 |
+
* construct
|
508 |
+
*/
|
509 |
function __construct(){
|
510 |
|
511 |
add_action('admin_menu', array($this, 'admin_menu'));
|
514 |
|
515 |
}
|
516 |
|
517 |
+
|
518 |
+
/**
|
519 |
+
* admin_menu
|
520 |
*/
|
521 |
function admin_menu(){
|
522 |
|
530 |
|
531 |
}
|
532 |
|
533 |
+
|
534 |
+
/**
|
535 |
+
* menu_load
|
536 |
*/
|
537 |
function menu_load(){
|
538 |
do_action('acfe/admin_settings/load');
|
539 |
}
|
540 |
|
541 |
+
|
542 |
+
/**
|
543 |
+
* menu_html
|
544 |
*/
|
545 |
function menu_html(){
|
546 |
do_action('acfe/admin_settings/html');
|
547 |
}
|
548 |
|
549 |
+
|
550 |
+
/**
|
551 |
+
* load
|
552 |
*/
|
553 |
function load(){
|
554 |
|
565 |
|
566 |
}
|
567 |
|
568 |
+
|
569 |
+
/**
|
570 |
+
* admin_footer
|
571 |
+
*/
|
572 |
function admin_footer(){
|
573 |
?>
|
574 |
<script type="text/javascript">
|
579 |
<?php
|
580 |
}
|
581 |
|
582 |
+
|
583 |
+
/**
|
584 |
+
* prepare_setting
|
585 |
+
*
|
586 |
+
* @param $setting
|
587 |
+
*
|
588 |
+
* @return array
|
589 |
*/
|
590 |
function prepare_setting($setting){
|
591 |
|
660 |
|
661 |
}
|
662 |
|
663 |
+
|
664 |
+
/**
|
665 |
+
* html
|
666 |
*/
|
667 |
function html(){
|
|
|
668 |
?>
|
669 |
<div class="wrap" id="acfe-admin-settings">
|
670 |
|
671 |
<h1><?php _e('Settings'); ?></h1>
|
672 |
|
673 |
<div id="poststuff">
|
|
|
674 |
<div id="post-body" class="metabox-holder">
|
675 |
|
676 |
<!-- Metabox -->
|
677 |
<div id="postbox-container-2" class="postbox-container">
|
678 |
|
679 |
<div class="postbox acf-postbox">
|
|
|
680 |
<div class="postbox-header">
|
681 |
<h2 class="hndle ui-sortable-handle"><span><?php _e('Settings'); ?></span></h2>
|
682 |
</div>
|
698 |
</div>
|
699 |
|
700 |
</div>
|
|
|
701 |
</div>
|
702 |
|
703 |
</div>
|
704 |
<?php
|
705 |
}
|
706 |
|
707 |
+
|
708 |
+
/**
|
709 |
+
* render_fields
|
710 |
+
*/
|
711 |
function render_fields(){
|
712 |
|
713 |
foreach(array('ACF', 'ACFE', 'AutoSync', 'Modules', 'Fields') as $tab){
|
includes/admin/tools/block-types-export.php
CHANGED
@@ -4,14 +4,20 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(!acf_get_setting('acfe/modules/block_types'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_dynamic_block_types_export')):
|
12 |
|
13 |
class acfe_dynamic_block_types_export extends acfe_module_export{
|
14 |
|
|
|
|
|
|
|
|
|
|
|
15 |
function initialize(){
|
16 |
|
17 |
// vars
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(!acf_get_setting('acfe/modules/block_types')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_dynamic_block_types_export')):
|
13 |
|
14 |
class acfe_dynamic_block_types_export extends acfe_module_export{
|
15 |
|
16 |
+
/**
|
17 |
+
* initialize
|
18 |
+
*
|
19 |
+
* @return void
|
20 |
+
*/
|
21 |
function initialize(){
|
22 |
|
23 |
// vars
|
includes/admin/tools/block-types-import.php
CHANGED
@@ -4,14 +4,20 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(!acf_get_setting('acfe/modules/block_types'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_dynamic_block_types_import')):
|
12 |
|
13 |
class acfe_dynamic_block_types_import extends acfe_module_import{
|
14 |
|
|
|
|
|
|
|
|
|
|
|
15 |
function initialize(){
|
16 |
|
17 |
// vars
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(!acf_get_setting('acfe/modules/block_types')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_dynamic_block_types_import')):
|
13 |
|
14 |
class acfe_dynamic_block_types_import extends acfe_module_import{
|
15 |
|
16 |
+
/**
|
17 |
+
* initialize
|
18 |
+
*
|
19 |
+
* @return void
|
20 |
+
*/
|
21 |
function initialize(){
|
22 |
|
23 |
// vars
|
includes/admin/tools/forms-export.php
CHANGED
@@ -4,14 +4,20 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(!acf_get_setting('acfe/modules/forms'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_dynamic_forms_export')):
|
12 |
|
13 |
class acfe_dynamic_forms_export extends acfe_module_export{
|
14 |
|
|
|
|
|
|
|
|
|
|
|
15 |
function initialize(){
|
16 |
|
17 |
// vars
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(!acf_get_setting('acfe/modules/forms')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_dynamic_forms_export')):
|
13 |
|
14 |
class acfe_dynamic_forms_export extends acfe_module_export{
|
15 |
|
16 |
+
/**
|
17 |
+
* initialize
|
18 |
+
*
|
19 |
+
* @return void
|
20 |
+
*/
|
21 |
function initialize(){
|
22 |
|
23 |
// vars
|
includes/admin/tools/forms-import.php
CHANGED
@@ -4,14 +4,20 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(!acf_get_setting('acfe/modules/forms'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_dynamic_forms_import')):
|
12 |
|
13 |
class acfe_dynamic_forms_import extends acfe_module_import{
|
14 |
|
|
|
|
|
|
|
|
|
|
|
15 |
function initialize(){
|
16 |
|
17 |
// vars
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(!acf_get_setting('acfe/modules/forms')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_dynamic_forms_import')):
|
13 |
|
14 |
class acfe_dynamic_forms_import extends acfe_module_import{
|
15 |
|
16 |
+
/**
|
17 |
+
* initialize
|
18 |
+
*
|
19 |
+
* @return void
|
20 |
+
*/
|
21 |
function initialize(){
|
22 |
|
23 |
// vars
|
includes/admin/tools/options-pages-export.php
CHANGED
@@ -4,14 +4,20 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(!acf_get_setting('acfe/modules/options_pages'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_dynamic_options_pages_export')):
|
12 |
|
13 |
class acfe_dynamic_options_pages_export extends acfe_module_export{
|
14 |
|
|
|
|
|
|
|
|
|
|
|
15 |
function initialize(){
|
16 |
|
17 |
// vars
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(!acf_get_setting('acfe/modules/options_pages')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_dynamic_options_pages_export')):
|
13 |
|
14 |
class acfe_dynamic_options_pages_export extends acfe_module_export{
|
15 |
|
16 |
+
/**
|
17 |
+
* initialize
|
18 |
+
*
|
19 |
+
* @return void
|
20 |
+
*/
|
21 |
function initialize(){
|
22 |
|
23 |
// vars
|
includes/admin/tools/options-pages-import.php
CHANGED
@@ -4,14 +4,20 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(!acf_get_setting('acfe/modules/options_pages'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_dynamic_options_pages_import')):
|
12 |
|
13 |
class acfe_dynamic_options_pages_import extends acfe_module_import{
|
14 |
|
|
|
|
|
|
|
|
|
|
|
15 |
function initialize(){
|
16 |
|
17 |
// vars
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(!acf_get_setting('acfe/modules/options_pages')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_dynamic_options_pages_import')):
|
13 |
|
14 |
class acfe_dynamic_options_pages_import extends acfe_module_import{
|
15 |
|
16 |
+
/**
|
17 |
+
* initialize
|
18 |
+
*
|
19 |
+
* @return void
|
20 |
+
*/
|
21 |
function initialize(){
|
22 |
|
23 |
// vars
|
includes/admin/tools/post-types-export.php
CHANGED
@@ -4,14 +4,20 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(!acf_get_setting('acfe/modules/post_types'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_dynamic_post_types_export')):
|
12 |
|
13 |
class acfe_dynamic_post_types_export extends acfe_module_export{
|
14 |
|
|
|
|
|
|
|
|
|
|
|
15 |
function initialize(){
|
16 |
|
17 |
// vars
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(!acf_get_setting('acfe/modules/post_types')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_dynamic_post_types_export')):
|
13 |
|
14 |
class acfe_dynamic_post_types_export extends acfe_module_export{
|
15 |
|
16 |
+
/**
|
17 |
+
* initialize
|
18 |
+
*
|
19 |
+
* @return void
|
20 |
+
*/
|
21 |
function initialize(){
|
22 |
|
23 |
// vars
|
includes/admin/tools/post-types-import.php
CHANGED
@@ -4,14 +4,20 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(!acf_get_setting('acfe/modules/post_types'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_dynamic_post_types_import')):
|
12 |
|
13 |
class acfe_dynamic_post_types_import extends acfe_module_import{
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
15 |
function initialize(){
|
16 |
|
17 |
// vars
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(!acf_get_setting('acfe/modules/post_types')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_dynamic_post_types_import')):
|
13 |
|
14 |
class acfe_dynamic_post_types_import extends acfe_module_import{
|
15 |
+
|
16 |
+
/**
|
17 |
+
* initialize
|
18 |
+
*
|
19 |
+
* @return void
|
20 |
+
*/
|
21 |
function initialize(){
|
22 |
|
23 |
// vars
|
includes/admin/tools/taxonomies-export.php
CHANGED
@@ -4,14 +4,20 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(!acf_get_setting('acfe/modules/taxonomies'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_dynamic_taxonomies_export')):
|
12 |
|
13 |
class acfe_dynamic_taxonomies_export extends acfe_module_export{
|
14 |
|
|
|
|
|
|
|
|
|
|
|
15 |
function initialize(){
|
16 |
|
17 |
// vars
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(!acf_get_setting('acfe/modules/taxonomies')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_dynamic_taxonomies_export')):
|
13 |
|
14 |
class acfe_dynamic_taxonomies_export extends acfe_module_export{
|
15 |
|
16 |
+
/**
|
17 |
+
* initialize
|
18 |
+
*
|
19 |
+
* @return void
|
20 |
+
*/
|
21 |
function initialize(){
|
22 |
|
23 |
// vars
|
includes/admin/tools/taxonomies-import.php
CHANGED
@@ -4,14 +4,20 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(!acf_get_setting('acfe/modules/taxonomies'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_dynamic_taxonomies_import')):
|
12 |
|
13 |
class acfe_dynamic_taxonomies_import extends acfe_module_import{
|
14 |
|
|
|
|
|
|
|
|
|
|
|
15 |
function initialize(){
|
16 |
|
17 |
// vars
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(!acf_get_setting('acfe/modules/taxonomies')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_dynamic_taxonomies_import')):
|
13 |
|
14 |
class acfe_dynamic_taxonomies_import extends acfe_module_import{
|
15 |
|
16 |
+
/**
|
17 |
+
* initialize
|
18 |
+
*
|
19 |
+
* @return void
|
20 |
+
*/
|
21 |
function initialize(){
|
22 |
|
23 |
// vars
|
includes/compatibility.php
CHANGED
@@ -18,6 +18,7 @@ class acfe_compatibility{
|
|
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);
|
@@ -117,6 +118,27 @@ class acfe_compatibility{
|
|
117 |
|
118 |
}
|
119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
|
121 |
/**
|
122 |
* field_acfe_update
|
18 |
|
19 |
// fields
|
20 |
add_filter('acf/validate_field_group', array($this, 'field_group_location_list'), 20);
|
21 |
+
add_filter('acf/validate_field_group', array($this, 'field_group_instruction_tooltip'), 20);
|
22 |
add_filter('acf/validate_field', array($this, 'field_acfe_update'), 20);
|
23 |
add_filter('acf/validate_field/type=group', array($this, 'field_seamless_style'), 20);
|
24 |
add_filter('acf/validate_field/type=clone', array($this, 'field_seamless_style'), 20);
|
118 |
|
119 |
}
|
120 |
|
121 |
+
/**
|
122 |
+
* field_group_instruction_tooltip
|
123 |
+
*
|
124 |
+
* Tooltip old parameter name compatibility
|
125 |
+
*
|
126 |
+
* @param $field_group
|
127 |
+
*
|
128 |
+
* @since 0.8.7.5 (11/12/2020)
|
129 |
+
*
|
130 |
+
* @return mixed
|
131 |
+
*/
|
132 |
+
function field_group_instruction_tooltip($field_group){
|
133 |
+
|
134 |
+
if(acf_maybe_get($field_group, 'instruction_placement') === 'acfe_instructions_tooltip'){
|
135 |
+
$field_group['instruction_placement'] = __('Tooltip', 'acfe');
|
136 |
+
}
|
137 |
+
|
138 |
+
return $field_group;
|
139 |
+
|
140 |
+
}
|
141 |
+
|
142 |
|
143 |
/**
|
144 |
* field_acfe_update
|
includes/field-groups/field-group-advanced.php
CHANGED
@@ -4,14 +4,18 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(acfe_get_setting('modules/field_group_ui'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_field_group_advanced')):
|
12 |
|
13 |
class acfe_field_group_advanced{
|
14 |
|
|
|
|
|
|
|
15 |
function __construct(){
|
16 |
|
17 |
add_action('acf/field_group/admin_head', array($this, 'admin_head'), 5);
|
@@ -19,8 +23,9 @@ class acfe_field_group_advanced{
|
|
19 |
|
20 |
}
|
21 |
|
22 |
-
|
23 |
-
|
|
|
24 |
*/
|
25 |
function admin_head(){
|
26 |
|
@@ -33,8 +38,11 @@ class acfe_field_group_advanced{
|
|
33 |
|
34 |
}
|
35 |
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
38 |
*/
|
39 |
function render_settings($field_group){
|
40 |
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(acfe_get_setting('modules/field_group_ui')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_field_group_advanced')):
|
13 |
|
14 |
class acfe_field_group_advanced{
|
15 |
|
16 |
+
/**
|
17 |
+
* construct
|
18 |
+
*/
|
19 |
function __construct(){
|
20 |
|
21 |
add_action('acf/field_group/admin_head', array($this, 'admin_head'), 5);
|
23 |
|
24 |
}
|
25 |
|
26 |
+
|
27 |
+
/**
|
28 |
+
* admin_head
|
29 |
*/
|
30 |
function admin_head(){
|
31 |
|
38 |
|
39 |
}
|
40 |
|
41 |
+
|
42 |
+
/**
|
43 |
+
* render_settings
|
44 |
+
*
|
45 |
+
* @param $field_group
|
46 |
*/
|
47 |
function render_settings($field_group){
|
48 |
|
includes/field-groups/field-group-category.php
CHANGED
@@ -4,7 +4,7 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
if(!acf_get_setting('acfe/modules/categories')){
|
9 |
return;
|
10 |
}
|
@@ -13,6 +13,9 @@ if(!class_exists('acfe_field_group_category')):
|
|
13 |
|
14 |
class acfe_field_group_category{
|
15 |
|
|
|
|
|
|
|
16 |
function __construct(){
|
17 |
|
18 |
add_action('init', array($this, 'init'), 9);
|
@@ -29,6 +32,7 @@ class acfe_field_group_category{
|
|
29 |
|
30 |
}
|
31 |
|
|
|
32 |
/**
|
33 |
* init
|
34 |
*
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
if(!acf_get_setting('acfe/modules/categories')){
|
9 |
return;
|
10 |
}
|
13 |
|
14 |
class acfe_field_group_category{
|
15 |
|
16 |
+
/**
|
17 |
+
* construct
|
18 |
+
*/
|
19 |
function __construct(){
|
20 |
|
21 |
add_action('init', array($this, 'init'), 9);
|
32 |
|
33 |
}
|
34 |
|
35 |
+
|
36 |
/**
|
37 |
* init
|
38 |
*
|
includes/field-groups/field-group-display-title.php
CHANGED
@@ -7,15 +7,22 @@ if(!defined('ABSPATH')){
|
|
7 |
if(!class_exists('acfe_field_group_display_title')):
|
8 |
|
9 |
class acfe_field_group_display_title{
|
10 |
-
|
|
|
|
|
|
|
11 |
function __construct(){
|
12 |
|
13 |
add_filter('acfe/prepare_field_group', array($this, 'prepare_field_group'));
|
14 |
|
15 |
}
|
16 |
|
17 |
-
|
18 |
-
*
|
|
|
|
|
|
|
|
|
19 |
*/
|
20 |
function prepare_field_group($field_group){
|
21 |
|
7 |
if(!class_exists('acfe_field_group_display_title')):
|
8 |
|
9 |
class acfe_field_group_display_title{
|
10 |
+
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
add_filter('acfe/prepare_field_group', array($this, 'prepare_field_group'));
|
17 |
|
18 |
}
|
19 |
|
20 |
+
/**
|
21 |
+
* prepare_field_group
|
22 |
+
*
|
23 |
+
* @param $field_group
|
24 |
+
*
|
25 |
+
* @return mixed
|
26 |
*/
|
27 |
function prepare_field_group($field_group){
|
28 |
|
includes/field-groups/field-group-hide-on-screen.php
CHANGED
@@ -7,30 +7,40 @@ if(!defined('ABSPATH')){
|
|
7 |
if(!class_exists('acfe_field_group_hide_on_screen')):
|
8 |
|
9 |
class acfe_field_group_hide_on_screen{
|
10 |
-
|
|
|
|
|
|
|
11 |
function __construct(){
|
12 |
|
13 |
-
//
|
14 |
add_action('acf/field_group/admin_head', array($this, 'admin_head'));
|
15 |
|
16 |
-
//
|
17 |
add_action('acf/add_meta_boxes', array($this, 'acf_add_meta_boxes'), 10, 3);
|
18 |
add_action('wp_ajax_acf/ajax/check_screen', array($this, 'ajax_check_screen'), 9);
|
19 |
|
20 |
-
//
|
21 |
add_action('load-post.php', array($this, 'hide_block_editor'));
|
22 |
add_action('load-post-new.php', array($this, 'hide_block_editor'));
|
23 |
|
24 |
}
|
25 |
|
|
|
|
|
|
|
|
|
26 |
function admin_head(){
|
27 |
-
|
28 |
add_filter('acf/prepare_field/name=hide_on_screen', array($this, 'prepare_hide_on_screen'));
|
29 |
-
|
30 |
}
|
31 |
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
34 |
*/
|
35 |
function prepare_hide_on_screen($field){
|
36 |
|
@@ -55,9 +65,16 @@ class acfe_field_group_hide_on_screen{
|
|
55 |
|
56 |
}
|
57 |
|
58 |
-
|
59 |
-
|
|
|
|
|
|
|
60 |
* Fix ACF only which only use the first Field Group style
|
|
|
|
|
|
|
|
|
61 |
*/
|
62 |
function acf_add_meta_boxes($post_type, $post, $field_groups){
|
63 |
|
@@ -75,9 +92,11 @@ class acfe_field_group_hide_on_screen{
|
|
75 |
|
76 |
}
|
77 |
|
78 |
-
|
79 |
-
|
80 |
-
*
|
|
|
|
|
81 |
*/
|
82 |
function ajax_check_screen(){
|
83 |
|
@@ -124,8 +143,9 @@ class acfe_field_group_hide_on_screen{
|
|
124 |
|
125 |
}
|
126 |
|
127 |
-
|
128 |
-
|
|
|
129 |
*/
|
130 |
function hide_block_editor(){
|
131 |
|
@@ -135,20 +155,18 @@ class acfe_field_group_hide_on_screen{
|
|
135 |
// Restrict
|
136 |
$restricted = array('acf-field-group', 'attachment');
|
137 |
|
138 |
-
if(in_array($typenow, $restricted))
|
139 |
return;
|
|
|
140 |
|
141 |
$post_type = $typenow;
|
142 |
$post_id = 0;
|
143 |
|
144 |
if(isset( $_GET['post'])){
|
145 |
-
|
146 |
$post_id = (int) $_GET['post'];
|
147 |
|
148 |
}elseif(isset($_POST['post_ID'])){
|
149 |
-
|
150 |
$post_id = (int) $_POST['post_ID'];
|
151 |
-
|
152 |
}
|
153 |
|
154 |
$field_groups = acf_get_field_groups(array(
|
@@ -171,9 +189,7 @@ class acfe_field_group_hide_on_screen{
|
|
171 |
}
|
172 |
|
173 |
if($hide_block_editor){
|
174 |
-
|
175 |
add_filter('use_block_editor_for_post_type', '__return_false');
|
176 |
-
|
177 |
}
|
178 |
|
179 |
}
|
7 |
if(!class_exists('acfe_field_group_hide_on_screen')):
|
8 |
|
9 |
class acfe_field_group_hide_on_screen{
|
10 |
+
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
+
// field group
|
17 |
add_action('acf/field_group/admin_head', array($this, 'admin_head'));
|
18 |
|
19 |
+
// post metaboxes
|
20 |
add_action('acf/add_meta_boxes', array($this, 'acf_add_meta_boxes'), 10, 3);
|
21 |
add_action('wp_ajax_acf/ajax/check_screen', array($this, 'ajax_check_screen'), 9);
|
22 |
|
23 |
+
// hide block editor
|
24 |
add_action('load-post.php', array($this, 'hide_block_editor'));
|
25 |
add_action('load-post-new.php', array($this, 'hide_block_editor'));
|
26 |
|
27 |
}
|
28 |
|
29 |
+
|
30 |
+
/**
|
31 |
+
* admin_head
|
32 |
+
*/
|
33 |
function admin_head(){
|
|
|
34 |
add_filter('acf/prepare_field/name=hide_on_screen', array($this, 'prepare_hide_on_screen'));
|
|
|
35 |
}
|
36 |
|
37 |
+
|
38 |
+
/**
|
39 |
+
* prepare_hide_on_screen
|
40 |
+
*
|
41 |
+
* @param $field
|
42 |
+
*
|
43 |
+
* @return mixed
|
44 |
*/
|
45 |
function prepare_hide_on_screen($field){
|
46 |
|
65 |
|
66 |
}
|
67 |
|
68 |
+
|
69 |
+
/**
|
70 |
+
* acf_add_meta_boxes
|
71 |
+
*
|
72 |
+
* Apply all Field Groups styles
|
73 |
* Fix ACF only which only use the first Field Group style
|
74 |
+
*
|
75 |
+
* @param $post_type
|
76 |
+
* @param $post
|
77 |
+
* @param $field_groups
|
78 |
*/
|
79 |
function acf_add_meta_boxes($post_type, $post, $field_groups){
|
80 |
|
92 |
|
93 |
}
|
94 |
|
95 |
+
|
96 |
+
/**
|
97 |
+
* ajax_check_screen
|
98 |
+
*
|
99 |
+
* Merges hide on screen settings instead of using the first field group style only
|
100 |
*/
|
101 |
function ajax_check_screen(){
|
102 |
|
143 |
|
144 |
}
|
145 |
|
146 |
+
|
147 |
+
/**
|
148 |
+
* hide_block_editor
|
149 |
*/
|
150 |
function hide_block_editor(){
|
151 |
|
155 |
// Restrict
|
156 |
$restricted = array('acf-field-group', 'attachment');
|
157 |
|
158 |
+
if(in_array($typenow, $restricted)){
|
159 |
return;
|
160 |
+
}
|
161 |
|
162 |
$post_type = $typenow;
|
163 |
$post_id = 0;
|
164 |
|
165 |
if(isset( $_GET['post'])){
|
|
|
166 |
$post_id = (int) $_GET['post'];
|
167 |
|
168 |
}elseif(isset($_POST['post_ID'])){
|
|
|
169 |
$post_id = (int) $_POST['post_ID'];
|
|
|
170 |
}
|
171 |
|
172 |
$field_groups = acf_get_field_groups(array(
|
189 |
}
|
190 |
|
191 |
if($hide_block_editor){
|
|
|
192 |
add_filter('use_block_editor_for_post_type', '__return_false');
|
|
|
193 |
}
|
194 |
|
195 |
}
|
includes/field-groups/field-group-instruction-placement.php
CHANGED
@@ -8,48 +8,42 @@ if(!class_exists('acfe_field_group_instruction_placement')):
|
|
8 |
|
9 |
class acfe_field_group_instruction_placement{
|
10 |
|
|
|
|
|
|
|
11 |
function __construct(){
|
12 |
|
13 |
-
|
14 |
-
add_action('acf/field_group/admin_head', array($this, 'admin_head'));
|
15 |
-
add_filter('acf/validate_field_group', array($this, 'validate_tooltip_compatibility'), 20);
|
16 |
|
17 |
}
|
18 |
|
|
|
|
|
|
|
|
|
19 |
function admin_head(){
|
20 |
-
|
21 |
add_filter('acf/prepare_field/name=instruction_placement', array($this, 'prepare_instruction_placement'));
|
22 |
-
|
23 |
}
|
24 |
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
27 |
*/
|
28 |
function prepare_instruction_placement($field){
|
29 |
|
30 |
$field['choices'] = array_merge($field['choices'], array(
|
31 |
-
'above_field' => 'Above fields',
|
32 |
-
'tooltip'
|
33 |
));
|
34 |
|
35 |
return $field;
|
36 |
|
37 |
}
|
38 |
|
39 |
-
/*
|
40 |
-
* Instruction Placement: Tooltip 0.8.7.5 Compatibility
|
41 |
-
*/
|
42 |
-
function validate_tooltip_compatibility($field_group){
|
43 |
-
|
44 |
-
if(acf_maybe_get($field_group, 'instruction_placement') !== 'acfe_instructions_tooltip')
|
45 |
-
return $field_group;
|
46 |
-
|
47 |
-
$field_group['instruction_placement'] = 'tooltip';
|
48 |
-
|
49 |
-
return $field_group;
|
50 |
-
|
51 |
-
}
|
52 |
-
|
53 |
}
|
54 |
|
55 |
// initialize
|
8 |
|
9 |
class acfe_field_group_instruction_placement{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
+
add_action('acf/field_group/admin_head', array($this, 'admin_head'));
|
|
|
|
|
17 |
|
18 |
}
|
19 |
|
20 |
+
|
21 |
+
/**
|
22 |
+
* admin_head
|
23 |
+
*/
|
24 |
function admin_head(){
|
|
|
25 |
add_filter('acf/prepare_field/name=instruction_placement', array($this, 'prepare_instruction_placement'));
|
|
|
26 |
}
|
27 |
|
28 |
+
|
29 |
+
/**
|
30 |
+
* prepare_instruction_placement
|
31 |
+
*
|
32 |
+
* @param $field
|
33 |
+
*
|
34 |
+
* @return mixed
|
35 |
*/
|
36 |
function prepare_instruction_placement($field){
|
37 |
|
38 |
$field['choices'] = array_merge($field['choices'], array(
|
39 |
+
'above_field' => __('Above fields', 'acfe'),
|
40 |
+
'tooltip' => __('Tooltip', 'acfe')
|
41 |
));
|
42 |
|
43 |
return $field;
|
44 |
|
45 |
}
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
// initialize
|
includes/field-groups/field-group-meta.php
CHANGED
@@ -4,14 +4,18 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(acfe_get_setting('modules/field_group_ui'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_field_group_meta')):
|
12 |
|
13 |
class acfe_field_group_meta{
|
14 |
-
|
|
|
|
|
|
|
15 |
function __construct(){
|
16 |
|
17 |
add_action('acf/field_group/admin_head', array($this, 'admin_head'));
|
@@ -19,8 +23,9 @@ class acfe_field_group_meta{
|
|
19 |
|
20 |
}
|
21 |
|
|
|
22 |
/**
|
23 |
-
*
|
24 |
*/
|
25 |
function admin_head(){
|
26 |
|
@@ -30,14 +35,15 @@ class acfe_field_group_meta{
|
|
30 |
|
31 |
}
|
32 |
|
33 |
-
|
34 |
-
|
|
|
35 |
*/
|
36 |
function render_metabox(){
|
37 |
|
38 |
global $field_group;
|
39 |
|
40 |
-
//
|
41 |
acf_render_field_wrap(array(
|
42 |
'label' => __('Custom meta data'),
|
43 |
'name' => 'acfe_meta',
|
@@ -90,7 +96,7 @@ class acfe_field_group_meta{
|
|
90 |
)
|
91 |
));
|
92 |
|
93 |
-
//
|
94 |
acf_render_field_wrap(array(
|
95 |
'label' => __('Note'),
|
96 |
'name' => 'acfe_note',
|
@@ -104,7 +110,7 @@ class acfe_field_group_meta{
|
|
104 |
),
|
105 |
));
|
106 |
|
107 |
-
//
|
108 |
acf_render_field_wrap(array(
|
109 |
'label' => __('Field group data'),
|
110 |
'instructions' => __('View raw field group data, for development use'),
|
@@ -126,8 +132,11 @@ class acfe_field_group_meta{
|
|
126 |
<?php
|
127 |
}
|
128 |
|
129 |
-
|
130 |
-
|
|
|
|
|
|
|
131 |
*/
|
132 |
function render_data($field){
|
133 |
|
@@ -141,10 +150,14 @@ class acfe_field_group_meta{
|
|
141 |
}
|
142 |
|
143 |
$raw_field_group = get_post($field_group['ID']);
|
|
|
|
|
|
|
|
|
144 |
|
145 |
?>
|
146 |
-
<a href="#" class="acf-button button" data-
|
147 |
-
<div class="acfe-modal">
|
148 |
<div class="acfe-modal-spacer">
|
149 |
<pre style="margin-bottom:15px;"><?php print_r($field_group); ?></pre>
|
150 |
<pre><?php print_r($raw_field_group); ?></pre>
|
@@ -154,8 +167,9 @@ class acfe_field_group_meta{
|
|
154 |
|
155 |
}
|
156 |
|
157 |
-
|
158 |
-
|
|
|
159 |
*/
|
160 |
function prepare_meta(){
|
161 |
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(acfe_get_setting('modules/field_group_ui')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_field_group_meta')):
|
13 |
|
14 |
class acfe_field_group_meta{
|
15 |
+
|
16 |
+
/**
|
17 |
+
* construct
|
18 |
+
*/
|
19 |
function __construct(){
|
20 |
|
21 |
add_action('acf/field_group/admin_head', array($this, 'admin_head'));
|
23 |
|
24 |
}
|
25 |
|
26 |
+
|
27 |
/**
|
28 |
+
* admin_head
|
29 |
*/
|
30 |
function admin_head(){
|
31 |
|
35 |
|
36 |
}
|
37 |
|
38 |
+
|
39 |
+
/**
|
40 |
+
* render_metabox
|
41 |
*/
|
42 |
function render_metabox(){
|
43 |
|
44 |
global $field_group;
|
45 |
|
46 |
+
// meta
|
47 |
acf_render_field_wrap(array(
|
48 |
'label' => __('Custom meta data'),
|
49 |
'name' => 'acfe_meta',
|
96 |
)
|
97 |
));
|
98 |
|
99 |
+
// note
|
100 |
acf_render_field_wrap(array(
|
101 |
'label' => __('Note'),
|
102 |
'name' => 'acfe_note',
|
110 |
),
|
111 |
));
|
112 |
|
113 |
+
// data
|
114 |
acf_render_field_wrap(array(
|
115 |
'label' => __('Field group data'),
|
116 |
'instructions' => __('View raw field group data, for development use'),
|
132 |
<?php
|
133 |
}
|
134 |
|
135 |
+
|
136 |
+
/**
|
137 |
+
* render_data
|
138 |
+
*
|
139 |
+
* @param $field
|
140 |
*/
|
141 |
function render_data($field){
|
142 |
|
150 |
}
|
151 |
|
152 |
$raw_field_group = get_post($field_group['ID']);
|
153 |
+
|
154 |
+
// try to unserialize post content
|
155 |
+
$raw_field_group->post_content = maybe_unserialize($raw_field_group->post_content);
|
156 |
+
$raw_field_group->post_content = @map_deep($raw_field_group->post_content, '_wp_specialchars');
|
157 |
|
158 |
?>
|
159 |
+
<a href="#" class="acf-button button" data-modal><?php _e('Data', 'acfe'); ?></a>
|
160 |
+
<div class="acfe-modal" data-title="<?php echo $field_group['title']; ?>" data-footer="<?php _e('Close', 'acfe'); ?>">
|
161 |
<div class="acfe-modal-spacer">
|
162 |
<pre style="margin-bottom:15px;"><?php print_r($field_group); ?></pre>
|
163 |
<pre><?php print_r($raw_field_group); ?></pre>
|
167 |
|
168 |
}
|
169 |
|
170 |
+
|
171 |
+
/**
|
172 |
+
* prepare_meta
|
173 |
*/
|
174 |
function prepare_meta(){
|
175 |
|
includes/field-groups/field-group-permissions.php
CHANGED
@@ -7,45 +7,51 @@ if(!defined('ABSPATH')){
|
|
7 |
if(!class_exists('acfe_field_group_permissions')):
|
8 |
|
9 |
class acfe_field_group_permissions{
|
10 |
-
|
|
|
|
|
|
|
11 |
function __construct(){
|
12 |
|
13 |
add_filter('acfe/prepare_field_group', array($this, 'prepare_field_group'));
|
14 |
|
15 |
}
|
16 |
|
17 |
-
|
18 |
-
*
|
|
|
|
|
|
|
|
|
19 |
*/
|
20 |
function prepare_field_group($field_group){
|
21 |
|
22 |
-
|
|
|
|
|
23 |
return $field_group;
|
|
|
24 |
|
|
|
25 |
$current_user_roles = acfe_get_current_user_roles();
|
26 |
-
$render_field_group = false;
|
27 |
|
|
|
28 |
foreach($current_user_roles as $current_user_role){
|
29 |
|
30 |
foreach($field_group['acfe_permissions'] as $field_group_role){
|
31 |
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
|
38 |
}
|
39 |
|
40 |
-
if($render_field_group)
|
41 |
-
break;
|
42 |
-
|
43 |
}
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
return $field_group;
|
49 |
|
50 |
}
|
51 |
|
7 |
if(!class_exists('acfe_field_group_permissions')):
|
8 |
|
9 |
class acfe_field_group_permissions{
|
10 |
+
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
add_filter('acfe/prepare_field_group', array($this, 'prepare_field_group'));
|
17 |
|
18 |
}
|
19 |
|
20 |
+
/**
|
21 |
+
* prepare_field_group
|
22 |
+
*
|
23 |
+
* @param $field_group
|
24 |
+
*
|
25 |
+
* @return false|mixed
|
26 |
*/
|
27 |
function prepare_field_group($field_group){
|
28 |
|
29 |
+
// no permissions
|
30 |
+
// display normally
|
31 |
+
if(!acf_maybe_get($field_group, 'acfe_permissions')){
|
32 |
return $field_group;
|
33 |
+
}
|
34 |
|
35 |
+
// get current user roles
|
36 |
$current_user_roles = acfe_get_current_user_roles();
|
|
|
37 |
|
38 |
+
// loop roles
|
39 |
foreach($current_user_roles as $current_user_role){
|
40 |
|
41 |
foreach($field_group['acfe_permissions'] as $field_group_role){
|
42 |
|
43 |
+
// current user has the selected role
|
44 |
+
// display normally
|
45 |
+
if($field_group_role === $current_user_role){
|
46 |
+
return $field_group;
|
47 |
+
}
|
48 |
|
49 |
}
|
50 |
|
|
|
|
|
|
|
51 |
}
|
52 |
|
53 |
+
// hide field group
|
54 |
+
return false;
|
|
|
|
|
55 |
|
56 |
}
|
57 |
|
includes/field-groups/field-group.php
CHANGED
@@ -8,23 +8,28 @@ if(!class_exists('ACFE_Field_Group')):
|
|
8 |
|
9 |
class ACFE_Field_Group{
|
10 |
|
11 |
-
|
12 |
-
*
|
13 |
*/
|
14 |
function __construct(){
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
add_filter('acf/
|
19 |
-
add_filter('acf/get_field_types', array($this, 'reorder_field_types'));
|
20 |
|
21 |
}
|
22 |
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
25 |
*/
|
26 |
function reorder_field_types($groups){
|
27 |
|
|
|
28 |
foreach($groups as $group => &$fields){
|
29 |
asort($fields);
|
30 |
}
|
@@ -45,8 +50,9 @@ class ACFE_Field_Group{
|
|
45 |
|
46 |
}
|
47 |
|
48 |
-
|
49 |
-
|
|
|
50 |
*/
|
51 |
function admin_head(){
|
52 |
|
@@ -56,8 +62,11 @@ class ACFE_Field_Group{
|
|
56 |
|
57 |
}
|
58 |
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
61 |
*/
|
62 |
function submitbox($post){
|
63 |
|
@@ -83,21 +92,19 @@ class ACFE_Field_Group{
|
|
83 |
|
84 |
}
|
85 |
|
86 |
-
|
87 |
-
|
|
|
88 |
*/
|
89 |
function render_sidebar_metabox(){
|
90 |
|
91 |
-
//
|
92 |
global $field_group;
|
93 |
|
94 |
-
//
|
95 |
$has_enhanced_ui = acfe_get_setting('modules/field_group_ui') ? true : false;
|
96 |
|
97 |
-
|
98 |
-
/*
|
99 |
-
* Display Title
|
100 |
-
*/
|
101 |
if(!$has_enhanced_ui){
|
102 |
|
103 |
acf_render_field_wrap(array(
|
@@ -114,15 +121,14 @@ class ACFE_Field_Group{
|
|
114 |
|
115 |
}
|
116 |
|
117 |
-
|
118 |
-
* Sync available
|
119 |
-
*/
|
120 |
if(acfe_is_sync_available($field_group)){
|
121 |
|
122 |
$json_already_active = 0;
|
123 |
|
124 |
-
if(in_array('json', acf_maybe_get($field_group, 'acfe_autosync', array())))
|
125 |
$json_already_active = 1;
|
|
|
126 |
|
127 |
?>
|
128 |
<div class="acf-field" data-name="acfe_sync_available">
|
@@ -161,9 +167,7 @@ class ACFE_Field_Group{
|
|
161 |
|
162 |
}
|
163 |
|
164 |
-
|
165 |
-
* AutoSync: Get Local
|
166 |
-
*/
|
167 |
acf_enable_filter('local');
|
168 |
|
169 |
$json_file = acfe_get_local_json_file($field_group);
|
@@ -176,32 +180,24 @@ class ACFE_Field_Group{
|
|
176 |
|
177 |
acf_disable_filter('local');
|
178 |
|
179 |
-
|
180 |
-
* AutoSync: Values
|
181 |
-
*/
|
182 |
$acfe_autosync = (array) acf_maybe_get($field_group, 'acfe_autosync');
|
183 |
|
184 |
// Json
|
185 |
if($json_file){
|
186 |
-
|
187 |
if(!in_array('json', $acfe_autosync)){
|
188 |
$acfe_autosync[] = 'json';
|
189 |
}
|
190 |
-
|
191 |
}
|
192 |
|
193 |
// PHP
|
194 |
if($php_file){
|
195 |
-
|
196 |
if(!in_array('php', $acfe_autosync)){
|
197 |
$acfe_autosync[] = 'php';
|
198 |
}
|
199 |
-
|
200 |
}
|
201 |
|
202 |
-
|
203 |
-
* AutoSync: Choices
|
204 |
-
*/
|
205 |
$choices = array(
|
206 |
'php' => 'PHP',
|
207 |
'json' => 'JSON',
|
@@ -246,9 +242,7 @@ class ACFE_Field_Group{
|
|
246 |
|
247 |
}
|
248 |
|
249 |
-
|
250 |
-
* AutoSync
|
251 |
-
*/
|
252 |
acf_render_field_wrap(array(
|
253 |
'label' => __('Auto Sync'),
|
254 |
'instructions' => '',
|
@@ -263,9 +257,7 @@ class ACFE_Field_Group{
|
|
263 |
));
|
264 |
|
265 |
|
266 |
-
|
267 |
-
* Permissions
|
268 |
-
*/
|
269 |
if(!$has_enhanced_ui){
|
270 |
|
271 |
if(acf_maybe_get($field_group, 'acfe_permissions') || acf_is_filter_enabled('acfe/field_group/advanced')){
|
@@ -392,21 +384,30 @@ class ACFE_Field_Group{
|
|
392 |
<?php
|
393 |
}
|
394 |
|
|
|
395 |
/**
|
396 |
-
*
|
|
|
|
|
|
|
|
|
397 |
*/
|
398 |
function validate_default_autosync($field_group){
|
399 |
|
400 |
// validate screen
|
401 |
-
if(!acf_is_screen('acf-field-group'))
|
|
|
|
|
402 |
|
403 |
// only new field groups (location is empty on new field groups)
|
404 |
-
if(acf_maybe_get($field_group, 'location'))
|
|
|
|
|
405 |
|
406 |
-
//
|
407 |
$field_group['label_placement'] = 'left';
|
408 |
|
409 |
-
//
|
410 |
$acfe_autosync = array();
|
411 |
|
412 |
if(acf_get_setting('acfe/json_found', false)){
|
8 |
|
9 |
class ACFE_Field_Group{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
*/
|
14 |
function __construct(){
|
15 |
|
16 |
+
add_action('acf/field_group/admin_head', array($this, 'admin_head'));
|
17 |
+
add_filter('acf/validate_field_group', array($this, 'validate_default_autosync'));
|
18 |
+
add_filter('acf/get_field_types', array($this, 'reorder_field_types'));
|
|
|
19 |
|
20 |
}
|
21 |
|
22 |
+
|
23 |
+
/**
|
24 |
+
* reorder_field_types
|
25 |
+
*
|
26 |
+
* @param $groups
|
27 |
+
*
|
28 |
+
* @return array|mixed
|
29 |
*/
|
30 |
function reorder_field_types($groups){
|
31 |
|
32 |
+
// sort fields
|
33 |
foreach($groups as $group => &$fields){
|
34 |
asort($fields);
|
35 |
}
|
50 |
|
51 |
}
|
52 |
|
53 |
+
|
54 |
+
/**
|
55 |
+
* admin_head
|
56 |
*/
|
57 |
function admin_head(){
|
58 |
|
62 |
|
63 |
}
|
64 |
|
65 |
+
|
66 |
+
/**
|
67 |
+
* submitbox
|
68 |
+
*
|
69 |
+
* @param $post
|
70 |
*/
|
71 |
function submitbox($post){
|
72 |
|
92 |
|
93 |
}
|
94 |
|
95 |
+
|
96 |
+
/**
|
97 |
+
* render_sidebar_metabox
|
98 |
*/
|
99 |
function render_sidebar_metabox(){
|
100 |
|
101 |
+
// global
|
102 |
global $field_group;
|
103 |
|
104 |
+
// setting
|
105 |
$has_enhanced_ui = acfe_get_setting('modules/field_group_ui') ? true : false;
|
106 |
|
107 |
+
// display title
|
|
|
|
|
|
|
108 |
if(!$has_enhanced_ui){
|
109 |
|
110 |
acf_render_field_wrap(array(
|
121 |
|
122 |
}
|
123 |
|
124 |
+
// autosync available
|
|
|
|
|
125 |
if(acfe_is_sync_available($field_group)){
|
126 |
|
127 |
$json_already_active = 0;
|
128 |
|
129 |
+
if(in_array('json', acf_maybe_get($field_group, 'acfe_autosync', array()))){
|
130 |
$json_already_active = 1;
|
131 |
+
}
|
132 |
|
133 |
?>
|
134 |
<div class="acf-field" data-name="acfe_sync_available">
|
167 |
|
168 |
}
|
169 |
|
170 |
+
// autosync: get local
|
|
|
|
|
171 |
acf_enable_filter('local');
|
172 |
|
173 |
$json_file = acfe_get_local_json_file($field_group);
|
180 |
|
181 |
acf_disable_filter('local');
|
182 |
|
183 |
+
// autosync: values
|
|
|
|
|
184 |
$acfe_autosync = (array) acf_maybe_get($field_group, 'acfe_autosync');
|
185 |
|
186 |
// Json
|
187 |
if($json_file){
|
|
|
188 |
if(!in_array('json', $acfe_autosync)){
|
189 |
$acfe_autosync[] = 'json';
|
190 |
}
|
|
|
191 |
}
|
192 |
|
193 |
// PHP
|
194 |
if($php_file){
|
|
|
195 |
if(!in_array('php', $acfe_autosync)){
|
196 |
$acfe_autosync[] = 'php';
|
197 |
}
|
|
|
198 |
}
|
199 |
|
200 |
+
// autosync: choices
|
|
|
|
|
201 |
$choices = array(
|
202 |
'php' => 'PHP',
|
203 |
'json' => 'JSON',
|
242 |
|
243 |
}
|
244 |
|
245 |
+
// autosync
|
|
|
|
|
246 |
acf_render_field_wrap(array(
|
247 |
'label' => __('Auto Sync'),
|
248 |
'instructions' => '',
|
257 |
));
|
258 |
|
259 |
|
260 |
+
// permissions
|
|
|
|
|
261 |
if(!$has_enhanced_ui){
|
262 |
|
263 |
if(acf_maybe_get($field_group, 'acfe_permissions') || acf_is_filter_enabled('acfe/field_group/advanced')){
|
384 |
<?php
|
385 |
}
|
386 |
|
387 |
+
|
388 |
/**
|
389 |
+
* validate_default_autosync
|
390 |
+
*
|
391 |
+
* @param $field_group
|
392 |
+
*
|
393 |
+
* @return mixed
|
394 |
*/
|
395 |
function validate_default_autosync($field_group){
|
396 |
|
397 |
// validate screen
|
398 |
+
if(!acf_is_screen('acf-field-group')){
|
399 |
+
return $field_group;
|
400 |
+
}
|
401 |
|
402 |
// only new field groups (location is empty on new field groups)
|
403 |
+
if(acf_maybe_get($field_group, 'location')){
|
404 |
+
return $field_group;
|
405 |
+
}
|
406 |
|
407 |
+
// default label placement: Left
|
408 |
$field_group['label_placement'] = 'left';
|
409 |
|
410 |
+
// autoSync
|
411 |
$acfe_autosync = array();
|
412 |
|
413 |
if(acf_get_setting('acfe/json_found', false)){
|
includes/field-groups/field-groups-local.php
CHANGED
@@ -8,14 +8,15 @@ if(!class_exists('ACFE_Field_Groups_Local')):
|
|
8 |
|
9 |
class ACFE_Field_Groups_Local{
|
10 |
|
|
|
11 |
var $view = '';
|
12 |
var $local_field_groups = array();
|
13 |
var $autosync_field_groups = array();
|
14 |
var $old_version = false;
|
15 |
var $acfe_admin_field_groups = '';
|
16 |
|
17 |
-
|
18 |
-
*
|
19 |
*/
|
20 |
function __construct(){
|
21 |
|
@@ -24,47 +25,56 @@ class ACFE_Field_Groups_Local{
|
|
24 |
|
25 |
}
|
26 |
|
27 |
-
|
28 |
-
|
|
|
29 |
*/
|
30 |
function current_screen(){
|
31 |
|
32 |
-
//
|
33 |
-
if(!acf_is_screen('edit-acf-field-group'))
|
34 |
return;
|
|
|
35 |
|
36 |
-
//
|
37 |
-
if(acf_version_compare(acf_get_setting('version'), '<', '5.9'))
|
38 |
$this->old_version = true;
|
|
|
39 |
|
40 |
-
//
|
41 |
$this->acfe_admin_field_groups = acf_get_instance('ACFE_Field_Groups');
|
42 |
$this->view = $this->acfe_admin_field_groups->view;
|
43 |
|
44 |
-
//
|
45 |
add_filter('views_edit-acf-field-group', array($this, 'views'), 20);
|
46 |
|
47 |
if($this->view === 'acfe-local'){
|
48 |
|
49 |
-
add_filter('admin_footer',
|
50 |
-
add_filter('bulk_actions-edit-acf-field-group',
|
51 |
-
add_filter('handle_bulk_actions-edit-acf-field-group',
|
52 |
|
53 |
}
|
54 |
|
55 |
}
|
56 |
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
59 |
*/
|
60 |
function views($views){
|
61 |
|
62 |
-
//
|
63 |
$count = count($this->get_local_field_groups());
|
64 |
|
65 |
-
//
|
66 |
-
if($count === 0)
|
67 |
return $views;
|
|
|
68 |
|
69 |
$views['acfe-local'] = sprintf(
|
70 |
'<a %s href="%s">%s <span class="count">(%s)</span></a>',
|
@@ -90,8 +100,9 @@ class ACFE_Field_Groups_Local{
|
|
90 |
|
91 |
}
|
92 |
|
93 |
-
|
94 |
-
|
|
|
95 |
*/
|
96 |
function admin_footer(){
|
97 |
|
@@ -116,11 +127,13 @@ class ACFE_Field_Groups_Local{
|
|
116 |
|
117 |
}
|
118 |
|
119 |
-
if(acf_get_setting('acfe/php'))
|
120 |
$columns[] = 'acfe-autosync-php';
|
|
|
121 |
|
122 |
-
if(acf_get_setting('json'))
|
123 |
$columns[] = 'acfe-autosync-json';
|
|
|
124 |
|
125 |
?>
|
126 |
<script type="text/html" id="tmpl-acfe-local-tbody">
|
@@ -215,8 +228,13 @@ class ACFE_Field_Groups_Local{
|
|
215 |
|
216 |
}
|
217 |
|
218 |
-
|
219 |
-
|
|
|
|
|
|
|
|
|
|
|
220 |
*/
|
221 |
function bulk_actions($actions){
|
222 |
|
@@ -230,13 +248,21 @@ class ACFE_Field_Groups_Local{
|
|
230 |
|
231 |
}
|
232 |
|
233 |
-
|
234 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
*/
|
236 |
function handle_bulk_actions($redirect, $action, $post_ids){
|
237 |
|
238 |
-
if(!isset($_REQUEST['post']) || empty($_REQUEST['post']))
|
239 |
return $redirect;
|
|
|
240 |
|
241 |
// PHP
|
242 |
if($action === 'acfe_local_php'){
|
@@ -275,30 +301,39 @@ class ACFE_Field_Groups_Local{
|
|
275 |
|
276 |
}
|
277 |
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
function get_local_field_groups(){
|
279 |
|
280 |
$local_field_groups = acf_get_local_field_groups();
|
281 |
|
282 |
-
if(empty($local_field_groups))
|
283 |
return array();
|
|
|
284 |
|
285 |
$locals = array();
|
286 |
|
287 |
foreach($local_field_groups as $field_group){
|
288 |
|
289 |
// local PHP
|
290 |
-
if(acf_maybe_get($field_group, 'local') !== 'php')
|
291 |
continue;
|
|
|
292 |
|
293 |
-
//
|
294 |
-
if(!acfe_is_super_dev() && in_array($field_group['key'], acfe_get_setting('reserved_field_groups', array())))
|
295 |
continue;
|
|
|
296 |
|
297 |
$locals[] = $field_group;
|
298 |
|
299 |
}
|
300 |
|
301 |
-
//
|
302 |
$desync_php_field_groups = acfe_get_desync_php_field_groups();
|
303 |
|
304 |
foreach($desync_php_field_groups as $file_key => $file_path){
|
@@ -311,8 +346,9 @@ class ACFE_Field_Groups_Local{
|
|
311 |
}
|
312 |
|
313 |
$order = 'ASC';
|
314 |
-
if(isset($_REQUEST['orderby']) && $_REQUEST['orderby'] === 'title' && isset($_REQUEST['order']) && $_REQUEST['order'] === 'desc')
|
315 |
$order = 'DESC';
|
|
|
316 |
|
317 |
// Sort Title ASC
|
318 |
if($order === 'ASC'){
|
@@ -341,6 +377,12 @@ acf_new_instance('ACFE_Field_Groups_Local');
|
|
341 |
|
342 |
endif;
|
343 |
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
function acfe_get_desync_php_field_groups(){
|
345 |
|
346 |
$file_field_groups = acfe_get_local_php_files();
|
8 |
|
9 |
class ACFE_Field_Groups_Local{
|
10 |
|
11 |
+
// vars
|
12 |
var $view = '';
|
13 |
var $local_field_groups = array();
|
14 |
var $autosync_field_groups = array();
|
15 |
var $old_version = false;
|
16 |
var $acfe_admin_field_groups = '';
|
17 |
|
18 |
+
/**
|
19 |
+
* construct
|
20 |
*/
|
21 |
function __construct(){
|
22 |
|
25 |
|
26 |
}
|
27 |
|
28 |
+
|
29 |
+
/**
|
30 |
+
* current_screen
|
31 |
*/
|
32 |
function current_screen(){
|
33 |
|
34 |
+
// bail early if not field groups admin page.
|
35 |
+
if(!acf_is_screen('edit-acf-field-group')){
|
36 |
return;
|
37 |
+
}
|
38 |
|
39 |
+
// old Compatibility
|
40 |
+
if(acf_version_compare(acf_get_setting('version'), '<', '5.9')){
|
41 |
$this->old_version = true;
|
42 |
+
}
|
43 |
|
44 |
+
// get acf instance
|
45 |
$this->acfe_admin_field_groups = acf_get_instance('ACFE_Field_Groups');
|
46 |
$this->view = $this->acfe_admin_field_groups->view;
|
47 |
|
48 |
+
// hooks
|
49 |
add_filter('views_edit-acf-field-group', array($this, 'views'), 20);
|
50 |
|
51 |
if($this->view === 'acfe-local'){
|
52 |
|
53 |
+
add_filter('admin_footer', array($this, 'admin_footer'));
|
54 |
+
add_filter('bulk_actions-edit-acf-field-group', array($this, 'bulk_actions'));
|
55 |
+
add_filter('handle_bulk_actions-edit-acf-field-group', array($this, 'handle_bulk_actions'), 10, 3);
|
56 |
|
57 |
}
|
58 |
|
59 |
}
|
60 |
|
61 |
+
|
62 |
+
/**
|
63 |
+
* views
|
64 |
+
*
|
65 |
+
* @param $views
|
66 |
+
*
|
67 |
+
* @return mixed
|
68 |
*/
|
69 |
function views($views){
|
70 |
|
71 |
+
// total
|
72 |
$count = count($this->get_local_field_groups());
|
73 |
|
74 |
+
// bail early
|
75 |
+
if($count === 0){
|
76 |
return $views;
|
77 |
+
}
|
78 |
|
79 |
$views['acfe-local'] = sprintf(
|
80 |
'<a %s href="%s">%s <span class="count">(%s)</span></a>',
|
100 |
|
101 |
}
|
102 |
|
103 |
+
|
104 |
+
/**
|
105 |
+
* admin_footer
|
106 |
*/
|
107 |
function admin_footer(){
|
108 |
|
127 |
|
128 |
}
|
129 |
|
130 |
+
if(acf_get_setting('acfe/php')){
|
131 |
$columns[] = 'acfe-autosync-php';
|
132 |
+
}
|
133 |
|
134 |
+
if(acf_get_setting('json')){
|
135 |
$columns[] = 'acfe-autosync-json';
|
136 |
+
}
|
137 |
|
138 |
?>
|
139 |
<script type="text/html" id="tmpl-acfe-local-tbody">
|
228 |
|
229 |
}
|
230 |
|
231 |
+
|
232 |
+
/**
|
233 |
+
* bulk_actions
|
234 |
+
*
|
235 |
+
* @param $actions
|
236 |
+
*
|
237 |
+
* @return array
|
238 |
*/
|
239 |
function bulk_actions($actions){
|
240 |
|
248 |
|
249 |
}
|
250 |
|
251 |
+
|
252 |
+
/**
|
253 |
+
* handle_bulk_actions
|
254 |
+
*
|
255 |
+
* @param $redirect
|
256 |
+
* @param $action
|
257 |
+
* @param $post_ids
|
258 |
+
*
|
259 |
+
* @return mixed|void
|
260 |
*/
|
261 |
function handle_bulk_actions($redirect, $action, $post_ids){
|
262 |
|
263 |
+
if(!isset($_REQUEST['post']) || empty($_REQUEST['post'])){
|
264 |
return $redirect;
|
265 |
+
}
|
266 |
|
267 |
// PHP
|
268 |
if($action === 'acfe_local_php'){
|
301 |
|
302 |
}
|
303 |
|
304 |
+
|
305 |
+
/**
|
306 |
+
* get_local_field_groups
|
307 |
+
*
|
308 |
+
* @return array
|
309 |
+
*/
|
310 |
function get_local_field_groups(){
|
311 |
|
312 |
$local_field_groups = acf_get_local_field_groups();
|
313 |
|
314 |
+
if(empty($local_field_groups)){
|
315 |
return array();
|
316 |
+
}
|
317 |
|
318 |
$locals = array();
|
319 |
|
320 |
foreach($local_field_groups as $field_group){
|
321 |
|
322 |
// local PHP
|
323 |
+
if(acf_maybe_get($field_group, 'local') !== 'php'){
|
324 |
continue;
|
325 |
+
}
|
326 |
|
327 |
+
// exclude acfe field groups
|
328 |
+
if(!acfe_is_super_dev() && in_array($field_group['key'], acfe_get_setting('reserved_field_groups', array()))){
|
329 |
continue;
|
330 |
+
}
|
331 |
|
332 |
$locals[] = $field_group;
|
333 |
|
334 |
}
|
335 |
|
336 |
+
// get desync php field groups
|
337 |
$desync_php_field_groups = acfe_get_desync_php_field_groups();
|
338 |
|
339 |
foreach($desync_php_field_groups as $file_key => $file_path){
|
346 |
}
|
347 |
|
348 |
$order = 'ASC';
|
349 |
+
if(isset($_REQUEST['orderby']) && $_REQUEST['orderby'] === 'title' && isset($_REQUEST['order']) && $_REQUEST['order'] === 'desc'){
|
350 |
$order = 'DESC';
|
351 |
+
}
|
352 |
|
353 |
// Sort Title ASC
|
354 |
if($order === 'ASC'){
|
377 |
|
378 |
endif;
|
379 |
|
380 |
+
|
381 |
+
/**
|
382 |
+
* acfe_get_desync_php_field_groups
|
383 |
+
*
|
384 |
+
* @return array
|
385 |
+
*/
|
386 |
function acfe_get_desync_php_field_groups(){
|
387 |
|
388 |
$file_field_groups = acfe_get_local_php_files();
|
includes/field-groups/field-groups.php
CHANGED
@@ -8,43 +8,44 @@ if(!class_exists('ACFE_Field_Groups')):
|
|
8 |
|
9 |
class ACFE_Field_Groups{
|
10 |
|
|
|
11 |
var $view = '';
|
12 |
var $sync = '';
|
13 |
var $old_version = false;
|
14 |
|
15 |
-
|
16 |
-
*
|
17 |
*/
|
18 |
function __construct(){
|
19 |
|
20 |
-
// Actions
|
21 |
add_action('current_screen', array($this, 'current_screen'));
|
22 |
add_action('acf/add_meta_boxes', array($this, 'seamless_metabox'), 10, 3);
|
23 |
|
24 |
}
|
25 |
|
26 |
-
|
27 |
-
|
|
|
28 |
*/
|
29 |
function current_screen(){
|
30 |
|
31 |
-
//
|
32 |
if(!acf_is_screen('edit-acf-field-group')){
|
33 |
return;
|
34 |
}
|
35 |
|
36 |
-
//
|
37 |
if(acf_version_compare(acf_get_setting('version'), '<', '5.9')){
|
38 |
$this->old_version = true;
|
39 |
}
|
40 |
|
41 |
-
//
|
42 |
if($this->old_version){
|
43 |
|
44 |
$this->view = isset($_GET['post_status']) ? sanitize_text_field($_GET['post_status']) : '';
|
45 |
$this->sync = $this->get_sync_compatibility();
|
46 |
|
47 |
-
//
|
48 |
}else{
|
49 |
|
50 |
$this->view = acf_get_instance('ACF_Admin_Field_Groups')->view;
|
@@ -52,7 +53,7 @@ class ACFE_Field_Groups{
|
|
52 |
|
53 |
}
|
54 |
|
55 |
-
//
|
56 |
add_filter('manage_edit-acf-field-group_columns', array($this, 'table_columns'), 20);
|
57 |
add_action('manage_acf-field-group_posts_custom_column', array($this, 'table_columns_html'), 10, 2);
|
58 |
|
@@ -71,25 +72,31 @@ class ACFE_Field_Groups{
|
|
71 |
|
72 |
}
|
73 |
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
76 |
*/
|
77 |
function table_columns($columns){
|
78 |
|
79 |
switch($this->view){
|
80 |
|
81 |
-
//
|
82 |
-
case('sync'):
|
83 |
-
|
84 |
acfe_unset($columns, 'acf-field-group-category');
|
|
|
85 |
|
86 |
-
|
87 |
|
88 |
-
//
|
89 |
-
case('acfe-local'):
|
90 |
|
91 |
if($this->old_version){
|
92 |
-
|
93 |
$columns = array(
|
94 |
'cb' => '<input type="checkbox" />',
|
95 |
'title' => __('Title', 'acf'),
|
@@ -98,9 +105,9 @@ class ACFE_Field_Groups{
|
|
98 |
'acfe-location' => __('Location', 'acf'),
|
99 |
'acfe-load' => __('Load', 'acf'),
|
100 |
);
|
101 |
-
|
102 |
}else{
|
103 |
-
|
104 |
$columns = array(
|
105 |
'cb' => '<input type="checkbox" />',
|
106 |
'title' => __('Title', 'acf'),
|
@@ -109,35 +116,41 @@ class ACFE_Field_Groups{
|
|
109 |
'acf-location' => __('Location', 'acf'),
|
110 |
'acfe-load' => __('Load', 'acf'),
|
111 |
);
|
112 |
-
|
113 |
}
|
114 |
|
115 |
-
if(acf_get_setting('acfe/php'))
|
116 |
$columns['acfe-autosync-php'] = __('PHP Sync');
|
|
|
117 |
|
118 |
-
if(acf_get_setting('json'))
|
119 |
$columns['acfe-autosync-json'] = __('Json Sync', 'acf');
|
|
|
|
|
|
|
120 |
|
121 |
-
|
122 |
|
123 |
-
//
|
124 |
-
default:
|
125 |
|
126 |
-
//
|
127 |
if($this->old_version){
|
128 |
-
|
129 |
acfe_unset($columns, 'acf-fg-status');
|
130 |
-
|
131 |
$columns['acfe-location'] = __('Location', 'acf');
|
132 |
$columns['acfe-load'] = __('Load', 'acf');
|
133 |
|
134 |
-
if(acf_get_setting('acfe/php'))
|
135 |
$columns['acfe-autosync-php'] = __('PHP');
|
|
|
136 |
|
137 |
-
if(acf_get_setting('json'))
|
138 |
$columns['acfe-autosync-json'] = __('Json');
|
|
|
139 |
|
140 |
-
//
|
141 |
}else{
|
142 |
|
143 |
// Re-order
|
@@ -151,15 +164,17 @@ class ACFE_Field_Groups{
|
|
151 |
|
152 |
$columns['acfe-load'] = __('Load', 'acf');
|
153 |
|
154 |
-
if(acf_get_setting('acfe/php'))
|
155 |
$columns['acfe-autosync-php'] = __('PHP');
|
|
|
156 |
|
157 |
-
if(acf_get_setting('json'))
|
158 |
$columns['acfe-autosync-json'] = __('Json', 'acf');
|
|
|
159 |
|
160 |
}
|
161 |
|
162 |
-
//
|
163 |
if(isset($columns['acf-field-group-category'])){
|
164 |
|
165 |
$categories_count = get_terms(array(
|
@@ -168,12 +183,15 @@ class ACFE_Field_Groups{
|
|
168 |
'fields' => 'count'
|
169 |
));
|
170 |
|
171 |
-
if(empty($categories_count))
|
172 |
unset($columns['acf-field-group-category']);
|
|
|
173 |
|
174 |
}
|
|
|
|
|
175 |
|
176 |
-
|
177 |
|
178 |
}
|
179 |
|
@@ -181,72 +199,81 @@ class ACFE_Field_Groups{
|
|
181 |
|
182 |
}
|
183 |
|
184 |
-
|
185 |
-
|
|
|
|
|
|
|
|
|
186 |
*/
|
187 |
function table_columns_html($column, $post_id){
|
188 |
|
189 |
$field_group = acf_get_field_group($post_id);
|
190 |
|
191 |
-
if(!$field_group)
|
192 |
return;
|
|
|
193 |
|
194 |
$this->render_table_column($column, $field_group);
|
195 |
|
196 |
}
|
197 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
function render_table_column($column, $field_group){
|
199 |
|
200 |
switch($column){
|
201 |
|
202 |
-
//
|
203 |
-
case 'acfe-source':
|
204 |
-
|
205 |
$this->render_admin_table_column_source_html($field_group);
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
//
|
210 |
-
case 'acfe-count':
|
211 |
-
|
212 |
echo esc_html( acf_get_field_count($field_group));
|
213 |
-
|
214 |
-
|
215 |
|
216 |
-
//
|
217 |
-
case 'acfe-location':
|
218 |
-
|
219 |
acfe_render_field_group_locations_html($field_group);
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
//
|
224 |
-
case 'acfe-load':
|
225 |
-
|
226 |
$this->render_admin_table_column_load_html($field_group);
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
//
|
231 |
-
case 'acfe-autosync-php':
|
232 |
-
|
233 |
$this->render_admin_table_column_php_html($field_group);
|
234 |
-
|
235 |
-
|
236 |
|
237 |
-
//
|
238 |
-
case 'acfe-autosync-json':
|
239 |
-
|
240 |
$this->render_admin_table_column_json_html($field_group);
|
241 |
-
|
242 |
-
|
243 |
|
244 |
}
|
245 |
|
246 |
}
|
247 |
|
248 |
-
|
249 |
-
|
|
|
|
|
|
|
250 |
*/
|
251 |
function render_admin_table_column_source_html($field_group){
|
252 |
|
@@ -277,8 +304,11 @@ class ACFE_Field_Groups{
|
|
277 |
|
278 |
}
|
279 |
|
280 |
-
|
281 |
-
|
|
|
|
|
|
|
282 |
*/
|
283 |
function render_admin_table_column_load_html($field_group){
|
284 |
|
@@ -287,25 +317,24 @@ class ACFE_Field_Groups{
|
|
287 |
|
288 |
// PHP
|
289 |
if(isset($php[$field_group['key']]) || acf_maybe_get($local_field_group, 'local') === 'php'){
|
290 |
-
|
291 |
echo '<span>php</span>';
|
292 |
|
293 |
// Json
|
294 |
}elseif(acf_maybe_get($local_field_group, 'local') === 'json'){
|
295 |
-
|
296 |
echo '<span>Json</span>';
|
297 |
|
298 |
// DB
|
299 |
}else{
|
300 |
-
|
301 |
echo '<span>DB</span>';
|
302 |
-
|
303 |
}
|
304 |
|
305 |
}
|
306 |
|
307 |
-
|
308 |
-
|
|
|
|
|
|
|
309 |
*/
|
310 |
function render_admin_table_column_php_html($field_group){
|
311 |
|
@@ -327,11 +356,13 @@ class ACFE_Field_Groups{
|
|
327 |
|
328 |
$icons = array();
|
329 |
|
330 |
-
if($return['icon'])
|
331 |
$icons[] = '<span class="dashicons dashicons-' . $return['icon'] . '"></span>';
|
|
|
332 |
|
333 |
-
if($return['warning'])
|
334 |
$icons[] = '<span class="dashicons dashicons-warning"></span>';
|
|
|
335 |
|
336 |
?>
|
337 |
<span <?php echo acf_esc_attrs($wrapper); ?>>
|
@@ -349,6 +380,14 @@ class ACFE_Field_Groups{
|
|
349 |
|
350 |
}
|
351 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
function get_php_data($field_group){
|
353 |
|
354 |
$return = array(
|
@@ -430,8 +469,11 @@ class ACFE_Field_Groups{
|
|
430 |
|
431 |
}
|
432 |
|
433 |
-
|
434 |
-
|
|
|
|
|
|
|
435 |
*/
|
436 |
function render_admin_table_column_json_html($field_group){
|
437 |
|
@@ -441,23 +483,24 @@ class ACFE_Field_Groups{
|
|
441 |
'class' => ''
|
442 |
);
|
443 |
|
444 |
-
if($return['class'])
|
445 |
$wrapper['class'] = $return['class'];
|
|
|
446 |
|
447 |
if($return['message']){
|
448 |
-
|
449 |
$wrapper['class'] .= ' acf-js-tooltip';
|
450 |
$wrapper['title'] = $return['message'];
|
451 |
-
|
452 |
}
|
453 |
|
454 |
$icons = array();
|
455 |
|
456 |
-
if($return['icon'])
|
457 |
$icons[] = '<span class="dashicons dashicons-' . $return['icon'] . '"></span>';
|
|
|
458 |
|
459 |
-
if($return['warning'])
|
460 |
$icons[] = '<span class="dashicons dashicons-warning"></span>';
|
|
|
461 |
|
462 |
?>
|
463 |
<span <?php echo acf_esc_attrs($wrapper); ?>>
|
@@ -475,6 +518,14 @@ class ACFE_Field_Groups{
|
|
475 |
|
476 |
}
|
477 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
478 |
function get_json_data($field_group){
|
479 |
|
480 |
$return = array(
|
@@ -588,28 +639,40 @@ class ACFE_Field_Groups{
|
|
588 |
|
589 |
}
|
590 |
|
591 |
-
|
592 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
593 |
*/
|
594 |
function default_hidden_columns($hidden, $screen){
|
595 |
|
596 |
$hidden[] = 'acf-description';
|
597 |
-
|
598 |
return $hidden;
|
599 |
|
600 |
}
|
601 |
|
602 |
-
|
603 |
-
|
|
|
|
|
|
|
604 |
*/
|
605 |
function posts_per_page(){
|
606 |
-
|
607 |
return 999;
|
608 |
-
|
609 |
}
|
610 |
|
611 |
-
|
612 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
613 |
*/
|
614 |
function row_actions($actions, $post){
|
615 |
|
@@ -629,51 +692,51 @@ class ACFE_Field_Groups{
|
|
629 |
|
630 |
}
|
631 |
|
632 |
-
|
633 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
634 |
*/
|
635 |
function post_states($states, $post){
|
636 |
|
637 |
-
//
|
638 |
$field_group = acf_get_field_group($post->ID);
|
639 |
|
640 |
-
//
|
641 |
if($this->old_version){
|
642 |
|
643 |
-
//
|
644 |
if($post->post_status === 'acf-disabled'){
|
645 |
-
|
646 |
$states['acf-disabled'] = '<span class="dashicons dashicons-hidden acf-js-tooltip" title="' . _x('Disabled', 'post status', 'acf') . '"></span>';
|
647 |
-
|
648 |
}
|
649 |
|
650 |
-
//
|
651 |
}else{
|
652 |
|
653 |
if(isset($states['acf-disabled'])){
|
654 |
-
|
655 |
unset($states['acf-disabled']);
|
656 |
$states['acf-disabled'] = '<span class="dashicons dashicons-hidden acf-js-tooltip" title="' . _x('Disabled', 'post status', 'acf') . '"></span>';
|
657 |
-
|
658 |
}
|
659 |
|
660 |
}
|
661 |
|
662 |
-
//
|
663 |
$display_title = acf_maybe_get($field_group, 'acfe_display_title');
|
664 |
|
665 |
if(!empty($display_title)){
|
666 |
-
|
667 |
$states['acfe-title'] = '<span class="acf-js-tooltip" title="' . __('Alternative title', 'acf') . '">' . $display_title . '</span>';
|
668 |
-
|
669 |
}
|
670 |
|
671 |
return $states;
|
672 |
|
673 |
}
|
674 |
|
675 |
-
|
676 |
-
*
|
677 |
*/
|
678 |
function admin_footer(){
|
679 |
?>
|
@@ -707,8 +770,13 @@ class ACFE_Field_Groups{
|
|
707 |
<?php
|
708 |
}
|
709 |
|
710 |
-
|
711 |
-
|
|
|
|
|
|
|
|
|
|
|
712 |
*/
|
713 |
function bulk_actions($actions){
|
714 |
|
@@ -719,8 +787,15 @@ class ACFE_Field_Groups{
|
|
719 |
|
720 |
}
|
721 |
|
722 |
-
|
723 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
724 |
*/
|
725 |
function handle_bulk_actions($redirect, $action, $post_ids){
|
726 |
|
@@ -767,8 +842,16 @@ class ACFE_Field_Groups{
|
|
767 |
|
768 |
}
|
769 |
|
770 |
-
|
771 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
772 |
*/
|
773 |
function get_human_readable_file_location($file, $found = true, $br = true, $prefix = true){
|
774 |
|
@@ -811,8 +894,13 @@ class ACFE_Field_Groups{
|
|
811 |
|
812 |
}
|
813 |
|
814 |
-
|
815 |
-
|
|
|
|
|
|
|
|
|
|
|
816 |
*/
|
817 |
function seamless_metabox($post_type, $post, $field_groups){
|
818 |
|
@@ -850,6 +938,12 @@ class ACFE_Field_Groups{
|
|
850 |
|
851 |
}
|
852 |
|
|
|
|
|
|
|
|
|
|
|
|
|
853 |
function get_sync_compatibility(){
|
854 |
|
855 |
$sync = array();
|
8 |
|
9 |
class ACFE_Field_Groups{
|
10 |
|
11 |
+
// vars
|
12 |
var $view = '';
|
13 |
var $sync = '';
|
14 |
var $old_version = false;
|
15 |
|
16 |
+
/**
|
17 |
+
* construct
|
18 |
*/
|
19 |
function __construct(){
|
20 |
|
|
|
21 |
add_action('current_screen', array($this, 'current_screen'));
|
22 |
add_action('acf/add_meta_boxes', array($this, 'seamless_metabox'), 10, 3);
|
23 |
|
24 |
}
|
25 |
|
26 |
+
|
27 |
+
/**
|
28 |
+
* current_screen
|
29 |
*/
|
30 |
function current_screen(){
|
31 |
|
32 |
+
// bail early if not Field Groups admin page.
|
33 |
if(!acf_is_screen('edit-acf-field-group')){
|
34 |
return;
|
35 |
}
|
36 |
|
37 |
+
// old Compatibility
|
38 |
if(acf_version_compare(acf_get_setting('version'), '<', '5.9')){
|
39 |
$this->old_version = true;
|
40 |
}
|
41 |
|
42 |
+
// acf < 5.9
|
43 |
if($this->old_version){
|
44 |
|
45 |
$this->view = isset($_GET['post_status']) ? sanitize_text_field($_GET['post_status']) : '';
|
46 |
$this->sync = $this->get_sync_compatibility();
|
47 |
|
48 |
+
// acf >= 5.9
|
49 |
}else{
|
50 |
|
51 |
$this->view = acf_get_instance('ACF_Admin_Field_Groups')->view;
|
53 |
|
54 |
}
|
55 |
|
56 |
+
// hooks
|
57 |
add_filter('manage_edit-acf-field-group_columns', array($this, 'table_columns'), 20);
|
58 |
add_action('manage_acf-field-group_posts_custom_column', array($this, 'table_columns_html'), 10, 2);
|
59 |
|
72 |
|
73 |
}
|
74 |
|
75 |
+
|
76 |
+
/**
|
77 |
+
* table_columns
|
78 |
+
*
|
79 |
+
* @param $columns
|
80 |
+
*
|
81 |
+
* @return array
|
82 |
*/
|
83 |
function table_columns($columns){
|
84 |
|
85 |
switch($this->view){
|
86 |
|
87 |
+
// sync
|
88 |
+
case('sync'): {
|
89 |
+
|
90 |
acfe_unset($columns, 'acf-field-group-category');
|
91 |
+
break;
|
92 |
|
93 |
+
}
|
94 |
|
95 |
+
// local
|
96 |
+
case('acfe-local'): {
|
97 |
|
98 |
if($this->old_version){
|
99 |
+
|
100 |
$columns = array(
|
101 |
'cb' => '<input type="checkbox" />',
|
102 |
'title' => __('Title', 'acf'),
|
105 |
'acfe-location' => __('Location', 'acf'),
|
106 |
'acfe-load' => __('Load', 'acf'),
|
107 |
);
|
108 |
+
|
109 |
}else{
|
110 |
+
|
111 |
$columns = array(
|
112 |
'cb' => '<input type="checkbox" />',
|
113 |
'title' => __('Title', 'acf'),
|
116 |
'acf-location' => __('Location', 'acf'),
|
117 |
'acfe-load' => __('Load', 'acf'),
|
118 |
);
|
119 |
+
|
120 |
}
|
121 |
|
122 |
+
if(acf_get_setting('acfe/php')){
|
123 |
$columns['acfe-autosync-php'] = __('PHP Sync');
|
124 |
+
}
|
125 |
|
126 |
+
if(acf_get_setting('json')){
|
127 |
$columns['acfe-autosync-json'] = __('Json Sync', 'acf');
|
128 |
+
}
|
129 |
+
|
130 |
+
break;
|
131 |
|
132 |
+
}
|
133 |
|
134 |
+
// active/trash
|
135 |
+
default: {
|
136 |
|
137 |
+
// acf < 5.9
|
138 |
if($this->old_version){
|
139 |
+
|
140 |
acfe_unset($columns, 'acf-fg-status');
|
141 |
+
|
142 |
$columns['acfe-location'] = __('Location', 'acf');
|
143 |
$columns['acfe-load'] = __('Load', 'acf');
|
144 |
|
145 |
+
if(acf_get_setting('acfe/php')){
|
146 |
$columns['acfe-autosync-php'] = __('PHP');
|
147 |
+
}
|
148 |
|
149 |
+
if(acf_get_setting('json')){
|
150 |
$columns['acfe-autosync-json'] = __('Json');
|
151 |
+
}
|
152 |
|
153 |
+
// acf >= 5.9
|
154 |
}else{
|
155 |
|
156 |
// Re-order
|
164 |
|
165 |
$columns['acfe-load'] = __('Load', 'acf');
|
166 |
|
167 |
+
if(acf_get_setting('acfe/php')){
|
168 |
$columns['acfe-autosync-php'] = __('PHP');
|
169 |
+
}
|
170 |
|
171 |
+
if(acf_get_setting('json')){
|
172 |
$columns['acfe-autosync-json'] = __('Json', 'acf');
|
173 |
+
}
|
174 |
|
175 |
}
|
176 |
|
177 |
+
// remove category column if empty
|
178 |
if(isset($columns['acf-field-group-category'])){
|
179 |
|
180 |
$categories_count = get_terms(array(
|
183 |
'fields' => 'count'
|
184 |
));
|
185 |
|
186 |
+
if(empty($categories_count)){
|
187 |
unset($columns['acf-field-group-category']);
|
188 |
+
}
|
189 |
|
190 |
}
|
191 |
+
|
192 |
+
break;
|
193 |
|
194 |
+
}
|
195 |
|
196 |
}
|
197 |
|
199 |
|
200 |
}
|
201 |
|
202 |
+
|
203 |
+
/**
|
204 |
+
* table_columns_html
|
205 |
+
*
|
206 |
+
* @param $column
|
207 |
+
* @param $post_id
|
208 |
*/
|
209 |
function table_columns_html($column, $post_id){
|
210 |
|
211 |
$field_group = acf_get_field_group($post_id);
|
212 |
|
213 |
+
if(!$field_group){
|
214 |
return;
|
215 |
+
}
|
216 |
|
217 |
$this->render_table_column($column, $field_group);
|
218 |
|
219 |
}
|
220 |
|
221 |
+
|
222 |
+
/**
|
223 |
+
* render_table_column
|
224 |
+
*
|
225 |
+
* @param $column
|
226 |
+
* @param $field_group
|
227 |
+
*/
|
228 |
function render_table_column($column, $field_group){
|
229 |
|
230 |
switch($column){
|
231 |
|
232 |
+
// source
|
233 |
+
case 'acfe-source': {
|
|
|
234 |
$this->render_admin_table_column_source_html($field_group);
|
235 |
+
break;
|
236 |
+
}
|
237 |
+
|
238 |
+
// count
|
239 |
+
case 'acfe-count': {
|
|
|
240 |
echo esc_html( acf_get_field_count($field_group));
|
241 |
+
break;
|
242 |
+
}
|
243 |
|
244 |
+
// location
|
245 |
+
case 'acfe-location': {
|
|
|
246 |
acfe_render_field_group_locations_html($field_group);
|
247 |
+
break;
|
248 |
+
}
|
249 |
+
|
250 |
+
// load
|
251 |
+
case 'acfe-load': {
|
|
|
252 |
$this->render_admin_table_column_load_html($field_group);
|
253 |
+
break;
|
254 |
+
}
|
255 |
+
|
256 |
+
// autosync php
|
257 |
+
case 'acfe-autosync-php': {
|
|
|
258 |
$this->render_admin_table_column_php_html($field_group);
|
259 |
+
break;
|
260 |
+
}
|
261 |
|
262 |
+
// autosync json
|
263 |
+
case 'acfe-autosync-json': {
|
|
|
264 |
$this->render_admin_table_column_json_html($field_group);
|
265 |
+
break;
|
266 |
+
}
|
267 |
|
268 |
}
|
269 |
|
270 |
}
|
271 |
|
272 |
+
|
273 |
+
/**
|
274 |
+
* render_admin_table_column_source_html
|
275 |
+
*
|
276 |
+
* @param $field_group
|
277 |
*/
|
278 |
function render_admin_table_column_source_html($field_group){
|
279 |
|
304 |
|
305 |
}
|
306 |
|
307 |
+
|
308 |
+
/**
|
309 |
+
* render_admin_table_column_load_html
|
310 |
+
*
|
311 |
+
* @param $field_group
|
312 |
*/
|
313 |
function render_admin_table_column_load_html($field_group){
|
314 |
|
317 |
|
318 |
// PHP
|
319 |
if(isset($php[$field_group['key']]) || acf_maybe_get($local_field_group, 'local') === 'php'){
|
|
|
320 |
echo '<span>php</span>';
|
321 |
|
322 |
// Json
|
323 |
}elseif(acf_maybe_get($local_field_group, 'local') === 'json'){
|
|
|
324 |
echo '<span>Json</span>';
|
325 |
|
326 |
// DB
|
327 |
}else{
|
|
|
328 |
echo '<span>DB</span>';
|
|
|
329 |
}
|
330 |
|
331 |
}
|
332 |
|
333 |
+
|
334 |
+
/**
|
335 |
+
* render_admin_table_column_php_html
|
336 |
+
*
|
337 |
+
* @param $field_group
|
338 |
*/
|
339 |
function render_admin_table_column_php_html($field_group){
|
340 |
|
356 |
|
357 |
$icons = array();
|
358 |
|
359 |
+
if($return['icon']){
|
360 |
$icons[] = '<span class="dashicons dashicons-' . $return['icon'] . '"></span>';
|
361 |
+
}
|
362 |
|
363 |
+
if($return['warning']){
|
364 |
$icons[] = '<span class="dashicons dashicons-warning"></span>';
|
365 |
+
}
|
366 |
|
367 |
?>
|
368 |
<span <?php echo acf_esc_attrs($wrapper); ?>>
|
380 |
|
381 |
}
|
382 |
|
383 |
+
|
384 |
+
/**
|
385 |
+
* get_php_data
|
386 |
+
*
|
387 |
+
* @param $field_group
|
388 |
+
*
|
389 |
+
* @return array
|
390 |
+
*/
|
391 |
function get_php_data($field_group){
|
392 |
|
393 |
$return = array(
|
469 |
|
470 |
}
|
471 |
|
472 |
+
|
473 |
+
/**
|
474 |
+
* render_admin_table_column_json_html
|
475 |
+
*
|
476 |
+
* @param $field_group
|
477 |
*/
|
478 |
function render_admin_table_column_json_html($field_group){
|
479 |
|
483 |
'class' => ''
|
484 |
);
|
485 |
|
486 |
+
if($return['class']){
|
487 |
$wrapper['class'] = $return['class'];
|
488 |
+
}
|
489 |
|
490 |
if($return['message']){
|
|
|
491 |
$wrapper['class'] .= ' acf-js-tooltip';
|
492 |
$wrapper['title'] = $return['message'];
|
|
|
493 |
}
|
494 |
|
495 |
$icons = array();
|
496 |
|
497 |
+
if($return['icon']){
|
498 |
$icons[] = '<span class="dashicons dashicons-' . $return['icon'] . '"></span>';
|
499 |
+
}
|
500 |
|
501 |
+
if($return['warning']){
|
502 |
$icons[] = '<span class="dashicons dashicons-warning"></span>';
|
503 |
+
}
|
504 |
|
505 |
?>
|
506 |
<span <?php echo acf_esc_attrs($wrapper); ?>>
|
518 |
|
519 |
}
|
520 |
|
521 |
+
|
522 |
+
/**
|
523 |
+
* get_json_data
|
524 |
+
*
|
525 |
+
* @param $field_group
|
526 |
+
*
|
527 |
+
* @return false[]
|
528 |
+
*/
|
529 |
function get_json_data($field_group){
|
530 |
|
531 |
$return = array(
|
639 |
|
640 |
}
|
641 |
|
642 |
+
|
643 |
+
/**
|
644 |
+
* default_hidden_columns
|
645 |
+
*
|
646 |
+
* @param $hidden
|
647 |
+
* @param $screen
|
648 |
+
*
|
649 |
+
* @return mixed
|
650 |
*/
|
651 |
function default_hidden_columns($hidden, $screen){
|
652 |
|
653 |
$hidden[] = 'acf-description';
|
|
|
654 |
return $hidden;
|
655 |
|
656 |
}
|
657 |
|
658 |
+
|
659 |
+
/**
|
660 |
+
* posts_per_page
|
661 |
+
*
|
662 |
+
* @return int
|
663 |
*/
|
664 |
function posts_per_page(){
|
|
|
665 |
return 999;
|
|
|
666 |
}
|
667 |
|
668 |
+
|
669 |
+
/**
|
670 |
+
* row_actions
|
671 |
+
*
|
672 |
+
* @param $actions
|
673 |
+
* @param $post
|
674 |
+
*
|
675 |
+
* @return mixed
|
676 |
*/
|
677 |
function row_actions($actions, $post){
|
678 |
|
692 |
|
693 |
}
|
694 |
|
695 |
+
|
696 |
+
/**
|
697 |
+
* post_states
|
698 |
+
*
|
699 |
+
* @param $states
|
700 |
+
* @param $post
|
701 |
+
*
|
702 |
+
* @return mixed
|
703 |
*/
|
704 |
function post_states($states, $post){
|
705 |
|
706 |
+
// vars
|
707 |
$field_group = acf_get_field_group($post->ID);
|
708 |
|
709 |
+
// acf < 5.9
|
710 |
if($this->old_version){
|
711 |
|
712 |
+
// disabled
|
713 |
if($post->post_status === 'acf-disabled'){
|
|
|
714 |
$states['acf-disabled'] = '<span class="dashicons dashicons-hidden acf-js-tooltip" title="' . _x('Disabled', 'post status', 'acf') . '"></span>';
|
|
|
715 |
}
|
716 |
|
717 |
+
// acf > 5.9
|
718 |
}else{
|
719 |
|
720 |
if(isset($states['acf-disabled'])){
|
|
|
721 |
unset($states['acf-disabled']);
|
722 |
$states['acf-disabled'] = '<span class="dashicons dashicons-hidden acf-js-tooltip" title="' . _x('Disabled', 'post status', 'acf') . '"></span>';
|
|
|
723 |
}
|
724 |
|
725 |
}
|
726 |
|
727 |
+
// alternative title
|
728 |
$display_title = acf_maybe_get($field_group, 'acfe_display_title');
|
729 |
|
730 |
if(!empty($display_title)){
|
|
|
731 |
$states['acfe-title'] = '<span class="acf-js-tooltip" title="' . __('Alternative title', 'acf') . '">' . $display_title . '</span>';
|
|
|
732 |
}
|
733 |
|
734 |
return $states;
|
735 |
|
736 |
}
|
737 |
|
738 |
+
/**
|
739 |
+
* admin_footer
|
740 |
*/
|
741 |
function admin_footer(){
|
742 |
?>
|
770 |
<?php
|
771 |
}
|
772 |
|
773 |
+
|
774 |
+
/**
|
775 |
+
* bulk_actions
|
776 |
+
*
|
777 |
+
* @param $actions
|
778 |
+
*
|
779 |
+
* @return mixed
|
780 |
*/
|
781 |
function bulk_actions($actions){
|
782 |
|
787 |
|
788 |
}
|
789 |
|
790 |
+
|
791 |
+
/**
|
792 |
+
* handle_bulk_actions
|
793 |
+
*
|
794 |
+
* @param $redirect
|
795 |
+
* @param $action
|
796 |
+
* @param $post_ids
|
797 |
+
*
|
798 |
+
* @return mixed|void
|
799 |
*/
|
800 |
function handle_bulk_actions($redirect, $action, $post_ids){
|
801 |
|
842 |
|
843 |
}
|
844 |
|
845 |
+
|
846 |
+
/**
|
847 |
+
* get_human_readable_file_location
|
848 |
+
*
|
849 |
+
* @param $file
|
850 |
+
* @param $found
|
851 |
+
* @param $br
|
852 |
+
* @param $prefix
|
853 |
+
*
|
854 |
+
* @return string
|
855 |
*/
|
856 |
function get_human_readable_file_location($file, $found = true, $br = true, $prefix = true){
|
857 |
|
894 |
|
895 |
}
|
896 |
|
897 |
+
|
898 |
+
/**
|
899 |
+
* seamless_metabox
|
900 |
+
*
|
901 |
+
* @param $post_type
|
902 |
+
* @param $post
|
903 |
+
* @param $field_groups
|
904 |
*/
|
905 |
function seamless_metabox($post_type, $post, $field_groups){
|
906 |
|
938 |
|
939 |
}
|
940 |
|
941 |
+
|
942 |
+
/**
|
943 |
+
* get_sync_compatibility
|
944 |
+
*
|
945 |
+
* @return array
|
946 |
+
*/
|
947 |
function get_sync_compatibility(){
|
948 |
|
949 |
$sync = array();
|
includes/fields-settings/bidirectional.php
CHANGED
@@ -8,29 +8,35 @@ if(!class_exists('acfe_bidirectional')):
|
|
8 |
|
9 |
class acfe_bidirectional{
|
10 |
|
|
|
11 |
var $allowed_types = array('relationship', 'post_object', 'user', 'taxonomy');
|
12 |
|
|
|
|
|
|
|
13 |
function __construct(){
|
14 |
|
15 |
foreach($this->allowed_types as $allowed_type){
|
16 |
|
17 |
-
add_action("acf/render_field_settings/type={$allowed_type}",
|
18 |
-
add_filter("acf/update_field/type={$allowed_type}",
|
19 |
-
add_action("acf/delete_field/type={$allowed_type}",
|
20 |
-
|
21 |
-
add_filter("acf/update_value/type={$allowed_type}", array($this, 'update_value'), 11, 3);
|
22 |
|
23 |
}
|
24 |
|
25 |
-
add_action('wp_ajax_acfe/fields_settings/bidirectional/query',
|
26 |
-
add_action('wp_ajax_nopriv_acfe/fields_settings/bidirectional/query',
|
27 |
|
28 |
-
add_filter('acf/prepare_field/name=acfe_bidirectional_related',
|
29 |
|
30 |
}
|
31 |
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
34 |
*/
|
35 |
function field_settings_render($field){
|
36 |
|
@@ -105,8 +111,9 @@ class acfe_bidirectional{
|
|
105 |
|
106 |
}
|
107 |
|
108 |
-
|
109 |
-
|
|
|
110 |
*/
|
111 |
function ajax_query(){
|
112 |
|
@@ -128,39 +135,46 @@ class acfe_bidirectional{
|
|
128 |
|
129 |
}
|
130 |
|
131 |
-
|
132 |
-
|
|
|
|
|
|
|
|
|
|
|
133 |
*/
|
134 |
function ajax_results($options = array()){
|
135 |
|
136 |
-
//
|
137 |
acf_disable_filters();
|
138 |
|
139 |
-
//
|
140 |
$r_field_groups = acf_get_field_groups();
|
141 |
|
142 |
if(empty($r_field_groups)){
|
143 |
return false;
|
144 |
}
|
145 |
|
146 |
-
//
|
147 |
$hidden = acfe_get_setting('reserved_field_groups', array());
|
148 |
$choices = array();
|
149 |
|
150 |
foreach($r_field_groups as $r_field_group){
|
151 |
|
152 |
-
//
|
153 |
-
if(in_array($r_field_group['key'], $hidden))
|
|
|
|
|
154 |
|
155 |
-
//
|
156 |
$r_fields = acf_get_fields($r_field_group['key']);
|
157 |
-
if(empty($r_fields))
|
|
|
|
|
158 |
|
159 |
-
//
|
160 |
foreach($r_fields as $r_field){
|
161 |
-
|
162 |
$this->get_related_settings($r_field, $r_field_group, $choices);
|
163 |
-
|
164 |
}
|
165 |
|
166 |
}
|
@@ -216,20 +230,27 @@ class acfe_bidirectional{
|
|
216 |
|
217 |
}
|
218 |
|
219 |
-
|
220 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
*/
|
222 |
function get_related_settings($r_field, $r_field_group, &$choices){
|
223 |
|
224 |
-
if(in_array($r_field['type'], array('repeater', 'flexible_content')))
|
225 |
return;
|
|
|
226 |
|
227 |
-
//
|
228 |
if(isset($r_field['sub_fields']) && !empty($r_field['sub_fields'])){
|
229 |
|
230 |
foreach($r_field['sub_fields'] as $r_sub_field){
|
231 |
|
232 |
-
//
|
233 |
$this->get_related_settings($r_sub_field, $r_field_group, $choices);
|
234 |
|
235 |
}
|
@@ -238,22 +259,28 @@ class acfe_bidirectional{
|
|
238 |
|
239 |
}
|
240 |
|
241 |
-
//
|
242 |
if(!in_array($r_field['type'], $this->allowed_types)){
|
243 |
return false;
|
244 |
}
|
245 |
|
246 |
-
$choices[$r_field_group['title']][$r_field['key']] = (!empty($r_field['label']) ? $r_field['label'] : $r_field['name']) . ' (' . $r_field['key'] . ')';
|
247 |
|
248 |
}
|
249 |
|
250 |
-
|
251 |
-
|
|
|
|
|
|
|
|
|
|
|
252 |
*/
|
253 |
function field_settings_default_value($field){
|
254 |
|
255 |
-
if(!isset($field['value']) || empty($field['value']))
|
256 |
return $field;
|
|
|
257 |
|
258 |
$values = acf_get_array($field['value']);
|
259 |
$r_fields = array();
|
@@ -264,14 +291,11 @@ class acfe_bidirectional{
|
|
264 |
$r_field = acf_get_field($value);
|
265 |
|
266 |
if($r_field){
|
267 |
-
|
268 |
$r_fields[] = $r_field;
|
269 |
|
270 |
}else{
|
271 |
|
272 |
-
// Unset
|
273 |
unset($values[$i]);
|
274 |
-
|
275 |
$r_field_update = true;
|
276 |
|
277 |
}
|
@@ -281,23 +305,25 @@ class acfe_bidirectional{
|
|
281 |
if($r_field_update){
|
282 |
|
283 |
$field['value'] = $values;
|
284 |
-
|
285 |
acf_update_field($field);
|
286 |
|
287 |
}
|
288 |
|
289 |
foreach($r_fields as $r_field){
|
290 |
-
|
291 |
-
$field['choices'][$r_field['key']] = (!empty($r_field['label']) ? $r_field['label'] : $r_field['name']) . ' (' . $r_field['key'] . ')';
|
292 |
-
|
293 |
}
|
294 |
|
295 |
return $field;
|
296 |
|
297 |
}
|
298 |
|
299 |
-
|
300 |
-
|
|
|
|
|
|
|
|
|
|
|
301 |
*/
|
302 |
function field_settings_update($field){
|
303 |
|
@@ -306,20 +332,22 @@ class acfe_bidirectional{
|
|
306 |
return $field;
|
307 |
}
|
308 |
|
309 |
-
//
|
310 |
$_field = acf_get_field($field['key']);
|
311 |
|
312 |
-
//
|
313 |
if($this->has_field_bidirectional($_field) && !$this->has_field_bidirectional($field)){
|
314 |
|
315 |
-
//
|
316 |
$r_fields = acf_get_array($_field['acfe_bidirectional']['acfe_bidirectional_related']);
|
317 |
|
318 |
foreach($r_fields as $r_field_key){
|
319 |
|
320 |
$r_field = acf_get_field($r_field_key);
|
321 |
|
322 |
-
if(!$this->has_field_bidirectional($r_field))
|
|
|
|
|
323 |
|
324 |
$r_field_related = acf_get_array($r_field['acfe_bidirectional']['acfe_bidirectional_related']);
|
325 |
|
@@ -327,7 +355,9 @@ class acfe_bidirectional{
|
|
327 |
|
328 |
foreach($r_field_related as $i => $r_field_r){
|
329 |
|
330 |
-
if($r_field_r !== $field['key'])
|
|
|
|
|
331 |
|
332 |
unset($r_field_related[$i]);
|
333 |
|
@@ -359,17 +389,17 @@ class acfe_bidirectional{
|
|
359 |
|
360 |
}
|
361 |
|
362 |
-
//
|
363 |
elseif(($this->has_field_bidirectional($_field) && $this->has_field_bidirectional($field)) || (!$this->has_field_bidirectional($_field) && $this->has_field_bidirectional($field))){
|
364 |
|
365 |
-
//
|
366 |
$r_fields = acf_get_array($field['acfe_bidirectional']['acfe_bidirectional_related']);
|
367 |
|
368 |
foreach($r_fields as $r_field_key){
|
369 |
|
370 |
$r_field = acf_get_field($r_field_key);
|
371 |
|
372 |
-
//
|
373 |
$r_field['acfe_bidirectional']['acfe_bidirectional_enabled'] = true;
|
374 |
|
375 |
$r_field_related = array();
|
@@ -388,10 +418,10 @@ class acfe_bidirectional{
|
|
388 |
|
389 |
acf_enable_filter('acfe/bidirectional_setting');
|
390 |
|
391 |
-
//
|
392 |
acf_update_field($r_field);
|
393 |
|
394 |
-
//
|
395 |
$field_group = acfe_get_field_group_from_field($r_field);
|
396 |
acf_update_field_group($field_group);
|
397 |
|
@@ -401,24 +431,33 @@ class acfe_bidirectional{
|
|
401 |
|
402 |
}
|
403 |
|
404 |
-
//
|
405 |
return $field;
|
406 |
|
407 |
}
|
408 |
|
409 |
-
|
410 |
-
|
|
|
|
|
|
|
411 |
*/
|
412 |
function field_settings_delete($field){
|
413 |
|
414 |
-
if(!$this->has_field_bidirectional($field))
|
|
|
|
|
415 |
|
416 |
-
//
|
417 |
$r_fields = acf_get_array($field['acfe_bidirectional']['acfe_bidirectional_related']);
|
418 |
|
419 |
foreach($r_fields as $r_field_key){
|
420 |
|
421 |
$r_field = acf_get_field($r_field_key);
|
|
|
|
|
|
|
|
|
422 |
|
423 |
$r_field_related = acf_get_array($r_field['acfe_bidirectional']['acfe_bidirectional_related']);
|
424 |
|
@@ -426,7 +465,9 @@ class acfe_bidirectional{
|
|
426 |
|
427 |
foreach($r_field_related as $i => $r_field_r){
|
428 |
|
429 |
-
if($r_field_r !== $field['key'])
|
|
|
|
|
430 |
|
431 |
unset($r_field_related[$i]);
|
432 |
|
@@ -441,10 +482,10 @@ class acfe_bidirectional{
|
|
441 |
|
442 |
}
|
443 |
|
444 |
-
//
|
445 |
acf_update_field($r_field);
|
446 |
|
447 |
-
//
|
448 |
$field_group = acfe_get_field_group_from_field($r_field);
|
449 |
acf_update_field_group($field_group);
|
450 |
|
@@ -454,42 +495,51 @@ class acfe_bidirectional{
|
|
454 |
|
455 |
}
|
456 |
|
457 |
-
|
458 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
*/
|
460 |
function update_value($value, $post_id, $field){
|
461 |
|
462 |
-
//
|
463 |
if(acf_is_filter_enabled('acfe/bidirectional')){
|
464 |
return $value;
|
465 |
}
|
466 |
|
467 |
-
//
|
468 |
if(!$this->get_field_bidirectional($field)){
|
469 |
return $value;
|
470 |
}
|
471 |
|
472 |
-
//
|
473 |
if(acfe_is_local_post_id($post_id)){
|
474 |
return $value;
|
475 |
}
|
476 |
|
477 |
-
//
|
478 |
$request = acf_decode_post_id($post_id);
|
479 |
|
480 |
-
//
|
481 |
$old_values = acf_get_array(acf_get_metadata($post_id, $field['name']));
|
482 |
$new_values = acf_get_array($value);
|
483 |
|
484 |
-
//
|
485 |
// if($old_values === $new_values)
|
486 |
// return $value;
|
487 |
|
488 |
-
//
|
489 |
if(!empty($old_values)){
|
490 |
foreach($old_values as $r_id){
|
491 |
|
492 |
-
if(in_array($r_id, $new_values))
|
|
|
|
|
493 |
|
494 |
$this->relationship('remove', $r_id, $field, $request['id']);
|
495 |
|
@@ -500,7 +550,9 @@ class acfe_bidirectional{
|
|
500 |
if(!empty($new_values)){
|
501 |
foreach($new_values as $r_id){
|
502 |
|
503 |
-
if(in_array($r_id, $old_values))
|
|
|
|
|
504 |
|
505 |
$this->relationship('add', $r_id, $field, $request['id']);
|
506 |
|
@@ -515,7 +567,7 @@ class acfe_bidirectional{
|
|
515 |
|
516 |
if($force_update){
|
517 |
|
518 |
-
//
|
519 |
if(!empty($new_values)){
|
520 |
foreach($new_values as $r_id){
|
521 |
|
@@ -530,27 +582,30 @@ class acfe_bidirectional{
|
|
530 |
|
531 |
}
|
532 |
|
|
|
533 |
/**
|
534 |
-
*
|
|
|
|
|
535 |
*
|
536 |
-
* $type
|
537 |
-
* $r_id
|
538 |
-
* $p_field
|
539 |
-
* $
|
540 |
*/
|
541 |
function relationship($type, $r_id, $p_field, $p_value){
|
542 |
|
543 |
-
//
|
544 |
$r_fields = acf_get_array($p_field['acfe_bidirectional']['acfe_bidirectional_related']);
|
545 |
|
546 |
foreach($r_fields as $r_field_key){
|
547 |
|
548 |
$r_field = acf_get_field($r_field_key);
|
549 |
|
550 |
-
//
|
551 |
if(!$this->get_field_bidirectional($r_field)) continue;
|
552 |
|
553 |
-
//
|
554 |
$r_mtype = '';
|
555 |
if($p_field['type'] === 'user'){
|
556 |
$r_mtype = 'user_';
|
@@ -558,58 +613,58 @@ class acfe_bidirectional{
|
|
558 |
$r_mtype = 'term_';
|
559 |
}
|
560 |
|
561 |
-
//
|
562 |
$r_field_ancestors = acf_get_field_ancestors($r_field);
|
563 |
|
564 |
-
//
|
565 |
if(!empty($r_field_ancestors)){
|
566 |
|
567 |
-
//
|
568 |
$r_field_ancestors = array_reverse($r_field_ancestors);
|
569 |
$r_field_ancestors_fields = array_map('acf_get_field', $r_field_ancestors);
|
570 |
|
571 |
-
//
|
572 |
$r_ref_field = $r_field_ancestors_fields[0];
|
573 |
$r_ref_values = acf_get_array(acf_get_value($r_mtype.$r_id, $r_ref_field));
|
574 |
|
575 |
-
//
|
576 |
$r_values = acf_get_array($this->get_value_from_ancestor($r_ref_values, $r_field));
|
577 |
|
578 |
-
//
|
579 |
unset($r_field_ancestors_fields[0]);
|
580 |
|
581 |
-
//
|
582 |
$r_values_query = array($r_field['key']);
|
583 |
|
584 |
-
//
|
585 |
if(!empty($r_field_ancestors_fields)){
|
586 |
|
587 |
$r_field_ancestors_keys = array_map(function($field){
|
588 |
return $field['key'];
|
589 |
}, $r_field_ancestors_fields);
|
590 |
|
591 |
-
//
|
592 |
$r_values_query = array_merge($r_field_ancestors_keys, $r_values_query);
|
593 |
|
594 |
}
|
595 |
|
596 |
}
|
597 |
|
598 |
-
//
|
599 |
else{
|
600 |
|
601 |
-
//
|
602 |
$r_ref_field = $r_field;
|
603 |
|
604 |
-
//
|
605 |
$r_values = acf_get_array(acf_get_value($r_mtype.$r_id, $r_field));
|
606 |
|
607 |
}
|
608 |
|
609 |
-
//
|
610 |
$r_values = acf_parse_types($r_values);
|
611 |
|
612 |
-
//
|
613 |
if($type === 'add'){
|
614 |
|
615 |
if(!in_array($p_value, $r_values)){
|
@@ -618,7 +673,7 @@ class acfe_bidirectional{
|
|
618 |
|
619 |
}
|
620 |
|
621 |
-
//
|
622 |
elseif($type === 'remove'){
|
623 |
|
624 |
$r_new_values = array();
|
@@ -634,9 +689,9 @@ class acfe_bidirectional{
|
|
634 |
|
635 |
}
|
636 |
|
637 |
-
|
638 |
-
*
|
639 |
-
*
|
640 |
*/
|
641 |
if(($r_ref_field['type'] === 'post_object' || $r_ref_field['type'] === 'user') && empty($r_ref_field['multiple']) && isset($r_values[0])){
|
642 |
|
@@ -645,14 +700,14 @@ class acfe_bidirectional{
|
|
645 |
|
646 |
}
|
647 |
|
648 |
-
|
649 |
-
|
650 |
-
*/
|
651 |
-
if(empty($r_values))
|
652 |
$r_values = false;
|
|
|
653 |
|
654 |
-
|
655 |
-
*
|
|
|
656 |
* $related_values = Array(
|
657 |
* [field_aaa] => Array(
|
658 |
* [field_bbb] => Array(
|
@@ -669,19 +724,28 @@ class acfe_bidirectional{
|
|
669 |
|
670 |
}
|
671 |
|
672 |
-
//
|
673 |
acf_enable_filter('acfe/bidirectional');
|
674 |
|
675 |
-
//
|
676 |
acf_update_value($r_values, $r_mtype.$r_id, $r_ref_field);
|
677 |
|
678 |
-
//
|
679 |
acf_disable_filter('acfe/bidirectional');
|
680 |
|
681 |
}
|
682 |
|
683 |
}
|
684 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
685 |
function get_value_from_ancestor($r_ref_values, $r_field){
|
686 |
|
687 |
foreach($r_ref_values as $r_ref_key => $r_ref_value){
|
@@ -702,14 +766,38 @@ class acfe_bidirectional{
|
|
702 |
|
703 |
}
|
704 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
705 |
function is_field_bidirectional($field){
|
706 |
return isset($field['acfe_bidirectional']['acfe_bidirectional_enabled']) && !empty($field['acfe_bidirectional']['acfe_bidirectional_enabled']);
|
707 |
}
|
708 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
709 |
function has_field_bidirectional($field){
|
710 |
return isset($field['acfe_bidirectional']['acfe_bidirectional_related']) && !empty($field['acfe_bidirectional']['acfe_bidirectional_related']);
|
711 |
}
|
712 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
713 |
function get_field_bidirectional($field){
|
714 |
|
715 |
if(!$this->is_field_bidirectional($field) || !$this->has_field_bidirectional($field)){
|
8 |
|
9 |
class acfe_bidirectional{
|
10 |
|
11 |
+
// vars
|
12 |
var $allowed_types = array('relationship', 'post_object', 'user', 'taxonomy');
|
13 |
|
14 |
+
/**
|
15 |
+
* construct
|
16 |
+
*/
|
17 |
function __construct(){
|
18 |
|
19 |
foreach($this->allowed_types as $allowed_type){
|
20 |
|
21 |
+
add_action("acf/render_field_settings/type={$allowed_type}", array($this, 'field_settings_render'));
|
22 |
+
add_filter("acf/update_field/type={$allowed_type}", array($this, 'field_settings_update'));
|
23 |
+
add_action("acf/delete_field/type={$allowed_type}", array($this, 'field_settings_delete'));
|
24 |
+
add_filter("acf/update_value/type={$allowed_type}", array($this, 'update_value'), 11, 3);
|
|
|
25 |
|
26 |
}
|
27 |
|
28 |
+
add_action('wp_ajax_acfe/fields_settings/bidirectional/query', array($this, 'ajax_query'));
|
29 |
+
add_action('wp_ajax_nopriv_acfe/fields_settings/bidirectional/query', array($this, 'ajax_query'));
|
30 |
|
31 |
+
add_filter('acf/prepare_field/name=acfe_bidirectional_related', array($this, 'field_settings_default_value'));
|
32 |
|
33 |
}
|
34 |
|
35 |
+
|
36 |
+
/**
|
37 |
+
* field_settings_render
|
38 |
+
*
|
39 |
+
* @param $field
|
40 |
*/
|
41 |
function field_settings_render($field){
|
42 |
|
111 |
|
112 |
}
|
113 |
|
114 |
+
|
115 |
+
/**
|
116 |
+
* ajax_query
|
117 |
*/
|
118 |
function ajax_query(){
|
119 |
|
135 |
|
136 |
}
|
137 |
|
138 |
+
|
139 |
+
/**
|
140 |
+
* ajax_results
|
141 |
+
*
|
142 |
+
* @param $options
|
143 |
+
*
|
144 |
+
* @return array[]|false
|
145 |
*/
|
146 |
function ajax_results($options = array()){
|
147 |
|
148 |
+
// disable Filters
|
149 |
acf_disable_filters();
|
150 |
|
151 |
+
// get field groups
|
152 |
$r_field_groups = acf_get_field_groups();
|
153 |
|
154 |
if(empty($r_field_groups)){
|
155 |
return false;
|
156 |
}
|
157 |
|
158 |
+
// vars
|
159 |
$hidden = acfe_get_setting('reserved_field_groups', array());
|
160 |
$choices = array();
|
161 |
|
162 |
foreach($r_field_groups as $r_field_group){
|
163 |
|
164 |
+
// bypass ACFE native groups
|
165 |
+
if(in_array($r_field_group['key'], $hidden)){
|
166 |
+
continue;
|
167 |
+
}
|
168 |
|
169 |
+
// get related fields
|
170 |
$r_fields = acf_get_fields($r_field_group['key']);
|
171 |
+
if(empty($r_fields)){
|
172 |
+
continue;
|
173 |
+
}
|
174 |
|
175 |
+
// filter & find possible related fields
|
176 |
foreach($r_fields as $r_field){
|
|
|
177 |
$this->get_related_settings($r_field, $r_field_group, $choices);
|
|
|
178 |
}
|
179 |
|
180 |
}
|
230 |
|
231 |
}
|
232 |
|
233 |
+
/**
|
234 |
+
* get_related_settings
|
235 |
+
*
|
236 |
+
* @param $r_field
|
237 |
+
* @param $r_field_group
|
238 |
+
* @param $choices
|
239 |
+
*
|
240 |
+
* @return false|void
|
241 |
*/
|
242 |
function get_related_settings($r_field, $r_field_group, &$choices){
|
243 |
|
244 |
+
if(in_array($r_field['type'], array('repeater', 'flexible_content'))){
|
245 |
return;
|
246 |
+
}
|
247 |
|
248 |
+
// recursive search for sub_fields (groups & clones)
|
249 |
if(isset($r_field['sub_fields']) && !empty($r_field['sub_fields'])){
|
250 |
|
251 |
foreach($r_field['sub_fields'] as $r_sub_field){
|
252 |
|
253 |
+
// recursive call
|
254 |
$this->get_related_settings($r_sub_field, $r_field_group, $choices);
|
255 |
|
256 |
}
|
259 |
|
260 |
}
|
261 |
|
262 |
+
// allow only specific fields
|
263 |
if(!in_array($r_field['type'], $this->allowed_types)){
|
264 |
return false;
|
265 |
}
|
266 |
|
267 |
+
$choices[ $r_field_group['title'] ][ $r_field['key'] ] = (!empty($r_field['label']) ? $r_field['label'] : $r_field['name']) . ' (' . $r_field['key'] . ')';
|
268 |
|
269 |
}
|
270 |
|
271 |
+
|
272 |
+
/**
|
273 |
+
* field_settings_default_value
|
274 |
+
*
|
275 |
+
* @param $field
|
276 |
+
*
|
277 |
+
* @return mixed
|
278 |
*/
|
279 |
function field_settings_default_value($field){
|
280 |
|
281 |
+
if(!isset($field['value']) || empty($field['value'])){
|
282 |
return $field;
|
283 |
+
}
|
284 |
|
285 |
$values = acf_get_array($field['value']);
|
286 |
$r_fields = array();
|
291 |
$r_field = acf_get_field($value);
|
292 |
|
293 |
if($r_field){
|
|
|
294 |
$r_fields[] = $r_field;
|
295 |
|
296 |
}else{
|
297 |
|
|
|
298 |
unset($values[$i]);
|
|
|
299 |
$r_field_update = true;
|
300 |
|
301 |
}
|
305 |
if($r_field_update){
|
306 |
|
307 |
$field['value'] = $values;
|
|
|
308 |
acf_update_field($field);
|
309 |
|
310 |
}
|
311 |
|
312 |
foreach($r_fields as $r_field){
|
313 |
+
$field['choices'][ $r_field['key'] ] = (!empty($r_field['label']) ? $r_field['label'] : $r_field['name']) . ' (' . $r_field['key'] . ')';
|
|
|
|
|
314 |
}
|
315 |
|
316 |
return $field;
|
317 |
|
318 |
}
|
319 |
|
320 |
+
|
321 |
+
/**
|
322 |
+
* field_settings_update
|
323 |
+
*
|
324 |
+
* @param $field
|
325 |
+
*
|
326 |
+
* @return mixed
|
327 |
*/
|
328 |
function field_settings_update($field){
|
329 |
|
332 |
return $field;
|
333 |
}
|
334 |
|
335 |
+
// previous setting values
|
336 |
$_field = acf_get_field($field['key']);
|
337 |
|
338 |
+
// turning off - Remove related field
|
339 |
if($this->has_field_bidirectional($_field) && !$this->has_field_bidirectional($field)){
|
340 |
|
341 |
+
// get related bidirectional related
|
342 |
$r_fields = acf_get_array($_field['acfe_bidirectional']['acfe_bidirectional_related']);
|
343 |
|
344 |
foreach($r_fields as $r_field_key){
|
345 |
|
346 |
$r_field = acf_get_field($r_field_key);
|
347 |
|
348 |
+
if(!$this->has_field_bidirectional($r_field)){
|
349 |
+
continue;
|
350 |
+
}
|
351 |
|
352 |
$r_field_related = acf_get_array($r_field['acfe_bidirectional']['acfe_bidirectional_related']);
|
353 |
|
355 |
|
356 |
foreach($r_field_related as $i => $r_field_r){
|
357 |
|
358 |
+
if($r_field_r !== $field['key']){
|
359 |
+
continue;
|
360 |
+
}
|
361 |
|
362 |
unset($r_field_related[$i]);
|
363 |
|
389 |
|
390 |
}
|
391 |
|
392 |
+
// turning on (or already on) - add related field
|
393 |
elseif(($this->has_field_bidirectional($_field) && $this->has_field_bidirectional($field)) || (!$this->has_field_bidirectional($_field) && $this->has_field_bidirectional($field))){
|
394 |
|
395 |
+
// get related bidirectional related
|
396 |
$r_fields = acf_get_array($field['acfe_bidirectional']['acfe_bidirectional_related']);
|
397 |
|
398 |
foreach($r_fields as $r_field_key){
|
399 |
|
400 |
$r_field = acf_get_field($r_field_key);
|
401 |
|
402 |
+
// reset related bidirectional related
|
403 |
$r_field['acfe_bidirectional']['acfe_bidirectional_enabled'] = true;
|
404 |
|
405 |
$r_field_related = array();
|
418 |
|
419 |
acf_enable_filter('acfe/bidirectional_setting');
|
420 |
|
421 |
+
// update related bidirectional
|
422 |
acf_update_field($r_field);
|
423 |
|
424 |
+
// update field group (json/php sync)
|
425 |
$field_group = acfe_get_field_group_from_field($r_field);
|
426 |
acf_update_field_group($field_group);
|
427 |
|
431 |
|
432 |
}
|
433 |
|
434 |
+
// return
|
435 |
return $field;
|
436 |
|
437 |
}
|
438 |
|
439 |
+
|
440 |
+
/**
|
441 |
+
* field_settings_delete
|
442 |
+
*
|
443 |
+
* @param $field
|
444 |
*/
|
445 |
function field_settings_delete($field){
|
446 |
|
447 |
+
if(!$this->has_field_bidirectional($field)){
|
448 |
+
return;
|
449 |
+
}
|
450 |
|
451 |
+
// get related bidirectional related
|
452 |
$r_fields = acf_get_array($field['acfe_bidirectional']['acfe_bidirectional_related']);
|
453 |
|
454 |
foreach($r_fields as $r_field_key){
|
455 |
|
456 |
$r_field = acf_get_field($r_field_key);
|
457 |
+
|
458 |
+
if(!$r_field){
|
459 |
+
continue;
|
460 |
+
}
|
461 |
|
462 |
$r_field_related = acf_get_array($r_field['acfe_bidirectional']['acfe_bidirectional_related']);
|
463 |
|
465 |
|
466 |
foreach($r_field_related as $i => $r_field_r){
|
467 |
|
468 |
+
if($r_field_r !== $field['key']){
|
469 |
+
continue;
|
470 |
+
}
|
471 |
|
472 |
unset($r_field_related[$i]);
|
473 |
|
482 |
|
483 |
}
|
484 |
|
485 |
+
// update related bidirectional
|
486 |
acf_update_field($r_field);
|
487 |
|
488 |
+
// update field group (json/php sync)
|
489 |
$field_group = acfe_get_field_group_from_field($r_field);
|
490 |
acf_update_field_group($field_group);
|
491 |
|
495 |
|
496 |
}
|
497 |
|
498 |
+
|
499 |
+
/**
|
500 |
+
* update_value
|
501 |
+
*
|
502 |
+
* @param $value
|
503 |
+
* @param $post_id
|
504 |
+
* @param $field
|
505 |
+
*
|
506 |
+
* @return mixed
|
507 |
*/
|
508 |
function update_value($value, $post_id, $field){
|
509 |
|
510 |
+
// bail early if updating a relation
|
511 |
if(acf_is_filter_enabled('acfe/bidirectional')){
|
512 |
return $value;
|
513 |
}
|
514 |
|
515 |
+
// bail early if no bidirectional setting
|
516 |
if(!$this->get_field_bidirectional($field)){
|
517 |
return $value;
|
518 |
}
|
519 |
|
520 |
+
// bail early if local meta
|
521 |
if(acfe_is_local_post_id($post_id)){
|
522 |
return $value;
|
523 |
}
|
524 |
|
525 |
+
// decode current post_id (ie: user_1)
|
526 |
$request = acf_decode_post_id($post_id);
|
527 |
|
528 |
+
// values
|
529 |
$old_values = acf_get_array(acf_get_metadata($post_id, $field['name']));
|
530 |
$new_values = acf_get_array($value);
|
531 |
|
532 |
+
// bail early if no difference
|
533 |
// if($old_values === $new_values)
|
534 |
// return $value;
|
535 |
|
536 |
+
// values have been removed
|
537 |
if(!empty($old_values)){
|
538 |
foreach($old_values as $r_id){
|
539 |
|
540 |
+
if(in_array($r_id, $new_values)){
|
541 |
+
continue;
|
542 |
+
}
|
543 |
|
544 |
$this->relationship('remove', $r_id, $field, $request['id']);
|
545 |
|
550 |
if(!empty($new_values)){
|
551 |
foreach($new_values as $r_id){
|
552 |
|
553 |
+
if(in_array($r_id, $old_values)){
|
554 |
+
continue;
|
555 |
+
}
|
556 |
|
557 |
$this->relationship('add', $r_id, $field, $request['id']);
|
558 |
|
567 |
|
568 |
if($force_update){
|
569 |
|
570 |
+
// force new values to be saved
|
571 |
if(!empty($new_values)){
|
572 |
foreach($new_values as $r_id){
|
573 |
|
582 |
|
583 |
}
|
584 |
|
585 |
+
|
586 |
/**
|
587 |
+
* relationship
|
588 |
+
*
|
589 |
+
* establish relationship
|
590 |
*
|
591 |
+
* @param $type = add|remove
|
592 |
+
* @param $r_id = the post_id to add the relationship to
|
593 |
+
* @param $p_field = the parent field
|
594 |
+
* @param $p_value = the relationship to add
|
595 |
*/
|
596 |
function relationship($type, $r_id, $p_field, $p_value){
|
597 |
|
598 |
+
// get Related Field Configuration
|
599 |
$r_fields = acf_get_array($p_field['acfe_bidirectional']['acfe_bidirectional_related']);
|
600 |
|
601 |
foreach($r_fields as $r_field_key){
|
602 |
|
603 |
$r_field = acf_get_field($r_field_key);
|
604 |
|
605 |
+
// get if bidirectional is active
|
606 |
if(!$this->get_field_bidirectional($r_field)) continue;
|
607 |
|
608 |
+
// get Related Data Type ({post_id}, user_{id} ...)
|
609 |
$r_mtype = '';
|
610 |
if($p_field['type'] === 'user'){
|
611 |
$r_mtype = 'user_';
|
613 |
$r_mtype = 'term_';
|
614 |
}
|
615 |
|
616 |
+
// get Related Field Ancestors
|
617 |
$r_field_ancestors = acf_get_field_ancestors($r_field);
|
618 |
|
619 |
+
// ancestors - complex field (group|clone)
|
620 |
if(!empty($r_field_ancestors)){
|
621 |
|
622 |
+
// get ancestors
|
623 |
$r_field_ancestors = array_reverse($r_field_ancestors);
|
624 |
$r_field_ancestors_fields = array_map('acf_get_field', $r_field_ancestors);
|
625 |
|
626 |
+
// get top ancestor
|
627 |
$r_ref_field = $r_field_ancestors_fields[0];
|
628 |
$r_ref_values = acf_get_array(acf_get_value($r_mtype.$r_id, $r_ref_field));
|
629 |
|
630 |
+
// get values
|
631 |
$r_values = acf_get_array($this->get_value_from_ancestor($r_ref_values, $r_field));
|
632 |
|
633 |
+
// unset top ancestor for update (not needed)
|
634 |
unset($r_field_ancestors_fields[0]);
|
635 |
|
636 |
+
// add related field to get
|
637 |
$r_values_query = array($r_field['key']);
|
638 |
|
639 |
+
// if > 1 ancestors, return ancestors keys only
|
640 |
if(!empty($r_field_ancestors_fields)){
|
641 |
|
642 |
$r_field_ancestors_keys = array_map(function($field){
|
643 |
return $field['key'];
|
644 |
}, $r_field_ancestors_fields);
|
645 |
|
646 |
+
// add ancestors to get
|
647 |
$r_values_query = array_merge($r_field_ancestors_keys, $r_values_query);
|
648 |
|
649 |
}
|
650 |
|
651 |
}
|
652 |
|
653 |
+
// no Ancestors - simple field
|
654 |
else{
|
655 |
|
656 |
+
// reference field
|
657 |
$r_ref_field = $r_field;
|
658 |
|
659 |
+
// values
|
660 |
$r_values = acf_get_array(acf_get_value($r_mtype.$r_id, $r_field));
|
661 |
|
662 |
}
|
663 |
|
664 |
+
// convert strings to integers
|
665 |
$r_values = acf_parse_types($r_values);
|
666 |
|
667 |
+
// add Value
|
668 |
if($type === 'add'){
|
669 |
|
670 |
if(!in_array($p_value, $r_values)){
|
673 |
|
674 |
}
|
675 |
|
676 |
+
// remove Value
|
677 |
elseif($type === 'remove'){
|
678 |
|
679 |
$r_new_values = array();
|
689 |
|
690 |
}
|
691 |
|
692 |
+
/**
|
693 |
+
* post object & user 'allow multiple' disabled
|
694 |
+
* value must not be inside array
|
695 |
*/
|
696 |
if(($r_ref_field['type'] === 'post_object' || $r_ref_field['type'] === 'user') && empty($r_ref_field['multiple']) && isset($r_values[0])){
|
697 |
|
700 |
|
701 |
}
|
702 |
|
703 |
+
// remove potential empty serialized array in meta value 'a:0:{}'
|
704 |
+
if(empty($r_values)){
|
|
|
|
|
705 |
$r_values = false;
|
706 |
+
}
|
707 |
|
708 |
+
/**
|
709 |
+
* construct a value array in case of ancestors. ie:
|
710 |
+
*
|
711 |
* $related_values = Array(
|
712 |
* [field_aaa] => Array(
|
713 |
* [field_bbb] => Array(
|
724 |
|
725 |
}
|
726 |
|
727 |
+
// filter acf_update_value (to avoid infinite loop)
|
728 |
acf_enable_filter('acfe/bidirectional');
|
729 |
|
730 |
+
// update Related Field
|
731 |
acf_update_value($r_values, $r_mtype.$r_id, $r_ref_field);
|
732 |
|
733 |
+
// remove acf_update_value filter
|
734 |
acf_disable_filter('acfe/bidirectional');
|
735 |
|
736 |
}
|
737 |
|
738 |
}
|
739 |
|
740 |
+
|
741 |
+
/**
|
742 |
+
* get_value_from_ancestor
|
743 |
+
*
|
744 |
+
* @param $r_ref_values
|
745 |
+
* @param $r_field
|
746 |
+
*
|
747 |
+
* @return false|mixed|void
|
748 |
+
*/
|
749 |
function get_value_from_ancestor($r_ref_values, $r_field){
|
750 |
|
751 |
foreach($r_ref_values as $r_ref_key => $r_ref_value){
|
766 |
|
767 |
}
|
768 |
|
769 |
+
|
770 |
+
/**
|
771 |
+
* is_field_bidirectional
|
772 |
+
*
|
773 |
+
* @param $field
|
774 |
+
*
|
775 |
+
* @return bool
|
776 |
+
*/
|
777 |
function is_field_bidirectional($field){
|
778 |
return isset($field['acfe_bidirectional']['acfe_bidirectional_enabled']) && !empty($field['acfe_bidirectional']['acfe_bidirectional_enabled']);
|
779 |
}
|
780 |
|
781 |
+
|
782 |
+
/**
|
783 |
+
* has_field_bidirectional
|
784 |
+
*
|
785 |
+
* @param $field
|
786 |
+
*
|
787 |
+
* @return bool
|
788 |
+
*/
|
789 |
function has_field_bidirectional($field){
|
790 |
return isset($field['acfe_bidirectional']['acfe_bidirectional_related']) && !empty($field['acfe_bidirectional']['acfe_bidirectional_related']);
|
791 |
}
|
792 |
|
793 |
+
|
794 |
+
/**
|
795 |
+
* get_field_bidirectional
|
796 |
+
*
|
797 |
+
* @param $field
|
798 |
+
*
|
799 |
+
* @return false|mixed
|
800 |
+
*/
|
801 |
function get_field_bidirectional($field){
|
802 |
|
803 |
if(!$this->is_field_bidirectional($field) || !$this->has_field_bidirectional($field)){
|
includes/fields-settings/data.php
CHANGED
@@ -80,11 +80,11 @@ class acfe_field_data{
|
|
80 |
}
|
81 |
|
82 |
?>
|
83 |
-
<a href="#" class="button acfe-data-button" data-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
</div>
|
89 |
<?php
|
90 |
}
|
80 |
}
|
81 |
|
82 |
?>
|
83 |
+
<a href="#" class="button acfe-data-button" data-modal="<?php echo $id; ?>" style="margin-left:5px;"><?php _e('Data', 'acf'); ?></a>
|
84 |
+
<div class="acfe-modal" data-modal="<?php echo $id; ?>" data-title="<?php echo $title; ?>" data-footer="<?php _e('Close', 'acfe'); ?>">
|
85 |
+
<div class="acfe-modal-spacer">
|
86 |
+
<?php echo $field_debug . $post_debug; ?>
|
87 |
+
</div>
|
88 |
</div>
|
89 |
<?php
|
90 |
}
|
includes/fields-settings/settings.php
CHANGED
@@ -8,67 +8,77 @@ if(!class_exists('acfe_field_settings')):
|
|
8 |
|
9 |
class acfe_field_settings{
|
10 |
|
|
|
|
|
|
|
11 |
function __construct(){
|
12 |
|
13 |
-
//
|
14 |
add_action('acf/field_group/admin_head', array($this, 'load'));
|
15 |
add_action('wp_ajax_acf/field_group/render_field_settings', array($this, 'load_ajax'), 5);
|
16 |
|
17 |
-
//
|
18 |
add_filter('acfe/load_field', array($this, 'load_field'), 20);
|
19 |
add_filter('acfe/load_field', array($this, 'load_field_additional'), 20);
|
20 |
add_filter('acf/prepare_field', array($this, 'prepare_field'), 20);
|
21 |
|
22 |
}
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
26 |
*/
|
27 |
function load(){
|
28 |
|
29 |
-
if(!acf_is_filter_enabled('acfe/field_group/advanced'))
|
30 |
return;
|
|
|
31 |
|
32 |
$this->prepare_settings();
|
33 |
$this->add_settings();
|
34 |
|
35 |
}
|
36 |
|
37 |
-
|
38 |
-
|
|
|
39 |
*/
|
40 |
function load_ajax(){
|
41 |
|
42 |
$post_id = acf_maybe_get_POST('post_id');
|
43 |
$field_group = acf_get_field_group($post_id);
|
44 |
|
45 |
-
if(!$field_group)
|
46 |
return;
|
|
|
47 |
|
48 |
-
if(!acf_maybe_get($field_group, 'acfe_form'))
|
49 |
return;
|
|
|
50 |
|
51 |
$this->add_settings();
|
52 |
|
53 |
}
|
54 |
|
55 |
-
|
56 |
-
|
|
|
57 |
*/
|
58 |
function add_settings(){
|
59 |
|
60 |
-
//
|
61 |
$exclude = array('accordion', 'acfe_column', 'tab');
|
62 |
|
63 |
-
//
|
64 |
foreach(acf_get_field_types_info() as $field){
|
65 |
|
66 |
-
//
|
67 |
$field_type = $field['name'];
|
68 |
|
69 |
// check
|
70 |
-
if(in_array($field_type, $exclude))
|
71 |
continue;
|
|
|
72 |
|
73 |
add_action("acf/render_field_settings/type={$field_type}", array($this, 'render_field_settings'), 99);
|
74 |
|
@@ -76,12 +86,15 @@ class acfe_field_settings{
|
|
76 |
|
77 |
}
|
78 |
|
79 |
-
|
80 |
-
|
|
|
|
|
|
|
81 |
*/
|
82 |
function render_field_settings($field){
|
83 |
|
84 |
-
//
|
85 |
acf_render_field_setting($field, array(
|
86 |
'label' => __('Advanced Settings', 'acfe'),
|
87 |
'name' => 'acfe_settings',
|
@@ -243,68 +256,73 @@ class acfe_field_settings{
|
|
243 |
|
244 |
}
|
245 |
|
246 |
-
|
247 |
-
|
|
|
|
|
|
|
|
|
|
|
248 |
*/
|
249 |
function load_field($field){
|
250 |
|
251 |
-
if(!acf_maybe_get($field, 'acfe_settings'))
|
252 |
return $field;
|
|
|
253 |
|
254 |
$exclude = apply_filters('acfe/settings/exclude', false, $field);
|
255 |
-
if($exclude)
|
256 |
return $field;
|
|
|
257 |
|
258 |
foreach($field['acfe_settings'] as $k => $rule){
|
259 |
|
260 |
-
//
|
261 |
-
if($k === 'acfcloneindex')
|
262 |
continue;
|
|
|
263 |
|
264 |
-
//
|
265 |
$screen = isset($rule['acfe_settings_location']) ? $rule['acfe_settings_location'] : '';
|
266 |
$screen_allow = false;
|
267 |
|
268 |
-
//
|
269 |
if(empty($screen)){
|
270 |
-
|
271 |
$screen_allow = true;
|
272 |
-
|
273 |
}
|
274 |
|
275 |
-
//
|
276 |
elseif($screen === 'admin' && acfe_is_admin()){
|
277 |
-
|
278 |
$screen_allow = true;
|
279 |
-
|
280 |
}
|
281 |
|
282 |
-
//
|
283 |
elseif($screen === 'front' && acfe_is_front()){
|
284 |
-
|
285 |
$screen_allow = true;
|
286 |
-
|
287 |
}
|
288 |
|
289 |
-
if(!$screen_allow)
|
290 |
continue;
|
|
|
291 |
|
292 |
-
if(!acf_maybe_get($rule, 'acfe_settings_settings'))
|
293 |
continue;
|
|
|
294 |
|
295 |
-
//
|
296 |
$properties = $rule['acfe_settings_settings'];
|
297 |
|
298 |
foreach($properties as $property){
|
299 |
|
300 |
-
//
|
301 |
$property_name = $property['acfe_settings_setting_type'];
|
302 |
|
303 |
-
//
|
304 |
if($property['acfe_settings_setting_type'] === 'custom'){
|
305 |
|
306 |
-
if(!isset($property['acfe_settings_setting_name']) || empty($property['acfe_settings_setting_name']))
|
307 |
continue;
|
|
|
308 |
|
309 |
$property_name = $property['acfe_settings_setting_name'];
|
310 |
|
@@ -312,30 +330,22 @@ class acfe_field_settings{
|
|
312 |
|
313 |
// = value
|
314 |
if($property['acfe_settings_setting_operator'] === '='){
|
315 |
-
|
316 |
$field[$property_name] = $property['acfe_settings_setting_value'];
|
317 |
-
|
318 |
}
|
319 |
|
320 |
// = true
|
321 |
elseif($property['acfe_settings_setting_operator'] === 'true'){
|
322 |
-
|
323 |
$field[$property_name] = true;
|
324 |
-
|
325 |
}
|
326 |
|
327 |
// = false
|
328 |
elseif($property['acfe_settings_setting_operator'] === 'false'){
|
329 |
-
|
330 |
$field[$property_name] = false;
|
331 |
-
|
332 |
}
|
333 |
|
334 |
// = empty
|
335 |
elseif($property['acfe_settings_setting_operator'] === 'empty'){
|
336 |
-
|
337 |
$field[$property_name] = '';
|
338 |
-
|
339 |
}
|
340 |
|
341 |
}
|
@@ -346,6 +356,14 @@ class acfe_field_settings{
|
|
346 |
|
347 |
}
|
348 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
function load_field_additional($field){
|
350 |
|
351 |
$hide_required = acf_maybe_get($field, 'hide_required');
|
@@ -353,9 +371,7 @@ class acfe_field_settings{
|
|
353 |
if($hide_required){
|
354 |
|
355 |
if(is_bool($hide_required) || $hide_required === 'all' || ($hide_required === 'front' && acfe_is_front()) || $hide_required === 'admin' && acfe_is_admin()){
|
356 |
-
|
357 |
$field['required'] = false;
|
358 |
-
|
359 |
}
|
360 |
|
361 |
}
|
@@ -364,8 +380,13 @@ class acfe_field_settings{
|
|
364 |
|
365 |
}
|
366 |
|
367 |
-
|
368 |
-
|
|
|
|
|
|
|
|
|
|
|
369 |
*/
|
370 |
function prepare_field($field){
|
371 |
|
@@ -374,9 +395,7 @@ class acfe_field_settings{
|
|
374 |
if($hide_field){
|
375 |
|
376 |
if(is_bool($hide_field) || $hide_field === 'all' || ($hide_field === 'front' && acfe_is_front()) || $hide_field === 'admin' && acfe_is_admin()){
|
377 |
-
|
378 |
return false;
|
379 |
-
|
380 |
}
|
381 |
|
382 |
}
|
@@ -386,9 +405,7 @@ class acfe_field_settings{
|
|
386 |
if($hide_label){
|
387 |
|
388 |
if(is_bool($hide_label) || $hide_label === 'all' || ($hide_label === 'front' && acfe_is_front()) || $hide_label === 'admin' && acfe_is_admin()){
|
389 |
-
|
390 |
$field['label'] = '';
|
391 |
-
|
392 |
}
|
393 |
|
394 |
}
|
@@ -396,17 +413,16 @@ class acfe_field_settings{
|
|
396 |
$hide_instructions = acf_maybe_get($field, 'hide_instructions');
|
397 |
|
398 |
if(is_bool($hide_instructions) || $hide_instructions === 'all' || ($hide_instructions === 'front' && acfe_is_front()) || $hide_instructions === 'admin' && acfe_is_admin()){
|
399 |
-
|
400 |
$field['instructions'] = '';
|
401 |
-
|
402 |
}
|
403 |
|
404 |
return $field;
|
405 |
|
406 |
}
|
407 |
|
408 |
-
|
409 |
-
|
|
|
410 |
*/
|
411 |
function prepare_settings(){
|
412 |
|
8 |
|
9 |
class acfe_field_settings{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
+
// actions
|
17 |
add_action('acf/field_group/admin_head', array($this, 'load'));
|
18 |
add_action('wp_ajax_acf/field_group/render_field_settings', array($this, 'load_ajax'), 5);
|
19 |
|
20 |
+
// filters
|
21 |
add_filter('acfe/load_field', array($this, 'load_field'), 20);
|
22 |
add_filter('acfe/load_field', array($this, 'load_field_additional'), 20);
|
23 |
add_filter('acf/prepare_field', array($this, 'prepare_field'), 20);
|
24 |
|
25 |
}
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* load
|
30 |
*/
|
31 |
function load(){
|
32 |
|
33 |
+
if(!acf_is_filter_enabled('acfe/field_group/advanced')){
|
34 |
return;
|
35 |
+
}
|
36 |
|
37 |
$this->prepare_settings();
|
38 |
$this->add_settings();
|
39 |
|
40 |
}
|
41 |
|
42 |
+
|
43 |
+
/**
|
44 |
+
* load_ajax
|
45 |
*/
|
46 |
function load_ajax(){
|
47 |
|
48 |
$post_id = acf_maybe_get_POST('post_id');
|
49 |
$field_group = acf_get_field_group($post_id);
|
50 |
|
51 |
+
if(!$field_group){
|
52 |
return;
|
53 |
+
}
|
54 |
|
55 |
+
if(!acf_maybe_get($field_group, 'acfe_form')){
|
56 |
return;
|
57 |
+
}
|
58 |
|
59 |
$this->add_settings();
|
60 |
|
61 |
}
|
62 |
|
63 |
+
|
64 |
+
/**
|
65 |
+
* add_settings
|
66 |
*/
|
67 |
function add_settings(){
|
68 |
|
69 |
+
// exclude
|
70 |
$exclude = array('accordion', 'acfe_column', 'tab');
|
71 |
|
72 |
+
// get fields types
|
73 |
foreach(acf_get_field_types_info() as $field){
|
74 |
|
75 |
+
// field type
|
76 |
$field_type = $field['name'];
|
77 |
|
78 |
// check
|
79 |
+
if(in_array($field_type, $exclude)){
|
80 |
continue;
|
81 |
+
}
|
82 |
|
83 |
add_action("acf/render_field_settings/type={$field_type}", array($this, 'render_field_settings'), 99);
|
84 |
|
86 |
|
87 |
}
|
88 |
|
89 |
+
|
90 |
+
/**
|
91 |
+
* render_field_settings
|
92 |
+
*
|
93 |
+
* @param $field
|
94 |
*/
|
95 |
function render_field_settings($field){
|
96 |
|
97 |
+
// settings
|
98 |
acf_render_field_setting($field, array(
|
99 |
'label' => __('Advanced Settings', 'acfe'),
|
100 |
'name' => 'acfe_settings',
|
256 |
|
257 |
}
|
258 |
|
259 |
+
|
260 |
+
/**
|
261 |
+
* load_field
|
262 |
+
*
|
263 |
+
* @param $field
|
264 |
+
*
|
265 |
+
* @return mixed
|
266 |
*/
|
267 |
function load_field($field){
|
268 |
|
269 |
+
if(!acf_maybe_get($field, 'acfe_settings')){
|
270 |
return $field;
|
271 |
+
}
|
272 |
|
273 |
$exclude = apply_filters('acfe/settings/exclude', false, $field);
|
274 |
+
if($exclude){
|
275 |
return $field;
|
276 |
+
}
|
277 |
|
278 |
foreach($field['acfe_settings'] as $k => $rule){
|
279 |
|
280 |
+
// fix possible acf clone index
|
281 |
+
if($k === 'acfcloneindex'){
|
282 |
continue;
|
283 |
+
}
|
284 |
|
285 |
+
// screen
|
286 |
$screen = isset($rule['acfe_settings_location']) ? $rule['acfe_settings_location'] : '';
|
287 |
$screen_allow = false;
|
288 |
|
289 |
+
// screen: all
|
290 |
if(empty($screen)){
|
|
|
291 |
$screen_allow = true;
|
|
|
292 |
}
|
293 |
|
294 |
+
// screen: admin
|
295 |
elseif($screen === 'admin' && acfe_is_admin()){
|
|
|
296 |
$screen_allow = true;
|
|
|
297 |
}
|
298 |
|
299 |
+
// screen: front
|
300 |
elseif($screen === 'front' && acfe_is_front()){
|
|
|
301 |
$screen_allow = true;
|
|
|
302 |
}
|
303 |
|
304 |
+
if(!$screen_allow){
|
305 |
continue;
|
306 |
+
}
|
307 |
|
308 |
+
if(!acf_maybe_get($rule, 'acfe_settings_settings')){
|
309 |
continue;
|
310 |
+
}
|
311 |
|
312 |
+
// properties
|
313 |
$properties = $rule['acfe_settings_settings'];
|
314 |
|
315 |
foreach($properties as $property){
|
316 |
|
317 |
+
// required / hide field / hide label / default value / placeholder / instructions
|
318 |
$property_name = $property['acfe_settings_setting_type'];
|
319 |
|
320 |
+
// custom
|
321 |
if($property['acfe_settings_setting_type'] === 'custom'){
|
322 |
|
323 |
+
if(!isset($property['acfe_settings_setting_name']) || empty($property['acfe_settings_setting_name'])){
|
324 |
continue;
|
325 |
+
}
|
326 |
|
327 |
$property_name = $property['acfe_settings_setting_name'];
|
328 |
|
330 |
|
331 |
// = value
|
332 |
if($property['acfe_settings_setting_operator'] === '='){
|
|
|
333 |
$field[$property_name] = $property['acfe_settings_setting_value'];
|
|
|
334 |
}
|
335 |
|
336 |
// = true
|
337 |
elseif($property['acfe_settings_setting_operator'] === 'true'){
|
|
|
338 |
$field[$property_name] = true;
|
|
|
339 |
}
|
340 |
|
341 |
// = false
|
342 |
elseif($property['acfe_settings_setting_operator'] === 'false'){
|
|
|
343 |
$field[$property_name] = false;
|
|
|
344 |
}
|
345 |
|
346 |
// = empty
|
347 |
elseif($property['acfe_settings_setting_operator'] === 'empty'){
|
|
|
348 |
$field[$property_name] = '';
|
|
|
349 |
}
|
350 |
|
351 |
}
|
356 |
|
357 |
}
|
358 |
|
359 |
+
|
360 |
+
/**
|
361 |
+
* load_field_additional
|
362 |
+
*
|
363 |
+
* @param $field
|
364 |
+
*
|
365 |
+
* @return mixed
|
366 |
+
*/
|
367 |
function load_field_additional($field){
|
368 |
|
369 |
$hide_required = acf_maybe_get($field, 'hide_required');
|
371 |
if($hide_required){
|
372 |
|
373 |
if(is_bool($hide_required) || $hide_required === 'all' || ($hide_required === 'front' && acfe_is_front()) || $hide_required === 'admin' && acfe_is_admin()){
|
|
|
374 |
$field['required'] = false;
|
|
|
375 |
}
|
376 |
|
377 |
}
|
380 |
|
381 |
}
|
382 |
|
383 |
+
|
384 |
+
/**
|
385 |
+
* prepare_field
|
386 |
+
*
|
387 |
+
* @param $field
|
388 |
+
*
|
389 |
+
* @return false
|
390 |
*/
|
391 |
function prepare_field($field){
|
392 |
|
395 |
if($hide_field){
|
396 |
|
397 |
if(is_bool($hide_field) || $hide_field === 'all' || ($hide_field === 'front' && acfe_is_front()) || $hide_field === 'admin' && acfe_is_admin()){
|
|
|
398 |
return false;
|
|
|
399 |
}
|
400 |
|
401 |
}
|
405 |
if($hide_label){
|
406 |
|
407 |
if(is_bool($hide_label) || $hide_label === 'all' || ($hide_label === 'front' && acfe_is_front()) || $hide_label === 'admin' && acfe_is_admin()){
|
|
|
408 |
$field['label'] = '';
|
|
|
409 |
}
|
410 |
|
411 |
}
|
413 |
$hide_instructions = acf_maybe_get($field, 'hide_instructions');
|
414 |
|
415 |
if(is_bool($hide_instructions) || $hide_instructions === 'all' || ($hide_instructions === 'front' && acfe_is_front()) || $hide_instructions === 'admin' && acfe_is_admin()){
|
|
|
416 |
$field['instructions'] = '';
|
|
|
417 |
}
|
418 |
|
419 |
return $field;
|
420 |
|
421 |
}
|
422 |
|
423 |
+
|
424 |
+
/**
|
425 |
+
* prepare_settings
|
426 |
*/
|
427 |
function prepare_settings(){
|
428 |
|
includes/fields-settings/validation.php
CHANGED
@@ -8,65 +8,75 @@ if(!class_exists('acfe_field_validation')):
|
|
8 |
|
9 |
class acfe_field_validation{
|
10 |
|
|
|
|
|
|
|
11 |
function __construct(){
|
12 |
|
13 |
-
//
|
14 |
add_action('acf/field_group/admin_head', array($this, 'load'));
|
15 |
add_action('wp_ajax_acf/field_group/render_field_settings', array($this, 'load_ajax'), 5);
|
16 |
|
17 |
-
//
|
18 |
add_filter('acf/validate_value', array($this, 'validate_value'), 99, 4);
|
19 |
|
20 |
}
|
21 |
|
22 |
-
|
23 |
-
|
|
|
24 |
*/
|
25 |
function load(){
|
26 |
|
27 |
-
if(!acf_is_filter_enabled('acfe/field_group/advanced'))
|
28 |
return;
|
|
|
29 |
|
30 |
$this->prepare_settings();
|
31 |
$this->add_settings();
|
32 |
|
33 |
}
|
34 |
|
35 |
-
|
36 |
-
|
|
|
37 |
*/
|
38 |
function load_ajax(){
|
39 |
|
40 |
$post_id = acf_maybe_get_POST('post_id');
|
41 |
$field_group = acf_get_field_group($post_id);
|
42 |
|
43 |
-
if(!$field_group)
|
44 |
return;
|
|
|
45 |
|
46 |
-
if(!acf_maybe_get($field_group, 'acfe_form'))
|
47 |
return;
|
|
|
48 |
|
49 |
$this->add_settings();
|
50 |
|
51 |
}
|
52 |
|
53 |
-
|
54 |
-
|
|
|
55 |
*/
|
56 |
function add_settings(){
|
57 |
|
58 |
-
//
|
59 |
$exclude = array('accordion', 'acfe_button', 'acfe_column', 'acfe_dynamic_render', 'clone', 'flexible_content', 'group', 'message', 'repeater', 'tab');
|
60 |
|
61 |
-
//
|
62 |
foreach(acf_get_field_types_info() as $field){
|
63 |
|
64 |
-
//
|
65 |
$field_type = $field['name'];
|
66 |
|
67 |
// check
|
68 |
-
if(in_array($field_type, $exclude))
|
69 |
continue;
|
|
|
70 |
|
71 |
add_action("acf/render_field_settings/type={$field_type}", array($this, 'render_field_settings'), 99);
|
72 |
|
@@ -74,8 +84,11 @@ class acfe_field_validation{
|
|
74 |
|
75 |
}
|
76 |
|
77 |
-
|
78 |
-
|
|
|
|
|
|
|
79 |
*/
|
80 |
function render_field_settings($field){
|
81 |
|
@@ -134,10 +147,11 @@ class acfe_field_validation{
|
|
134 |
|
135 |
$choices = apply_filters('acfe/validate/functions', $functions, $field);
|
136 |
|
137 |
-
if(empty($choices))
|
138 |
return;
|
|
|
139 |
|
140 |
-
//
|
141 |
acf_render_field_setting($field, array(
|
142 |
'label' => __('Advanced Validation'),
|
143 |
'name' => 'acfe_validate',
|
@@ -389,64 +403,72 @@ class acfe_field_validation{
|
|
389 |
|
390 |
}
|
391 |
|
392 |
-
|
393 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
394 |
*/
|
395 |
function validate_value($valid, $value, $field, $input){
|
396 |
|
397 |
-
if(!$valid)
|
398 |
return $valid;
|
|
|
399 |
|
400 |
-
if(!acf_maybe_get($field, 'acfe_validate'))
|
401 |
return $valid;
|
|
|
402 |
|
403 |
foreach($field['acfe_validate'] as $k => $rule){
|
404 |
|
405 |
-
//
|
406 |
-
if($k === 'acfcloneindex')
|
407 |
continue;
|
|
|
408 |
|
409 |
-
//
|
410 |
$screen = isset($rule['acfe_validate_location']) ? $rule['acfe_validate_location'] : '';
|
411 |
$screen_allow = false;
|
412 |
|
413 |
-
//
|
414 |
if(empty($screen)){
|
415 |
-
|
416 |
$screen_allow = true;
|
417 |
-
|
418 |
}
|
419 |
|
420 |
-
//
|
421 |
elseif($screen === 'admin' && acfe_is_admin()){
|
422 |
-
|
423 |
$screen_allow = true;
|
424 |
-
|
425 |
}
|
426 |
|
427 |
-
//
|
428 |
elseif($screen === 'front' && acfe_is_front()){
|
429 |
-
|
430 |
$screen_allow = true;
|
431 |
-
|
432 |
}
|
433 |
|
434 |
-
if(!$screen_allow)
|
435 |
continue;
|
|
|
436 |
|
437 |
-
if(!acf_maybe_get($rule, 'acfe_validate_rules_and'))
|
438 |
continue;
|
|
|
439 |
|
440 |
$rule_match = true;
|
441 |
|
442 |
foreach($rule['acfe_validate_rules_and'] as $k => $function){
|
443 |
|
444 |
-
if(!$rule_match)
|
445 |
break;
|
|
|
446 |
|
447 |
$rule_match = false;
|
448 |
|
449 |
-
//
|
450 |
$filters = array(
|
451 |
'acfe/validate/function/' . $function['acfe_validate_function'] . '/key=' . $field['key'],
|
452 |
'acfe/validate/function/' . $function['acfe_validate_function'] . '/name=' . $field['name'],
|
@@ -457,40 +479,33 @@ class acfe_field_validation{
|
|
457 |
$filter_call = false;
|
458 |
foreach($filters as $filter){
|
459 |
|
460 |
-
if(has_filter($filter))
|
461 |
$filter_call = $filter;
|
|
|
462 |
|
463 |
}
|
464 |
|
465 |
-
//
|
466 |
if($filter_call){
|
467 |
-
|
468 |
$result = apply_filters($filter_call, false, $value, $field);
|
469 |
-
|
470 |
}
|
471 |
|
472 |
-
//
|
473 |
elseif(is_callable(array($this, $function['acfe_validate_function']))){
|
474 |
-
|
475 |
$result = call_user_func(array($this, $function['acfe_validate_function']), $value);
|
476 |
-
|
477 |
}
|
478 |
|
479 |
-
//
|
480 |
elseif(is_callable($function['acfe_validate_function'])){
|
481 |
-
|
482 |
$result = call_user_func($function['acfe_validate_function'], $value);
|
483 |
-
|
484 |
}
|
485 |
|
486 |
-
//
|
487 |
else{
|
488 |
-
|
489 |
continue;
|
490 |
-
|
491 |
}
|
492 |
|
493 |
-
//
|
494 |
$operator = $function['acfe_validate_operator'];
|
495 |
$match = acf_maybe_get($function, 'acfe_validate_match');
|
496 |
|
@@ -584,14 +599,16 @@ class acfe_field_validation{
|
|
584 |
|
585 |
}
|
586 |
|
587 |
-
//
|
588 |
$error = $rule['acfe_validate_error'];
|
589 |
|
590 |
-
if($rule_match && !empty($error))
|
591 |
$valid = $error;
|
|
|
592 |
|
593 |
-
if(!$valid || is_string($valid))
|
594 |
break;
|
|
|
595 |
|
596 |
}
|
597 |
|
@@ -599,47 +616,94 @@ class acfe_field_validation{
|
|
599 |
|
600 |
}
|
601 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
602 |
function get_user_by_id($value){
|
603 |
-
|
604 |
return get_user_by('id', $value);
|
605 |
-
|
606 |
}
|
607 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
608 |
function get_user_by_slug($value){
|
609 |
-
|
610 |
return get_user_by('slug', $value);
|
611 |
-
|
612 |
}
|
613 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
614 |
function get_user_by_email($value){
|
615 |
-
|
616 |
return get_user_by('email', $value);
|
617 |
-
|
618 |
}
|
619 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
620 |
function get_user_by_login($value){
|
621 |
-
|
622 |
return get_user_by('login', $value);
|
623 |
-
|
624 |
}
|
625 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
626 |
function value($value){
|
627 |
-
|
628 |
return $value;
|
629 |
-
|
630 |
}
|
631 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
632 |
function get_post_by_id($value){
|
633 |
|
634 |
$get_post = get_post($value);
|
635 |
|
636 |
-
if(!$get_post || is_wp_error($get_post))
|
637 |
return false;
|
|
|
638 |
|
639 |
return true;
|
640 |
|
641 |
}
|
642 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
643 |
function get_post_by_slug($value){
|
644 |
|
645 |
$get_posts = get_posts(array(
|
@@ -649,13 +713,22 @@ class acfe_field_validation{
|
|
649 |
'posts_per_page' => 1
|
650 |
));
|
651 |
|
652 |
-
if(empty($get_posts))
|
653 |
return false;
|
|
|
654 |
|
655 |
return true;
|
656 |
|
657 |
}
|
658 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
659 |
function get_post_by_title($value){
|
660 |
|
661 |
$get_posts = get_posts(array(
|
@@ -665,15 +738,17 @@ class acfe_field_validation{
|
|
665 |
'posts_per_page' => 1
|
666 |
));
|
667 |
|
668 |
-
if(empty($get_posts))
|
669 |
return false;
|
|
|
670 |
|
671 |
return true;
|
672 |
|
673 |
}
|
674 |
|
675 |
-
|
676 |
-
|
|
|
677 |
*/
|
678 |
function prepare_settings(){
|
679 |
|
8 |
|
9 |
class acfe_field_validation{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
+
// actions
|
17 |
add_action('acf/field_group/admin_head', array($this, 'load'));
|
18 |
add_action('wp_ajax_acf/field_group/render_field_settings', array($this, 'load_ajax'), 5);
|
19 |
|
20 |
+
// filters
|
21 |
add_filter('acf/validate_value', array($this, 'validate_value'), 99, 4);
|
22 |
|
23 |
}
|
24 |
|
25 |
+
|
26 |
+
/**
|
27 |
+
* load
|
28 |
*/
|
29 |
function load(){
|
30 |
|
31 |
+
if(!acf_is_filter_enabled('acfe/field_group/advanced')){
|
32 |
return;
|
33 |
+
}
|
34 |
|
35 |
$this->prepare_settings();
|
36 |
$this->add_settings();
|
37 |
|
38 |
}
|
39 |
|
40 |
+
|
41 |
+
/**
|
42 |
+
* load_ajax
|
43 |
*/
|
44 |
function load_ajax(){
|
45 |
|
46 |
$post_id = acf_maybe_get_POST('post_id');
|
47 |
$field_group = acf_get_field_group($post_id);
|
48 |
|
49 |
+
if(!$field_group){
|
50 |
return;
|
51 |
+
}
|
52 |
|
53 |
+
if(!acf_maybe_get($field_group, 'acfe_form')){
|
54 |
return;
|
55 |
+
}
|
56 |
|
57 |
$this->add_settings();
|
58 |
|
59 |
}
|
60 |
|
61 |
+
|
62 |
+
/**
|
63 |
+
* add_settings
|
64 |
*/
|
65 |
function add_settings(){
|
66 |
|
67 |
+
// exclude
|
68 |
$exclude = array('accordion', 'acfe_button', 'acfe_column', 'acfe_dynamic_render', 'clone', 'flexible_content', 'group', 'message', 'repeater', 'tab');
|
69 |
|
70 |
+
// get fields types
|
71 |
foreach(acf_get_field_types_info() as $field){
|
72 |
|
73 |
+
// field type
|
74 |
$field_type = $field['name'];
|
75 |
|
76 |
// check
|
77 |
+
if(in_array($field_type, $exclude)){
|
78 |
continue;
|
79 |
+
}
|
80 |
|
81 |
add_action("acf/render_field_settings/type={$field_type}", array($this, 'render_field_settings'), 99);
|
82 |
|
84 |
|
85 |
}
|
86 |
|
87 |
+
|
88 |
+
/**
|
89 |
+
* render_field_settings
|
90 |
+
*
|
91 |
+
* @param $field
|
92 |
*/
|
93 |
function render_field_settings($field){
|
94 |
|
147 |
|
148 |
$choices = apply_filters('acfe/validate/functions', $functions, $field);
|
149 |
|
150 |
+
if(empty($choices)){
|
151 |
return;
|
152 |
+
}
|
153 |
|
154 |
+
// settings
|
155 |
acf_render_field_setting($field, array(
|
156 |
'label' => __('Advanced Validation'),
|
157 |
'name' => 'acfe_validate',
|
403 |
|
404 |
}
|
405 |
|
406 |
+
|
407 |
+
/**
|
408 |
+
* validate_value
|
409 |
+
*
|
410 |
+
* @param $valid
|
411 |
+
* @param $value
|
412 |
+
* @param $field
|
413 |
+
* @param $input
|
414 |
+
*
|
415 |
+
* @return mixed
|
416 |
*/
|
417 |
function validate_value($valid, $value, $field, $input){
|
418 |
|
419 |
+
if(!$valid){
|
420 |
return $valid;
|
421 |
+
}
|
422 |
|
423 |
+
if(!acf_maybe_get($field, 'acfe_validate')){
|
424 |
return $valid;
|
425 |
+
}
|
426 |
|
427 |
foreach($field['acfe_validate'] as $k => $rule){
|
428 |
|
429 |
+
// fix possible acf clone index
|
430 |
+
if($k === 'acfcloneindex'){
|
431 |
continue;
|
432 |
+
}
|
433 |
|
434 |
+
// screen
|
435 |
$screen = isset($rule['acfe_validate_location']) ? $rule['acfe_validate_location'] : '';
|
436 |
$screen_allow = false;
|
437 |
|
438 |
+
// screen: all
|
439 |
if(empty($screen)){
|
|
|
440 |
$screen_allow = true;
|
|
|
441 |
}
|
442 |
|
443 |
+
// screen: admin
|
444 |
elseif($screen === 'admin' && acfe_is_admin()){
|
|
|
445 |
$screen_allow = true;
|
|
|
446 |
}
|
447 |
|
448 |
+
// screen: front
|
449 |
elseif($screen === 'front' && acfe_is_front()){
|
|
|
450 |
$screen_allow = true;
|
|
|
451 |
}
|
452 |
|
453 |
+
if(!$screen_allow){
|
454 |
continue;
|
455 |
+
}
|
456 |
|
457 |
+
if(!acf_maybe_get($rule, 'acfe_validate_rules_and')){
|
458 |
continue;
|
459 |
+
}
|
460 |
|
461 |
$rule_match = true;
|
462 |
|
463 |
foreach($rule['acfe_validate_rules_and'] as $k => $function){
|
464 |
|
465 |
+
if(!$rule_match){
|
466 |
break;
|
467 |
+
}
|
468 |
|
469 |
$rule_match = false;
|
470 |
|
471 |
+
// check filters
|
472 |
$filters = array(
|
473 |
'acfe/validate/function/' . $function['acfe_validate_function'] . '/key=' . $field['key'],
|
474 |
'acfe/validate/function/' . $function['acfe_validate_function'] . '/name=' . $field['name'],
|
479 |
$filter_call = false;
|
480 |
foreach($filters as $filter){
|
481 |
|
482 |
+
if(has_filter($filter)){
|
483 |
$filter_call = $filter;
|
484 |
+
}
|
485 |
|
486 |
}
|
487 |
|
488 |
+
// filter
|
489 |
if($filter_call){
|
|
|
490 |
$result = apply_filters($filter_call, false, $value, $field);
|
|
|
491 |
}
|
492 |
|
493 |
+
// class
|
494 |
elseif(is_callable(array($this, $function['acfe_validate_function']))){
|
|
|
495 |
$result = call_user_func(array($this, $function['acfe_validate_function']), $value);
|
|
|
496 |
}
|
497 |
|
498 |
+
// function
|
499 |
elseif(is_callable($function['acfe_validate_function'])){
|
|
|
500 |
$result = call_user_func($function['acfe_validate_function'], $value);
|
|
|
501 |
}
|
502 |
|
503 |
+
// nothing
|
504 |
else{
|
|
|
505 |
continue;
|
|
|
506 |
}
|
507 |
|
508 |
+
// vars
|
509 |
$operator = $function['acfe_validate_operator'];
|
510 |
$match = acf_maybe_get($function, 'acfe_validate_match');
|
511 |
|
599 |
|
600 |
}
|
601 |
|
602 |
+
// rrror
|
603 |
$error = $rule['acfe_validate_error'];
|
604 |
|
605 |
+
if($rule_match && !empty($error)){
|
606 |
$valid = $error;
|
607 |
+
}
|
608 |
|
609 |
+
if(!$valid || is_string($valid)){
|
610 |
break;
|
611 |
+
}
|
612 |
|
613 |
}
|
614 |
|
616 |
|
617 |
}
|
618 |
|
619 |
+
|
620 |
+
/**
|
621 |
+
* get_user_by_id
|
622 |
+
*
|
623 |
+
* @param $value
|
624 |
+
*
|
625 |
+
* @return false|WP_User
|
626 |
+
*/
|
627 |
function get_user_by_id($value){
|
|
|
628 |
return get_user_by('id', $value);
|
|
|
629 |
}
|
630 |
+
|
631 |
+
|
632 |
+
/**
|
633 |
+
* get_user_by_slug
|
634 |
+
*
|
635 |
+
* @param $value
|
636 |
+
*
|
637 |
+
* @return false|WP_User
|
638 |
+
*/
|
639 |
function get_user_by_slug($value){
|
|
|
640 |
return get_user_by('slug', $value);
|
|
|
641 |
}
|
642 |
+
|
643 |
+
|
644 |
+
/**
|
645 |
+
* get_user_by_email
|
646 |
+
*
|
647 |
+
* @param $value
|
648 |
+
*
|
649 |
+
* @return false|WP_User
|
650 |
+
*/
|
651 |
function get_user_by_email($value){
|
|
|
652 |
return get_user_by('email', $value);
|
|
|
653 |
}
|
654 |
+
|
655 |
+
|
656 |
+
/**
|
657 |
+
* get_user_by_login
|
658 |
+
*
|
659 |
+
* @param $value
|
660 |
+
*
|
661 |
+
* @return false|WP_User
|
662 |
+
*/
|
663 |
function get_user_by_login($value){
|
|
|
664 |
return get_user_by('login', $value);
|
|
|
665 |
}
|
666 |
|
667 |
+
|
668 |
+
/**
|
669 |
+
* value
|
670 |
+
*
|
671 |
+
* @param $value
|
672 |
+
*
|
673 |
+
* @return mixed
|
674 |
+
*/
|
675 |
function value($value){
|
|
|
676 |
return $value;
|
|
|
677 |
}
|
678 |
|
679 |
+
|
680 |
+
/**
|
681 |
+
* get_post_by_id
|
682 |
+
*
|
683 |
+
* @param $value
|
684 |
+
*
|
685 |
+
* @return bool
|
686 |
+
*/
|
687 |
function get_post_by_id($value){
|
688 |
|
689 |
$get_post = get_post($value);
|
690 |
|
691 |
+
if(!$get_post || is_wp_error($get_post)){
|
692 |
return false;
|
693 |
+
}
|
694 |
|
695 |
return true;
|
696 |
|
697 |
}
|
698 |
|
699 |
+
|
700 |
+
/**
|
701 |
+
* get_post_by_slug
|
702 |
+
*
|
703 |
+
* @param $value
|
704 |
+
*
|
705 |
+
* @return bool
|
706 |
+
*/
|
707 |
function get_post_by_slug($value){
|
708 |
|
709 |
$get_posts = get_posts(array(
|
713 |
'posts_per_page' => 1
|
714 |
));
|
715 |
|
716 |
+
if(empty($get_posts)){
|
717 |
return false;
|
718 |
+
}
|
719 |
|
720 |
return true;
|
721 |
|
722 |
}
|
723 |
|
724 |
+
|
725 |
+
/**
|
726 |
+
* get_post_by_title
|
727 |
+
*
|
728 |
+
* @param $value
|
729 |
+
*
|
730 |
+
* @return bool
|
731 |
+
*/
|
732 |
function get_post_by_title($value){
|
733 |
|
734 |
$get_posts = get_posts(array(
|
738 |
'posts_per_page' => 1
|
739 |
));
|
740 |
|
741 |
+
if(empty($get_posts)){
|
742 |
return false;
|
743 |
+
}
|
744 |
|
745 |
return true;
|
746 |
|
747 |
}
|
748 |
|
749 |
+
|
750 |
+
/**
|
751 |
+
* prepare_settings
|
752 |
*/
|
753 |
function prepare_settings(){
|
754 |
|
includes/fields/field-advanced-link.php
CHANGED
@@ -8,9 +8,6 @@ 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 |
*/
|
@@ -26,159 +23,10 @@ class acfe_field_advanced_link extends acf_field{
|
|
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
|
46 |
-
$field['type'] = 'select';
|
47 |
-
$field['ui'] = 1;
|
48 |
-
$field['ajax'] = 1;
|
49 |
-
$field['choices'] = array();
|
50 |
-
|
51 |
-
// load posts
|
52 |
-
$posts = $this->post_object->get_posts($field['value'], $field);
|
53 |
-
|
54 |
-
if($posts){
|
55 |
-
|
56 |
-
foreach(array_keys($posts) as $i){
|
57 |
-
|
58 |
-
// vars
|
59 |
-
$post = acf_extract_var($posts, $i);
|
60 |
-
|
61 |
-
// append to choices
|
62 |
-
$field['choices'][ $post->ID ] = $this->post_object->get_post_title($post, $field);
|
63 |
-
|
64 |
-
}
|
65 |
-
|
66 |
-
}
|
67 |
-
|
68 |
-
if(acf_maybe_get($field, '_name') === 'post' && !empty($field['value']) && !is_array($field['value']) && !is_numeric($field['value'])){
|
69 |
-
|
70 |
-
$post_type = $field['value'];
|
71 |
-
$post_type_label = acf_get_post_type_label($post_type);
|
72 |
-
|
73 |
-
$field['choices'][$field['value']] = $post_type_label . ' Archive';
|
74 |
-
|
75 |
-
}
|
76 |
-
|
77 |
-
// render
|
78 |
-
acf_render_field( $field );
|
79 |
-
|
80 |
-
}
|
81 |
-
|
82 |
-
|
83 |
-
/**
|
84 |
-
* ajax_query
|
85 |
-
*
|
86 |
-
* @return false|void
|
87 |
-
*/
|
88 |
-
function ajax_query(){
|
89 |
-
|
90 |
-
// validate
|
91 |
-
if(!acf_verify_ajax())
|
92 |
-
die();
|
93 |
-
|
94 |
-
// get choices
|
95 |
-
$response = $this->post_object->get_ajax_query($_POST);
|
96 |
-
|
97 |
-
$options = acf_parse_args($_POST, array(
|
98 |
-
'post_id' => 0,
|
99 |
-
's' => '',
|
100 |
-
'field_key' => '',
|
101 |
-
'paged' => 1
|
102 |
-
));
|
103 |
-
|
104 |
-
$field = acf_get_field($options['field_key']);
|
105 |
-
if(!$field)
|
106 |
-
return false;
|
107 |
-
|
108 |
-
if($options['paged'] > 1)
|
109 |
-
acf_send_ajax_results($response);
|
110 |
-
|
111 |
-
// init archives
|
112 |
-
$s = false;
|
113 |
-
$is_search = false;
|
114 |
-
|
115 |
-
if($options['s'] !== ''){
|
116 |
-
|
117 |
-
$s = wp_unslash(strval($options['s']));
|
118 |
-
$is_search = true;
|
119 |
-
|
120 |
-
}
|
121 |
-
|
122 |
-
if(!empty($field['post_type'])){
|
123 |
-
|
124 |
-
$post_types = acf_get_array($field['post_type']);
|
125 |
-
|
126 |
-
}else{
|
127 |
-
|
128 |
-
$post_types = acf_get_post_types();
|
129 |
-
|
130 |
-
}
|
131 |
-
|
132 |
-
$post_types_archives = array();
|
133 |
-
|
134 |
-
foreach($post_types as $post_type){
|
135 |
-
|
136 |
-
$post_type_obj = get_post_type_object($post_type);
|
137 |
-
|
138 |
-
$has_archive = false;
|
139 |
-
|
140 |
-
if($post_type === 'post' || $post_type_obj->has_archive){
|
141 |
-
|
142 |
-
$has_archive = true;
|
143 |
-
|
144 |
-
}
|
145 |
-
|
146 |
-
if(!$has_archive)
|
147 |
-
continue;
|
148 |
-
|
149 |
-
$post_type_label = acf_get_post_type_label($post_type);
|
150 |
-
|
151 |
-
if($is_search && stripos($post_type_label, $s) === false)
|
152 |
-
continue;
|
153 |
-
|
154 |
-
$post_types_archives[] = array(
|
155 |
-
'id' => $post_type,
|
156 |
-
'text' => $post_type_label . ' Archive'
|
157 |
-
);
|
158 |
-
|
159 |
-
}
|
160 |
-
|
161 |
-
if(!empty($post_types_archives)){
|
162 |
-
|
163 |
-
if(!isset($response['results'])){
|
164 |
-
|
165 |
-
$response['results'] = array();
|
166 |
-
|
167 |
-
}
|
168 |
-
|
169 |
-
array_unshift($response['results'], array(
|
170 |
-
'text' => 'Archives',
|
171 |
-
'children' => $post_types_archives
|
172 |
-
));
|
173 |
-
|
174 |
-
}
|
175 |
-
|
176 |
-
// return
|
177 |
-
acf_send_ajax_results($response);
|
178 |
-
|
179 |
-
}
|
180 |
-
|
181 |
-
|
182 |
/**
|
183 |
* render_field_settings
|
184 |
*
|
@@ -186,9 +34,9 @@ class acfe_field_advanced_link extends acf_field{
|
|
186 |
*/
|
187 |
function render_field_settings($field){
|
188 |
|
189 |
-
//
|
190 |
acf_render_field_setting($field, array(
|
191 |
-
'label' => __('Filter by Post Type','acf'),
|
192 |
'instructions' => '',
|
193 |
'type' => 'select',
|
194 |
'name' => 'post_type',
|
@@ -196,12 +44,12 @@ class acfe_field_advanced_link extends acf_field{
|
|
196 |
'multiple' => 1,
|
197 |
'ui' => 1,
|
198 |
'allow_null' => 1,
|
199 |
-
'placeholder' => __(
|
200 |
));
|
201 |
|
202 |
-
//
|
203 |
acf_render_field_setting($field, array(
|
204 |
-
'label' => __('Filter by Taxonomy','acf'),
|
205 |
'instructions' => '',
|
206 |
'type' => 'select',
|
207 |
'name' => 'taxonomy',
|
@@ -209,202 +57,212 @@ class acfe_field_advanced_link extends acf_field{
|
|
209 |
'multiple' => 1,
|
210 |
'ui' => 1,
|
211 |
'allow_null' => 1,
|
212 |
-
'placeholder' => __(
|
213 |
));
|
214 |
|
215 |
}
|
216 |
|
217 |
|
218 |
/**
|
219 |
-
*
|
220 |
-
*
|
221 |
-
* @param $value
|
222 |
*
|
223 |
-
* @
|
224 |
*/
|
225 |
-
function
|
226 |
|
227 |
// vars
|
228 |
-
$
|
229 |
-
'
|
230 |
-
'
|
231 |
-
|
232 |
-
'title' => '',
|
233 |
-
'url' => false,
|
234 |
-
'url_title' => '',
|
235 |
-
'target' => false,
|
236 |
-
));
|
237 |
|
238 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
|
240 |
-
//
|
241 |
-
if($value['
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
$value['url'] = get_permalink($value['post']);
|
246 |
-
$value['url_title'] = get_the_title($value['post']);
|
247 |
-
|
248 |
-
}else{
|
249 |
-
|
250 |
-
$post_type = $value['post'];
|
251 |
-
|
252 |
-
$value['url'] = get_post_type_archive_link($post_type);
|
253 |
-
$value['url_title'] = acf_get_post_type_label($post_type) . ' Archive';
|
254 |
-
|
255 |
-
}
|
256 |
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
$term = get_term(intval($value['term']));
|
261 |
-
|
262 |
-
if(!empty($term) && !is_wp_error($term)){
|
263 |
-
|
264 |
-
$value['url'] = get_term_link($term);
|
265 |
-
$value['url_title'] = $term->name;
|
266 |
-
|
267 |
-
}
|
268 |
-
|
269 |
}
|
270 |
|
271 |
-
|
272 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
|
274 |
-
|
275 |
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
|
281 |
}
|
282 |
|
283 |
|
284 |
/**
|
285 |
-
*
|
286 |
*
|
287 |
* @param $field
|
|
|
|
|
288 |
*/
|
289 |
-
function
|
290 |
|
291 |
-
//
|
292 |
-
$
|
293 |
-
|
294 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
);
|
296 |
|
297 |
-
//
|
298 |
-
$
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
if($value['target'] === '_blank'){
|
306 |
-
$div['class'] .= ' -external';
|
307 |
-
}
|
308 |
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
'post' => __('Post', 'acf'),
|
321 |
-
'term' => __('Term', 'acf'),
|
322 |
-
),
|
323 |
-
),
|
324 |
-
|
325 |
-
array(
|
326 |
-
'name' => 'url',
|
327 |
-
'key' => 'url',
|
328 |
-
'label' => __('URL', 'acf'),
|
329 |
-
'type' => 'text',
|
330 |
-
'required' => false,
|
331 |
-
'class' => 'input-url',
|
332 |
-
'conditional_logic' => array(
|
333 |
array(
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
'value' => 'url',
|
338 |
-
)
|
339 |
)
|
340 |
)
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
array(
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
'value' => 'post',
|
359 |
-
)
|
360 |
)
|
361 |
)
|
362 |
-
)
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
|
|
|
|
|
|
|
|
376 |
array(
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
'value' => 'term',
|
381 |
-
)
|
382 |
)
|
383 |
)
|
384 |
-
)
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
array(
|
396 |
-
'name' => 'target',
|
397 |
-
'key' => 'target',
|
398 |
-
'label' => __('Target', 'acf'),
|
399 |
-
'type' => 'true_false',
|
400 |
-
'message' => __('Open in a new window', 'acf'),
|
401 |
-
'required' => false,
|
402 |
-
'class' => 'input-target',
|
403 |
-
),
|
404 |
-
|
405 |
);
|
406 |
|
407 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
408 |
$sub_fields = apply_filters_deprecated('acfe/fields/advanced_link/fields', array($sub_fields, $field, $value), '0.8.1', 'acfe/fields/advanced_link/sub_fields');
|
409 |
$sub_fields = apply_filters_deprecated('acfe/fields/advanced_link/fields/name=' . $field['_name'], array($sub_fields, $field, $value), '0.8.1', 'acfe/fields/advanced_link/sub_fields/name=' . $field['_name']);
|
410 |
$sub_fields = apply_filters_deprecated('acfe/fields/advanced_link/fields/key=' . $field['key'], array($sub_fields, $field, $value), '0.8.1', 'acfe/fields/advanced_link/sub_fields/key=' . $field['key']);
|
@@ -416,46 +274,92 @@ class acfe_field_advanced_link extends acf_field{
|
|
416 |
|
417 |
foreach($sub_fields as &$sub_field){
|
418 |
|
419 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
420 |
|
421 |
-
|
|
|
422 |
|
|
|
423 |
$sub_field = acf_validate_field($sub_field);
|
424 |
|
425 |
-
$sub_field = acf_prepare_field($sub_field);
|
426 |
-
|
427 |
}
|
428 |
|
429 |
-
|
430 |
|
431 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
432 |
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
</div>
|
444 |
-
</div>
|
445 |
-
</div>
|
446 |
|
447 |
-
|
|
|
|
|
|
|
|
|
|
|
448 |
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
?><a class="acf-icon -pencil -clear acf-js-tooltip" data-name="edit" href="#" title="<?php _e('Edit', 'acf'); ?>"></a><?php
|
454 |
-
?><a class="acf-icon -cancel -clear acf-js-tooltip" data-name="remove" href="#" title="<?php _e('Remove', 'acf'); ?>"></a>
|
455 |
-
</div>
|
456 |
|
457 |
-
|
458 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
|
460 |
}
|
461 |
|
@@ -471,15 +375,60 @@ class acfe_field_advanced_link extends acf_field{
|
|
471 |
*/
|
472 |
function format_value($value, $post_id, $field){
|
473 |
|
474 |
-
//
|
475 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
476 |
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
483 |
return $value;
|
484 |
|
485 |
}
|
@@ -502,17 +451,292 @@ class acfe_field_advanced_link extends acf_field{
|
|
502 |
return $valid;
|
503 |
}
|
504 |
|
505 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
506 |
if(empty($value)){
|
507 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
}
|
509 |
|
510 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
511 |
return false;
|
512 |
}
|
513 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
514 |
// return
|
515 |
-
return $
|
516 |
|
517 |
}
|
518 |
|
8 |
|
9 |
class acfe_field_advanced_link extends acf_field{
|
10 |
|
|
|
|
|
|
|
11 |
/**
|
12 |
* initialize
|
13 |
*/
|
23 |
|
24 |
$this->add_action('wp_ajax_acfe/fields/advanced_link/post_query', array($this, 'ajax_query'));
|
25 |
$this->add_action('wp_ajax_nopriv_acfe/fields/advanced_link/post_query', array($this, 'ajax_query'));
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
}
|
28 |
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
/**
|
31 |
* render_field_settings
|
32 |
*
|
34 |
*/
|
35 |
function render_field_settings($field){
|
36 |
|
37 |
+
// filter post types
|
38 |
acf_render_field_setting($field, array(
|
39 |
+
'label' => __('Filter by Post Type', 'acf'),
|
40 |
'instructions' => '',
|
41 |
'type' => 'select',
|
42 |
'name' => 'post_type',
|
44 |
'multiple' => 1,
|
45 |
'ui' => 1,
|
46 |
'allow_null' => 1,
|
47 |
+
'placeholder' => __('All post types', 'acf'),
|
48 |
));
|
49 |
|
50 |
+
// filter taxonomies
|
51 |
acf_render_field_setting($field, array(
|
52 |
+
'label' => __('Filter by Taxonomy', 'acf'),
|
53 |
'instructions' => '',
|
54 |
'type' => 'select',
|
55 |
'name' => 'taxonomy',
|
57 |
'multiple' => 1,
|
58 |
'ui' => 1,
|
59 |
'allow_null' => 1,
|
60 |
+
'placeholder' => __('All taxonomies', 'acf'),
|
61 |
));
|
62 |
|
63 |
}
|
64 |
|
65 |
|
66 |
/**
|
67 |
+
* render_field
|
|
|
|
|
68 |
*
|
69 |
+
* @param $field
|
70 |
*/
|
71 |
+
function render_field($field){
|
72 |
|
73 |
// vars
|
74 |
+
$div = array(
|
75 |
+
'id' => $field['id'],
|
76 |
+
'class' => $field['class'] . ' acf-link',
|
77 |
+
);
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
+
// get value render
|
80 |
+
$value = $field['value'];
|
81 |
+
$value = $this->load_value($value, false, $field);
|
82 |
+
$value = $this->format_value($value, false, $field);
|
83 |
+
|
84 |
+
// get sub fields
|
85 |
+
$sub_fields = $this->get_sub_fields($field);
|
86 |
|
87 |
+
// classes
|
88 |
+
if($value['url'] || $value['title']){
|
89 |
+
$div['class'] .= ' -value';
|
90 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
|
92 |
+
if($value['target']){
|
93 |
+
$div['class'] .= ' -external';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
}
|
95 |
|
96 |
+
?>
|
97 |
+
|
98 |
+
<div <?php echo acf_esc_attrs($div); ?>>
|
99 |
+
|
100 |
+
<?php acf_hidden_input(array('name' => $field['name'])); ?>
|
101 |
+
|
102 |
+
<div class="acfe-modal" data-title="<?php echo $field['label']; ?>" data-size="medium" data-footer="<?php _e('Close', 'acfe'); ?>">
|
103 |
+
<div class="acfe-modal-wrapper">
|
104 |
+
<div class="acfe-modal-content">
|
105 |
+
|
106 |
+
<div class="acf-fields -left">
|
107 |
+
|
108 |
+
<?php foreach($sub_fields as $sub_field): ?>
|
109 |
+
|
110 |
+
<?php acf_render_field_wrap($sub_field); ?>
|
111 |
+
|
112 |
+
<?php endforeach; ?>
|
113 |
+
|
114 |
+
</div>
|
115 |
+
|
116 |
+
</div>
|
117 |
+
</div>
|
118 |
+
</div>
|
119 |
|
120 |
+
<a href="#" class="button" data-name="add" target=""><?php _e('Select Link', 'acf'); ?></a>
|
121 |
|
122 |
+
<div class="link-wrap">
|
123 |
+
<span class="link-title"><?php echo esc_html($value['title']); ?></span>
|
124 |
+
<a class="link-url" href="<?php echo esc_url($value['url']); ?>" target="_blank"><?php echo esc_html($value['name']); ?></a>
|
125 |
+
<i class="acf-icon -link-ext acf-js-tooltip" title="<?php _e('Opens in a new window/tab', 'acf'); ?>"></i><?php
|
126 |
+
?><a class="acf-icon -pencil -clear acf-js-tooltip" data-name="edit" href="#" title="<?php _e('Edit', 'acf'); ?>"></a><?php
|
127 |
+
?><a class="acf-icon -cancel -clear acf-js-tooltip" data-name="remove" href="#" title="<?php _e('Remove', 'acf'); ?>"></a>
|
128 |
+
</div>
|
129 |
+
|
130 |
+
</div>
|
131 |
+
<?php
|
132 |
|
133 |
}
|
134 |
|
135 |
|
136 |
/**
|
137 |
+
* get_sub_fields
|
138 |
*
|
139 |
* @param $field
|
140 |
+
*
|
141 |
+
* @return mixed|null
|
142 |
*/
|
143 |
+
function get_sub_fields($field){
|
144 |
|
145 |
+
// get value
|
146 |
+
$value = $field['value'];
|
147 |
+
|
148 |
+
// storage
|
149 |
+
$sub_fields = array();
|
150 |
+
|
151 |
+
// type
|
152 |
+
$sub_fields[] = array(
|
153 |
+
'name' => 'type',
|
154 |
+
'key' => 'type',
|
155 |
+
'label' => __('Type', 'acf'),
|
156 |
+
'type' => 'radio',
|
157 |
+
'required' => false,
|
158 |
+
'class' => 'input-type',
|
159 |
+
'choices' => array(
|
160 |
+
'url' => __('URL', 'acf'),
|
161 |
+
'post' => __('Post', 'acf'),
|
162 |
+
'term' => __('Term', 'acf'),
|
163 |
+
),
|
164 |
);
|
165 |
|
166 |
+
// value
|
167 |
+
$sub_fields[] = array(
|
168 |
+
'name' => 'value',
|
169 |
+
'key' => 'value',
|
170 |
+
'label' => '',
|
171 |
+
'type' => 'acfe_hidden',
|
172 |
+
'required' => false,
|
173 |
+
);
|
|
|
|
|
|
|
174 |
|
175 |
+
// url
|
176 |
+
$sub_fields[] = array(
|
177 |
+
'name' => 'url',
|
178 |
+
'key' => 'url',
|
179 |
+
'label' => __('URL', 'acf'),
|
180 |
+
'type' => 'text',
|
181 |
+
'required' => false,
|
182 |
+
'class' => 'input-url',
|
183 |
+
'value' => isset($value['type']) && $value['type'] === 'url' ? $value['value'] : '', // inject value based on type
|
184 |
+
'conditional_logic' => array(
|
185 |
+
array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
array(
|
187 |
+
'field' => 'type',
|
188 |
+
'operator' => '==',
|
189 |
+
'value' => 'url',
|
|
|
|
|
190 |
)
|
191 |
)
|
192 |
+
)
|
193 |
+
);
|
194 |
+
|
195 |
+
// post
|
196 |
+
$sub_fields[] = array(
|
197 |
+
'name' => 'post',
|
198 |
+
'key' => 'post',
|
199 |
+
'label' => __('Post', 'acf'),
|
200 |
+
'type' => 'select',
|
201 |
+
'required' => false,
|
202 |
+
'class' => 'input-post',
|
203 |
+
'allow_null' => 0,
|
204 |
+
'ui' => 1,
|
205 |
+
'ajax' => 1,
|
206 |
+
'ajax_action' => 'acfe/fields/advanced_link/post_query',
|
207 |
+
'choices' => $this->get_post_choices($field),
|
208 |
+
'value' => isset($value['type']) && $value['type'] === 'post' ? $value['value'] : '', // inject value based on type
|
209 |
+
'conditional_logic' => array(
|
210 |
+
array(
|
211 |
array(
|
212 |
+
'field' => 'type',
|
213 |
+
'operator' => '==',
|
214 |
+
'value' => 'post',
|
|
|
|
|
215 |
)
|
216 |
)
|
217 |
+
)
|
218 |
+
);
|
219 |
+
|
220 |
+
// term
|
221 |
+
$sub_fields[] = array(
|
222 |
+
'name' => 'term',
|
223 |
+
'key' => 'term',
|
224 |
+
'label' => __('Term', 'acf'),
|
225 |
+
'type' => 'acfe_taxonomy_terms',
|
226 |
+
'required' => false,
|
227 |
+
'class' => 'input-term',
|
228 |
+
'field_type' => 'select',
|
229 |
+
'return_format' => 'id',
|
230 |
+
'ui' => 1,
|
231 |
+
'allow_null' => 0,
|
232 |
+
'value' => isset($value['type']) && $value['type'] === 'term' ? $value['value'] : '', // inject value based on type
|
233 |
+
'conditional_logic' => array(
|
234 |
+
array(
|
235 |
array(
|
236 |
+
'field' => 'type',
|
237 |
+
'operator' => '==',
|
238 |
+
'value' => 'term',
|
|
|
|
|
239 |
)
|
240 |
)
|
241 |
+
)
|
242 |
+
);
|
243 |
+
|
244 |
+
// title
|
245 |
+
$sub_fields[] = array(
|
246 |
+
'name' => 'title',
|
247 |
+
'key' => 'title',
|
248 |
+
'label' => __('Link text', 'acf'),
|
249 |
+
'type' => 'text',
|
250 |
+
'required' => false,
|
251 |
+
'class' => 'input-title',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
);
|
253 |
|
254 |
+
// target
|
255 |
+
$sub_fields[] = array(
|
256 |
+
'name' => 'target',
|
257 |
+
'key' => 'target',
|
258 |
+
'label' => __('Target', 'acf'),
|
259 |
+
'type' => 'true_false',
|
260 |
+
'message' => __('Open in a new window', 'acf'),
|
261 |
+
'required' => false,
|
262 |
+
'class' => 'input-target',
|
263 |
+
);
|
264 |
+
|
265 |
+
// deprecated
|
266 |
$sub_fields = apply_filters_deprecated('acfe/fields/advanced_link/fields', array($sub_fields, $field, $value), '0.8.1', 'acfe/fields/advanced_link/sub_fields');
|
267 |
$sub_fields = apply_filters_deprecated('acfe/fields/advanced_link/fields/name=' . $field['_name'], array($sub_fields, $field, $value), '0.8.1', 'acfe/fields/advanced_link/sub_fields/name=' . $field['_name']);
|
268 |
$sub_fields = apply_filters_deprecated('acfe/fields/advanced_link/fields/key=' . $field['key'], array($sub_fields, $field, $value), '0.8.1', 'acfe/fields/advanced_link/sub_fields/key=' . $field['key']);
|
274 |
|
275 |
foreach($sub_fields as &$sub_field){
|
276 |
|
277 |
+
// add value
|
278 |
+
if(isset($value[ $sub_field['key'] ])){
|
279 |
+
|
280 |
+
// this is a normal value
|
281 |
+
$sub_field['value'] = $value[ $sub_field['key'] ];
|
282 |
+
|
283 |
+
}elseif(isset($sub_field['default_value'])){
|
284 |
+
|
285 |
+
// no value, but this subfield has a default value
|
286 |
+
$sub_field['value'] = $sub_field['default_value'];
|
287 |
+
|
288 |
+
}
|
289 |
|
290 |
+
// update prefix to allow for nested values
|
291 |
+
$sub_field['prefix'] = $field['name'];
|
292 |
|
293 |
+
// validate sub field
|
294 |
$sub_field = acf_validate_field($sub_field);
|
295 |
|
|
|
|
|
296 |
}
|
297 |
|
298 |
+
return $sub_fields;
|
299 |
|
300 |
+
}
|
301 |
+
|
302 |
+
|
303 |
+
/**
|
304 |
+
* load_value
|
305 |
+
*
|
306 |
+
* @param $value
|
307 |
+
* @param $post_id
|
308 |
+
* @param $field
|
309 |
+
*
|
310 |
+
* @return array
|
311 |
+
*/
|
312 |
+
function load_value($value, $post_id, $field){
|
313 |
+
|
314 |
+
// if value is string then set as value
|
315 |
+
if(is_string($value)){
|
316 |
+
$value = array('value' => $value);
|
317 |
+
}
|
318 |
|
319 |
+
// defaults
|
320 |
+
$value = wp_parse_args($value, array(
|
321 |
+
'type' => 'url',
|
322 |
+
'value' => '',
|
323 |
+
'title' => '',
|
324 |
+
'target' => false,
|
325 |
+
));
|
326 |
+
|
327 |
+
// handle old args
|
328 |
+
foreach(array('post', 'term') as $arg){
|
|
|
|
|
|
|
329 |
|
330 |
+
if(isset($value[ $arg ])){
|
331 |
+
|
332 |
+
$value['value'] = $value[ $arg ];
|
333 |
+
unset($value[ $arg ]);
|
334 |
+
|
335 |
+
}
|
336 |
|
337 |
+
}
|
338 |
+
|
339 |
+
// sanitize value
|
340 |
+
if(!empty($value['value'])){
|
|
|
|
|
|
|
341 |
|
342 |
+
switch($value['type']){
|
343 |
+
|
344 |
+
case 'post': {
|
345 |
+
$value['value'] = is_numeric($value['value']) ? absint($value['value']) : $value['value'];
|
346 |
+
break;
|
347 |
+
}
|
348 |
+
|
349 |
+
case 'term': {
|
350 |
+
$value['value'] = absint($value['value']);
|
351 |
+
break;
|
352 |
+
}
|
353 |
+
|
354 |
+
}
|
355 |
+
|
356 |
+
}
|
357 |
+
|
358 |
+
// sanitize target
|
359 |
+
$value['target'] = (bool) $value['target'];
|
360 |
+
|
361 |
+
// return value
|
362 |
+
return $value;
|
363 |
|
364 |
}
|
365 |
|
375 |
*/
|
376 |
function format_value($value, $post_id, $field){
|
377 |
|
378 |
+
// if value is string then set as value
|
379 |
+
if(is_string($value)){
|
380 |
+
$value = array('value' => $value);
|
381 |
+
}
|
382 |
+
|
383 |
+
// defaults
|
384 |
+
$value = wp_parse_args($value, array(
|
385 |
+
'type' => 'url',
|
386 |
+
'value' => '',
|
387 |
+
'url' => '',
|
388 |
+
'name' => '',
|
389 |
+
'title' => '',
|
390 |
+
'target' => '',
|
391 |
+
));
|
392 |
|
393 |
+
if(!empty($value['value'])){
|
394 |
+
|
395 |
+
switch($value['type']){
|
396 |
+
|
397 |
+
case 'url': {
|
398 |
+
|
399 |
+
$value['url'] = $value['value'];
|
400 |
+
$value['name'] = $value['value'];
|
401 |
+
break;
|
402 |
+
}
|
403 |
+
|
404 |
+
case 'post': {
|
405 |
+
|
406 |
+
$value['url'] = is_numeric($value['value']) ? get_permalink($value['value']) : get_post_type_archive_link($value['value']);
|
407 |
+
$value['name'] = is_numeric($value['value']) ? get_the_title($value['value']) : acf_get_post_type_label($value['value']) . ' Archive';
|
408 |
+
break;
|
409 |
+
}
|
410 |
+
|
411 |
+
case 'term': {
|
412 |
+
|
413 |
+
$term = get_term($value['value']);
|
414 |
+
if(!empty($term) && !is_wp_error($term)){
|
415 |
+
|
416 |
+
$value['url'] = get_term_link($term);
|
417 |
+
$value['name'] = $term->name;
|
418 |
+
|
419 |
+
}
|
420 |
+
|
421 |
+
break;
|
422 |
+
}
|
423 |
+
|
424 |
+
}
|
425 |
+
|
426 |
+
}
|
427 |
+
|
428 |
+
// format target
|
429 |
+
$value['target'] = $value['target'] ? '_blank' : '';
|
430 |
+
|
431 |
+
// return
|
432 |
return $value;
|
433 |
|
434 |
}
|
451 |
return $valid;
|
452 |
}
|
453 |
|
454 |
+
// loop over fields
|
455 |
+
foreach(array('url', 'post', 'term') as $type){
|
456 |
+
|
457 |
+
if($value['type'] === $type && empty($value[ $type ])){
|
458 |
+
return false;
|
459 |
+
}
|
460 |
+
|
461 |
+
}
|
462 |
+
|
463 |
+
// return
|
464 |
+
return $valid;
|
465 |
+
|
466 |
+
}
|
467 |
+
|
468 |
+
|
469 |
+
/**
|
470 |
+
* update_value
|
471 |
+
*
|
472 |
+
* @param $value
|
473 |
+
* @param $post_id
|
474 |
+
* @param $field
|
475 |
+
*
|
476 |
+
* @return mixed
|
477 |
+
*/
|
478 |
+
function update_value($value, $post_id, $field){
|
479 |
+
|
480 |
+
// loop over fields
|
481 |
+
foreach(array('url', 'post', 'term') as $type){
|
482 |
+
|
483 |
+
if($value['type'] === $type && isset($value[ $type ])){
|
484 |
+
$value['value'] = $value[ $type ];
|
485 |
+
break;
|
486 |
+
}
|
487 |
+
|
488 |
+
}
|
489 |
+
|
490 |
+
// remove unecessary arguments
|
491 |
+
unset($value['url'], $value['post'], $value['term']);
|
492 |
+
|
493 |
+
// sanitize target
|
494 |
+
$value['target'] = (bool) $value['target'];
|
495 |
+
|
496 |
+
return $value;
|
497 |
+
|
498 |
+
}
|
499 |
+
|
500 |
+
|
501 |
+
/**
|
502 |
+
* get_post_choices
|
503 |
+
*
|
504 |
+
* @param $field
|
505 |
+
*
|
506 |
+
* @return array
|
507 |
+
*/
|
508 |
+
function get_post_choices($field){
|
509 |
+
|
510 |
+
// vars
|
511 |
+
$value = $field['value'];
|
512 |
+
$choices = array();
|
513 |
+
|
514 |
if(empty($value)){
|
515 |
+
return $choices;
|
516 |
+
}
|
517 |
+
|
518 |
+
$post_object = acf_get_field_type('post_object');
|
519 |
+
|
520 |
+
// load posts
|
521 |
+
$posts = $post_object->get_posts($value['value'], $field);
|
522 |
+
|
523 |
+
if($posts){
|
524 |
+
|
525 |
+
foreach(array_keys($posts) as $i){
|
526 |
+
|
527 |
+
// append choice
|
528 |
+
$post = acf_extract_var($posts, $i);
|
529 |
+
$choices[ $post->ID ] = $post_object->get_post_title($post, $field);
|
530 |
+
|
531 |
+
}
|
532 |
+
|
533 |
+
}
|
534 |
+
|
535 |
+
// string value
|
536 |
+
// post type archive
|
537 |
+
if(!empty($value['value']) && is_string($value['value'])){
|
538 |
+
|
539 |
+
// get post type
|
540 |
+
$post_type = $value['value'];
|
541 |
+
|
542 |
+
// check post type exists
|
543 |
+
if(post_type_exists($post_type)){
|
544 |
+
|
545 |
+
$label = acf_get_post_type_label($post_type);
|
546 |
+
$choices[ $post_type ] = "{$label} Archive";
|
547 |
+
|
548 |
+
}
|
549 |
+
|
550 |
+
}
|
551 |
+
|
552 |
+
return $choices;
|
553 |
+
|
554 |
+
}
|
555 |
+
|
556 |
+
|
557 |
+
/**
|
558 |
+
* ajax_query
|
559 |
+
*/
|
560 |
+
function ajax_query(){
|
561 |
+
|
562 |
+
// validate
|
563 |
+
if(!acf_verify_ajax()){
|
564 |
+
die();
|
565 |
}
|
566 |
|
567 |
+
// get choices
|
568 |
+
$response = $this->get_ajax_query($_POST);
|
569 |
+
|
570 |
+
// return
|
571 |
+
acf_send_ajax_results($response);
|
572 |
+
|
573 |
+
}
|
574 |
+
|
575 |
+
|
576 |
+
/**
|
577 |
+
* get_ajax_query
|
578 |
+
*
|
579 |
+
* Based on the post_object get_ajax_query() function
|
580 |
+
*
|
581 |
+
* @param $options
|
582 |
+
*
|
583 |
+
* @return array|false
|
584 |
+
*/
|
585 |
+
function get_ajax_query($options = array()){
|
586 |
+
|
587 |
+
// defaults
|
588 |
+
$options = acf_parse_args($options, array(
|
589 |
+
'post_id' => 0,
|
590 |
+
's' => '',
|
591 |
+
'field_key' => '',
|
592 |
+
'paged' => 1,
|
593 |
+
));
|
594 |
+
|
595 |
+
// post object
|
596 |
+
$post_object = acf_get_field_type('post_object');
|
597 |
+
|
598 |
+
// load field
|
599 |
+
$field = acf_get_field($options['field_key']);
|
600 |
+
if(!$field){
|
601 |
return false;
|
602 |
}
|
603 |
|
604 |
+
// vars
|
605 |
+
$results = array();
|
606 |
+
$args = array();
|
607 |
+
$is_search = false;
|
608 |
+
|
609 |
+
// paged
|
610 |
+
$args['posts_per_page'] = 20;
|
611 |
+
$args['paged'] = $options['paged'];
|
612 |
+
|
613 |
+
// search
|
614 |
+
if($options['s'] !== ''){
|
615 |
+
|
616 |
+
// strip slashes (search may be integer)
|
617 |
+
$s = wp_unslash(strval($options['s']));
|
618 |
+
|
619 |
+
// update vars
|
620 |
+
$args['s'] = $s;
|
621 |
+
$is_search = true;
|
622 |
+
|
623 |
+
}
|
624 |
+
|
625 |
+
// post_type
|
626 |
+
$args['post_type'] = acf_get_post_types();
|
627 |
+
|
628 |
+
if(!empty($field['post_type'])){
|
629 |
+
$args['post_type'] = acf_get_array($field['post_type']);
|
630 |
+
}
|
631 |
+
|
632 |
+
// taxonomy
|
633 |
+
if(!empty($field['taxonomy'])){
|
634 |
+
|
635 |
+
// vars
|
636 |
+
$terms = acf_decode_taxonomy_terms($field['taxonomy']);
|
637 |
+
|
638 |
+
// append to $args
|
639 |
+
$args['tax_query'] = array();
|
640 |
+
|
641 |
+
// now create the tax queries
|
642 |
+
foreach($terms as $k => $v){
|
643 |
+
|
644 |
+
$args['tax_query'][] = array(
|
645 |
+
'taxonomy' => $k,
|
646 |
+
'field' => 'slug',
|
647 |
+
'terms' => $v,
|
648 |
+
);
|
649 |
+
|
650 |
+
}
|
651 |
+
}
|
652 |
+
|
653 |
+
// filters
|
654 |
+
$args = apply_filters('acf/fields/post_object/query', $args, $field, $options['post_id']);
|
655 |
+
$args = apply_filters('acf/fields/post_object/query/name=' . $field['name'], $args, $field, $options['post_id']);
|
656 |
+
$args = apply_filters('acf/fields/post_object/query/key=' . $field['key'], $args, $field, $options['post_id']);
|
657 |
+
|
658 |
+
// get posts grouped by post type
|
659 |
+
$groups = acf_get_grouped_posts($args);
|
660 |
+
|
661 |
+
$archives = array();
|
662 |
+
$post_types_archives = acfe_get_post_types(array(
|
663 |
+
'include' => $field['post_type'],
|
664 |
+
'has_archive' => true,
|
665 |
+
));
|
666 |
+
|
667 |
+
foreach($post_types_archives as $post_type){
|
668 |
+
|
669 |
+
$label = acf_get_post_type_label($post_type);
|
670 |
+
$label = "{$label} Archive";
|
671 |
+
|
672 |
+
if($is_search && stripos($label, $s) === false){
|
673 |
+
continue;
|
674 |
+
}
|
675 |
+
|
676 |
+
$archives[] = array(
|
677 |
+
'id' => $post_type,
|
678 |
+
'text' => $label,
|
679 |
+
);
|
680 |
+
|
681 |
+
}
|
682 |
+
|
683 |
+
|
684 |
+
if(!empty($archives)){
|
685 |
+
|
686 |
+
// data
|
687 |
+
$results[] = array(
|
688 |
+
'text' => __('Archives', 'acfe'),
|
689 |
+
'children' => $archives,
|
690 |
+
);
|
691 |
+
|
692 |
+
}
|
693 |
+
|
694 |
+
// loop
|
695 |
+
foreach(array_keys($groups) as $group_title){
|
696 |
+
|
697 |
+
// vars
|
698 |
+
$posts = acf_extract_var($groups, $group_title);
|
699 |
+
|
700 |
+
// data
|
701 |
+
$data = array(
|
702 |
+
'text' => $group_title,
|
703 |
+
'children' => array(),
|
704 |
+
);
|
705 |
+
|
706 |
+
// convert post objects to post titles
|
707 |
+
foreach(array_keys($posts) as $post_id){
|
708 |
+
$posts[ $post_id ] = $post_object->get_post_title($posts[ $post_id ], $field, $options['post_id'], $is_search);
|
709 |
+
}
|
710 |
+
|
711 |
+
// order posts by search
|
712 |
+
if($is_search && empty($args['orderby']) && isset($args['s'])){
|
713 |
+
$posts = acf_order_by_search($posts, $args['s']);
|
714 |
+
}
|
715 |
+
|
716 |
+
// append to $data
|
717 |
+
foreach(array_keys($posts) as $post_id){
|
718 |
+
$data['children'][] = $post_object->get_post_result($post_id, $posts[ $post_id ]);
|
719 |
+
}
|
720 |
+
|
721 |
+
// append to $results
|
722 |
+
$results[] = $data;
|
723 |
+
|
724 |
+
}
|
725 |
+
|
726 |
+
// optgroup or single
|
727 |
+
$post_type = acf_get_array($args['post_type']);
|
728 |
+
if(count($post_type) === 1 && empty($post_types_archives)){
|
729 |
+
$results = $results[0]['children'];
|
730 |
+
}
|
731 |
+
|
732 |
+
// vars
|
733 |
+
$response = array(
|
734 |
+
'results' => $results,
|
735 |
+
'limit' => $args['posts_per_page'],
|
736 |
+
);
|
737 |
+
|
738 |
// return
|
739 |
+
return $response;
|
740 |
|
741 |
}
|
742 |
|
includes/fields/field-button.php
CHANGED
@@ -194,6 +194,22 @@ class acfe_field_button extends acf_field{
|
|
194 |
|
195 |
}
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
}
|
198 |
|
199 |
// initialize
|
194 |
|
195 |
}
|
196 |
|
197 |
+
|
198 |
+
/**
|
199 |
+
* translate_field
|
200 |
+
*
|
201 |
+
* @param $field
|
202 |
+
*
|
203 |
+
* @return mixed
|
204 |
+
*/
|
205 |
+
function translate_field($field){
|
206 |
+
|
207 |
+
$field['button_value'] = acf_translate($field['button_value']);
|
208 |
+
|
209 |
+
return $field;
|
210 |
+
|
211 |
+
}
|
212 |
+
|
213 |
}
|
214 |
|
215 |
// initialize
|
includes/fields/field-clone.php
CHANGED
@@ -121,8 +121,13 @@ class acfe_field_clone extends acfe_field_extend{
|
|
121 |
'field' => 'display',
|
122 |
'operator' => '==',
|
123 |
'value' => 'group',
|
|
|
|
|
|
|
|
|
|
|
124 |
)
|
125 |
-
)
|
126 |
)
|
127 |
));
|
128 |
|
@@ -229,6 +234,20 @@ class acfe_field_clone extends acfe_field_extend{
|
|
229 |
|
230 |
}
|
231 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
}
|
233 |
|
234 |
acf_new_instance('acfe_field_clone');
|
121 |
'field' => 'display',
|
122 |
'operator' => '==',
|
123 |
'value' => 'group',
|
124 |
+
),
|
125 |
+
array(
|
126 |
+
'field' => 'acfe_seamless_style',
|
127 |
+
'operator' => '!=',
|
128 |
+
'value' => '1',
|
129 |
)
|
130 |
+
),
|
131 |
)
|
132 |
));
|
133 |
|
234 |
|
235 |
}
|
236 |
|
237 |
+
|
238 |
+
/**
|
239 |
+
* translate_field
|
240 |
+
*
|
241 |
+
* @param $field
|
242 |
+
*/
|
243 |
+
function translate_field($field){
|
244 |
+
|
245 |
+
$field['acfe_clone_modal_button'] = acf_translate($field['acfe_clone_modal_button']);
|
246 |
+
|
247 |
+
return $field;
|
248 |
+
|
249 |
+
}
|
250 |
+
|
251 |
}
|
252 |
|
253 |
acf_new_instance('acfe_field_clone');
|
includes/fields/field-code-editor.php
CHANGED
@@ -24,14 +24,14 @@ class acfe_field_code_editor extends acf_field{
|
|
24 |
$this->label = __('Code Editor', 'acfe');
|
25 |
$this->category = 'content';
|
26 |
$this->defaults = array(
|
27 |
-
'default_value'
|
28 |
-
'placeholder'
|
29 |
-
'mode'
|
30 |
-
'lines'
|
31 |
-
'indent_unit'
|
32 |
-
'maxlength'
|
33 |
-
'rows'
|
34 |
-
'max_rows'
|
35 |
'return_entities' => false
|
36 |
);
|
37 |
|
24 |
$this->label = __('Code Editor', 'acfe');
|
25 |
$this->category = 'content';
|
26 |
$this->defaults = array(
|
27 |
+
'default_value' => '',
|
28 |
+
'placeholder' => '',
|
29 |
+
'mode' => 'text/html',
|
30 |
+
'lines' => true,
|
31 |
+
'indent_unit' => 4,
|
32 |
+
'maxlength' => '',
|
33 |
+
'rows' => 4,
|
34 |
+
'max_rows' => '',
|
35 |
'return_entities' => false
|
36 |
);
|
37 |
|
includes/fields/field-file.php
CHANGED
@@ -39,10 +39,8 @@ class acfe_field_file extends acfe_field_extend{
|
|
39 |
*/
|
40 |
function gettext($translated_text, $text, $domain){
|
41 |
|
42 |
-
if($domain === 'acf'){
|
43 |
-
|
44 |
-
return '';
|
45 |
-
}
|
46 |
}
|
47 |
|
48 |
return $translated_text;
|
39 |
*/
|
40 |
function gettext($translated_text, $text, $domain){
|
41 |
|
42 |
+
if($domain === 'acf' && $text === 'No file selected'){
|
43 |
+
return '';
|
|
|
|
|
44 |
}
|
45 |
|
46 |
return $translated_text;
|
includes/fields/field-flexible-content-actions.php
CHANGED
@@ -20,6 +20,7 @@ class acfe_field_flexible_content_actions{
|
|
20 |
add_filter('acfe/flexible/validate_field', array($this, 'validate_actions'));
|
21 |
add_filter('acfe/flexible/wrapper_attributes', array($this, 'wrapper_attributes'), 10, 2);
|
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);
|
@@ -55,7 +56,7 @@ class acfe_field_flexible_content_actions{
|
|
55 |
*/
|
56 |
function render_field_settings($field){
|
57 |
|
58 |
-
|
59 |
* old settings:
|
60 |
*
|
61 |
* acfe_flexible_title_edition
|
@@ -228,9 +229,15 @@ class acfe_field_flexible_content_actions{
|
|
228 |
*/
|
229 |
function load_fields($fields, $field){
|
230 |
|
231 |
-
//
|
|
|
|
|
|
|
|
|
|
|
232 |
$actions = $field['acfe_flexible_add_actions'];
|
233 |
|
|
|
234 |
foreach($field['layouts'] as $i => $layout){
|
235 |
|
236 |
// Title
|
@@ -290,6 +297,31 @@ class acfe_field_flexible_content_actions{
|
|
290 |
|
291 |
}
|
292 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
/**
|
294 |
* prepare_layout
|
295 |
*
|
20 |
add_filter('acfe/flexible/validate_field', array($this, 'validate_actions'));
|
21 |
add_filter('acfe/flexible/wrapper_attributes', array($this, 'wrapper_attributes'), 10, 2);
|
22 |
add_filter('acfe/flexible/load_fields', array($this, 'load_fields'), 10, 2);
|
23 |
+
add_filter('acfe/flexible/layouts/div', array($this, 'layout_div'), 10, 6);
|
24 |
add_filter('acfe/flexible/prepare_layout', array($this, 'prepare_layout'), 10, 5);
|
25 |
add_filter('acfe/flexible/layouts/icons', array($this, 'layout_icons'), 11, 3);
|
26 |
add_filter('acfe/flexible/secondary_actions', array($this, 'secondary_actions'), 10, 2);
|
56 |
*/
|
57 |
function render_field_settings($field){
|
58 |
|
59 |
+
/**
|
60 |
* old settings:
|
61 |
*
|
62 |
* acfe_flexible_title_edition
|
229 |
*/
|
230 |
function load_fields($fields, $field){
|
231 |
|
232 |
+
// check setting
|
233 |
+
if(!isset($field['acfe_flexible_add_actions'])){
|
234 |
+
return $fields;
|
235 |
+
}
|
236 |
+
|
237 |
+
// actions
|
238 |
$actions = $field['acfe_flexible_add_actions'];
|
239 |
|
240 |
+
// loop layouts
|
241 |
foreach($field['layouts'] as $i => $layout){
|
242 |
|
243 |
// Title
|
297 |
|
298 |
}
|
299 |
|
300 |
+
|
301 |
+
/**
|
302 |
+
* layout_div
|
303 |
+
*
|
304 |
+
* @param $div
|
305 |
+
* @param $layout
|
306 |
+
* @param $field
|
307 |
+
*
|
308 |
+
* @return mixed
|
309 |
+
*/
|
310 |
+
function layout_div($div, $layout, $field, $i, $value, $prefix){
|
311 |
+
|
312 |
+
if(in_array('toggle', $field['acfe_flexible_add_actions'])){
|
313 |
+
|
314 |
+
if(isset($value["field_{$layout['key']}_toggle"]) && !empty($value["field_{$layout['key']}_toggle"])){
|
315 |
+
$div['class'] .= ' acfe-flexible-layout-hidden';
|
316 |
+
}
|
317 |
+
|
318 |
+
}
|
319 |
+
|
320 |
+
return $div;
|
321 |
+
|
322 |
+
}
|
323 |
+
|
324 |
+
|
325 |
/**
|
326 |
* prepare_layout
|
327 |
*
|
includes/fields/field-flexible-content-async.php
CHANGED
@@ -51,7 +51,7 @@ class acfe_field_flexible_content_async{
|
|
51 |
*/
|
52 |
function render_field_settings($field){
|
53 |
|
54 |
-
|
55 |
* old settings:
|
56 |
*
|
57 |
* acfe_flexible_disable_ajax_title
|
51 |
*/
|
52 |
function render_field_settings($field){
|
53 |
|
54 |
+
/**
|
55 |
* old settings:
|
56 |
*
|
57 |
* acfe_flexible_disable_ajax_title
|
includes/fields/field-flexible-content-edit.php
CHANGED
@@ -237,7 +237,7 @@ class acfe_field_flexible_content_edit{
|
|
237 |
*/
|
238 |
function wrapper_attributes($wrapper, $field){
|
239 |
|
240 |
-
//
|
241 |
if(!$field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_enabled']){
|
242 |
return $wrapper;
|
243 |
}
|
@@ -264,15 +264,22 @@ class acfe_field_flexible_content_edit{
|
|
264 |
return;
|
265 |
}
|
266 |
|
267 |
-
//
|
268 |
-
$
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
|
274 |
?>
|
275 |
-
<div
|
276 |
<div class="acfe-modal-wrapper">
|
277 |
<div class="acfe-modal-content">
|
278 |
<?php
|
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 |
}
|
264 |
return;
|
265 |
}
|
266 |
|
267 |
+
// modal
|
268 |
+
$modal = array(
|
269 |
+
'class' => "acfe-modal -fields acfe-modal-edit-{$field['_name']} acfe-modal-edit-{$field['key']} acfe-modal-edit-{$layout['name']}",
|
270 |
+
'data-size' => $field['acfe_flexible_modal_edit']['acfe_flexible_modal_edit_size'],
|
271 |
+
);
|
272 |
+
|
273 |
+
if(!empty($layout['acfe_flexible_modal_edit_size'])){
|
274 |
+
$modal['data-size'] = $layout['acfe_flexible_modal_edit_size'];
|
275 |
+
}
|
276 |
+
|
277 |
+
if(in_array('close', $field['acfe_flexible_add_actions'])){
|
278 |
+
$modal['data-footer'] = __('Close', 'acfe');
|
279 |
+
}
|
280 |
|
281 |
?>
|
282 |
+
<div <?php echo acf_esc_attrs($modal); ?>>
|
283 |
<div class="acfe-modal-wrapper">
|
284 |
<div class="acfe-modal-content">
|
285 |
<?php
|
includes/fields/field-flexible-content-hide.php
CHANGED
@@ -91,8 +91,8 @@ class acfe_field_flexible_content_hide{
|
|
91 |
*/
|
92 |
function validate_hide($field){
|
93 |
|
94 |
-
|
95 |
-
*
|
96 |
*
|
97 |
* acfe_flexible_remove_add_button
|
98 |
* acfe_flexible_remove_duplicate_button
|
91 |
*/
|
92 |
function validate_hide($field){
|
93 |
|
94 |
+
/**
|
95 |
+
* old settings:
|
96 |
*
|
97 |
* acfe_flexible_remove_add_button
|
98 |
* acfe_flexible_remove_duplicate_button
|
includes/fields/field-flexible-content-preview.php
CHANGED
@@ -252,25 +252,25 @@ class acfe_field_flexible_content_preview{
|
|
252 |
*/
|
253 |
function render_field($field){
|
254 |
|
255 |
-
//
|
256 |
if(!acf_maybe_get($field, 'acfe_flexible_layouts_templates') || !acf_maybe_get($field, 'acfe_flexible_layouts_previews')){
|
257 |
return;
|
258 |
}
|
259 |
|
260 |
-
//
|
261 |
$name = $field['_name'];
|
262 |
$key = $field['key'];
|
263 |
|
264 |
-
//
|
265 |
global $is_preview;
|
266 |
$is_preview = true;
|
267 |
|
268 |
-
//
|
269 |
do_action("acfe/flexible/enqueue", $field, $is_preview);
|
270 |
do_action("acfe/flexible/enqueue/name={$name}", $field, $is_preview);
|
271 |
do_action("acfe/flexible/enqueue/key={$key}", $field, $is_preview);
|
272 |
|
273 |
-
//
|
274 |
foreach($field['layouts'] as $layout){
|
275 |
|
276 |
// Enqueue
|
@@ -296,6 +296,7 @@ class acfe_field_flexible_content_preview{
|
|
296 |
}
|
297 |
|
298 |
if(acf_maybe_get($field, 'acfe_flexible_layouts_templates') && acf_maybe_get($field, 'acfe_flexible_layouts_previews')){
|
|
|
299 |
$wrapper['data-acfe-flexible-preview'] = 1;
|
300 |
}
|
301 |
|
@@ -468,7 +469,8 @@ class acfe_field_flexible_content_preview{
|
|
468 |
*/
|
469 |
function return_or_die(){
|
470 |
|
471 |
-
|
|
|
472 |
die;
|
473 |
}
|
474 |
|
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'];
|
262 |
$key = $field['key'];
|
263 |
|
264 |
+
// vars
|
265 |
global $is_preview;
|
266 |
$is_preview = true;
|
267 |
|
268 |
+
// actions
|
269 |
do_action("acfe/flexible/enqueue", $field, $is_preview);
|
270 |
do_action("acfe/flexible/enqueue/name={$name}", $field, $is_preview);
|
271 |
do_action("acfe/flexible/enqueue/key={$key}", $field, $is_preview);
|
272 |
|
273 |
+
// loop
|
274 |
foreach($field['layouts'] as $layout){
|
275 |
|
276 |
// Enqueue
|
296 |
}
|
297 |
|
298 |
if(acf_maybe_get($field, 'acfe_flexible_layouts_templates') && acf_maybe_get($field, 'acfe_flexible_layouts_previews')){
|
299 |
+
$wrapper['data-acfe-flexible-placeholder'] = 1;
|
300 |
$wrapper['data-acfe-flexible-preview'] = 1;
|
301 |
}
|
302 |
|
469 |
*/
|
470 |
function return_or_die(){
|
471 |
|
472 |
+
// check ajax & make sure the action is correct
|
473 |
+
if(wp_doing_ajax() && acf_maybe_get_POST('action') === 'acfe/flexible/layout_preview'){
|
474 |
die;
|
475 |
}
|
476 |
|
includes/fields/field-flexible-content-settings.php
CHANGED
@@ -189,7 +189,7 @@ class acfe_field_flexible_content_settings{
|
|
189 |
*/
|
190 |
function load_fields($fields, $field){
|
191 |
|
192 |
-
//
|
193 |
if(!acf_maybe_get($field, 'acfe_flexible_layouts_settings')){
|
194 |
return $fields;
|
195 |
}
|
@@ -254,29 +254,33 @@ class acfe_field_flexible_content_settings{
|
|
254 |
*/
|
255 |
function prepare_layout($layout, $field, $i, $value, $prefix){
|
256 |
|
257 |
-
if(empty($layout['sub_fields']) || !$field['acfe_flexible_layouts_settings'])
|
258 |
return $layout;
|
|
|
259 |
|
260 |
-
//
|
261 |
$sub_field = acfe_extract_sub_field($layout, 'layout_settings', $value);
|
262 |
|
263 |
-
if(!$sub_field)
|
264 |
return $layout;
|
|
|
265 |
|
266 |
// update prefix to allow for nested values
|
267 |
-
$size = acf_maybe_get($layout, 'acfe_flexible_settings_size', 'medium');
|
268 |
$sub_field['prefix'] = $prefix;
|
269 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
?>
|
271 |
-
<div
|
272 |
<div class="acfe-modal-wrapper">
|
273 |
<div class="acfe-modal-content">
|
274 |
<div class="acf-fields -top">
|
275 |
-
<?php
|
276 |
-
|
277 |
-
acf_render_field_wrap($sub_field);
|
278 |
-
|
279 |
-
?>
|
280 |
</div>
|
281 |
</div>
|
282 |
</div>
|
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 |
}
|
254 |
*/
|
255 |
function prepare_layout($layout, $field, $i, $value, $prefix){
|
256 |
|
257 |
+
if(empty($layout['sub_fields']) || !$field['acfe_flexible_layouts_settings']){
|
258 |
return $layout;
|
259 |
+
}
|
260 |
|
261 |
+
// subfield
|
262 |
$sub_field = acfe_extract_sub_field($layout, 'layout_settings', $value);
|
263 |
|
264 |
+
if(!$sub_field){
|
265 |
return $layout;
|
266 |
+
}
|
267 |
|
268 |
// update prefix to allow for nested values
|
|
|
269 |
$sub_field['prefix'] = $prefix;
|
270 |
|
271 |
+
// modal
|
272 |
+
$modal = array(
|
273 |
+
'class' => 'acfe-modal -settings',
|
274 |
+
'data-size' => acf_maybe_get($layout, 'acfe_flexible_settings_size', 'medium'),
|
275 |
+
'data-footer' => __('Close', 'acfe'),
|
276 |
+
);
|
277 |
+
|
278 |
?>
|
279 |
+
<div <?php echo acf_esc_attrs($modal); ?>>
|
280 |
<div class="acfe-modal-wrapper">
|
281 |
<div class="acfe-modal-content">
|
282 |
<div class="acf-fields -top">
|
283 |
+
<?php acf_render_field_wrap($sub_field); ?>
|
|
|
|
|
|
|
|
|
284 |
</div>
|
285 |
</div>
|
286 |
</div>
|
includes/fields/field-flexible-content-state.php
CHANGED
@@ -115,7 +115,7 @@ class acfe_field_flexible_content_state{
|
|
115 |
*/
|
116 |
function wrapper_attributes($wrapper, $field){
|
117 |
|
118 |
-
//
|
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 |
}
|
@@ -196,6 +196,7 @@ class acfe_field_flexible_content_state{
|
|
196 |
return $handle;
|
197 |
}
|
198 |
|
|
|
199 |
acfe_unset($handle, 'data-name');
|
200 |
|
201 |
return $handle;
|
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 |
}
|
196 |
return $handle;
|
197 |
}
|
198 |
|
199 |
+
// remove [data-name="collapse-layout"] so it doesn't trigger js click event
|
200 |
acfe_unset($handle, 'data-name');
|
201 |
|
202 |
return $handle;
|
includes/fields/field-flexible-content-thumbnail.php
CHANGED
@@ -188,7 +188,7 @@ class acfe_field_flexible_content_thumbnail{
|
|
188 |
*/
|
189 |
function wrapper_attributes($wrapper, $field){
|
190 |
|
191 |
-
//
|
192 |
if(!acf_maybe_get($field, 'acfe_flexible_layouts_thumbnails')){
|
193 |
return $wrapper;
|
194 |
}
|
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 |
}
|
includes/fields/field-flexible-content.php
CHANGED
@@ -821,6 +821,36 @@ class acfe_field_flexible_content extends acfe_field_extend{
|
|
821 |
|
822 |
}
|
823 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
824 |
}
|
825 |
|
826 |
acf_new_instance('acfe_field_flexible_content');
|
821 |
|
822 |
}
|
823 |
|
824 |
+
|
825 |
+
/**
|
826 |
+
* translate_field
|
827 |
+
*
|
828 |
+
* @param $field
|
829 |
+
*/
|
830 |
+
function translate_field($field){
|
831 |
+
|
832 |
+
if(isset($field['acfe_flexible_modal']['acfe_flexible_modal_title'])){
|
833 |
+
$field['acfe_flexible_modal']['acfe_flexible_modal_title'] = acf_translate($field['acfe_flexible_modal']['acfe_flexible_modal_title']);
|
834 |
+
}
|
835 |
+
|
836 |
+
// loop
|
837 |
+
if(!empty($field['layouts'])){
|
838 |
+
|
839 |
+
foreach($field['layouts'] as &$layout){
|
840 |
+
|
841 |
+
if(isset($layout['acfe_flexible_category'])){
|
842 |
+
$layout['acfe_flexible_category'] = acf_translate($layout['acfe_flexible_category']);
|
843 |
+
}
|
844 |
+
|
845 |
+
}
|
846 |
+
|
847 |
+
}
|
848 |
+
|
849 |
+
// return
|
850 |
+
return $field;
|
851 |
+
|
852 |
+
}
|
853 |
+
|
854 |
}
|
855 |
|
856 |
acf_new_instance('acfe_field_flexible_content');
|
includes/fields/field-forms.php
CHANGED
@@ -521,6 +521,23 @@ class acfe_field_forms extends acf_field{
|
|
521 |
|
522 |
}
|
523 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
524 |
}
|
525 |
|
526 |
// initialize
|
521 |
|
522 |
}
|
523 |
|
524 |
+
|
525 |
+
/**
|
526 |
+
* translate_field
|
527 |
+
*
|
528 |
+
* @param $field
|
529 |
+
*
|
530 |
+
* @return mixed
|
531 |
+
*/
|
532 |
+
function translate_field($field){
|
533 |
+
|
534 |
+
$field['placeholder'] = acf_translate($field['placeholder']);
|
535 |
+
$field['search_placeholder'] = acf_translate($field['search_placeholder']);
|
536 |
+
|
537 |
+
return $field;
|
538 |
+
|
539 |
+
}
|
540 |
+
|
541 |
}
|
542 |
|
543 |
// initialize
|
includes/fields/field-group.php
CHANGED
@@ -164,6 +164,22 @@ class acfe_field_group_field extends acfe_field_extend{
|
|
164 |
|
165 |
}
|
166 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
}
|
168 |
|
169 |
acf_new_instance('acfe_field_group_field');
|
164 |
|
165 |
}
|
166 |
|
167 |
+
|
168 |
+
/**
|
169 |
+
* translate_field
|
170 |
+
*
|
171 |
+
* @param $field
|
172 |
+
*
|
173 |
+
* @return mixed
|
174 |
+
*/
|
175 |
+
function translate_field($field){
|
176 |
+
|
177 |
+
$field['acfe_group_modal_button'] = acf_translate($field['acfe_group_modal_button']);
|
178 |
+
|
179 |
+
return $field;
|
180 |
+
|
181 |
+
}
|
182 |
+
|
183 |
}
|
184 |
|
185 |
acf_new_instance('acfe_field_group_field');
|
includes/fields/field-post-statuses.php
CHANGED
@@ -482,6 +482,23 @@ class acfe_field_post_statuses extends acf_field{
|
|
482 |
return $value;
|
483 |
|
484 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
485 |
|
486 |
}
|
487 |
|
482 |
return $value;
|
483 |
|
484 |
}
|
485 |
+
|
486 |
+
|
487 |
+
/**
|
488 |
+
* translate_field
|
489 |
+
*
|
490 |
+
* @param $field
|
491 |
+
*
|
492 |
+
* @return mixed
|
493 |
+
*/
|
494 |
+
function translate_field($field){
|
495 |
+
|
496 |
+
$field['placeholder'] = acf_translate($field['placeholder']);
|
497 |
+
$field['search_placeholder'] = acf_translate($field['search_placeholder']);
|
498 |
+
|
499 |
+
return $field;
|
500 |
+
|
501 |
+
}
|
502 |
|
503 |
}
|
504 |
|
includes/fields/field-post-types.php
CHANGED
@@ -483,6 +483,23 @@ class acfe_field_post_types extends acf_field{
|
|
483 |
|
484 |
}
|
485 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
486 |
}
|
487 |
|
488 |
// initialize
|
483 |
|
484 |
}
|
485 |
|
486 |
+
|
487 |
+
/**
|
488 |
+
* translate_field
|
489 |
+
*
|
490 |
+
* @param $field
|
491 |
+
*
|
492 |
+
* @return mixed
|
493 |
+
*/
|
494 |
+
function translate_field($field){
|
495 |
+
|
496 |
+
$field['placeholder'] = acf_translate($field['placeholder']);
|
497 |
+
$field['search_placeholder'] = acf_translate($field['search_placeholder']);
|
498 |
+
|
499 |
+
return $field;
|
500 |
+
|
501 |
+
}
|
502 |
+
|
503 |
}
|
504 |
|
505 |
// initialize
|
includes/fields/field-select.php
CHANGED
@@ -226,6 +226,23 @@ class acfe_field_select extends acfe_field_extend{
|
|
226 |
|
227 |
}
|
228 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
}
|
230 |
|
231 |
acf_new_instance('acfe_field_select');
|
226 |
|
227 |
}
|
228 |
|
229 |
+
|
230 |
+
/**
|
231 |
+
* translate_field
|
232 |
+
*
|
233 |
+
* @param $field
|
234 |
+
*
|
235 |
+
* @return mixed
|
236 |
+
*/
|
237 |
+
function translate_field($field){
|
238 |
+
|
239 |
+
$field['placeholder'] = acf_translate($field['placeholder']);
|
240 |
+
$field['search_placeholder'] = acf_translate($field['search_placeholder']);
|
241 |
+
|
242 |
+
return $field;
|
243 |
+
|
244 |
+
}
|
245 |
+
|
246 |
}
|
247 |
|
248 |
acf_new_instance('acfe_field_select');
|
includes/fields/field-slug.php
CHANGED
@@ -132,6 +132,24 @@ class acfe_field_slug extends acf_field{
|
|
132 |
return sanitize_title($value);
|
133 |
}
|
134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
}
|
136 |
|
137 |
// initialize
|
132 |
return sanitize_title($value);
|
133 |
}
|
134 |
|
135 |
+
|
136 |
+
/**
|
137 |
+
* translate_field
|
138 |
+
*
|
139 |
+
* @param $field
|
140 |
+
*
|
141 |
+
* @return mixed
|
142 |
+
*/
|
143 |
+
function translate_field($field){
|
144 |
+
|
145 |
+
$field['placeholder'] = acf_translate($field['placeholder']);
|
146 |
+
$field['prepend'] = acf_translate($field['prepend']);
|
147 |
+
$field['append'] = acf_translate($field['append']);
|
148 |
+
|
149 |
+
return $field;
|
150 |
+
|
151 |
+
}
|
152 |
+
|
153 |
}
|
154 |
|
155 |
// initialize
|
includes/fields/field-taxonomies.php
CHANGED
@@ -482,6 +482,23 @@ class acfe_field_taxonomies extends acf_field{
|
|
482 |
return $value;
|
483 |
|
484 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
485 |
|
486 |
}
|
487 |
|
482 |
return $value;
|
483 |
|
484 |
}
|
485 |
+
|
486 |
+
|
487 |
+
/**
|
488 |
+
* translate_field
|
489 |
+
*
|
490 |
+
* @param $field
|
491 |
+
*
|
492 |
+
* @return mixed
|
493 |
+
*/
|
494 |
+
function translate_field($field){
|
495 |
+
|
496 |
+
$field['placeholder'] = acf_translate($field['placeholder']);
|
497 |
+
$field['search_placeholder'] = acf_translate($field['search_placeholder']);
|
498 |
+
|
499 |
+
return $field;
|
500 |
+
|
501 |
+
}
|
502 |
|
503 |
}
|
504 |
|
includes/fields/field-taxonomy-terms.php
CHANGED
@@ -920,6 +920,21 @@ class acfe_field_taxonomy_terms extends acf_field{
|
|
920 |
* @return false|mixed|WP_Error|WP_Term
|
921 |
*/
|
922 |
function load_value($value, $post_id, $field){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
923 |
|
924 |
// load_terms
|
925 |
if($field['load_terms']){
|
@@ -981,7 +996,21 @@ class acfe_field_taxonomy_terms extends acf_field{
|
|
981 |
if(is_array($value)){
|
982 |
$value = array_filter($value);
|
983 |
}
|
|
|
|
|
|
|
|
|
|
|
984 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
985 |
|
986 |
// save_terms
|
987 |
if($field['save_terms']){
|
@@ -1099,17 +1128,8 @@ class acfe_field_taxonomy_terms extends acf_field{
|
|
1099 |
return;
|
1100 |
}
|
1101 |
|
1102 |
-
// bail early when local meta
|
1103 |
-
if(acfe_is_local_post_id($post_id)){
|
1104 |
-
return;
|
1105 |
-
}
|
1106 |
-
|
1107 |
// bail early if not post
|
1108 |
$data = acf_get_post_id_info($post_id);
|
1109 |
-
|
1110 |
-
if($data['type'] !== 'post'){
|
1111 |
-
return;
|
1112 |
-
}
|
1113 |
|
1114 |
// loop
|
1115 |
foreach($this->save_post_terms as $taxonomy => $term_ids){
|
@@ -1425,6 +1445,23 @@ class acfe_field_taxonomy_terms extends acf_field{
|
|
1425 |
return $choices;
|
1426 |
|
1427 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1428 |
|
1429 |
}
|
1430 |
|
920 |
* @return false|mixed|WP_Error|WP_Term
|
921 |
*/
|
922 |
function load_value($value, $post_id, $field){
|
923 |
+
|
924 |
+
// bail early if there is no post id
|
925 |
+
if(!$post_id){
|
926 |
+
return $value;
|
927 |
+
}
|
928 |
+
|
929 |
+
// bail early when local meta
|
930 |
+
if(acfe_is_local_post_id($post_id)){
|
931 |
+
return $value;
|
932 |
+
}
|
933 |
+
|
934 |
+
// bail early front-end form
|
935 |
+
if(acfe_starts_with($post_id, 'acfe_form-')){
|
936 |
+
return $value;
|
937 |
+
}
|
938 |
|
939 |
// load_terms
|
940 |
if($field['load_terms']){
|
996 |
if(is_array($value)){
|
997 |
$value = array_filter($value);
|
998 |
}
|
999 |
+
|
1000 |
+
// bail early if there is no post id
|
1001 |
+
if(!$post_id){
|
1002 |
+
return $value;
|
1003 |
+
}
|
1004 |
|
1005 |
+
// bail early when local meta
|
1006 |
+
if(acfe_is_local_post_id($post_id)){
|
1007 |
+
return $value;
|
1008 |
+
}
|
1009 |
+
|
1010 |
+
// bail early front-end form
|
1011 |
+
if(acfe_starts_with($post_id, 'acfe_form-')){
|
1012 |
+
return $value;
|
1013 |
+
}
|
1014 |
|
1015 |
// save_terms
|
1016 |
if($field['save_terms']){
|
1128 |
return;
|
1129 |
}
|
1130 |
|
|
|
|
|
|
|
|
|
|
|
1131 |
// bail early if not post
|
1132 |
$data = acf_get_post_id_info($post_id);
|
|
|
|
|
|
|
|
|
1133 |
|
1134 |
// loop
|
1135 |
foreach($this->save_post_terms as $taxonomy => $term_ids){
|
1445 |
return $choices;
|
1446 |
|
1447 |
}
|
1448 |
+
|
1449 |
+
|
1450 |
+
/**
|
1451 |
+
* translate_field
|
1452 |
+
*
|
1453 |
+
* @param $field
|
1454 |
+
*
|
1455 |
+
* @return mixed
|
1456 |
+
*/
|
1457 |
+
function translate_field($field){
|
1458 |
+
|
1459 |
+
$field['placeholder'] = acf_translate($field['placeholder']);
|
1460 |
+
$field['search_placeholder'] = acf_translate($field['search_placeholder']);
|
1461 |
+
|
1462 |
+
return $field;
|
1463 |
+
|
1464 |
+
}
|
1465 |
|
1466 |
}
|
1467 |
|
includes/fields/field-user-roles.php
CHANGED
@@ -420,6 +420,23 @@ class acfe_field_user_roles extends acf_field{
|
|
420 |
return $field;
|
421 |
|
422 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
423 |
|
424 |
}
|
425 |
|
420 |
return $field;
|
421 |
|
422 |
}
|
423 |
+
|
424 |
+
|
425 |
+
/**
|
426 |
+
* translate_field
|
427 |
+
*
|
428 |
+
* @param $field
|
429 |
+
*
|
430 |
+
* @return mixed
|
431 |
+
*/
|
432 |
+
function translate_field($field){
|
433 |
+
|
434 |
+
$field['placeholder'] = acf_translate($field['placeholder']);
|
435 |
+
$field['search_placeholder'] = acf_translate($field['search_placeholder']);
|
436 |
+
|
437 |
+
return $field;
|
438 |
+
|
439 |
+
}
|
440 |
|
441 |
}
|
442 |
|
includes/hooks.php
CHANGED
@@ -248,7 +248,7 @@ class acfe_hooks{
|
|
248 |
'hooks' => array(),
|
249 |
);
|
250 |
|
251 |
-
|
252 |
* @string $post_id 12 | term_46 | user_22 | my-option | comment_89 | widget_56 | menu_74 | menu_item_96 | block_my-block | blog_55 | site_36 | attachment_24
|
253 |
* @string $id 12 | 46 | 22 | my-option | 89 | widget_56 | 74 | 96 | block_my-block | 55 | 36 | 24
|
254 |
* @string $type post | term | user | option | comment | option | term | post | block | blog | blog | post
|
248 |
'hooks' => array(),
|
249 |
);
|
250 |
|
251 |
+
/**
|
252 |
* @string $post_id 12 | term_46 | user_22 | my-option | comment_89 | widget_56 | menu_74 | menu_item_96 | block_my-block | blog_55 | site_36 | attachment_24
|
253 |
* @string $id 12 | 46 | 22 | my-option | 89 | widget_56 | 74 | 96 | block_my-block | 55 | 36 | 24
|
254 |
* @string $type post | term | user | option | comment | option | term | post | block | blog | blog | post
|
includes/init.php
CHANGED
@@ -142,30 +142,23 @@ function acfe_after_plugin_row($plugin_file, $plugin_data, $status){
|
|
142 |
return;
|
143 |
}
|
144 |
|
145 |
-
//
|
146 |
$colspan = version_compare($GLOBALS['wp_version'], '5.5', '<') ? 3 : 4;
|
147 |
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
?>
|
149 |
<style>
|
150 |
-
.plugins tr[data-plugin='<?php echo
|
151 |
-
.plugins tr[data-plugin='<?php echo
|
152 |
box-shadow:none;
|
153 |
}
|
154 |
-
|
155 |
-
<?php if(isset($plugin_data['update']) && !empty($plugin_data['update'])){ ?>
|
156 |
-
|
157 |
-
.plugins tr.acfe-plugin-tr td{
|
158 |
-
box-shadow:none !important;
|
159 |
-
}
|
160 |
-
|
161 |
-
.plugins tr.acfe-plugin-tr .update-message{
|
162 |
-
margin-bottom:0;
|
163 |
-
}
|
164 |
-
|
165 |
-
<?php } ?>
|
166 |
</style>
|
167 |
-
|
168 |
-
<tr class="plugin-update-tr active acfe-plugin-tr">
|
169 |
<td colspan="<?php echo $colspan; ?>" class="plugin-update colspanchange">
|
170 |
<div class="update-message notice inline notice-error notice-alt">
|
171 |
<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>
|
142 |
return;
|
143 |
}
|
144 |
|
145 |
+
// vars
|
146 |
$colspan = version_compare($GLOBALS['wp_version'], '5.5', '<') ? 3 : 4;
|
147 |
|
148 |
+
// class
|
149 |
+
$class = 'acfe-plugin-tr';
|
150 |
+
if(isset($plugin_data['update']) && !empty($plugin_data['update'])){
|
151 |
+
$class .= ' acfe-plugin-tr-update';
|
152 |
+
}
|
153 |
+
|
154 |
?>
|
155 |
<style>
|
156 |
+
.plugins tr[data-plugin='<?php echo $plugin_file; ?>'] th,
|
157 |
+
.plugins tr[data-plugin='<?php echo $plugin_file; ?>'] td{
|
158 |
box-shadow:none;
|
159 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
</style>
|
161 |
+
<tr class="plugin-update-tr active <?php echo $class; ?>">
|
|
|
162 |
<td colspan="<?php echo $colspan; ?>" class="plugin-update colspanchange">
|
163 |
<div class="update-message notice inline notice-error notice-alt">
|
164 |
<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>
|
includes/locations/post-type-all.php
CHANGED
@@ -8,8 +8,8 @@ if(!class_exists('acfe_location_post_type_all')):
|
|
8 |
|
9 |
class acfe_location_post_type_all{
|
10 |
|
11 |
-
|
12 |
-
*
|
13 |
*/
|
14 |
function __construct(){
|
15 |
|
@@ -18,8 +18,13 @@ class acfe_location_post_type_all{
|
|
18 |
|
19 |
}
|
20 |
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
23 |
*/
|
24 |
function rule_values($choices){
|
25 |
|
@@ -29,8 +34,15 @@ class acfe_location_post_type_all{
|
|
29 |
|
30 |
}
|
31 |
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
*/
|
35 |
function rule_match($match, $rule, $options){
|
36 |
|
8 |
|
9 |
class acfe_location_post_type_all{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
*/
|
14 |
function __construct(){
|
15 |
|
18 |
|
19 |
}
|
20 |
|
21 |
+
|
22 |
+
/**
|
23 |
+
* rule_values
|
24 |
+
*
|
25 |
+
* @param $choices
|
26 |
+
*
|
27 |
+
* @return string[]|void[]
|
28 |
*/
|
29 |
function rule_values($choices){
|
30 |
|
34 |
|
35 |
}
|
36 |
|
37 |
+
|
38 |
+
/**
|
39 |
+
* rule_match
|
40 |
+
*
|
41 |
+
* @param $match
|
42 |
+
* @param $rule
|
43 |
+
* @param $options
|
44 |
+
*
|
45 |
+
* @return bool|mixed
|
46 |
*/
|
47 |
function rule_match($match, $rule, $options){
|
48 |
|
includes/modules/author.php
CHANGED
@@ -4,16 +4,21 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(!acf_get_setting('acfe/modules/author'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_author')):
|
12 |
|
13 |
class acfe_author{
|
14 |
|
|
|
15 |
public $post_types = array();
|
16 |
|
|
|
|
|
|
|
17 |
function __construct(){
|
18 |
|
19 |
acf_add_local_field(array(
|
@@ -36,8 +41,12 @@ class acfe_author{
|
|
36 |
|
37 |
}
|
38 |
|
39 |
-
|
40 |
-
|
|
|
|
|
|
|
|
|
41 |
*/
|
42 |
function add_post_meta_boxes($post_type, $post){
|
43 |
|
@@ -83,8 +92,12 @@ class acfe_author{
|
|
83 |
|
84 |
}
|
85 |
|
86 |
-
|
87 |
-
|
|
|
|
|
|
|
|
|
88 |
*/
|
89 |
function render_meta_box($post, $metabox){
|
90 |
|
@@ -100,8 +113,14 @@ class acfe_author{
|
|
100 |
|
101 |
}
|
102 |
|
103 |
-
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
*/
|
106 |
function wp_insert_post_data($data, $post_array){
|
107 |
|
@@ -131,8 +150,14 @@ class acfe_author{
|
|
131 |
|
132 |
}
|
133 |
|
134 |
-
|
135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
*/
|
137 |
function get_field_group_style($style, $field_group){
|
138 |
|
@@ -143,8 +168,11 @@ class acfe_author{
|
|
143 |
|
144 |
}
|
145 |
|
146 |
-
|
147 |
-
|
|
|
|
|
|
|
148 |
*/
|
149 |
function get_roles(){
|
150 |
|
@@ -153,7 +181,9 @@ class acfe_author{
|
|
153 |
foreach(wp_roles()->roles as $name => $role){
|
154 |
|
155 |
// check capability
|
156 |
-
if(empty($role['capabilities']['level_1']))
|
|
|
|
|
157 |
|
158 |
$roles[] = $name;
|
159 |
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(!acf_get_setting('acfe/modules/author')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_author')):
|
13 |
|
14 |
class acfe_author{
|
15 |
|
16 |
+
// vars
|
17 |
public $post_types = array();
|
18 |
|
19 |
+
/**
|
20 |
+
* construct
|
21 |
+
*/
|
22 |
function __construct(){
|
23 |
|
24 |
acf_add_local_field(array(
|
41 |
|
42 |
}
|
43 |
|
44 |
+
|
45 |
+
/**
|
46 |
+
* add_post_meta_boxes
|
47 |
+
*
|
48 |
+
* @param $post_type
|
49 |
+
* @param $post
|
50 |
*/
|
51 |
function add_post_meta_boxes($post_type, $post){
|
52 |
|
92 |
|
93 |
}
|
94 |
|
95 |
+
|
96 |
+
/**
|
97 |
+
* render_meta_box
|
98 |
+
*
|
99 |
+
* @param $post
|
100 |
+
* @param $metabox
|
101 |
*/
|
102 |
function render_meta_box($post, $metabox){
|
103 |
|
113 |
|
114 |
}
|
115 |
|
116 |
+
|
117 |
+
/**
|
118 |
+
* wp_insert_post_data
|
119 |
+
*
|
120 |
+
* @param $data
|
121 |
+
* @param $post_array
|
122 |
+
*
|
123 |
+
* @return mixed
|
124 |
*/
|
125 |
function wp_insert_post_data($data, $post_array){
|
126 |
|
150 |
|
151 |
}
|
152 |
|
153 |
+
|
154 |
+
/**
|
155 |
+
* get_field_group_style
|
156 |
+
*
|
157 |
+
* @param $style
|
158 |
+
* @param $field_group
|
159 |
+
*
|
160 |
+
* @return array|string|string[]
|
161 |
*/
|
162 |
function get_field_group_style($style, $field_group){
|
163 |
|
168 |
|
169 |
}
|
170 |
|
171 |
+
|
172 |
+
/**
|
173 |
+
* get_roles
|
174 |
+
*
|
175 |
+
* @return array
|
176 |
*/
|
177 |
function get_roles(){
|
178 |
|
181 |
foreach(wp_roles()->roles as $name => $role){
|
182 |
|
183 |
// check capability
|
184 |
+
if(empty($role['capabilities']['level_1'])){
|
185 |
+
continue;
|
186 |
+
}
|
187 |
|
188 |
$roles[] = $name;
|
189 |
|
includes/modules/autosync.php
CHANGED
@@ -8,9 +8,13 @@ if(!class_exists('ACFE_AutoSync')):
|
|
8 |
|
9 |
class ACFE_AutoSync{
|
10 |
|
|
|
11 |
private $php_files = array();
|
12 |
private $json_files = array();
|
13 |
|
|
|
|
|
|
|
14 |
function __construct(){
|
15 |
|
16 |
// PHP Save
|
@@ -40,48 +44,69 @@ class ACFE_AutoSync{
|
|
40 |
|
41 |
}
|
42 |
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
45 |
*/
|
46 |
function override_json($value){
|
47 |
return apply_filters('acfe/settings/json', $value);
|
48 |
}
|
49 |
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
52 |
*/
|
53 |
function override_json_save($path){
|
54 |
return apply_filters('acfe/settings/json_save', $path);
|
55 |
}
|
56 |
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
59 |
*/
|
60 |
function override_json_load($paths){
|
61 |
return (array) apply_filters('acfe/settings/json_load', $paths);
|
62 |
}
|
63 |
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
66 |
*/
|
67 |
function is_json_enabled(){
|
68 |
return (bool) acf_get_setting('json');
|
69 |
}
|
70 |
|
71 |
-
|
72 |
-
|
|
|
73 |
*/
|
74 |
function setup_json(){
|
75 |
|
76 |
-
if(!$this->is_json_enabled())
|
77 |
return;
|
|
|
78 |
|
79 |
$this->scan_json_folders();
|
80 |
|
81 |
}
|
82 |
|
83 |
-
|
84 |
-
|
|
|
85 |
*/
|
86 |
function scan_json_folders(){
|
87 |
|
@@ -89,8 +114,9 @@ class ACFE_AutoSync{
|
|
89 |
|
90 |
foreach($paths as $path){
|
91 |
|
92 |
-
if(!is_dir($path))
|
93 |
continue;
|
|
|
94 |
|
95 |
acf_update_setting('acfe/json_found', true);
|
96 |
break;
|
@@ -98,106 +124,125 @@ class ACFE_AutoSync{
|
|
98 |
}
|
99 |
|
100 |
if(acf_version_compare(acf_get_setting('version'), '<', '5.9')){
|
101 |
-
|
102 |
$this->scan_json_folders_compatibility();
|
103 |
-
|
104 |
}
|
105 |
|
106 |
}
|
107 |
|
108 |
-
|
109 |
-
|
|
|
|
|
|
|
|
|
|
|
110 |
*/
|
111 |
function scan_json_folders_compatibility(){
|
112 |
|
113 |
$json_files = array();
|
114 |
|
115 |
-
//
|
116 |
$paths = (array) acf_get_setting('load_json');
|
117 |
|
118 |
foreach($paths as $path){
|
119 |
|
120 |
-
if(!is_dir($path))
|
121 |
continue;
|
|
|
122 |
|
123 |
$files = scandir($path);
|
124 |
-
if(!$files)
|
125 |
continue;
|
|
|
126 |
|
127 |
foreach($files as $filename){
|
128 |
|
129 |
-
//
|
130 |
-
if($filename[0] === '.')
|
131 |
continue;
|
|
|
132 |
|
133 |
-
//
|
134 |
$file = untrailingslashit( $path ) . '/' . $filename;
|
135 |
-
if(is_dir($file))
|
136 |
continue;
|
|
|
137 |
|
138 |
-
//
|
139 |
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
140 |
-
if($ext !== 'json')
|
141 |
continue;
|
|
|
142 |
|
143 |
-
//
|
144 |
$json = json_decode(file_get_contents($file), true);
|
145 |
-
if(!is_array($json) || !isset($json['key']))
|
146 |
continue;
|
|
|
147 |
|
148 |
-
//
|
149 |
-
$json_files[$json['key']] = $file;
|
150 |
|
151 |
}
|
152 |
|
153 |
}
|
154 |
|
155 |
-
//
|
156 |
$this->json_files = $json_files;
|
157 |
|
158 |
return $json_files;
|
159 |
|
160 |
}
|
161 |
|
162 |
-
|
163 |
-
|
|
|
|
|
|
|
164 |
*/
|
165 |
function get_json_files(){
|
166 |
return $this->json_files;
|
167 |
}
|
168 |
|
169 |
-
|
170 |
-
|
|
|
|
|
|
|
171 |
*/
|
172 |
function is_php_enabled(){
|
173 |
return (bool) acf_get_setting('acfe/php');
|
174 |
}
|
175 |
|
176 |
-
|
177 |
-
|
|
|
178 |
*/
|
179 |
function setup_php(){
|
180 |
|
181 |
-
if(!$this->is_php_enabled())
|
182 |
return;
|
|
|
183 |
|
184 |
global $pagenow;
|
185 |
$files = $this->scan_php_folders();
|
186 |
|
187 |
-
//
|
188 |
-
if(($pagenow === 'edit.php' && acf_maybe_get_GET('post_type') === 'acf-field-group' && !acf_maybe_get_GET('page')) || ($pagenow === 'post.php' && get_post_type(acf_maybe_get_GET('post')) === 'acf-field-group'))
|
189 |
return;
|
|
|
190 |
|
191 |
foreach($files as $key => $file){
|
192 |
-
|
193 |
require_once($file);
|
194 |
-
|
195 |
}
|
196 |
|
197 |
}
|
198 |
|
199 |
-
|
200 |
-
|
|
|
|
|
|
|
201 |
*/
|
202 |
function scan_php_folders(){
|
203 |
|
@@ -208,120 +253,143 @@ class ACFE_AutoSync{
|
|
208 |
|
209 |
$path = untrailingslashit($path);
|
210 |
|
211 |
-
if(!is_dir($path))
|
212 |
continue;
|
|
|
213 |
|
214 |
acf_update_setting('acfe/php_found', true);
|
215 |
|
216 |
$files = glob($path . '/group_*.php');
|
217 |
|
218 |
-
if(!$files)
|
219 |
continue;
|
|
|
220 |
|
221 |
foreach($files as $file){
|
222 |
|
223 |
$key = pathinfo($file, PATHINFO_FILENAME);
|
224 |
|
225 |
-
//
|
226 |
$php_files[$key] = $file;
|
227 |
|
228 |
}
|
229 |
|
230 |
}
|
231 |
|
232 |
-
//
|
233 |
$this->php_files = $php_files;
|
234 |
|
235 |
return $php_files;
|
236 |
|
237 |
}
|
238 |
|
239 |
-
|
240 |
-
|
|
|
|
|
|
|
241 |
*/
|
242 |
public function get_php_files(){
|
243 |
return $this->php_files;
|
244 |
}
|
245 |
|
246 |
-
|
247 |
-
|
|
|
|
|
|
|
248 |
*/
|
249 |
function update_field_group($field_group){
|
250 |
|
251 |
-
//
|
252 |
-
if(!$this->is_php_enabled())
|
253 |
return;
|
|
|
254 |
|
255 |
-
//
|
256 |
-
if(!acfe_has_php_sync($field_group))
|
257 |
return;
|
|
|
258 |
|
259 |
-
//
|
260 |
$id = $field_group['ID'];
|
261 |
$key = $field_group['key'];
|
262 |
$path = untrailingslashit(acf_get_setting('acfe/php_save'));
|
263 |
|
264 |
-
//
|
265 |
$new_path = $path;
|
266 |
|
267 |
-
//
|
268 |
$new_path = apply_filters("acfe/settings/php_save/all", $new_path, $field_group);
|
269 |
$new_path = apply_filters("acfe/settings/php_save/ID={$id}", $new_path, $field_group);
|
270 |
$new_path = apply_filters("acfe/settings/php_save/key={$key}", $new_path, $field_group);
|
271 |
|
272 |
$diff = $path !== $new_path;
|
273 |
|
274 |
-
//
|
275 |
-
if($diff)
|
276 |
acf_update_setting('acfe/php_save', $new_path);
|
|
|
277 |
|
278 |
-
//
|
279 |
$this->save_file($key, $field_group);
|
280 |
|
281 |
-
//
|
282 |
-
if($diff)
|
283 |
acf_update_setting('acfe/php_save', $path);
|
|
|
284 |
|
285 |
}
|
286 |
|
287 |
-
|
288 |
-
|
|
|
|
|
|
|
289 |
*/
|
290 |
function delete_field_group($field_group){
|
291 |
|
292 |
-
//
|
293 |
-
if(!$this->is_php_enabled())
|
294 |
return;
|
|
|
295 |
|
296 |
-
//
|
297 |
-
if(!acfe_has_php_sync($field_group))
|
298 |
return;
|
|
|
299 |
|
300 |
-
//
|
301 |
$key = str_replace('__trashed', '', $field_group['key']);
|
302 |
|
303 |
-
//
|
304 |
$this->delete_file($key);
|
305 |
|
306 |
}
|
307 |
|
308 |
-
|
309 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
310 |
*/
|
311 |
function save_file($key, $field_group){
|
312 |
|
313 |
$path = acf_get_setting('acfe/php_save');
|
314 |
$file = untrailingslashit($path) . '/' . $key . '.php';
|
315 |
|
316 |
-
if(!is_writable($path))
|
317 |
return false;
|
|
|
318 |
|
319 |
-
//
|
320 |
$l10n = acf_get_setting('l10n');
|
321 |
$l10n_textdomain = acf_get_setting('l10n_textdomain');
|
322 |
|
323 |
if(!$l10n || !$l10n_textdomain){
|
324 |
-
|
325 |
$field_group['fields'] = acf_get_fields($field_group);
|
326 |
|
327 |
}else{
|
@@ -330,7 +398,7 @@ class ACFE_AutoSync{
|
|
330 |
|
331 |
$field_group = acf_translate_field_group($field_group);
|
332 |
|
333 |
-
//
|
334 |
$store = acf_get_store('fields');
|
335 |
$store->reset();
|
336 |
|
@@ -347,7 +415,7 @@ class ACFE_AutoSync{
|
|
347 |
// add modified time
|
348 |
$field_group['modified'] = get_post_modified_time('U', true, $id, true);
|
349 |
|
350 |
-
//
|
351 |
$str_replace = array(
|
352 |
" " => "\t",
|
353 |
"'!!__(!!\'" => "__('",
|
@@ -382,15 +450,20 @@ class ACFE_AutoSync{
|
|
382 |
|
383 |
$output = ob_get_clean();
|
384 |
|
385 |
-
//
|
386 |
$result = file_put_contents($file, $output);
|
387 |
|
388 |
return is_int($result);
|
389 |
|
390 |
}
|
391 |
|
392 |
-
|
393 |
-
|
|
|
|
|
|
|
|
|
|
|
394 |
*/
|
395 |
function delete_file($key){
|
396 |
|
@@ -398,67 +471,73 @@ class ACFE_AutoSync{
|
|
398 |
$file = untrailingslashit($path) . '/' . $key . '.php';
|
399 |
|
400 |
if(is_readable($file)){
|
401 |
-
|
402 |
unlink($file);
|
403 |
return true;
|
404 |
-
|
405 |
}
|
406 |
|
407 |
return false;
|
408 |
|
409 |
}
|
410 |
|
411 |
-
|
412 |
-
|
|
|
|
|
|
|
413 |
*/
|
414 |
function pre_update_field_group_json($field_group){
|
415 |
|
416 |
-
if(!$this->is_json_enabled())
|
417 |
return;
|
418 |
-
|
|
|
|
|
419 |
if(!acfe_has_json_sync($field_group)){
|
420 |
|
421 |
-
// Do not save json
|
422 |
add_filter('acf/settings/json', array($this, '__return_false'));
|
423 |
return;
|
424 |
|
425 |
}
|
426 |
|
427 |
-
//
|
428 |
$id = $field_group['ID'];
|
429 |
$key = $field_group['key'];
|
430 |
$path = untrailingslashit(acf_get_setting('save_json'));
|
431 |
|
432 |
-
//
|
433 |
$new_path = $path;
|
434 |
|
435 |
-
//
|
436 |
$new_path = apply_filters("acfe/settings/json_save/all", $new_path, $field_group);
|
437 |
$new_path = apply_filters("acfe/settings/json_save/ID={$id}", $new_path, $field_group);
|
438 |
$new_path = apply_filters("acfe/settings/json_save/key={$key}", $new_path, $field_group);
|
439 |
|
440 |
-
//
|
441 |
if($path !== $new_path){
|
442 |
|
443 |
-
//
|
444 |
$GLOBALS['acfe_json_original_path'] = $path;
|
445 |
|
446 |
-
//
|
447 |
acf_update_setting('save_json', $new_path);
|
448 |
|
449 |
}
|
450 |
|
451 |
}
|
452 |
|
453 |
-
|
454 |
-
|
|
|
|
|
|
|
455 |
*/
|
456 |
function post_update_field_group_json($field_group){
|
457 |
|
458 |
-
if(!$this->is_json_enabled())
|
459 |
return;
|
|
|
460 |
|
461 |
-
//
|
462 |
if(!acfe_has_json_sync($field_group)){
|
463 |
|
464 |
// Original json setting
|
@@ -469,18 +548,21 @@ class ACFE_AutoSync{
|
|
469 |
|
470 |
if(isset($GLOBALS['acfe_json_original_path']) && !empty($GLOBALS['acfe_json_original_path'])){
|
471 |
|
472 |
-
//
|
473 |
acf_update_setting('save_json', $GLOBALS['acfe_json_original_path']);
|
474 |
|
475 |
-
//
|
476 |
unset($GLOBALS['acfe_json_original_path']);
|
477 |
|
478 |
}
|
479 |
|
480 |
}
|
481 |
|
482 |
-
|
483 |
-
|
|
|
|
|
|
|
484 |
*/
|
485 |
function __return_false(){
|
486 |
return false;
|
@@ -492,15 +574,21 @@ acf_new_instance('ACFE_AutoSync');
|
|
492 |
|
493 |
endif;
|
494 |
|
495 |
-
|
496 |
-
|
|
|
|
|
|
|
497 |
*/
|
498 |
function acfe_get_local_php_files(){
|
499 |
return acf_get_instance('ACFE_AutoSync')->get_php_files();
|
500 |
}
|
501 |
|
502 |
-
|
503 |
-
|
|
|
|
|
|
|
504 |
*/
|
505 |
if(!function_exists('acf_get_local_json_files') && acf_version_compare(acf_get_setting('version'), '<', '5.9')){
|
506 |
|
@@ -510,8 +598,13 @@ function acf_get_local_json_files(){
|
|
510 |
|
511 |
}
|
512 |
|
|
|
513 |
/**
|
514 |
-
*
|
|
|
|
|
|
|
|
|
515 |
*/
|
516 |
function acfe_is_sync_available($field_group){
|
517 |
|
@@ -545,46 +638,76 @@ function acfe_is_sync_available($field_group){
|
|
545 |
|
546 |
}
|
547 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
548 |
function acfe_has_json_sync($field_group){
|
549 |
return in_array('json', (array) acf_maybe_get($field_group, 'acfe_autosync', array()));
|
550 |
}
|
551 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
552 |
function acfe_has_php_sync($field_group){
|
553 |
return in_array('php', (array) acf_maybe_get($field_group, 'acfe_autosync', array()));
|
554 |
}
|
555 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
556 |
function acfe_get_local_php_file($field_group){
|
557 |
|
558 |
$key = $field_group;
|
559 |
|
560 |
-
if(is_array($field_group) && isset($field_group['key']))
|
561 |
$key = $field_group['key'];
|
|
|
562 |
|
563 |
$php_files = acfe_get_local_php_files();
|
564 |
|
565 |
if(isset($php_files[$key])){
|
566 |
-
|
567 |
return $php_files[$key];
|
568 |
-
|
569 |
}
|
570 |
|
571 |
return false;
|
572 |
|
573 |
}
|
574 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
575 |
function acfe_get_local_json_file($field_group){
|
576 |
|
577 |
$key = $field_group;
|
578 |
|
579 |
-
if(is_array($field_group) && isset($field_group['key']))
|
580 |
$key = $field_group['key'];
|
|
|
581 |
|
582 |
$json_files = acf_get_local_json_files();
|
583 |
|
584 |
if(isset($json_files[$key])){
|
585 |
-
|
586 |
return $json_files[$key];
|
587 |
-
|
588 |
}
|
589 |
|
590 |
return false;
|
8 |
|
9 |
class ACFE_AutoSync{
|
10 |
|
11 |
+
// vars
|
12 |
private $php_files = array();
|
13 |
private $json_files = array();
|
14 |
|
15 |
+
/**
|
16 |
+
* construct
|
17 |
+
*/
|
18 |
function __construct(){
|
19 |
|
20 |
// PHP Save
|
44 |
|
45 |
}
|
46 |
|
47 |
+
|
48 |
+
/**
|
49 |
+
* override_json
|
50 |
+
*
|
51 |
+
* @param $value
|
52 |
+
*
|
53 |
+
* @return mixed|null
|
54 |
*/
|
55 |
function override_json($value){
|
56 |
return apply_filters('acfe/settings/json', $value);
|
57 |
}
|
58 |
|
59 |
+
|
60 |
+
/**
|
61 |
+
* override_json_save
|
62 |
+
*
|
63 |
+
* @param $path
|
64 |
+
*
|
65 |
+
* @return mixed|null
|
66 |
*/
|
67 |
function override_json_save($path){
|
68 |
return apply_filters('acfe/settings/json_save', $path);
|
69 |
}
|
70 |
|
71 |
+
|
72 |
+
/**
|
73 |
+
* override_json_load
|
74 |
+
*
|
75 |
+
* @param $paths
|
76 |
+
*
|
77 |
+
* @return array
|
78 |
*/
|
79 |
function override_json_load($paths){
|
80 |
return (array) apply_filters('acfe/settings/json_load', $paths);
|
81 |
}
|
82 |
|
83 |
+
|
84 |
+
/**
|
85 |
+
* is_json_enabled
|
86 |
+
*
|
87 |
+
* @return bool
|
88 |
*/
|
89 |
function is_json_enabled(){
|
90 |
return (bool) acf_get_setting('json');
|
91 |
}
|
92 |
|
93 |
+
|
94 |
+
/**
|
95 |
+
* setup_json
|
96 |
*/
|
97 |
function setup_json(){
|
98 |
|
99 |
+
if(!$this->is_json_enabled()){
|
100 |
return;
|
101 |
+
}
|
102 |
|
103 |
$this->scan_json_folders();
|
104 |
|
105 |
}
|
106 |
|
107 |
+
|
108 |
+
/**
|
109 |
+
* scan_json_folders
|
110 |
*/
|
111 |
function scan_json_folders(){
|
112 |
|
114 |
|
115 |
foreach($paths as $path){
|
116 |
|
117 |
+
if(!is_dir($path)){
|
118 |
continue;
|
119 |
+
}
|
120 |
|
121 |
acf_update_setting('acfe/json_found', true);
|
122 |
break;
|
124 |
}
|
125 |
|
126 |
if(acf_version_compare(acf_get_setting('version'), '<', '5.9')){
|
|
|
127 |
$this->scan_json_folders_compatibility();
|
|
|
128 |
}
|
129 |
|
130 |
}
|
131 |
|
132 |
+
|
133 |
+
/**
|
134 |
+
* scan_json_folders_compatibility
|
135 |
+
*
|
136 |
+
* ACF < 5.9 compatibility
|
137 |
+
*
|
138 |
+
* @return array
|
139 |
*/
|
140 |
function scan_json_folders_compatibility(){
|
141 |
|
142 |
$json_files = array();
|
143 |
|
144 |
+
// get paths
|
145 |
$paths = (array) acf_get_setting('load_json');
|
146 |
|
147 |
foreach($paths as $path){
|
148 |
|
149 |
+
if(!is_dir($path)){
|
150 |
continue;
|
151 |
+
}
|
152 |
|
153 |
$files = scandir($path);
|
154 |
+
if(!$files){
|
155 |
continue;
|
156 |
+
}
|
157 |
|
158 |
foreach($files as $filename){
|
159 |
|
160 |
+
// ignore hidden files
|
161 |
+
if($filename[0] === '.'){
|
162 |
continue;
|
163 |
+
}
|
164 |
|
165 |
+
// ignore sub directories
|
166 |
$file = untrailingslashit( $path ) . '/' . $filename;
|
167 |
+
if(is_dir($file)){
|
168 |
continue;
|
169 |
+
}
|
170 |
|
171 |
+
// ignore non json files
|
172 |
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
173 |
+
if($ext !== 'json'){
|
174 |
continue;
|
175 |
+
}
|
176 |
|
177 |
+
// read json data
|
178 |
$json = json_decode(file_get_contents($file), true);
|
179 |
+
if(!is_array($json) || !isset($json['key'])){
|
180 |
continue;
|
181 |
+
}
|
182 |
|
183 |
+
// append data
|
184 |
+
$json_files[ $json['key'] ] = $file;
|
185 |
|
186 |
}
|
187 |
|
188 |
}
|
189 |
|
190 |
+
// store data and return
|
191 |
$this->json_files = $json_files;
|
192 |
|
193 |
return $json_files;
|
194 |
|
195 |
}
|
196 |
|
197 |
+
|
198 |
+
/**
|
199 |
+
* get_json_files
|
200 |
+
*
|
201 |
+
* @return array
|
202 |
*/
|
203 |
function get_json_files(){
|
204 |
return $this->json_files;
|
205 |
}
|
206 |
|
207 |
+
|
208 |
+
/**
|
209 |
+
* is_php_enabled
|
210 |
+
*
|
211 |
+
* @return bool
|
212 |
*/
|
213 |
function is_php_enabled(){
|
214 |
return (bool) acf_get_setting('acfe/php');
|
215 |
}
|
216 |
|
217 |
+
|
218 |
+
/**
|
219 |
+
* setup_php
|
220 |
*/
|
221 |
function setup_php(){
|
222 |
|
223 |
+
if(!$this->is_php_enabled()){
|
224 |
return;
|
225 |
+
}
|
226 |
|
227 |
global $pagenow;
|
228 |
$files = $this->scan_php_folders();
|
229 |
|
230 |
+
// do not include php files in acf Admin
|
231 |
+
if(($pagenow === 'edit.php' && acf_maybe_get_GET('post_type') === 'acf-field-group' && !acf_maybe_get_GET('page')) || ($pagenow === 'post.php' && get_post_type(acf_maybe_get_GET('post')) === 'acf-field-group')){
|
232 |
return;
|
233 |
+
}
|
234 |
|
235 |
foreach($files as $key => $file){
|
|
|
236 |
require_once($file);
|
|
|
237 |
}
|
238 |
|
239 |
}
|
240 |
|
241 |
+
|
242 |
+
/**
|
243 |
+
* scan_php_folders
|
244 |
+
*
|
245 |
+
* @return array
|
246 |
*/
|
247 |
function scan_php_folders(){
|
248 |
|
253 |
|
254 |
$path = untrailingslashit($path);
|
255 |
|
256 |
+
if(!is_dir($path)){
|
257 |
continue;
|
258 |
+
}
|
259 |
|
260 |
acf_update_setting('acfe/php_found', true);
|
261 |
|
262 |
$files = glob($path . '/group_*.php');
|
263 |
|
264 |
+
if(!$files){
|
265 |
continue;
|
266 |
+
}
|
267 |
|
268 |
foreach($files as $file){
|
269 |
|
270 |
$key = pathinfo($file, PATHINFO_FILENAME);
|
271 |
|
272 |
+
// append data
|
273 |
$php_files[$key] = $file;
|
274 |
|
275 |
}
|
276 |
|
277 |
}
|
278 |
|
279 |
+
// store data and return
|
280 |
$this->php_files = $php_files;
|
281 |
|
282 |
return $php_files;
|
283 |
|
284 |
}
|
285 |
|
286 |
+
|
287 |
+
/**
|
288 |
+
* get_php_files
|
289 |
+
*
|
290 |
+
* @return array
|
291 |
*/
|
292 |
public function get_php_files(){
|
293 |
return $this->php_files;
|
294 |
}
|
295 |
|
296 |
+
|
297 |
+
/**
|
298 |
+
* update_field_group
|
299 |
+
*
|
300 |
+
* @param $field_group
|
301 |
*/
|
302 |
function update_field_group($field_group){
|
303 |
|
304 |
+
// bail early
|
305 |
+
if(!$this->is_php_enabled()){
|
306 |
return;
|
307 |
+
}
|
308 |
|
309 |
+
// bail early
|
310 |
+
if(!acfe_has_php_sync($field_group)){
|
311 |
return;
|
312 |
+
}
|
313 |
|
314 |
+
// vars
|
315 |
$id = $field_group['ID'];
|
316 |
$key = $field_group['key'];
|
317 |
$path = untrailingslashit(acf_get_setting('acfe/php_save'));
|
318 |
|
319 |
+
// backup path
|
320 |
$new_path = $path;
|
321 |
|
322 |
+
// filters
|
323 |
$new_path = apply_filters("acfe/settings/php_save/all", $new_path, $field_group);
|
324 |
$new_path = apply_filters("acfe/settings/php_save/ID={$id}", $new_path, $field_group);
|
325 |
$new_path = apply_filters("acfe/settings/php_save/key={$key}", $new_path, $field_group);
|
326 |
|
327 |
$diff = $path !== $new_path;
|
328 |
|
329 |
+
// custom path
|
330 |
+
if($diff){
|
331 |
acf_update_setting('acfe/php_save', $new_path);
|
332 |
+
}
|
333 |
|
334 |
+
// save file
|
335 |
$this->save_file($key, $field_group);
|
336 |
|
337 |
+
// restore
|
338 |
+
if($diff){
|
339 |
acf_update_setting('acfe/php_save', $path);
|
340 |
+
}
|
341 |
|
342 |
}
|
343 |
|
344 |
+
|
345 |
+
/**
|
346 |
+
* delete_field_group
|
347 |
+
*
|
348 |
+
* @param $field_group
|
349 |
*/
|
350 |
function delete_field_group($field_group){
|
351 |
|
352 |
+
// bail early
|
353 |
+
if(!$this->is_php_enabled()){
|
354 |
return;
|
355 |
+
}
|
356 |
|
357 |
+
// bail early
|
358 |
+
if(!acfe_has_php_sync($field_group)){
|
359 |
return;
|
360 |
+
}
|
361 |
|
362 |
+
// wp appends '__trashed' to end of 'key' (post_name)
|
363 |
$key = str_replace('__trashed', '', $field_group['key']);
|
364 |
|
365 |
+
// delete file
|
366 |
$this->delete_file($key);
|
367 |
|
368 |
}
|
369 |
|
370 |
+
|
371 |
+
/**
|
372 |
+
* save_file
|
373 |
+
*
|
374 |
+
* @param $key
|
375 |
+
* @param $field_group
|
376 |
+
*
|
377 |
+
* @return bool
|
378 |
*/
|
379 |
function save_file($key, $field_group){
|
380 |
|
381 |
$path = acf_get_setting('acfe/php_save');
|
382 |
$file = untrailingslashit($path) . '/' . $key . '.php';
|
383 |
|
384 |
+
if(!is_writable($path)){
|
385 |
return false;
|
386 |
+
}
|
387 |
|
388 |
+
// translation
|
389 |
$l10n = acf_get_setting('l10n');
|
390 |
$l10n_textdomain = acf_get_setting('l10n_textdomain');
|
391 |
|
392 |
if(!$l10n || !$l10n_textdomain){
|
|
|
393 |
$field_group['fields'] = acf_get_fields($field_group);
|
394 |
|
395 |
}else{
|
398 |
|
399 |
$field_group = acf_translate_field_group($field_group);
|
400 |
|
401 |
+
// reset store to allow fields translation
|
402 |
$store = acf_get_store('fields');
|
403 |
$store->reset();
|
404 |
|
415 |
// add modified time
|
416 |
$field_group['modified'] = get_post_modified_time('U', true, $id, true);
|
417 |
|
418 |
+
// prepare
|
419 |
$str_replace = array(
|
420 |
" " => "\t",
|
421 |
"'!!__(!!\'" => "__('",
|
450 |
|
451 |
$output = ob_get_clean();
|
452 |
|
453 |
+
// save and return true if bytes were written.
|
454 |
$result = file_put_contents($file, $output);
|
455 |
|
456 |
return is_int($result);
|
457 |
|
458 |
}
|
459 |
|
460 |
+
|
461 |
+
/**
|
462 |
+
* delete_file
|
463 |
+
*
|
464 |
+
* @param $key
|
465 |
+
*
|
466 |
+
* @return bool
|
467 |
*/
|
468 |
function delete_file($key){
|
469 |
|
471 |
$file = untrailingslashit($path) . '/' . $key . '.php';
|
472 |
|
473 |
if(is_readable($file)){
|
|
|
474 |
unlink($file);
|
475 |
return true;
|
|
|
476 |
}
|
477 |
|
478 |
return false;
|
479 |
|
480 |
}
|
481 |
|
482 |
+
|
483 |
+
/**
|
484 |
+
* pre_update_field_group_json
|
485 |
+
*
|
486 |
+
* @param $field_group
|
487 |
*/
|
488 |
function pre_update_field_group_json($field_group){
|
489 |
|
490 |
+
if(!$this->is_json_enabled()){
|
491 |
return;
|
492 |
+
}
|
493 |
+
|
494 |
+
// do not save json
|
495 |
if(!acfe_has_json_sync($field_group)){
|
496 |
|
|
|
497 |
add_filter('acf/settings/json', array($this, '__return_false'));
|
498 |
return;
|
499 |
|
500 |
}
|
501 |
|
502 |
+
// vars
|
503 |
$id = $field_group['ID'];
|
504 |
$key = $field_group['key'];
|
505 |
$path = untrailingslashit(acf_get_setting('save_json'));
|
506 |
|
507 |
+
// backup
|
508 |
$new_path = $path;
|
509 |
|
510 |
+
// filters
|
511 |
$new_path = apply_filters("acfe/settings/json_save/all", $new_path, $field_group);
|
512 |
$new_path = apply_filters("acfe/settings/json_save/ID={$id}", $new_path, $field_group);
|
513 |
$new_path = apply_filters("acfe/settings/json_save/key={$key}", $new_path, $field_group);
|
514 |
|
515 |
+
// set custom saving point
|
516 |
if($path !== $new_path){
|
517 |
|
518 |
+
// backup original path
|
519 |
$GLOBALS['acfe_json_original_path'] = $path;
|
520 |
|
521 |
+
// set custom path
|
522 |
acf_update_setting('save_json', $new_path);
|
523 |
|
524 |
}
|
525 |
|
526 |
}
|
527 |
|
528 |
+
|
529 |
+
/**
|
530 |
+
* post_update_field_group_json
|
531 |
+
*
|
532 |
+
* @param $field_group
|
533 |
*/
|
534 |
function post_update_field_group_json($field_group){
|
535 |
|
536 |
+
if(!$this->is_json_enabled()){
|
537 |
return;
|
538 |
+
}
|
539 |
|
540 |
+
// json
|
541 |
if(!acfe_has_json_sync($field_group)){
|
542 |
|
543 |
// Original json setting
|
548 |
|
549 |
if(isset($GLOBALS['acfe_json_original_path']) && !empty($GLOBALS['acfe_json_original_path'])){
|
550 |
|
551 |
+
// restore original path
|
552 |
acf_update_setting('save_json', $GLOBALS['acfe_json_original_path']);
|
553 |
|
554 |
+
// remove backup
|
555 |
unset($GLOBALS['acfe_json_original_path']);
|
556 |
|
557 |
}
|
558 |
|
559 |
}
|
560 |
|
561 |
+
|
562 |
+
/**
|
563 |
+
* __return_false
|
564 |
+
*
|
565 |
+
* @return false
|
566 |
*/
|
567 |
function __return_false(){
|
568 |
return false;
|
574 |
|
575 |
endif;
|
576 |
|
577 |
+
|
578 |
+
/**
|
579 |
+
* acfe_get_local_php_files
|
580 |
+
*
|
581 |
+
* @return mixed
|
582 |
*/
|
583 |
function acfe_get_local_php_files(){
|
584 |
return acf_get_instance('ACFE_AutoSync')->get_php_files();
|
585 |
}
|
586 |
|
587 |
+
|
588 |
+
/**
|
589 |
+
* acf_get_local_json_files
|
590 |
+
*
|
591 |
+
* @return mixed
|
592 |
*/
|
593 |
if(!function_exists('acf_get_local_json_files') && acf_version_compare(acf_get_setting('version'), '<', '5.9')){
|
594 |
|
598 |
|
599 |
}
|
600 |
|
601 |
+
|
602 |
/**
|
603 |
+
* acfe_is_sync_available
|
604 |
+
*
|
605 |
+
* @param $field_group
|
606 |
+
*
|
607 |
+
* @return bool
|
608 |
*/
|
609 |
function acfe_is_sync_available($field_group){
|
610 |
|
638 |
|
639 |
}
|
640 |
|
641 |
+
|
642 |
+
/**
|
643 |
+
* acfe_has_json_sync
|
644 |
+
*
|
645 |
+
* @param $field_group
|
646 |
+
*
|
647 |
+
* @return bool
|
648 |
+
*/
|
649 |
function acfe_has_json_sync($field_group){
|
650 |
return in_array('json', (array) acf_maybe_get($field_group, 'acfe_autosync', array()));
|
651 |
}
|
652 |
|
653 |
+
|
654 |
+
/**
|
655 |
+
* acfe_has_php_sync
|
656 |
+
*
|
657 |
+
* @param $field_group
|
658 |
+
*
|
659 |
+
* @return bool
|
660 |
+
*/
|
661 |
function acfe_has_php_sync($field_group){
|
662 |
return in_array('php', (array) acf_maybe_get($field_group, 'acfe_autosync', array()));
|
663 |
}
|
664 |
|
665 |
+
|
666 |
+
/**
|
667 |
+
* acfe_get_local_php_file
|
668 |
+
*
|
669 |
+
* @param $field_group
|
670 |
+
*
|
671 |
+
* @return false|mixed
|
672 |
+
*/
|
673 |
function acfe_get_local_php_file($field_group){
|
674 |
|
675 |
$key = $field_group;
|
676 |
|
677 |
+
if(is_array($field_group) && isset($field_group['key'])){
|
678 |
$key = $field_group['key'];
|
679 |
+
}
|
680 |
|
681 |
$php_files = acfe_get_local_php_files();
|
682 |
|
683 |
if(isset($php_files[$key])){
|
|
|
684 |
return $php_files[$key];
|
|
|
685 |
}
|
686 |
|
687 |
return false;
|
688 |
|
689 |
}
|
690 |
|
691 |
+
|
692 |
+
/**
|
693 |
+
* acfe_get_local_json_file
|
694 |
+
*
|
695 |
+
* @param $field_group
|
696 |
+
*
|
697 |
+
* @return false
|
698 |
+
*/
|
699 |
function acfe_get_local_json_file($field_group){
|
700 |
|
701 |
$key = $field_group;
|
702 |
|
703 |
+
if(is_array($field_group) && isset($field_group['key'])){
|
704 |
$key = $field_group['key'];
|
705 |
+
}
|
706 |
|
707 |
$json_files = acf_get_local_json_files();
|
708 |
|
709 |
if(isset($json_files[$key])){
|
|
|
710 |
return $json_files[$key];
|
|
|
711 |
}
|
712 |
|
713 |
return false;
|
includes/modules/dev-clean-meta.php
CHANGED
@@ -100,11 +100,11 @@ class acfe_dev_clean_meta{
|
|
100 |
|
101 |
}else{
|
102 |
|
103 |
-
$link = ' <a href="#" data-
|
104 |
|
105 |
add_action('admin_footer', function() use($deleted){
|
106 |
?>
|
107 |
-
<div class="acfe-modal" data-
|
108 |
<div class="acfe-modal-spacer">
|
109 |
<pre><?php print_r($deleted); ?></pre>
|
110 |
</div>
|
100 |
|
101 |
}else{
|
102 |
|
103 |
+
$link = ' <a href="#" data-modal="clean-meta-debug">' . __('View', 'acfe') . '</a>';
|
104 |
|
105 |
add_action('admin_footer', function() use($deleted){
|
106 |
?>
|
107 |
+
<div class="acfe-modal" data-modal="clean-meta-debug" data-title="<?php _e('Deleted meta', 'acfe'); ?>" data-footer="<?php _e('Close', 'acfe'); ?>">
|
108 |
<div class="acfe-modal-spacer">
|
109 |
<pre><?php print_r($deleted); ?></pre>
|
110 |
</div>
|
includes/modules/dev-delete-meta.php
CHANGED
@@ -8,6 +8,9 @@ if(!class_exists('acfe_dev_delete_meta')):
|
|
8 |
|
9 |
class acfe_dev_delete_meta{
|
10 |
|
|
|
|
|
|
|
11 |
function __construct(){
|
12 |
|
13 |
// check settings
|
8 |
|
9 |
class acfe_dev_delete_meta{
|
10 |
|
11 |
+
/**
|
12 |
+
* construct
|
13 |
+
*/
|
14 |
function __construct(){
|
15 |
|
16 |
// check settings
|
includes/modules/forms-action-post.php
CHANGED
@@ -581,8 +581,17 @@ class acfe_form_post{
|
|
581 |
if(!empty($term_objects)){
|
582 |
|
583 |
foreach($term_objects as $term_taxonomy => $term_ids){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
584 |
|
585 |
-
wp_set_object_terms($args['ID'], $term_ids, $term_taxonomy,
|
586 |
|
587 |
}
|
588 |
|
@@ -592,8 +601,17 @@ class acfe_form_post{
|
|
592 |
if(!empty($term_create)){
|
593 |
|
594 |
foreach($term_create as $term_taxonomy => $term_slugs){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
595 |
|
596 |
-
wp_set_object_terms($args['ID'], $term_slugs, $term_taxonomy,
|
597 |
|
598 |
}
|
599 |
|
581 |
if(!empty($term_objects)){
|
582 |
|
583 |
foreach($term_objects as $term_taxonomy => $term_ids){
|
584 |
+
|
585 |
+
// append
|
586 |
+
$append = true;
|
587 |
+
$append = apply_filters('acfe/form/submit/post_append_terms', $append, $_post_id, $term_ids, $term_taxonomy, $form, $action);
|
588 |
+
$append = apply_filters('acfe/form/submit/post_append_terms/form=' . $form_name, $append, $_post_id, $term_ids, $term_taxonomy, $form, $action);
|
589 |
+
|
590 |
+
if(!empty($action)){
|
591 |
+
$append = apply_filters('acfe/form/submit/post_append_terms/action=' . $action, $append, $_post_id, $term_ids, $term_taxonomy, $form, $action);
|
592 |
+
}
|
593 |
|
594 |
+
wp_set_object_terms($args['ID'], $term_ids, $term_taxonomy, $append);
|
595 |
|
596 |
}
|
597 |
|
601 |
if(!empty($term_create)){
|
602 |
|
603 |
foreach($term_create as $term_taxonomy => $term_slugs){
|
604 |
+
|
605 |
+
// append
|
606 |
+
$append = true;
|
607 |
+
$append = apply_filters('acfe/form/submit/post_append_terms', $append, $_post_id, $term_slugs, $term_taxonomy, $form, $action);
|
608 |
+
$append = apply_filters('acfe/form/submit/post_append_terms/form=' . $form_name, $append, $_post_id, $term_slugs, $term_taxonomy, $form, $action);
|
609 |
+
|
610 |
+
if(!empty($action)){
|
611 |
+
$append = apply_filters('acfe/form/submit/post_append_terms/action=' . $action, $append, $_post_id, $term_slugs, $term_taxonomy, $form, $action);
|
612 |
+
}
|
613 |
|
614 |
+
wp_set_object_terms($args['ID'], $term_slugs, $term_taxonomy, $append);
|
615 |
|
616 |
}
|
617 |
|
includes/modules/forms-action-user.php
CHANGED
@@ -311,6 +311,7 @@ class acfe_form_user{
|
|
311 |
// fields
|
312 |
$target = get_sub_field('acfe_form_user_save_target');
|
313 |
$target = acfe_form_map_field_value($target, $current_post_id, $form);
|
|
|
314 |
|
315 |
$user_login = get_sub_field('acfe_form_user_save_username');
|
316 |
$user_login = acfe_form_map_field_value($user_login, $current_post_id, $form);
|
@@ -326,7 +327,7 @@ class acfe_form_user{
|
|
326 |
return acfe_add_validation_error('', $errors['long_username']);
|
327 |
|
328 |
// login already exists
|
329 |
-
}elseif(username_exists($user_login) && username_exists($user_login) !==
|
330 |
return acfe_add_validation_error('', $errors['used_username']);
|
331 |
}
|
332 |
|
@@ -337,7 +338,7 @@ class acfe_form_user{
|
|
337 |
|
338 |
$target_user = get_user_by('ID', $target);
|
339 |
|
340 |
-
if($user_email !== $target_user->user_email){
|
341 |
|
342 |
// invalid email
|
343 |
if(!is_email($user_email)){
|
311 |
// fields
|
312 |
$target = get_sub_field('acfe_form_user_save_target');
|
313 |
$target = acfe_form_map_field_value($target, $current_post_id, $form);
|
314 |
+
$target = absint($target);
|
315 |
|
316 |
$user_login = get_sub_field('acfe_form_user_save_username');
|
317 |
$user_login = acfe_form_map_field_value($user_login, $current_post_id, $form);
|
327 |
return acfe_add_validation_error('', $errors['long_username']);
|
328 |
|
329 |
// login already exists
|
330 |
+
}elseif(username_exists($user_login) && username_exists($user_login) !== $target){
|
331 |
return acfe_add_validation_error('', $errors['used_username']);
|
332 |
}
|
333 |
|
338 |
|
339 |
$target_user = get_user_by('ID', $target);
|
340 |
|
341 |
+
if($target_user && $user_email !== $target_user->user_email){
|
342 |
|
343 |
// invalid email
|
344 |
if(!is_email($user_email)){
|
includes/modules/forms-helpers.php
CHANGED
@@ -704,6 +704,12 @@ function acfe_form_render_fields($content, $post_id, $args){
|
|
704 |
|
705 |
}
|
706 |
|
|
|
|
|
|
|
|
|
|
|
|
|
707 |
function acfe_form_map_field_value($field, $post_id = 0, $form = array()){
|
708 |
|
709 |
return acf_get_instance('acfe_dynamic_forms_helpers')->map_field_value($field, $post_id, $form);
|
@@ -1607,6 +1613,14 @@ function acfe_form_map_current_value($name, $post, $form = false){
|
|
1607 |
|
1608 |
function acfe_form_map_vs_fields($map, $fields, $post_id = 0, $form = array()){
|
1609 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1610 |
$return = array();
|
1611 |
|
1612 |
foreach($map as $mkey => $mval){
|
704 |
|
705 |
}
|
706 |
|
707 |
+
function acfe_form_map_fields_values($data = array(), $array = array()){
|
708 |
+
|
709 |
+
return acf_get_instance('acfe_dynamic_forms_helpers')->map_fields_values($data, $array);
|
710 |
+
|
711 |
+
}
|
712 |
+
|
713 |
function acfe_form_map_field_value($field, $post_id = 0, $form = array()){
|
714 |
|
715 |
return acf_get_instance('acfe_dynamic_forms_helpers')->map_field_value($field, $post_id, $form);
|
1613 |
|
1614 |
function acfe_form_map_vs_fields($map, $fields, $post_id = 0, $form = array()){
|
1615 |
|
1616 |
+
// force to refresh acfe/form store with $_POST data
|
1617 |
+
// this allows to use uploaded files when acfe_form_map_field_value() is used in validation
|
1618 |
+
|
1619 |
+
// get store
|
1620 |
+
$store = acf_get_store('acfe/form');
|
1621 |
+
$data = acfe_form_map_fields_values();
|
1622 |
+
$store->set('data', $data);
|
1623 |
+
|
1624 |
$return = array();
|
1625 |
|
1626 |
foreach($map as $mkey => $mval){
|
includes/modules/options.php
CHANGED
@@ -4,78 +4,98 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(!acf_get_setting('acfe/modules/options'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_module_options')):
|
12 |
|
13 |
class acfe_module_options{
|
14 |
|
|
|
15 |
var $action = 'list';
|
16 |
|
17 |
-
|
18 |
* Construct
|
19 |
*/
|
20 |
function __construct(){
|
21 |
|
22 |
-
// WP List Table
|
23 |
acfe_include('includes/modules/options.class.php');
|
24 |
|
25 |
-
|
26 |
-
add_filter('set-screen-option', array($this, 'acfe_options_screen'), 10, 3);
|
27 |
add_action('admin_menu', array($this, 'admin_menu'));
|
28 |
add_action('acf/save_post', array($this, 'save_post'), 5);
|
29 |
|
30 |
}
|
31 |
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
-
if($option
|
|
|
|
|
35 |
|
36 |
-
return $
|
37 |
|
38 |
}
|
39 |
|
40 |
-
|
41 |
-
|
|
|
42 |
*/
|
43 |
function admin_menu(){
|
44 |
|
45 |
-
if(
|
46 |
-
|
47 |
-
|
48 |
|
49 |
-
|
|
|
|
|
50 |
|
51 |
}
|
52 |
|
53 |
-
|
54 |
-
|
|
|
55 |
*/
|
56 |
function admin_load(){
|
57 |
|
58 |
-
//
|
59 |
if($message = acf_maybe_get_GET('message')){
|
60 |
|
61 |
-
|
62 |
-
|
63 |
-
if($message === 'deleted'){
|
64 |
-
|
65 |
-
acf_add_admin_notice(__('Option has been deleted', 'acfe'), 'success');
|
66 |
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
|
|
|
|
|
|
72 |
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
76 |
|
77 |
-
|
78 |
-
|
|
|
|
|
|
|
79 |
}
|
80 |
|
81 |
}
|
@@ -85,78 +105,83 @@ class acfe_module_options{
|
|
85 |
|
86 |
// edit or delete
|
87 |
if(acfe_maybe_get_REQUEST('action', '-1') !== '-1'){
|
88 |
-
|
89 |
$this->action = $_REQUEST['action'];
|
90 |
|
91 |
// bulk-delete
|
92 |
}elseif(acfe_maybe_get_REQUEST('action2', '-1') !== '-1'){
|
93 |
-
|
94 |
$this->action = $_REQUEST['action2'];
|
95 |
-
|
96 |
}
|
97 |
|
98 |
-
|
|
|
99 |
|
100 |
-
|
|
|
|
|
|
|
101 |
|
102 |
-
|
103 |
-
|
104 |
-
|
|
|
|
|
105 |
|
106 |
-
|
107 |
-
|
108 |
-
|
|
|
109 |
|
110 |
-
|
111 |
-
|
112 |
-
|
|
|
113 |
|
114 |
}
|
115 |
|
116 |
-
//
|
117 |
acf_enqueue_scripts();
|
118 |
|
119 |
}
|
120 |
|
121 |
-
|
122 |
-
|
|
|
123 |
*/
|
124 |
function admin_html(){
|
125 |
|
126 |
if($this->action === 'list'){
|
127 |
-
|
128 |
$this->html_list();
|
129 |
|
130 |
}elseif($this->action === 'edit' || $this->action === 'add'){
|
131 |
-
|
132 |
$this->html_edit();
|
133 |
-
|
134 |
}
|
135 |
|
136 |
}
|
137 |
|
138 |
-
|
139 |
-
|
|
|
140 |
*/
|
141 |
function load_list(){
|
142 |
|
143 |
add_screen_option('per_page', array(
|
144 |
-
'label'
|
145 |
-
'default'
|
146 |
-
'option'
|
147 |
));
|
148 |
|
149 |
}
|
150 |
|
151 |
-
|
152 |
-
|
|
|
153 |
*/
|
154 |
function load_edit(){
|
155 |
|
156 |
-
//
|
157 |
if(acf_verify_nonce('acfe-options-edit')){
|
158 |
|
159 |
-
//
|
160 |
if(acf_validate_save_post(true)){
|
161 |
|
162 |
acf_save_post('acfe_options_edit');
|
@@ -164,9 +189,7 @@ class acfe_module_options{
|
|
164 |
$redirect = add_query_arg(array('message' => 'updated'));
|
165 |
|
166 |
if($this->action === 'add'){
|
167 |
-
|
168 |
$redirect = sprintf('?page=%s&message=added', esc_attr($_REQUEST['page']));
|
169 |
-
|
170 |
}
|
171 |
|
172 |
wp_redirect($redirect);
|
@@ -176,10 +199,10 @@ class acfe_module_options{
|
|
176 |
|
177 |
}
|
178 |
|
179 |
-
//
|
180 |
add_action('acf/input/admin_head', array($this, 'add_metaboxes'));
|
181 |
|
182 |
-
//
|
183 |
add_screen_option('layout_columns', array(
|
184 |
'max' => 2,
|
185 |
'default' => 2,
|
@@ -187,8 +210,9 @@ class acfe_module_options{
|
|
187 |
|
188 |
}
|
189 |
|
190 |
-
|
191 |
-
|
|
|
192 |
*/
|
193 |
function load_delete(){
|
194 |
|
@@ -209,8 +233,9 @@ class acfe_module_options{
|
|
209 |
|
210 |
}
|
211 |
|
212 |
-
|
213 |
-
|
|
|
214 |
*/
|
215 |
function load_bulk_delete(){
|
216 |
|
@@ -227,10 +252,7 @@ class acfe_module_options{
|
|
227 |
|
228 |
// loop
|
229 |
foreach($delete_ids as $id){
|
230 |
-
|
231 |
-
// delete
|
232 |
$this->delete_option($id);
|
233 |
-
|
234 |
}
|
235 |
|
236 |
wp_redirect(sprintf('?page=%s&message=bulk-deleted', esc_attr($_REQUEST['page'])));
|
@@ -238,50 +260,56 @@ class acfe_module_options{
|
|
238 |
|
239 |
}
|
240 |
|
241 |
-
|
242 |
-
|
|
|
243 |
*/
|
244 |
function html_list(){
|
245 |
-
|
246 |
acfe_get_view('html-options-list');
|
247 |
-
|
248 |
}
|
249 |
|
250 |
-
|
251 |
-
|
|
|
252 |
*/
|
253 |
function html_edit(){
|
254 |
-
|
255 |
acfe_get_view('html-options-edit');
|
256 |
-
|
257 |
}
|
258 |
|
259 |
-
|
260 |
-
|
|
|
|
|
|
|
261 |
*/
|
262 |
function save_post($post_id){
|
263 |
|
264 |
-
//
|
265 |
-
if($post_id !== 'acfe_options_edit')
|
|
|
|
|
266 |
|
267 |
-
//
|
268 |
$option_name = wp_unslash($_POST['acf']['field_acfe_options_edit_name']);
|
269 |
$option_value = wp_unslash($_POST['acf']['field_acfe_options_edit_value']);
|
270 |
$autoload = $_POST['acf']['field_acfe_options_edit_autoload'];
|
271 |
|
272 |
-
//
|
273 |
$option_value = maybe_unserialize($option_value);
|
274 |
|
275 |
-
//
|
276 |
update_option($option_name, $option_value, $autoload);
|
277 |
|
278 |
-
//
|
279 |
$_POST['acf'] = array();
|
280 |
|
281 |
}
|
282 |
|
283 |
-
|
284 |
-
|
|
|
|
|
|
|
285 |
*/
|
286 |
function delete_option($id){
|
287 |
|
@@ -291,8 +319,9 @@ class acfe_module_options{
|
|
291 |
|
292 |
}
|
293 |
|
294 |
-
|
295 |
-
|
|
|
296 |
*/
|
297 |
function add_metaboxes(){
|
298 |
|
@@ -350,7 +379,7 @@ class acfe_module_options{
|
|
350 |
),
|
351 |
);
|
352 |
|
353 |
-
//
|
354 |
if(is_serialized($option['option_value']) || $option['option_value'] != strip_tags($option['option_value'])){
|
355 |
|
356 |
$type = 'serialized';
|
@@ -388,7 +417,7 @@ class acfe_module_options{
|
|
388 |
|
389 |
}
|
390 |
|
391 |
-
//
|
392 |
elseif(acfe_is_json($option['option_value'])){
|
393 |
|
394 |
$type = 'json';
|
@@ -419,12 +448,13 @@ class acfe_module_options{
|
|
419 |
|
420 |
}
|
421 |
|
422 |
-
//
|
423 |
else{
|
424 |
|
425 |
$type = '';
|
426 |
-
if(!empty($option['option_value']))
|
427 |
$type = '<code style="font-size:11px;float:right; line-height:1.2; margin-top:1px;">string</code>';
|
|
|
428 |
|
429 |
$fields[] = array(
|
430 |
'label' => __('Value', 'acfe') . ' ' . $type,
|
@@ -488,7 +518,7 @@ class acfe_module_options{
|
|
488 |
|
489 |
}
|
490 |
|
491 |
-
//
|
492 |
add_meta_box('submitdiv', $metabox_submit_title, function($post, $args) use($option){
|
493 |
|
494 |
$delete_nonce = wp_create_nonce('acfe_options_delete_option');
|
@@ -517,7 +547,7 @@ class acfe_module_options{
|
|
517 |
<?php
|
518 |
}, 'acf_options_page', 'side', 'high');
|
519 |
|
520 |
-
//
|
521 |
add_meta_box('acf-group_acfe_options_edit', $metabox_main_title, function($post, $args){
|
522 |
|
523 |
// extract args
|
@@ -544,9 +574,7 @@ class acfe_module_options{
|
|
544 |
?>
|
545 |
<script type="text/javascript">
|
546 |
if(typeof acf !== 'undefined'){
|
547 |
-
|
548 |
acf.newPostbox(<?php echo json_encode($o); ?>);
|
549 |
-
|
550 |
}
|
551 |
</script>
|
552 |
<?php
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(!acf_get_setting('acfe/modules/options')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_module_options')):
|
13 |
|
14 |
class acfe_module_options{
|
15 |
|
16 |
+
// vars
|
17 |
var $action = 'list';
|
18 |
|
19 |
+
/**
|
20 |
* Construct
|
21 |
*/
|
22 |
function __construct(){
|
23 |
|
|
|
24 |
acfe_include('includes/modules/options.class.php');
|
25 |
|
26 |
+
add_filter('set-screen-option', array($this, 'set_screen_option'), 10, 3);
|
|
|
27 |
add_action('admin_menu', array($this, 'admin_menu'));
|
28 |
add_action('acf/save_post', array($this, 'save_post'), 5);
|
29 |
|
30 |
}
|
31 |
|
32 |
+
|
33 |
+
/**
|
34 |
+
* set_screen_option
|
35 |
+
*
|
36 |
+
* @param $status
|
37 |
+
* @param $option
|
38 |
+
* @param $value
|
39 |
+
*
|
40 |
+
* @return mixed
|
41 |
+
*/
|
42 |
+
function set_screen_option($status, $option, $value){
|
43 |
|
44 |
+
if($option === 'options_per_page'){
|
45 |
+
return $value;
|
46 |
+
}
|
47 |
|
48 |
+
return $status;
|
49 |
|
50 |
}
|
51 |
|
52 |
+
|
53 |
+
/**
|
54 |
+
* admin_menu
|
55 |
*/
|
56 |
function admin_menu(){
|
57 |
|
58 |
+
if(acf_get_setting('show_admin')){
|
59 |
+
|
60 |
+
$page = add_submenu_page('options-general.php', __('Options', 'acfe'), __('Options', 'acfe'), acf_get_setting('capability'), 'acfe-options', array($this, 'admin_html'));
|
61 |
|
62 |
+
add_action("load-{$page}", array($this, 'admin_load'));
|
63 |
+
|
64 |
+
}
|
65 |
|
66 |
}
|
67 |
|
68 |
+
|
69 |
+
/**
|
70 |
+
* admin_load
|
71 |
*/
|
72 |
function admin_load(){
|
73 |
|
74 |
+
// messages
|
75 |
if($message = acf_maybe_get_GET('message')){
|
76 |
|
77 |
+
switch($message){
|
|
|
|
|
|
|
|
|
78 |
|
79 |
+
case 'deleted': {
|
80 |
+
acf_add_admin_notice(__('Option has been deleted', 'acfe'), 'success');
|
81 |
+
break;
|
82 |
+
}
|
83 |
+
|
84 |
+
case 'bulk-deleted': {
|
85 |
+
acf_add_admin_notice(__('Options have been deleted', 'acfe'), 'success');
|
86 |
+
break;
|
87 |
+
}
|
88 |
|
89 |
+
case 'updated': {
|
90 |
+
acf_add_admin_notice(__('Option has been updated', 'acfe'), 'success');
|
91 |
+
break;
|
92 |
+
}
|
93 |
|
94 |
+
case 'added': {
|
95 |
+
acf_add_admin_notice(__('Option has been added', 'acfe'), 'success');
|
96 |
+
break;
|
97 |
+
}
|
98 |
+
|
99 |
}
|
100 |
|
101 |
}
|
105 |
|
106 |
// edit or delete
|
107 |
if(acfe_maybe_get_REQUEST('action', '-1') !== '-1'){
|
|
|
108 |
$this->action = $_REQUEST['action'];
|
109 |
|
110 |
// bulk-delete
|
111 |
}elseif(acfe_maybe_get_REQUEST('action2', '-1') !== '-1'){
|
|
|
112 |
$this->action = $_REQUEST['action2'];
|
|
|
113 |
}
|
114 |
|
115 |
+
// load
|
116 |
+
switch($this->action){
|
117 |
|
118 |
+
case 'list': {
|
119 |
+
$this->load_list();
|
120 |
+
break;
|
121 |
+
}
|
122 |
|
123 |
+
case 'edit':
|
124 |
+
case 'add': {
|
125 |
+
$this->load_edit();
|
126 |
+
break;
|
127 |
+
}
|
128 |
|
129 |
+
case 'delete': {
|
130 |
+
$this->load_delete();
|
131 |
+
break;
|
132 |
+
}
|
133 |
|
134 |
+
case 'bulk-delete': {
|
135 |
+
$this->load_bulk_delete();
|
136 |
+
break;
|
137 |
+
}
|
138 |
|
139 |
}
|
140 |
|
141 |
+
// enqueue
|
142 |
acf_enqueue_scripts();
|
143 |
|
144 |
}
|
145 |
|
146 |
+
|
147 |
+
/**
|
148 |
+
* admin_html
|
149 |
*/
|
150 |
function admin_html(){
|
151 |
|
152 |
if($this->action === 'list'){
|
|
|
153 |
$this->html_list();
|
154 |
|
155 |
}elseif($this->action === 'edit' || $this->action === 'add'){
|
|
|
156 |
$this->html_edit();
|
|
|
157 |
}
|
158 |
|
159 |
}
|
160 |
|
161 |
+
|
162 |
+
/**
|
163 |
+
* load_list
|
164 |
*/
|
165 |
function load_list(){
|
166 |
|
167 |
add_screen_option('per_page', array(
|
168 |
+
'label' => 'Options',
|
169 |
+
'default' => 100,
|
170 |
+
'option' => 'options_per_page'
|
171 |
));
|
172 |
|
173 |
}
|
174 |
|
175 |
+
|
176 |
+
/**
|
177 |
+
* load_edit
|
178 |
*/
|
179 |
function load_edit(){
|
180 |
|
181 |
+
// nonce
|
182 |
if(acf_verify_nonce('acfe-options-edit')){
|
183 |
|
184 |
+
// save data
|
185 |
if(acf_validate_save_post(true)){
|
186 |
|
187 |
acf_save_post('acfe_options_edit');
|
189 |
$redirect = add_query_arg(array('message' => 'updated'));
|
190 |
|
191 |
if($this->action === 'add'){
|
|
|
192 |
$redirect = sprintf('?page=%s&message=added', esc_attr($_REQUEST['page']));
|
|
|
193 |
}
|
194 |
|
195 |
wp_redirect($redirect);
|
199 |
|
200 |
}
|
201 |
|
202 |
+
// actions
|
203 |
add_action('acf/input/admin_head', array($this, 'add_metaboxes'));
|
204 |
|
205 |
+
// add columns support
|
206 |
add_screen_option('layout_columns', array(
|
207 |
'max' => 2,
|
208 |
'default' => 2,
|
210 |
|
211 |
}
|
212 |
|
213 |
+
|
214 |
+
/**
|
215 |
+
* load_delete
|
216 |
*/
|
217 |
function load_delete(){
|
218 |
|
233 |
|
234 |
}
|
235 |
|
236 |
+
|
237 |
+
/**
|
238 |
+
* load_bulk_delete
|
239 |
*/
|
240 |
function load_bulk_delete(){
|
241 |
|
252 |
|
253 |
// loop
|
254 |
foreach($delete_ids as $id){
|
|
|
|
|
255 |
$this->delete_option($id);
|
|
|
256 |
}
|
257 |
|
258 |
wp_redirect(sprintf('?page=%s&message=bulk-deleted', esc_attr($_REQUEST['page'])));
|
260 |
|
261 |
}
|
262 |
|
263 |
+
|
264 |
+
/**
|
265 |
+
* html_list
|
266 |
*/
|
267 |
function html_list(){
|
|
|
268 |
acfe_get_view('html-options-list');
|
|
|
269 |
}
|
270 |
|
271 |
+
|
272 |
+
/**
|
273 |
+
* html_edit
|
274 |
*/
|
275 |
function html_edit(){
|
|
|
276 |
acfe_get_view('html-options-edit');
|
|
|
277 |
}
|
278 |
|
279 |
+
|
280 |
+
/**
|
281 |
+
* save_post
|
282 |
+
*
|
283 |
+
* @param $post_id
|
284 |
*/
|
285 |
function save_post($post_id){
|
286 |
|
287 |
+
// validate
|
288 |
+
if($post_id !== 'acfe_options_edit'){
|
289 |
+
return;
|
290 |
+
}
|
291 |
|
292 |
+
// vars
|
293 |
$option_name = wp_unslash($_POST['acf']['field_acfe_options_edit_name']);
|
294 |
$option_value = wp_unslash($_POST['acf']['field_acfe_options_edit_value']);
|
295 |
$autoload = $_POST['acf']['field_acfe_options_edit_autoload'];
|
296 |
|
297 |
+
// value serialized?
|
298 |
$option_value = maybe_unserialize($option_value);
|
299 |
|
300 |
+
// update
|
301 |
update_option($option_name, $option_value, $autoload);
|
302 |
|
303 |
+
// flush acf
|
304 |
$_POST['acf'] = array();
|
305 |
|
306 |
}
|
307 |
|
308 |
+
|
309 |
+
/**
|
310 |
+
* delete_option
|
311 |
+
*
|
312 |
+
* @param $id
|
313 |
*/
|
314 |
function delete_option($id){
|
315 |
|
319 |
|
320 |
}
|
321 |
|
322 |
+
|
323 |
+
/**
|
324 |
+
* add_metaboxes
|
325 |
*/
|
326 |
function add_metaboxes(){
|
327 |
|
379 |
),
|
380 |
);
|
381 |
|
382 |
+
// serialized || html
|
383 |
if(is_serialized($option['option_value']) || $option['option_value'] != strip_tags($option['option_value'])){
|
384 |
|
385 |
$type = 'serialized';
|
417 |
|
418 |
}
|
419 |
|
420 |
+
// json
|
421 |
elseif(acfe_is_json($option['option_value'])){
|
422 |
|
423 |
$type = 'json';
|
448 |
|
449 |
}
|
450 |
|
451 |
+
// string
|
452 |
else{
|
453 |
|
454 |
$type = '';
|
455 |
+
if(!empty($option['option_value'])){
|
456 |
$type = '<code style="font-size:11px;float:right; line-height:1.2; margin-top:1px;">string</code>';
|
457 |
+
}
|
458 |
|
459 |
$fields[] = array(
|
460 |
'label' => __('Value', 'acfe') . ' ' . $type,
|
518 |
|
519 |
}
|
520 |
|
521 |
+
// submit Metabox
|
522 |
add_meta_box('submitdiv', $metabox_submit_title, function($post, $args) use($option){
|
523 |
|
524 |
$delete_nonce = wp_create_nonce('acfe_options_delete_option');
|
547 |
<?php
|
548 |
}, 'acf_options_page', 'side', 'high');
|
549 |
|
550 |
+
// main metabox
|
551 |
add_meta_box('acf-group_acfe_options_edit', $metabox_main_title, function($post, $args){
|
552 |
|
553 |
// extract args
|
574 |
?>
|
575 |
<script type="text/javascript">
|
576 |
if(typeof acf !== 'undefined'){
|
|
|
577 |
acf.newPostbox(<?php echo json_encode($o); ?>);
|
|
|
578 |
}
|
579 |
</script>
|
580 |
<?php
|
includes/modules/single-meta.php
CHANGED
@@ -11,142 +11,167 @@ if(!class_exists('acfe_single_meta')):
|
|
11 |
|
12 |
class acfe_single_meta{
|
13 |
|
|
|
14 |
public $restricted = array();
|
15 |
public $post_types = array();
|
16 |
public $taxonomies = array();
|
17 |
public $users = array();
|
18 |
public $options = array();
|
19 |
|
|
|
|
|
|
|
20 |
function __construct(){
|
21 |
|
22 |
-
//
|
23 |
$this->restricted = acfe_get_setting('reserved_post_types', array());
|
24 |
$this->post_types = apply_filters('acfe/modules/single_meta/post_types', array());
|
25 |
$this->taxonomies = apply_filters('acfe/modules/single_meta/taxonomies', array());
|
26 |
$this->users = apply_filters('acfe/modules/single_meta/users', false);
|
27 |
$this->options = apply_filters('acfe/modules/single_meta/options', false);
|
28 |
|
29 |
-
//
|
30 |
add_filter('acf/pre_load_meta', array($this, 'acf_get_meta'), 999, 2);
|
31 |
add_filter('acf/pre_load_metadata', array($this, 'acf_get_metadata'), 999, 4);
|
32 |
add_filter('acf/pre_update_metadata', array($this, 'acf_update_metadata'), 999, 5);
|
33 |
add_filter('acf/pre_delete_metadata', array($this, 'acf_delete_metadata'), 999, 4);
|
34 |
add_filter('acf/update_value', array($this, 'acf_update_value'), 999, 3);
|
35 |
|
36 |
-
//
|
37 |
add_action('acf/save_post', array($this, 'pre_save_post'), 1);
|
38 |
add_action('acf/save_post', array($this, 'save_post'), 999);
|
39 |
|
40 |
-
//
|
41 |
add_action('acf/render_field_settings', array($this, 'render_field_settings'));
|
42 |
|
43 |
-
//
|
44 |
add_filter('acf/pre_update_metadata', array($this, 'revision_pre_update'), 10, 5);
|
45 |
add_filter('_wp_post_revision_fields', array($this, 'revision_fields'), 10, 2);
|
46 |
|
47 |
-
//
|
48 |
if(acf_get_setting('acfe/modules/single_meta')){
|
49 |
-
|
50 |
-
// Enable filter
|
51 |
acf_enable_filter('acfe/single_meta');
|
52 |
-
|
53 |
}
|
54 |
|
55 |
|
56 |
}
|
57 |
|
58 |
-
|
59 |
-
|
60 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
*/
|
62 |
function acf_get_meta($return, $post_id){
|
63 |
|
64 |
-
//
|
65 |
-
if(!$this->is_enabled($post_id))
|
|
|
|
|
66 |
|
67 |
-
//
|
68 |
$store = $this->get_store($post_id);
|
69 |
$acf = $store->get("$post_id:acf");
|
70 |
|
71 |
-
//
|
72 |
return $acf;
|
73 |
|
74 |
}
|
75 |
|
76 |
-
|
77 |
-
|
78 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
*/
|
80 |
function acf_get_metadata($return, $post_id, $name, $hidden){
|
81 |
|
82 |
-
//
|
83 |
-
if($name === 'acf' || !$this->is_enabled($post_id))
|
|
|
|
|
84 |
|
85 |
-
//
|
86 |
$store = $this->get_store($post_id);
|
87 |
$acf = $store->get("$post_id:acf");
|
88 |
|
89 |
-
//
|
90 |
if(empty($acf)) return $return;
|
91 |
|
92 |
-
//
|
93 |
if(acf_is_filter_enabled('acfe/single_meta/unslash')){
|
94 |
-
|
95 |
$acf = wp_unslash($acf);
|
96 |
-
|
97 |
}
|
98 |
|
99 |
-
//
|
100 |
$prefix = $hidden ? '_' : '';
|
101 |
|
|
|
102 |
if(isset($acf["{$prefix}{$name}"])){
|
103 |
-
|
104 |
-
// Value
|
105 |
$return = $acf["{$prefix}{$name}"];
|
106 |
-
|
107 |
}
|
108 |
|
109 |
return $return;
|
110 |
|
111 |
}
|
112 |
|
113 |
-
|
114 |
-
|
115 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
*/
|
117 |
function acf_update_metadata($return, $post_id, $name, $value, $hidden){
|
118 |
|
119 |
-
//
|
120 |
-
if($name === 'acf' || !$this->is_enabled($post_id))
|
|
|
|
|
121 |
|
122 |
-
//
|
123 |
$store = $this->get_store($post_id);
|
124 |
$acf = $store->get("$post_id:acf");
|
125 |
|
126 |
-
//
|
127 |
$prefix = $hidden ? '_' : '';
|
128 |
|
129 |
-
//
|
130 |
$acf["{$prefix}{$name}"] = $value;
|
131 |
|
132 |
-
//
|
133 |
$store->set("$post_id:acf", $acf);
|
134 |
|
135 |
-
//
|
136 |
acf_enable_filter('acfe/single_meta/unslash');
|
137 |
|
138 |
-
//
|
139 |
if(!acf_is_filter_enabled("acfe/single_meta/compile/{$post_id}")){
|
140 |
-
|
141 |
$this->update_meta($acf, $post_id);
|
142 |
-
|
143 |
}
|
144 |
|
145 |
-
//
|
146 |
if(acf_is_filter_enabled('acfe/single_meta/normal_save')){
|
147 |
-
|
148 |
return null;
|
149 |
-
|
150 |
}
|
151 |
|
152 |
// Do not save normal meta
|
@@ -154,52 +179,70 @@ class acfe_single_meta{
|
|
154 |
|
155 |
}
|
156 |
|
157 |
-
|
158 |
-
|
159 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
*/
|
161 |
function acf_delete_metadata($return, $post_id, $name, $hidden){
|
162 |
|
163 |
-
//
|
164 |
-
if($name === 'acf' || !$this->is_enabled($post_id))
|
|
|
|
|
165 |
|
166 |
-
//
|
167 |
$store = $this->get_store($post_id);
|
168 |
$acf = $store->get("$post_id:acf");
|
169 |
|
170 |
-
//
|
171 |
if(empty($acf)) return $return;
|
172 |
|
173 |
-
//
|
174 |
$prefix = $hidden ? '_' : '';
|
175 |
|
176 |
if(isset($acf["{$prefix}{$name}"])){
|
177 |
|
178 |
-
//
|
179 |
unset($acf["{$prefix}{$name}"]);
|
180 |
|
181 |
-
//
|
182 |
$store->set("$post_id:acf", $acf);
|
183 |
-
|
|
|
184 |
$this->update_meta($acf, $post_id);
|
185 |
|
186 |
}
|
187 |
|
188 |
// delete acf meta if empty
|
189 |
if(empty($acf)){
|
190 |
-
|
191 |
$this->delete_meta($post_id);
|
192 |
-
|
193 |
}
|
194 |
|
195 |
-
//
|
196 |
return true;
|
197 |
|
198 |
}
|
199 |
|
200 |
-
|
201 |
-
|
202 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
*/
|
204 |
function acf_update_value($value, $post_id, $field){
|
205 |
|
@@ -215,50 +258,70 @@ class acfe_single_meta{
|
|
215 |
|
216 |
}
|
217 |
|
218 |
-
|
219 |
-
|
220 |
-
*
|
|
|
|
|
|
|
|
|
221 |
*/
|
222 |
function pre_save_post($post_id = 0){
|
223 |
|
224 |
-
//
|
225 |
-
if(!$this->is_enabled($post_id))
|
|
|
|
|
226 |
|
227 |
-
//
|
228 |
acf_enable_filter("acfe/single_meta/compile/{$post_id}");
|
229 |
|
230 |
}
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
*
|
|
|
|
|
|
|
|
|
235 |
*/
|
236 |
function save_post($post_id = 0){
|
237 |
|
238 |
-
//
|
239 |
-
if(!acf_is_filter_enabled("acfe/single_meta/compile/{$post_id}"))
|
|
|
|
|
240 |
|
241 |
-
//
|
242 |
$store = $this->get_store($post_id);
|
243 |
$acf = $store->get("$post_id:acf");
|
244 |
|
245 |
-
//
|
246 |
$this->update_meta($acf, $post_id);
|
247 |
|
248 |
}
|
249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
function get_store($post_id){
|
251 |
|
252 |
-
//
|
253 |
$store = acf_get_store('acfe/meta');
|
254 |
|
255 |
-
//
|
256 |
if(!$store->has("$post_id:acf")){
|
257 |
|
258 |
-
//
|
259 |
$acf = $this->get_meta($post_id);
|
260 |
|
261 |
-
//
|
262 |
$store->set("$post_id:acf", $acf);
|
263 |
|
264 |
}
|
@@ -267,6 +330,14 @@ class acfe_single_meta{
|
|
267 |
|
268 |
}
|
269 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
function get_meta($post_id){
|
271 |
|
272 |
/**
|
@@ -275,22 +346,28 @@ class acfe_single_meta{
|
|
275 |
*/
|
276 |
extract(acf_decode_post_id($post_id));
|
277 |
|
278 |
-
//
|
279 |
if($type === 'option'){
|
280 |
-
|
281 |
$value = get_option($id, null);
|
282 |
|
283 |
-
//
|
284 |
}else{
|
285 |
-
|
286 |
$value = acf_get_metadata($post_id, 'acf');
|
287 |
-
|
288 |
}
|
289 |
|
290 |
return $value;
|
291 |
|
292 |
}
|
293 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
function update_meta($value, $post_id){
|
295 |
|
296 |
/**
|
@@ -299,23 +376,29 @@ class acfe_single_meta{
|
|
299 |
*/
|
300 |
extract(acf_decode_post_id($post_id));
|
301 |
|
302 |
-
//
|
303 |
if($type === 'option'){
|
304 |
-
|
305 |
$value = wp_unslash($value);
|
306 |
$autoload = (bool) acf_get_setting('autoload');
|
307 |
|
308 |
return update_option($id, $value, $autoload);
|
309 |
|
310 |
-
//
|
311 |
}else{
|
312 |
-
|
313 |
return acf_update_metadata($post_id, 'acf', $value);
|
314 |
-
|
315 |
}
|
316 |
|
317 |
}
|
318 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
function delete_meta($post_id){
|
320 |
|
321 |
/**
|
@@ -324,36 +407,40 @@ class acfe_single_meta{
|
|
324 |
*/
|
325 |
extract(acf_decode_post_id($post_id));
|
326 |
|
327 |
-
//
|
328 |
if($type === 'option'){
|
329 |
-
|
330 |
return delete_option($id);
|
331 |
|
332 |
-
//
|
333 |
}else{
|
334 |
-
|
335 |
return delete_metadata($type, $id, 'acf');
|
336 |
-
|
337 |
}
|
338 |
|
339 |
}
|
340 |
|
341 |
-
|
342 |
-
|
|
|
|
|
|
|
343 |
*/
|
344 |
function render_field_settings($field){
|
345 |
|
346 |
-
//
|
347 |
// cannot use acf_is_enable_filter() because ACF disable filters in Field Group UI
|
348 |
-
if(!acf_get_setting('acfe/modules/single_meta'))
|
|
|
|
|
349 |
|
350 |
-
//
|
351 |
$exclude = array('acfe_button', 'acfe_column', 'acfe_recaptcha', 'acfe_dynamic_render', 'accordion', 'message', 'tab');
|
352 |
|
353 |
-
//
|
354 |
-
if(in_array($field['type'], $exclude))
|
|
|
|
|
355 |
|
356 |
-
//
|
357 |
acf_render_field_setting($field, array(
|
358 |
'label' => __('Save as individual meta'),
|
359 |
'key' => 'acfe_save_meta',
|
@@ -376,13 +463,24 @@ class acfe_single_meta{
|
|
376 |
|
377 |
}
|
378 |
|
379 |
-
|
380 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
381 |
*/
|
382 |
function revision_pre_update($null, $revision_id, $name, $value, $hidden){
|
383 |
|
384 |
-
//
|
385 |
-
if($name !== 'acf' || !$this->is_enabled() || !wp_is_post_revision($revision_id))
|
|
|
|
|
386 |
|
387 |
// get parent post id (original post)
|
388 |
$post_id = wp_get_post_parent_id($revision_id);
|
@@ -390,16 +488,16 @@ class acfe_single_meta{
|
|
390 |
// check parent post has single meta
|
391 |
if(!$this->is_enabled($post_id)) return $null;
|
392 |
|
393 |
-
//
|
394 |
acf_enable_filter("acfe/single_meta/compile/{$revision_id}");
|
395 |
|
396 |
// get parent post id values when not in preview
|
397 |
if(acf_maybe_get_POST('wp-preview') !== 'dopreview'){
|
398 |
|
399 |
-
//
|
400 |
$value = acf_get_metadata($post_id, 'acf');
|
401 |
|
402 |
-
//
|
403 |
$value = wp_unslash($value);
|
404 |
|
405 |
}
|
@@ -412,16 +510,22 @@ class acfe_single_meta{
|
|
412 |
|
413 |
$prefix = $hidden ? '_' : '';
|
414 |
|
415 |
-
//
|
416 |
update_metadata($type, $id, "{$prefix}{$name}", $value);
|
417 |
|
418 |
-
//
|
419 |
return true;
|
420 |
|
421 |
}
|
422 |
|
423 |
-
|
424 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
425 |
*/
|
426 |
function revision_fields($fields, $post = null){
|
427 |
|
@@ -429,10 +533,11 @@ class acfe_single_meta{
|
|
429 |
if(acf_is_screen('revision') || acf_is_ajax('get-revision-diffs')){
|
430 |
|
431 |
// bail early if is restoring
|
432 |
-
if(acf_maybe_get_GET('action') === 'restore')
|
433 |
-
|
434 |
-
|
435 |
|
|
|
436 |
}else{
|
437 |
|
438 |
// bail early (most likely saving a post)
|
@@ -452,7 +557,9 @@ class acfe_single_meta{
|
|
452 |
}
|
453 |
|
454 |
// check post has single meta
|
455 |
-
if(!$this->is_enabled($post_id))
|
|
|
|
|
456 |
|
457 |
// get all postmeta
|
458 |
$meta = get_post_meta($post_id);
|
@@ -472,8 +579,18 @@ class acfe_single_meta{
|
|
472 |
|
473 |
}
|
474 |
|
475 |
-
|
476 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
477 |
*/
|
478 |
function revision_field($value, $field_name, $post = null, $direction = false){
|
479 |
|
@@ -495,6 +612,14 @@ class acfe_single_meta{
|
|
495 |
|
496 |
}
|
497 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
function is_enabled($post_id = null){
|
499 |
|
500 |
// check filter
|
@@ -510,10 +635,20 @@ class acfe_single_meta{
|
|
510 |
|
511 |
}
|
512 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
513 |
function validate_post_id($post_id){
|
514 |
|
515 |
// do not process local post id
|
516 |
-
if(acfe_is_local_post_id($post_id))
|
|
|
|
|
517 |
|
518 |
/**
|
519 |
* @var $type
|
@@ -521,59 +656,75 @@ class acfe_single_meta{
|
|
521 |
*/
|
522 |
extract(acf_decode_post_id($post_id));
|
523 |
|
524 |
-
//
|
525 |
if(!$id) return false;
|
526 |
|
527 |
-
//
|
528 |
if($type === 'post'){
|
529 |
|
530 |
// no post types allowed
|
531 |
-
if($this->post_types === false)
|
|
|
|
|
532 |
|
533 |
$post_type = get_post_type($id);
|
534 |
|
535 |
// reserved post type
|
536 |
-
if(in_array($post_type, $this->restricted))
|
|
|
|
|
537 |
|
538 |
// post type not allowed
|
539 |
-
if(!empty($this->post_types) && !in_array($post_type, $this->post_types))
|
|
|
|
|
540 |
|
541 |
return true;
|
542 |
|
543 |
}
|
544 |
|
545 |
-
//
|
546 |
elseif($type === 'term'){
|
547 |
|
548 |
// no taxonomies allowed
|
549 |
-
if($this->taxonomies === false)
|
|
|
|
|
550 |
|
551 |
// get term
|
552 |
$term = get_term($id);
|
553 |
|
554 |
// term not found
|
555 |
-
if(!is_a($term, 'WP_Term'))
|
|
|
|
|
556 |
|
557 |
$taxonomy = $term->taxonomy;
|
558 |
|
559 |
// taxonomy not allowed
|
560 |
-
if(!empty($this->taxonomies) && !in_array($taxonomy, $this->taxonomies))
|
|
|
|
|
561 |
|
562 |
return true;
|
563 |
|
564 |
}
|
565 |
|
566 |
-
//
|
567 |
elseif($type === 'user'){
|
568 |
|
569 |
// no users allowed
|
570 |
-
if($this->users === false)
|
|
|
|
|
571 |
|
572 |
// get user
|
573 |
$user = get_userdata($id);
|
574 |
|
575 |
// user not found
|
576 |
-
if(!is_a($user, 'WP_User'))
|
|
|
|
|
577 |
|
578 |
// get roles
|
579 |
$roles = acf_get_array($user->roles);
|
@@ -586,10 +737,8 @@ class acfe_single_meta{
|
|
586 |
foreach($roles as $role){
|
587 |
|
588 |
if(in_array($role, $this->users)){
|
589 |
-
|
590 |
$allowed = true;
|
591 |
break;
|
592 |
-
|
593 |
}
|
594 |
|
595 |
}
|
@@ -604,14 +753,18 @@ class acfe_single_meta{
|
|
604 |
|
605 |
}
|
606 |
|
607 |
-
//
|
608 |
elseif($type === 'option'){
|
609 |
|
610 |
// no options allowed
|
611 |
-
if($this->options === false)
|
|
|
|
|
612 |
|
613 |
// option not allowed
|
614 |
-
if(!empty($this->options) && !in_array($id, $this->options))
|
|
|
|
|
615 |
|
616 |
return true;
|
617 |
|
@@ -627,28 +780,50 @@ acf_new_instance('acfe_single_meta');
|
|
627 |
|
628 |
endif;
|
629 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
630 |
function acfe_is_single_meta_enabled($post_id = null){
|
631 |
-
|
632 |
-
$enabled = acf_get_instance('acfe_single_meta')->is_enabled($post_id);
|
633 |
-
|
634 |
-
return $enabled;
|
635 |
-
|
636 |
}
|
637 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
638 |
function acfe_single_meta_validate_post_id($post_id){
|
639 |
-
|
640 |
return acf_get_instance('acfe_single_meta')->validate_post_id($post_id);
|
641 |
-
|
642 |
}
|
643 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
644 |
function acfe_get_single_meta($post_id){
|
645 |
-
|
646 |
return acf_get_instance('acfe_single_meta')->get_meta($post_id);
|
647 |
-
|
648 |
}
|
649 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
650 |
function acfe_delete_single_meta($post_id){
|
651 |
-
|
652 |
return acf_get_instance('acfe_single_meta')->delete_meta($post_id);
|
653 |
-
|
654 |
}
|
11 |
|
12 |
class acfe_single_meta{
|
13 |
|
14 |
+
// vars
|
15 |
public $restricted = array();
|
16 |
public $post_types = array();
|
17 |
public $taxonomies = array();
|
18 |
public $users = array();
|
19 |
public $options = array();
|
20 |
|
21 |
+
/**
|
22 |
+
* construct
|
23 |
+
*/
|
24 |
function __construct(){
|
25 |
|
26 |
+
// vars
|
27 |
$this->restricted = acfe_get_setting('reserved_post_types', array());
|
28 |
$this->post_types = apply_filters('acfe/modules/single_meta/post_types', array());
|
29 |
$this->taxonomies = apply_filters('acfe/modules/single_meta/taxonomies', array());
|
30 |
$this->users = apply_filters('acfe/modules/single_meta/users', false);
|
31 |
$this->options = apply_filters('acfe/modules/single_meta/options', false);
|
32 |
|
33 |
+
// values
|
34 |
add_filter('acf/pre_load_meta', array($this, 'acf_get_meta'), 999, 2);
|
35 |
add_filter('acf/pre_load_metadata', array($this, 'acf_get_metadata'), 999, 4);
|
36 |
add_filter('acf/pre_update_metadata', array($this, 'acf_update_metadata'), 999, 5);
|
37 |
add_filter('acf/pre_delete_metadata', array($this, 'acf_delete_metadata'), 999, 4);
|
38 |
add_filter('acf/update_value', array($this, 'acf_update_value'), 999, 3);
|
39 |
|
40 |
+
// save post
|
41 |
add_action('acf/save_post', array($this, 'pre_save_post'), 1);
|
42 |
add_action('acf/save_post', array($this, 'save_post'), 999);
|
43 |
|
44 |
+
// field settings
|
45 |
add_action('acf/render_field_settings', array($this, 'render_field_settings'));
|
46 |
|
47 |
+
// revisions
|
48 |
add_filter('acf/pre_update_metadata', array($this, 'revision_pre_update'), 10, 5);
|
49 |
add_filter('_wp_post_revision_fields', array($this, 'revision_fields'), 10, 2);
|
50 |
|
51 |
+
// check setting
|
52 |
if(acf_get_setting('acfe/modules/single_meta')){
|
|
|
|
|
53 |
acf_enable_filter('acfe/single_meta');
|
|
|
54 |
}
|
55 |
|
56 |
|
57 |
}
|
58 |
|
59 |
+
|
60 |
+
/**
|
61 |
+
* acf_get_meta
|
62 |
+
*
|
63 |
+
* @param $return
|
64 |
+
* @param $post_id
|
65 |
+
*
|
66 |
+
* @function acf_get_meta()
|
67 |
+
*
|
68 |
+
* @return array|mixed|null
|
69 |
*/
|
70 |
function acf_get_meta($return, $post_id){
|
71 |
|
72 |
+
// bail early if filter disabled
|
73 |
+
if(!$this->is_enabled($post_id)){
|
74 |
+
return $return;
|
75 |
+
}
|
76 |
|
77 |
+
// get store
|
78 |
$store = $this->get_store($post_id);
|
79 |
$acf = $store->get("$post_id:acf");
|
80 |
|
81 |
+
// return store data
|
82 |
return $acf;
|
83 |
|
84 |
}
|
85 |
|
86 |
+
|
87 |
+
/**
|
88 |
+
* acf_get_metadata
|
89 |
+
*
|
90 |
+
* @param $return
|
91 |
+
* @param $post_id
|
92 |
+
* @param $name
|
93 |
+
* @param $hidden
|
94 |
+
*
|
95 |
+
* @function acf_get_metadata()
|
96 |
+
*
|
97 |
+
* @return mixed
|
98 |
*/
|
99 |
function acf_get_metadata($return, $post_id, $name, $hidden){
|
100 |
|
101 |
+
// bail early if acf meta or disabled filter
|
102 |
+
if($name === 'acf' || !$this->is_enabled($post_id)){
|
103 |
+
return $return;
|
104 |
+
}
|
105 |
|
106 |
+
// get store
|
107 |
$store = $this->get_store($post_id);
|
108 |
$acf = $store->get("$post_id:acf");
|
109 |
|
110 |
+
// bail early if empty
|
111 |
if(empty($acf)) return $return;
|
112 |
|
113 |
+
// unslash values if needed
|
114 |
if(acf_is_filter_enabled('acfe/single_meta/unslash')){
|
|
|
115 |
$acf = wp_unslash($acf);
|
|
|
116 |
}
|
117 |
|
118 |
+
// prefix
|
119 |
$prefix = $hidden ? '_' : '';
|
120 |
|
121 |
+
// value
|
122 |
if(isset($acf["{$prefix}{$name}"])){
|
|
|
|
|
123 |
$return = $acf["{$prefix}{$name}"];
|
|
|
124 |
}
|
125 |
|
126 |
return $return;
|
127 |
|
128 |
}
|
129 |
|
130 |
+
|
131 |
+
/**
|
132 |
+
* acf_update_metadata
|
133 |
+
*
|
134 |
+
* @param $return
|
135 |
+
* @param $post_id
|
136 |
+
* @param $name
|
137 |
+
* @param $value
|
138 |
+
* @param $hidden
|
139 |
+
*
|
140 |
+
* @function acf_update_metadata()
|
141 |
+
*
|
142 |
+
* @return bool|mixed|null
|
143 |
*/
|
144 |
function acf_update_metadata($return, $post_id, $name, $value, $hidden){
|
145 |
|
146 |
+
// bail early if acf meta
|
147 |
+
if($name === 'acf' || !$this->is_enabled($post_id)){
|
148 |
+
return $return;
|
149 |
+
}
|
150 |
|
151 |
+
// get store
|
152 |
$store = $this->get_store($post_id);
|
153 |
$acf = $store->get("$post_id:acf");
|
154 |
|
155 |
+
// prefix
|
156 |
$prefix = $hidden ? '_' : '';
|
157 |
|
158 |
+
// value
|
159 |
$acf["{$prefix}{$name}"] = $value;
|
160 |
|
161 |
+
// update store
|
162 |
$store->set("$post_id:acf", $acf);
|
163 |
|
164 |
+
// unlash for preload on same page as update
|
165 |
acf_enable_filter('acfe/single_meta/unslash');
|
166 |
|
167 |
+
// update if not compiling (when using update_field() for example)
|
168 |
if(!acf_is_filter_enabled("acfe/single_meta/compile/{$post_id}")){
|
|
|
169 |
$this->update_meta($acf, $post_id);
|
|
|
170 |
}
|
171 |
|
172 |
+
// save as individual meta
|
173 |
if(acf_is_filter_enabled('acfe/single_meta/normal_save')){
|
|
|
174 |
return null;
|
|
|
175 |
}
|
176 |
|
177 |
// Do not save normal meta
|
179 |
|
180 |
}
|
181 |
|
182 |
+
|
183 |
+
/**
|
184 |
+
* acf_delete_metadata
|
185 |
+
*
|
186 |
+
* @param $return
|
187 |
+
* @param $post_id
|
188 |
+
* @param $name
|
189 |
+
* @param $hidden
|
190 |
+
*
|
191 |
+
* @function acf_delete_metadata()
|
192 |
+
*
|
193 |
+
* @return bool|mixed
|
194 |
*/
|
195 |
function acf_delete_metadata($return, $post_id, $name, $hidden){
|
196 |
|
197 |
+
// bail early if acf meta or native delete
|
198 |
+
if($name === 'acf' || !$this->is_enabled($post_id)){
|
199 |
+
return $return;
|
200 |
+
}
|
201 |
|
202 |
+
// get store
|
203 |
$store = $this->get_store($post_id);
|
204 |
$acf = $store->get("$post_id:acf");
|
205 |
|
206 |
+
// bail early if empty
|
207 |
if(empty($acf)) return $return;
|
208 |
|
209 |
+
// prefix
|
210 |
$prefix = $hidden ? '_' : '';
|
211 |
|
212 |
if(isset($acf["{$prefix}{$name}"])){
|
213 |
|
214 |
+
// value
|
215 |
unset($acf["{$prefix}{$name}"]);
|
216 |
|
217 |
+
// update store
|
218 |
$store->set("$post_id:acf", $acf);
|
219 |
+
|
220 |
+
// update meta
|
221 |
$this->update_meta($acf, $post_id);
|
222 |
|
223 |
}
|
224 |
|
225 |
// delete acf meta if empty
|
226 |
if(empty($acf)){
|
|
|
227 |
$this->delete_meta($post_id);
|
|
|
228 |
}
|
229 |
|
230 |
+
// do not delete normal meta
|
231 |
return true;
|
232 |
|
233 |
}
|
234 |
|
235 |
+
|
236 |
+
/**
|
237 |
+
* acf_update_value
|
238 |
+
*
|
239 |
+
* @param $value
|
240 |
+
* @param $post_id
|
241 |
+
* @param $field
|
242 |
+
*
|
243 |
+
* @function acf_update_value()
|
244 |
+
*
|
245 |
+
* @return mixed
|
246 |
*/
|
247 |
function acf_update_value($value, $post_id, $field){
|
248 |
|
258 |
|
259 |
}
|
260 |
|
261 |
+
|
262 |
+
/**
|
263 |
+
* pre_save_post
|
264 |
+
*
|
265 |
+
* @param $post_id
|
266 |
+
*
|
267 |
+
* @hook acf/save_post:0
|
268 |
*/
|
269 |
function pre_save_post($post_id = 0){
|
270 |
|
271 |
+
// validate post id
|
272 |
+
if(!$this->is_enabled($post_id)){
|
273 |
+
return;
|
274 |
+
}
|
275 |
|
276 |
+
// enable compile
|
277 |
acf_enable_filter("acfe/single_meta/compile/{$post_id}");
|
278 |
|
279 |
}
|
280 |
+
|
281 |
+
|
282 |
+
/**
|
283 |
+
* save_post
|
284 |
+
*
|
285 |
+
* @param $post_id
|
286 |
+
*
|
287 |
+
* @hook acf/save_post:999
|
288 |
*/
|
289 |
function save_post($post_id = 0){
|
290 |
|
291 |
+
// check compile
|
292 |
+
if(!acf_is_filter_enabled("acfe/single_meta/compile/{$post_id}")){
|
293 |
+
return;
|
294 |
+
}
|
295 |
|
296 |
+
// get compiled store
|
297 |
$store = $this->get_store($post_id);
|
298 |
$acf = $store->get("$post_id:acf");
|
299 |
|
300 |
+
// update compiled store
|
301 |
$this->update_meta($acf, $post_id);
|
302 |
|
303 |
}
|
304 |
|
305 |
+
|
306 |
+
/**
|
307 |
+
* get_store
|
308 |
+
*
|
309 |
+
* @param $post_id
|
310 |
+
*
|
311 |
+
* @return ACF_Data|false
|
312 |
+
*/
|
313 |
function get_store($post_id){
|
314 |
|
315 |
+
// check store
|
316 |
$store = acf_get_store('acfe/meta');
|
317 |
|
318 |
+
// store found
|
319 |
if(!$store->has("$post_id:acf")){
|
320 |
|
321 |
+
// get meta
|
322 |
$acf = $this->get_meta($post_id);
|
323 |
|
324 |
+
// set store: acf meta
|
325 |
$store->set("$post_id:acf", $acf);
|
326 |
|
327 |
}
|
330 |
|
331 |
}
|
332 |
|
333 |
+
|
334 |
+
/**
|
335 |
+
* get_meta
|
336 |
+
*
|
337 |
+
* @param $post_id
|
338 |
+
*
|
339 |
+
* @return false|mixed|null
|
340 |
+
*/
|
341 |
function get_meta($post_id){
|
342 |
|
343 |
/**
|
346 |
*/
|
347 |
extract(acf_decode_post_id($post_id));
|
348 |
|
349 |
+
// get option
|
350 |
if($type === 'option'){
|
|
|
351 |
$value = get_option($id, null);
|
352 |
|
353 |
+
// get meta
|
354 |
}else{
|
|
|
355 |
$value = acf_get_metadata($post_id, 'acf');
|
|
|
356 |
}
|
357 |
|
358 |
return $value;
|
359 |
|
360 |
}
|
361 |
|
362 |
+
|
363 |
+
/**
|
364 |
+
* update_meta
|
365 |
+
*
|
366 |
+
* @param $value
|
367 |
+
* @param $post_id
|
368 |
+
*
|
369 |
+
* @return bool|int
|
370 |
+
*/
|
371 |
function update_meta($value, $post_id){
|
372 |
|
373 |
/**
|
376 |
*/
|
377 |
extract(acf_decode_post_id($post_id));
|
378 |
|
379 |
+
// update option
|
380 |
if($type === 'option'){
|
381 |
+
|
382 |
$value = wp_unslash($value);
|
383 |
$autoload = (bool) acf_get_setting('autoload');
|
384 |
|
385 |
return update_option($id, $value, $autoload);
|
386 |
|
387 |
+
// update meta
|
388 |
}else{
|
|
|
389 |
return acf_update_metadata($post_id, 'acf', $value);
|
|
|
390 |
}
|
391 |
|
392 |
}
|
393 |
|
394 |
+
|
395 |
+
/**
|
396 |
+
* delete_meta
|
397 |
+
*
|
398 |
+
* @param $post_id
|
399 |
+
*
|
400 |
+
* @return bool
|
401 |
+
*/
|
402 |
function delete_meta($post_id){
|
403 |
|
404 |
/**
|
407 |
*/
|
408 |
extract(acf_decode_post_id($post_id));
|
409 |
|
410 |
+
// delete option
|
411 |
if($type === 'option'){
|
|
|
412 |
return delete_option($id);
|
413 |
|
414 |
+
// delete meta
|
415 |
}else{
|
|
|
416 |
return delete_metadata($type, $id, 'acf');
|
|
|
417 |
}
|
418 |
|
419 |
}
|
420 |
|
421 |
+
|
422 |
+
/**
|
423 |
+
* render_field_settings
|
424 |
+
*
|
425 |
+
* @param $field
|
426 |
*/
|
427 |
function render_field_settings($field){
|
428 |
|
429 |
+
// validate
|
430 |
// cannot use acf_is_enable_filter() because ACF disable filters in Field Group UI
|
431 |
+
if(!acf_get_setting('acfe/modules/single_meta')){
|
432 |
+
return;
|
433 |
+
}
|
434 |
|
435 |
+
// vars
|
436 |
$exclude = array('acfe_button', 'acfe_column', 'acfe_recaptcha', 'acfe_dynamic_render', 'accordion', 'message', 'tab');
|
437 |
|
438 |
+
// check if excluded
|
439 |
+
if(in_array($field['type'], $exclude)){
|
440 |
+
return;
|
441 |
+
}
|
442 |
|
443 |
+
// settings
|
444 |
acf_render_field_setting($field, array(
|
445 |
'label' => __('Save as individual meta'),
|
446 |
'key' => 'acfe_save_meta',
|
463 |
|
464 |
}
|
465 |
|
466 |
+
|
467 |
+
/**
|
468 |
+
* revision_pre_update
|
469 |
+
*
|
470 |
+
* @param $null
|
471 |
+
* @param $revision_id
|
472 |
+
* @param $name
|
473 |
+
* @param $value
|
474 |
+
* @param $hidden
|
475 |
+
*
|
476 |
+
* @return bool|mixed
|
477 |
*/
|
478 |
function revision_pre_update($null, $revision_id, $name, $value, $hidden){
|
479 |
|
480 |
+
// bail early if not acf meta or not revision
|
481 |
+
if($name !== 'acf' || !$this->is_enabled() || !wp_is_post_revision($revision_id)){
|
482 |
+
return $null;
|
483 |
+
}
|
484 |
|
485 |
// get parent post id (original post)
|
486 |
$post_id = wp_get_post_parent_id($revision_id);
|
488 |
// check parent post has single meta
|
489 |
if(!$this->is_enabled($post_id)) return $null;
|
490 |
|
491 |
+
// enable compile to avoid multiple save
|
492 |
acf_enable_filter("acfe/single_meta/compile/{$revision_id}");
|
493 |
|
494 |
// get parent post id values when not in preview
|
495 |
if(acf_maybe_get_POST('wp-preview') !== 'dopreview'){
|
496 |
|
497 |
+
// get acf meta
|
498 |
$value = acf_get_metadata($post_id, 'acf');
|
499 |
|
500 |
+
// unslash for revision
|
501 |
$value = wp_unslash($value);
|
502 |
|
503 |
}
|
510 |
|
511 |
$prefix = $hidden ? '_' : '';
|
512 |
|
513 |
+
// update
|
514 |
update_metadata($type, $id, "{$prefix}{$name}", $value);
|
515 |
|
516 |
+
// do not save normally (already did it)
|
517 |
return true;
|
518 |
|
519 |
}
|
520 |
|
521 |
+
|
522 |
+
/**
|
523 |
+
* revision_fields
|
524 |
+
*
|
525 |
+
* @param $fields
|
526 |
+
* @param $post
|
527 |
+
*
|
528 |
+
* @return mixed
|
529 |
*/
|
530 |
function revision_fields($fields, $post = null){
|
531 |
|
533 |
if(acf_is_screen('revision') || acf_is_ajax('get-revision-diffs')){
|
534 |
|
535 |
// bail early if is restoring
|
536 |
+
if(acf_maybe_get_GET('action') === 'restore'){
|
537 |
+
return $fields;
|
538 |
+
}
|
539 |
|
540 |
+
// allow
|
541 |
}else{
|
542 |
|
543 |
// bail early (most likely saving a post)
|
557 |
}
|
558 |
|
559 |
// check post has single meta
|
560 |
+
if(!$this->is_enabled($post_id)){
|
561 |
+
return $fields;
|
562 |
+
}
|
563 |
|
564 |
// get all postmeta
|
565 |
$meta = get_post_meta($post_id);
|
579 |
|
580 |
}
|
581 |
|
582 |
+
|
583 |
+
/**
|
584 |
+
* revision_field
|
585 |
+
*
|
586 |
+
* revision field for acf
|
587 |
+
*
|
588 |
+
* @param $value
|
589 |
+
* @param $field_name
|
590 |
+
* @param $post
|
591 |
+
* @param $direction
|
592 |
+
*
|
593 |
+
* @return bool|mixed|string
|
594 |
*/
|
595 |
function revision_field($value, $field_name, $post = null, $direction = false){
|
596 |
|
612 |
|
613 |
}
|
614 |
|
615 |
+
|
616 |
+
/**
|
617 |
+
* is_enabled
|
618 |
+
*
|
619 |
+
* @param $post_id
|
620 |
+
*
|
621 |
+
* @return array|bool
|
622 |
+
*/
|
623 |
function is_enabled($post_id = null){
|
624 |
|
625 |
// check filter
|
635 |
|
636 |
}
|
637 |
|
638 |
+
|
639 |
+
/**
|
640 |
+
* validate_post_id
|
641 |
+
*
|
642 |
+
* @param $post_id
|
643 |
+
*
|
644 |
+
* @return bool
|
645 |
+
*/
|
646 |
function validate_post_id($post_id){
|
647 |
|
648 |
// do not process local post id
|
649 |
+
if(acfe_is_local_post_id($post_id)){
|
650 |
+
return false;
|
651 |
+
}
|
652 |
|
653 |
/**
|
654 |
* @var $type
|
656 |
*/
|
657 |
extract(acf_decode_post_id($post_id));
|
658 |
|
659 |
+
// validate id
|
660 |
if(!$id) return false;
|
661 |
|
662 |
+
// post type
|
663 |
if($type === 'post'){
|
664 |
|
665 |
// no post types allowed
|
666 |
+
if($this->post_types === false){
|
667 |
+
return false;
|
668 |
+
}
|
669 |
|
670 |
$post_type = get_post_type($id);
|
671 |
|
672 |
// reserved post type
|
673 |
+
if(in_array($post_type, $this->restricted)){
|
674 |
+
return false;
|
675 |
+
}
|
676 |
|
677 |
// post type not allowed
|
678 |
+
if(!empty($this->post_types) && !in_array($post_type, $this->post_types)){
|
679 |
+
return false;
|
680 |
+
}
|
681 |
|
682 |
return true;
|
683 |
|
684 |
}
|
685 |
|
686 |
+
// taxonomy
|
687 |
elseif($type === 'term'){
|
688 |
|
689 |
// no taxonomies allowed
|
690 |
+
if($this->taxonomies === false){
|
691 |
+
return false;
|
692 |
+
}
|
693 |
|
694 |
// get term
|
695 |
$term = get_term($id);
|
696 |
|
697 |
// term not found
|
698 |
+
if(!is_a($term, 'WP_Term')){
|
699 |
+
return false;
|
700 |
+
}
|
701 |
|
702 |
$taxonomy = $term->taxonomy;
|
703 |
|
704 |
// taxonomy not allowed
|
705 |
+
if(!empty($this->taxonomies) && !in_array($taxonomy, $this->taxonomies)){
|
706 |
+
return false;
|
707 |
+
}
|
708 |
|
709 |
return true;
|
710 |
|
711 |
}
|
712 |
|
713 |
+
// user
|
714 |
elseif($type === 'user'){
|
715 |
|
716 |
// no users allowed
|
717 |
+
if($this->users === false){
|
718 |
+
return false;
|
719 |
+
}
|
720 |
|
721 |
// get user
|
722 |
$user = get_userdata($id);
|
723 |
|
724 |
// user not found
|
725 |
+
if(!is_a($user, 'WP_User')){
|
726 |
+
return false;
|
727 |
+
}
|
728 |
|
729 |
// get roles
|
730 |
$roles = acf_get_array($user->roles);
|
737 |
foreach($roles as $role){
|
738 |
|
739 |
if(in_array($role, $this->users)){
|
|
|
740 |
$allowed = true;
|
741 |
break;
|
|
|
742 |
}
|
743 |
|
744 |
}
|
753 |
|
754 |
}
|
755 |
|
756 |
+
// option
|
757 |
elseif($type === 'option'){
|
758 |
|
759 |
// no options allowed
|
760 |
+
if($this->options === false){
|
761 |
+
return false;
|
762 |
+
}
|
763 |
|
764 |
// option not allowed
|
765 |
+
if(!empty($this->options) && !in_array($id, $this->options)){
|
766 |
+
return false;
|
767 |
+
}
|
768 |
|
769 |
return true;
|
770 |
|
780 |
|
781 |
endif;
|
782 |
|
783 |
+
|
784 |
+
/**
|
785 |
+
* acfe_is_single_meta_enabled
|
786 |
+
*
|
787 |
+
* @param $post_id
|
788 |
+
*
|
789 |
+
* @return mixed
|
790 |
+
*/
|
791 |
function acfe_is_single_meta_enabled($post_id = null){
|
792 |
+
return acf_get_instance('acfe_single_meta')->is_enabled($post_id);
|
|
|
|
|
|
|
|
|
793 |
}
|
794 |
|
795 |
+
|
796 |
+
/**
|
797 |
+
* acfe_single_meta_validate_post_id
|
798 |
+
*
|
799 |
+
* @param $post_id
|
800 |
+
*
|
801 |
+
* @return mixed
|
802 |
+
*/
|
803 |
function acfe_single_meta_validate_post_id($post_id){
|
|
|
804 |
return acf_get_instance('acfe_single_meta')->validate_post_id($post_id);
|
|
|
805 |
}
|
806 |
|
807 |
+
|
808 |
+
/**
|
809 |
+
* acfe_get_single_meta
|
810 |
+
*
|
811 |
+
* @param $post_id
|
812 |
+
*
|
813 |
+
* @return mixed
|
814 |
+
*/
|
815 |
function acfe_get_single_meta($post_id){
|
|
|
816 |
return acf_get_instance('acfe_single_meta')->get_meta($post_id);
|
|
|
817 |
}
|
818 |
|
819 |
+
|
820 |
+
/**
|
821 |
+
* acfe_delete_single_meta
|
822 |
+
*
|
823 |
+
* @param $post_id
|
824 |
+
*
|
825 |
+
* @return mixed
|
826 |
+
*/
|
827 |
function acfe_delete_single_meta($post_id){
|
|
|
828 |
return acf_get_instance('acfe_single_meta')->delete_meta($post_id);
|
|
|
829 |
}
|
includes/modules/ui.php
CHANGED
@@ -4,24 +4,34 @@ if(!defined('ABSPATH')){
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
//
|
8 |
-
if(!acf_get_setting('acfe/modules/ui'))
|
9 |
return;
|
|
|
10 |
|
11 |
if(!class_exists('acfe_enhanced_ui')):
|
12 |
|
13 |
class acfe_enhanced_ui{
|
14 |
|
|
|
|
|
|
|
15 |
function __construct(){
|
16 |
-
|
17 |
$this->initialize();
|
18 |
-
|
19 |
}
|
20 |
|
|
|
|
|
|
|
|
|
21 |
function initialize(){
|
22 |
// ...
|
23 |
}
|
24 |
|
|
|
|
|
|
|
|
|
25 |
function enqueue_scripts(){
|
26 |
|
27 |
// acf
|
@@ -33,8 +43,13 @@ class acfe_enhanced_ui{
|
|
33 |
|
34 |
}
|
35 |
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
38 |
*/
|
39 |
function add_metaboxes($field_groups, $post_id, $screen){
|
40 |
|
@@ -48,14 +63,14 @@ class acfe_enhanced_ui{
|
|
48 |
$context = $field_group['position']; // normal, side, acf_after_title
|
49 |
$priority = 'high'; // high, core, default, low
|
50 |
|
51 |
-
//
|
52 |
if($context == 'side'){
|
53 |
$priority = 'core';
|
54 |
}
|
55 |
|
56 |
$priority = apply_filters('acf/input/meta_box_priority', $priority, $field_group);
|
57 |
|
58 |
-
//
|
59 |
$postboxes[] = array(
|
60 |
'id' => $id,
|
61 |
'key' => $field_group['key'],
|
@@ -64,20 +79,24 @@ class acfe_enhanced_ui{
|
|
64 |
'edit' => acf_get_field_group_edit_link($field_group['ID'])
|
65 |
);
|
66 |
|
67 |
-
//
|
68 |
add_meta_box($id, $title, array($this, 'render_metabox'), $screen, $context, $priority, array('post_id' => $post_id, 'field_group' => $field_group));
|
69 |
|
70 |
}
|
71 |
|
72 |
-
//
|
73 |
acf_localize_data(array(
|
74 |
'postboxes' => $postboxes
|
75 |
));
|
76 |
|
77 |
}
|
78 |
|
79 |
-
|
80 |
-
|
|
|
|
|
|
|
|
|
81 |
*/
|
82 |
function render_metabox($post, $metabox){
|
83 |
|
@@ -85,14 +104,18 @@ class acfe_enhanced_ui{
|
|
85 |
$post_id = $metabox['args']['post_id'];
|
86 |
$field_group = $metabox['args']['field_group'];
|
87 |
|
88 |
-
//
|
89 |
$fields = acf_get_fields($field_group);
|
90 |
acf_render_fields($fields, $post_id, 'div', $field_group['instruction_placement']);
|
91 |
|
92 |
}
|
93 |
|
94 |
-
|
95 |
-
|
|
|
|
|
|
|
|
|
96 |
*/
|
97 |
function render_metabox_submit($object, $metabox){
|
98 |
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
// check setting
|
8 |
+
if(!acf_get_setting('acfe/modules/ui')){
|
9 |
return;
|
10 |
+
}
|
11 |
|
12 |
if(!class_exists('acfe_enhanced_ui')):
|
13 |
|
14 |
class acfe_enhanced_ui{
|
15 |
|
16 |
+
/**
|
17 |
+
* construct
|
18 |
+
*/
|
19 |
function __construct(){
|
|
|
20 |
$this->initialize();
|
|
|
21 |
}
|
22 |
|
23 |
+
|
24 |
+
/**
|
25 |
+
* initialize
|
26 |
+
*/
|
27 |
function initialize(){
|
28 |
// ...
|
29 |
}
|
30 |
|
31 |
+
|
32 |
+
/**
|
33 |
+
* enqueue_scripts
|
34 |
+
*/
|
35 |
function enqueue_scripts(){
|
36 |
|
37 |
// acf
|
43 |
|
44 |
}
|
45 |
|
46 |
+
|
47 |
+
/**
|
48 |
+
* add_metaboxes
|
49 |
+
*
|
50 |
+
* @param $field_groups
|
51 |
+
* @param $post_id
|
52 |
+
* @param $screen
|
53 |
*/
|
54 |
function add_metaboxes($field_groups, $post_id, $screen){
|
55 |
|
63 |
$context = $field_group['position']; // normal, side, acf_after_title
|
64 |
$priority = 'high'; // high, core, default, low
|
65 |
|
66 |
+
// reduce priority for sidebar metaboxes for best position.
|
67 |
if($context == 'side'){
|
68 |
$priority = 'core';
|
69 |
}
|
70 |
|
71 |
$priority = apply_filters('acf/input/meta_box_priority', $priority, $field_group);
|
72 |
|
73 |
+
// localize data
|
74 |
$postboxes[] = array(
|
75 |
'id' => $id,
|
76 |
'key' => $field_group['key'],
|
79 |
'edit' => acf_get_field_group_edit_link($field_group['ID'])
|
80 |
);
|
81 |
|
82 |
+
// add meta box
|
83 |
add_meta_box($id, $title, array($this, 'render_metabox'), $screen, $context, $priority, array('post_id' => $post_id, 'field_group' => $field_group));
|
84 |
|
85 |
}
|
86 |
|
87 |
+
// localize postboxes
|
88 |
acf_localize_data(array(
|
89 |
'postboxes' => $postboxes
|
90 |
));
|
91 |
|
92 |
}
|
93 |
|
94 |
+
|
95 |
+
/**
|
96 |
+
* render_metabox
|
97 |
+
*
|
98 |
+
* @param $post
|
99 |
+
* @param $metabox
|
100 |
*/
|
101 |
function render_metabox($post, $metabox){
|
102 |
|
104 |
$post_id = $metabox['args']['post_id'];
|
105 |
$field_group = $metabox['args']['field_group'];
|
106 |
|
107 |
+
// render fields
|
108 |
$fields = acf_get_fields($field_group);
|
109 |
acf_render_fields($fields, $post_id, 'div', $field_group['instruction_placement']);
|
110 |
|
111 |
}
|
112 |
|
113 |
+
|
114 |
+
/**
|
115 |
+
* render_metabox_submit
|
116 |
+
*
|
117 |
+
* @param $object
|
118 |
+
* @param $metabox
|
119 |
*/
|
120 |
function render_metabox_submit($object, $metabox){
|
121 |
|
includes/multilang.php
CHANGED
@@ -8,14 +8,18 @@ if(!class_exists('acfe_multilang')):
|
|
8 |
|
9 |
class acfe_multilang{
|
10 |
|
|
|
11 |
var $is_wpml = false;
|
12 |
var $is_polylang = false;
|
13 |
var $is_multilang = false;
|
14 |
var $options_pages = array();
|
15 |
|
|
|
|
|
|
|
16 |
function __construct(){
|
17 |
|
18 |
-
//
|
19 |
if(defined('ICL_SITEPRESS_VERSION')){
|
20 |
|
21 |
$this->is_wpml = true;
|
@@ -23,7 +27,7 @@ class acfe_multilang{
|
|
23 |
|
24 |
}
|
25 |
|
26 |
-
//
|
27 |
if(defined('POLYLANG_VERSION') && function_exists('pll_default_language')){
|
28 |
|
29 |
$this->is_polylang = true;
|
@@ -32,28 +36,30 @@ class acfe_multilang{
|
|
32 |
}
|
33 |
|
34 |
if($this->is_multilang){
|
35 |
-
|
36 |
add_action('acf/init', array($this, 'init'), 99);
|
37 |
-
|
38 |
}
|
39 |
|
40 |
}
|
41 |
|
|
|
|
|
|
|
|
|
42 |
function init(){
|
43 |
|
44 |
-
//
|
45 |
if(!acf_get_setting('acfe/modules/multilang')){
|
46 |
return;
|
47 |
}
|
48 |
|
49 |
-
//
|
50 |
if($this->is_polylang){
|
51 |
|
52 |
-
//
|
53 |
$dl = pll_default_language('locale');
|
54 |
$cl = pll_current_language('locale');
|
55 |
|
56 |
-
//
|
57 |
acf_update_setting('default_language', $dl);
|
58 |
acf_update_setting('current_language', $cl);
|
59 |
|
@@ -62,17 +68,27 @@ class acfe_multilang{
|
|
62 |
|
63 |
}
|
64 |
|
65 |
-
//
|
66 |
add_action('acf/options_page/submitbox_before_major_actions', array($this, 'options_page_message'));
|
67 |
|
68 |
-
//
|
69 |
add_filter('acf/validate_post_id', array($this, 'set_options_post_id'), 99, 2);
|
70 |
|
71 |
}
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
function polylang_preload_reference($null, $field_name, $post_id){
|
74 |
|
75 |
-
//
|
76 |
$original_post_id = $this->polylang_validate_preload_post_id($post_id);
|
77 |
|
78 |
if(!$original_post_id){
|
@@ -89,29 +105,39 @@ class acfe_multilang{
|
|
89 |
|
90 |
}
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
function polylang_preload_value($null, $post_id, $field){
|
93 |
|
94 |
-
//
|
95 |
$original_post_id = $this->polylang_validate_preload_post_id($post_id);
|
96 |
|
97 |
if(!$original_post_id){
|
98 |
return $null;
|
99 |
}
|
100 |
|
101 |
-
//
|
102 |
$field_name = $field['name'];
|
103 |
|
104 |
-
//
|
105 |
$store = acf_get_store('values');
|
106 |
|
107 |
if($store->has("$post_id:$field_name")){
|
108 |
return $null;
|
109 |
}
|
110 |
|
111 |
-
//
|
112 |
$value = acf_get_metadata($post_id, $field_name);
|
113 |
|
114 |
-
//
|
115 |
if($value !== null){
|
116 |
return $null;
|
117 |
}
|
@@ -120,34 +146,42 @@ class acfe_multilang{
|
|
120 |
|
121 |
}
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
function polylang_validate_preload_post_id($post_id){
|
124 |
|
125 |
-
//
|
126 |
if(is_admin() || !is_string($post_id)){
|
127 |
return false;
|
128 |
}
|
129 |
|
130 |
-
//
|
131 |
$data = acf_get_post_id_info($post_id);
|
132 |
|
133 |
-
//
|
134 |
if($data['type'] !== 'option'){
|
135 |
return false;
|
136 |
}
|
137 |
|
138 |
-
//
|
139 |
if(!$this->is_localized($post_id)){
|
140 |
return false;
|
141 |
}
|
142 |
|
143 |
$original_post_id = preg_replace( '/([_\-][A-Za-z]{2}_[A-Za-z]{2})$/', '', $post_id);
|
144 |
|
145 |
-
//
|
146 |
if($original_post_id === $post_id){
|
147 |
return false;
|
148 |
}
|
149 |
|
150 |
-
//
|
151 |
if(!$this->is_options_page($original_post_id)){
|
152 |
return false;
|
153 |
}
|
@@ -156,138 +190,166 @@ class acfe_multilang{
|
|
156 |
|
157 |
}
|
158 |
|
|
|
159 |
/**
|
160 |
-
*
|
|
|
161 |
* https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/
|
|
|
|
|
|
|
|
|
|
|
162 |
*/
|
163 |
function wpml_get_languages($pluck = '', $type = 'all'){
|
164 |
|
165 |
-
//
|
166 |
$languages = array();
|
167 |
$pluck = $pluck === 'locale' ? 'default_locale' : $pluck;
|
168 |
|
169 |
switch($type){
|
170 |
|
171 |
-
//
|
172 |
-
case 'active':
|
173 |
|
174 |
// https://wpml.org/wpml-hook/wpml_active_languages/
|
175 |
$languages = apply_filters('wpml_active_languages', null, array('skip_missing' => 0));
|
176 |
-
|
177 |
// Set locale as key
|
178 |
$_languages = $languages;
|
179 |
$languages = array();
|
180 |
-
|
181 |
foreach($_languages as $lang){
|
182 |
$languages[ $lang['default_locale'] ] = $lang;
|
183 |
}
|
184 |
-
|
185 |
if($pluck){
|
186 |
$languages = wp_list_pluck($languages, $pluck, true);
|
187 |
}
|
188 |
-
|
189 |
return $languages;
|
190 |
|
191 |
-
|
|
|
|
|
192 |
case '':
|
193 |
-
case 'all':
|
194 |
-
|
195 |
// https://wpml.org/wpml-hook/wpml_active_languages/
|
196 |
$languages = apply_filters('wpml_active_languages', null, array('skip_missing' => 0));
|
197 |
$languages = wp_list_pluck($languages, 'code', 'default_locale');
|
198 |
-
|
199 |
// Default Languages
|
200 |
$_languages = icl_get_languages_locales();
|
201 |
$_languages = array_flip($_languages);
|
202 |
-
|
203 |
if(!empty($_languages)){
|
204 |
-
|
205 |
$languages = array_merge($languages, $_languages);
|
206 |
$languages = array_unique($languages);
|
207 |
-
|
208 |
}
|
209 |
-
|
210 |
if($pluck){
|
211 |
$languages = $pluck === 'code' ? array_values($_languages) : array_keys($_languages);
|
212 |
}
|
213 |
-
|
214 |
return $languages;
|
215 |
|
|
|
|
|
216 |
}
|
217 |
|
218 |
return $languages;
|
219 |
|
220 |
}
|
221 |
|
|
|
222 |
/**
|
223 |
-
*
|
|
|
224 |
* https://polylang.pro/doc/filter-reference/
|
225 |
* https://polylang.pro/doc/developpers-how-to/
|
226 |
* https://polylang.pro/doc-category/developers/
|
227 |
* https://polylang.wordpress.com/documentation/documentation-for-developers/general/
|
228 |
* https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/
|
|
|
|
|
|
|
|
|
|
|
229 |
*/
|
230 |
function polylang_get_languages($pluck = '', $type = 'all'){
|
231 |
|
232 |
-
//
|
233 |
$languages = array();
|
234 |
|
235 |
switch($type){
|
236 |
|
237 |
-
//
|
238 |
-
case 'active':
|
239 |
-
|
240 |
-
//
|
241 |
$pluck = $pluck === 'code' ? 'slug' : $pluck;
|
242 |
-
|
243 |
// https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/
|
244 |
$languages = pll_languages_list(array(
|
245 |
'hide_empty' => false,
|
246 |
'fields' => $pluck
|
247 |
));
|
248 |
-
|
249 |
return $languages;
|
|
|
|
|
250 |
|
251 |
-
//
|
252 |
case '':
|
253 |
-
case 'all':
|
254 |
-
|
255 |
$languages = PLL_Settings::get_predefined_languages();
|
256 |
-
|
257 |
if($pluck){
|
258 |
$languages = wp_list_pluck($languages, $pluck, true);
|
259 |
}
|
260 |
|
261 |
return $languages;
|
262 |
|
|
|
|
|
263 |
}
|
264 |
|
265 |
return $languages;
|
266 |
|
267 |
}
|
268 |
|
|
|
269 |
/**
|
270 |
-
*
|
|
|
|
|
|
|
|
|
|
|
271 |
*/
|
272 |
function set_options_post_id($post_id, $original_post_id){
|
273 |
|
274 |
-
//
|
275 |
if(!is_string($post_id)){
|
276 |
return $post_id;
|
277 |
}
|
278 |
|
279 |
$data = acf_get_post_id_info($post_id);
|
280 |
|
281 |
-
//
|
282 |
if($data['type'] !== 'option'){
|
283 |
return $post_id;
|
284 |
}
|
285 |
|
286 |
-
//
|
287 |
// $post_id already translated during the native acf/validate_post_id
|
288 |
if(in_array($original_post_id, array('options', 'option'))){
|
289 |
|
290 |
-
//
|
291 |
$exclude = apply_filters('acfe/modules/multilang/exclude_options', array());
|
292 |
|
293 |
if(in_array('options', $exclude)){
|
@@ -298,20 +360,21 @@ class acfe_multilang{
|
|
298 |
|
299 |
}
|
300 |
|
301 |
-
//
|
302 |
-
if(!$this->is_options_page($post_id))
|
303 |
return $post_id;
|
|
|
304 |
|
305 |
-
//
|
306 |
if($this->is_localized($post_id)){
|
307 |
return $post_id;
|
308 |
}
|
309 |
|
310 |
-
//
|
311 |
$dl = acf_get_setting('default_language');
|
312 |
$cl = acf_get_setting('current_language');
|
313 |
|
314 |
-
//
|
315 |
if($cl && $cl !== $dl){
|
316 |
$post_id .= '_' . $cl;
|
317 |
}
|
@@ -320,9 +383,17 @@ class acfe_multilang{
|
|
320 |
|
321 |
}
|
322 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
function is_localized($post_id){
|
324 |
|
325 |
-
//
|
326 |
// https://regex101.com/r/oMsyeL/4
|
327 |
preg_match('/(?P<locale>[_\-][A-Za-z]{2}_[A-Za-z]{2})$|(?P<code>[_\-][A-Za-z]{2})$/', $post_id, $matches);
|
328 |
|
@@ -330,7 +401,7 @@ class acfe_multilang{
|
|
330 |
return false;
|
331 |
}
|
332 |
|
333 |
-
//
|
334 |
$lang = array();
|
335 |
|
336 |
foreach($matches as $key => $val){
|
@@ -350,15 +421,23 @@ class acfe_multilang{
|
|
350 |
return false;
|
351 |
}
|
352 |
|
353 |
-
//
|
354 |
$languages = $this->get_languages($lang['type']);
|
355 |
$languages = array_map('strtolower', $languages);
|
356 |
|
357 |
-
//
|
358 |
return in_array($lang['lang'], $languages);
|
359 |
|
360 |
}
|
361 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
362 |
function is_options_page($post_id){
|
363 |
|
364 |
// check if post id already in options pages
|
@@ -366,11 +445,11 @@ class acfe_multilang{
|
|
366 |
return true;
|
367 |
}
|
368 |
|
369 |
-
//
|
370 |
$options_pages = acf_get_array(acf_get_options_pages());
|
371 |
$list = wp_list_pluck($options_pages, 'post_id', true);
|
372 |
|
373 |
-
//
|
374 |
$post_types = acf_get_post_types(array(
|
375 |
'show_ui' => 1,
|
376 |
'exclude' => array('attachment')
|
@@ -380,7 +459,7 @@ class acfe_multilang{
|
|
380 |
$list[] = "{$post_type}_options";
|
381 |
}
|
382 |
|
383 |
-
//
|
384 |
$taxonomies = acf_get_taxonomies();
|
385 |
|
386 |
foreach($taxonomies as $taxonomy){
|
@@ -414,13 +493,23 @@ class acfe_multilang{
|
|
414 |
|
415 |
}
|
416 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
417 |
function get_languages($pluck = '', $type = '', $plugin = ''){
|
418 |
|
419 |
-
//
|
420 |
if($this->is_polylang || $plugin === 'polylang'){
|
421 |
return $this->polylang_get_languages($pluck, $type);
|
422 |
|
423 |
-
//
|
424 |
}elseif($this->is_wpml || $plugin === 'wpml'){
|
425 |
return $this->wpml_get_languages($pluck, $type);
|
426 |
}
|
@@ -429,6 +518,10 @@ class acfe_multilang{
|
|
429 |
|
430 |
}
|
431 |
|
|
|
|
|
|
|
|
|
432 |
function options_page_message(){
|
433 |
|
434 |
$default_language = acf_get_setting('default_language');
|
@@ -436,7 +529,7 @@ class acfe_multilang{
|
|
436 |
|
437 |
$message = false;
|
438 |
|
439 |
-
//
|
440 |
if($this->is_polylang){
|
441 |
|
442 |
if(!$current_language){
|
@@ -479,7 +572,7 @@ class acfe_multilang{
|
|
479 |
|
480 |
}
|
481 |
|
482 |
-
//
|
483 |
elseif($this->is_wpml){
|
484 |
|
485 |
if($current_language === 'all'){
|
@@ -536,15 +629,21 @@ acf_new_instance('acfe_multilang');
|
|
536 |
|
537 |
endif;
|
538 |
|
539 |
-
|
540 |
-
|
|
|
|
|
|
|
541 |
*/
|
542 |
function acfe_is_multilang(){
|
543 |
return acf_get_instance('acfe_multilang')->is_multilang;
|
544 |
}
|
545 |
|
546 |
-
|
547 |
-
|
|
|
|
|
|
|
548 |
*/
|
549 |
function acfe_get_multilang(){
|
550 |
|
@@ -562,53 +661,72 @@ function acfe_get_multilang(){
|
|
562 |
|
563 |
}
|
564 |
|
565 |
-
|
566 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
567 |
*/
|
568 |
function acfe_get_multilang_languages($pluck = '', $type = '', $plugin = ''){
|
569 |
return acf_get_instance('acfe_multilang')->get_languages($pluck, $type, $plugin);
|
570 |
}
|
571 |
|
572 |
-
|
573 |
-
|
|
|
|
|
|
|
574 |
*/
|
575 |
function acfe_is_polylang(){
|
576 |
return acf_get_instance('acfe_multilang')->is_polylang;
|
577 |
}
|
578 |
|
579 |
-
|
580 |
-
|
|
|
|
|
|
|
581 |
*/
|
582 |
function acfe_is_wpml(){
|
583 |
return acf_get_instance('acfe_multilang')->is_wpml;
|
584 |
}
|
585 |
|
586 |
-
|
587 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
588 |
*/
|
589 |
function acfe_get_post_lang($post_id, $field = false){
|
590 |
|
591 |
-
//
|
592 |
if(!acfe_is_multilang()){
|
593 |
return false;
|
594 |
}
|
595 |
|
596 |
-
//
|
597 |
if(acfe_is_polylang()){
|
598 |
|
599 |
-
//
|
600 |
if(!$field){
|
601 |
$field = 'locale';
|
602 |
}
|
603 |
|
604 |
return pll_get_post_language($post_id, $field);
|
605 |
|
606 |
-
//
|
607 |
}elseif(acfe_is_wpml()){
|
608 |
|
609 |
$post_lang = apply_filters('wpml_post_language_details', NULL, $post_id);
|
610 |
|
611 |
-
//
|
612 |
if(!$field){
|
613 |
$field = 'slug';
|
614 |
}
|
@@ -631,24 +749,30 @@ function acfe_get_post_lang($post_id, $field = false){
|
|
631 |
|
632 |
}
|
633 |
|
634 |
-
|
635 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
636 |
*/
|
637 |
function acfe_get_post_translated($post_id, $lang = false){
|
638 |
|
639 |
-
//
|
640 |
if(!acfe_is_multilang()){
|
641 |
return $post_id;
|
642 |
}
|
643 |
|
644 |
-
//
|
645 |
$translated_post_id = $post_id;
|
646 |
|
647 |
-
//
|
648 |
if(acfe_is_polylang()){
|
649 |
$translated_post_id = pll_get_post($post_id, $lang);
|
650 |
|
651 |
-
//
|
652 |
}elseif(acfe_is_wpml()){
|
653 |
$translated_post_id = apply_filters('wpml_object_id', $post_id, 'post', false, $lang);
|
654 |
}
|
@@ -662,15 +786,20 @@ function acfe_get_post_translated($post_id, $lang = false){
|
|
662 |
|
663 |
}
|
664 |
|
665 |
-
|
666 |
-
|
|
|
|
|
|
|
|
|
|
|
667 |
*/
|
668 |
function acfe_get_post_translated_default($post_id){
|
669 |
|
670 |
-
//
|
671 |
$translated_post_id = acfe_get_post_translated($post_id, acf_get_setting('default_language'));
|
672 |
|
673 |
-
//
|
674 |
if(empty($translated_post_id)){
|
675 |
return $post_id;
|
676 |
}
|
@@ -679,54 +808,75 @@ function acfe_get_post_translated_default($post_id){
|
|
679 |
|
680 |
}
|
681 |
|
682 |
-
|
683 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
684 |
*/
|
685 |
function acfe_translate($string, $name = false, $textdomain = 'acfe'){
|
686 |
|
687 |
-
//
|
688 |
if(!acfe_is_multilang() || empty($string)){
|
689 |
return __($string, $textdomain);
|
690 |
}
|
691 |
|
692 |
-
//
|
693 |
if(empty($name)){
|
694 |
$name = $string;
|
695 |
}
|
696 |
|
697 |
-
//
|
|
|
698 |
if(acfe_is_wpml()){
|
699 |
-
|
700 |
-
// Translate (Register string during save)
|
701 |
return apply_filters('wpml_translate_single_string', $string, $textdomain, $name);
|
702 |
-
|
703 |
}
|
704 |
|
705 |
-
//
|
706 |
if(acfe_is_polylang()){
|
707 |
|
708 |
-
//
|
709 |
pll_register_string($name, $string, $textdomain);
|
710 |
|
711 |
-
//
|
712 |
return pll__($string);
|
713 |
|
714 |
}
|
715 |
|
716 |
-
//
|
717 |
return __($string, $textdomain);
|
718 |
|
719 |
}
|
720 |
|
721 |
-
|
722 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
723 |
*/
|
724 |
function acfe__($string, $name = false, $textdomain = 'acfe'){
|
725 |
return acfe_translate($string, $name, $textdomain);
|
726 |
}
|
727 |
|
728 |
-
|
729 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
730 |
*/
|
731 |
function acfe__e($string, $name = false, $textdomain = 'acfe'){
|
732 |
echo acfe_translate($string, $name, $textdomain);
|
8 |
|
9 |
class acfe_multilang{
|
10 |
|
11 |
+
// vars
|
12 |
var $is_wpml = false;
|
13 |
var $is_polylang = false;
|
14 |
var $is_multilang = false;
|
15 |
var $options_pages = array();
|
16 |
|
17 |
+
/**
|
18 |
+
* construct
|
19 |
+
*/
|
20 |
function __construct(){
|
21 |
|
22 |
+
// wpml
|
23 |
if(defined('ICL_SITEPRESS_VERSION')){
|
24 |
|
25 |
$this->is_wpml = true;
|
27 |
|
28 |
}
|
29 |
|
30 |
+
// polyLang
|
31 |
if(defined('POLYLANG_VERSION') && function_exists('pll_default_language')){
|
32 |
|
33 |
$this->is_polylang = true;
|
36 |
}
|
37 |
|
38 |
if($this->is_multilang){
|
|
|
39 |
add_action('acf/init', array($this, 'init'), 99);
|
|
|
40 |
}
|
41 |
|
42 |
}
|
43 |
|
44 |
+
|
45 |
+
/**
|
46 |
+
* init
|
47 |
+
*/
|
48 |
function init(){
|
49 |
|
50 |
+
// check setting
|
51 |
if(!acf_get_setting('acfe/modules/multilang')){
|
52 |
return;
|
53 |
}
|
54 |
|
55 |
+
// polylang specific
|
56 |
if($this->is_polylang){
|
57 |
|
58 |
+
// default/Current Language
|
59 |
$dl = pll_default_language('locale');
|
60 |
$cl = pll_current_language('locale');
|
61 |
|
62 |
+
// update settings
|
63 |
acf_update_setting('default_language', $dl);
|
64 |
acf_update_setting('current_language', $cl);
|
65 |
|
68 |
|
69 |
}
|
70 |
|
71 |
+
// options page Message
|
72 |
add_action('acf/options_page/submitbox_before_major_actions', array($this, 'options_page_message'));
|
73 |
|
74 |
+
// acf options post id
|
75 |
add_filter('acf/validate_post_id', array($this, 'set_options_post_id'), 99, 2);
|
76 |
|
77 |
}
|
78 |
|
79 |
+
|
80 |
+
/**
|
81 |
+
* polylang_preload_reference
|
82 |
+
*
|
83 |
+
* @param $null
|
84 |
+
* @param $field_name
|
85 |
+
* @param $post_id
|
86 |
+
*
|
87 |
+
* @return mixed|null
|
88 |
+
*/
|
89 |
function polylang_preload_reference($null, $field_name, $post_id){
|
90 |
|
91 |
+
// validate post id
|
92 |
$original_post_id = $this->polylang_validate_preload_post_id($post_id);
|
93 |
|
94 |
if(!$original_post_id){
|
105 |
|
106 |
}
|
107 |
|
108 |
+
|
109 |
+
/**
|
110 |
+
* polylang_preload_value
|
111 |
+
*
|
112 |
+
* @param $null
|
113 |
+
* @param $post_id
|
114 |
+
* @param $field
|
115 |
+
*
|
116 |
+
* @return mixed
|
117 |
+
*/
|
118 |
function polylang_preload_value($null, $post_id, $field){
|
119 |
|
120 |
+
// validate post id
|
121 |
$original_post_id = $this->polylang_validate_preload_post_id($post_id);
|
122 |
|
123 |
if(!$original_post_id){
|
124 |
return $null;
|
125 |
}
|
126 |
|
127 |
+
// get field name
|
128 |
$field_name = $field['name'];
|
129 |
|
130 |
+
// check store
|
131 |
$store = acf_get_store('values');
|
132 |
|
133 |
if($store->has("$post_id:$field_name")){
|
134 |
return $null;
|
135 |
}
|
136 |
|
137 |
+
// load value from database
|
138 |
$value = acf_get_metadata($post_id, $field_name);
|
139 |
|
140 |
+
// use field's default_value if no meta was found
|
141 |
if($value !== null){
|
142 |
return $null;
|
143 |
}
|
146 |
|
147 |
}
|
148 |
|
149 |
+
|
150 |
+
/**
|
151 |
+
* polylang_validate_preload_post_id
|
152 |
+
*
|
153 |
+
* @param $post_id
|
154 |
+
*
|
155 |
+
* @return array|false|string|string[]|null
|
156 |
+
*/
|
157 |
function polylang_validate_preload_post_id($post_id){
|
158 |
|
159 |
+
// bail early if admin screen
|
160 |
if(is_admin() || !is_string($post_id)){
|
161 |
return false;
|
162 |
}
|
163 |
|
164 |
+
// get post id info
|
165 |
$data = acf_get_post_id_info($post_id);
|
166 |
|
167 |
+
// bail early if post id isn't an option type
|
168 |
if($data['type'] !== 'option'){
|
169 |
return false;
|
170 |
}
|
171 |
|
172 |
+
// bail early if not localized
|
173 |
if(!$this->is_localized($post_id)){
|
174 |
return false;
|
175 |
}
|
176 |
|
177 |
$original_post_id = preg_replace( '/([_\-][A-Za-z]{2}_[A-Za-z]{2})$/', '', $post_id);
|
178 |
|
179 |
+
// check the regex
|
180 |
if($original_post_id === $post_id){
|
181 |
return false;
|
182 |
}
|
183 |
|
184 |
+
// bail early if no Options Page found with that post id
|
185 |
if(!$this->is_options_page($original_post_id)){
|
186 |
return false;
|
187 |
}
|
190 |
|
191 |
}
|
192 |
|
193 |
+
|
194 |
/**
|
195 |
+
* wpml_get_languages
|
196 |
+
*
|
197 |
* https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/
|
198 |
+
*
|
199 |
+
* @param $pluck
|
200 |
+
* @param $type
|
201 |
+
*
|
202 |
+
* @return array|int[]|mixed|string[]|null
|
203 |
*/
|
204 |
function wpml_get_languages($pluck = '', $type = 'all'){
|
205 |
|
206 |
+
// vars
|
207 |
$languages = array();
|
208 |
$pluck = $pluck === 'locale' ? 'default_locale' : $pluck;
|
209 |
|
210 |
switch($type){
|
211 |
|
212 |
+
// active
|
213 |
+
case 'active': {
|
214 |
|
215 |
// https://wpml.org/wpml-hook/wpml_active_languages/
|
216 |
$languages = apply_filters('wpml_active_languages', null, array('skip_missing' => 0));
|
217 |
+
|
218 |
// Set locale as key
|
219 |
$_languages = $languages;
|
220 |
$languages = array();
|
221 |
+
|
222 |
foreach($_languages as $lang){
|
223 |
$languages[ $lang['default_locale'] ] = $lang;
|
224 |
}
|
225 |
+
|
226 |
if($pluck){
|
227 |
$languages = wp_list_pluck($languages, $pluck, true);
|
228 |
}
|
229 |
+
|
230 |
return $languages;
|
231 |
|
232 |
+
}
|
233 |
+
|
234 |
+
// all
|
235 |
case '':
|
236 |
+
case 'all': {
|
237 |
+
|
238 |
// https://wpml.org/wpml-hook/wpml_active_languages/
|
239 |
$languages = apply_filters('wpml_active_languages', null, array('skip_missing' => 0));
|
240 |
$languages = wp_list_pluck($languages, 'code', 'default_locale');
|
241 |
+
|
242 |
// Default Languages
|
243 |
$_languages = icl_get_languages_locales();
|
244 |
$_languages = array_flip($_languages);
|
245 |
+
|
246 |
if(!empty($_languages)){
|
247 |
+
|
248 |
$languages = array_merge($languages, $_languages);
|
249 |
$languages = array_unique($languages);
|
250 |
+
|
251 |
}
|
252 |
+
|
253 |
if($pluck){
|
254 |
$languages = $pluck === 'code' ? array_values($_languages) : array_keys($_languages);
|
255 |
}
|
256 |
+
|
257 |
return $languages;
|
258 |
|
259 |
+
}
|
260 |
+
|
261 |
}
|
262 |
|
263 |
return $languages;
|
264 |
|
265 |
}
|
266 |
|
267 |
+
|
268 |
/**
|
269 |
+
* polylang_get_languages
|
270 |
+
*
|
271 |
* https://polylang.pro/doc/filter-reference/
|
272 |
* https://polylang.pro/doc/developpers-how-to/
|
273 |
* https://polylang.pro/doc-category/developers/
|
274 |
* https://polylang.wordpress.com/documentation/documentation-for-developers/general/
|
275 |
* https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/
|
276 |
+
*
|
277 |
+
* @param $pluck
|
278 |
+
* @param $type
|
279 |
+
*
|
280 |
+
* @return array|string[]
|
281 |
*/
|
282 |
function polylang_get_languages($pluck = '', $type = 'all'){
|
283 |
|
284 |
+
// vars
|
285 |
$languages = array();
|
286 |
|
287 |
switch($type){
|
288 |
|
289 |
+
// active
|
290 |
+
case 'active': {
|
291 |
+
|
292 |
+
// convert pluck
|
293 |
$pluck = $pluck === 'code' ? 'slug' : $pluck;
|
294 |
+
|
295 |
// https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/
|
296 |
$languages = pll_languages_list(array(
|
297 |
'hide_empty' => false,
|
298 |
'fields' => $pluck
|
299 |
));
|
300 |
+
|
301 |
return $languages;
|
302 |
+
|
303 |
+
}
|
304 |
|
305 |
+
// all
|
306 |
case '':
|
307 |
+
case 'all': {
|
308 |
+
|
309 |
$languages = PLL_Settings::get_predefined_languages();
|
310 |
+
|
311 |
if($pluck){
|
312 |
$languages = wp_list_pluck($languages, $pluck, true);
|
313 |
}
|
314 |
|
315 |
return $languages;
|
316 |
|
317 |
+
}
|
318 |
+
|
319 |
}
|
320 |
|
321 |
return $languages;
|
322 |
|
323 |
}
|
324 |
|
325 |
+
|
326 |
/**
|
327 |
+
* set_options_post_id
|
328 |
+
*
|
329 |
+
* @param $post_id
|
330 |
+
* @param $original_post_id
|
331 |
+
*
|
332 |
+
* @return mixed|string
|
333 |
*/
|
334 |
function set_options_post_id($post_id, $original_post_id){
|
335 |
|
336 |
+
// bail early if original post id is 'options' ||'option'
|
337 |
if(!is_string($post_id)){
|
338 |
return $post_id;
|
339 |
}
|
340 |
|
341 |
$data = acf_get_post_id_info($post_id);
|
342 |
|
343 |
+
// bail early if post id isn't an option type
|
344 |
if($data['type'] !== 'option'){
|
345 |
return $post_id;
|
346 |
}
|
347 |
|
348 |
+
// options Exception
|
349 |
// $post_id already translated during the native acf/validate_post_id
|
350 |
if(in_array($original_post_id, array('options', 'option'))){
|
351 |
|
352 |
+
// exclude filter
|
353 |
$exclude = apply_filters('acfe/modules/multilang/exclude_options', array());
|
354 |
|
355 |
if(in_array('options', $exclude)){
|
360 |
|
361 |
}
|
362 |
|
363 |
+
// bail early if no Options Page found with that post id
|
364 |
+
if(!$this->is_options_page($post_id)){
|
365 |
return $post_id;
|
366 |
+
}
|
367 |
|
368 |
+
// bail early if already localized: 'my-options_en_US'
|
369 |
if($this->is_localized($post_id)){
|
370 |
return $post_id;
|
371 |
}
|
372 |
|
373 |
+
// append current language to post id
|
374 |
$dl = acf_get_setting('default_language');
|
375 |
$cl = acf_get_setting('current_language');
|
376 |
|
377 |
+
// add Language
|
378 |
if($cl && $cl !== $dl){
|
379 |
$post_id .= '_' . $cl;
|
380 |
}
|
383 |
|
384 |
}
|
385 |
|
386 |
+
|
387 |
+
/**
|
388 |
+
* is_localized
|
389 |
+
*
|
390 |
+
* @param $post_id
|
391 |
+
*
|
392 |
+
* @return bool
|
393 |
+
*/
|
394 |
function is_localized($post_id){
|
395 |
|
396 |
+
// check if post id ends with '-en_US' || '_en_US' || '-en' || '_en'
|
397 |
// https://regex101.com/r/oMsyeL/4
|
398 |
preg_match('/(?P<locale>[_\-][A-Za-z]{2}_[A-Za-z]{2})$|(?P<code>[_\-][A-Za-z]{2})$/', $post_id, $matches);
|
399 |
|
401 |
return false;
|
402 |
}
|
403 |
|
404 |
+
// cleanup matches
|
405 |
$lang = array();
|
406 |
|
407 |
foreach($matches as $key => $val){
|
421 |
return false;
|
422 |
}
|
423 |
|
424 |
+
// get wpml/polylang languages list
|
425 |
$languages = $this->get_languages($lang['type']);
|
426 |
$languages = array_map('strtolower', $languages);
|
427 |
|
428 |
+
// compare matches vs wpml/polylang languages list
|
429 |
return in_array($lang['lang'], $languages);
|
430 |
|
431 |
}
|
432 |
|
433 |
+
|
434 |
+
/**
|
435 |
+
* is_options_page
|
436 |
+
*
|
437 |
+
* @param $post_id
|
438 |
+
*
|
439 |
+
* @return bool
|
440 |
+
*/
|
441 |
function is_options_page($post_id){
|
442 |
|
443 |
// check if post id already in options pages
|
445 |
return true;
|
446 |
}
|
447 |
|
448 |
+
// get acf options pages
|
449 |
$options_pages = acf_get_array(acf_get_options_pages());
|
450 |
$list = wp_list_pluck($options_pages, 'post_id', true);
|
451 |
|
452 |
+
// add 'post type list' location
|
453 |
$post_types = acf_get_post_types(array(
|
454 |
'show_ui' => 1,
|
455 |
'exclude' => array('attachment')
|
459 |
$list[] = "{$post_type}_options";
|
460 |
}
|
461 |
|
462 |
+
// add 'taxonomy list' location
|
463 |
$taxonomies = acf_get_taxonomies();
|
464 |
|
465 |
foreach($taxonomies as $taxonomy){
|
493 |
|
494 |
}
|
495 |
|
496 |
+
|
497 |
+
/**
|
498 |
+
* get_languages
|
499 |
+
*
|
500 |
+
* @param $pluck
|
501 |
+
* @param $type
|
502 |
+
* @param $plugin
|
503 |
+
*
|
504 |
+
* @return array|int[]|mixed|string[]|null
|
505 |
+
*/
|
506 |
function get_languages($pluck = '', $type = '', $plugin = ''){
|
507 |
|
508 |
+
// polylang
|
509 |
if($this->is_polylang || $plugin === 'polylang'){
|
510 |
return $this->polylang_get_languages($pluck, $type);
|
511 |
|
512 |
+
// wpml
|
513 |
}elseif($this->is_wpml || $plugin === 'wpml'){
|
514 |
return $this->wpml_get_languages($pluck, $type);
|
515 |
}
|
518 |
|
519 |
}
|
520 |
|
521 |
+
|
522 |
+
/**
|
523 |
+
* options_page_message
|
524 |
+
*/
|
525 |
function options_page_message(){
|
526 |
|
527 |
$default_language = acf_get_setting('default_language');
|
529 |
|
530 |
$message = false;
|
531 |
|
532 |
+
// polylang
|
533 |
if($this->is_polylang){
|
534 |
|
535 |
if(!$current_language){
|
572 |
|
573 |
}
|
574 |
|
575 |
+
// wpml
|
576 |
elseif($this->is_wpml){
|
577 |
|
578 |
if($current_language === 'all'){
|
629 |
|
630 |
endif;
|
631 |
|
632 |
+
|
633 |
+
/**
|
634 |
+
* acfe_is_multilang
|
635 |
+
*
|
636 |
+
* @return mixed
|
637 |
*/
|
638 |
function acfe_is_multilang(){
|
639 |
return acf_get_instance('acfe_multilang')->is_multilang;
|
640 |
}
|
641 |
|
642 |
+
|
643 |
+
/**
|
644 |
+
* acfe_get_multilang
|
645 |
+
*
|
646 |
+
* @return array
|
647 |
*/
|
648 |
function acfe_get_multilang(){
|
649 |
|
661 |
|
662 |
}
|
663 |
|
664 |
+
|
665 |
+
/**
|
666 |
+
* acfe_get_multilang_languages
|
667 |
+
*
|
668 |
+
* @param $pluck
|
669 |
+
* @param $type
|
670 |
+
* @param $plugin
|
671 |
+
*
|
672 |
+
* @return mixed
|
673 |
*/
|
674 |
function acfe_get_multilang_languages($pluck = '', $type = '', $plugin = ''){
|
675 |
return acf_get_instance('acfe_multilang')->get_languages($pluck, $type, $plugin);
|
676 |
}
|
677 |
|
678 |
+
|
679 |
+
/**
|
680 |
+
* acfe_is_polylang
|
681 |
+
*
|
682 |
+
* @return mixed
|
683 |
*/
|
684 |
function acfe_is_polylang(){
|
685 |
return acf_get_instance('acfe_multilang')->is_polylang;
|
686 |
}
|
687 |
|
688 |
+
|
689 |
+
/**
|
690 |
+
* acfe_is_wpml
|
691 |
+
*
|
692 |
+
* @return mixed
|
693 |
*/
|
694 |
function acfe_is_wpml(){
|
695 |
return acf_get_instance('acfe_multilang')->is_wpml;
|
696 |
}
|
697 |
|
698 |
+
|
699 |
+
/**
|
700 |
+
* acfe_get_post_lang
|
701 |
+
*
|
702 |
+
* @param $post_id
|
703 |
+
* @param $field
|
704 |
+
*
|
705 |
+
* @return false|mixed|string
|
706 |
*/
|
707 |
function acfe_get_post_lang($post_id, $field = false){
|
708 |
|
709 |
+
// bail early if not multilang
|
710 |
if(!acfe_is_multilang()){
|
711 |
return false;
|
712 |
}
|
713 |
|
714 |
+
// polylang
|
715 |
if(acfe_is_polylang()){
|
716 |
|
717 |
+
// default field
|
718 |
if(!$field){
|
719 |
$field = 'locale';
|
720 |
}
|
721 |
|
722 |
return pll_get_post_language($post_id, $field);
|
723 |
|
724 |
+
// wpml
|
725 |
}elseif(acfe_is_wpml()){
|
726 |
|
727 |
$post_lang = apply_filters('wpml_post_language_details', NULL, $post_id);
|
728 |
|
729 |
+
// default field
|
730 |
if(!$field){
|
731 |
$field = 'slug';
|
732 |
}
|
749 |
|
750 |
}
|
751 |
|
752 |
+
|
753 |
+
/**
|
754 |
+
* acfe_get_post_translated
|
755 |
+
*
|
756 |
+
* @param $post_id
|
757 |
+
* @param $lang
|
758 |
+
*
|
759 |
+
* @return false|int|mixed|null
|
760 |
*/
|
761 |
function acfe_get_post_translated($post_id, $lang = false){
|
762 |
|
763 |
+
// bail early if not multilang
|
764 |
if(!acfe_is_multilang()){
|
765 |
return $post_id;
|
766 |
}
|
767 |
|
768 |
+
// default
|
769 |
$translated_post_id = $post_id;
|
770 |
|
771 |
+
// polylang
|
772 |
if(acfe_is_polylang()){
|
773 |
$translated_post_id = pll_get_post($post_id, $lang);
|
774 |
|
775 |
+
// wpml
|
776 |
}elseif(acfe_is_wpml()){
|
777 |
$translated_post_id = apply_filters('wpml_object_id', $post_id, 'post', false, $lang);
|
778 |
}
|
786 |
|
787 |
}
|
788 |
|
789 |
+
|
790 |
+
/**
|
791 |
+
* acfe_get_post_translated_default
|
792 |
+
*
|
793 |
+
* @param $post_id
|
794 |
+
*
|
795 |
+
* @return int|mixed
|
796 |
*/
|
797 |
function acfe_get_post_translated_default($post_id){
|
798 |
|
799 |
+
// get translated post id
|
800 |
$translated_post_id = acfe_get_post_translated($post_id, acf_get_setting('default_language'));
|
801 |
|
802 |
+
// fallback to current
|
803 |
if(empty($translated_post_id)){
|
804 |
return $post_id;
|
805 |
}
|
808 |
|
809 |
}
|
810 |
|
811 |
+
|
812 |
+
/**
|
813 |
+
* acfe_translate
|
814 |
+
*
|
815 |
+
* @param $string
|
816 |
+
* @param $name
|
817 |
+
* @param $textdomain
|
818 |
+
*
|
819 |
+
* @return mixed|string|null
|
820 |
*/
|
821 |
function acfe_translate($string, $name = false, $textdomain = 'acfe'){
|
822 |
|
823 |
+
// bail early
|
824 |
if(!acfe_is_multilang() || empty($string)){
|
825 |
return __($string, $textdomain);
|
826 |
}
|
827 |
|
828 |
+
// name compatibility
|
829 |
if(empty($name)){
|
830 |
$name = $string;
|
831 |
}
|
832 |
|
833 |
+
// wpml
|
834 |
+
// translate (register string during save)
|
835 |
if(acfe_is_wpml()){
|
|
|
|
|
836 |
return apply_filters('wpml_translate_single_string', $string, $textdomain, $name);
|
|
|
837 |
}
|
838 |
|
839 |
+
// polyLang
|
840 |
if(acfe_is_polylang()){
|
841 |
|
842 |
+
// register string
|
843 |
pll_register_string($name, $string, $textdomain);
|
844 |
|
845 |
+
// translate
|
846 |
return pll__($string);
|
847 |
|
848 |
}
|
849 |
|
850 |
+
// default translate
|
851 |
return __($string, $textdomain);
|
852 |
|
853 |
}
|
854 |
|
855 |
+
|
856 |
+
/**
|
857 |
+
* acfe__
|
858 |
+
*
|
859 |
+
* @param $string
|
860 |
+
* @param $name
|
861 |
+
* @param $textdomain
|
862 |
+
*
|
863 |
+
* @deprecated
|
864 |
+
*
|
865 |
+
* @return mixed|string|null
|
866 |
*/
|
867 |
function acfe__($string, $name = false, $textdomain = 'acfe'){
|
868 |
return acfe_translate($string, $name, $textdomain);
|
869 |
}
|
870 |
|
871 |
+
|
872 |
+
/**
|
873 |
+
* acfe__e
|
874 |
+
*
|
875 |
+
* @param $string
|
876 |
+
* @param $name
|
877 |
+
* @param $textdomain
|
878 |
+
*
|
879 |
+
* @deprecated
|
880 |
*/
|
881 |
function acfe__e($string, $name = false, $textdomain = 'acfe'){
|
882 |
echo acfe_translate($string, $name, $textdomain);
|
includes/screens/screen-attachment.php
CHANGED
@@ -12,7 +12,7 @@ class acfe_screen_attachment{
|
|
12 |
var $post_id;
|
13 |
|
14 |
/**
|
15 |
-
*
|
16 |
*/
|
17 |
function __construct(){
|
18 |
|
12 |
var $post_id;
|
13 |
|
14 |
/**
|
15 |
+
* construct
|
16 |
*/
|
17 |
function __construct(){
|
18 |
|
includes/settings.php
CHANGED
@@ -7,22 +7,40 @@ if(!defined('ABSPATH')){
|
|
7 |
if(!class_exists('acfe_settings')):
|
8 |
|
9 |
class acfe_settings{
|
10 |
-
|
|
|
11 |
public $settings = array();
|
12 |
|
13 |
-
|
14 |
-
*
|
15 |
*/
|
16 |
function __construct(){
|
17 |
-
|
18 |
$this->settings = get_option('acfe', array());
|
19 |
-
|
20 |
}
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
function get($selector = null, $default = null){
|
23 |
return $this->array_get($this->settings, $selector, $default);
|
24 |
}
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
function set($selector = null, $value = null, $append = false){
|
27 |
|
28 |
if($value === null){
|
@@ -42,6 +60,14 @@ class acfe_settings{
|
|
42 |
|
43 |
}
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
function clear($selector = null){
|
46 |
|
47 |
$this->array_clear($this->settings, $selector);
|
@@ -51,13 +77,21 @@ class acfe_settings{
|
|
51 |
|
52 |
}
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
function delete($selector = null){
|
55 |
|
56 |
-
//
|
57 |
if(strpos($selector, '.') === false){
|
58 |
unset($this->settings[ $selector ]);
|
59 |
|
60 |
-
//
|
61 |
}else{
|
62 |
$this->array_remove($this->settings, $selector);
|
63 |
}
|
@@ -68,13 +102,22 @@ class acfe_settings{
|
|
68 |
|
69 |
}
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
function append($selector = null, $value = null){
|
72 |
|
73 |
if($selector === null && $value === null){
|
74 |
return false;
|
75 |
}
|
76 |
|
77 |
-
//
|
78 |
if($value === null){
|
79 |
|
80 |
$value = $selector;
|
@@ -86,6 +129,16 @@ class acfe_settings{
|
|
86 |
|
87 |
}
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
function array_get($array, $key, $default = null){
|
90 |
|
91 |
if(empty($key)){
|
@@ -121,6 +174,16 @@ class acfe_settings{
|
|
121 |
|
122 |
}
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
function array_set(&$array, $key, $value){
|
125 |
|
126 |
if(empty($key)){
|
@@ -147,6 +210,16 @@ class acfe_settings{
|
|
147 |
|
148 |
}
|
149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
function array_append(&$array, $key, $value){
|
151 |
|
152 |
$get = $this->array_get($array, $key);
|
@@ -162,6 +235,15 @@ class acfe_settings{
|
|
162 |
|
163 |
}
|
164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
function array_clear(&$array, $key){
|
166 |
|
167 |
$get = $this->array_get($array, $key);
|
@@ -182,6 +264,13 @@ class acfe_settings{
|
|
182 |
|
183 |
}
|
184 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
function array_remove(&$array, $keys){
|
186 |
|
187 |
$original =& $array;
|
@@ -209,6 +298,10 @@ class acfe_settings{
|
|
209 |
|
210 |
}
|
211 |
|
|
|
|
|
|
|
|
|
212 |
function update(){
|
213 |
update_option('acfe', $this->settings, 'true');
|
214 |
}
|
@@ -217,10 +310,28 @@ class acfe_settings{
|
|
217 |
|
218 |
endif;
|
219 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
function acfe_get_settings($selector = null, $default = null){
|
221 |
return acf_get_instance('acfe_settings')->get($selector, $default);
|
222 |
}
|
223 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
function acfe_update_settings($selector = null, $value = null){
|
225 |
|
226 |
if($value === null){
|
@@ -232,6 +343,14 @@ function acfe_update_settings($selector = null, $value = null){
|
|
232 |
|
233 |
}
|
234 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
function acfe_delete_settings($selector = null){
|
236 |
return acf_get_instance('acfe_settings')->delete($selector);
|
237 |
}
|
7 |
if(!class_exists('acfe_settings')):
|
8 |
|
9 |
class acfe_settings{
|
10 |
+
|
11 |
+
// vars
|
12 |
public $settings = array();
|
13 |
|
14 |
+
/**
|
15 |
+
* construct
|
16 |
*/
|
17 |
function __construct(){
|
|
|
18 |
$this->settings = get_option('acfe', array());
|
|
|
19 |
}
|
20 |
|
21 |
+
|
22 |
+
/**
|
23 |
+
* get
|
24 |
+
*
|
25 |
+
* @param $selector
|
26 |
+
* @param $default
|
27 |
+
*
|
28 |
+
* @return mixed|null
|
29 |
+
*/
|
30 |
function get($selector = null, $default = null){
|
31 |
return $this->array_get($this->settings, $selector, $default);
|
32 |
}
|
33 |
|
34 |
+
|
35 |
+
/**
|
36 |
+
* set
|
37 |
+
*
|
38 |
+
* @param $selector
|
39 |
+
* @param $value
|
40 |
+
* @param $append
|
41 |
+
*
|
42 |
+
* @return $this|false
|
43 |
+
*/
|
44 |
function set($selector = null, $value = null, $append = false){
|
45 |
|
46 |
if($value === null){
|
60 |
|
61 |
}
|
62 |
|
63 |
+
|
64 |
+
/**
|
65 |
+
* clear
|
66 |
+
*
|
67 |
+
* @param $selector
|
68 |
+
*
|
69 |
+
* @return $this
|
70 |
+
*/
|
71 |
function clear($selector = null){
|
72 |
|
73 |
$this->array_clear($this->settings, $selector);
|
77 |
|
78 |
}
|
79 |
|
80 |
+
|
81 |
+
/**
|
82 |
+
* delete
|
83 |
+
*
|
84 |
+
* @param $selector
|
85 |
+
*
|
86 |
+
* @return $this
|
87 |
+
*/
|
88 |
function delete($selector = null){
|
89 |
|
90 |
+
// single
|
91 |
if(strpos($selector, '.') === false){
|
92 |
unset($this->settings[ $selector ]);
|
93 |
|
94 |
+
// array
|
95 |
}else{
|
96 |
$this->array_remove($this->settings, $selector);
|
97 |
}
|
102 |
|
103 |
}
|
104 |
|
105 |
+
|
106 |
+
/**
|
107 |
+
* append
|
108 |
+
*
|
109 |
+
* @param $selector
|
110 |
+
* @param $value
|
111 |
+
*
|
112 |
+
* @return $this|false
|
113 |
+
*/
|
114 |
function append($selector = null, $value = null){
|
115 |
|
116 |
if($selector === null && $value === null){
|
117 |
return false;
|
118 |
}
|
119 |
|
120 |
+
// allow simple append without selector
|
121 |
if($value === null){
|
122 |
|
123 |
$value = $selector;
|
129 |
|
130 |
}
|
131 |
|
132 |
+
|
133 |
+
/**
|
134 |
+
* array_get
|
135 |
+
*
|
136 |
+
* @param $array
|
137 |
+
* @param $key
|
138 |
+
* @param $default
|
139 |
+
*
|
140 |
+
* @return mixed|null
|
141 |
+
*/
|
142 |
function array_get($array, $key, $default = null){
|
143 |
|
144 |
if(empty($key)){
|
174 |
|
175 |
}
|
176 |
|
177 |
+
|
178 |
+
/**
|
179 |
+
* array_set
|
180 |
+
*
|
181 |
+
* @param $array
|
182 |
+
* @param $key
|
183 |
+
* @param $value
|
184 |
+
*
|
185 |
+
* @return array|mixed
|
186 |
+
*/
|
187 |
function array_set(&$array, $key, $value){
|
188 |
|
189 |
if(empty($key)){
|
210 |
|
211 |
}
|
212 |
|
213 |
+
|
214 |
+
/**
|
215 |
+
* array_append
|
216 |
+
*
|
217 |
+
* @param $array
|
218 |
+
* @param $key
|
219 |
+
* @param $value
|
220 |
+
*
|
221 |
+
* @return mixed
|
222 |
+
*/
|
223 |
function array_append(&$array, $key, $value){
|
224 |
|
225 |
$get = $this->array_get($array, $key);
|
235 |
|
236 |
}
|
237 |
|
238 |
+
|
239 |
+
/**
|
240 |
+
* array_clear
|
241 |
+
*
|
242 |
+
* @param $array
|
243 |
+
* @param $key
|
244 |
+
*
|
245 |
+
* @return mixed
|
246 |
+
*/
|
247 |
function array_clear(&$array, $key){
|
248 |
|
249 |
$get = $this->array_get($array, $key);
|
264 |
|
265 |
}
|
266 |
|
267 |
+
|
268 |
+
/**
|
269 |
+
* array_remove
|
270 |
+
*
|
271 |
+
* @param $array
|
272 |
+
* @param $keys
|
273 |
+
*/
|
274 |
function array_remove(&$array, $keys){
|
275 |
|
276 |
$original =& $array;
|
298 |
|
299 |
}
|
300 |
|
301 |
+
|
302 |
+
/**
|
303 |
+
* update
|
304 |
+
*/
|
305 |
function update(){
|
306 |
update_option('acfe', $this->settings, 'true');
|
307 |
}
|
310 |
|
311 |
endif;
|
312 |
|
313 |
+
|
314 |
+
/**
|
315 |
+
* acfe_get_settings
|
316 |
+
*
|
317 |
+
* @param $selector
|
318 |
+
* @param $default
|
319 |
+
*
|
320 |
+
* @return mixed
|
321 |
+
*/
|
322 |
function acfe_get_settings($selector = null, $default = null){
|
323 |
return acf_get_instance('acfe_settings')->get($selector, $default);
|
324 |
}
|
325 |
|
326 |
+
|
327 |
+
/**
|
328 |
+
* acfe_update_settings
|
329 |
+
*
|
330 |
+
* @param $selector
|
331 |
+
* @param $value
|
332 |
+
*
|
333 |
+
* @return mixed
|
334 |
+
*/
|
335 |
function acfe_update_settings($selector = null, $value = null){
|
336 |
|
337 |
if($value === null){
|
343 |
|
344 |
}
|
345 |
|
346 |
+
|
347 |
+
/**
|
348 |
+
* acfe_delete_settings
|
349 |
+
*
|
350 |
+
* @param $selector
|
351 |
+
*
|
352 |
+
* @return mixed
|
353 |
+
*/
|
354 |
function acfe_delete_settings($selector = null){
|
355 |
return acf_get_instance('acfe_settings')->delete($selector);
|
356 |
}
|
includes/upgrades.php
CHANGED
@@ -8,6 +8,7 @@ if(!class_exists('acfe_upgrades')):
|
|
8 |
|
9 |
class acfe_upgrades{
|
10 |
|
|
|
11 |
public $upgrades = array(
|
12 |
'do_0_8_5' => '0.8.5',
|
13 |
'do_0_8_6' => '0.8.6',
|
@@ -15,6 +16,7 @@ class acfe_upgrades{
|
|
15 |
'do_reset' => '0.0',
|
16 |
);
|
17 |
|
|
|
18 |
public $model = array(
|
19 |
'version' => ACFE_VERSION,
|
20 |
'modules' => array(
|
@@ -24,20 +26,25 @@ class acfe_upgrades{
|
|
24 |
'taxonomies' => array(),
|
25 |
)
|
26 |
);
|
27 |
-
|
|
|
|
|
|
|
28 |
function __construct(){
|
29 |
|
30 |
$db_version = acfe_get_settings('version');
|
31 |
|
32 |
-
//
|
33 |
-
if(acf_version_compare($db_version, '>=', ACFE_VERSION))
|
34 |
return;
|
|
|
35 |
|
36 |
-
//
|
37 |
foreach($this->upgrades as $upgrade_function => $upgrade_version){
|
38 |
|
39 |
-
if(acf_version_compare($upgrade_version, '<=', $db_version))
|
40 |
continue;
|
|
|
41 |
|
42 |
add_action('acf/init', array($this, $upgrade_function), 999);
|
43 |
|
@@ -52,12 +59,12 @@ class acfe_upgrades{
|
|
52 |
|
53 |
}
|
54 |
|
55 |
-
|
56 |
-
|
|
|
57 |
*/
|
58 |
function do_reset(){
|
59 |
|
60 |
-
// Modules
|
61 |
acf_get_instance('acfe_dynamic_block_types')->reset();
|
62 |
acf_get_instance('acfe_dynamic_options_pages')->reset();
|
63 |
acf_get_instance('acfe_dynamic_post_types')->reset();
|
@@ -65,8 +72,9 @@ class acfe_upgrades{
|
|
65 |
|
66 |
}
|
67 |
|
68 |
-
|
69 |
-
|
|
|
70 |
*/
|
71 |
function do_0_8_8(){
|
72 |
|
@@ -80,9 +88,7 @@ class acfe_upgrades{
|
|
80 |
|
81 |
foreach($tasks as $task){
|
82 |
|
83 |
-
|
84 |
-
* Block Types
|
85 |
-
*/
|
86 |
if($task === 'block_types'){
|
87 |
|
88 |
$old = acfe_get_settings('modules.dynamic_block_type.data', array());
|
@@ -100,9 +106,7 @@ class acfe_upgrades{
|
|
100 |
|
101 |
}
|
102 |
|
103 |
-
|
104 |
-
* Options Pages
|
105 |
-
*/
|
106 |
elseif($task === 'options_pages'){
|
107 |
|
108 |
$old = acfe_get_settings('modules.dynamic_option.data', array());
|
@@ -120,9 +124,7 @@ class acfe_upgrades{
|
|
120 |
|
121 |
}
|
122 |
|
123 |
-
|
124 |
-
* Post Types
|
125 |
-
*/
|
126 |
elseif($task === 'post_types'){
|
127 |
|
128 |
$old = acfe_get_settings('modules.dynamic_post_type.data', array());
|
@@ -140,9 +142,7 @@ class acfe_upgrades{
|
|
140 |
|
141 |
}
|
142 |
|
143 |
-
|
144 |
-
* Taxonomies
|
145 |
-
*/
|
146 |
elseif($task === 'taxonomies'){
|
147 |
|
148 |
$old = acfe_get_settings('modules.dynamic_taxonomy.data', array());
|
@@ -160,9 +160,7 @@ class acfe_upgrades{
|
|
160 |
|
161 |
}
|
162 |
|
163 |
-
|
164 |
-
* Clean
|
165 |
-
*/
|
166 |
elseif($task === 'clean'){
|
167 |
|
168 |
acfe_delete_settings('modules.author');
|
@@ -183,8 +181,9 @@ class acfe_upgrades{
|
|
183 |
|
184 |
}
|
185 |
|
186 |
-
|
187 |
-
|
|
|
188 |
*/
|
189 |
function do_0_8_6(){
|
190 |
|
@@ -273,8 +272,9 @@ class acfe_upgrades{
|
|
273 |
|
274 |
}
|
275 |
|
276 |
-
|
277 |
-
|
|
|
278 |
*/
|
279 |
function do_0_8_5(){
|
280 |
|
@@ -288,9 +288,7 @@ class acfe_upgrades{
|
|
288 |
|
289 |
foreach($tasks as $task){
|
290 |
|
291 |
-
|
292 |
-
* Forms
|
293 |
-
*/
|
294 |
if($task === 'forms'){
|
295 |
|
296 |
// Retrieve all forms posts
|
@@ -707,9 +705,7 @@ class acfe_upgrades{
|
|
707 |
|
708 |
}
|
709 |
|
710 |
-
|
711 |
-
* Post Types
|
712 |
-
*/
|
713 |
elseif($task === 'post_types'){
|
714 |
|
715 |
$old = get_option('acfe_dynamic_post_types', array());
|
@@ -727,9 +723,7 @@ class acfe_upgrades{
|
|
727 |
|
728 |
}
|
729 |
|
730 |
-
|
731 |
-
* Taxonomies
|
732 |
-
*/
|
733 |
elseif($task === 'taxonomies'){
|
734 |
|
735 |
$old = get_option('acfe_dynamic_taxonomies', array());
|
@@ -747,9 +741,7 @@ class acfe_upgrades{
|
|
747 |
|
748 |
}
|
749 |
|
750 |
-
|
751 |
-
* Block Types
|
752 |
-
*/
|
753 |
elseif($task === 'block_types'){
|
754 |
|
755 |
$old = get_option('acfe_dynamic_block_types', array());
|
@@ -767,9 +759,7 @@ class acfe_upgrades{
|
|
767 |
|
768 |
}
|
769 |
|
770 |
-
|
771 |
-
* Option Pages
|
772 |
-
*/
|
773 |
elseif($task === 'options_pages'){
|
774 |
|
775 |
$old = get_option('acfe_dynamic_options_pages', array());
|
@@ -791,6 +781,15 @@ class acfe_upgrades{
|
|
791 |
|
792 |
}
|
793 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
794 |
function parse_args_r(&$a, $b){
|
795 |
|
796 |
$a = (array) $a;
|
8 |
|
9 |
class acfe_upgrades{
|
10 |
|
11 |
+
// upgrades
|
12 |
public $upgrades = array(
|
13 |
'do_0_8_5' => '0.8.5',
|
14 |
'do_0_8_6' => '0.8.6',
|
16 |
'do_reset' => '0.0',
|
17 |
);
|
18 |
|
19 |
+
// model
|
20 |
public $model = array(
|
21 |
'version' => ACFE_VERSION,
|
22 |
'modules' => array(
|
26 |
'taxonomies' => array(),
|
27 |
)
|
28 |
);
|
29 |
+
|
30 |
+
/**
|
31 |
+
* construct
|
32 |
+
*/
|
33 |
function __construct(){
|
34 |
|
35 |
$db_version = acfe_get_settings('version');
|
36 |
|
37 |
+
// bail early
|
38 |
+
if(acf_version_compare($db_version, '>=', ACFE_VERSION)){
|
39 |
return;
|
40 |
+
}
|
41 |
|
42 |
+
// loop upgrades
|
43 |
foreach($this->upgrades as $upgrade_function => $upgrade_version){
|
44 |
|
45 |
+
if(acf_version_compare($upgrade_version, '<=', $db_version)){
|
46 |
continue;
|
47 |
+
}
|
48 |
|
49 |
add_action('acf/init', array($this, $upgrade_function), 999);
|
50 |
|
59 |
|
60 |
}
|
61 |
|
62 |
+
|
63 |
+
/**
|
64 |
+
* do_reset
|
65 |
*/
|
66 |
function do_reset(){
|
67 |
|
|
|
68 |
acf_get_instance('acfe_dynamic_block_types')->reset();
|
69 |
acf_get_instance('acfe_dynamic_options_pages')->reset();
|
70 |
acf_get_instance('acfe_dynamic_post_types')->reset();
|
72 |
|
73 |
}
|
74 |
|
75 |
+
|
76 |
+
/**
|
77 |
+
* do_0_8_8
|
78 |
*/
|
79 |
function do_0_8_8(){
|
80 |
|
88 |
|
89 |
foreach($tasks as $task){
|
90 |
|
91 |
+
// block types
|
|
|
|
|
92 |
if($task === 'block_types'){
|
93 |
|
94 |
$old = acfe_get_settings('modules.dynamic_block_type.data', array());
|
106 |
|
107 |
}
|
108 |
|
109 |
+
// options pages
|
|
|
|
|
110 |
elseif($task === 'options_pages'){
|
111 |
|
112 |
$old = acfe_get_settings('modules.dynamic_option.data', array());
|
124 |
|
125 |
}
|
126 |
|
127 |
+
// post types
|
|
|
|
|
128 |
elseif($task === 'post_types'){
|
129 |
|
130 |
$old = acfe_get_settings('modules.dynamic_post_type.data', array());
|
142 |
|
143 |
}
|
144 |
|
145 |
+
// taxonomies
|
|
|
|
|
146 |
elseif($task === 'taxonomies'){
|
147 |
|
148 |
$old = acfe_get_settings('modules.dynamic_taxonomy.data', array());
|
160 |
|
161 |
}
|
162 |
|
163 |
+
// clean
|
|
|
|
|
164 |
elseif($task === 'clean'){
|
165 |
|
166 |
acfe_delete_settings('modules.author');
|
181 |
|
182 |
}
|
183 |
|
184 |
+
|
185 |
+
/**
|
186 |
+
* do_0_8_6
|
187 |
*/
|
188 |
function do_0_8_6(){
|
189 |
|
272 |
|
273 |
}
|
274 |
|
275 |
+
|
276 |
+
/**
|
277 |
+
* do_0_8_5
|
278 |
*/
|
279 |
function do_0_8_5(){
|
280 |
|
288 |
|
289 |
foreach($tasks as $task){
|
290 |
|
291 |
+
// forms
|
|
|
|
|
292 |
if($task === 'forms'){
|
293 |
|
294 |
// Retrieve all forms posts
|
705 |
|
706 |
}
|
707 |
|
708 |
+
// post types
|
|
|
|
|
709 |
elseif($task === 'post_types'){
|
710 |
|
711 |
$old = get_option('acfe_dynamic_post_types', array());
|
723 |
|
724 |
}
|
725 |
|
726 |
+
// taxonomies
|
|
|
|
|
727 |
elseif($task === 'taxonomies'){
|
728 |
|
729 |
$old = get_option('acfe_dynamic_taxonomies', array());
|
741 |
|
742 |
}
|
743 |
|
744 |
+
// block types
|
|
|
|
|
745 |
elseif($task === 'block_types'){
|
746 |
|
747 |
$old = get_option('acfe_dynamic_block_types', array());
|
759 |
|
760 |
}
|
761 |
|
762 |
+
// options pages
|
|
|
|
|
763 |
elseif($task === 'options_pages'){
|
764 |
|
765 |
$old = get_option('acfe_dynamic_options_pages', array());
|
781 |
|
782 |
}
|
783 |
|
784 |
+
|
785 |
+
/**
|
786 |
+
* parse_args_r
|
787 |
+
*
|
788 |
+
* @param $a
|
789 |
+
* @param $b
|
790 |
+
*
|
791 |
+
* @return array
|
792 |
+
*/
|
793 |
function parse_args_r(&$a, $b){
|
794 |
|
795 |
$a = (array) $a;
|
lang/acfe-fr_FR.mo
CHANGED
Binary file
|
lang/acfe-fr_FR.po
CHANGED
@@ -1,4635 +1,4695 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Advanced Custom Fields: Extended\n"
|
4 |
-
"POT-Creation-Date: 2022-
|
5 |
-
"PO-Revision-Date: 2022-
|
6 |
-
"Last-Translator: \n"
|
7 |
-
"Language-Team: https://www.acf-extended.com\n"
|
8 |
-
"Language: fr_FR\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
13 |
-
"X-Generator: Poedit 3.
|
14 |
-
"X-Poedit-Basepath: ..\n"
|
15 |
-
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
|
16 |
-
"X-Poedit-WPHeader: acf-extended.php\n"
|
17 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
-
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
19 |
-
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
20 |
-
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
21 |
-
"X-Poedit-SearchPath-0: .\n"
|
22 |
-
"X-Poedit-SearchPathExcluded-0: *.min.js\n"
|
23 |
-
"X-Poedit-SearchPathExcluded-1: .build\n"
|
24 |
-
|
25 |
-
#:
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
#:
|
39 |
-
#: includes/
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
#:
|
44 |
-
#:
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
#:
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
#: includes/
|
56 |
-
#: includes/modules/
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
#: includes/
|
61 |
-
#: includes/modules/
|
62 |
-
#: pro/includes/
|
63 |
-
msgid "
|
64 |
-
msgstr "
|
65 |
-
|
66 |
-
#:
|
67 |
-
msgid "
|
68 |
-
msgstr "
|
69 |
-
|
70 |
-
#: includes/acfe-
|
71 |
-
#: includes/
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
#: includes/
|
78 |
-
msgid "
|
79 |
-
msgstr "
|
80 |
-
|
81 |
-
#: includes/acfe-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
#: includes/
|
87 |
-
#: includes/field-groups/field-groups.php:
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
#: includes/
|
93 |
-
msgid "
|
94 |
-
msgstr "
|
95 |
-
|
96 |
-
#: includes/acfe-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
#:
|
112 |
-
msgid "
|
113 |
-
msgstr "
|
114 |
-
|
115 |
-
#: includes/
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
#: includes/admin/
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
msgstr
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
#: includes/admin/tools/
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
msgstr "
|
158 |
-
|
159 |
-
#: includes/admin/tools/field-groups-local.php:
|
160 |
-
msgid ""
|
161 |
-
"
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
"
|
166 |
-
|
167 |
-
"
|
168 |
-
"
|
169 |
-
|
170 |
-
|
171 |
-
"
|
172 |
-
|
173 |
-
|
174 |
-
#: includes/admin/tools/
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
#: includes/admin/tools/
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
#: includes/admin/tools/
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
#:
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
#: includes/admin/tools/
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
"
|
227 |
-
"
|
228 |
-
|
229 |
-
#: includes/admin/tools/module-
|
230 |
-
#: pro/
|
231 |
-
#: pro/includes/admin/tools/settings-
|
232 |
-
msgid "
|
233 |
-
msgstr "
|
234 |
-
|
235 |
-
#: includes/admin/tools/module-
|
236 |
-
#: pro/includes/admin/tools/settings-
|
237 |
-
msgid "
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
#:
|
246 |
-
#: pro/includes/admin/tools/settings-import.php:
|
247 |
-
msgid "
|
248 |
-
msgstr "
|
249 |
-
|
250 |
-
#: includes/admin/tools/module-import.php:
|
251 |
-
#: pro/includes/admin/tools/settings-import.php:
|
252 |
-
msgid "
|
253 |
-
msgstr "
|
254 |
-
|
255 |
-
#: includes/admin/tools/module-import.php:
|
256 |
-
#: pro/includes/admin/tools/settings-import.php:
|
257 |
-
msgid "
|
258 |
-
msgstr "
|
259 |
-
|
260 |
-
#: includes/admin/tools/
|
261 |
-
#: includes/admin/tools/
|
262 |
-
msgid "
|
263 |
-
msgstr "
|
264 |
-
|
265 |
-
#: includes/admin/tools/
|
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 |
-
#: includes/
|
333 |
-
msgid "
|
334 |
-
msgstr "
|
335 |
-
|
336 |
-
#: includes/admin/
|
337 |
-
#: includes/
|
338 |
-
msgid "
|
339 |
-
msgstr "
|
340 |
-
|
341 |
-
#: includes/admin/views/html-options-
|
342 |
-
#:
|
343 |
-
msgid "
|
344 |
-
msgstr "
|
345 |
-
|
346 |
-
#: includes/
|
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 |
-
#: includes/field-groups/field-group-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
#: includes/field-groups/field-group-category.php:
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
#: includes/field-groups/field-group-category.php:
|
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 |
-
#: includes/
|
452 |
-
#:
|
453 |
-
#: includes/
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
#:
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
#:
|
464 |
-
#: pro/includes/field-groups/field-group-ui.php:
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
#:
|
470 |
-
#: pro/includes/field-groups/field-group-ui.php:
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
#: includes/field-groups/field-group-meta.php:
|
476 |
-
#:
|
477 |
-
#:
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
#: includes/
|
482 |
-
#: pro/includes/
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
#: includes/field-groups/field-group-
|
489 |
-
#: includes/field-groups/field-group-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
#:
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
#: includes/field-groups/field-group.php:
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
#: includes/field-groups/field-group.php:
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
#: includes/field-groups/field-group.php:
|
515 |
-
#: includes/
|
516 |
-
#: includes/field-groups/field-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
#: includes/field-groups/field-group.php:
|
530 |
-
msgid "
|
531 |
-
msgstr "
|
532 |
-
|
533 |
-
#: includes/field-groups/field-group.php:
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
#:
|
540 |
-
#:
|
541 |
-
#:
|
542 |
-
msgid "
|
543 |
-
msgstr "
|
544 |
-
|
545 |
-
#: includes/field-groups/field-group.php:
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
#: includes/field-groups/field-
|
565 |
-
#: includes/field-groups/field-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
#: includes/field-groups/field-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
msgstr "
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
#: includes/
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
#: includes/field-groups/field-groups.php:
|
595 |
-
#:
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
#: includes/field-groups/field-groups.php:
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
#: includes/field-
|
608 |
-
#: includes/
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
#: includes/field-groups/field-groups.php:
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
#: includes/field-groups/field-groups.php:
|
628 |
-
#: includes/field-groups/field-groups.php:
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
#: includes/field-groups/field-groups.php:
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
#: includes/field-groups/field-groups.php:
|
640 |
-
msgid "
|
641 |
-
msgstr "
|
642 |
-
|
643 |
-
#: includes/field-groups/field-groups.php:
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
#: includes/field-groups/field-groups.php:
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
#: includes/field-groups/field-groups.php:
|
654 |
-
#: includes/
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
#: includes/field-groups/field-groups.php:
|
659 |
-
msgid "
|
660 |
-
msgstr "
|
661 |
-
|
662 |
-
#: includes/field-groups/field-groups.php:
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
#: includes/field-groups/field-groups.php:
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
#: includes/
|
702 |
-
|
703 |
-
|
704 |
-
|
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 |
-
#: includes/fields/
|
753 |
-
msgid "
|
754 |
-
msgstr "
|
755 |
-
|
756 |
-
#: includes/fields/
|
757 |
-
msgid "
|
758 |
-
msgstr "
|
759 |
-
|
760 |
-
#: includes/fields/
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
#: includes/fields/field-advanced-link.php:
|
777 |
-
#: includes/
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
#: includes/fields/field-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
#: includes/fields/field-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
#: includes/fields/field-
|
810 |
-
#:
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
#:
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
#: includes/fields/field-advanced-link.php:
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
#: includes/fields/field-
|
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 |
-
msgid "
|
873 |
-
msgstr "
|
874 |
-
|
875 |
-
#: includes/fields/field-button.php:
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
#: includes/fields/field-
|
895 |
-
msgid "
|
896 |
-
msgstr "
|
897 |
-
|
898 |
-
#: includes/fields/field-button.php:
|
899 |
-
#: includes/fields/field-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
#: includes/fields/field-
|
904 |
-
#: includes/fields/field-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
#: includes/fields/field-
|
909 |
-
#: includes/fields/field-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
#: includes/fields/field-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
#: includes/fields/field-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
#: includes/fields/field-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
#: includes/fields/field-clone.php:
|
959 |
-
msgid "
|
960 |
-
msgstr "
|
961 |
-
|
962 |
-
#: includes/fields/field-
|
963 |
-
msgid "
|
964 |
-
msgstr "
|
965 |
-
|
966 |
-
#: includes/fields/field-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
#: includes/fields/field-
|
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 |
-
#: includes/fields/field-code-editor.php:61 includes/fields/field-forms.php:126
|
996 |
-
#: includes/fields/field-post-statuses.php:186
|
997 |
-
#: includes/fields/field-post-types.php:186 includes/fields/field-select.php:54
|
998 |
-
#: includes/fields/field-taxonomies.php:186
|
999 |
-
#: includes/fields/field-taxonomy-terms.php:563
|
1000 |
-
#: includes/fields/field-user-roles.php:171
|
1001 |
-
#: pro/includes/fields/field-block-types.php:212
|
1002 |
-
#: pro/includes/fields/field-countries.php:331
|
1003 |
-
#: pro/includes/fields/field-currencies.php:320
|
1004 |
-
#: pro/includes/fields/field-date-picker.php:35
|
1005 |
-
#: pro/includes/fields/field-date-range-picker.php:103
|
1006 |
-
#: pro/includes/fields/field-date-time-picker.php:43
|
1007 |
-
#: pro/includes/fields/field-field-groups.php:216
|
1008 |
-
#: pro/includes/fields/field-field-types.php:218
|
1009 |
-
#: pro/includes/fields/field-fields.php:230
|
1010 |
-
#: pro/includes/fields/field-file.php:134
|
1011 |
-
#: pro/includes/fields/field-image-sizes.php:239
|
1012 |
-
#: pro/includes/fields/field-languages.php:398
|
1013 |
-
#: pro/includes/fields/field-menu-locations.php:200
|
1014 |
-
#: pro/includes/fields/field-menus.php:215
|
1015 |
-
#: pro/includes/fields/field-options-pages.php:211
|
1016 |
-
#: pro/includes/fields/field-payment-cart.php:186
|
1017 |
-
#: pro/includes/fields/field-phone-number.php:171
|
1018 |
-
#: pro/includes/fields/field-post-formats.php:211
|
1019 |
-
#: pro/includes/fields/field-templates.php:221
|
1020 |
-
#: pro/includes/fields/field-time-picker.php:40
|
1021 |
-
msgid "Placeholder"
|
1022 |
-
msgstr "Etiquette"
|
1023 |
-
|
1024 |
-
#: includes/fields/field-code-editor.php:62 includes/fields/field-forms.php:127
|
1025 |
-
#: includes/fields/field-post-statuses.php:187
|
1026 |
-
#: includes/fields/field-post-types.php:187 includes/fields/field-select.php:55
|
1027 |
-
#: includes/fields/field-slug.php:48 includes/fields/field-taxonomies.php:187
|
1028 |
-
#: includes/fields/field-taxonomy-terms.php:564
|
1029 |
-
#: includes/fields/field-user-roles.php:172
|
1030 |
-
#: pro/includes/fields/field-block-types.php:213
|
1031 |
-
#: pro/includes/fields/field-countries.php:332
|
1032 |
-
#: pro/includes/fields/field-currencies.php:321
|
1033 |
-
#: pro/includes/fields/field-field-groups.php:217
|
1034 |
-
#: pro/includes/fields/field-field-types.php:219
|
1035 |
-
#: pro/includes/fields/field-fields.php:231
|
1036 |
-
#: pro/includes/fields/field-image-sizes.php:240
|
1037 |
-
#: pro/includes/fields/field-languages.php:399
|
1038 |
-
#: pro/includes/fields/field-menu-locations.php:201
|
1039 |
-
#: pro/includes/fields/field-menus.php:216
|
1040 |
-
#: pro/includes/fields/field-options-pages.php:212
|
1041 |
-
#: pro/includes/fields/field-payment-cart.php:187
|
1042 |
-
#: pro/includes/fields/field-post-formats.php:212
|
1043 |
-
#: pro/includes/fields/field-templates.php:222
|
1044 |
-
msgid "Appears within the input"
|
1045 |
-
msgstr "Apparaît dans l’entrée"
|
1046 |
-
|
1047 |
-
#: includes/fields/field-code-editor.php:70
|
1048 |
-
msgid "Editor mode"
|
1049 |
-
msgstr "Mode éditeur"
|
1050 |
-
|
1051 |
-
#: includes/fields/field-code-editor.php:71
|
1052 |
-
msgid "Choose the syntax highlight"
|
1053 |
-
msgstr "Choisissez la mise en surbrillance de la syntaxe"
|
1054 |
-
|
1055 |
-
#: includes/fields/field-code-editor.php:75
|
1056 |
-
msgid "Text/HTML"
|
1057 |
-
msgstr "Texte/HTML"
|
1058 |
-
|
1059 |
-
#: includes/fields/field-code-editor.php:76
|
1060 |
-
msgid "JavaScript"
|
1061 |
-
msgstr "JavaScript"
|
1062 |
-
|
1063 |
-
#: includes/fields/field-code-editor.php:78
|
1064 |
-
msgid "CSS"
|
1065 |
-
msgstr "CSS"
|
1066 |
-
|
1067 |
-
#: includes/fields/field-code-editor.php:79
|
1068 |
-
msgid "PHP (mixed)"
|
1069 |
-
msgstr "PHP (mixte)"
|
1070 |
-
|
1071 |
-
#: includes/fields/field-code-editor.php:80
|
1072 |
-
msgid "PHP (plain)"
|
1073 |
-
msgstr "PHP (simple)"
|
1074 |
-
|
1075 |
-
#: includes/fields/field-code-editor.php:86
|
1076 |
-
msgid "Show Lines"
|
1077 |
-
msgstr "Afficher les lignes"
|
1078 |
-
|
1079 |
-
#: includes/fields/field-code-editor.php:95
|
1080 |
-
msgid "Indent Unit"
|
1081 |
-
msgstr "Unité de retrait"
|
1082 |
-
|
1083 |
-
#: includes/fields/field-code-editor.php:104 includes/fields/field-slug.php:71
|
1084 |
-
msgid "Character Limit"
|
1085 |
-
msgstr "Limite de caractères"
|
1086 |
-
|
1087 |
-
#: includes/fields/field-code-editor.php:105 includes/fields/field-slug.php:72
|
1088 |
-
msgid "Leave blank for no limit"
|
1089 |
-
msgstr "Laisser blanc pour ne fixer aucune limite"
|
1090 |
-
|
1091 |
-
#: includes/fields/field-code-editor.php:112
|
1092 |
-
msgid "Rows"
|
1093 |
-
msgstr "Lignes"
|
1094 |
-
|
1095 |
-
#: includes/fields/field-code-editor.php:113
|
1096 |
-
msgid "Sets the textarea height"
|
1097 |
-
msgstr "Définir la hauteur de la zone de texte"
|
1098 |
-
|
1099 |
-
#: includes/fields/field-code-editor.php:121
|
1100 |
-
msgid "Max rows"
|
1101 |
-
msgstr "Rangées Max"
|
1102 |
-
|
1103 |
-
#: includes/fields/field-code-editor.php:122
|
1104 |
-
msgid "Sets the textarea max height"
|
1105 |
-
msgstr "Définit la hauteur maximale de la zone de texte"
|
1106 |
-
|
1107 |
-
#: includes/fields/field-code-editor.php:130
|
1108 |
-
msgid "Return HTML Entities"
|
1109 |
-
msgstr "Retourner les entités HTML"
|
1110 |
-
|
1111 |
-
#: includes/fields/field-column.php:17
|
1112 |
-
msgid "Column"
|
1113 |
-
msgstr "Colonne"
|
1114 |
-
|
1115 |
-
#: includes/fields/field-column.php:36
|
1116 |
-
msgid "Columns"
|
1117 |
-
msgstr "Colonnes"
|
1118 |
-
|
1119 |
-
#: includes/fields/field-column.php:68
|
1120 |
-
msgid "Endpoint"
|
1121 |
-
msgstr "Terminaison"
|
1122 |
-
|
1123 |
-
#: includes/fields/field-column.php:69
|
1124 |
-
msgid "Define an endpoint for the previous columns to stop."
|
1125 |
-
msgstr ""
|
1126 |
-
"Définissez un point de terminaison pour les colonnes précédentes à arrêter."
|
1127 |
-
|
1128 |
-
#: includes/fields/field-dynamic-render.php:17
|
1129 |
-
#: includes/fields/field-flexible-content-preview.php:78
|
1130 |
-
msgid "Dynamic Render"
|
1131 |
-
msgstr "Rendu Dynamique"
|
1132 |
-
|
1133 |
-
#: includes/fields/field-file.php:68 pro/includes/fields/field-file.php:465
|
1134 |
-
msgid "File size"
|
1135 |
-
msgstr "Taille du fichier"
|
1136 |
-
|
1137 |
-
#: includes/fields/field-file.php:69
|
1138 |
-
msgid "Min size"
|
1139 |
-
msgstr "Taille minimum"
|
1140 |
-
|
1141 |
-
#: includes/fields/field-file.php:76
|
1142 |
-
msgid "Max size"
|
1143 |
-
msgstr "Taille maximum"
|
1144 |
-
|
1145 |
-
#: includes/fields/field-file.php:132 includes/fields/field-image.php:92
|
1146 |
-
msgid "Uploader type"
|
1147 |
-
msgstr "Type de téléchargeur"
|
1148 |
-
|
1149 |
-
#: includes/fields/field-file.php:135 includes/fields/field-image.php:95
|
1150 |
-
msgid "Choose the uploader type"
|
1151 |
-
msgstr "Choisissez le type de téléchargeur"
|
1152 |
-
|
1153 |
-
#: includes/fields/field-flexible-content-actions.php:83
|
1154 |
-
msgid "Additional Actions"
|
1155 |
-
msgstr "Mesures supplémentaires"
|
1156 |
-
|
1157 |
-
#: includes/fields/field-flexible-content-actions.php:442
|
1158 |
-
msgid "Copy layouts"
|
1159 |
-
msgstr "Copier les mises en page"
|
1160 |
-
|
1161 |
-
#: includes/fields/field-flexible-content-actions.php:443
|
1162 |
-
msgid "Paste layouts"
|
1163 |
-
msgstr "Coller des dispositions"
|
1164 |
-
|
1165 |
-
#: includes/fields/field-flexible-content-actions.php:469
|
1166 |
-
#: includes/fields/field-forms.php:325
|
1167 |
-
#: includes/fields/field-post-statuses.php:300
|
1168 |
-
#: includes/fields/field-post-types.php:300
|
1169 |
-
#: includes/fields/field-taxonomies.php:300
|
1170 |
-
#: includes/fields/field-taxonomy-terms.php:699
|
1171 |
-
#: includes/fields/field-user-roles.php:285
|
1172 |
-
#: pro/includes/fields/field-block-types.php:326
|
1173 |
-
#: pro/includes/fields/field-countries.php:445
|
1174 |
-
#: pro/includes/fields/field-currencies.php:434
|
1175 |
-
#: pro/includes/fields/field-field-groups.php:330
|
1176 |
-
#: pro/includes/fields/field-field-types.php:332
|
1177 |
-
#: pro/includes/fields/field-fields.php:344
|
1178 |
-
#: pro/includes/fields/field-image-selector.php:145
|
1179 |
-
#: pro/includes/fields/field-image-sizes.php:353
|
1180 |
-
#: pro/includes/fields/field-languages.php:512
|
1181 |
-
#: pro/includes/fields/field-menu-locations.php:314
|
1182 |
-
#: pro/includes/fields/field-menus.php:329
|
1183 |
-
#: pro/includes/fields/field-options-pages.php:325
|
1184 |
-
#: pro/includes/fields/field-payment-cart.php:281
|
1185 |
-
#: pro/includes/fields/field-payment-selector.php:102
|
1186 |
-
#: pro/includes/fields/field-post-formats.php:325
|
1187 |
-
#: pro/includes/fields/field-templates.php:335
|
1188 |
-
msgid "Layout"
|
1189 |
-
msgstr "Mise en page"
|
1190 |
-
|
1191 |
-
#: includes/fields/field-flexible-content-async.php:62
|
1192 |
-
msgid "Asynchronous Settings"
|
1193 |
-
msgstr "Paramètres asynchrones"
|
1194 |
-
|
1195 |
-
#: includes/fields/field-flexible-content-controls.php:58
|
1196 |
-
msgid "Advanced Flexible Content"
|
1197 |
-
msgstr "Contenu flexible avancé"
|
1198 |
-
|
1199 |
-
#: includes/fields/field-flexible-content-controls.php:61
|
1200 |
-
msgid "Show advanced Flexible Content settings"
|
1201 |
-
msgstr "Afficher les paramètres avancés de contenu flexible"
|
1202 |
-
|
1203 |
-
#: includes/fields/field-flexible-content-controls.php:72
|
1204 |
-
#: includes/fields/field-repeater.php:37 pro/includes/fields/field-file.php:207
|
1205 |
-
msgid "Stylised Button"
|
1206 |
-
msgstr "Bouton stylisé"
|
1207 |
-
|
1208 |
-
#: includes/fields/field-flexible-content-controls.php:75
|
1209 |
-
msgid "Better actions buttons integration"
|
1210 |
-
msgstr "Meilleure intégration des boutons d’actions"
|
1211 |
-
|
1212 |
-
#: includes/fields/field-flexible-content-controls.php:100
|
1213 |
-
msgid "Hide Empty Message"
|
1214 |
-
msgstr "Masquer le message vide"
|
1215 |
-
|
1216 |
-
#: includes/fields/field-flexible-content-controls.php:128
|
1217 |
-
msgid "Empty Message"
|
1218 |
-
msgstr "Message vide"
|
1219 |
-
|
1220 |
-
#: includes/fields/field-flexible-content-controls.php:131
|
1221 |
-
msgid "Text displayed when the flexible field is empty"
|
1222 |
-
msgstr "Texte affiché lorsque le champ flexible est vide"
|
1223 |
-
|
1224 |
-
#: includes/fields/field-flexible-content-controls.php:133
|
1225 |
-
msgid "Click the \"Add Row\" button below to start creating your layout"
|
1226 |
-
msgstr ""
|
1227 |
-
"Cliquez sur le bouton « Ajouter une rangée » ci-dessous pour commencer à "
|
1228 |
-
"créer votre mise en page"
|
1229 |
-
|
1230 |
-
#: includes/fields/field-flexible-content-controls.php:203
|
1231 |
-
msgid "Add layout"
|
1232 |
-
msgstr "Ajouter une mise en page"
|
1233 |
-
|
1234 |
-
#: includes/fields/field-flexible-content-controls.php:204
|
1235 |
-
msgid "Duplicate layout"
|
1236 |
-
msgstr "Dupliquer la mise en page"
|
1237 |
-
|
1238 |
-
#: includes/fields/field-flexible-content-controls.php:205
|
1239 |
-
msgid "Remove layout"
|
1240 |
-
msgstr "Supprimer l'élément"
|
1241 |
-
|
1242 |
-
#: includes/fields/field-flexible-content-controls.php:206
|
1243 |
-
msgid "Click to toggle"
|
1244 |
-
msgstr "Cliquez ici pour basculer"
|
1245 |
-
|
1246 |
-
#: includes/fields/field-flexible-content-edit.php:78
|
1247 |
-
msgid "Edit Modal"
|
1248 |
-
msgstr "Editer Modal"
|
1249 |
-
|
1250 |
-
#: includes/fields/field-flexible-content-edit.php:81
|
1251 |
-
msgid "Edit layout content in a modal"
|
1252 |
-
msgstr "Modifier le contenu de la mise en page dans une fenêtre modale"
|
1253 |
-
|
1254 |
-
#: includes/fields/field-flexible-content-edit.php:169
|
1255 |
-
msgid "Modal settings"
|
1256 |
-
msgstr "Paramètres modaux"
|
1257 |
-
|
1258 |
-
#: includes/fields/field-flexible-content-hide.php:63
|
1259 |
-
msgid "Hide Buttons"
|
1260 |
-
msgstr "Masquer les boutons"
|
1261 |
-
|
1262 |
-
#: includes/fields/field-flexible-content-preview.php:81
|
1263 |
-
msgid "Render the layout using custom template, style & javascript files"
|
1264 |
-
msgstr ""
|
1265 |
-
"Effectuez le rendu de la mise en page à l’aide de fichiers de modèle, de "
|
1266 |
-
"style et javascript personnalisés"
|
1267 |
-
|
1268 |
-
#: includes/fields/field-flexible-content-preview.php:101
|
1269 |
-
msgid "Dynamic Preview"
|
1270 |
-
msgstr "Aperçu dynamique"
|
1271 |
-
|
1272 |
-
#: includes/fields/field-flexible-content-preview.php:104
|
1273 |
-
msgid ""
|
1274 |
-
"Use layouts render settings to display a dynamic preview in the "
|
1275 |
-
"administration"
|
1276 |
-
msgstr ""
|
1277 |
-
"Utilisez les réglages de rendu des présentations pour afficher un aperçu "
|
1278 |
-
"dynamique dans l’administration de publication"
|
1279 |
-
|
1280 |
-
#: includes/fields/field-flexible-content-preview.php:129
|
1281 |
-
msgid "Layouts Placeholder"
|
1282 |
-
msgstr "Texte indicatif"
|
1283 |
-
|
1284 |
-
#: includes/fields/field-flexible-content-preview.php:132
|
1285 |
-
msgid "Display a placeholder with an icon"
|
1286 |
-
msgstr "Afficher un espace réservé avec une icône"
|
1287 |
-
|
1288 |
-
#: includes/fields/field-flexible-content-preview.php:180
|
1289 |
-
#: includes/modules/block-types.php:29
|
1290 |
-
msgid "Render"
|
1291 |
-
msgstr "Afficher"
|
1292 |
-
|
1293 |
-
#: includes/fields/field-flexible-content-preview.php:331
|
1294 |
-
msgid "Edit layout"
|
1295 |
-
msgstr "Modifier la mise en page"
|
1296 |
-
|
1297 |
-
#: includes/fields/field-flexible-content-select.php:75
|
1298 |
-
msgid "Selection Modal"
|
1299 |
-
msgstr "Sélection modale"
|
1300 |
-
|
1301 |
-
#: includes/fields/field-flexible-content-select.php:78
|
1302 |
-
msgid "Select layouts in a modal"
|
1303 |
-
msgstr "Sélectionner des mises en page dans une fenêtre modale"
|
1304 |
-
|
1305 |
-
#: includes/fields/field-flexible-content-select.php:247
|
1306 |
-
#: includes/modules/block-types.php:27
|
1307 |
-
msgid "Category"
|
1308 |
-
msgstr "Catégorie"
|
1309 |
-
|
1310 |
-
#: includes/fields/field-flexible-content-select.php:256
|
1311 |
-
msgid "Enter value"
|
1312 |
-
msgstr "Saisir valeur"
|
1313 |
-
|
1314 |
-
#: includes/fields/field-flexible-content-settings.php:71
|
1315 |
-
msgid "Layouts Settings Modal"
|
1316 |
-
msgstr "Paramètres de disposition modals"
|
1317 |
-
|
1318 |
-
#: includes/fields/field-flexible-content-settings.php:74
|
1319 |
-
msgid "Choose a field group to clone and to be used as a configuration modal"
|
1320 |
-
msgstr ""
|
1321 |
-
"Choisissez un groupe de champs à cloner et à utiliser comme mode de "
|
1322 |
-
"configuration"
|
1323 |
-
|
1324 |
-
#: includes/fields/field-flexible-content-settings.php:126
|
1325 |
-
msgid "Clone settings"
|
1326 |
-
msgstr "Paramètres de clonage"
|
1327 |
-
|
1328 |
-
#: includes/fields/field-flexible-content-state.php:55
|
1329 |
-
msgid "Default Layouts State"
|
1330 |
-
msgstr "État des dispositions par défaut"
|
1331 |
-
|
1332 |
-
#: includes/fields/field-flexible-content-state.php:58
|
1333 |
-
msgid "Force layouts to be collapsed or opened"
|
1334 |
-
msgstr "Forcer les mises en page à être fermées ou ouvertes"
|
1335 |
-
|
1336 |
-
#: includes/fields/field-flexible-content-state.php:62
|
1337 |
-
msgid "Default (User preference)"
|
1338 |
-
msgstr "Par défaut (préférence de l’utilisateur)"
|
1339 |
-
|
1340 |
-
#: includes/fields/field-flexible-content-thumbnail.php:71
|
1341 |
-
msgid "Layouts Thumbnails"
|
1342 |
-
msgstr "Mises en page Thumbnails"
|
1343 |
-
|
1344 |
-
#: includes/fields/field-flexible-content-thumbnail.php:74
|
1345 |
-
msgid "Set a thumbnail for each layouts"
|
1346 |
-
msgstr "Définir une miniature pour chaque mise en page"
|
1347 |
-
|
1348 |
-
#: includes/fields/field-flexible-content-thumbnail.php:111
|
1349 |
-
msgid "Thumbnail"
|
1350 |
-
msgstr "Miniature"
|
1351 |
-
|
1352 |
-
#: includes/fields/field-flexible-content.php:312
|
1353 |
-
#, php-format
|
1354 |
-
msgid "Click the \"%s\" button below to start creating your layout"
|
1355 |
-
msgstr ""
|
1356 |
-
"Cliquer sur le bouton “%s” ci-dessous pour commencer à créer votre mise en "
|
1357 |
-
"page"
|
1358 |
-
|
1359 |
-
#: includes/fields/field-flexible-content.php:508
|
1360 |
-
msgid "Drag to reorder"
|
1361 |
-
msgstr "Faites glisser pour réorganiser"
|
1362 |
-
|
1363 |
-
#: includes/fields/field-forms.php:17 includes/locations/taxonomy-list.php:214
|
1364 |
-
#: includes/modules/forms.php:103 includes/modules/forms.php:104
|
1365 |
-
#: includes/modules/forms.php:106 includes/modules/forms.php:108
|
1366 |
-
#: includes/modules/forms.php:183 pro/includes/locations/settings.php:77
|
1367 |
-
#: pro/includes/modules/templates.php:686
|
1368 |
-
msgid "Forms"
|
1369 |
-
msgstr "Formulaires"
|
1370 |
-
|
1371 |
-
#: includes/fields/field-forms.php:53
|
1372 |
-
msgid "Allow Forms"
|
1373 |
-
msgstr "Autoriser les formulaires"
|
1374 |
-
|
1375 |
-
#: includes/fields/field-forms.php:61
|
1376 |
-
msgid "All forms"
|
1377 |
-
msgstr "Tous les formulaires"
|
1378 |
-
|
1379 |
-
#: includes/fields/field-forms.php:66
|
1380 |
-
#: includes/fields/field-post-statuses.php:66
|
1381 |
-
#: includes/fields/field-post-types.php:66
|
1382 |
-
#: includes/fields/field-taxonomies.php:66
|
1383 |
-
#: includes/fields/field-taxonomy-terms.php:484
|
1384 |
-
#: includes/fields/field-user-roles.php:64
|
1385 |
-
#: pro/includes/fields/field-block-types.php:93
|
1386 |
-
#: pro/includes/fields/field-countries.php:139
|
1387 |
-
#: pro/includes/fields/field-currencies.php:139
|
1388 |
-
#: pro/includes/fields/field-field-groups.php:95
|
1389 |
-
#: pro/includes/fields/field-field-types.php:98
|
1390 |
-
#: pro/includes/fields/field-fields.php:108
|
1391 |
-
#: pro/includes/fields/field-image-sizes.php:105
|
1392 |
-
#: pro/includes/fields/field-languages.php:218
|
1393 |
-
#: pro/includes/fields/field-menu-locations.php:93
|
1394 |
-
#: pro/includes/fields/field-menus.php:94
|
1395 |
-
#: pro/includes/fields/field-options-pages.php:91
|
1396 |
-
#: pro/includes/fields/field-post-formats.php:106
|
1397 |
-
#: pro/includes/fields/field-templates.php:101
|
1398 |
-
msgid "Appearance"
|
1399 |
-
msgstr "Apparence"
|
1400 |
-
|
1401 |
-
#: includes/fields/field-forms.php:67
|
1402 |
-
#: includes/fields/field-post-statuses.php:67
|
1403 |
-
#: includes/fields/field-post-types.php:67
|
1404 |
-
#: includes/fields/field-taxonomies.php:67
|
1405 |
-
#: includes/fields/field-taxonomy-terms.php:485
|
1406 |
-
#: includes/fields/field-user-roles.php:65
|
1407 |
-
#: pro/includes/fields/field-block-types.php:94
|
1408 |
-
#: pro/includes/fields/field-countries.php:140
|
1409 |
-
#: pro/includes/fields/field-currencies.php:140
|
1410 |
-
#: pro/includes/fields/field-field-groups.php:96
|
1411 |
-
#: pro/includes/fields/field-field-types.php:99
|
1412 |
-
#: pro/includes/fields/field-fields.php:109
|
1413 |
-
#: pro/includes/fields/field-image-sizes.php:106
|
1414 |
-
#: pro/includes/fields/field-languages.php:219
|
1415 |
-
#: pro/includes/fields/field-menu-locations.php:94
|
1416 |
-
#: pro/includes/fields/field-menus.php:95
|
1417 |
-
#: pro/includes/fields/field-options-pages.php:92
|
1418 |
-
#: pro/includes/fields/field-post-formats.php:107
|
1419 |
-
#: pro/includes/fields/field-templates.php:102
|
1420 |
-
msgid "Select the appearance of this field"
|
1421 |
-
msgstr "Sélectionnez l'apparence de ce champ"
|
1422 |
-
|
1423 |
-
#: includes/fields/field-forms.php:72
|
1424 |
-
#: includes/fields/field-post-statuses.php:72
|
1425 |
-
#: includes/fields/field-post-types.php:72
|
1426 |
-
#: includes/fields/field-taxonomies.php:72
|
1427 |
-
#: includes/fields/field-taxonomy-terms.php:490
|
1428 |
-
#: includes/fields/field-user-roles.php:70
|
1429 |
-
#: pro/includes/fields/field-block-types.php:99
|
1430 |
-
#: pro/includes/fields/field-countries.php:144
|
1431 |
-
#: pro/includes/fields/field-currencies.php:144
|
1432 |
-
#: pro/includes/fields/field-field-groups.php:101
|
1433 |
-
#: pro/includes/fields/field-field-types.php:104
|
1434 |
-
#: pro/includes/fields/field-fields.php:114
|
1435 |
-
#: pro/includes/fields/field-image-sizes.php:111
|
1436 |
-
#: pro/includes/fields/field-languages.php:223
|
1437 |
-
#: pro/includes/fields/field-menu-locations.php:99
|
1438 |
-
#: pro/includes/fields/field-menus.php:100
|
1439 |
-
#: pro/includes/fields/field-options-pages.php:97
|
1440 |
-
#: pro/includes/fields/field-payment-cart.php:117
|
1441 |
-
#: pro/includes/fields/field-post-formats.php:111
|
1442 |
-
#: pro/includes/fields/field-templates.php:107
|
1443 |
-
msgid "Checkbox"
|
1444 |
-
msgstr "Case à cocher"
|
1445 |
-
|
1446 |
-
#: includes/fields/field-forms.php:73
|
1447 |
-
#: includes/fields/field-post-statuses.php:73
|
1448 |
-
#: includes/fields/field-post-types.php:73
|
1449 |
-
#: includes/fields/field-taxonomies.php:73
|
1450 |
-
#: includes/fields/field-taxonomy-terms.php:491
|
1451 |
-
#: includes/fields/field-user-roles.php:71
|
1452 |
-
#: pro/includes/fields/field-block-types.php:100
|
1453 |
-
#: pro/includes/fields/field-countries.php:145
|
1454 |
-
#: pro/includes/fields/field-currencies.php:145
|
1455 |
-
#: pro/includes/fields/field-field-groups.php:102
|
1456 |
-
#: pro/includes/fields/field-field-types.php:105
|
1457 |
-
#: pro/includes/fields/field-fields.php:115
|
1458 |
-
#: pro/includes/fields/field-image-sizes.php:112
|
1459 |
-
#: pro/includes/fields/field-languages.php:224
|
1460 |
-
#: pro/includes/fields/field-menu-locations.php:100
|
1461 |
-
#: pro/includes/fields/field-menus.php:101
|
1462 |
-
#: pro/includes/fields/field-options-pages.php:98
|
1463 |
-
#: pro/includes/fields/field-post-formats.php:112
|
1464 |
-
#: pro/includes/fields/field-templates.php:108
|
1465 |
-
msgid "Radio Buttons"
|
1466 |
-
msgstr "Boutons radio"
|
1467 |
-
|
1468 |
-
#: includes/fields/field-forms.php:74
|
1469 |
-
#: includes/fields/field-post-statuses.php:74
|
1470 |
-
#: includes/fields/field-post-types.php:74
|
1471 |
-
#: includes/fields/field-taxonomies.php:74
|
1472 |
-
#: includes/fields/field-taxonomy-terms.php:492
|
1473 |
-
#: includes/fields/field-user-roles.php:72
|
1474 |
-
#: pro/includes/fields/field-block-types.php:101
|
1475 |
-
#: pro/includes/fields/field-countries.php:146
|
1476 |
-
#: pro/includes/fields/field-currencies.php:146
|
1477 |
-
#: pro/includes/fields/field-field-groups.php:103
|
1478 |
-
#: pro/includes/fields/field-field-types.php:106
|
1479 |
-
#: pro/includes/fields/field-fields.php:116
|
1480 |
-
#: pro/includes/fields/field-image-sizes.php:113
|
1481 |
-
#: pro/includes/fields/field-languages.php:225
|
1482 |
-
#: pro/includes/fields/field-menu-locations.php:101
|
1483 |
-
#: pro/includes/fields/field-menus.php:102
|
1484 |
-
#: pro/includes/fields/field-options-pages.php:99
|
1485 |
-
#: pro/includes/fields/field-post-formats.php:113
|
1486 |
-
#: pro/includes/fields/field-templates.php:109
|
1487 |
-
msgctxt "noun"
|
1488 |
-
msgid "Select"
|
1489 |
-
msgstr "Sélectionner"
|
1490 |
-
|
1491 |
-
#: includes/fields/field-forms.php:81
|
1492 |
-
#: includes/fields/field-post-statuses.php:81
|
1493 |
-
#: includes/fields/field-post-types.php:81
|
1494 |
-
#: includes/fields/field-taxonomies.php:81
|
1495 |
-
#: includes/fields/field-taxonomy-terms.php:499
|
1496 |
-
#: includes/fields/field-user-roles.php:79
|
1497 |
-
#: pro/includes/fields/field-block-types.php:108
|
1498 |
-
#: pro/includes/fields/field-countries.php:153
|
1499 |
-
#: pro/includes/fields/field-currencies.php:153
|
1500 |
-
#: pro/includes/fields/field-field-groups.php:110
|
1501 |
-
#: pro/includes/fields/field-field-types.php:113
|
1502 |
-
#: pro/includes/fields/field-fields.php:123
|
1503 |
-
#: pro/includes/fields/field-image-selector.php:59
|
1504 |
-
#: pro/includes/fields/field-image-sizes.php:120
|
1505 |
-
#: pro/includes/fields/field-languages.php:232
|
1506 |
-
#: pro/includes/fields/field-menu-locations.php:108
|
1507 |
-
#: pro/includes/fields/field-menus.php:109
|
1508 |
-
#: pro/includes/fields/field-options-pages.php:106
|
1509 |
-
#: pro/includes/fields/field-payment-cart.php:91
|
1510 |
-
#: pro/includes/fields/field-post-formats.php:120
|
1511 |
-
#: pro/includes/fields/field-templates.php:116
|
1512 |
-
msgid "Enter each default value on a new line"
|
1513 |
-
msgstr "Entrer chaque valeur par défaut sur une nouvelle ligne"
|
1514 |
-
|
1515 |
-
#: includes/fields/field-forms.php:88
|
1516 |
-
#: includes/fields/field-post-statuses.php:88
|
1517 |
-
#: includes/fields/field-post-types.php:88
|
1518 |
-
#: includes/fields/field-taxonomies.php:88
|
1519 |
-
#: includes/fields/field-taxonomy-terms.php:506
|
1520 |
-
#: pro/includes/fields/field-block-types.php:115
|
1521 |
-
#: pro/includes/fields/field-color-picker.php:162
|
1522 |
-
#: pro/includes/fields/field-countries.php:160
|
1523 |
-
#: pro/includes/fields/field-currencies.php:175
|
1524 |
-
#: pro/includes/fields/field-field-groups.php:117
|
1525 |
-
#: pro/includes/fields/field-field-types.php:120
|
1526 |
-
#: pro/includes/fields/field-fields.php:130
|
1527 |
-
#: pro/includes/fields/field-image-selector.php:113
|
1528 |
-
#: pro/includes/fields/field-image-sizes.php:141
|
1529 |
-
#: pro/includes/fields/field-languages.php:239
|
1530 |
-
#: pro/includes/fields/field-menus.php:116
|
1531 |
-
#: pro/includes/fields/field-options-pages.php:113
|
1532 |
-
#: pro/includes/fields/field-phone-number.php:191
|
1533 |
-
#: pro/includes/fields/field-templates.php:123
|
1534 |
-
msgid "Return Value"
|
1535 |
-
msgstr "Valeur de retour"
|
1536 |
-
|
1537 |
-
#: includes/fields/field-forms.php:93
|
1538 |
-
msgid "Form ID"
|
1539 |
-
msgstr "ID du formulaire"
|
1540 |
-
|
1541 |
-
#: includes/fields/field-forms.php:94
|
1542 |
-
msgid "Form name"
|
1543 |
-
msgstr "Nom du formulaire"
|
1544 |
-
|
1545 |
-
#: includes/fields/field-forms.php:101
|
1546 |
-
#: includes/fields/field-post-statuses.php:101
|
1547 |
-
#: includes/fields/field-post-types.php:101
|
1548 |
-
#: includes/fields/field-taxonomies.php:101
|
1549 |
-
#: includes/fields/field-taxonomy-terms.php:538
|
1550 |
-
#: includes/fields/field-user-roles.php:86
|
1551 |
-
#: pro/includes/fields/field-block-types.php:128
|
1552 |
-
#: pro/includes/fields/field-countries.php:247
|
1553 |
-
#: pro/includes/fields/field-currencies.php:236
|
1554 |
-
#: pro/includes/fields/field-field-groups.php:131
|
1555 |
-
#: pro/includes/fields/field-field-types.php:133
|
1556 |
-
#: pro/includes/fields/field-fields.php:145
|
1557 |
-
#: pro/includes/fields/field-image-selector.php:127
|
1558 |
-
#: pro/includes/fields/field-image-sizes.php:154
|
1559 |
-
#: pro/includes/fields/field-languages.php:314
|
1560 |
-
#: pro/includes/fields/field-menu-locations.php:115
|
1561 |
-
#: pro/includes/fields/field-menus.php:130
|
1562 |
-
#: pro/includes/fields/field-options-pages.php:126
|
1563 |
-
#: pro/includes/fields/field-payment-cart.php:125
|
1564 |
-
#: pro/includes/fields/field-post-formats.php:127
|
1565 |
-
#: pro/includes/fields/field-templates.php:136
|
1566 |
-
msgid "Allow Null?"
|
1567 |
-
msgstr "Autoriser une valeur « null »?"
|
1568 |
-
|
1569 |
-
#: includes/fields/field-forms.php:130
|
1570 |
-
#: includes/fields/field-post-statuses.php:190
|
1571 |
-
#: includes/fields/field-post-types.php:190 includes/fields/field-select.php:58
|
1572 |
-
#: includes/fields/field-taxonomies.php:190
|
1573 |
-
#: includes/fields/field-taxonomy-terms.php:567
|
1574 |
-
#: includes/fields/field-user-roles.php:175
|
1575 |
-
#: pro/includes/fields/field-block-types.php:216
|
1576 |
-
#: pro/includes/fields/field-countries.php:335
|
1577 |
-
#: pro/includes/fields/field-currencies.php:324
|
1578 |
-
#: pro/includes/fields/field-field-groups.php:220
|
1579 |
-
#: pro/includes/fields/field-field-types.php:222
|
1580 |
-
#: pro/includes/fields/field-fields.php:234
|
1581 |
-
#: pro/includes/fields/field-image-sizes.php:243
|
1582 |
-
#: pro/includes/fields/field-languages.php:402
|
1583 |
-
#: pro/includes/fields/field-menu-locations.php:204
|
1584 |
-
#: pro/includes/fields/field-menus.php:219
|
1585 |
-
#: pro/includes/fields/field-options-pages.php:215
|
1586 |
-
#: pro/includes/fields/field-payment-cart.php:190
|
1587 |
-
#: pro/includes/fields/field-post-formats.php:215
|
1588 |
-
#: pro/includes/fields/field-templates.php:225
|
1589 |
-
msgctxt "verb"
|
1590 |
-
msgid "Select"
|
1591 |
-
msgstr "Sélectionner"
|
1592 |
-
|
1593 |
-
#: includes/fields/field-forms.php:193
|
1594 |
-
#: includes/fields/field-post-statuses.php:253
|
1595 |
-
#: includes/fields/field-post-types.php:253
|
1596 |
-
#: includes/fields/field-select.php:106
|
1597 |
-
#: includes/fields/field-taxonomies.php:253
|
1598 |
-
#: includes/fields/field-taxonomy-terms.php:630
|
1599 |
-
#: includes/fields/field-user-roles.php:238
|
1600 |
-
#: pro/includes/fields/field-block-types.php:279
|
1601 |
-
#: pro/includes/fields/field-countries.php:398
|
1602 |
-
#: pro/includes/fields/field-currencies.php:387
|
1603 |
-
#: pro/includes/fields/field-field-groups.php:283
|
1604 |
-
#: pro/includes/fields/field-field-types.php:285
|
1605 |
-
#: pro/includes/fields/field-fields.php:297
|
1606 |
-
#: pro/includes/fields/field-image-sizes.php:306
|
1607 |
-
#: pro/includes/fields/field-languages.php:465
|
1608 |
-
#: pro/includes/fields/field-menu-locations.php:267
|
1609 |
-
#: pro/includes/fields/field-menus.php:282
|
1610 |
-
#: pro/includes/fields/field-options-pages.php:278
|
1611 |
-
#: pro/includes/fields/field-payment-cart.php:253
|
1612 |
-
#: pro/includes/fields/field-post-formats.php:278
|
1613 |
-
#: pro/includes/fields/field-templates.php:288
|
1614 |
-
msgid "Search Input Placeholder"
|
1615 |
-
msgstr "Espace réservé pour les entrées de recherche"
|
1616 |
-
|
1617 |
-
#: includes/fields/field-forms.php:194
|
1618 |
-
#: includes/fields/field-post-statuses.php:254
|
1619 |
-
#: includes/fields/field-post-types.php:254
|
1620 |
-
#: includes/fields/field-select.php:107
|
1621 |
-
#: includes/fields/field-taxonomies.php:254
|
1622 |
-
#: includes/fields/field-taxonomy-terms.php:631
|
1623 |
-
#: includes/fields/field-user-roles.php:239
|
1624 |
-
#: pro/includes/fields/field-block-types.php:280
|
1625 |
-
#: pro/includes/fields/field-countries.php:399
|
1626 |
-
#: pro/includes/fields/field-currencies.php:388
|
1627 |
-
#: pro/includes/fields/field-field-groups.php:284
|
1628 |
-
#: pro/includes/fields/field-field-types.php:286
|
1629 |
-
#: pro/includes/fields/field-fields.php:298
|
1630 |
-
#: pro/includes/fields/field-image-sizes.php:307
|
1631 |
-
#: pro/includes/fields/field-languages.php:466
|
1632 |
-
#: pro/includes/fields/field-menu-locations.php:268
|
1633 |
-
#: pro/includes/fields/field-menus.php:283
|
1634 |
-
#: pro/includes/fields/field-options-pages.php:279
|
1635 |
-
#: pro/includes/fields/field-payment-cart.php:254
|
1636 |
-
#: pro/includes/fields/field-post-formats.php:279
|
1637 |
-
#: pro/includes/fields/field-templates.php:289
|
1638 |
-
msgid "Appears within the search input"
|
1639 |
-
msgstr "Apparaît dans l’entrée de recherche"
|
1640 |
-
|
1641 |
-
#: includes/fields/field-forms.php:221
|
1642 |
-
#: includes/fields/field-post-statuses.php:126
|
1643 |
-
#: includes/fields/field-post-types.php:126
|
1644 |
-
#: includes/fields/field-taxonomies.php:126
|
1645 |
-
#: includes/fields/field-taxonomy-terms.php:658
|
1646 |
-
#: includes/fields/field-user-roles.php:111
|
1647 |
-
#: pro/includes/fields/field-block-types.php:153
|
1648 |
-
#: pro/includes/fields/field-countries.php:272
|
1649 |
-
#: pro/includes/fields/field-currencies.php:261
|
1650 |
-
#: pro/includes/fields/field-field-groups.php:156
|
1651 |
-
#: pro/includes/fields/field-field-types.php:158
|
1652 |
-
#: pro/includes/fields/field-fields.php:170
|
1653 |
-
#: pro/includes/fields/field-image-selector.php:136
|
1654 |
-
#: pro/includes/fields/field-image-sizes.php:179
|
1655 |
-
#: pro/includes/fields/field-languages.php:339
|
1656 |
-
#: pro/includes/fields/field-menu-locations.php:140
|
1657 |
-
#: pro/includes/fields/field-menus.php:155
|
1658 |
-
#: pro/includes/fields/field-options-pages.php:151
|
1659 |
-
#: pro/includes/fields/field-payment-cart.php:150
|
1660 |
-
#: pro/includes/fields/field-post-formats.php:152
|
1661 |
-
#: pro/includes/fields/field-templates.php:161
|
1662 |
-
msgid "Select multiple values?"
|
1663 |
-
msgstr "Sélectionnez plusieurs valeurs?"
|
1664 |
-
|
1665 |
-
#: includes/fields/field-forms.php:239
|
1666 |
-
#: includes/fields/field-post-statuses.php:144
|
1667 |
-
#: includes/fields/field-post-types.php:144
|
1668 |
-
#: includes/fields/field-taxonomies.php:144
|
1669 |
-
#: includes/fields/field-taxonomy-terms.php:520
|
1670 |
-
#: includes/fields/field-user-roles.php:129
|
1671 |
-
#: pro/includes/fields/field-block-types.php:171
|
1672 |
-
#: pro/includes/fields/field-countries.php:290
|
1673 |
-
#: pro/includes/fields/field-currencies.php:279
|
1674 |
-
#: pro/includes/fields/field-field-groups.php:174
|
1675 |
-
#: pro/includes/fields/field-field-types.php:176
|
1676 |
-
#: pro/includes/fields/field-fields.php:188
|
1677 |
-
#: pro/includes/fields/field-image-sizes.php:197
|
1678 |
-
#: pro/includes/fields/field-languages.php:357
|
1679 |
-
#: pro/includes/fields/field-menu-locations.php:158
|
1680 |
-
#: pro/includes/fields/field-menus.php:173
|
1681 |
-
#: pro/includes/fields/field-options-pages.php:169
|
1682 |
-
#: pro/includes/fields/field-payment-cart.php:168
|
1683 |
-
#: pro/includes/fields/field-payment-selector.php:122
|
1684 |
-
#: pro/includes/fields/field-post-formats.php:170
|
1685 |
-
#: pro/includes/fields/field-templates.php:179
|
1686 |
-
msgid "Stylised UI"
|
1687 |
-
msgstr "UI Stylised"
|
1688 |
-
|
1689 |
-
#: includes/fields/field-forms.php:258
|
1690 |
-
#: includes/fields/field-post-statuses.php:163
|
1691 |
-
#: includes/fields/field-post-types.php:163
|
1692 |
-
#: includes/fields/field-taxonomies.php:163
|
1693 |
-
#: includes/fields/field-taxonomy-terms.php:676
|
1694 |
-
#: includes/fields/field-user-roles.php:148
|
1695 |
-
#: pro/includes/fields/field-block-types.php:189
|
1696 |
-
#: pro/includes/fields/field-countries.php:308
|
1697 |
-
#: pro/includes/fields/field-currencies.php:297
|
1698 |
-
#: pro/includes/fields/field-field-groups.php:193
|
1699 |
-
#: pro/includes/fields/field-field-types.php:195
|
1700 |
-
#: pro/includes/fields/field-fields.php:207
|
1701 |
-
#: pro/includes/fields/field-image-sizes.php:216
|
1702 |
-
#: pro/includes/fields/field-languages.php:375
|
1703 |
-
#: pro/includes/fields/field-menu-locations.php:177
|
1704 |
-
#: pro/includes/fields/field-menus.php:192
|
1705 |
-
#: pro/includes/fields/field-options-pages.php:188
|
1706 |
-
#: pro/includes/fields/field-post-formats.php:188
|
1707 |
-
#: pro/includes/fields/field-templates.php:198
|
1708 |
-
msgid "Use AJAX to lazy load choices?"
|
1709 |
-
msgstr "Utilisez AJAX pour des choix de charge paresseux?"
|
1710 |
-
|
1711 |
-
#: includes/fields/field-forms.php:281
|
1712 |
-
#: includes/fields/field-post-statuses.php:281
|
1713 |
-
#: includes/fields/field-post-types.php:281
|
1714 |
-
#: includes/fields/field-taxonomies.php:281
|
1715 |
-
#: includes/fields/field-user-roles.php:266
|
1716 |
-
#: pro/includes/fields/field-block-types.php:307
|
1717 |
-
#: pro/includes/fields/field-countries.php:426
|
1718 |
-
#: pro/includes/fields/field-currencies.php:415
|
1719 |
-
#: pro/includes/fields/field-field-groups.php:311
|
1720 |
-
#: pro/includes/fields/field-field-types.php:313
|
1721 |
-
#: pro/includes/fields/field-fields.php:325
|
1722 |
-
#: pro/includes/fields/field-image-sizes.php:334
|
1723 |
-
#: pro/includes/fields/field-languages.php:493
|
1724 |
-
#: pro/includes/fields/field-menu-locations.php:295
|
1725 |
-
#: pro/includes/fields/field-menus.php:310
|
1726 |
-
#: pro/includes/fields/field-options-pages.php:306
|
1727 |
-
#: pro/includes/fields/field-post-formats.php:306
|
1728 |
-
#: pro/includes/fields/field-templates.php:316
|
1729 |
-
msgid "Other"
|
1730 |
-
msgstr "Autre"
|
1731 |
-
|
1732 |
-
#: includes/fields/field-forms.php:286
|
1733 |
-
#: includes/fields/field-post-statuses.php:286
|
1734 |
-
#: includes/fields/field-post-types.php:286
|
1735 |
-
#: includes/fields/field-taxonomies.php:286
|
1736 |
-
#: includes/fields/field-user-roles.php:271
|
1737 |
-
#: pro/includes/fields/field-block-types.php:312
|
1738 |
-
#: pro/includes/fields/field-countries.php:431
|
1739 |
-
#: pro/includes/fields/field-currencies.php:420
|
1740 |
-
#: pro/includes/fields/field-field-groups.php:316
|
1741 |
-
#: pro/includes/fields/field-field-types.php:318
|
1742 |
-
#: pro/includes/fields/field-fields.php:330
|
1743 |
-
#: pro/includes/fields/field-image-sizes.php:339
|
1744 |
-
#: pro/includes/fields/field-languages.php:498
|
1745 |
-
#: pro/includes/fields/field-menu-locations.php:300
|
1746 |
-
#: pro/includes/fields/field-menus.php:315
|
1747 |
-
#: pro/includes/fields/field-options-pages.php:311
|
1748 |
-
#: pro/includes/fields/field-post-formats.php:311
|
1749 |
-
#: pro/includes/fields/field-templates.php:321
|
1750 |
-
msgid "Add 'other' choice to allow for custom values"
|
1751 |
-
msgstr ""
|
1752 |
-
"Ajouter 'les autres' pour un autre choix afin d'autoriser les valeurs "
|
1753 |
-
"personnalisées"
|
1754 |
-
|
1755 |
-
#: includes/fields/field-forms.php:301
|
1756 |
-
msgid "Save Other"
|
1757 |
-
msgstr "Enregistrer Autres"
|
1758 |
-
|
1759 |
-
#: includes/fields/field-forms.php:306
|
1760 |
-
msgid "Save 'other' values to the field's choices"
|
1761 |
-
msgstr "Enregistrer 'les autres' pour les valeurs dans les choix du champ"
|
1762 |
-
|
1763 |
-
#: includes/fields/field-forms.php:331
|
1764 |
-
#: includes/fields/field-post-statuses.php:306
|
1765 |
-
#: includes/fields/field-post-types.php:306
|
1766 |
-
#: includes/fields/field-taxonomies.php:306
|
1767 |
-
#: includes/fields/field-taxonomy-terms.php:705
|
1768 |
-
#: includes/fields/field-user-roles.php:291
|
1769 |
-
#: pro/includes/fields/field-block-types.php:332
|
1770 |
-
#: pro/includes/fields/field-countries.php:451
|
1771 |
-
#: pro/includes/fields/field-currencies.php:440
|
1772 |
-
#: pro/includes/fields/field-field-groups.php:336
|
1773 |
-
#: pro/includes/fields/field-field-types.php:338
|
1774 |
-
#: pro/includes/fields/field-fields.php:350
|
1775 |
-
#: pro/includes/fields/field-image-selector.php:152
|
1776 |
-
#: pro/includes/fields/field-image-sizes.php:359
|
1777 |
-
#: pro/includes/fields/field-languages.php:518
|
1778 |
-
#: pro/includes/fields/field-menu-locations.php:320
|
1779 |
-
#: pro/includes/fields/field-menus.php:335
|
1780 |
-
#: pro/includes/fields/field-options-pages.php:331
|
1781 |
-
#: pro/includes/fields/field-payment-cart.php:287
|
1782 |
-
#: pro/includes/fields/field-payment-selector.php:108
|
1783 |
-
#: pro/includes/fields/field-post-formats.php:331
|
1784 |
-
#: pro/includes/fields/field-templates.php:341
|
1785 |
-
msgid "Vertical"
|
1786 |
-
msgstr "Vertical"
|
1787 |
-
|
1788 |
-
#: includes/fields/field-forms.php:332
|
1789 |
-
#: includes/fields/field-post-statuses.php:307
|
1790 |
-
#: includes/fields/field-post-types.php:307
|
1791 |
-
#: includes/fields/field-taxonomies.php:307
|
1792 |
-
#: includes/fields/field-taxonomy-terms.php:706
|
1793 |
-
#: includes/fields/field-user-roles.php:292
|
1794 |
-
#: pro/includes/fields/field-block-types.php:333
|
1795 |
-
#: pro/includes/fields/field-countries.php:452
|
1796 |
-
#: pro/includes/fields/field-currencies.php:441
|
1797 |
-
#: pro/includes/fields/field-field-groups.php:337
|
1798 |
-
#: pro/includes/fields/field-field-types.php:339
|
1799 |
-
#: pro/includes/fields/field-fields.php:351
|
1800 |
-
#: pro/includes/fields/field-image-selector.php:151
|
1801 |
-
#: pro/includes/fields/field-image-sizes.php:360
|
1802 |
-
#: pro/includes/fields/field-languages.php:519
|
1803 |
-
#: pro/includes/fields/field-menu-locations.php:321
|
1804 |
-
#: pro/includes/fields/field-menus.php:336
|
1805 |
-
#: pro/includes/fields/field-options-pages.php:332
|
1806 |
-
#: pro/includes/fields/field-payment-cart.php:288
|
1807 |
-
#: pro/includes/fields/field-payment-selector.php:109
|
1808 |
-
#: pro/includes/fields/field-post-formats.php:332
|
1809 |
-
#: pro/includes/fields/field-templates.php:342
|
1810 |
-
msgid "Horizontal"
|
1811 |
-
msgstr "Horizontal"
|
1812 |
-
|
1813 |
-
#: includes/fields/field-forms.php:354
|
1814 |
-
#: includes/fields/field-post-statuses.php:329
|
1815 |
-
#: includes/fields/field-post-types.php:329
|
1816 |
-
#: includes/fields/field-taxonomies.php:329
|
1817 |
-
#: includes/fields/field-taxonomy-terms.php:728
|
1818 |
-
#: includes/fields/field-user-roles.php:314
|
1819 |
-
#: pro/includes/fields/field-block-types.php:355
|
1820 |
-
#: pro/includes/fields/field-countries.php:474
|
1821 |
-
#: pro/includes/fields/field-currencies.php:463
|
1822 |
-
#: pro/includes/fields/field-field-groups.php:359
|
1823 |
-
#: pro/includes/fields/field-field-types.php:361
|
1824 |
-
#: pro/includes/fields/field-fields.php:373
|
1825 |
-
#: pro/includes/fields/field-image-sizes.php:382
|
1826 |
-
#: pro/includes/fields/field-languages.php:541
|
1827 |
-
#: pro/includes/fields/field-menu-locations.php:343
|
1828 |
-
#: pro/includes/fields/field-menus.php:358
|
1829 |
-
#: pro/includes/fields/field-options-pages.php:354
|
1830 |
-
#: pro/includes/fields/field-payment-cart.php:310
|
1831 |
-
#: pro/includes/fields/field-post-formats.php:354
|
1832 |
-
#: pro/includes/fields/field-templates.php:364
|
1833 |
-
msgid "Toggle"
|
1834 |
-
msgstr "Basculer"
|
1835 |
-
|
1836 |
-
#: includes/fields/field-forms.php:355
|
1837 |
-
#: includes/fields/field-post-statuses.php:330
|
1838 |
-
#: includes/fields/field-post-types.php:330
|
1839 |
-
#: includes/fields/field-taxonomies.php:330
|
1840 |
-
#: includes/fields/field-taxonomy-terms.php:729
|
1841 |
-
#: includes/fields/field-user-roles.php:315
|
1842 |
-
#: pro/includes/fields/field-block-types.php:356
|
1843 |
-
#: pro/includes/fields/field-countries.php:475
|
1844 |
-
#: pro/includes/fields/field-currencies.php:464
|
1845 |
-
#: pro/includes/fields/field-field-groups.php:360
|
1846 |
-
#: pro/includes/fields/field-field-types.php:362
|
1847 |
-
#: pro/includes/fields/field-fields.php:374
|
1848 |
-
#: pro/includes/fields/field-image-sizes.php:383
|
1849 |
-
#: pro/includes/fields/field-languages.php:542
|
1850 |
-
#: pro/includes/fields/field-menu-locations.php:344
|
1851 |
-
#: pro/includes/fields/field-menus.php:359
|
1852 |
-
#: pro/includes/fields/field-options-pages.php:355
|
1853 |
-
#: pro/includes/fields/field-payment-cart.php:311
|
1854 |
-
#: pro/includes/fields/field-post-formats.php:355
|
1855 |
-
#: pro/includes/fields/field-templates.php:365
|
1856 |
-
msgid "Prepend an extra checkbox to toggle all choices"
|
1857 |
-
msgstr "Ajouter une case supplémentaire pour sélectionner tous les choix"
|
1858 |
-
|
1859 |
-
#: includes/fields/field-forms.php:372
|
1860 |
-
#: includes/fields/field-post-statuses.php:347
|
1861 |
-
#: includes/fields/field-post-types.php:347 includes/fields/field-select.php:35
|
1862 |
-
#: includes/fields/field-taxonomies.php:347
|
1863 |
-
#: includes/fields/field-user-roles.php:332
|
1864 |
-
#: pro/includes/fields/field-block-types.php:373
|
1865 |
-
#: pro/includes/fields/field-countries.php:492
|
1866 |
-
#: pro/includes/fields/field-currencies.php:481
|
1867 |
-
#: pro/includes/fields/field-field-groups.php:377
|
1868 |
-
#: pro/includes/fields/field-field-types.php:379
|
1869 |
-
#: pro/includes/fields/field-fields.php:391
|
1870 |
-
#: pro/includes/fields/field-image-sizes.php:400
|
1871 |
-
#: pro/includes/fields/field-languages.php:559
|
1872 |
-
#: pro/includes/fields/field-menu-locations.php:361
|
1873 |
-
#: pro/includes/fields/field-menus.php:376
|
1874 |
-
#: pro/includes/fields/field-options-pages.php:372
|
1875 |
-
#: pro/includes/fields/field-post-formats.php:372
|
1876 |
-
#: pro/includes/fields/field-templates.php:382
|
1877 |
-
msgid "Allow Custom"
|
1878 |
-
msgstr "Autoriser les mots clés personnalisés"
|
1879 |
-
|
1880 |
-
#: includes/fields/field-forms.php:377
|
1881 |
-
#: includes/fields/field-post-statuses.php:352
|
1882 |
-
#: includes/fields/field-post-types.php:352 includes/fields/field-select.php:40
|
1883 |
-
#: includes/fields/field-taxonomies.php:352
|
1884 |
-
#: includes/fields/field-user-roles.php:337
|
1885 |
-
#: pro/includes/fields/field-block-types.php:378
|
1886 |
-
#: pro/includes/fields/field-countries.php:497
|
1887 |
-
#: pro/includes/fields/field-currencies.php:486
|
1888 |
-
#: pro/includes/fields/field-field-groups.php:382
|
1889 |
-
#: pro/includes/fields/field-field-types.php:384
|
1890 |
-
#: pro/includes/fields/field-fields.php:396
|
1891 |
-
#: pro/includes/fields/field-image-sizes.php:405
|
1892 |
-
#: pro/includes/fields/field-languages.php:564
|
1893 |
-
#: pro/includes/fields/field-menu-locations.php:366
|
1894 |
-
#: pro/includes/fields/field-menus.php:381
|
1895 |
-
#: pro/includes/fields/field-options-pages.php:377
|
1896 |
-
#: pro/includes/fields/field-post-formats.php:377
|
1897 |
-
#: pro/includes/fields/field-templates.php:387
|
1898 |
-
msgid "Allow 'custom' values to be added"
|
1899 |
-
msgstr "Autoriser l’ajout de valeurs « personnalisées »"
|
1900 |
-
|
1901 |
-
#: includes/fields/field-forms.php:392
|
1902 |
-
msgid "Save Custom"
|
1903 |
-
msgstr "Enregistrer l'ensemble personnalisé"
|
1904 |
-
|
1905 |
-
#: includes/fields/field-forms.php:397
|
1906 |
-
msgid "Save 'custom' values to the field's choices"
|
1907 |
-
msgstr "Enregistrez les valeurs «personnalisées» dans les choix du champ"
|
1908 |
-
|
1909 |
-
#: includes/fields/field-hidden.php:17
|
1910 |
-
msgid "Hidden"
|
1911 |
-
msgstr "Masqué"
|
1912 |
-
|
1913 |
-
#: includes/fields/field-hidden.php:67
|
1914 |
-
msgid "Default value in the hidden input"
|
1915 |
-
msgstr "Valeur par défaut dans l’entrée masquée"
|
1916 |
-
|
1917 |
-
#: includes/fields/field-image.php:109
|
1918 |
-
msgid "Featured thumbnail"
|
1919 |
-
msgstr "Miniature mise en avant"
|
1920 |
-
|
1921 |
-
#: includes/fields/field-image.php:112
|
1922 |
-
msgid "Make this image the featured thumbnail"
|
1923 |
-
msgstr "Faire de cette image l’image mise en avant"
|
1924 |
-
|
1925 |
-
#: includes/fields/field-post-object.php:38
|
1926 |
-
msgid "Allow & Save Custom value"
|
1927 |
-
msgstr "Autoriser &Enregistrer la valeur personnalisée"
|
1928 |
-
|
1929 |
-
#: includes/fields/field-post-object.php:43
|
1930 |
-
msgid "Save 'custom' values as new post"
|
1931 |
-
msgstr ""
|
1932 |
-
"Enregistrer les valeurs « personnalisées » en tant que nouvelle publication"
|
1933 |
-
|
1934 |
-
#: includes/fields/field-post-object.php:48
|
1935 |
-
msgid "New Post Arguments"
|
1936 |
-
msgstr "Nouveaux arguments post"
|
1937 |
-
|
1938 |
-
#: includes/fields/field-post-object.php:49
|
1939 |
-
msgid ""
|
1940 |
-
"See available hooks in the <a href=\"https://www.acf-extended.com/features/"
|
1941 |
-
"fields/post-object#custom-value-hooks\" target=\"_blank\">documentation</a>."
|
1942 |
-
msgstr ""
|
1943 |
-
"Voir les filtres disponibles dans la <a href=\"https://www.acf-extended.com/"
|
1944 |
-
"features/fields/button\" target=\"_blank\">documentation</a>."
|
1945 |
-
|
1946 |
-
#: includes/fields/field-post-statuses.php:17
|
1947 |
-
msgid "Post Statuses"
|
1948 |
-
msgstr "Statuts de l'article"
|
1949 |
-
|
1950 |
-
#: includes/fields/field-post-statuses.php:53
|
1951 |
-
msgid "Allow Post Status"
|
1952 |
-
msgstr "Autoriser le statut de publication"
|
1953 |
-
|
1954 |
-
#: includes/fields/field-post-statuses.php:61
|
1955 |
-
msgid "All post statuses"
|
1956 |
-
msgstr "Tous les statuts de publication"
|
1957 |
-
|
1958 |
-
#: includes/fields/field-post-statuses.php:93
|
1959 |
-
msgid "Post status object"
|
1960 |
-
msgstr "Objet d’état de publication"
|
1961 |
-
|
1962 |
-
#: includes/fields/field-post-statuses.php:94
|
1963 |
-
msgid "Post status name"
|
1964 |
-
msgstr "Nom du statut de publication"
|
1965 |
-
|
1966 |
-
#: includes/fields/field-post-types.php:17 includes/modules/block-types.php:28
|
1967 |
-
#: includes/modules/taxonomies.php:27
|
1968 |
-
msgid "Post Types"
|
1969 |
-
msgstr "Types d’article"
|
1970 |
-
|
1971 |
-
#: includes/fields/field-post-types.php:53
|
1972 |
-
msgid "Allow Post Type"
|
1973 |
-
msgstr "Autoriser le type de publication"
|
1974 |
-
|
1975 |
-
#: includes/fields/field-post-types.php:93
|
1976 |
-
msgid "Post type object"
|
1977 |
-
msgstr "Objet de type de publication"
|
1978 |
-
|
1979 |
-
#: includes/fields/field-post-types.php:94
|
1980 |
-
msgid "Post type name"
|
1981 |
-
msgstr "Nom du type d'article"
|
1982 |
-
|
1983 |
-
#: includes/fields/field-recaptcha.php:17
|
1984 |
-
msgid "Google reCaptcha"
|
1985 |
-
msgstr "Google reCaptcha"
|
1986 |
-
|
1987 |
-
#: includes/fields/field-recaptcha.php:43
|
1988 |
-
msgid "Version"
|
1989 |
-
msgstr "Version"
|
1990 |
-
|
1991 |
-
#: includes/fields/field-recaptcha.php:44
|
1992 |
-
msgid "Select the reCaptcha version"
|
1993 |
-
msgstr "Sélectionnez la version reCaptcha"
|
1994 |
-
|
1995 |
-
#: includes/fields/field-recaptcha.php:48
|
1996 |
-
msgid "reCaptcha V2"
|
1997 |
-
msgstr "reCaptcha V2"
|
1998 |
-
|
1999 |
-
#: includes/fields/field-recaptcha.php:49
|
2000 |
-
msgid "reCaptcha V3"
|
2001 |
-
msgstr "reCaptcha V3"
|
2002 |
-
|
2003 |
-
#: includes/fields/field-recaptcha.php:55
|
2004 |
-
msgid "Theme"
|
2005 |
-
msgstr "Thème"
|
2006 |
-
|
2007 |
-
#: includes/fields/field-recaptcha.php:56
|
2008 |
-
msgid "Select the reCaptcha theme"
|
2009 |
-
msgstr "Sélectionnez le thème reCaptcha"
|
2010 |
-
|
2011 |
-
#: includes/fields/field-recaptcha.php:60
|
2012 |
-
msgid "Light"
|
2013 |
-
msgstr "Clair"
|
2014 |
-
|
2015 |
-
#: includes/fields/field-recaptcha.php:61
|
2016 |
-
msgid "Dark"
|
2017 |
-
msgstr "Sombre"
|
2018 |
-
|
2019 |
-
#: includes/fields/field-recaptcha.php:76
|
2020 |
-
#: pro/includes/fields/field-image-sizes.php:134
|
2021 |
-
msgid "Size"
|
2022 |
-
msgstr "Taille"
|
2023 |
-
|
2024 |
-
#: includes/fields/field-recaptcha.php:77
|
2025 |
-
msgid "Select the reCaptcha size"
|
2026 |
-
msgstr "Sélectionnez la taille reCaptcha"
|
2027 |
-
|
2028 |
-
#: includes/fields/field-recaptcha.php:81
|
2029 |
-
msgid "Normal"
|
2030 |
-
msgstr "Normal"
|
2031 |
-
|
2032 |
-
#: includes/fields/field-recaptcha.php:82
|
2033 |
-
msgid "Compact"
|
2034 |
-
msgstr "Compact"
|
2035 |
-
|
2036 |
-
#: includes/fields/field-recaptcha.php:97
|
2037 |
-
msgid "Hide logo"
|
2038 |
-
msgstr "Masquer le logo"
|
2039 |
-
|
2040 |
-
#: includes/fields/field-recaptcha.php:98
|
2041 |
-
msgid "Hide the reCaptcha logo"
|
2042 |
-
msgstr "Masquer le logo reCaptcha"
|
2043 |
-
|
2044 |
-
#: includes/fields/field-recaptcha.php:115
|
2045 |
-
msgid "Site key"
|
2046 |
-
msgstr "Clé de site"
|
2047 |
-
|
2048 |
-
#: includes/fields/field-recaptcha.php:116
|
2049 |
-
msgid ""
|
2050 |
-
"Enter the site key. <a href=\"https://www.google.com/recaptcha/admin\" "
|
2051 |
-
"target=\"_blank\">reCaptcha API Admin</a>"
|
2052 |
-
msgstr ""
|
2053 |
-
"Entrez la clé de site. <a href=\"https://www.google.com/recaptcha/admin\" "
|
2054 |
-
"target=\"_blank\">Administration de l’API reCaptcha</a>"
|
2055 |
-
|
2056 |
-
#: includes/fields/field-recaptcha.php:123
|
2057 |
-
#: pro/includes/fields/field-payment.php:229
|
2058 |
-
#: pro/includes/fields/field-payment.php:248
|
2059 |
-
msgid "Secret key"
|
2060 |
-
msgstr "Clé secrète"
|
2061 |
-
|
2062 |
-
#: includes/fields/field-recaptcha.php:124
|
2063 |
-
msgid ""
|
2064 |
-
"Enter the secret key. <a href=\"https://www.google.com/recaptcha/admin\" "
|
2065 |
-
"target=\"_blank\">reCaptcha API Admin</a>"
|
2066 |
-
msgstr ""
|
2067 |
-
"Entrez la clé secrète. <a href=\"https://www.google.com/recaptcha/admin\" "
|
2068 |
-
"target=\"_blank\">Administration de l’API reCaptcha</a>"
|
2069 |
-
|
2070 |
-
#: includes/fields/field-recaptcha.php:273
|
2071 |
-
#: includes/fields/field-recaptcha.php:281
|
2072 |
-
#: pro/includes/fields/field-payment.php:635
|
2073 |
-
#: pro/includes/fields/field-payment.php:749
|
2074 |
-
#: pro/includes/fields/field-payment.php:884
|
2075 |
-
#: pro/includes/fields/field-payment.php:913
|
2076 |
-
#: pro/includes/fields/field-payment.php:961
|
2077 |
-
#: pro/includes/fields/field-payment.php:1075
|
2078 |
-
msgid "An error has occured"
|
2079 |
-
msgstr "Une erreur s’est produite"
|
2080 |
-
|
2081 |
-
#: includes/fields/field-repeater.php:40
|
2082 |
-
msgid "Better row button integration"
|
2083 |
-
msgstr "Meilleure intégration des boutons de ligne"
|
2084 |
-
|
2085 |
-
#: includes/fields/field-slug.php:17
|
2086 |
-
msgid "Slug"
|
2087 |
-
msgstr "Identifiant"
|
2088 |
-
|
2089 |
-
#: includes/fields/field-slug.php:47
|
2090 |
-
msgid "Placeholder Text"
|
2091 |
-
msgstr "Texte d'espace réservé"
|
2092 |
-
|
2093 |
-
#: includes/fields/field-slug.php:55 pro/includes/fields/field-select.php:34
|
2094 |
-
msgid "Prepend"
|
2095 |
-
msgstr "Ajouter avant"
|
2096 |
-
|
2097 |
-
#: includes/fields/field-slug.php:56 pro/includes/fields/field-select.php:35
|
2098 |
-
msgid "Appears before the input"
|
2099 |
-
msgstr "Apparaît avant l’entrée"
|
2100 |
-
|
2101 |
-
#: includes/fields/field-slug.php:63 pro/includes/fields/field-select.php:43
|
2102 |
-
msgid "Append"
|
2103 |
-
msgstr "Ajouter"
|
2104 |
-
|
2105 |
-
#: includes/fields/field-slug.php:64 pro/includes/fields/field-select.php:44
|
2106 |
-
msgid "Appears after the input"
|
2107 |
-
msgstr "Apparaît après l’entrée"
|
2108 |
-
|
2109 |
-
#: includes/fields/field-slug.php:113
|
2110 |
-
#, php-format
|
2111 |
-
msgid "Value must not exceed %d characters"
|
2112 |
-
msgstr "La valeur ne doit pas dépasser %d caractères"
|
2113 |
-
|
2114 |
-
#: includes/fields/field-taxonomies.php:17 includes/modules/post-types.php:27
|
2115 |
-
msgid "Taxonomies"
|
2116 |
-
msgstr "Taxonomies"
|
2117 |
-
|
2118 |
-
#: includes/fields/field-taxonomies.php:53
|
2119 |
-
#: includes/fields/field-taxonomy-terms.php:357
|
2120 |
-
msgid "Allow Taxonomy"
|
2121 |
-
msgstr "Autoriser la taxonomie"
|
2122 |
-
|
2123 |
-
#: includes/fields/field-taxonomies.php:93
|
2124 |
-
msgid "Taxonomy object"
|
2125 |
-
msgstr "Objet taxonomie"
|
2126 |
-
|
2127 |
-
#: includes/fields/field-taxonomies.php:94
|
2128 |
-
msgid "Taxonomy name"
|
2129 |
-
msgstr "Nom de la taxonomie"
|
2130 |
-
|
2131 |
-
#: includes/fields/field-taxonomy-terms.php:20
|
2132 |
-
msgid "Taxonomy Terms"
|
2133 |
-
msgstr "Termes de taxonomie"
|
2134 |
-
|
2135 |
-
#: includes/fields/field-taxonomy-terms.php:456
|
2136 |
-
msgid "Allow Terms"
|
2137 |
-
msgstr "Autoriser les conditions"
|
2138 |
-
|
2139 |
-
#: includes/fields/field-taxonomy-terms.php:465
|
2140 |
-
msgid "All terms"
|
2141 |
-
msgstr "Tous les termes"
|
2142 |
-
|
2143 |
-
#: includes/fields/field-taxonomy-terms.php:471
|
2144 |
-
msgid "Terms_level"
|
2145 |
-
msgstr "Terms_level"
|
2146 |
-
|
2147 |
-
#: includes/fields/field-taxonomy-terms.php:477
|
2148 |
-
#: includes/locations/post-type-all.php:26
|
2149 |
-
#: includes/locations/post-type-archive.php:283
|
2150 |
-
#: includes/locations/post-type-list.php:237
|
2151 |
-
#: includes/locations/taxonomy-list.php:223
|
2152 |
-
#: pro/includes/locations/post-author-role.php:24
|
2153 |
-
#: pro/includes/locations/settings.php:87
|
2154 |
-
#: pro/includes/modules/scripts-list.php:151
|
2155 |
-
msgid "All"
|
2156 |
-
msgstr "Tout"
|
2157 |
-
|
2158 |
-
#: includes/fields/field-taxonomy-terms.php:511
|
2159 |
-
msgid "Term object"
|
2160 |
-
msgstr "Objet de terme"
|
2161 |
-
|
2162 |
-
#: includes/fields/field-taxonomy-terms.php:512
|
2163 |
-
msgid "Term name"
|
2164 |
-
msgstr "Nom du terme"
|
2165 |
-
|
2166 |
-
#: includes/fields/field-taxonomy-terms.php:513
|
2167 |
-
msgid "Term ID"
|
2168 |
-
msgstr "ID terme"
|
2169 |
-
|
2170 |
-
#: includes/fields/field-taxonomy-terms.php:746
|
2171 |
-
msgid "Save Terms"
|
2172 |
-
msgstr "Enregistrer Conditions"
|
2173 |
-
|
2174 |
-
#: includes/fields/field-taxonomy-terms.php:747
|
2175 |
-
msgid "Connect selected terms to the post"
|
2176 |
-
msgstr "Connecter les termes sélectionnés au post"
|
2177 |
-
|
2178 |
-
#: includes/fields/field-taxonomy-terms.php:755
|
2179 |
-
msgid "Load Terms"
|
2180 |
-
msgstr "Charger Conditions"
|
2181 |
-
|
2182 |
-
#: includes/fields/field-taxonomy-terms.php:756
|
2183 |
-
msgid "Load value from posts terms"
|
2184 |
-
msgstr "Valeur de chargement de messages termes"
|
2185 |
-
|
2186 |
-
#: includes/fields/field-textarea.php:62
|
2187 |
-
msgid "Code mode"
|
2188 |
-
msgstr "Mode code"
|
2189 |
-
|
2190 |
-
#: includes/fields/field-textarea.php:65
|
2191 |
-
msgid ""
|
2192 |
-
"Switch font family to monospace and allow tab indent. For a more advanced "
|
2193 |
-
"code editor, please use the <code>Code Editor</code> field type"
|
2194 |
-
msgstr ""
|
2195 |
-
"Basculez la famille de polices vers le monospace et autorisez le retrait de "
|
2196 |
-
"tabulation. Pour un éditeur de code plus avancé, veuillez utiliser le type "
|
2197 |
-
"de <code>Code Editor</code> champ"
|
2198 |
-
|
2199 |
-
#: includes/fields/field-user-roles.php:17
|
2200 |
-
msgid "User Roles"
|
2201 |
-
msgstr "Rôles de l’utilisateur"
|
2202 |
-
|
2203 |
-
#: includes/fields/field-user-roles.php:51
|
2204 |
-
msgid "Allow User Role"
|
2205 |
-
msgstr "Autoriser le rôle d’utilisateur"
|
2206 |
-
|
2207 |
-
#: includes/fields/field-user-roles.php:59
|
2208 |
-
msgid "All user roles"
|
2209 |
-
msgstr "Afficher tous les rôles utilisateur"
|
2210 |
-
|
2211 |
-
#: includes/init.php:171
|
2212 |
-
msgid ""
|
2213 |
-
"ACF Extended requires <a href=\"https://www.advancedcustomfields.com/pro/\" "
|
2214 |
-
"target=\"_blank\">Advanced Custom Fields PRO</a> (minimum: 5.8)."
|
2215 |
-
msgstr ""
|
2216 |
-
"ACF Extended nécessite <a href=\"https://www.advancedcustomfields.com/pro/\" "
|
2217 |
-
"target=\"_blank\">Advanced Custom Fields PRO</a> (minimum : 5.8)."
|
2218 |
-
|
2219 |
-
#: includes/locations/post-type-archive.php:46
|
2220 |
-
#, php-format
|
2221 |
-
msgid "Archive <span class=\"count\">(%s)</span>"
|
2222 |
-
msgstr "Archive <span class=\"count\">(%s)</span>"
|
2223 |
-
|
2224 |
-
#: includes/locations/post-type-archive.php:148
|
2225 |
-
msgid "Permalink:"
|
2226 |
-
msgstr "Permalien:"
|
2227 |
-
|
2228 |
-
#: includes/locations/post-type-archive.php:202
|
2229 |
-
msgid "Archive"
|
2230 |
-
msgstr "Archive"
|
2231 |
-
|
2232 |
-
#: includes/locations/post-type-archive.php:255
|
2233 |
-
msgid "Post Type Archive"
|
2234 |
-
msgstr "Archives de type de contenu"
|
2235 |
-
|
2236 |
-
#: includes/locations/post-type-list.php:199
|
2237 |
-
#: includes/locations/taxonomy-list.php:199 includes/modules/options.php:511
|
2238 |
-
#: pro/includes/admin/settings.php:320
|
2239 |
-
#: pro/includes/locations/attachment-list.php:191
|
2240 |
-
#: pro/includes/locations/user-list.php:189 pro/includes/modules/dev.php:673
|
2241 |
-
msgid "Update"
|
2242 |
-
msgstr "Mettre à jour"
|
2243 |
-
|
2244 |
-
#: includes/locations/post-type-list.php:215
|
2245 |
-
msgid "Post Type List"
|
2246 |
-
msgstr "Liste de Type d’article"
|
2247 |
-
|
2248 |
-
#: includes/locations/taxonomy-list.php:215
|
2249 |
-
msgid "Taxonomy List"
|
2250 |
-
msgstr "Liste de sites web"
|
2251 |
-
|
2252 |
-
#: includes/modules/author.php:66 pro/includes/fields/field-post-field.php:41
|
2253 |
-
msgid "Author"
|
2254 |
-
msgstr "Auteur"
|
2255 |
-
|
2256 |
-
#: includes/modules/block-types.php:26 includes/modules/forms.php:27
|
2257 |
-
#: includes/modules/options.class.php:221 includes/modules/options.php:332
|
2258 |
-
#: includes/modules/post-types.php:26 includes/modules/taxonomies.php:26
|
2259 |
-
#: pro/includes/fields/field-post-field.php:48
|
2260 |
-
msgid "Name"
|
2261 |
-
msgstr "Nom"
|
2262 |
-
|
2263 |
-
#: includes/modules/block-types.php:1045
|
2264 |
-
msgid "Dynamic Block Type"
|
2265 |
-
msgstr "Type de bloc dynamique"
|
2266 |
-
|
2267 |
-
#: includes/modules/dev.php:128
|
2268 |
-
#: pro/includes/modules/scripts/script-orphan-meta-cleaner.php:294
|
2269 |
-
msgid "No orphan meta found"
|
2270 |
-
msgstr "Aucune donnée meta orpheline trouvée"
|
2271 |
-
|
2272 |
-
#: includes/modules/dev.php:132
|
2273 |
-
msgid "Deleted meta"
|
2274 |
-
msgstr "Meta supprimées"
|
2275 |
-
|
2276 |
-
#: includes/modules/dev.php:132 includes/modules/options-pages.php:320
|
2277 |
-
#: includes/modules/post-types.php:177 includes/modules/taxonomies.php:264
|
2278 |
-
#: pro/includes/fields/field-payment.php:472 pro/includes/modules/dev.php:88
|
2279 |
-
#: pro/includes/modules/dev.php:178 pro/includes/modules/dev.php:245
|
2280 |
-
#: pro/includes/modules/dev.php:345 pro/includes/modules/dev.php:401
|
2281 |
-
#: pro/includes/modules/dev.php:457 pro/includes/modules/dev.php:511
|
2282 |
-
#: pro/includes/modules/scripts-list.php:198
|
2283 |
-
msgid "View"
|
2284 |
-
msgstr "Voir"
|
2285 |
-
|
2286 |
-
#: includes/modules/dev.php:334
|
2287 |
-
msgid "Clean orphan meta"
|
2288 |
-
msgstr "Nettoyer les meta orphelines"
|
2289 |
-
|
2290 |
-
#: includes/modules/dev.php:485 includes/modules/dev.php:528
|
2291 |
-
#: includes/modules/options.class.php:204
|
2292 |
-
#: includes/modules/options.class.php:256 includes/modules/options.php:503
|
2293 |
-
msgid "Delete"
|
2294 |
-
msgstr "Supprimer"
|
2295 |
-
|
2296 |
-
#: includes/modules/dev.php:519
|
2297 |
-
msgid "Select bulk action"
|
2298 |
-
msgstr "Sélectionnez l’action groupée"
|
2299 |
-
|
2300 |
-
#: includes/modules/dev.php:527
|
2301 |
-
msgid "Bulk Actions"
|
2302 |
-
msgstr "Actions groupées"
|
2303 |
-
|
2304 |
-
#: includes/modules/dev.php:531
|
2305 |
-
msgid "Apply"
|
2306 |
-
msgstr "Appliquer"
|
2307 |
-
|
2308 |
-
#: includes/modules/dev.php:557
|
2309 |
-
msgid "empty"
|
2310 |
-
msgstr "vide"
|
2311 |
-
|
2312 |
-
#: includes/modules/forms-action-custom.php:83
|
2313 |
-
#: includes/modules/forms-action-email.php:311
|
2314 |
-
#: includes/modules/forms-action-post.php:869
|
2315 |
-
#: includes/modules/forms-action-redirect.php:88
|
2316 |
-
#: includes/modules/forms-action-term.php:475
|
2317 |
-
#: includes/modules/forms-action-user.php:1027 includes/modules/forms.php:177
|
2318 |
-
#: pro/includes/modules/forms-action-option.php:217
|
2319 |
-
msgid "Documentation"
|
2320 |
-
msgstr "Documentation"
|
2321 |
-
|
2322 |
-
#: includes/modules/forms-action-custom.php:113
|
2323 |
-
msgid "Set a unique action slug."
|
2324 |
-
msgstr "Définissez un identifiant d’action unique."
|
2325 |
-
|
2326 |
-
#: includes/modules/forms-action-email.php:341
|
2327 |
-
#: includes/modules/forms-action-redirect.php:118
|
2328 |
-
msgid "(Optional) Target this action using hooks."
|
2329 |
-
msgstr "(Facultatif) Ciblez cette action à l’aide de hooks."
|
2330 |
-
|
2331 |
-
#: includes/modules/forms-action-user.php:272
|
2332 |
-
msgid "An error has occured. Please try again"
|
2333 |
-
msgstr "Une erreur est survenue. Veuillez réessayer"
|
2334 |
-
|
2335 |
-
#: includes/modules/forms-action-user.php:273
|
2336 |
-
msgid "Invalid e-mail"
|
2337 |
-
msgstr "E-mail invalide"
|
2338 |
-
|
2339 |
-
#: includes/modules/forms-action-user.php:274
|
2340 |
-
msgid "Invalid e-mail or password"
|
2341 |
-
msgstr "E-mail ou mot de passe invalide"
|
2342 |
-
|
2343 |
-
#: includes/modules/forms-action-user.php:275
|
2344 |
-
msgid "Invalid username"
|
2345 |
-
msgstr "Nom d'utilisateur invalide"
|
2346 |
-
|
2347 |
-
#: includes/modules/forms-action-user.php:276
|
2348 |
-
msgid "Invalid username or password"
|
2349 |
-
msgstr "Nom d'utilisateur ou mot de passe invalide"
|
2350 |
-
|
2351 |
-
#: includes/modules/forms-action-user.php:277
|
2352 |
-
msgid "E-mail address is already used"
|
2353 |
-
msgstr "L'adresse e-mail est déjà utilisée"
|
2354 |
-
|
2355 |
-
#: includes/modules/forms-action-user.php:278
|
2356 |
-
msgid "Username is already used"
|
2357 |
-
msgstr "Le nom d'utilisateur est déjà utilisé"
|
2358 |
-
|
2359 |
-
#: includes/modules/forms-action-user.php:279
|
2360 |
-
#: includes/modules/forms-action-user.php:728
|
2361 |
-
msgid "Username may not be longer than 60 characters."
|
2362 |
-
msgstr "Nom d'utilisateur ne peut pas excéder 60 caractères."
|
2363 |
-
|
2364 |
-
#: includes/modules/forms-action-user.php:724
|
2365 |
-
msgid "Cannot create a user with an empty login name."
|
2366 |
-
msgstr "Impossible de créer un utilisateur avec un identifiant vide."
|
2367 |
-
|
2368 |
-
#: includes/modules/forms-action-user.php:734
|
2369 |
-
msgid "Sorry, that username already exists!"
|
2370 |
-
msgstr "Désolé, cet identifiant existe déjà !"
|
2371 |
-
|
2372 |
-
#: includes/modules/forms-action-user.php:742
|
2373 |
-
msgid "Nicename may not be longer than 50 characters."
|
2374 |
-
msgstr "Un pseudo ne devrait pas dépasser les 50 caractères."
|
2375 |
-
|
2376 |
-
#: includes/modules/forms-front.php:19
|
2377 |
-
msgid "Validate Email"
|
2378 |
-
msgstr "Valider l’adresse e-mail"
|
2379 |
-
|
2380 |
-
#: includes/modules/forms-front.php:63 includes/modules/forms-shortcode.php:81
|
2381 |
-
#: includes/modules/forms.php:107
|
2382 |
-
msgid "Form"
|
2383 |
-
msgstr "Formulaire"
|
2384 |
-
|
2385 |
-
#: includes/modules/forms-front.php:109
|
2386 |
-
msgid "Spam Detected"
|
2387 |
-
msgstr "Spam détecté"
|
2388 |
-
|
2389 |
-
#: includes/modules/forms.php:28 pro/includes/modules/templates.php:25
|
2390 |
-
msgid "Field groups"
|
2391 |
-
msgstr "Groupes de champs"
|
2392 |
-
|
2393 |
-
#: includes/modules/forms.php:29
|
2394 |
-
msgid "Actions"
|
2395 |
-
msgstr "Actions"
|
2396 |
-
|
2397 |
-
#: includes/modules/forms.php:30
|
2398 |
-
msgid "Shortcode"
|
2399 |
-
msgstr "Shortcode"
|
2400 |
-
|
2401 |
-
#: includes/modules/forms.php:184
|
2402 |
-
msgid "Cheatsheet"
|
2403 |
-
msgstr "Aide-mémoire"
|
2404 |
-
|
2405 |
-
#: includes/modules/forms.php:185
|
2406 |
-
msgid "Hooks"
|
2407 |
-
msgstr "Hooks"
|
2408 |
-
|
2409 |
-
#: includes/modules/forms.php:186
|
2410 |
-
msgid "Helpers"
|
2411 |
-
msgstr "Aides"
|
2412 |
-
|
2413 |
-
#: includes/modules/forms.php:196
|
2414 |
-
msgid "Shortcodes"
|
2415 |
-
msgstr "Shortcodes"
|
2416 |
-
|
2417 |
-
#: includes/modules/forms.php:211
|
2418 |
-
msgid "PHP code"
|
2419 |
-
msgstr "Code PHP"
|
2420 |
-
|
2421 |
-
#: includes/modules/forms.php:1542
|
2422 |
-
msgid "Post updated"
|
2423 |
-
msgstr "Article mis à jour"
|
2424 |
-
|
2425 |
-
#: includes/modules/forms.php:1853
|
2426 |
-
msgid "Input is invalid: Must be a json string or an array."
|
2427 |
-
msgstr "L’entrée n’est pas valide : doit être une chaîne json ou un tableau."
|
2428 |
-
|
2429 |
-
#: includes/modules/module.php:100
|
2430 |
-
#, php-format
|
2431 |
-
msgid "Active <span class=\"count\">(%s)</span>"
|
2432 |
-
msgid_plural "Active <span class=\"count\">(%s)</span>"
|
2433 |
-
msgstr[0] "Actif <span class=\"count\">(%s)</span>"
|
2434 |
-
msgstr[1] "Actif <span class=\"count\">(%s)</span>"
|
2435 |
-
|
2436 |
-
#: includes/modules/module.php:192
|
2437 |
-
msgid "Export "
|
2438 |
-
msgstr "Exporter "
|
2439 |
-
|
2440 |
-
#: includes/modules/module.php:256
|
2441 |
-
msgid "Active"
|
2442 |
-
msgstr "Actif"
|
2443 |
-
|
2444 |
-
#: includes/modules/module.php:256
|
2445 |
-
msgid "Inactive"
|
2446 |
-
msgstr "Inactif"
|
2447 |
-
|
2448 |
-
#: includes/modules/options-pages.php:26
|
2449 |
-
msgid "Menu slug"
|
2450 |
-
msgstr "Slug de menu"
|
2451 |
-
|
2452 |
-
#: includes/modules/options-pages.php:27
|
2453 |
-
msgid "Post ID"
|
2454 |
-
msgstr "ID de l'article"
|
2455 |
-
|
2456 |
-
#: includes/modules/options-pages.php:28 includes/modules/options.class.php:223
|
2457 |
-
#: includes/modules/options.php:454
|
2458 |
-
msgid "Autoload"
|
2459 |
-
msgstr "Chargement automatique"
|
2460 |
-
|
2461 |
-
#: includes/modules/options-pages.php:29
|
2462 |
-
msgid "Position"
|
2463 |
-
msgstr "Position"
|
2464 |
-
|
2465 |
-
#: includes/modules/options-pages.php:417
|
2466 |
-
msgid "This options page slug already exists"
|
2467 |
-
msgstr "Ce slug de page d’options existe déjà"
|
2468 |
-
|
2469 |
-
#: includes/modules/options-pages.php:968
|
2470 |
-
msgid "Options Page"
|
2471 |
-
msgstr "Options de la Page"
|
2472 |
-
|
2473 |
-
#: includes/modules/options.class.php:21
|
2474 |
-
msgid "Option"
|
2475 |
-
msgstr "Option"
|
2476 |
-
|
2477 |
-
#: includes/modules/options.class.php:106
|
2478 |
-
msgid "No options avaliable."
|
2479 |
-
msgstr "Aucune option disponible."
|
2480 |
-
|
2481 |
-
#: includes/modules/options.class.php:220 pro/includes/modules/dev.php:79
|
2482 |
-
#: pro/includes/modules/dev.php:169 pro/includes/modules/dev.php:236
|
2483 |
-
#: pro/includes/modules/dev.php:295 pro/includes/modules/dev.php:340
|
2484 |
-
#: pro/includes/modules/dev.php:396 pro/includes/modules/dev.php:452
|
2485 |
-
#: pro/includes/modules/dev.php:506 pro/includes/modules/dev.php:559
|
2486 |
-
msgid "ID"
|
2487 |
-
msgstr "ID"
|
2488 |
-
|
2489 |
-
#: includes/modules/options.php:65
|
2490 |
-
msgid "Option has been deleted"
|
2491 |
-
msgstr "L’option a été supprimée"
|
2492 |
-
|
2493 |
-
#: includes/modules/options.php:69
|
2494 |
-
msgid "Options have been deleted"
|
2495 |
-
msgstr "Les options on été supprimées"
|
2496 |
-
|
2497 |
-
#: includes/modules/options.php:73
|
2498 |
-
msgid "Option has been updated"
|
2499 |
-
msgstr "L’option a été mise à jour"
|
2500 |
-
|
2501 |
-
#: includes/modules/options.php:77
|
2502 |
-
msgid "Option has been added"
|
2503 |
-
msgstr "L’option a été ajoutée"
|
2504 |
-
|
2505 |
-
#: includes/modules/options.php:534
|
2506 |
-
msgid "Edit field group"
|
2507 |
-
msgstr "Modifier groupe de champs"
|
2508 |
-
|
2509 |
-
#: includes/modules/post-types.php:28
|
2510 |
-
msgid "Posts"
|
2511 |
-
msgstr "Articles"
|
2512 |
-
|
2513 |
-
#: includes/modules/post-types.php:448
|
2514 |
-
msgid "This post type name is reserved"
|
2515 |
-
msgstr "Ce nom de type de publication est réservé"
|
2516 |
-
|
2517 |
-
#: includes/modules/post-types.php:472
|
2518 |
-
msgid "This post type name already exists"
|
2519 |
-
msgstr "Ce nom de type de publication existe déjà"
|
2520 |
-
|
2521 |
-
#: includes/modules/post-types.php:1091
|
2522 |
-
msgid "Dynamic Post Type"
|
2523 |
-
msgstr "Type de contenu dynamique"
|
2524 |
-
|
2525 |
-
#: includes/modules/single-meta.php:358
|
2526 |
-
msgid "Save as individual meta"
|
2527 |
-
msgstr "Enregistrer en tant que méta individuelle"
|
2528 |
-
|
2529 |
-
#: includes/modules/single-meta.php:361
|
2530 |
-
msgid "Save the field as an individual meta."
|
2531 |
-
msgstr "Enregistrez le champ en tant que méta individuel."
|
2532 |
-
|
2533 |
-
#: includes/modules/taxonomies.php:28
|
2534 |
-
msgid "Terms"
|
2535 |
-
msgstr "Termes"
|
2536 |
-
|
2537 |
-
#: includes/modules/taxonomies.php:522
|
2538 |
-
msgid "This taxonomy name is reserved"
|
2539 |
-
msgstr "Ce nom de taxonomie est réservé"
|
2540 |
-
|
2541 |
-
#: includes/modules/taxonomies.php:546
|
2542 |
-
msgid "This taxonomy name already exists"
|
2543 |
-
msgstr "Ce nom de taxonomie existe déjà"
|
2544 |
-
|
2545 |
-
#: includes/modules/taxonomies.php:1140
|
2546 |
-
msgid "Dynamic Taxonomy"
|
2547 |
-
msgstr "Taxonomie dynamique"
|
2548 |
-
|
2549 |
-
#: includes/modules/ui-attachment.php:108
|
2550 |
-
msgid "Edit Media"
|
2551 |
-
msgstr "Editer le Media"
|
2552 |
-
|
2553 |
-
#: pro/assets/js/acfe-pro-field-group.js:31
|
2554 |
-
#: pro/includes/field-groups/field-group-ui.php:45
|
2555 |
-
msgid "Shift+click: Alternative mode"
|
2556 |
-
msgstr "Shift+click: Mode alternatif"
|
2557 |
-
|
2558 |
-
#: pro/assets/js/acfe-pro-field-group.js:72
|
2559 |
-
#: pro/includes/field-groups/field-group-ui.php:42
|
2560 |
-
msgid "Enter a Field Type"
|
2561 |
-
msgstr "Entrez un Type de Champ"
|
2562 |
-
|
2563 |
-
#: pro/assets/js/acfe-pro-field-group.js:91
|
2564 |
-
#: pro/includes/field-groups/field-group-ui.php:43
|
2565 |
-
msgid "Enter the Field Label"
|
2566 |
-
msgstr "Entrez le Nom de Champ"
|
2567 |
-
|
2568 |
-
#: pro/assets/js/acfe-pro-field-group.js:91
|
2569 |
-
msgid "Hint: Shift+click to bypass this prompt"
|
2570 |
-
msgstr "Astuce: Shift+click pour passer"
|
2571 |
-
|
2572 |
-
#: pro/assets/js/acfe-pro-field-group.js:235
|
2573 |
-
#: pro/includes/fields/field-flexible-content-locations.php:312
|
2574 |
-
msgid "or"
|
2575 |
-
msgstr "ou"
|
2576 |
-
|
2577 |
-
#: pro/assets/js/acfe-pro-field-group.js:306
|
2578 |
-
msgid "(this field)"
|
2579 |
-
msgstr "(ce champ)"
|
2580 |
-
|
2581 |
-
#: pro/assets/js/acfe-pro-field-group.js:337
|
2582 |
-
msgid "No toggle fields available"
|
2583 |
-
msgstr "Aucun champ de basculement disponible"
|
2584 |
-
|
2585 |
-
#: pro/assets/js/acfe-pro-input.js:672 pro/includes/modules/scripts.php:278
|
2586 |
-
msgid "Clear"
|
2587 |
-
msgstr "Effacer"
|
2588 |
-
|
2589 |
-
#: pro/assets/js/acfe-pro-input.js:1037
|
2590 |
-
msgid "Maximum items reached ({max} items)"
|
2591 |
-
msgstr "Nombre maximal d’objets atteints ({max} éléments)"
|
2592 |
-
|
2593 |
-
#: pro/assets/js/acfe-pro-input.js:1152
|
2594 |
-
msgid "Edit File"
|
2595 |
-
msgstr "Modifier le fichier"
|
2596 |
-
|
2597 |
-
#: pro/assets/js/acfe-pro-input.js:1153
|
2598 |
-
msgid "Update File"
|
2599 |
-
msgstr "Mettre à jour le fichier"
|
2600 |
-
|
2601 |
-
#: pro/assets/js/acfe-pro-input.js:1609
|
2602 |
-
msgid "This field has a limit of {max} {label} {identifier}"
|
2603 |
-
msgstr "Ce champ a une limite de {Max} {label} {identificateur}"
|
2604 |
-
|
2605 |
-
#: pro/assets/js/acfe-pro-input.js:1610
|
2606 |
-
#: pro/includes/fields/field-flexible-content-locations.php:181
|
2607 |
-
msgid "layout"
|
2608 |
-
msgid_plural "layouts"
|
2609 |
-
msgstr[0] "disposition"
|
2610 |
-
msgstr[1] "mises en page"
|
2611 |
-
|
2612 |
-
#: pro/assets/js/acfe-pro-input.js:3703
|
2613 |
-
msgid "OK"
|
2614 |
-
msgstr "OK"
|
2615 |
-
|
2616 |
-
#: pro/assets/js/acfe-pro-input.js:3703
|
2617 |
-
msgid "Cancel"
|
2618 |
-
msgstr "Annuler"
|
2619 |
-
|
2620 |
-
#: pro/includes/admin/tools/rewrite-rules-export.php:15
|
2621 |
-
#: pro/includes/admin/tools/rewrite-rules-export.php:42
|
2622 |
-
#: pro/includes/admin/tools/rewrite-rules-export.php:48
|
2623 |
-
msgid "Export Rewrite Rules"
|
2624 |
-
msgstr "Exporter les règles de réécriture"
|
2625 |
-
|
2626 |
-
#: pro/includes/admin/tools/rewrite-rules-export.php:177
|
2627 |
-
msgid "Rewrite rules exported."
|
2628 |
-
msgstr "Réécrire les règles exportées."
|
2629 |
-
|
2630 |
-
#: pro/includes/admin/tools/settings-export.php:15
|
2631 |
-
msgid "Export Settings"
|
2632 |
-
msgstr "Exporter les paramètres"
|
2633 |
-
|
2634 |
-
#: pro/includes/admin/tools/settings-export.php:42
|
2635 |
-
#: pro/includes/admin/tools/settings-export.php:48
|
2636 |
-
msgid "Export ACF Settings"
|
2637 |
-
msgstr "Exporter les paramètres ACF"
|
2638 |
-
|
2639 |
-
#: pro/includes/admin/tools/settings-export.php:203
|
2640 |
-
msgid "Settings exported."
|
2641 |
-
msgstr "Paramètres exportés."
|
2642 |
-
|
2643 |
-
#: pro/includes/admin/tools/settings-import.php:15
|
2644 |
-
msgid "Import Settings"
|
2645 |
-
msgstr "Importer les paramètres"
|
2646 |
-
|
2647 |
-
#: pro/includes/admin/tools/settings-import.php:26
|
2648 |
-
#: pro/includes/admin/tools/settings-import.php:32
|
2649 |
-
msgid "Import ACF Settings"
|
2650 |
-
msgstr "Importer les paramètres ACF"
|
2651 |
-
|
2652 |
-
#: pro/includes/admin/tools/settings-import.php:79
|
2653 |
-
msgid "Settings imported."
|
2654 |
-
msgstr "Paramètres importés."
|
2655 |
-
|
2656 |
-
#: pro/includes/admin/tools/templates-export.php:19
|
2657 |
-
#: pro/includes/admin/tools/templates-export.php:20
|
2658 |
-
msgid "Export Templates"
|
2659 |
-
msgstr "Exporter des modèles"
|
2660 |
-
|
2661 |
-
#: pro/includes/admin/tools/templates-export.php:21
|
2662 |
-
msgid "Select Templates"
|
2663 |
-
msgstr "Sélectionner les modèles"
|
2664 |
-
|
2665 |
-
#: pro/includes/admin/tools/templates-export.php:28
|
2666 |
-
msgid "No template available."
|
2667 |
-
msgstr "Aucun modèle disponible."
|
2668 |
-
|
2669 |
-
#: pro/includes/admin/tools/templates-export.php:29
|
2670 |
-
msgid "No templates selected"
|
2671 |
-
msgstr "Aucun modèle sélectionné"
|
2672 |
-
|
2673 |
-
#: pro/includes/admin/tools/templates-import.php:20
|
2674 |
-
#: pro/includes/admin/tools/templates-import.php:21
|
2675 |
-
msgid "Import Templates"
|
2676 |
-
msgstr "Importer un modèle"
|
2677 |
-
|
2678 |
-
#: pro/includes/field-groups/field-group-hide-on-screen.php:30
|
2679 |
-
msgid "Save Draft"
|
2680 |
-
msgstr "Enregistrer le Brouillon"
|
2681 |
-
|
2682 |
-
#: pro/includes/field-groups/field-group-hide-on-screen.php:31
|
2683 |
-
#: pro/includes/fields/field-post-field.php:50
|
2684 |
-
msgid "Preview"
|
2685 |
-
msgstr "Aperçu"
|
2686 |
-
|
2687 |
-
#: pro/includes/field-groups/field-group-hide-on-screen.php:32
|
2688 |
-
msgid "Post Status"
|
2689 |
-
msgstr "Statuts de l'article"
|
2690 |
-
|
2691 |
-
#: pro/includes/field-groups/field-group-hide-on-screen.php:33
|
2692 |
-
msgid "Post Visibility"
|
2693 |
-
msgstr "Visibilité de l'article"
|
2694 |
-
|
2695 |
-
#: pro/includes/field-groups/field-group-hide-on-screen.php:34
|
2696 |
-
msgid "Publish Date"
|
2697 |
-
msgstr "Date de l'article"
|
2698 |
-
|
2699 |
-
#: pro/includes/field-groups/field-group-hide-on-screen.php:35
|
2700 |
-
msgid "Move to trash"
|
2701 |
-
msgstr "Supprimer"
|
2702 |
-
|
2703 |
-
#: pro/includes/field-groups/field-group-hide-on-screen.php:36
|
2704 |
-
msgid "Publish/Update"
|
2705 |
-
msgstr "Publier/Mettre à Jour"
|
2706 |
-
|
2707 |
-
#: pro/includes/field-groups/field-group-hide-on-screen.php:37
|
2708 |
-
msgid "Minor Publishing Actions"
|
2709 |
-
msgstr "Actions de Publication Mineures"
|
2710 |
-
|
2711 |
-
#: pro/includes/field-groups/field-group-hide-on-screen.php:38
|
2712 |
-
msgid "Misc Publishing Actions"
|
2713 |
-
msgstr "Actions de Publication Diverses"
|
2714 |
-
|
2715 |
-
#: pro/includes/field-groups/field-group-hide-on-screen.php:39
|
2716 |
-
msgid "Major Publishing Actions"
|
2717 |
-
msgstr "Actions de Publication Majeures"
|
2718 |
-
|
2719 |
-
#: pro/includes/field-groups/field-group-hide-on-screen.php:40
|
2720 |
-
msgid "Publish Metabox"
|
2721 |
-
msgstr "Métabox de Publication"
|
2722 |
-
|
2723 |
-
#: pro/includes/field-groups/field-group-ui.php:44
|
2724 |
-
msgid "Hint: Shift to bypass this prompt"
|
2725 |
-
msgstr "Astuce: Shift pour passer"
|
2726 |
-
|
2727 |
-
#: pro/includes/fields-settings/instructions.php:39
|
2728 |
-
msgid "Instructions Placement"
|
2729 |
-
msgstr "Instructions Placement"
|
2730 |
-
|
2731 |
-
#: pro/includes/fields-settings/min-max.php:290
|
2732 |
-
msgid "Selection restrictions"
|
2733 |
-
msgstr "Restrictions de sélection"
|
2734 |
-
|
2735 |
-
#: pro/includes/fields-settings/min-max.php:295
|
2736 |
-
msgid "Min"
|
2737 |
-
msgstr "Min"
|
2738 |
-
|
2739 |
-
#: pro/includes/fields-settings/min-max.php:304
|
2740 |
-
msgid "Max"
|
2741 |
-
msgstr "Max"
|
2742 |
-
|
2743 |
-
#: pro/includes/fields-settings/min-max.php:344
|
2744 |
-
#, php-format
|
2745 |
-
msgid "%s requires at least %s selection"
|
2746 |
-
msgid_plural "%s requires at least %s selections"
|
2747 |
-
msgstr[0] "%s requiert une sélection d'au moins %s"
|
2748 |
-
msgstr[1] "%s exige au moins %s sélections"
|
2749 |
-
|
2750 |
-
#: pro/includes/fields-settings/min-max.php:357
|
2751 |
-
#, php-format
|
2752 |
-
msgid "%s allows a maximum of %s selection"
|
2753 |
-
msgid_plural "%s allows a maximum of %s selections"
|
2754 |
-
msgstr[0] "%s permet un maximum de sélection %s"
|
2755 |
-
msgstr[1] "%s permet un maximum de sélections %s"
|
2756 |
-
|
2757 |
-
#: pro/includes/fields-settings/required.php:22
|
2758 |
-
msgid "Required Message"
|
2759 |
-
msgstr "Message requis"
|
2760 |
-
|
2761 |
-
#: pro/includes/fields-settings/required.php:26
|
2762 |
-
#, php-format
|
2763 |
-
msgid "%s value is required"
|
2764 |
-
msgstr "le champ %s est obligatoire"
|
2765 |
-
|
2766 |
-
#: pro/includes/fields-settings/visibility.php:39
|
2767 |
-
msgid "Field Visibility"
|
2768 |
-
msgstr "Champ de visibilité"
|
2769 |
-
|
2770 |
-
#: pro/includes/fields/field-block-types.php:17
|
2771 |
-
msgid "Block Types"
|
2772 |
-
msgstr "Types de bloc"
|
2773 |
-
|
2774 |
-
#: pro/includes/fields/field-block-types.php:80
|
2775 |
-
msgid "Allow Block Types"
|
2776 |
-
msgstr "Autoriser les types de blocs"
|
2777 |
-
|
2778 |
-
#: pro/includes/fields/field-block-types.php:88
|
2779 |
-
msgid "All block types"
|
2780 |
-
msgstr "Tous types de blocs"
|
2781 |
-
|
2782 |
-
#: pro/includes/fields/field-block-types.php:121
|
2783 |
-
msgid "Block type object"
|
2784 |
-
msgstr "Objet de type bloc"
|
2785 |
-
|
2786 |
-
#: pro/includes/fields/field-block-types.php:122
|
2787 |
-
msgid "Block type name"
|
2788 |
-
msgstr "Nom du type de bloc"
|
2789 |
-
|
2790 |
-
#: pro/includes/fields/field-checkbox.php:107
|
2791 |
-
msgid "Toggle All"
|
2792 |
-
msgstr "Sélectionner tout"
|
2793 |
-
|
2794 |
-
#: pro/includes/fields/field-color-picker.php:23
|
2795 |
-
#: pro/includes/fields/field-color-picker.php:181
|
2796 |
-
msgid "Select Color"
|
2797 |
-
msgstr "Sélectionner une couleur"
|
2798 |
-
|
2799 |
-
#: pro/includes/fields/field-color-picker.php:76
|
2800 |
-
#: pro/includes/fields/field-color-picker.php:169
|
2801 |
-
#: pro/includes/fields/field-color-picker.php:305
|
2802 |
-
msgid "Label"
|
2803 |
-
msgstr "Label"
|
2804 |
-
|
2805 |
-
#: pro/includes/fields/field-color-picker.php:77
|
2806 |
-
msgid "Color + Label Array"
|
2807 |
-
msgstr "Tableau Couleur + Intitulé"
|
2808 |
-
|
2809 |
-
#: pro/includes/fields/field-color-picker.php:147
|
2810 |
-
msgid "Display Style"
|
2811 |
-
msgstr "Style d’affichage"
|
2812 |
-
|
2813 |
-
#: pro/includes/fields/field-color-picker.php:170
|
2814 |
-
msgid "Both (Array)"
|
2815 |
-
msgstr "Les deux (Tableau)"
|
2816 |
-
|
2817 |
-
#: pro/includes/fields/field-color-picker.php:177
|
2818 |
-
#: pro/includes/fields/field-file.php:175
|
2819 |
-
msgid "Button Label"
|
2820 |
-
msgstr "Nom du bouton"
|
2821 |
-
|
2822 |
-
#: pro/includes/fields/field-color-picker.php:194
|
2823 |
-
msgid "Color Picker"
|
2824 |
-
msgstr "Sélecteur de couleur"
|
2825 |
-
|
2826 |
-
#: pro/includes/fields/field-color-picker.php:202
|
2827 |
-
msgid "Position Absolute"
|
2828 |
-
msgstr "Position Absolue"
|
2829 |
-
|
2830 |
-
#: pro/includes/fields/field-color-picker.php:219
|
2831 |
-
msgid "Text Input"
|
2832 |
-
msgstr "Saisie de texte"
|
2833 |
-
|
2834 |
-
#: pro/includes/fields/field-color-picker.php:243
|
2835 |
-
#: pro/includes/fields/field-date-range-picker.php:249
|
2836 |
-
msgid "Allow null"
|
2837 |
-
msgstr "Autoriser une valeur « null »"
|
2838 |
-
|
2839 |
-
#: pro/includes/fields/field-color-picker.php:254
|
2840 |
-
msgid "RGBA"
|
2841 |
-
msgstr "RGBA"
|
2842 |
-
|
2843 |
-
#: pro/includes/fields/field-color-picker.php:264
|
2844 |
-
msgid "Use Theme Colors"
|
2845 |
-
msgstr "Utiliser les couleurs du thème"
|
2846 |
-
|
2847 |
-
#: pro/includes/fields/field-color-picker.php:272
|
2848 |
-
msgid "Custom Colors"
|
2849 |
-
msgstr "Couleurs personnalisées"
|
2850 |
-
|
2851 |
-
#: pro/includes/fields/field-color-picker.php:273
|
2852 |
-
msgid "Enter each choice on a new line."
|
2853 |
-
msgstr "Entrez chaque choix sur une nouvelle ligne."
|
2854 |
-
|
2855 |
-
#: pro/includes/fields/field-color-picker.php:273
|
2856 |
-
msgid "For more control, you may specify both a value and label like this:"
|
2857 |
-
msgstr ""
|
2858 |
-
"Pour plus de contrôle, vous pouvez spécifier à la fois une valeur et une "
|
2859 |
-
"étiquette comme ceci:"
|
2860 |
-
|
2861 |
-
#: pro/includes/fields/field-color-picker.php:273
|
2862 |
-
msgid "#2271b1 : Primary"
|
2863 |
-
msgstr "#2271b1 : Primaire"
|
2864 |
-
|
2865 |
-
#: pro/includes/fields/field-column.php:66
|
2866 |
-
#: pro/includes/fields/field-column.php:88
|
2867 |
-
msgid "Border"
|
2868 |
-
msgstr "Bordure"
|
2869 |
-
|
2870 |
-
#: pro/includes/fields/field-column.php:72
|
2871 |
-
msgid "Column Border"
|
2872 |
-
msgstr "Bordure de colonne"
|
2873 |
-
|
2874 |
-
#: pro/includes/fields/field-column.php:73
|
2875 |
-
msgid "Fields Border"
|
2876 |
-
msgstr "Bordure des champs"
|
2877 |
-
|
2878 |
-
#: pro/includes/fields/field-column.php:94
|
2879 |
-
msgid "Endpoint Border"
|
2880 |
-
msgstr "Bordure de point de terminaison"
|
2881 |
-
|
2882 |
-
#: pro/includes/fields/field-countries.php:17
|
2883 |
-
msgid "Countries"
|
2884 |
-
msgstr "Pays"
|
2885 |
-
|
2886 |
-
#: pro/includes/fields/field-countries.php:123
|
2887 |
-
#: pro/includes/fields/field-phone-number.php:46
|
2888 |
-
msgid "Allow Countries"
|
2889 |
-
msgstr "Autoriser les pays"
|
2890 |
-
|
2891 |
-
#: pro/includes/fields/field-countries.php:134
|
2892 |
-
msgid "All Countries"
|
2893 |
-
msgstr "Tous les pays"
|
2894 |
-
|
2895 |
-
#: pro/includes/fields/field-countries.php:166
|
2896 |
-
msgid "Country array"
|
2897 |
-
msgstr "Tableau de pays"
|
2898 |
-
|
2899 |
-
#: pro/includes/fields/field-countries.php:167
|
2900 |
-
msgid "Country name"
|
2901 |
-
msgstr "Nom du pays"
|
2902 |
-
|
2903 |
-
#: pro/includes/fields/field-countries.php:168
|
2904 |
-
msgid "Country code"
|
2905 |
-
msgstr "Code du pays"
|
2906 |
-
|
2907 |
-
#: pro/includes/fields/field-countries.php:186
|
2908 |
-
#: pro/includes/fields/field-currencies.php:160
|
2909 |
-
#: pro/includes/fields/field-date-range-picker.php:63
|
2910 |
-
#: pro/includes/fields/field-image-sizes.php:127
|
2911 |
-
#: pro/includes/fields/field-languages.php:253
|
2912 |
-
#: pro/includes/fields/field-payment-cart.php:98
|
2913 |
-
msgid "Display Format"
|
2914 |
-
msgstr "Format d’affichage"
|
2915 |
-
|
2916 |
-
#: pro/includes/fields/field-countries.php:187
|
2917 |
-
#: pro/includes/fields/field-currencies.php:161
|
2918 |
-
#: pro/includes/fields/field-date-range-picker.php:64
|
2919 |
-
#: pro/includes/fields/field-languages.php:254
|
2920 |
-
#: pro/includes/fields/field-payment-cart.php:99
|
2921 |
-
msgid "The format displayed when editing a post"
|
2922 |
-
msgstr "Le format affiché lors de la modification d'un poste"
|
2923 |
-
|
2924 |
-
#: pro/includes/fields/field-countries.php:195
|
2925 |
-
#: pro/includes/fields/field-currencies.php:169
|
2926 |
-
#: pro/includes/fields/field-date-range-picker.php:72
|
2927 |
-
#: pro/includes/fields/field-date-range-picker.php:88
|
2928 |
-
#: pro/includes/fields/field-languages.php:262
|
2929 |
-
#: pro/includes/fields/field-payment-cart.php:106
|
2930 |
-
msgid "Custom:"
|
2931 |
-
msgstr "Personnalisé:"
|
2932 |
-
|
2933 |
-
#: pro/includes/fields/field-countries.php:201
|
2934 |
-
#: pro/includes/fields/field-currencies.php:190
|
2935 |
-
#: pro/includes/fields/field-languages.php:268
|
2936 |
-
msgid "Display Flags"
|
2937 |
-
msgstr "Afficher les indicateurs"
|
2938 |
-
|
2939 |
-
#: pro/includes/fields/field-countries.php:202
|
2940 |
-
#: pro/includes/fields/field-currencies.php:191
|
2941 |
-
msgid "Display countries flags"
|
2942 |
-
msgstr "Afficher les drapeaux des pays"
|
2943 |
-
|
2944 |
-
#: pro/includes/fields/field-countries.php:238
|
2945 |
-
#: pro/includes/fields/field-currencies.php:227
|
2946 |
-
#: pro/includes/fields/field-languages.php:305
|
2947 |
-
msgid "Group by Continents"
|
2948 |
-
msgstr "Groupe par continents"
|
2949 |
-
|
2950 |
-
#: pro/includes/fields/field-countries.php:239
|
2951 |
-
msgid "Group countries by their continent"
|
2952 |
-
msgstr "Regrouper les pays par continent"
|
2953 |
-
|
2954 |
-
#: pro/includes/fields/field-currencies.php:17
|
2955 |
-
msgid "Currencies"
|
2956 |
-
msgstr "Devises"
|
2957 |
-
|
2958 |
-
#: pro/includes/fields/field-currencies.php:123
|
2959 |
-
msgid "Allow Currencies"
|
2960 |
-
msgstr "Autoriser les devises"
|
2961 |
-
|
2962 |
-
#: pro/includes/fields/field-currencies.php:134
|
2963 |
-
msgid "All Currencies"
|
2964 |
-
msgstr "Toutes les Devises"
|
2965 |
-
|
2966 |
-
#: pro/includes/fields/field-currencies.php:181
|
2967 |
-
msgid "Currency array"
|
2968 |
-
msgstr "Tableau de devises"
|
2969 |
-
|
2970 |
-
#: pro/includes/fields/field-currencies.php:182
|
2971 |
-
msgid "Currency name"
|
2972 |
-
msgstr "Devise"
|
2973 |
-
|
2974 |
-
#: pro/includes/fields/field-currencies.php:183
|
2975 |
-
msgid "Currency code"
|
2976 |
-
msgstr "Code de la devise"
|
2977 |
-
|
2978 |
-
#: pro/includes/fields/field-currencies.php:184
|
2979 |
-
msgid "Currency symbol"
|
2980 |
-
msgstr "Symbole de la monnaie"
|
2981 |
-
|
2982 |
-
#: pro/includes/fields/field-currencies.php:228
|
2983 |
-
msgid "Group currencies by their continent"
|
2984 |
-
msgstr "Regrouper les monnaies par continent"
|
2985 |
-
|
2986 |
-
#: pro/includes/fields/field-date-picker.php:44
|
2987 |
-
#: pro/includes/fields/field-date-range-picker.php:173
|
2988 |
-
#: pro/includes/fields/field-date-time-picker.php:53
|
2989 |
-
msgid "Date Restriction"
|
2990 |
-
msgstr "Date Restriction"
|
2991 |
-
|
2992 |
-
#: pro/includes/fields/field-date-picker.php:69
|
2993 |
-
#: pro/includes/fields/field-date-range-picker.php:229
|
2994 |
-
#: pro/includes/fields/field-date-time-picker.php:103
|
2995 |
-
msgid "No Weekends"
|
2996 |
-
msgstr "Pas de week-end"
|
2997 |
-
|
2998 |
-
#: pro/includes/fields/field-date-range-picker.php:19
|
2999 |
-
msgid "Date Range Picker"
|
3000 |
-
msgstr "Sélecteur de plages de dates"
|
3001 |
-
|
3002 |
-
#: pro/includes/fields/field-date-range-picker.php:78
|
3003 |
-
msgid "Return Format"
|
3004 |
-
msgstr "Format de retour"
|
3005 |
-
|
3006 |
-
#: pro/includes/fields/field-date-range-picker.php:79
|
3007 |
-
msgid "The format returned via template functions"
|
3008 |
-
msgstr "Le format renvoyé par l'intermédiaire des fonctions de modèle"
|
3009 |
-
|
3010 |
-
#: pro/includes/fields/field-date-range-picker.php:94
|
3011 |
-
msgid "Week Starts On"
|
3012 |
-
msgstr "La semaine débute le"
|
3013 |
-
|
3014 |
-
#: pro/includes/fields/field-date-range-picker.php:111
|
3015 |
-
msgid "Separator"
|
3016 |
-
msgstr "Séparateur"
|
3017 |
-
|
3018 |
-
#: pro/includes/fields/field-date-range-picker.php:119
|
3019 |
-
msgid "Default Date"
|
3020 |
-
msgstr "Date par Défaut"
|
3021 |
-
|
3022 |
-
#: pro/includes/fields/field-date-range-picker.php:146
|
3023 |
-
msgid "Range Restriction"
|
3024 |
-
msgstr "Restriction de plage"
|
3025 |
-
|
3026 |
-
#: pro/includes/fields/field-date-range-picker.php:202
|
3027 |
-
msgid "Custom Ranges"
|
3028 |
-
msgstr "Plages personnalisées"
|
3029 |
-
|
3030 |
-
#: pro/includes/fields/field-date-range-picker.php:219
|
3031 |
-
msgid "Show Dropdowns"
|
3032 |
-
msgstr "Autoriser les menus déroulants"
|
3033 |
-
|
3034 |
-
#: pro/includes/fields/field-date-range-picker.php:239
|
3035 |
-
msgid "Auto Close on Selection"
|
3036 |
-
msgstr "Fermeture automatique lors de la sélection"
|
3037 |
-
|
3038 |
-
#: pro/includes/fields/field-date-time-picker.php:79
|
3039 |
-
#: pro/includes/fields/field-time-picker.php:50
|
3040 |
-
msgid "Time Restriction"
|
3041 |
-
msgstr "Restriction de temps"
|
3042 |
-
|
3043 |
-
#: pro/includes/fields/field-date-time-picker.php:113
|
3044 |
-
#: pro/includes/fields/field-time-picker.php:75
|
3045 |
-
msgid "Hour Restriction"
|
3046 |
-
msgstr "Restriction d’heures"
|
3047 |
-
|
3048 |
-
#: pro/includes/fields/field-date-time-picker.php:139
|
3049 |
-
#: pro/includes/fields/field-time-picker.php:101
|
3050 |
-
msgid "Minutes Restriction"
|
3051 |
-
msgstr "Minutes Restriction"
|
3052 |
-
|
3053 |
-
#: pro/includes/fields/field-date-time-picker.php:166
|
3054 |
-
#: pro/includes/fields/field-time-picker.php:128
|
3055 |
-
msgid "Seconds Restriction"
|
3056 |
-
msgstr "Restriction des secondes"
|
3057 |
-
|
3058 |
-
#: pro/includes/fields/field-field-groups.php:82
|
3059 |
-
msgid "Allow Field Groups"
|
3060 |
-
msgstr "Autoriser les groupes de champs"
|
3061 |
-
|
3062 |
-
#: pro/includes/fields/field-field-groups.php:90
|
3063 |
-
msgid "All field groups"
|
3064 |
-
msgstr "Tous les groupes de champs"
|
3065 |
-
|
3066 |
-
#: pro/includes/fields/field-field-groups.php:122
|
3067 |
-
msgid "Field group object"
|
3068 |
-
msgstr "Objet de groupe de champs"
|
3069 |
-
|
3070 |
-
#: pro/includes/fields/field-field-groups.php:123
|
3071 |
-
msgid "Field group key"
|
3072 |
-
msgstr "Clé de groupe de champs"
|
3073 |
-
|
3074 |
-
#: pro/includes/fields/field-field-groups.php:124
|
3075 |
-
msgid "Field group ID"
|
3076 |
-
msgstr "ID de groupe de champs"
|
3077 |
-
|
3078 |
-
#: pro/includes/fields/field-field-types.php:17
|
3079 |
-
msgid "Field Types"
|
3080 |
-
msgstr "Types de champ"
|
3081 |
-
|
3082 |
-
#: pro/includes/fields/field-field-types.php:85
|
3083 |
-
msgid "Allow Field Types"
|
3084 |
-
msgstr "Autoriser les types de champs"
|
3085 |
-
|
3086 |
-
#: pro/includes/fields/field-field-types.php:93
|
3087 |
-
msgid "All field types"
|
3088 |
-
msgstr "Tous les types de champ"
|
3089 |
-
|
3090 |
-
#: pro/includes/fields/field-field-types.php:125
|
3091 |
-
msgid "Field type object"
|
3092 |
-
msgstr "Objet de type de champ"
|
3093 |
-
|
3094 |
-
#: pro/includes/fields/field-field-types.php:126
|
3095 |
-
msgid "Field type name"
|
3096 |
-
msgstr "Nom du type de champ"
|
3097 |
-
|
3098 |
-
#: pro/includes/fields/field-fields.php:95
|
3099 |
-
msgid "Allow Fields"
|
3100 |
-
msgstr "Autoriser les champs"
|
3101 |
-
|
3102 |
-
#: pro/includes/fields/field-fields.php:103
|
3103 |
-
msgid "All fields"
|
3104 |
-
msgstr "Tous les champs"
|
3105 |
-
|
3106 |
-
#: pro/includes/fields/field-fields.php:135
|
3107 |
-
msgid "Field object"
|
3108 |
-
msgstr "Objet de champ"
|
3109 |
-
|
3110 |
-
#: pro/includes/fields/field-fields.php:136
|
3111 |
-
msgid "Field key"
|
3112 |
-
msgstr "Touche de champ"
|
3113 |
-
|
3114 |
-
#: pro/includes/fields/field-fields.php:137
|
3115 |
-
msgid "Field name"
|
3116 |
-
msgstr "Nom du champ"
|
3117 |
-
|
3118 |
-
#: pro/includes/fields/field-fields.php:138
|
3119 |
-
msgid "Field ID"
|
3120 |
-
msgstr "Champ – Identifiant"
|
3121 |
-
|
3122 |
-
#: pro/includes/fields/field-file.php:85
|
3123 |
-
msgid "Preview Style"
|
3124 |
-
msgstr "Style d’aperçu"
|
3125 |
-
|
3126 |
-
#: pro/includes/fields/field-file.php:138
|
3127 |
-
#: pro/includes/fields/field-payment-cart.php:119
|
3128 |
-
#: pro/includes/fields/field-payment-selector.php:96
|
3129 |
-
#: pro/includes/fields/field-phone-number.php:65
|
3130 |
-
msgid "Select"
|
3131 |
-
msgstr "Sélectionner"
|
3132 |
-
|
3133 |
-
#: pro/includes/fields/field-file.php:166
|
3134 |
-
msgid "Upload Folder"
|
3135 |
-
msgstr "Dossier des envois"
|
3136 |
-
|
3137 |
-
#: pro/includes/fields/field-file.php:178
|
3138 |
-
#: pro/includes/fields/field-file.php:496
|
3139 |
-
msgid "Add File"
|
3140 |
-
msgstr "Ajouter un fichier"
|
3141 |
-
|
3142 |
-
#: pro/includes/fields/field-file.php:230
|
3143 |
-
msgid "File Count"
|
3144 |
-
msgstr "Nombre de fichiers"
|
3145 |
-
|
3146 |
-
#: pro/includes/fields/field-file.php:272
|
3147 |
-
msgid "Allow multiple files"
|
3148 |
-
msgstr "Autoriser plusieurs fichiers"
|
3149 |
-
|
3150 |
-
#: pro/includes/fields/field-file.php:461
|
3151 |
-
msgid "File name"
|
3152 |
-
msgstr "Nom du fichier"
|
3153 |
-
|
3154 |
-
#: pro/includes/fields/field-flexible-content-grid.php:72
|
3155 |
-
msgid "Grid System"
|
3156 |
-
msgstr "Système de grille"
|
3157 |
-
|
3158 |
-
#: pro/includes/fields/field-flexible-content-grid.php:75
|
3159 |
-
msgid "Enable columns mode"
|
3160 |
-
msgstr "Activer le mode colonnes"
|
3161 |
-
|
3162 |
-
#: pro/includes/fields/field-flexible-content-grid.php:187
|
3163 |
-
msgid "Grid System: Container"
|
3164 |
-
msgstr "Système de grille: Conteneur"
|
3165 |
-
|
3166 |
-
#: pro/includes/fields/field-flexible-content-grid.php:190
|
3167 |
-
msgid "Apply maximum grid width"
|
3168 |
-
msgstr "Appliquer la largeur maximale de la grille"
|
3169 |
-
|
3170 |
-
#: pro/includes/fields/field-flexible-content-grid.php:221
|
3171 |
-
msgid "Grid settings"
|
3172 |
-
msgstr "Paramètres de grille"
|
3173 |
-
|
3174 |
-
#: pro/includes/fields/field-flexible-content-locations.php:180
|
3175 |
-
#: pro/includes/fields/field-flexible-content-locations.php:195
|
3176 |
-
msgid "This field requires at least {min} {label} {identifier}"
|
3177 |
-
msgstr "Ce champ a une limite de {min} {label} {identifier}"
|
3178 |
-
|
3179 |
-
#: pro/includes/fields/field-flexible-content-locations.php:244
|
3180 |
-
msgid "Layouts Locations Rules"
|
3181 |
-
msgstr "Règles d’emplacements de mise en page"
|
3182 |
-
|
3183 |
-
#: pro/includes/fields/field-flexible-content-locations.php:247
|
3184 |
-
msgid "Define custom locations rules for each layouts"
|
3185 |
-
msgstr ""
|
3186 |
-
"Définir des règles d’emplacements personnalisées pour chaque mise en page"
|
3187 |
-
|
3188 |
-
#: pro/includes/fields/field-flexible-content-locations.php:312
|
3189 |
-
msgid "Location Rules"
|
3190 |
-
msgstr "Règles d’emplacement"
|
3191 |
-
|
3192 |
-
#: pro/includes/fields/field-flexible-content-locations.php:344
|
3193 |
-
msgid "Add rule group"
|
3194 |
-
msgstr "Ajouter un groupe de règles"
|
3195 |
-
|
3196 |
-
#: pro/includes/fields/field-flexible-content-locations.php:442
|
3197 |
-
msgid "and"
|
3198 |
-
msgstr "et"
|
3199 |
-
|
3200 |
-
#: pro/includes/fields/field-google-map.php:56
|
3201 |
-
msgid "Map Preview"
|
3202 |
-
msgstr "Aperçu de la carte"
|
3203 |
-
|
3204 |
-
#: pro/includes/fields/field-google-map.php:91
|
3205 |
-
msgid "Zoom"
|
3206 |
-
msgstr "Zoom"
|
3207 |
-
|
3208 |
-
#: pro/includes/fields/field-google-map.php:153
|
3209 |
-
msgid "Marker: Image"
|
3210 |
-
msgstr "Marqueur : Image"
|
3211 |
-
|
3212 |
-
#: pro/includes/fields/field-google-map.php:161
|
3213 |
-
msgid "Marker: Size"
|
3214 |
-
msgstr "Marqueur : Taille"
|
3215 |
-
|
3216 |
-
#: pro/includes/fields/field-google-map.php:200
|
3217 |
-
msgid "View: Map Type"
|
3218 |
-
msgstr "Affichage : Type de carte"
|
3219 |
-
|
3220 |
-
#: pro/includes/fields/field-google-map.php:215
|
3221 |
-
msgid "View: Hide UI"
|
3222 |
-
msgstr "Affichage : Masquer l’interface utilisateur"
|
3223 |
-
|
3224 |
-
#: pro/includes/fields/field-google-map.php:226
|
3225 |
-
msgid "View: Hide Zoom Control"
|
3226 |
-
msgstr "Affichage : Masquer le contrôle de zoom"
|
3227 |
-
|
3228 |
-
#: pro/includes/fields/field-google-map.php:246
|
3229 |
-
msgid "View: Hide Map Selection"
|
3230 |
-
msgstr "Affichage : Masquer la sélection de carte"
|
3231 |
-
|
3232 |
-
#: pro/includes/fields/field-google-map.php:266
|
3233 |
-
msgid "View: Hide Fullscreen"
|
3234 |
-
msgstr "Affichage : Masquer en plein écran"
|
3235 |
-
|
3236 |
-
#: pro/includes/fields/field-google-map.php:286
|
3237 |
-
msgid "View: Hide Streetview"
|
3238 |
-
msgstr "Affichage : Masquer Streetview"
|
3239 |
-
|
3240 |
-
#: pro/includes/fields/field-google-map.php:306
|
3241 |
-
msgid "View: Map Style"
|
3242 |
-
msgstr "Affichage : Style de carte"
|
3243 |
-
|
3244 |
-
#: pro/includes/fields/field-google-map.php:317
|
3245 |
-
msgid "API Key"
|
3246 |
-
msgstr "Clé API"
|
3247 |
-
|
3248 |
-
#: pro/includes/fields/field-image-selector.php:17
|
3249 |
-
msgid "Image Selector"
|
3250 |
-
msgstr "Sélecteur d’image"
|
3251 |
-
|
3252 |
-
#: pro/includes/fields/field-image-selector.php:50
|
3253 |
-
msgid "Choices"
|
3254 |
-
msgstr "Choix"
|
3255 |
-
|
3256 |
-
#: pro/includes/fields/field-image-selector.php:51
|
3257 |
-
msgid ""
|
3258 |
-
"Enter each choice on a new line. Image can be an URL or an attachment ID. "
|
3259 |
-
"For example:"
|
3260 |
-
msgstr ""
|
3261 |
-
"Entrez chaque choix sur une nouvelle ligne. L’image peut être une URL ou un "
|
3262 |
-
"ID de pièce jointe. par exemple:"
|
3263 |
-
|
3264 |
-
#: pro/includes/fields/field-image-selector.php:51
|
3265 |
-
msgid "choice1 : 895<br/>choice2 : /image.jpg"
|
3266 |
-
msgstr "choix1 : 895<br/>choix2 : /image.jpg"
|
3267 |
-
|
3268 |
-
#: pro/includes/fields/field-image-selector.php:71
|
3269 |
-
msgid "Images Size"
|
3270 |
-
msgstr "Taille des images"
|
3271 |
-
|
3272 |
-
#: pro/includes/fields/field-image-selector.php:82
|
3273 |
-
msgid "Container"
|
3274 |
-
msgstr "Conteneur"
|
3275 |
-
|
3276 |
-
#: pro/includes/fields/field-image-selector.php:120
|
3277 |
-
msgid "Array"
|
3278 |
-
msgstr "Tableau (Array)"
|
3279 |
-
|
3280 |
-
#: pro/includes/fields/field-image-selector.php:121
|
3281 |
-
msgid "Image"
|
3282 |
-
msgstr "Image"
|
3283 |
-
|
3284 |
-
#: pro/includes/fields/field-image-sizes.php:17
|
3285 |
-
msgid "Image Sizes"
|
3286 |
-
msgstr "Tailles des images"
|
3287 |
-
|
3288 |
-
#: pro/includes/fields/field-image-sizes.php:62
|
3289 |
-
#: pro/includes/fields/field-image-sizes.php:483
|
3290 |
-
msgid "Full Size"
|
3291 |
-
msgstr "Taille originale"
|
3292 |
-
|
3293 |
-
#: pro/includes/fields/field-image-sizes.php:92
|
3294 |
-
msgid "Allow Image Sizes"
|
3295 |
-
msgstr "Autoriser les tailles d’image"
|
3296 |
-
|
3297 |
-
#: pro/includes/fields/field-image-sizes.php:100
|
3298 |
-
msgid "All image sizes"
|
3299 |
-
msgstr ""
|
3300 |
-
"Entrez les catégories ids séparées par des virgules, par exemple: 3,5,7,95. "
|
3301 |
-
"Pour toutes catégories laissées en blanc"
|
3302 |
-
|
3303 |
-
#: pro/includes/fields/field-image-sizes.php:133
|
3304 |
-
#: pro/includes/fields/field-image-sizes.php:148
|
3305 |
-
msgid "Size name"
|
3306 |
-
msgstr "Nom de la taille"
|
3307 |
-
|
3308 |
-
#: pro/includes/fields/field-image-sizes.php:135
|
3309 |
-
msgid "Size name & dimensions"
|
3310 |
-
msgstr "Nom de la taille &dimensions"
|
3311 |
-
|
3312 |
-
#: pro/includes/fields/field-image-sizes.php:147
|
3313 |
-
msgid "Size object"
|
3314 |
-
msgstr "Objet de taille"
|
3315 |
-
|
3316 |
-
#: pro/includes/fields/field-languages.php:17
|
3317 |
-
#: pro/includes/fields/field-languages.php:179
|
3318 |
-
msgid "Languages"
|
3319 |
-
msgstr "Langues"
|
3320 |
-
|
3321 |
-
#: pro/includes/fields/field-languages.php:180
|
3322 |
-
msgid "Display languages set in"
|
3323 |
-
msgstr "Langues d’affichage définies dans"
|
3324 |
-
|
3325 |
-
#: pro/includes/fields/field-languages.php:200
|
3326 |
-
msgid "Allow Languages"
|
3327 |
-
msgstr "Autoriser les langues"
|
3328 |
-
|
3329 |
-
#: pro/includes/fields/field-languages.php:212
|
3330 |
-
msgid "All Languages"
|
3331 |
-
msgstr "Toutes les langues"
|
3332 |
-
|
3333 |
-
#: pro/includes/fields/field-languages.php:245
|
3334 |
-
msgid "Language array"
|
3335 |
-
msgstr "Tableau de langues"
|
3336 |
-
|
3337 |
-
#: pro/includes/fields/field-languages.php:246
|
3338 |
-
msgid "Language name"
|
3339 |
-
msgstr "Nom de la langue"
|
3340 |
-
|
3341 |
-
#: pro/includes/fields/field-languages.php:247
|
3342 |
-
msgid "Language locale code"
|
3343 |
-
msgstr "Code de paramètres régionaux de langue"
|
3344 |
-
|
3345 |
-
#: pro/includes/fields/field-languages.php:269
|
3346 |
-
msgid "Display languages flags"
|
3347 |
-
msgstr "Afficher les indicateurs de langues"
|
3348 |
-
|
3349 |
-
#: pro/includes/fields/field-languages.php:306
|
3350 |
-
msgid "Group languages by their continent"
|
3351 |
-
msgstr "Regrouper les langues par continent"
|
3352 |
-
|
3353 |
-
#: pro/includes/fields/field-menu-locations.php:17
|
3354 |
-
msgid "Menu Locations"
|
3355 |
-
msgstr "Emplacements de menus"
|
3356 |
-
|
3357 |
-
#: pro/includes/fields/field-menu-locations.php:80
|
3358 |
-
msgid "Allow Locations"
|
3359 |
-
msgstr "Autoriser les emplacements"
|
3360 |
-
|
3361 |
-
#: pro/includes/fields/field-menu-locations.php:88
|
3362 |
-
msgid "All locations"
|
3363 |
-
msgstr "Tous les lieux"
|
3364 |
-
|
3365 |
-
#: pro/includes/fields/field-menus.php:17
|
3366 |
-
msgid "Menus"
|
3367 |
-
msgstr "Menus"
|
3368 |
-
|
3369 |
-
#: pro/includes/fields/field-menus.php:81
|
3370 |
-
msgid "Allow Menus"
|
3371 |
-
msgstr "Autoriser les menus"
|
3372 |
-
|
3373 |
-
#: pro/includes/fields/field-menus.php:89
|
3374 |
-
msgid "All menus"
|
3375 |
-
msgstr "Tous les menus"
|
3376 |
-
|
3377 |
-
#: pro/includes/fields/field-menus.php:121
|
3378 |
-
msgid "Menu object"
|
3379 |
-
msgstr "Objet de menu"
|
3380 |
-
|
3381 |
-
#: pro/includes/fields/field-menus.php:122
|
3382 |
-
msgid "Menu name"
|
3383 |
-
msgstr "Nom du menu"
|
3384 |
-
|
3385 |
-
#: pro/includes/fields/field-menus.php:123
|
3386 |
-
msgid "Menu ID"
|
3387 |
-
msgstr "ID Menu"
|
3388 |
-
|
3389 |
-
#: pro/includes/fields/field-options-pages.php:14
|
3390 |
-
msgid "Options Pages"
|
3391 |
-
msgstr "Options des pages"
|
3392 |
-
|
3393 |
-
#: pro/includes/fields/field-options-pages.php:78
|
3394 |
-
msgid "Allow Options Pages"
|
3395 |
-
msgstr "Autoriser les pages d’options"
|
3396 |
-
|
3397 |
-
#: pro/includes/fields/field-options-pages.php:86
|
3398 |
-
msgid "All options pages"
|
3399 |
-
msgstr "Toutes les pages d’options"
|
3400 |
-
|
3401 |
-
#: pro/includes/fields/field-options-pages.php:118
|
3402 |
-
msgid "Options page object"
|
3403 |
-
msgstr "Objet de page Options"
|
3404 |
-
|
3405 |
-
#: pro/includes/fields/field-options-pages.php:119
|
3406 |
-
msgid "Options page name"
|
3407 |
-
msgstr "Nom de la page Options"
|
3408 |
-
|
3409 |
-
#: pro/includes/fields/field-payment-cart.php:19
|
3410 |
-
msgid "Payment Cart"
|
3411 |
-
msgstr "Panier de paiement"
|
3412 |
-
|
3413 |
-
#: pro/includes/fields/field-payment-cart.php:68
|
3414 |
-
#: pro/includes/fields/field-payment-selector.php:57
|
3415 |
-
msgid "Payment Field"
|
3416 |
-
msgstr "Champ de paiement"
|
3417 |
-
|
3418 |
-
#: pro/includes/fields/field-payment-cart.php:76
|
3419 |
-
#: pro/includes/fields/field-payment-selector.php:65
|
3420 |
-
msgid "Select the payment field"
|
3421 |
-
msgstr "Sélectionnez le champ de paiement"
|
3422 |
-
|
3423 |
-
#: pro/includes/fields/field-payment-cart.php:82
|
3424 |
-
msgid "items"
|
3425 |
-
msgstr "articles"
|
3426 |
-
|
3427 |
-
#: pro/includes/fields/field-payment-cart.php:83
|
3428 |
-
msgid "Enter each choice on a new line with the item price. For example:"
|
3429 |
-
msgstr ""
|
3430 |
-
"Entrez chaque choix sur une nouvelle ligne. L’image peut être une URL ou un "
|
3431 |
-
"ID de pièce jointe. par exemple:"
|
3432 |
-
|
3433 |
-
#: pro/includes/fields/field-payment-cart.php:83
|
3434 |
-
msgid "Item 1 : 29<br/>Item 2 : 49"
|
3435 |
-
msgstr "Produit 1 : 29<br/>Produit 2 : 49"
|
3436 |
-
|
3437 |
-
#: pro/includes/fields/field-payment-cart.php:112
|
3438 |
-
#: pro/includes/fields/field-payment-cart.php:113
|
3439 |
-
#: pro/includes/fields/field-payment-selector.php:90
|
3440 |
-
#: pro/includes/fields/field-payment-selector.php:91
|
3441 |
-
#: pro/includes/fields/field-post-field.php:35
|
3442 |
-
msgid "Field Type"
|
3443 |
-
msgstr "Type de champ"
|
3444 |
-
|
3445 |
-
#: pro/includes/fields/field-payment-cart.php:118
|
3446 |
-
#: pro/includes/fields/field-payment-selector.php:95
|
3447 |
-
msgid "Radio Button"
|
3448 |
-
msgstr "Bouton radio"
|
3449 |
-
|
3450 |
-
#: pro/includes/fields/field-payment-cart.php:489
|
3451 |
-
msgid "This item doesn't exists. Please try again"
|
3452 |
-
msgstr "Cet élément n'existe pas. Veuillez réessayer"
|
3453 |
-
|
3454 |
-
#: pro/includes/fields/field-payment-selector.php:19
|
3455 |
-
msgid "Payment Selector"
|
3456 |
-
msgstr "Sélecteur de paiement"
|
3457 |
-
|
3458 |
-
#: pro/includes/fields/field-payment-selector.php:23
|
3459 |
-
#: pro/includes/fields/field-payment-selector.php:74
|
3460 |
-
msgid "Credit Card"
|
3461 |
-
msgstr "Carte de crédit"
|
3462 |
-
|
3463 |
-
#: pro/includes/fields/field-payment-selector.php:71
|
3464 |
-
msgid "Payments Labels"
|
3465 |
-
msgstr "Étiquettes de paiement"
|
3466 |
-
|
3467 |
-
#: pro/includes/fields/field-payment-selector.php:80
|
3468 |
-
msgid "PayPal Label"
|
3469 |
-
msgstr "Label PayPal"
|
3470 |
-
|
3471 |
-
#: pro/includes/fields/field-payment-selector.php:140
|
3472 |
-
msgid "Icons"
|
3473 |
-
msgstr "Icônes"
|
3474 |
-
|
3475 |
-
#: pro/includes/fields/field-payment.php:19
|
3476 |
-
msgid "Payment"
|
3477 |
-
msgstr "Paiement"
|
3478 |
-
|
3479 |
-
#: pro/includes/fields/field-payment.php:27
|
3480 |
-
msgid "Pay now"
|
3481 |
-
msgstr "Payer maintenant"
|
3482 |
-
|
3483 |
-
#: pro/includes/fields/field-payment.php:76
|
3484 |
-
msgid "Gateways"
|
3485 |
-
msgstr "Passerelles"
|
3486 |
-
|
3487 |
-
#: pro/includes/fields/field-payment.php:77
|
3488 |
-
msgid "Choose your payment gateways"
|
3489 |
-
msgstr "Choisissez vos passerelles de paiement"
|
3490 |
-
|
3491 |
-
#: pro/includes/fields/field-payment.php:90
|
3492 |
-
#: pro/includes/fields/field-payment.php:450
|
3493 |
-
#: pro/includes/fields/field-payment.php:1415
|
3494 |
-
msgid "Amount"
|
3495 |
-
msgstr "Montant"
|
3496 |
-
|
3497 |
-
#: pro/includes/fields/field-payment.php:91
|
3498 |
-
msgid "The amount to charge"
|
3499 |
-
msgstr "Le montant à facturer"
|
3500 |
-
|
3501 |
-
#: pro/includes/fields/field-payment.php:99
|
3502 |
-
msgid "Currency"
|
3503 |
-
msgstr "Devise"
|
3504 |
-
|
3505 |
-
#: pro/includes/fields/field-payment.php:100
|
3506 |
-
msgid "The currency to use"
|
3507 |
-
msgstr "La devise à utiliser"
|
3508 |
-
|
3509 |
-
#: pro/includes/fields/field-payment.php:112
|
3510 |
-
#: pro/includes/modules/scripts-list.php:261
|
3511 |
-
msgid "Description"
|
3512 |
-
msgstr "Description"
|
3513 |
-
|
3514 |
-
#: pro/includes/fields/field-payment.php:113
|
3515 |
-
msgid "A description attached to the payment. Useful for displaying to users"
|
3516 |
-
msgstr ""
|
3517 |
-
"Une description jointe au paiement. Utile pour l’affichage aux utilisateurs"
|
3518 |
-
|
3519 |
-
#: pro/includes/fields/field-payment.php:120
|
3520 |
-
msgid "Display Button"
|
3521 |
-
msgstr "Affichager Bouton"
|
3522 |
-
|
3523 |
-
#: pro/includes/fields/field-payment.php:209
|
3524 |
-
msgid "Stripe Hide Postal Code"
|
3525 |
-
msgstr "Cacher le Code Postal Stripe"
|
3526 |
-
|
3527 |
-
#: pro/includes/fields/field-payment.php:210
|
3528 |
-
msgid ""
|
3529 |
-
"Hide Stripe's postal code field validation which can be displayed in "
|
3530 |
-
"specific cases"
|
3531 |
-
msgstr ""
|
3532 |
-
"Cache le code postal de validation Stripe qui peut apparaître dans ces cas "
|
3533 |
-
"spécifiques"
|
3534 |
-
|
3535 |
-
#: pro/includes/fields/field-payment.php:225
|
3536 |
-
msgid "Stripe Test API"
|
3537 |
-
msgstr "Stripe Test API"
|
3538 |
-
|
3539 |
-
#: pro/includes/fields/field-payment.php:226
|
3540 |
-
msgid "Your Stripe Test API Keys"
|
3541 |
-
msgstr "Vos clés API Stripe test"
|
3542 |
-
|
3543 |
-
#: pro/includes/fields/field-payment.php:238
|
3544 |
-
#: pro/includes/fields/field-payment.php:257
|
3545 |
-
msgid "Public key"
|
3546 |
-
msgstr "Clé publique"
|
3547 |
-
|
3548 |
-
#: pro/includes/fields/field-payment.php:244
|
3549 |
-
msgid "Stripe Production API"
|
3550 |
-
msgstr "Stripe Production API"
|
3551 |
-
|
3552 |
-
#: pro/includes/fields/field-payment.php:245
|
3553 |
-
msgid "Your Stripe Production API Keys"
|
3554 |
-
msgstr "Vos clés API Stripe Production"
|
3555 |
-
|
3556 |
-
#: pro/includes/fields/field-payment.php:263
|
3557 |
-
msgid "PayPal Test API"
|
3558 |
-
msgstr "PayPal Test API"
|
3559 |
-
|
3560 |
-
#: pro/includes/fields/field-payment.php:264
|
3561 |
-
msgid "Your PayPal Sandbox Credentials"
|
3562 |
-
msgstr "Vos informations d’identification sandbox PayPal"
|
3563 |
-
|
3564 |
-
#: pro/includes/fields/field-payment.php:267
|
3565 |
-
#: pro/includes/fields/field-payment.php:306
|
3566 |
-
msgid "Username"
|
3567 |
-
msgstr "Nom d'utilisateur"
|
3568 |
-
|
3569 |
-
#: pro/includes/fields/field-payment.php:276
|
3570 |
-
#: pro/includes/fields/field-payment.php:315
|
3571 |
-
msgid "Password"
|
3572 |
-
msgstr "Mot de passe"
|
3573 |
-
|
3574 |
-
#: pro/includes/fields/field-payment.php:286
|
3575 |
-
#: pro/includes/fields/field-payment.php:325
|
3576 |
-
msgid "Signature"
|
3577 |
-
msgstr "Signature"
|
3578 |
-
|
3579 |
-
#: pro/includes/fields/field-payment.php:296
|
3580 |
-
#: pro/includes/fields/field-payment.php:335
|
3581 |
-
msgid "Merchant ID"
|
3582 |
-
msgstr "ID du Marchand"
|
3583 |
-
|
3584 |
-
#: pro/includes/fields/field-payment.php:302
|
3585 |
-
msgid "PayPal Production API"
|
3586 |
-
msgstr "PayPal Production API"
|
3587 |
-
|
3588 |
-
#: pro/includes/fields/field-payment.php:303
|
3589 |
-
msgid "Your PayPal Production Credentials"
|
3590 |
-
msgstr "Vos informations d’identification de production PayPal"
|
3591 |
-
|
3592 |
-
#: pro/includes/fields/field-payment.php:341
|
3593 |
-
msgid "Mode"
|
3594 |
-
msgstr "Mode"
|
3595 |
-
|
3596 |
-
#: pro/includes/fields/field-payment.php:342
|
3597 |
-
msgid "Switch API mode"
|
3598 |
-
msgstr "Changer de mode API"
|
3599 |
-
|
3600 |
-
#: pro/includes/fields/field-payment.php:347
|
3601 |
-
#: pro/includes/fields/field-payment.php:446
|
3602 |
-
#: pro/includes/fields/field-payment.php:1371
|
3603 |
-
#: pro/includes/fields/field-payment.php:1413
|
3604 |
-
msgid "Test"
|
3605 |
-
msgstr "Test"
|
3606 |
-
|
3607 |
-
#: pro/includes/fields/field-payment.php:348
|
3608 |
-
#: pro/includes/fields/field-payment.php:1372
|
3609 |
-
msgid "Production"
|
3610 |
-
msgstr "Production"
|
3611 |
-
|
3612 |
-
#: pro/includes/fields/field-payment.php:446
|
3613 |
-
#: pro/includes/fields/field-payment.php:1413
|
3614 |
-
msgid "Gateway"
|
3615 |
-
msgstr "Passerelle"
|
3616 |
-
|
3617 |
-
#: pro/includes/fields/field-payment.php:455
|
3618 |
-
#: pro/includes/fields/field-payment.php:1418
|
3619 |
-
msgid "Items"
|
3620 |
-
msgstr "Articles"
|
3621 |
-
|
3622 |
-
#: pro/includes/fields/field-payment.php:460
|
3623 |
-
#: pro/includes/fields/field-payment.php:1421
|
3624 |
-
#: pro/includes/fields/field-post-field.php:44
|
3625 |
-
msgid "Date"
|
3626 |
-
msgstr "Date"
|
3627 |
-
|
3628 |
-
#: pro/includes/fields/field-payment.php:464
|
3629 |
-
#: pro/includes/fields/field-payment.php:1423
|
3630 |
-
msgid "IP Address"
|
3631 |
-
msgstr "Adresse IP"
|
3632 |
-
|
3633 |
-
#: pro/includes/fields/field-payment.php:468
|
3634 |
-
#: pro/includes/fields/field-payment.php:1425
|
3635 |
-
msgid "Payment ID"
|
3636 |
-
msgstr "ID du Paiement"
|
3637 |
-
|
3638 |
-
#: pro/includes/fields/field-payment.php:472
|
3639 |
-
msgid "Payment Object"
|
3640 |
-
msgstr "Objet de Paiement"
|
3641 |
-
|
3642 |
-
#: pro/includes/fields/field-payment.php:572
|
3643 |
-
msgid "PayPal Checkout"
|
3644 |
-
msgstr "Paiement PayPal"
|
3645 |
-
|
3646 |
-
#: pro/includes/fields/field-payment.php:700
|
3647 |
-
msgid "Amount can't be null"
|
3648 |
-
msgstr "Le montant ne peut pas être nul"
|
3649 |
-
|
3650 |
-
#: pro/includes/fields/field-payment.php:784
|
3651 |
-
msgid "Payment failed"
|
3652 |
-
msgstr "Échec de paiement"
|
3653 |
-
|
3654 |
-
#: pro/includes/fields/field-payment.php:1062
|
3655 |
-
msgid "Your card number is invalid"
|
3656 |
-
msgstr "Votre numéro de carte n’est pas valide"
|
3657 |
-
|
3658 |
-
#: pro/includes/fields/field-phone-number.php:17
|
3659 |
-
#: pro/includes/fields/field-phone-number.php:179
|
3660 |
-
msgid "Phone Number"
|
3661 |
-
msgstr "Numéro de téléphone"
|
3662 |
-
|
3663 |
-
#: pro/includes/fields/field-phone-number.php:52
|
3664 |
-
msgid "All countries"
|
3665 |
-
msgstr "Tous les pays"
|
3666 |
-
|
3667 |
-
#: pro/includes/fields/field-phone-number.php:59
|
3668 |
-
msgid "Preferred Countries"
|
3669 |
-
msgstr "Pays préférés"
|
3670 |
-
|
3671 |
-
#: pro/includes/fields/field-phone-number.php:72
|
3672 |
-
msgid "Default Country"
|
3673 |
-
msgstr "Pays par défaut"
|
3674 |
-
|
3675 |
-
#: pro/includes/fields/field-phone-number.php:93
|
3676 |
-
msgid "Geolocation"
|
3677 |
-
msgstr "Géolocalisation"
|
3678 |
-
|
3679 |
-
#: pro/includes/fields/field-phone-number.php:94
|
3680 |
-
msgid ""
|
3681 |
-
"Lookup the user's country based on their IP address using <a href='https://"
|
3682 |
-
"ipinfo.io/' target='_blank'>IPinfo.io</a>"
|
3683 |
-
msgstr ""
|
3684 |
-
"Rechercher le pays de l'utilisateur basé sur son IP en utilisant <a "
|
3685 |
-
"href='https://ipinfo.io/' target='_blank'>IPinfo.io</a>"
|
3686 |
-
|
3687 |
-
#: pro/includes/fields/field-phone-number.php:101
|
3688 |
-
msgid "Geolocation API token"
|
3689 |
-
msgstr "API token de géolocalisation"
|
3690 |
-
|
3691 |
-
#: pro/includes/fields/field-phone-number.php:102
|
3692 |
-
msgid ""
|
3693 |
-
"<a href=\"https://ipinfo.io/\" target=\"_blank\">IPinfo.io</a> API token"
|
3694 |
-
msgstr ""
|
3695 |
-
"<a href=\"https://ipinfo.io/\" target=\"_blank\">IPinfo.io</a> API token"
|
3696 |
-
|
3697 |
-
#: pro/includes/fields/field-phone-number.php:118
|
3698 |
-
msgid "Native Names"
|
3699 |
-
msgstr "Noms natifs"
|
3700 |
-
|
3701 |
-
#: pro/includes/fields/field-phone-number.php:127
|
3702 |
-
msgid "National Mode"
|
3703 |
-
msgstr "Mode local"
|
3704 |
-
|
3705 |
-
#: pro/includes/fields/field-phone-number.php:145
|
3706 |
-
msgid "Allow Dropdown"
|
3707 |
-
msgstr "Autoriser dropdown"
|
3708 |
-
|
3709 |
-
#: pro/includes/fields/field-phone-number.php:154
|
3710 |
-
msgid "Separate Dial Code"
|
3711 |
-
msgstr "Indicatif téléphonique distinct"
|
3712 |
-
|
3713 |
-
#: pro/includes/fields/field-phone-number.php:178
|
3714 |
-
msgid "Phone Array"
|
3715 |
-
msgstr "Tableau de téléphone"
|
3716 |
-
|
3717 |
-
#: pro/includes/fields/field-phone-number.php:184
|
3718 |
-
msgid "National Number"
|
3719 |
-
msgstr "Numéro de téléphone National"
|
3720 |
-
|
3721 |
-
#: pro/includes/fields/field-phone-number.php:185
|
3722 |
-
msgid "International Number"
|
3723 |
-
msgstr "Numéro de téléphone international"
|
3724 |
-
|
3725 |
-
#: pro/includes/fields/field-phone-number.php:203
|
3726 |
-
msgid "Additional Settings"
|
3727 |
-
msgstr "Réglages supplémentaires"
|
3728 |
-
|
3729 |
-
#: pro/includes/fields/field-phone-number.php:207
|
3730 |
-
msgid ""
|
3731 |
-
"Additional settings such as \"National Number\", \"International Number\" "
|
3732 |
-
"return formats and phone number server validation become available when "
|
3733 |
-
"using the <a href=\"https://github.com/giggsey/libphonenumber-for-php\" "
|
3734 |
-
"target=\"_blank\">Libphonenumber for PHP</a> library.<br />You can install "
|
3735 |
-
"this library manually or with the <a href=\"https://www.acf-extended.com/"
|
3736 |
-
"addons/acf-extended-pro-libphonenumber.zip\" target=\"_blank\">ACF Extended: "
|
3737 |
-
"Phone Number Library Addon</a> plugin."
|
3738 |
-
msgstr ""
|
3739 |
-
"Des réglages supplémentaires tels que \"Numéro de téléphone national\", "
|
3740 |
-
"\"Numéro de téléphone international\" en tant que format de retour et la "
|
3741 |
-
"validation du numéro de téléphone côté serveur deviennent disponibles en "
|
3742 |
-
"utilisant la librairie <a href=\"https://github.com/giggsey/libphonenumber-"
|
3743 |
-
"for-php\" target=\"_blank\">Libphonenumber for PHP</a>.<br />Vous pouvez "
|
3744 |
-
"l'installer manuellement ou télécharger le plugin <a href=\"https://www.acf-"
|
3745 |
-
"extended.com/addons/acf-extended-pro-libphonenumber.zip\" target=\"_blank"
|
3746 |
-
"\">ACF Extended: Phone Number Library Addon</a>."
|
3747 |
-
|
3748 |
-
#: pro/includes/fields/field-phone-number.php:230
|
3749 |
-
msgctxt "Phone Number JS invalidPhoneNumber"
|
3750 |
-
msgid "Invalid Phone Number"
|
3751 |
-
msgstr "Numéro de téléphone invalide"
|
3752 |
-
|
3753 |
-
#: pro/includes/fields/field-phone-number.php:231
|
3754 |
-
msgctxt "Phone Number JS invalidCountry"
|
3755 |
-
msgid "Invalid Country"
|
3756 |
-
msgstr "Pays invalide"
|
3757 |
-
|
3758 |
-
#: pro/includes/fields/field-phone-number.php:232
|
3759 |
-
msgctxt "Phone Number JS phoneNumberTooShort"
|
3760 |
-
msgid "Phone Number is too short"
|
3761 |
-
msgstr "Le numéro de téléphone est trop court"
|
3762 |
-
|
3763 |
-
#: pro/includes/fields/field-phone-number.php:233
|
3764 |
-
msgctxt "Phone Number JS phoneNumberTooLong"
|
3765 |
-
msgid "Phone Number is too long"
|
3766 |
-
msgstr "Le numéro de téléphone est trop long"
|
3767 |
-
|
3768 |
-
#: pro/includes/fields/field-phone-number.php:337
|
3769 |
-
#: pro/includes/fields/field-phone-number.php:354
|
3770 |
-
msgid "Invalid Phone Number"
|
3771 |
-
msgstr "Numéro de téléphone invalide"
|
3772 |
-
|
3773 |
-
#: pro/includes/fields/field-phone-number.php:348
|
3774 |
-
msgid "Invalid Country"
|
3775 |
-
msgstr "Pays invalide"
|
3776 |
-
|
3777 |
-
#: pro/includes/fields/field-post-field.php:17
|
3778 |
-
msgid "Post Field"
|
3779 |
-
msgstr "Champ d'Article"
|
3780 |
-
|
3781 |
-
#: pro/includes/fields/field-post-field.php:40
|
3782 |
-
msgid "Attributes"
|
3783 |
-
msgstr "Attributs"
|
3784 |
-
|
3785 |
-
#: pro/includes/fields/field-post-field.php:42
|
3786 |
-
msgid "Comments"
|
3787 |
-
msgstr "Commentaires"
|
3788 |
-
|
3789 |
-
#: pro/includes/fields/field-post-field.php:43
|
3790 |
-
msgid "Content"
|
3791 |
-
msgstr "Contenu"
|
3792 |
-
|
3793 |
-
#: pro/includes/fields/field-post-field.php:45
|
3794 |
-
#: pro/includes/locations/settings.php:91
|
3795 |
-
msgid "Discussion"
|
3796 |
-
msgstr "Discussion"
|
3797 |
-
|
3798 |
-
#: pro/includes/fields/field-post-field.php:46
|
3799 |
-
msgid "Excerpt"
|
3800 |
-
msgstr "Extrait"
|
3801 |
-
|
3802 |
-
#: pro/includes/fields/field-post-field.php:47
|
3803 |
-
msgid "Featured Image"
|
3804 |
-
msgstr "Image à la une"
|
3805 |
-
|
3806 |
-
#: pro/includes/fields/field-post-field.php:49
|
3807 |
-
msgid "Permalink"
|
3808 |
-
msgstr "Permalien"
|
3809 |
-
|
3810 |
-
#: pro/includes/fields/field-post-field.php:51
|
3811 |
-
msgid "Revisions"
|
3812 |
-
msgstr "Révisions"
|
3813 |
-
|
3814 |
-
#: pro/includes/fields/field-post-field.php:52
|
3815 |
-
msgid "Revisions List"
|
3816 |
-
msgstr "Liste des révisions"
|
3817 |
-
|
3818 |
-
#: pro/includes/fields/field-post-field.php:53
|
3819 |
-
msgid "Status"
|
3820 |
-
msgstr "Statut"
|
3821 |
-
|
3822 |
-
#: pro/includes/fields/field-post-field.php:54
|
3823 |
-
#: pro/includes/fields/field-post-field.php:63
|
3824 |
-
#: pro/includes/locations/menu-item-type.php:24
|
3825 |
-
#: pro/includes/modules/dev.php:173
|
3826 |
-
msgid "Taxonomy"
|
3827 |
-
msgstr "Taxonomie"
|
3828 |
-
|
3829 |
-
#: pro/includes/fields/field-post-field.php:56
|
3830 |
-
msgid "Trackbacks"
|
3831 |
-
msgstr "Rétroliens"
|
3832 |
-
|
3833 |
-
#: pro/includes/fields/field-post-field.php:57
|
3834 |
-
msgid "Visibility"
|
3835 |
-
msgstr "Visibilité"
|
3836 |
-
|
3837 |
-
#: pro/includes/fields/field-post-formats.php:17
|
3838 |
-
msgid "Post Formats"
|
3839 |
-
msgstr "Formats d'articles"
|
3840 |
-
|
3841 |
-
#: pro/includes/fields/field-post-formats.php:93
|
3842 |
-
msgid "Allow Formats"
|
3843 |
-
msgstr "Autoriser les formats"
|
3844 |
-
|
3845 |
-
#: pro/includes/fields/field-post-formats.php:101
|
3846 |
-
msgid "All Formats"
|
3847 |
-
msgstr "Tous les formats"
|
3848 |
-
|
3849 |
-
#: pro/includes/fields/field-relationship.php:36
|
3850 |
-
msgid "Allow Post Creation"
|
3851 |
-
msgstr "Autoriser la création de publication"
|
3852 |
-
|
3853 |
-
#: pro/includes/fields/field-relationship.php:44
|
3854 |
-
msgid "Allow Post Edit"
|
3855 |
-
msgstr "Autoriser la publication de la modification"
|
3856 |
-
|
3857 |
-
#: pro/includes/fields/field-relationship.php:137
|
3858 |
-
msgctxt "post"
|
3859 |
-
msgid "Add New"
|
3860 |
-
msgstr "Ajouter"
|
3861 |
-
|
3862 |
-
#: pro/includes/fields/field-tab.php:32
|
3863 |
-
msgid "No Preference"
|
3864 |
-
msgstr "Pas de préférence"
|
3865 |
-
|
3866 |
-
#: pro/includes/fields/field-templates.php:17
|
3867 |
-
#: pro/includes/modules/templates.php:71 pro/includes/modules/templates.php:72
|
3868 |
-
#: pro/includes/modules/templates.php:74 pro/includes/modules/templates.php:76
|
3869 |
-
msgid "Templates"
|
3870 |
-
msgstr "Modèles"
|
3871 |
-
|
3872 |
-
#: pro/includes/fields/field-templates.php:88
|
3873 |
-
msgid "Allow Templates"
|
3874 |
-
msgstr "Autoriser les modèles"
|
3875 |
-
|
3876 |
-
#: pro/includes/fields/field-templates.php:96
|
3877 |
-
msgid "All templates"
|
3878 |
-
msgstr "Tous les modèles"
|
3879 |
-
|
3880 |
-
#: pro/includes/fields/field-templates.php:128
|
3881 |
-
msgid "Template ID"
|
3882 |
-
msgstr "ID du Template"
|
3883 |
-
|
3884 |
-
#: pro/includes/fields/field-templates.php:129
|
3885 |
-
msgid "Template name"
|
3886 |
-
msgstr "Nom du modèle"
|
3887 |
-
|
3888 |
-
#: pro/includes/fields/field-true-false.php:33
|
3889 |
-
msgid "Style"
|
3890 |
-
msgstr "Style"
|
3891 |
-
|
3892 |
-
#: pro/includes/fields/field-true-false.php:38
|
3893 |
-
msgid "Default"
|
3894 |
-
msgstr "Par défaut"
|
3895 |
-
|
3896 |
-
#: pro/includes/fields/field-true-false.php:39
|
3897 |
-
msgid "Default Rounded"
|
3898 |
-
msgstr "Arrondi par défaut"
|
3899 |
-
|
3900 |
-
#: pro/includes/fields/field-true-false.php:40
|
3901 |
-
msgid "Small"
|
3902 |
-
msgstr "Petit"
|
3903 |
-
|
3904 |
-
#: pro/includes/fields/field-true-false.php:41
|
3905 |
-
msgid "Small Rounded"
|
3906 |
-
msgstr "Petit arrondi"
|
3907 |
-
|
3908 |
-
#: pro/includes/fields/field-true-false.php:42
|
3909 |
-
msgid "Alternative"
|
3910 |
-
msgstr "Alternatif"
|
3911 |
-
|
3912 |
-
#: pro/includes/fields/field-true-false.php:43
|
3913 |
-
msgid "Alternative Rounded"
|
3914 |
-
msgstr "Arrondi alternatif"
|
3915 |
-
|
3916 |
-
#: pro/includes/fields/field-wysiwyg.php:74
|
3917 |
-
msgid "Auto initialization"
|
3918 |
-
msgstr "Initialisation automatique"
|
3919 |
-
|
3920 |
-
#: pro/includes/fields/field-wysiwyg.php:75
|
3921 |
-
msgid "Automatically initialize TinyMCE when shown"
|
3922 |
-
msgstr "Initialiser automatiquement de TinyMCE lorsqu’il est affiché"
|
3923 |
-
|
3924 |
-
#: pro/includes/fields/field-wysiwyg.php:97
|
3925 |
-
#: pro/includes/fields/field-wysiwyg.php:117
|
3926 |
-
#: pro/includes/fields/field-wysiwyg.php:139
|
3927 |
-
msgid "Height"
|
3928 |
-
msgstr "Hauteur"
|
3929 |
-
|
3930 |
-
#: pro/includes/fields/field-wysiwyg.php:162
|
3931 |
-
msgid "Valid Elements"
|
3932 |
-
msgstr "Éléments valides"
|
3933 |
-
|
3934 |
-
#: pro/includes/fields/field-wysiwyg.php:165
|
3935 |
-
msgid "Set custom valid HTML tags"
|
3936 |
-
msgstr "Définir des balises HTML valides personnalisées"
|
3937 |
-
|
3938 |
-
#: pro/includes/fields/field-wysiwyg.php:183
|
3939 |
-
msgid "Custom Style"
|
3940 |
-
msgstr "Style personnalisé"
|
3941 |
-
|
3942 |
-
#: pro/includes/fields/field-wysiwyg.php:186
|
3943 |
-
msgid "Add multiple files separated with comma"
|
3944 |
-
msgstr "Ajouter plusieurs fichiers séparés par une virgule"
|
3945 |
-
|
3946 |
-
#: pro/includes/fields/field-wysiwyg.php:197
|
3947 |
-
msgid "Disable WP Style"
|
3948 |
-
msgstr "Désactiver le style WP"
|
3949 |
-
|
3950 |
-
#: pro/includes/fields/field-wysiwyg.php:200
|
3951 |
-
msgid "Remove TinyMCE builtin stylesheets"
|
3952 |
-
msgstr "Supprimer les feuilles de style intégrées TinyMCE"
|
3953 |
-
|
3954 |
-
#: pro/includes/fields/field-wysiwyg.php:209
|
3955 |
-
msgid "Autoresize"
|
3956 |
-
msgstr "Mise en forme automatique"
|
3957 |
-
|
3958 |
-
#: pro/includes/fields/field-wysiwyg.php:212
|
3959 |
-
msgid "Height will be based on the editor content"
|
3960 |
-
msgstr "La hauteur sera basée sur le contenu de l’éditeur"
|
3961 |
-
|
3962 |
-
#: pro/includes/fields/field-wysiwyg.php:221
|
3963 |
-
msgid "Disable Resize"
|
3964 |
-
msgstr "Désactiver le redimensionnement"
|
3965 |
-
|
3966 |
-
#: pro/includes/fields/field-wysiwyg.php:224
|
3967 |
-
msgid "Remove the editor resize functionality"
|
3968 |
-
msgstr "Supprimer la fonctionnalité de redimensionnement de l’éditeur"
|
3969 |
-
|
3970 |
-
#: pro/includes/fields/field-wysiwyg.php:233
|
3971 |
-
msgid "Disable Path"
|
3972 |
-
msgstr "Désactiver le chemin d’accès"
|
3973 |
-
|
3974 |
-
#: pro/includes/fields/field-wysiwyg.php:236
|
3975 |
-
msgid "Hide the editor path status bar"
|
3976 |
-
msgstr "Masquer la barre d’état du chemin d’accès de l’éditeur"
|
3977 |
-
|
3978 |
-
#: pro/includes/fields/field-wysiwyg.php:245
|
3979 |
-
msgid "Menu Bar"
|
3980 |
-
msgstr "Barre de menu"
|
3981 |
-
|
3982 |
-
#: pro/includes/fields/field-wysiwyg.php:248
|
3983 |
-
msgid "Show the menu bar on top of the editor"
|
3984 |
-
msgstr "Afficher la barre de menus en haut de l’éditeur"
|
3985 |
-
|
3986 |
-
#: pro/includes/fields/field-wysiwyg.php:257
|
3987 |
-
msgid "Transparent Editor"
|
3988 |
-
msgstr "Éditeur transparent"
|
3989 |
-
|
3990 |
-
#: pro/includes/fields/field-wysiwyg.php:260
|
3991 |
-
msgid "Set the editor's background as transparent"
|
3992 |
-
msgstr "Définir l’arrière-plan de l’éditeur comme transparent"
|
3993 |
-
|
3994 |
-
#: pro/includes/fields/field-wysiwyg.php:269
|
3995 |
-
msgid "Merge Toolbars"
|
3996 |
-
msgstr "Fusionner les barres d’outils"
|
3997 |
-
|
3998 |
-
#: pro/includes/fields/field-wysiwyg.php:272
|
3999 |
-
msgid "Glue editor toolbars together"
|
4000 |
-
msgstr "Coller les barres d’outils de l’éditeur ensemble"
|
4001 |
-
|
4002 |
-
#: pro/includes/fields/field-wysiwyg.php:281
|
4003 |
-
msgid "Customize Toolbar"
|
4004 |
-
msgstr "Personnaliser la barre d’outils"
|
4005 |
-
|
4006 |
-
#: pro/includes/fields/field-wysiwyg.php:349
|
4007 |
-
msgid "+ Add button"
|
4008 |
-
msgstr "+ Bouton Ajouter"
|
4009 |
-
|
4010 |
-
#: pro/includes/fields/field-wysiwyg.php:445
|
4011 |
-
msgid "Custom Toolbar Buttons"
|
4012 |
-
msgstr "Boutons de barre d’outils personnalisés"
|
4013 |
-
|
4014 |
-
#: pro/includes/locations/attachment-list.php:206
|
4015 |
-
#: pro/includes/locations/user-list.php:204
|
4016 |
-
msgid "List"
|
4017 |
-
msgstr "Liste"
|
4018 |
-
|
4019 |
-
#: pro/includes/locations/menu-item-depth.php:14
|
4020 |
-
msgid "Menu Item Depth"
|
4021 |
-
msgstr "Profondeur de l’élément de menu"
|
4022 |
-
|
4023 |
-
#: pro/includes/locations/menu-item-depth.php:45
|
4024 |
-
#: pro/includes/locations/post-date-time.php:59
|
4025 |
-
#: pro/includes/locations/post-date.php:59
|
4026 |
-
#: pro/includes/locations/post-time.php:59
|
4027 |
-
msgid "is less than"
|
4028 |
-
msgstr "est inférieur à"
|
4029 |
-
|
4030 |
-
#: pro/includes/locations/menu-item-depth.php:46
|
4031 |
-
#: pro/includes/locations/post-date-time.php:60
|
4032 |
-
#: pro/includes/locations/post-date.php:60
|
4033 |
-
#: pro/includes/locations/post-time.php:60
|
4034 |
-
msgid "is less or equal to"
|
4035 |
-
msgstr "est inférieur ou égal à"
|
4036 |
-
|
4037 |
-
#: pro/includes/locations/menu-item-depth.php:47
|
4038 |
-
#: pro/includes/locations/post-date-time.php:61
|
4039 |
-
#: pro/includes/locations/post-date.php:61
|
4040 |
-
#: pro/includes/locations/post-time.php:61
|
4041 |
-
msgid "is greater than"
|
4042 |
-
msgstr "est supérieur à"
|
4043 |
-
|
4044 |
-
#: pro/includes/locations/menu-item-depth.php:48
|
4045 |
-
#: pro/includes/locations/post-date-time.php:62
|
4046 |
-
#: pro/includes/locations/post-date.php:62
|
4047 |
-
#: pro/includes/locations/post-time.php:62
|
4048 |
-
msgid "is greater or equal to"
|
4049 |
-
msgstr "est supérieur ou égal à"
|
4050 |
-
|
4051 |
-
#: pro/includes/locations/menu-item-type.php:14
|
4052 |
-
msgid "Menu Item Type"
|
4053 |
-
msgstr "Type d’entrée de menu"
|
4054 |
-
|
4055 |
-
#: pro/includes/locations/menu-item-type.php:22
|
4056 |
-
msgid "Custom"
|
4057 |
-
msgstr "Personnalisé"
|
4058 |
-
|
4059 |
-
#: pro/includes/locations/post-author-role.php:14
|
4060 |
-
msgid "Post Author Role"
|
4061 |
-
msgstr "Rôle d’auteur de publication"
|
4062 |
-
|
4063 |
-
#: pro/includes/locations/post-author.php:14
|
4064 |
-
msgid "Post Author"
|
4065 |
-
msgstr "Auteur de l’article"
|
4066 |
-
|
4067 |
-
#: pro/includes/locations/post-date-time.php:14
|
4068 |
-
msgid "Post Date Time"
|
4069 |
-
msgstr "Date de publication, heure"
|
4070 |
-
|
4071 |
-
#: pro/includes/locations/post-date.php:14
|
4072 |
-
msgid "Post Date"
|
4073 |
-
msgstr "Date de l'article"
|
4074 |
-
|
4075 |
-
#: pro/includes/locations/post-path.php:14
|
4076 |
-
msgid "Post Path"
|
4077 |
-
msgstr "Chemin de publication"
|
4078 |
-
|
4079 |
-
#: pro/includes/locations/post-path.php:44
|
4080 |
-
#: pro/includes/locations/post-slug.php:44
|
4081 |
-
#: pro/includes/locations/post-title.php:44
|
4082 |
-
#: pro/includes/locations/taxonomy-term-name.php:44
|
4083 |
-
#: pro/includes/locations/taxonomy-term-slug.php:44
|
4084 |
-
msgid "contains"
|
4085 |
-
msgstr "contient"
|
4086 |
-
|
4087 |
-
#: pro/includes/locations/post-path.php:45
|
4088 |
-
#: pro/includes/locations/post-slug.php:45
|
4089 |
-
#: pro/includes/locations/post-title.php:45
|
4090 |
-
#: pro/includes/locations/taxonomy-term-name.php:45
|
4091 |
-
#: pro/includes/locations/taxonomy-term-slug.php:45
|
4092 |
-
msgid "doesn't contains"
|
4093 |
-
msgstr "ne contient pas"
|
4094 |
-
|
4095 |
-
#: pro/includes/locations/post-path.php:46
|
4096 |
-
#: pro/includes/locations/post-slug.php:46
|
4097 |
-
#: pro/includes/locations/post-title.php:46
|
4098 |
-
#: pro/includes/locations/taxonomy-term-name.php:46
|
4099 |
-
#: pro/includes/locations/taxonomy-term-slug.php:46
|
4100 |
-
msgid "starts with"
|
4101 |
-
msgstr "commence par"
|
4102 |
-
|
4103 |
-
#: pro/includes/locations/post-path.php:47
|
4104 |
-
#: pro/includes/locations/post-slug.php:47
|
4105 |
-
#: pro/includes/locations/post-title.php:47
|
4106 |
-
#: pro/includes/locations/taxonomy-term-name.php:47
|
4107 |
-
#: pro/includes/locations/taxonomy-term-slug.php:47
|
4108 |
-
msgid "doesn't starts with"
|
4109 |
-
msgstr "ne commence pas par"
|
4110 |
-
|
4111 |
-
#: pro/includes/locations/post-path.php:48
|
4112 |
-
#: pro/includes/locations/post-slug.php:48
|
4113 |
-
#: pro/includes/locations/post-title.php:48
|
4114 |
-
#: pro/includes/locations/taxonomy-term-name.php:48
|
4115 |
-
#: pro/includes/locations/taxonomy-term-slug.php:48
|
4116 |
-
msgid "ends with"
|
4117 |
-
msgstr "se termine par"
|
4118 |
-
|
4119 |
-
#: pro/includes/locations/post-path.php:49
|
4120 |
-
#: pro/includes/locations/post-slug.php:49
|
4121 |
-
#: pro/includes/locations/post-title.php:49
|
4122 |
-
#: pro/includes/locations/taxonomy-term-name.php:49
|
4123 |
-
#: pro/includes/locations/taxonomy-term-slug.php:49
|
4124 |
-
msgid "doesn't ends with"
|
4125 |
-
msgstr "ne finit pas par"
|
4126 |
-
|
4127 |
-
#: pro/includes/locations/post-path.php:50
|
4128 |
-
#: pro/includes/locations/post-slug.php:50
|
4129 |
-
#: pro/includes/locations/post-title.php:50
|
4130 |
-
#: pro/includes/locations/taxonomy-term-name.php:50
|
4131 |
-
#: pro/includes/locations/taxonomy-term-slug.php:50
|
4132 |
-
msgid "matches regex"
|
4133 |
-
msgstr "correspond au regex"
|
4134 |
-
|
4135 |
-
#: pro/includes/locations/post-path.php:51
|
4136 |
-
#: pro/includes/locations/post-slug.php:51
|
4137 |
-
#: pro/includes/locations/post-title.php:51
|
4138 |
-
#: pro/includes/locations/taxonomy-term-name.php:51
|
4139 |
-
#: pro/includes/locations/taxonomy-term-slug.php:51
|
4140 |
-
msgid "doesn't matches regex"
|
4141 |
-
msgstr "ne correspond pas à la regex"
|
4142 |
-
|
4143 |
-
#: pro/includes/locations/post-screen.php:14
|
4144 |
-
msgid "Post Screen"
|
4145 |
-
msgstr "Écran de publication"
|
4146 |
-
|
4147 |
-
#: pro/includes/locations/post-slug.php:14
|
4148 |
-
msgid "Post Slug"
|
4149 |
-
msgstr "Jeton d'article"
|
4150 |
-
|
4151 |
-
#: pro/includes/locations/post-time.php:14
|
4152 |
-
msgid "Post Time"
|
4153 |
-
msgstr "Heure de l’article"
|
4154 |
-
|
4155 |
-
#: pro/includes/locations/post-title.php:14
|
4156 |
-
msgid "Post Title"
|
4157 |
-
msgstr "Titre de l'article"
|
4158 |
-
|
4159 |
-
#: pro/includes/locations/settings.php:78
|
4160 |
-
msgid "WP Settings"
|
4161 |
-
msgstr "Paramètres WordPress"
|
4162 |
-
|
4163 |
-
#: pro/includes/locations/settings.php:88
|
4164 |
-
msgctxt "settings screen"
|
4165 |
-
msgid "General"
|
4166 |
-
msgstr "Général"
|
4167 |
-
|
4168 |
-
#: pro/includes/locations/settings.php:89
|
4169 |
-
msgid "Writing"
|
4170 |
-
msgstr "Ecriture"
|
4171 |
-
|
4172 |
-
#: pro/includes/locations/settings.php:90
|
4173 |
-
msgid "Reading"
|
4174 |
-
msgstr "En train de lire"
|
4175 |
-
|
4176 |
-
#: pro/includes/locations/settings.php:92
|
4177 |
-
msgid "Media"
|
4178 |
-
msgstr "Média"
|
4179 |
-
|
4180 |
-
#: pro/includes/locations/settings.php:93
|
4181 |
-
msgid "Permalinks"
|
4182 |
-
msgstr "Permaliens"
|
4183 |
-
|
4184 |
-
#: pro/includes/locations/taxonomy-term-name.php:14
|
4185 |
-
msgid "Taxonomy Term Name"
|
4186 |
-
msgstr "Nom du terme de taxonomie"
|
4187 |
-
|
4188 |
-
#: pro/includes/locations/taxonomy-term-parent.php:14
|
4189 |
-
msgid "Taxonomy Term Parent"
|
4190 |
-
msgstr "Parent du terme de taxonomie"
|
4191 |
-
|
4192 |
-
#: pro/includes/locations/taxonomy-term-slug.php:14
|
4193 |
-
msgid "Taxonomy Term Slug"
|
4194 |
-
msgstr "Terme de taxonomie Slug"
|
4195 |
-
|
4196 |
-
#: pro/includes/locations/taxonomy-term-type.php:14
|
4197 |
-
msgid "Taxonomy Term Type"
|
4198 |
-
msgstr "Type de terme de taxonomie"
|
4199 |
-
|
4200 |
-
#: pro/includes/locations/taxonomy-term-type.php:22
|
4201 |
-
msgid "Top Level Term (no parent)"
|
4202 |
-
msgstr "Terme de niveau supérieur (aucun parent)"
|
4203 |
-
|
4204 |
-
#: pro/includes/locations/taxonomy-term-type.php:23
|
4205 |
-
msgid "Parent Term (has children)"
|
4206 |
-
msgstr "Terme parent (a des enfants)"
|
4207 |
-
|
4208 |
-
#: pro/includes/locations/taxonomy-term-type.php:24
|
4209 |
-
msgid "Child Term (has parent)"
|
4210 |
-
msgstr "Terme enfant (a un parent)"
|
4211 |
-
|
4212 |
-
#: pro/includes/locations/taxonomy-term.php:14
|
4213 |
-
msgid "Taxonomy Term"
|
4214 |
-
msgstr "Terme de taxonomie"
|
4215 |
-
|
4216 |
-
#: pro/includes/modules/dev.php:87 pro/includes/modules/dev.php:177
|
4217 |
-
#: pro/includes/modules/dev.php:244 pro/includes/modules/dev.php:344
|
4218 |
-
#: pro/includes/modules/dev.php:400 pro/includes/modules/dev.php:456
|
4219 |
-
#: pro/includes/modules/dev.php:510
|
4220 |
-
msgid "Object data"
|
4221 |
-
msgstr "Données objet"
|
4222 |
-
|
4223 |
-
#: pro/includes/modules/dev.php:88
|
4224 |
-
msgid "Post Object"
|
4225 |
-
msgstr "Objet de l'article"
|
4226 |
-
|
4227 |
-
#: pro/includes/modules/dev.php:91 pro/includes/modules/dev.php:181
|
4228 |
-
#: pro/includes/modules/dev.php:248 pro/includes/modules/dev.php:299
|
4229 |
-
#: pro/includes/modules/dev.php:348 pro/includes/modules/dev.php:404
|
4230 |
-
#: pro/includes/modules/dev.php:460 pro/includes/modules/dev.php:514
|
4231 |
-
#: pro/includes/modules/dev.php:563
|
4232 |
-
msgid "Meta count"
|
4233 |
-
msgstr "Nombre de meta"
|
4234 |
-
|
4235 |
-
#: pro/includes/modules/dev.php:94 pro/includes/modules/dev.php:184
|
4236 |
-
#: pro/includes/modules/dev.php:251 pro/includes/modules/dev.php:302
|
4237 |
-
#: pro/includes/modules/dev.php:351 pro/includes/modules/dev.php:407
|
4238 |
-
#: pro/includes/modules/dev.php:463 pro/includes/modules/dev.php:517
|
4239 |
-
#: pro/includes/modules/dev.php:566
|
4240 |
-
msgid "Clean"
|
4241 |
-
msgstr "Nettoyer"
|
4242 |
-
|
4243 |
-
#: pro/includes/modules/dev.php:100 pro/includes/modules/dev.php:190
|
4244 |
-
#: pro/includes/modules/dev.php:257 pro/includes/modules/dev.php:308
|
4245 |
-
#: pro/includes/modules/dev.php:357 pro/includes/modules/dev.php:413
|
4246 |
-
#: pro/includes/modules/dev.php:469 pro/includes/modules/dev.php:523
|
4247 |
-
#: pro/includes/modules/dev.php:572
|
4248 |
-
msgid "Single meta"
|
4249 |
-
msgstr "Méta unique"
|
4250 |
-
|
4251 |
-
#: pro/includes/modules/dev.php:101 pro/includes/modules/dev.php:191
|
4252 |
-
#: pro/includes/modules/dev.php:258 pro/includes/modules/dev.php:309
|
4253 |
-
#: pro/includes/modules/dev.php:358 pro/includes/modules/dev.php:414
|
4254 |
-
#: pro/includes/modules/dev.php:470 pro/includes/modules/dev.php:524
|
4255 |
-
#: pro/includes/modules/dev.php:573
|
4256 |
-
msgid "Enabled"
|
4257 |
-
msgstr "Activé"
|
4258 |
-
|
4259 |
-
#: pro/includes/modules/dev.php:178
|
4260 |
-
msgid "Term Object"
|
4261 |
-
msgstr "Objet du terme"
|
4262 |
-
|
4263 |
-
#: pro/includes/modules/dev.php:245
|
4264 |
-
msgid "User Object"
|
4265 |
-
msgstr "Objet utilisateur"
|
4266 |
-
|
4267 |
-
#: pro/includes/modules/dev.php:345
|
4268 |
-
msgid "Options Page Object"
|
4269 |
-
msgstr "Objet de Page Options"
|
4270 |
-
|
4271 |
-
#: pro/includes/modules/dev.php:401 pro/includes/modules/dev.php:511
|
4272 |
-
msgid "Post Type Object"
|
4273 |
-
msgstr "Object du type de publication"
|
4274 |
-
|
4275 |
-
#: pro/includes/modules/dev.php:457
|
4276 |
-
msgid "Taxonomy Object"
|
4277 |
-
msgstr "Objet de la taxonomie"
|
4278 |
-
|
4279 |
-
#: pro/includes/modules/dev.php:633
|
4280 |
-
msgid "Users"
|
4281 |
-
msgstr "Utilisateurs"
|
4282 |
-
|
4283 |
-
#: pro/includes/modules/global-field-condition.php:60
|
4284 |
-
msgid "Set as Global Conditional Logic"
|
4285 |
-
msgstr "Définir comme logique conditionnelle globale"
|
4286 |
-
|
4287 |
-
#: pro/includes/modules/rewrite-rules.php:37
|
4288 |
-
#: pro/includes/modules/rewrite-rules.php:183
|
4289 |
-
msgid "Rewrite Rules"
|
4290 |
-
msgstr "Règles de réécriture"
|
4291 |
-
|
4292 |
-
#: pro/includes/modules/scripts-list.php:30
|
4293 |
-
msgid "Script"
|
4294 |
-
msgstr "Script"
|
4295 |
-
|
4296 |
-
#: pro/includes/modules/scripts-list.php:31 pro/includes/modules/scripts.php:53
|
4297 |
-
#: pro/includes/modules/scripts.php:365
|
4298 |
-
msgid "Scripts"
|
4299 |
-
msgstr "Scripts"
|
4300 |
-
|
4301 |
-
#: pro/includes/modules/scripts-list.php:137
|
4302 |
-
msgid "No scripts avaliable."
|
4303 |
-
msgstr "Aucun script disponible."
|
4304 |
-
|
4305 |
-
#: pro/includes/modules/scripts-list.php:199
|
4306 |
-
msgid "Run now"
|
4307 |
-
msgstr "Exécuter maintenant"
|
4308 |
-
|
4309 |
-
#: pro/includes/modules/scripts.php:89
|
4310 |
-
msgid "Sorry, you are not allowed to access this page."
|
4311 |
-
msgstr "Désolé, vous n'êtes pas autorisé à accéder à cette page."
|
4312 |
-
|
4313 |
-
#: pro/includes/modules/scripts.php:282
|
4314 |
-
msgid "Total"
|
4315 |
-
msgstr "Total"
|
4316 |
-
|
4317 |
-
#: pro/includes/modules/scripts.php:283
|
4318 |
-
msgid "Items left"
|
4319 |
-
msgstr "Objets restants"
|
4320 |
-
|
4321 |
-
#: pro/includes/modules/scripts.php:284
|
4322 |
-
msgid "Time left"
|
4323 |
-
msgstr "Temps restant"
|
4324 |
-
|
4325 |
-
#: pro/includes/modules/scripts.php:285
|
4326 |
-
msgid "Timer"
|
4327 |
-
msgstr "Minuteur"
|
4328 |
-
|
4329 |
-
#: pro/includes/modules/scripts/script-orphan-meta-cleaner.php:127
|
4330 |
-
#: pro/includes/modules/scripts/script-single-meta-converter.php:127
|
4331 |
-
msgid "No options pages"
|
4332 |
-
msgstr "Aucune pages d’options"
|
4333 |
-
|
4334 |
-
#: pro/includes/modules/scripts/script-orphan-meta-cleaner.php:293
|
4335 |
-
msgid "Script finished."
|
4336 |
-
msgstr "Script terminé."
|
4337 |
-
|
4338 |
-
#: pro/includes/modules/templates.php:24
|
4339 |
-
msgid "Locations"
|
4340 |
-
msgstr "Emplacements"
|
4341 |
-
|
4342 |
-
#: pro/includes/modules/templates.php:75
|
4343 |
-
msgid "Template"
|
4344 |
-
msgstr "Modèle"
|
4345 |
-
|
4346 |
-
#: pro/includes/modules/templates.php:77
|
4347 |
-
msgid "Edit Template"
|
4348 |
-
msgstr "Modifier le modèle"
|
4349 |
-
|
4350 |
-
#: pro/includes/modules/templates.php:78
|
4351 |
-
msgid "New Template"
|
4352 |
-
msgstr "Nouveau modèle"
|
4353 |
-
|
4354 |
-
#: pro/includes/modules/templates.php:174
|
4355 |
-
msgid "You are currently editing a Dynamic Template."
|
4356 |
-
msgstr "Vous modifiez actuellement un modèle dynamique."
|
4357 |
-
|
4358 |
-
#: pro/includes/modules/templates.php:200
|
4359 |
-
msgid "Instructions"
|
4360 |
-
msgstr "Instructions"
|
4361 |
-
|
4362 |
-
#: pro/includes/modules/templates.php:687
|
4363 |
-
msgid "Dynamic Template"
|
4364 |
-
msgstr "Modèle dynamique"
|
4365 |
-
|
4366 |
-
#: pro/includes/modules/templates.php:699
|
4367 |
-
msgid "is equal to"
|
4368 |
-
msgstr "est égal à"
|
4369 |
-
|
4370 |
-
#: pro/includes/modules/templates.php:721
|
4371 |
-
msgid "No templates found"
|
4372 |
-
msgstr "Aucun modèle trouvé"
|
4373 |
-
|
4374 |
-
#: pro/includes/updater.php:253
|
4375 |
-
#, php-format
|
4376 |
-
msgid ""
|
4377 |
-
"There is a new version of %1$s available. %2$sView version %3$s details%4$s."
|
4378 |
-
msgstr ""
|
4379 |
-
"Il existe une nouvelle version disponible de %1$s. %2$s Afficher la version "
|
4380 |
-
"%3$s details %4$s."
|
4381 |
-
|
4382 |
-
#: pro/includes/updater.php:261
|
4383 |
-
#, php-format
|
4384 |
-
msgid ""
|
4385 |
-
"There is a new version of %1$s available. %2$sView version %3$s details%4$s "
|
4386 |
-
"or %5$supdate now%6$s."
|
4387 |
-
msgstr ""
|
4388 |
-
"Il y a une nouvelle version disponible de %1$s. %2$s Afficher la version "
|
4389 |
-
"%3$s détails %4$s ou %5$s mettre à jour maintenant %6$s."
|
4390 |
-
|
4391 |
-
#: pro/includes/updater.php:510
|
4392 |
-
msgid "You do not have permission to install plugin updates"
|
4393 |
-
msgstr ""
|
4394 |
-
"Vous n’avez pas la permission d’installer les mises à jour de l’extension"
|
4395 |
-
|
4396 |
-
#: pro/includes/updater.php:510
|
4397 |
-
msgid "Error"
|
4398 |
-
msgstr "Erreur"
|
4399 |
-
|
4400 |
-
#: pro/includes/updates.php:246
|
4401 |
-
msgid "Deactivate License"
|
4402 |
-
msgstr "Désactiver la licence"
|
4403 |
-
|
4404 |
-
#: pro/includes/updates.php:246
|
4405 |
-
msgid "Activate License"
|
4406 |
-
msgstr "Activer la licence"
|
4407 |
-
|
4408 |
-
#: pro/includes/updates.php:286
|
4409 |
-
msgid "ACF Extended: License Information"
|
4410 |
-
msgstr "ACF Extended : informations de licence"
|
4411 |
-
|
4412 |
-
#: pro/includes/updates.php:290
|
4413 |
-
#, php-format
|
4414 |
-
msgid ""
|
4415 |
-
"To unlock updates, please enter your license key below. If you don't have a "
|
4416 |
-
"licence key, please see <a href=\"%s\" target=\"_blank\">details & pricing</"
|
4417 |
-
"a>."
|
4418 |
-
msgstr ""
|
4419 |
-
"Pour débloquer les mises à jour, veuillez saisir votre clé de licence ci-"
|
4420 |
-
"dessous. Si vous n’en possédez pas encore une, jetez un œil à nos <a href="
|
4421 |
-
"\"%s\" target=\"_blank\">détails & tarifs</a>."
|
4422 |
-
|
4423 |
-
#: pro/includes/updates.php:300
|
4424 |
-
msgid "License Key"
|
4425 |
-
msgstr "Clé de licence"
|
4426 |
-
|
4427 |
-
#: pro/includes/updates.php:332
|
4428 |
-
msgid "ACF Extended: Update Information"
|
4429 |
-
msgstr "ACF Extended : informations de mise à jour"
|
4430 |
-
|
4431 |
-
#: pro/includes/updates.php:339
|
4432 |
-
msgid "Current Version"
|
4433 |
-
msgstr "Version Actuelle"
|
4434 |
-
|
4435 |
-
#: pro/includes/updates.php:348
|
4436 |
-
msgid "Latest Version"
|
4437 |
-
msgstr "Dernière version"
|
4438 |
-
|
4439 |
-
#: pro/includes/updates.php:357
|
4440 |
-
msgid "Update Available"
|
4441 |
-
msgstr "Mise à jour disponible"
|
4442 |
-
|
4443 |
-
#: pro/includes/updates.php:366
|
4444 |
-
msgid "Update Plugin"
|
4445 |
-
msgstr "Mettre à jour l'extension"
|
4446 |
-
|
4447 |
-
#: pro/includes/updates.php:369
|
4448 |
-
msgid "Please enter your license key above to unlock updates"
|
4449 |
-
msgstr "Ajouter une clé pour obtenir les futures mise à jour"
|
4450 |
-
|
4451 |
-
#: pro/includes/updates.php:375
|
4452 |
-
msgid "Check Again"
|
4453 |
-
msgstr "Vérifier à nouveau"
|
4454 |
-
|
4455 |
-
#: pro/includes/updates.php:383
|
4456 |
-
msgid "Changelog"
|
4457 |
-
msgstr "Changelog"
|
4458 |
-
|
4459 |
-
#: pro/includes/updates.php:422
|
4460 |
-
msgid "An error occurred, please try again."
|
4461 |
-
msgstr "Une erreur est survenue, veuillez réessayer."
|
4462 |
-
|
4463 |
-
#: pro/includes/updates.php:426
|
4464 |
-
msgid "Your license key has expired."
|
4465 |
-
msgstr "Votre clé de licence a expiré."
|
4466 |
-
|
4467 |
-
#: pro/includes/updates.php:430
|
4468 |
-
msgid "Your license key has been disabled."
|
4469 |
-
msgstr "Votre clé de licence a été désactivée."
|
4470 |
-
|
4471 |
-
#: pro/includes/updates.php:434
|
4472 |
-
msgid "Licence key invalid."
|
4473 |
-
msgstr "Clé de licence non valide."
|
4474 |
-
|
4475 |
-
#: pro/includes/updates.php:438
|
4476 |
-
msgid "Your license is not active for this URL."
|
4477 |
-
msgstr "Votre licence n'est pas active pour cette URL."
|
4478 |
-
|
4479 |
-
#: pro/includes/updates.php:442
|
4480 |
-
msgid "This appears to be an invalid license key for ACF Extended Pro."
|
4481 |
-
msgstr "Cette clé de licence semble être invalide pour ACF Extended Pro."
|
4482 |
-
|
4483 |
-
#: pro/includes/updates.php:446
|
4484 |
-
msgid "Your license key has reached its activation limit."
|
4485 |
-
msgstr "Votre clé de licence a atteint sa limite d'activation."
|
4486 |
-
|
4487 |
-
#: pro/includes/updates.php:450
|
4488 |
-
msgid "<b>Licence key activated</b>. Updates are now enabled."
|
4489 |
-
msgstr ""
|
4490 |
-
"<b>Clé de licence activée</b>. Les mises à jour sont maintenant activées."
|
4491 |
-
|
4492 |
-
#. Plugin Name of the plugin/theme
|
4493 |
-
msgid "Advanced Custom Fields: Extended PRO"
|
4494 |
-
msgstr "Advanced Custom Fields: Extended PRO"
|
4495 |
-
|
4496 |
-
#. Plugin URI of the plugin/theme
|
4497 |
-
#. Author URI of the plugin/theme
|
4498 |
-
msgid "https://www.acf-extended.com"
|
4499 |
-
msgstr "https://www.acf-extended.com"
|
4500 |
-
|
4501 |
-
#. Description of the plugin/theme
|
4502 |
-
msgid ""
|
4503 |
-
"All-in-one enhancement suite that improves WordPress & Advanced Custom "
|
4504 |
-
"Fields."
|
4505 |
-
msgstr ""
|
4506 |
-
"Suite d’amélioration tout-en-un qui améliore WordPress & Advanced Custom "
|
4507 |
-
"Fields."
|
4508 |
-
|
4509 |
-
#. Author of the plugin/theme
|
4510 |
-
msgid "ACF Extended"
|
4511 |
-
msgstr "ACF Extended"
|
4512 |
-
|
4513 |
-
#~ msgid "Username may not be longer than 60 characters"
|
4514 |
-
#~ msgstr "Le nom d'utilisateur ne peut pas excéder 60 caractères"
|
4515 |
-
|
4516 |
-
#~ msgid ""
|
4517 |
-
#~ "Value <code style=\"font-size:11px;float:right; line-height:1.2; margin-"
|
4518 |
-
#~ "top:1px;\">"
|
4519 |
-
#~ msgstr ""
|
4520 |
-
#~ "Valeur <code style=\"font-size:11px;float:right; line-height:1.2; margin-"
|
4521 |
-
#~ "top:1px;\">"
|
4522 |
-
|
4523 |
-
#~ msgid "Value "
|
4524 |
-
#~ msgstr "Valeur "
|
4525 |
-
|
4526 |
-
#~ msgid "Server Validation"
|
4527 |
-
#~ msgstr "Validation du serveur"
|
4528 |
-
|
4529 |
-
#~ msgid "Payment meta is invalid."
|
4530 |
-
#~ msgstr "Les données meta du paiement sont invalides."
|
4531 |
-
|
4532 |
-
#~ msgid "Read more..."
|
4533 |
-
#~ msgstr "Lire la suite…"
|
4534 |
-
|
4535 |
-
#~ msgid "Dynamic Message"
|
4536 |
-
#~ msgstr "Message dynamique"
|
4537 |
-
|
4538 |
-
#~ msgid "Upgrade Notice"
|
4539 |
-
#~ msgstr "Avis de mise à jour"
|
4540 |
-
|
4541 |
-
#~ msgid ""
|
4542 |
-
#~ "<b>Licence key not found</b>. Make sure you have copied your licence key "
|
4543 |
-
#~ "exactly as it appears in your receipt."
|
4544 |
-
#~ msgstr ""
|
4545 |
-
#~ "<b>Clé de licence introuvable</b>. Assurez-vous d’avoir copié votre clé "
|
4546 |
-
#~ "de permis exactement telle qu’elle apparaît dans votre reçu."
|
4547 |
-
|
4548 |
-
#~ msgid "<b>Licence key deactivated</b>. Updates are now disabled."
|
4549 |
-
#~ msgstr ""
|
4550 |
-
#~ "<b>Clé de licence désactivée</b>. Les mises à jour sont maintenant "
|
4551 |
-
#~ "désactivées."
|
4552 |
-
|
4553 |
-
#~ msgid "Ajax call"
|
4554 |
-
#~ msgstr "Appel Ajax"
|
4555 |
-
|
4556 |
-
#~ msgid "Image Array"
|
4557 |
-
#~ msgstr "Image array()"
|
4558 |
-
|
4559 |
-
#~ msgid "Image URL"
|
4560 |
-
#~ msgstr "URL de l'image"
|
4561 |
-
|
4562 |
-
#~ msgid "Additional actions"
|
4563 |
-
#~ msgstr "Actions supplémentaires"
|
4564 |
-
|
4565 |
-
#~ msgid "Asynchronous settings"
|
4566 |
-
#~ msgstr "Paramètres asynchrones"
|
4567 |
-
|
4568 |
-
#~ msgid "Hide the empty message box"
|
4569 |
-
#~ msgstr "Masquer la boîte du message vide"
|
4570 |
-
|
4571 |
-
#~ msgid "Hide buttons"
|
4572 |
-
#~ msgstr "Masquer les boutons"
|
4573 |
-
|
4574 |
-
#, javascript-format
|
4575 |
-
#~ msgid "Not enough arguments following: %s"
|
4576 |
-
#~ msgstr "Pas assez d'arguments suivants: %s"
|
4577 |
-
|
4578 |
-
#, javascript-format
|
4579 |
-
#~ msgid "Invalid JSON config file: %s"
|
4580 |
-
#~ msgstr "Fichier de config JSON invalide : %s"
|
4581 |
-
|
4582 |
-
#~ msgid "Commands:"
|
4583 |
-
#~ msgstr "Commandes :"
|
4584 |
-
|
4585 |
-
#~ msgid "aliases:"
|
4586 |
-
#~ msgstr "alias :"
|
4587 |
-
|
4588 |
-
#~ msgid "boolean"
|
4589 |
-
#~ msgstr "boolean"
|
4590 |
-
|
4591 |
-
#~ msgid "string"
|
4592 |
-
#~ msgstr "chaîne"
|
4593 |
-
|
4594 |
-
#~ msgid "number"
|
4595 |
-
#~ msgstr "nombre"
|
4596 |
-
|
4597 |
-
#~ msgid "required"
|
4598 |
-
#~ msgstr "requis"
|
4599 |
-
|
4600 |
-
#~ msgid "choices:"
|
4601 |
-
#~ msgstr "choix :"
|
4602 |
-
|
4603 |
-
#~ msgid "Examples:"
|
4604 |
-
#~ msgstr "Exemples :"
|
4605 |
-
|
4606 |
-
#~ msgid "generated-value"
|
4607 |
-
#~ msgstr "valeur générée"
|
4608 |
-
|
4609 |
-
#, javascript-format
|
4610 |
-
#~ msgid "Not enough non-option arguments: got %s, need at least %s"
|
4611 |
-
#~ msgstr ""
|
4612 |
-
#~ "Pas assez des arguments sans option: obtenu %s, besoin d'au moins %s"
|
4613 |
-
|
4614 |
-
#, javascript-format
|
4615 |
-
#~ msgid "Too many non-option arguments: got %s, maximum of %s"
|
4616 |
-
#~ msgstr "Trop d'arguments sans option: obtenu %s, maximum de %s"
|
4617 |
-
|
4618 |
-
#, javascript-format
|
4619 |
-
#~ msgid "Argument: %s, Given: %s, Choices: %s"
|
4620 |
-
#~ msgstr "Argument: %s, Donné: %s, Choix: %s"
|
4621 |
-
|
4622 |
-
#, javascript-format
|
4623 |
-
#~ msgid "Argument check failed: %s"
|
4624 |
-
#~ msgstr "Vérification d'argument a échoué: %s"
|
4625 |
-
|
4626 |
-
#~ msgid "Implications failed:"
|
4627 |
-
#~ msgstr "Les implications ont échoué :"
|
4628 |
-
|
4629 |
-
#, javascript-format
|
4630 |
-
#~ msgid "Arguments %s and %s are mutually exclusive"
|
4631 |
-
#~ msgstr "Les arguments %s et %s sont mutuellement exclusifs"
|
4632 |
-
|
4633 |
-
#, javascript-format
|
4634 |
-
#~ msgid "Did you mean %s?"
|
4635 |
-
#~ msgstr "Vous vouliez dire %s ?"
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Advanced Custom Fields: Extended\n"
|
4 |
+
"POT-Creation-Date: 2022-12-03 20:24+0100\n"
|
5 |
+
"PO-Revision-Date: 2022-12-03 20:25+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: https://www.acf-extended.com\n"
|
8 |
+
"Language: fr_FR\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
13 |
+
"X-Generator: Poedit 3.2.2\n"
|
14 |
+
"X-Poedit-Basepath: ..\n"
|
15 |
+
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
|
16 |
+
"X-Poedit-WPHeader: acf-extended.php\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
19 |
+
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
20 |
+
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
21 |
+
"X-Poedit-SearchPath-0: .\n"
|
22 |
+
"X-Poedit-SearchPathExcluded-0: *.min.js\n"
|
23 |
+
"X-Poedit-SearchPathExcluded-1: .build\n"
|
24 |
+
|
25 |
+
#: acf-extended.php:407
|
26 |
+
msgid ""
|
27 |
+
"An another version of ACF Extended has been detected. Please activate only "
|
28 |
+
"one version."
|
29 |
+
msgstr ""
|
30 |
+
"Une autre version de ACF Extended a été détectée. Veuillez n'activer qu'une "
|
31 |
+
"seule version."
|
32 |
+
|
33 |
+
#: acf-extended.php:409
|
34 |
+
msgid "ACF Extended Pro has been detected. Please activate only one version."
|
35 |
+
msgstr ""
|
36 |
+
"ACF Extended Pro a été détecté. Veuillez n'activer qu'une seule version."
|
37 |
+
|
38 |
+
#: assets/js/acfe-admin.js:315 includes/modules/options-pages.php:301
|
39 |
+
#: includes/modules/options.php:500 pro/includes/updates.php:398
|
40 |
+
msgid "Yes"
|
41 |
+
msgstr "Oui"
|
42 |
+
|
43 |
+
#: assets/js/acfe-admin.js:316 includes/modules/options-pages.php:301
|
44 |
+
#: includes/modules/options.php:499 pro/includes/updates.php:412
|
45 |
+
msgid "No"
|
46 |
+
msgstr "Non"
|
47 |
+
|
48 |
+
#: assets/js/acfe-input.js:1416 assets/js/acfe-input.js:3457
|
49 |
+
#: includes/assets.php:130 includes/field-groups/field-group-meta.php:160
|
50 |
+
#: includes/fields-settings/data.php:84
|
51 |
+
#: includes/fields/field-advanced-link.php:102
|
52 |
+
#: includes/fields/field-flexible-content-edit.php:278
|
53 |
+
#: includes/fields/field-flexible-content-settings.php:275
|
54 |
+
#: includes/fields/field-flexible-content.php:794
|
55 |
+
#: includes/fields/field-flexible-content.php:800
|
56 |
+
#: includes/modules/dev-clean-meta.php:107 pro/assets/js/acfe-pro-admin.js:517
|
57 |
+
#: pro/assets/js/acfe-pro-input.js:654
|
58 |
+
#: pro/includes/field-groups/field-group-ui.php:440
|
59 |
+
#: pro/includes/fields/field-payment.php:473 pro/includes/modules/dev.php:122
|
60 |
+
#: pro/includes/modules/dev.php:195 pro/includes/modules/dev.php:262
|
61 |
+
#: pro/includes/modules/dev.php:362 pro/includes/modules/dev.php:418
|
62 |
+
#: pro/includes/modules/dev.php:474 pro/includes/modules/dev.php:528
|
63 |
+
msgid "Close"
|
64 |
+
msgstr "Fermer"
|
65 |
+
|
66 |
+
#: assets/js/acfe-input.js:2747 includes/fields/field-flexible-content.php:302
|
67 |
+
msgid "Add Row"
|
68 |
+
msgstr "Ajouter une rangée"
|
69 |
+
|
70 |
+
#: includes/acfe-field-functions.php:520 includes/modules/forms-helpers.php:242
|
71 |
+
#: includes/modules/forms-helpers.php:271 includes/modules/module.php:534
|
72 |
+
msgid "no label"
|
73 |
+
msgstr "pas de label"
|
74 |
+
|
75 |
+
#: includes/acfe-field-group-functions.php:468
|
76 |
+
#: includes/modules/block-types.php:177 includes/modules/options-pages.php:181
|
77 |
+
#: pro/includes/fields/field-field-groups.php:17
|
78 |
+
msgid "Field Groups"
|
79 |
+
msgstr "Groupes de champs"
|
80 |
+
|
81 |
+
#: includes/acfe-field-group-functions.php:483
|
82 |
+
msgid "edit"
|
83 |
+
msgstr "éditer"
|
84 |
+
|
85 |
+
#: includes/acfe-file-functions.php:204
|
86 |
+
#: includes/field-groups/field-groups.php:866
|
87 |
+
#: includes/field-groups/field-groups.php:876
|
88 |
+
#: includes/field-groups/field-groups.php:886
|
89 |
+
msgid "Located"
|
90 |
+
msgstr "Situé"
|
91 |
+
|
92 |
+
#: includes/acfe-file-functions.php:205
|
93 |
+
msgid "Not found"
|
94 |
+
msgstr "Introuvable"
|
95 |
+
|
96 |
+
#: includes/acfe-file-functions.php:220 includes/acfe-file-functions.php:231
|
97 |
+
#: includes/field-groups/field-groups.php:869
|
98 |
+
msgid "in theme:"
|
99 |
+
msgstr "dans le thème:"
|
100 |
+
|
101 |
+
#: includes/acfe-file-functions.php:242
|
102 |
+
#: includes/field-groups/field-groups.php:879
|
103 |
+
msgid "in plugin:"
|
104 |
+
msgstr "dans le plugin:"
|
105 |
+
|
106 |
+
#: includes/acfe-file-functions.php:253
|
107 |
+
#: includes/field-groups/field-groups.php:889
|
108 |
+
msgid "in:"
|
109 |
+
msgstr "dans :"
|
110 |
+
|
111 |
+
#: includes/acfe-screen-functions.php:49
|
112 |
+
msgid "Custom Fields"
|
113 |
+
msgstr "Champs personnalisés"
|
114 |
+
|
115 |
+
#: includes/acfe-user-functions.php:23
|
116 |
+
msgid "Super Admin"
|
117 |
+
msgstr "Super-admin"
|
118 |
+
|
119 |
+
#: includes/admin/plugins.php:32
|
120 |
+
msgid "Advanced Custom Fields"
|
121 |
+
msgstr "Champs personnalisés avancés"
|
122 |
+
|
123 |
+
#: includes/admin/settings.php:527 includes/admin/settings.php:671
|
124 |
+
#: includes/admin/settings.php:681 includes/fields-settings/settings.php:136
|
125 |
+
#: includes/fields/field-flexible-content.php:74
|
126 |
+
#: pro/includes/admin/settings.php:302 pro/includes/admin/settings.php:362
|
127 |
+
msgid "Settings"
|
128 |
+
msgstr "Paramètres"
|
129 |
+
|
130 |
+
#: includes/admin/tools/block-types-export.php:25
|
131 |
+
#: includes/admin/tools/block-types-export.php:26
|
132 |
+
msgid "Export Block Types"
|
133 |
+
msgstr "Exporter les types de bloc"
|
134 |
+
|
135 |
+
#: includes/admin/tools/block-types-export.php:27
|
136 |
+
msgid "Select Block Types"
|
137 |
+
msgstr "Sélectionner les types de bloc"
|
138 |
+
|
139 |
+
#: includes/admin/tools/block-types-export.php:34
|
140 |
+
msgid "No block type available."
|
141 |
+
msgstr "Aucun type de bloc dynamique disponible."
|
142 |
+
|
143 |
+
#: includes/admin/tools/block-types-export.php:35
|
144 |
+
msgid "No block types selected"
|
145 |
+
msgstr "Aucun type de bloc sélectionné"
|
146 |
+
|
147 |
+
#: includes/admin/tools/block-types-import.php:26
|
148 |
+
#: includes/admin/tools/block-types-import.php:27
|
149 |
+
msgid "Import Block Types"
|
150 |
+
msgstr "Importer des types de bloc"
|
151 |
+
|
152 |
+
#: includes/admin/tools/field-groups-export.php:37
|
153 |
+
#, php-format
|
154 |
+
msgid "Exported 1 field group."
|
155 |
+
msgid_plural "Exported %s field groups."
|
156 |
+
msgstr[0] "Groupe exporté 1 champ."
|
157 |
+
msgstr[1] "Groupes exportés %s champ."
|
158 |
+
|
159 |
+
#: includes/admin/tools/field-groups-local.php:14
|
160 |
+
msgid "Export Local Field Groups"
|
161 |
+
msgstr "Exporter des groupes de champs locaux"
|
162 |
+
|
163 |
+
#: includes/admin/tools/field-groups-local.php:29
|
164 |
+
#, php-format
|
165 |
+
msgid "Imported 1 field group"
|
166 |
+
msgid_plural "Imported %s field groups"
|
167 |
+
msgstr[0] "Importé 1 groupe de champs"
|
168 |
+
msgstr[1] "Importé %s groupes de champs"
|
169 |
+
|
170 |
+
#: includes/admin/tools/field-groups-local.php:51
|
171 |
+
msgid "No field group selected"
|
172 |
+
msgstr "Aucun groupe de champs sélectionné"
|
173 |
+
|
174 |
+
#: includes/admin/tools/field-groups-local.php:141
|
175 |
+
msgid ""
|
176 |
+
"The following code can be used to register a local version of the selected "
|
177 |
+
"field group(s). A local field group can provide many benefits such as faster "
|
178 |
+
"load times, version control & dynamic fields/settings. Simply copy and paste "
|
179 |
+
"the following code to your theme's functions.php file or include it within "
|
180 |
+
"an external file."
|
181 |
+
msgstr ""
|
182 |
+
"Le code suivant peut être utilisé pour enregistrer une version locale du "
|
183 |
+
"groupe de champs sélectionné. Un groupe de champ local apporte pas mal de "
|
184 |
+
"bénéfices tels qu'un temps de chargement plus rapide, le contrôle de version "
|
185 |
+
"et les champes/paramètres dynamiques. Copiez/collez simplement le code "
|
186 |
+
"suivant dans le functions.php de votre thème."
|
187 |
+
|
188 |
+
#: includes/admin/tools/field-groups-local.php:175
|
189 |
+
#: includes/admin/tools/module-export.php:124
|
190 |
+
#: pro/includes/admin/tools/rewrite-rules-export.php:116
|
191 |
+
#: pro/includes/admin/tools/settings-export.php:135
|
192 |
+
msgid "Copy to clipboard"
|
193 |
+
msgstr "Copier dans le presse-papiers"
|
194 |
+
|
195 |
+
#: includes/admin/tools/field-groups-local.php:203
|
196 |
+
#: includes/admin/tools/module-export.php:152
|
197 |
+
#: pro/includes/admin/tools/rewrite-rules-export.php:144
|
198 |
+
#: pro/includes/admin/tools/settings-export.php:163
|
199 |
+
msgid "Copied"
|
200 |
+
msgstr "Copié"
|
201 |
+
|
202 |
+
#: includes/admin/tools/forms-export.php:25
|
203 |
+
#: includes/admin/tools/forms-export.php:26
|
204 |
+
msgid "Export Forms"
|
205 |
+
msgstr "Exporter Formulaires"
|
206 |
+
|
207 |
+
#: includes/admin/tools/forms-export.php:27
|
208 |
+
msgid "Select Forms"
|
209 |
+
msgstr "Sélectionner Formulaires"
|
210 |
+
|
211 |
+
#: includes/admin/tools/forms-export.php:34
|
212 |
+
msgid "No form available."
|
213 |
+
msgstr "Aucun formulaire disponible."
|
214 |
+
|
215 |
+
#: includes/admin/tools/forms-export.php:35
|
216 |
+
msgid "No forms selected"
|
217 |
+
msgstr "Aucun formulaire sélectionné"
|
218 |
+
|
219 |
+
#: includes/admin/tools/forms-import.php:26
|
220 |
+
#: includes/admin/tools/forms-import.php:27
|
221 |
+
msgid "Import Forms"
|
222 |
+
msgstr "Importer des formulaires"
|
223 |
+
|
224 |
+
#: includes/admin/tools/module-export.php:94
|
225 |
+
#: pro/includes/admin/tools/settings-export.php:59
|
226 |
+
msgid "Export File"
|
227 |
+
msgstr "Exporter sous forme de fichier"
|
228 |
+
|
229 |
+
#: includes/admin/tools/module-export.php:98
|
230 |
+
#: pro/includes/admin/tools/rewrite-rules-export.php:58
|
231 |
+
#: pro/includes/admin/tools/settings-export.php:60
|
232 |
+
msgid "Generate PHP"
|
233 |
+
msgstr "Générer le PHP"
|
234 |
+
|
235 |
+
#: includes/admin/tools/module-export.php:117
|
236 |
+
#: pro/includes/admin/tools/settings-export.php:78
|
237 |
+
msgid ""
|
238 |
+
"You can copy and paste the following code to your theme's functions.php file "
|
239 |
+
"or include it within an external file."
|
240 |
+
msgstr ""
|
241 |
+
"Vous pouvez copier et coller le code suivant dans les fonctions de votre "
|
242 |
+
"thème.php fichier ou l’inclure dans un fichier externe."
|
243 |
+
|
244 |
+
#: includes/admin/tools/module-import.php:37
|
245 |
+
#: pro/assets/js/acfe-pro-input.js:1091 pro/assets/js/acfe-pro-input.js:1109
|
246 |
+
#: pro/includes/admin/tools/settings-import.php:40
|
247 |
+
msgid "Select File"
|
248 |
+
msgstr "Choisir un fichier"
|
249 |
+
|
250 |
+
#: includes/admin/tools/module-import.php:48
|
251 |
+
#: pro/includes/admin/tools/settings-import.php:51
|
252 |
+
msgid "Import File"
|
253 |
+
msgstr "Importer le fichier"
|
254 |
+
|
255 |
+
#: includes/admin/tools/module-import.php:118
|
256 |
+
#: pro/includes/admin/tools/settings-import.php:88
|
257 |
+
msgid "No file selected"
|
258 |
+
msgstr "Aucun fichier sélectionné"
|
259 |
+
|
260 |
+
#: includes/admin/tools/module-import.php:129
|
261 |
+
#: pro/includes/admin/tools/settings-import.php:99
|
262 |
+
msgid "Error uploading file. Please try again"
|
263 |
+
msgstr "Erreur lors du téléchargement, veuillez réessayer"
|
264 |
+
|
265 |
+
#: includes/admin/tools/module-import.php:137
|
266 |
+
#: pro/includes/admin/tools/settings-import.php:107
|
267 |
+
msgid "Incorrect file type"
|
268 |
+
msgstr "Type de fichier incorrect"
|
269 |
+
|
270 |
+
#: includes/admin/tools/module-import.php:149
|
271 |
+
#: pro/includes/admin/tools/settings-import.php:119
|
272 |
+
msgid "Import file empty"
|
273 |
+
msgstr "Importer un fichier vide"
|
274 |
+
|
275 |
+
#: includes/admin/tools/options-pages-export.php:25
|
276 |
+
#: includes/admin/tools/options-pages-export.php:26
|
277 |
+
msgid "Export Options Pages"
|
278 |
+
msgstr "Exporter des options de pages"
|
279 |
+
|
280 |
+
#: includes/admin/tools/options-pages-export.php:27
|
281 |
+
msgid "Select Options Pages"
|
282 |
+
msgstr "Sélectionnez des options de pages"
|
283 |
+
|
284 |
+
#: includes/admin/tools/options-pages-export.php:34
|
285 |
+
msgid "No options page available."
|
286 |
+
msgstr "Aucune option de page disponible."
|
287 |
+
|
288 |
+
#: includes/admin/tools/options-pages-export.php:35
|
289 |
+
msgid "No options pages selected"
|
290 |
+
msgstr "Aucune page d’options sélectionnée"
|
291 |
+
|
292 |
+
#: includes/admin/tools/options-pages-import.php:26
|
293 |
+
#: includes/admin/tools/options-pages-import.php:27
|
294 |
+
msgid "Import Options Pages"
|
295 |
+
msgstr "Importer des options de pages"
|
296 |
+
|
297 |
+
#: includes/admin/tools/post-types-export.php:25
|
298 |
+
#: includes/admin/tools/post-types-export.php:26
|
299 |
+
msgid "Export Post Types"
|
300 |
+
msgstr "Exporter des types de publication"
|
301 |
+
|
302 |
+
#: includes/admin/tools/post-types-export.php:27
|
303 |
+
msgid "Select Post Types"
|
304 |
+
msgstr "Sélectionnez le type article"
|
305 |
+
|
306 |
+
#: includes/admin/tools/post-types-export.php:34
|
307 |
+
msgid "No post type available."
|
308 |
+
msgstr "Aucun type de publication dynamique disponible."
|
309 |
+
|
310 |
+
#: includes/admin/tools/post-types-export.php:35
|
311 |
+
msgid "No post types selected"
|
312 |
+
msgstr "Aucun type de publication sélectionné"
|
313 |
+
|
314 |
+
#: includes/admin/tools/post-types-import.php:26
|
315 |
+
#: includes/admin/tools/post-types-import.php:27
|
316 |
+
msgid "Import Post Types"
|
317 |
+
msgstr "Importer des types de publication"
|
318 |
+
|
319 |
+
#: includes/admin/tools/taxonomies-export.php:25
|
320 |
+
#: includes/admin/tools/taxonomies-export.php:26
|
321 |
+
msgid "Export Taxonomies"
|
322 |
+
msgstr "Exporter les taxonomies"
|
323 |
+
|
324 |
+
#: includes/admin/tools/taxonomies-export.php:27
|
325 |
+
msgid "Select Taxonomies"
|
326 |
+
msgstr "Type de taxonomies"
|
327 |
+
|
328 |
+
#: includes/admin/tools/taxonomies-export.php:34
|
329 |
+
msgid "No taxonomy available."
|
330 |
+
msgstr "Aucune taxonomie dynamique disponible."
|
331 |
+
|
332 |
+
#: includes/admin/tools/taxonomies-export.php:35
|
333 |
+
msgid "No taxonomies selected"
|
334 |
+
msgstr "Aucune taxonomie sélectionnée"
|
335 |
+
|
336 |
+
#: includes/admin/tools/taxonomies-import.php:26
|
337 |
+
#: includes/admin/tools/taxonomies-import.php:27
|
338 |
+
msgid "Import Taxonomies"
|
339 |
+
msgstr "Importer des Taxonomies"
|
340 |
+
|
341 |
+
#: includes/admin/views/html-options-edit.php:4
|
342 |
+
#: includes/modules/options.php:517
|
343 |
+
msgid "Edit Option"
|
344 |
+
msgstr "Modifier Option"
|
345 |
+
|
346 |
+
#: includes/admin/views/html-options-edit.php:6
|
347 |
+
#: includes/modules/options.php:512
|
348 |
+
msgid "Add Option"
|
349 |
+
msgstr "Ajouter une option"
|
350 |
+
|
351 |
+
#: includes/admin/views/html-options-list.php:3
|
352 |
+
#: includes/modules/options.class.php:22 includes/modules/options.php:60
|
353 |
+
msgid "Options"
|
354 |
+
msgstr "Options"
|
355 |
+
|
356 |
+
#: includes/admin/views/html-options-list.php:4
|
357 |
+
#: pro/includes/locations/post-screen.php:22
|
358 |
+
msgid "Add New"
|
359 |
+
msgstr "Ajouter"
|
360 |
+
|
361 |
+
#: includes/assets.php:131 pro/assets/js/acfe-pro-input.js:4874
|
362 |
+
msgid "Read more"
|
363 |
+
msgstr "Lire la suite"
|
364 |
+
|
365 |
+
#: includes/assets.php:132
|
366 |
+
msgid "Details"
|
367 |
+
msgstr "Details"
|
368 |
+
|
369 |
+
#: includes/assets.php:133 pro/assets/js/acfe-pro-admin.js:516
|
370 |
+
#: pro/assets/js/acfe-pro-admin.js:517
|
371 |
+
msgid "Debug"
|
372 |
+
msgstr "Débogage"
|
373 |
+
|
374 |
+
#: includes/compatibility.php:135
|
375 |
+
#: includes/field-groups/field-group-instruction-placement.php:40
|
376 |
+
msgid "Tooltip"
|
377 |
+
msgstr "Info-bulle"
|
378 |
+
|
379 |
+
#: includes/field-groups/field-group-advanced.php:51
|
380 |
+
#: pro/includes/field-groups/field-group-ui.php:96
|
381 |
+
#: pro/includes/field-groups/field-group-ui.php:261
|
382 |
+
msgid "Advanced settings"
|
383 |
+
msgstr "Paramètres avancés"
|
384 |
+
|
385 |
+
#: includes/field-groups/field-group-advanced.php:56
|
386 |
+
#: pro/includes/field-groups/field-group-ui.php:101
|
387 |
+
#: pro/includes/field-groups/field-group-ui.php:266
|
388 |
+
msgid "Enable advanced fields settings & validation"
|
389 |
+
msgstr "Activer les paramètres de champs avancés &validation"
|
390 |
+
|
391 |
+
#: includes/field-groups/field-group-category.php:55
|
392 |
+
#: includes/field-groups/field-group-category.php:56
|
393 |
+
msgctxt "Category"
|
394 |
+
msgid "Categories"
|
395 |
+
msgstr "Catégories"
|
396 |
+
|
397 |
+
#: includes/field-groups/field-group-category.php:57
|
398 |
+
msgid "Search categories"
|
399 |
+
msgstr "Chercher dans les catégories"
|
400 |
+
|
401 |
+
#: includes/field-groups/field-group-category.php:58
|
402 |
+
msgid "All categories"
|
403 |
+
msgstr "Toutes les catégories"
|
404 |
+
|
405 |
+
#: includes/field-groups/field-group-category.php:59
|
406 |
+
msgid "Parent category"
|
407 |
+
msgstr "Catégorie parente"
|
408 |
+
|
409 |
+
#: includes/field-groups/field-group-category.php:60
|
410 |
+
msgid "Parent category:"
|
411 |
+
msgstr "Catégorie parente :"
|
412 |
+
|
413 |
+
#: includes/field-groups/field-group-category.php:61
|
414 |
+
msgid "Edit category"
|
415 |
+
msgstr "Modifier la catégorie"
|
416 |
+
|
417 |
+
#: includes/field-groups/field-group-category.php:62
|
418 |
+
msgid "Update category"
|
419 |
+
msgstr "Mettre à jour la catégorie"
|
420 |
+
|
421 |
+
#: includes/field-groups/field-group-category.php:63
|
422 |
+
msgid "Add New category"
|
423 |
+
msgstr "Ajouter une catégorie"
|
424 |
+
|
425 |
+
#: includes/field-groups/field-group-category.php:64
|
426 |
+
msgid "New category name"
|
427 |
+
msgstr "Nom de la nouvelle catégorie"
|
428 |
+
|
429 |
+
#: includes/field-groups/field-group-category.php:65
|
430 |
+
msgid "category"
|
431 |
+
msgstr "catégorie"
|
432 |
+
|
433 |
+
#: includes/field-groups/field-group-category.php:80
|
434 |
+
#: includes/field-groups/field-group-category.php:147
|
435 |
+
#: includes/fields/field-flexible-content-select.php:194
|
436 |
+
msgid "Categories"
|
437 |
+
msgstr "Catégories"
|
438 |
+
|
439 |
+
#: includes/field-groups/field-group-hide-on-screen.php:53
|
440 |
+
msgid "Block Editor"
|
441 |
+
msgstr "Éditeur de blocs"
|
442 |
+
|
443 |
+
#: includes/field-groups/field-group-instruction-placement.php:39
|
444 |
+
msgid "Above fields"
|
445 |
+
msgstr "Au dessus des champs"
|
446 |
+
|
447 |
+
#: includes/field-groups/field-group-meta.php:34
|
448 |
+
msgid "Field group"
|
449 |
+
msgstr "Groupe de champs"
|
450 |
+
|
451 |
+
#: includes/field-groups/field-group-meta.php:48
|
452 |
+
#: pro/includes/field-groups/field-group-ui.php:168
|
453 |
+
#: pro/includes/field-groups/field-group-ui.php:331
|
454 |
+
msgid "Custom meta data"
|
455 |
+
msgstr "Méta données personnalisées"
|
456 |
+
|
457 |
+
#: includes/field-groups/field-group-meta.php:51
|
458 |
+
#: pro/includes/field-groups/field-group-ui.php:171
|
459 |
+
#: pro/includes/field-groups/field-group-ui.php:334
|
460 |
+
msgid "Add custom meta data to the field group."
|
461 |
+
msgstr "Ajoutez des métadonnées personnalisées au groupe de champs."
|
462 |
+
|
463 |
+
#: includes/field-groups/field-group-meta.php:54
|
464 |
+
#: pro/includes/field-groups/field-group-ui.php:174
|
465 |
+
#: pro/includes/field-groups/field-group-ui.php:337
|
466 |
+
msgid "+ Meta"
|
467 |
+
msgstr "+ Méta"
|
468 |
+
|
469 |
+
#: includes/field-groups/field-group-meta.php:64
|
470 |
+
#: pro/includes/field-groups/field-group-ui.php:184
|
471 |
+
#: pro/includes/field-groups/field-group-ui.php:347
|
472 |
+
msgid "Key"
|
473 |
+
msgstr "Clé"
|
474 |
+
|
475 |
+
#: includes/field-groups/field-group-meta.php:81
|
476 |
+
#: includes/fields/field-hidden.php:66 includes/modules/dev.php:431
|
477 |
+
#: includes/modules/options.class.php:222 includes/modules/options.php:396
|
478 |
+
#: includes/modules/options.php:427 includes/modules/options.php:460
|
479 |
+
#: pro/includes/field-groups/field-group-ui.php:201
|
480 |
+
#: pro/includes/field-groups/field-group-ui.php:364
|
481 |
+
#: pro/includes/fields/field-color-picker.php:168
|
482 |
+
#: pro/includes/fields/field-image-selector.php:119
|
483 |
+
msgid "Value"
|
484 |
+
msgstr "Valeur"
|
485 |
+
|
486 |
+
#: includes/field-groups/field-group-meta.php:101
|
487 |
+
#: pro/includes/field-groups/field-group-ui.php:238
|
488 |
+
#: pro/includes/field-groups/field-group-ui.php:397
|
489 |
+
#: pro/includes/field-groups/field-group-ui.php:406
|
490 |
+
msgid "Note"
|
491 |
+
msgstr "Note"
|
492 |
+
|
493 |
+
#: includes/field-groups/field-group-meta.php:105
|
494 |
+
#: pro/includes/field-groups/field-group-ui.php:242
|
495 |
+
#: pro/includes/field-groups/field-group-ui.php:410
|
496 |
+
msgid "Add personal note. Only visible to administrators"
|
497 |
+
msgstr ""
|
498 |
+
"Ajoutez une note personnelle. Visible uniquement par les administrateurs"
|
499 |
+
|
500 |
+
#: includes/field-groups/field-group-meta.php:115
|
501 |
+
#: pro/includes/field-groups/field-group-ui.php:221
|
502 |
+
#: pro/includes/field-groups/field-group-ui.php:384
|
503 |
+
msgid "Field group data"
|
504 |
+
msgstr "Données du groupe de champs"
|
505 |
+
|
506 |
+
#: includes/field-groups/field-group-meta.php:116
|
507 |
+
#: pro/includes/field-groups/field-group-ui.php:222
|
508 |
+
#: pro/includes/field-groups/field-group-ui.php:385
|
509 |
+
msgid "View raw field group data, for development use"
|
510 |
+
msgstr ""
|
511 |
+
"Afficher les données brutes du groupe de champs, à des fins de développement"
|
512 |
+
|
513 |
+
#: includes/field-groups/field-group-meta.php:147
|
514 |
+
#: includes/field-groups/field-group-meta.php:159
|
515 |
+
#: includes/fields-settings/data.php:83
|
516 |
+
#: pro/includes/field-groups/field-group-ui.php:322
|
517 |
+
#: pro/includes/field-groups/field-group-ui.php:428
|
518 |
+
#: pro/includes/field-groups/field-group-ui.php:439
|
519 |
+
msgid "Data"
|
520 |
+
msgstr "Données"
|
521 |
+
|
522 |
+
#: includes/field-groups/field-group.php:61
|
523 |
+
#: includes/fields-settings/settings.php:99
|
524 |
+
msgid "Advanced Settings"
|
525 |
+
msgstr "Paramètres avancés"
|
526 |
+
|
527 |
+
#: includes/field-groups/field-group.php:111
|
528 |
+
#: pro/includes/field-groups/field-group-ui.php:111
|
529 |
+
#: pro/includes/field-groups/field-group-ui.php:276
|
530 |
+
msgid "Display title"
|
531 |
+
msgstr "Afficher le titre"
|
532 |
+
|
533 |
+
#: includes/field-groups/field-group.php:112
|
534 |
+
#: pro/includes/field-groups/field-group-ui.php:112
|
535 |
+
#: pro/includes/field-groups/field-group-ui.php:277
|
536 |
+
msgid "Render this title on edit post screen"
|
537 |
+
msgstr "Afficher ce titre sur l’écran d’édition"
|
538 |
+
|
539 |
+
#: includes/field-groups/field-group.php:136
|
540 |
+
#: includes/field-groups/field-groups.php:573
|
541 |
+
#: includes/field-groups/field-groups.php:581
|
542 |
+
msgid "Sync available"
|
543 |
+
msgstr "Synchronisation disponible"
|
544 |
+
|
545 |
+
#: includes/field-groups/field-group.php:137
|
546 |
+
msgid "Local json file is different from the version in database."
|
547 |
+
msgstr ""
|
548 |
+
"Le fichier json local est différent de la version dans la base de données."
|
549 |
+
|
550 |
+
#: includes/field-groups/field-group.php:148
|
551 |
+
msgid "Synchronize"
|
552 |
+
msgstr "Synchroniser"
|
553 |
+
|
554 |
+
#: includes/field-groups/field-group.php:157
|
555 |
+
msgid "Review changes"
|
556 |
+
msgstr "Examiner les modifications"
|
557 |
+
|
558 |
+
#: includes/field-groups/field-group.php:247
|
559 |
+
msgid "Auto Sync"
|
560 |
+
msgstr "Auto Sync"
|
561 |
+
|
562 |
+
#: includes/field-groups/field-group.php:266
|
563 |
+
#: includes/fields-settings/permissions.php:23
|
564 |
+
#: pro/includes/field-groups/field-group-ui.php:145
|
565 |
+
#: pro/includes/field-groups/field-group-ui.php:294
|
566 |
+
#: pro/includes/field-groups/field-group-ui.php:303
|
567 |
+
msgid "Permissions"
|
568 |
+
msgstr "Permissions"
|
569 |
+
|
570 |
+
#: includes/field-groups/field-group.php:270
|
571 |
+
#: pro/includes/field-groups/field-group-ui.php:149
|
572 |
+
#: pro/includes/field-groups/field-group-ui.php:307
|
573 |
+
msgid ""
|
574 |
+
"Select user roles that are allowed to view and edit this field group in post "
|
575 |
+
"edition"
|
576 |
+
msgstr ""
|
577 |
+
"Sélectionnez les rôles d’utilisateur autorisés à afficher et à modifier ce "
|
578 |
+
"groupe de champs dans une édition ultérieure"
|
579 |
+
|
580 |
+
#: includes/field-groups/field-groups-local.php:83
|
581 |
+
msgid "Local"
|
582 |
+
msgstr "Local"
|
583 |
+
|
584 |
+
#: includes/field-groups/field-groups-local.php:160
|
585 |
+
#, php-format
|
586 |
+
msgid "Select %s"
|
587 |
+
msgstr "Sélectionner %s"
|
588 |
+
|
589 |
+
#: includes/field-groups/field-groups-local.php:243
|
590 |
+
#: includes/field-groups/field-groups.php:783
|
591 |
+
msgid "Export PHP"
|
592 |
+
msgstr "Exporter php"
|
593 |
+
|
594 |
+
#: includes/field-groups/field-groups-local.php:244
|
595 |
+
#: includes/field-groups/field-groups.php:784
|
596 |
+
msgid "Export Json"
|
597 |
+
msgstr "Exporter Json"
|
598 |
+
|
599 |
+
#: includes/field-groups/field-groups-local.php:245
|
600 |
+
msgid "Sync to database"
|
601 |
+
msgstr "Synchroniser avec la base de données"
|
602 |
+
|
603 |
+
#: includes/field-groups/field-groups.php:102
|
604 |
+
#: includes/field-groups/field-groups.php:113
|
605 |
+
#: includes/fields/field-flexible-content-select.php:105
|
606 |
+
#: pro/includes/field-groups/field-group-hide-on-screen.php:39
|
607 |
+
#: pro/includes/fields/field-post-field.php:55
|
608 |
+
#: pro/includes/modules/scripts-table.php:257
|
609 |
+
msgid "Title"
|
610 |
+
msgstr "Titre"
|
611 |
+
|
612 |
+
#: includes/field-groups/field-groups.php:103
|
613 |
+
#: includes/field-groups/field-groups.php:114
|
614 |
+
msgid "Source"
|
615 |
+
msgstr "Source"
|
616 |
+
|
617 |
+
#: includes/field-groups/field-groups.php:104
|
618 |
+
#: includes/field-groups/field-groups.php:115
|
619 |
+
#: includes/field-groups/field-groups.php:162 includes/modules/forms.php:159
|
620 |
+
#: pro/includes/fields/field-fields.php:17
|
621 |
+
#: pro/includes/modules/templates.php:26
|
622 |
+
msgid "Fields"
|
623 |
+
msgstr "Champs"
|
624 |
+
|
625 |
+
#: includes/field-groups/field-groups.php:105
|
626 |
+
#: includes/field-groups/field-groups.php:116
|
627 |
+
#: includes/field-groups/field-groups.php:142
|
628 |
+
#: includes/field-groups/field-groups.php:163
|
629 |
+
msgid "Location"
|
630 |
+
msgstr "Emplacement"
|
631 |
+
|
632 |
+
#: includes/field-groups/field-groups.php:106
|
633 |
+
#: includes/field-groups/field-groups.php:117
|
634 |
+
#: includes/field-groups/field-groups.php:143
|
635 |
+
#: includes/field-groups/field-groups.php:165
|
636 |
+
msgid "Load"
|
637 |
+
msgstr "Charger"
|
638 |
+
|
639 |
+
#: includes/field-groups/field-groups.php:123
|
640 |
+
msgid "PHP Sync"
|
641 |
+
msgstr "Synchronisation PHP"
|
642 |
+
|
643 |
+
#: includes/field-groups/field-groups.php:127
|
644 |
+
msgid "Json Sync"
|
645 |
+
msgstr "Synchronisation Json"
|
646 |
+
|
647 |
+
#: includes/field-groups/field-groups.php:146
|
648 |
+
#: includes/field-groups/field-groups.php:168
|
649 |
+
msgid "PHP"
|
650 |
+
msgstr "PHP"
|
651 |
+
|
652 |
+
#: includes/field-groups/field-groups.php:150
|
653 |
+
#: includes/field-groups/field-groups.php:172
|
654 |
+
#: includes/fields/field-code-editor.php:77
|
655 |
+
msgid "Json"
|
656 |
+
msgstr "Json"
|
657 |
+
|
658 |
+
#: includes/field-groups/field-groups.php:280
|
659 |
+
msgid "Theme/Plugin"
|
660 |
+
msgstr "Thème/Plugin"
|
661 |
+
|
662 |
+
#: includes/field-groups/field-groups.php:414
|
663 |
+
#: includes/field-groups/field-groups.php:421
|
664 |
+
#: includes/field-groups/field-groups.php:591
|
665 |
+
msgid "Synchronized"
|
666 |
+
msgstr "Synchronisé"
|
667 |
+
|
668 |
+
#: includes/field-groups/field-groups.php:414
|
669 |
+
#: includes/field-groups/field-groups.php:415
|
670 |
+
msgid "Warning: Duplicated PHP code found in theme/plugin."
|
671 |
+
msgstr "Avertissement: Code PHP dupliqué trouvé dans le thème / plugin."
|
672 |
+
|
673 |
+
#: includes/field-groups/field-groups.php:441
|
674 |
+
#: includes/field-groups/field-groups.php:611
|
675 |
+
msgid "Awaiting save"
|
676 |
+
msgstr "En attente d’enregistrement"
|
677 |
+
|
678 |
+
#: includes/field-groups/field-groups.php:441
|
679 |
+
#: includes/field-groups/field-groups.php:442
|
680 |
+
#: includes/field-groups/field-groups.php:449
|
681 |
+
#: includes/field-groups/field-groups.php:611
|
682 |
+
#: includes/field-groups/field-groups.php:612
|
683 |
+
#: includes/field-groups/field-groups.php:619
|
684 |
+
msgid "Save path"
|
685 |
+
msgstr "Chemin d’enregistrement"
|
686 |
+
|
687 |
+
#: includes/field-groups/field-groups.php:556
|
688 |
+
msgid "Sync"
|
689 |
+
msgstr "Synchroniser"
|
690 |
+
|
691 |
+
#: includes/field-groups/field-groups.php:556
|
692 |
+
#: includes/field-groups/field-groups.php:564
|
693 |
+
msgid "Import"
|
694 |
+
msgstr "Importer"
|
695 |
+
|
696 |
+
#: includes/field-groups/field-groups.php:564
|
697 |
+
msgid "Review"
|
698 |
+
msgstr "Avis"
|
699 |
+
|
700 |
+
#: includes/field-groups/field-groups.php:714
|
701 |
+
#: includes/field-groups/field-groups.php:722 includes/modules/module.php:371
|
702 |
+
msgctxt "post status"
|
703 |
+
msgid "Disabled"
|
704 |
+
msgstr "Désactivé"
|
705 |
+
|
706 |
+
#: includes/field-groups/field-groups.php:731
|
707 |
+
msgid "Alternative title"
|
708 |
+
msgstr "Titre alternatif"
|
709 |
+
|
710 |
+
#: includes/fields-settings/bidirectional.php:45
|
711 |
+
msgid "Bidirectional"
|
712 |
+
msgstr "Bidirectionnel"
|
713 |
+
|
714 |
+
#: includes/fields-settings/bidirectional.php:48
|
715 |
+
msgid "Set the field as bidirectional"
|
716 |
+
msgstr "Définir le champ comme bidirectionnel"
|
717 |
+
|
718 |
+
#: includes/fields-settings/data.php:55
|
719 |
+
msgid "Field data unavailable"
|
720 |
+
msgstr "Aucune donnée disponible"
|
721 |
+
|
722 |
+
#: includes/fields-settings/data.php:67
|
723 |
+
msgid "Post object unavailable"
|
724 |
+
msgstr "Aucun objet de post disponible"
|
725 |
+
|
726 |
+
#: includes/fields-settings/data.php:70
|
727 |
+
msgid "Field Data"
|
728 |
+
msgstr "Données de champ"
|
729 |
+
|
730 |
+
#: includes/fields-settings/permissions.php:26
|
731 |
+
msgid "Restrict user roles that are allowed to view and edit this field"
|
732 |
+
msgstr ""
|
733 |
+
"Restreindre les rôles d’utilisateur autorisés à afficher et à modifier ce "
|
734 |
+
"champ"
|
735 |
+
|
736 |
+
#: includes/fields-settings/settings.php:102
|
737 |
+
msgid "Change field settings based on location"
|
738 |
+
msgstr "Modifier les paramètres de champ en fonction de l’emplacement"
|
739 |
+
|
740 |
+
#: includes/fields-settings/settings.php:104
|
741 |
+
msgid "Add settings"
|
742 |
+
msgstr "Ajouter des paramètres"
|
743 |
+
|
744 |
+
#: includes/fields-settings/settings.php:141
|
745 |
+
msgid "+"
|
746 |
+
msgstr "+"
|
747 |
+
|
748 |
+
#: includes/fields-settings/validation.php:156
|
749 |
+
msgid "Advanced Validation"
|
750 |
+
msgstr "Validation avancée"
|
751 |
+
|
752 |
+
#: includes/fields-settings/validation.php:159
|
753 |
+
msgid "Validate value against rules"
|
754 |
+
msgstr "Valider la valeur contre les règles"
|
755 |
+
|
756 |
+
#: includes/fields-settings/validation.php:161
|
757 |
+
msgid "Add validation"
|
758 |
+
msgstr "Ajouter une validation"
|
759 |
+
|
760 |
+
#: includes/fields-settings/validation.php:193
|
761 |
+
msgid "Rules"
|
762 |
+
msgstr "Règles"
|
763 |
+
|
764 |
+
#: includes/fields-settings/validation.php:198
|
765 |
+
msgid "+ AND"
|
766 |
+
msgstr "ET +"
|
767 |
+
|
768 |
+
#: includes/fields/field-advanced-link.php:17
|
769 |
+
msgid "Advanced Link"
|
770 |
+
msgstr "Lien avancé"
|
771 |
+
|
772 |
+
#: includes/fields/field-advanced-link.php:39
|
773 |
+
msgid "Filter by Post Type"
|
774 |
+
msgstr "Filtrer par type d’article"
|
775 |
+
|
776 |
+
#: includes/fields/field-advanced-link.php:47
|
777 |
+
#: includes/fields/field-post-types.php:61
|
778 |
+
msgid "All post types"
|
779 |
+
msgstr "Types d’article"
|
780 |
+
|
781 |
+
#: includes/fields/field-advanced-link.php:52
|
782 |
+
msgid "Filter by Taxonomy"
|
783 |
+
msgstr "Filtrer par taxonomie"
|
784 |
+
|
785 |
+
#: includes/fields/field-advanced-link.php:60
|
786 |
+
#: includes/fields/field-taxonomies.php:61
|
787 |
+
#: includes/fields/field-taxonomy-terms.php:365
|
788 |
+
msgid "All taxonomies"
|
789 |
+
msgstr "Toutes les taxonomies"
|
790 |
+
|
791 |
+
#: includes/fields/field-advanced-link.php:120
|
792 |
+
msgid "Select Link"
|
793 |
+
msgstr "Sélectionnez le lien"
|
794 |
+
|
795 |
+
#: includes/fields/field-advanced-link.php:125
|
796 |
+
msgid "Opens in a new window/tab"
|
797 |
+
msgstr "Ouvrir dans une nouvelle fenêtre/onglet"
|
798 |
+
|
799 |
+
#: includes/fields/field-advanced-link.php:126
|
800 |
+
#: includes/fields/field-clone.php:162 includes/fields/field-clone.php:226
|
801 |
+
#: includes/fields/field-group.php:97 includes/fields/field-group.php:156
|
802 |
+
#: includes/modules/options.class.php:203 includes/modules/options.php:516
|
803 |
+
#: includes/modules/ui-settings.php:70 includes/modules/ui-term.php:102
|
804 |
+
#: includes/modules/ui-user.php:166 pro/includes/fields/field-file.php:472
|
805 |
+
#: pro/includes/locations/post-screen.php:23
|
806 |
+
msgid "Edit"
|
807 |
+
msgstr "Modifier"
|
808 |
+
|
809 |
+
#: includes/fields/field-advanced-link.php:127
|
810 |
+
#: pro/includes/fields/field-file.php:474
|
811 |
+
msgid "Remove"
|
812 |
+
msgstr "Supprimer"
|
813 |
+
|
814 |
+
#: includes/fields/field-advanced-link.php:155 pro/includes/modules/dev.php:83
|
815 |
+
msgid "Type"
|
816 |
+
msgstr "Type"
|
817 |
+
|
818 |
+
#: includes/fields/field-advanced-link.php:160
|
819 |
+
#: includes/fields/field-advanced-link.php:179
|
820 |
+
msgid "URL"
|
821 |
+
msgstr "URL"
|
822 |
+
|
823 |
+
#: includes/fields/field-advanced-link.php:161
|
824 |
+
#: includes/fields/field-advanced-link.php:199
|
825 |
+
#: includes/locations/post-type-archive.php:254
|
826 |
+
#: includes/locations/post-type-list.php:214
|
827 |
+
#: pro/includes/locations/menu-item-type.php:23
|
828 |
+
msgid "Post"
|
829 |
+
msgstr "Article"
|
830 |
+
|
831 |
+
#: includes/fields/field-advanced-link.php:162
|
832 |
+
#: includes/fields/field-advanced-link.php:224
|
833 |
+
msgid "Term"
|
834 |
+
msgstr "Terme"
|
835 |
+
|
836 |
+
#: includes/fields/field-advanced-link.php:248
|
837 |
+
msgid "Link text"
|
838 |
+
msgstr "Texte du lien"
|
839 |
+
|
840 |
+
#: includes/fields/field-advanced-link.php:258
|
841 |
+
msgid "Target"
|
842 |
+
msgstr "Cible"
|
843 |
+
|
844 |
+
#: includes/fields/field-advanced-link.php:260
|
845 |
+
msgid "Open in a new window"
|
846 |
+
msgstr "Ouvrir dans une nouvelle fenêtre"
|
847 |
+
|
848 |
+
#: includes/fields/field-advanced-link.php:688
|
849 |
+
msgid "Archives"
|
850 |
+
msgstr "Archives"
|
851 |
+
|
852 |
+
#: includes/fields/field-button.php:17 includes/fields/field-button.php:92
|
853 |
+
msgid "Button"
|
854 |
+
msgstr "Bouton"
|
855 |
+
|
856 |
+
#: includes/fields/field-button.php:20 includes/modules/options.php:511
|
857 |
+
#: pro/includes/modules/dev.php:619
|
858 |
+
msgid "Submit"
|
859 |
+
msgstr "Envoyer"
|
860 |
+
|
861 |
+
#: includes/fields/field-button.php:78
|
862 |
+
#: pro/includes/fields/field-payment.php:129
|
863 |
+
msgid "Button value"
|
864 |
+
msgstr "Valeur du bouton"
|
865 |
+
|
866 |
+
#: includes/fields/field-button.php:79
|
867 |
+
#: pro/includes/fields/field-payment.php:130
|
868 |
+
msgid "Set a default button value"
|
869 |
+
msgstr "Définir une valeur de bouton par défaut"
|
870 |
+
|
871 |
+
#: includes/fields/field-button.php:86
|
872 |
+
msgid "Button type"
|
873 |
+
msgstr "Type de bouton"
|
874 |
+
|
875 |
+
#: includes/fields/field-button.php:87
|
876 |
+
msgid "Choose the button type"
|
877 |
+
msgstr "Choisissez le type de bouton"
|
878 |
+
|
879 |
+
#: includes/fields/field-button.php:93
|
880 |
+
msgid "Input"
|
881 |
+
msgstr "Entrée"
|
882 |
+
|
883 |
+
#: includes/fields/field-button.php:99
|
884 |
+
#: pro/includes/fields/field-payment.php:144
|
885 |
+
msgid "Button attributes"
|
886 |
+
msgstr "Attributs du bouton"
|
887 |
+
|
888 |
+
#: includes/fields/field-button.php:103
|
889 |
+
#: pro/includes/fields/field-payment.php:148
|
890 |
+
msgid "class"
|
891 |
+
msgstr "classe"
|
892 |
+
|
893 |
+
#: includes/fields/field-button.php:112
|
894 |
+
#: pro/includes/fields/field-payment.php:164
|
895 |
+
msgid "id"
|
896 |
+
msgstr "id"
|
897 |
+
|
898 |
+
#: includes/fields/field-button.php:118
|
899 |
+
#: pro/includes/fields/field-payment.php:177
|
900 |
+
msgid "Before HTML"
|
901 |
+
msgstr "Avant HTML"
|
902 |
+
|
903 |
+
#: includes/fields/field-button.php:119
|
904 |
+
#: pro/includes/fields/field-payment.php:178
|
905 |
+
msgid "Custom HTML before the button"
|
906 |
+
msgstr "HTML personnalisé avant le bouton"
|
907 |
+
|
908 |
+
#: includes/fields/field-button.php:127
|
909 |
+
#: pro/includes/fields/field-payment.php:193
|
910 |
+
msgid "After HTML"
|
911 |
+
msgstr "Après HTML"
|
912 |
+
|
913 |
+
#: includes/fields/field-button.php:128
|
914 |
+
#: pro/includes/fields/field-payment.php:194
|
915 |
+
msgid "Custom HTML after the button"
|
916 |
+
msgstr "HTML personnalisé après le bouton"
|
917 |
+
|
918 |
+
#: includes/fields/field-button.php:136
|
919 |
+
msgid "Ajax Request"
|
920 |
+
msgstr "Requête Ajax"
|
921 |
+
|
922 |
+
#: includes/fields/field-button.php:137
|
923 |
+
msgid "Trigger ajax event on click"
|
924 |
+
msgstr "Déclencher l’événement ajax au clic"
|
925 |
+
|
926 |
+
#: includes/fields/field-button.php:137
|
927 |
+
#: includes/fields/field-flexible-content-actions.php:87
|
928 |
+
#: includes/fields/field-flexible-content-async.php:65
|
929 |
+
#: includes/fields/field-flexible-content-controls.php:75
|
930 |
+
#: includes/fields/field-flexible-content-controls.php:103
|
931 |
+
#: includes/fields/field-flexible-content-edit.php:81
|
932 |
+
#: includes/fields/field-flexible-content-hide.php:66
|
933 |
+
#: includes/fields/field-flexible-content-preview.php:81
|
934 |
+
#: includes/fields/field-flexible-content-preview.php:104
|
935 |
+
#: includes/fields/field-flexible-content-preview.php:132
|
936 |
+
#: includes/fields/field-flexible-content-select.php:78
|
937 |
+
#: includes/fields/field-flexible-content-settings.php:74
|
938 |
+
#: includes/fields/field-flexible-content-thumbnail.php:74
|
939 |
+
#: pro/includes/fields/field-flexible-content-grid.php:75
|
940 |
+
#: pro/includes/fields/field-flexible-content-locations.php:247
|
941 |
+
msgid "See documentation"
|
942 |
+
msgstr "Voir la documentation"
|
943 |
+
|
944 |
+
#: includes/fields/field-checkbox.php:38
|
945 |
+
msgid "You may use \"## Title\" to create a group of options."
|
946 |
+
msgstr "Vous pouvez utiliser \"## Titre\" pour créer des groupes d'options."
|
947 |
+
|
948 |
+
#: includes/fields/field-clone.php:84 includes/fields/field-group.php:36
|
949 |
+
msgid "Seamless Style"
|
950 |
+
msgstr "Style transparent"
|
951 |
+
|
952 |
+
#: includes/fields/field-clone.php:87 includes/fields/field-group.php:38
|
953 |
+
msgid "Enable better CSS integration: remove borders and padding"
|
954 |
+
msgstr ""
|
955 |
+
"Permettre une meilleure intégration CSS : supprimer les bordures et le "
|
956 |
+
"remplissage"
|
957 |
+
|
958 |
+
#: includes/fields/field-clone.php:110 includes/fields/field-group.php:55
|
959 |
+
msgid "Edition modal"
|
960 |
+
msgstr "Édition modale"
|
961 |
+
|
962 |
+
#: includes/fields/field-clone.php:113 includes/fields/field-group.php:57
|
963 |
+
msgid "Edit fields in a modal"
|
964 |
+
msgstr "Modifier des champs dans un modal"
|
965 |
+
|
966 |
+
#: includes/fields/field-clone.php:136 includes/fields/field-group.php:74
|
967 |
+
msgid "Edition modal: Close button"
|
968 |
+
msgstr "Édition modale : bouton Fermer"
|
969 |
+
|
970 |
+
#: includes/fields/field-clone.php:139 includes/fields/field-group.php:76
|
971 |
+
msgid "Display close button"
|
972 |
+
msgstr "Afficher le bouton Fermer"
|
973 |
+
|
974 |
+
#: includes/fields/field-clone.php:157 includes/fields/field-group.php:93
|
975 |
+
msgid "Edition modal: Text button"
|
976 |
+
msgstr "Édition modale : bouton Texte"
|
977 |
+
|
978 |
+
#: includes/fields/field-clone.php:160 includes/fields/field-group.php:95
|
979 |
+
msgid "Text displayed in the edition modal button"
|
980 |
+
msgstr "Texte affiché dans le bouton modal d’édition"
|
981 |
+
|
982 |
+
#: includes/fields/field-clone.php:176 includes/fields/field-group.php:110
|
983 |
+
msgid "Edition modal: Size"
|
984 |
+
msgstr "Édition modale : Taille"
|
985 |
+
|
986 |
+
#: includes/fields/field-clone.php:179 includes/fields/field-group.php:112
|
987 |
+
msgid "Choose the modal size"
|
988 |
+
msgstr "Choisissez la taille modale"
|
989 |
+
|
990 |
+
#: includes/fields/field-code-editor.php:24
|
991 |
+
msgid "Code Editor"
|
992 |
+
msgstr "Éditeur de code"
|
993 |
+
|
994 |
+
#: includes/fields/fiel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|