Update internal ACF to 6.2.0
This commit is contained in:
parent
b8d3520c6f
commit
abf3a11c28
@ -9,7 +9,7 @@
|
||||
* Plugin Name: Advanced Custom Fields
|
||||
* Plugin URI: https://www.advancedcustomfields.com
|
||||
* Description: Customize WordPress with powerful, professional and intuitive fields.
|
||||
* Version: 6.1.8
|
||||
* Version: 6.2.0
|
||||
* Author: WP Engine
|
||||
* Author URI: https://wpengine.com/?utm_source=wordpress.org&utm_medium=referral&utm_campaign=plugin_directory&utm_content=advanced_custom_fields
|
||||
* Text Domain: acf
|
||||
@ -33,7 +33,7 @@ if ( ! class_exists( 'ACF' ) ) {
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $version = '6.1.8';
|
||||
public $version = '6.2.0';
|
||||
|
||||
/**
|
||||
* The plugin settings array.
|
||||
@ -89,42 +89,44 @@ if ( ! class_exists( 'ACF' ) ) {
|
||||
|
||||
// Define settings.
|
||||
$this->settings = array(
|
||||
'name' => __( 'Advanced Custom Fields', 'acf' ),
|
||||
'slug' => dirname( ACF_BASENAME ),
|
||||
'version' => ACF_VERSION,
|
||||
'basename' => ACF_BASENAME,
|
||||
'path' => ACF_PATH,
|
||||
'file' => __FILE__,
|
||||
'url' => plugin_dir_url( __FILE__ ),
|
||||
'show_admin' => true,
|
||||
'show_updates' => true,
|
||||
'enable_post_types' => true,
|
||||
'stripslashes' => false,
|
||||
'local' => true,
|
||||
'json' => true,
|
||||
'save_json' => '',
|
||||
'load_json' => array(),
|
||||
'default_language' => '',
|
||||
'current_language' => '',
|
||||
'capability' => 'manage_options',
|
||||
'uploader' => 'wp',
|
||||
'autoload' => false,
|
||||
'l10n' => true,
|
||||
'l10n_textdomain' => '',
|
||||
'google_api_key' => '',
|
||||
'google_api_client' => '',
|
||||
'enqueue_google_maps' => true,
|
||||
'enqueue_select2' => true,
|
||||
'enqueue_datepicker' => true,
|
||||
'enqueue_datetimepicker' => true,
|
||||
'select2_version' => 4,
|
||||
'row_index_offset' => 1,
|
||||
'remove_wp_meta_box' => true,
|
||||
'rest_api_enabled' => true,
|
||||
'rest_api_format' => 'light',
|
||||
'rest_api_embed_links' => true,
|
||||
'preload_blocks' => true,
|
||||
'enable_shortcode' => true,
|
||||
'name' => __( 'Advanced Custom Fields', 'acf' ),
|
||||
'slug' => dirname( ACF_BASENAME ),
|
||||
'version' => ACF_VERSION,
|
||||
'basename' => ACF_BASENAME,
|
||||
'path' => ACF_PATH,
|
||||
'file' => __FILE__,
|
||||
'url' => plugin_dir_url( __FILE__ ),
|
||||
'show_admin' => true,
|
||||
'show_updates' => true,
|
||||
'enable_post_types' => true,
|
||||
'enable_options_pages_ui' => true,
|
||||
'stripslashes' => false,
|
||||
'local' => true,
|
||||
'json' => true,
|
||||
'save_json' => '',
|
||||
'load_json' => array(),
|
||||
'default_language' => '',
|
||||
'current_language' => '',
|
||||
'capability' => 'manage_options',
|
||||
'uploader' => 'wp',
|
||||
'autoload' => false,
|
||||
'l10n' => true,
|
||||
'l10n_textdomain' => '',
|
||||
'google_api_key' => '',
|
||||
'google_api_client' => '',
|
||||
'enqueue_google_maps' => true,
|
||||
'enqueue_select2' => true,
|
||||
'enqueue_datepicker' => true,
|
||||
'enqueue_datetimepicker' => true,
|
||||
'select2_version' => 4,
|
||||
'row_index_offset' => 1,
|
||||
'remove_wp_meta_box' => true,
|
||||
'rest_api_enabled' => true,
|
||||
'rest_api_format' => 'light',
|
||||
'rest_api_embed_links' => true,
|
||||
'preload_blocks' => true,
|
||||
'enable_shortcode' => true,
|
||||
'enable_bidirection' => true,
|
||||
);
|
||||
|
||||
// Include utility functions.
|
||||
@ -146,6 +148,7 @@ if ( ! class_exists( 'ACF' ) ) {
|
||||
acf_include( 'includes/acf-helper-functions.php' );
|
||||
acf_include( 'includes/acf-hook-functions.php' );
|
||||
acf_include( 'includes/acf-field-functions.php' );
|
||||
acf_include( 'includes/acf-bidirectional-functions.php' );
|
||||
acf_include( 'includes/acf-internal-post-type-functions.php' );
|
||||
acf_include( 'includes/acf-post-type-functions.php' );
|
||||
acf_include( 'includes/acf-taxonomy-functions.php' );
|
||||
@ -273,6 +276,9 @@ if ( ! class_exists( 'ACF' ) ) {
|
||||
acf_include( 'includes/post-types/class-acf-post-type.php' );
|
||||
}
|
||||
|
||||
// Add other ACF internal post types.
|
||||
do_action( 'acf/init_internal_post_types' );
|
||||
|
||||
// Include fields.
|
||||
acf_include( 'includes/fields/class-acf-field-text.php' );
|
||||
acf_include( 'includes/fields/class-acf-field-textarea.php' );
|
||||
|
@ -1176,6 +1176,8 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container.-acf,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container.-acf,
|
||||
.acf-admin-page .acf-field-query-var .select2-container.-acf,
|
||||
.acf-admin-page .acf-field-capability .select2-container.-acf,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container.-acf,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container.-acf,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container.-acf,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container.-acf,
|
||||
@ -1186,6 +1188,8 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-query-var .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-capability .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
@ -1204,6 +1208,8 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container--default .select2-selection--single .field-type-icon,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container--default .select2-selection--single .field-type-icon,
|
||||
.acf-admin-page .acf-field-query-var .select2-container--default .select2-selection--single .field-type-icon,
|
||||
.acf-admin-page .acf-field-capability .select2-container--default .select2-selection--single .field-type-icon,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container--default .select2-selection--single .field-type-icon,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container--default .select2-selection--single .field-type-icon,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container--default .select2-selection--single .field-type-icon,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container--default .select2-selection--single .field-type-icon,
|
||||
@ -1217,6 +1223,8 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
.acf-admin-page .acf-field-query-var .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
.acf-admin-page .acf-field-capability .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
@ -1228,6 +1236,8 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container--open .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container--open .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-query-var .select2-container--open .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-capability .select2-container--open .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container--open .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container--open .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container--open .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container--open .select2-selection__rendered,
|
||||
@ -1239,6 +1249,8 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-query-var .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-capability .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
@ -1250,6 +1262,8 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-query-var .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-capability .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
@ -1263,6 +1277,8 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
.acf-admin-page .acf-field-setting-type .acf-selection.has-icon,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .acf-selection.has-icon,
|
||||
.acf-admin-page .acf-field-query-var .acf-selection.has-icon,
|
||||
.acf-admin-page .acf-field-capability .acf-selection.has-icon,
|
||||
.acf-admin-page .acf-field-data-storage .acf-selection.has-icon,
|
||||
.acf-admin-page .acf-field-manage-terms .acf-selection.has-icon,
|
||||
.acf-admin-page .acf-field-edit-terms .acf-selection.has-icon,
|
||||
.acf-admin-page .acf-field-delete-terms .acf-selection.has-icon,
|
||||
@ -1270,13 +1286,15 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
.acf-admin-page .acf-field-meta-box .acf-selection.has-icon {
|
||||
margin-left: 6px;
|
||||
}
|
||||
.rtl.acf-admin-page .acf-field-setting-type .acf-selection.has-icon, .acf-admin-page .acf-field-permalink-rewrite .acf-selection.has-icon, .acf-admin-page .acf-field-query-var .acf-selection.has-icon, .acf-admin-page .acf-field-manage-terms .acf-selection.has-icon, .acf-admin-page .acf-field-edit-terms .acf-selection.has-icon, .acf-admin-page .acf-field-delete-terms .acf-selection.has-icon, .acf-admin-page .acf-field-assign-terms .acf-selection.has-icon, .acf-admin-page .acf-field-meta-box .acf-selection.has-icon {
|
||||
.rtl.acf-admin-page .acf-field-setting-type .acf-selection.has-icon, .acf-admin-page .acf-field-permalink-rewrite .acf-selection.has-icon, .acf-admin-page .acf-field-query-var .acf-selection.has-icon, .acf-admin-page .acf-field-capability .acf-selection.has-icon, .acf-admin-page .acf-field-data-storage .acf-selection.has-icon, .acf-admin-page .acf-field-manage-terms .acf-selection.has-icon, .acf-admin-page .acf-field-edit-terms .acf-selection.has-icon, .acf-admin-page .acf-field-delete-terms .acf-selection.has-icon, .acf-admin-page .acf-field-assign-terms .acf-selection.has-icon, .acf-admin-page .acf-field-meta-box .acf-selection.has-icon {
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
.acf-admin-page .acf-field-setting-type .select2-selection__arrow,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-selection__arrow,
|
||||
.acf-admin-page .acf-field-query-var .select2-selection__arrow,
|
||||
.acf-admin-page .acf-field-capability .select2-selection__arrow,
|
||||
.acf-admin-page .acf-field-data-storage .select2-selection__arrow,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-selection__arrow,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-selection__arrow,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-selection__arrow,
|
||||
@ -1291,6 +1309,8 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
.acf-admin-page .acf-field-setting-type .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-query-var .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-capability .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-data-storage .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-selection__arrow:after,
|
||||
@ -1322,6 +1342,8 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
.acf-admin-page .acf-field-setting-type .select2-selection__arrow b[role=presentation],
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-selection__arrow b[role=presentation],
|
||||
.acf-admin-page .acf-field-query-var .select2-selection__arrow b[role=presentation],
|
||||
.acf-admin-page .acf-field-capability .select2-selection__arrow b[role=presentation],
|
||||
.acf-admin-page .acf-field-data-storage .select2-selection__arrow b[role=presentation],
|
||||
.acf-admin-page .acf-field-manage-terms .select2-selection__arrow b[role=presentation],
|
||||
.acf-admin-page .acf-field-edit-terms .select2-selection__arrow b[role=presentation],
|
||||
.acf-admin-page .acf-field-delete-terms .select2-selection__arrow b[role=presentation],
|
||||
@ -1332,6 +1354,8 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container--open .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container--open .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-query-var .select2-container--open .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-capability .select2-container--open .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container--open .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container--open .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container--open .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container--open .select2-selection__arrow:after,
|
||||
@ -1825,6 +1849,48 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
*
|
||||
* Informational Notes for specific fields
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
.acf-field-setting-bidirectional_notes .acf-label {
|
||||
display: none;
|
||||
}
|
||||
.acf-field-setting-bidirectional_notes .acf-feature-notice {
|
||||
background-color: #F9FAFB;
|
||||
border: 1px solid #EAECF0;
|
||||
border-radius: 6px;
|
||||
padding: 16px;
|
||||
color: #344054;
|
||||
position: relative;
|
||||
}
|
||||
.acf-field-setting-bidirectional_notes .acf-feature-notice.with-warning-icon {
|
||||
padding-left: 45px;
|
||||
}
|
||||
.acf-field-setting-bidirectional_notes .acf-feature-notice.with-warning-icon::before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 17px;
|
||||
left: 18px;
|
||||
z-index: 600;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-right: 8px;
|
||||
background-color: #667085;
|
||||
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;
|
||||
-webkit-mask-image: url("../../images/icons/icon-info.svg");
|
||||
mask-image: url("../../images/icons/icon-info.svg");
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
*
|
||||
* Edit fields footer
|
||||
@ -2419,32 +2485,38 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
.acf-admin-page #acf-popup .acf-popup-box #acf-link-field-groups-form .acf-field-select {
|
||||
margin-top: 0;
|
||||
}
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .title h3 {
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .title h3,
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .title h3 {
|
||||
color: #1D2939;
|
||||
font-weight: 500;
|
||||
}
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .title h3:before {
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .title h3:before,
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .title h3:before {
|
||||
content: "";
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: #98A2B3;
|
||||
margin-right: 9px;
|
||||
}
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .inner {
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .inner,
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner {
|
||||
padding: 0 !important;
|
||||
}
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .inner .acf-field-select,
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .inner .acf-link-successful {
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .inner .acf-link-successful,
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .acf-field-select,
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .acf-link-successful {
|
||||
padding: 32px 24px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .inner .acf-field-select .description,
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .inner .acf-link-successful .description {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: #344054;
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .inner .acf-link-successful .description,
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .acf-field-select .description,
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .acf-link-successful .description {
|
||||
margin-top: 6px !important;
|
||||
}
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .inner .acf-actions {
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .inner .acf-actions,
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .acf-actions {
|
||||
background: #F9FAFB;
|
||||
border-top: 1px solid #EAECF0;
|
||||
padding-top: 20px;
|
||||
@ -2454,13 +2526,46 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
border-bottom-left-radius: 8px;
|
||||
border-bottom-right-radius: 8px;
|
||||
}
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .inner .acf-actions .acf-btn {
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .inner .acf-actions .acf-btn,
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .acf-actions .acf-btn {
|
||||
display: inline-block;
|
||||
margin-left: 8px;
|
||||
}
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .inner .acf-actions .acf-btn.acf-btn-primary {
|
||||
.acf-admin-page .acf-link-field-groups-popup .acf-popup-box .inner .acf-actions .acf-btn.acf-btn-primary,
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .acf-actions .acf-btn.acf-btn-primary {
|
||||
width: 120px;
|
||||
}
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .acf-error-message.-success {
|
||||
display: none;
|
||||
}
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .-dismiss {
|
||||
margin: 24px 32px !important;
|
||||
}
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .acf-field {
|
||||
padding: 24px 32px 0 32px;
|
||||
margin: 0;
|
||||
}
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .acf-field.acf-error .acf-input-wrap {
|
||||
overflow: inherit;
|
||||
}
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .acf-field.acf-error .acf-input-wrap input[type=text] {
|
||||
border: 1px rgba(209, 55, 55, 0.5) solid !important;
|
||||
box-shadow: 0px 0px 0px 3px rgba(209, 55, 55, 0.12), 0px 0px 0px rgba(255, 54, 54, 0.25) !important;
|
||||
background-image: url(../../images/icons/icon-info-red.svg);
|
||||
background-position: right 10px top 50%;
|
||||
background-size: 14px;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .acf-field .acf-options-page-modal-error p {
|
||||
font-size: 12px;
|
||||
color: #D13737;
|
||||
}
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .acf-actions {
|
||||
margin-top: 32px;
|
||||
}
|
||||
.acf-admin-page .acf-create-options-page-popup .acf-popup-box .inner .acf-actions .acf-btn:disabled {
|
||||
background-color: #0783BE;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
*
|
||||
@ -2541,6 +2646,16 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
*
|
||||
* Field settings container
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
.acf-field-type-settings {
|
||||
container-name: settings;
|
||||
container-type: inline-size;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
*
|
||||
* Split field settings
|
||||
@ -2563,6 +2678,17 @@ html[dir=rtl] .acf-field-object.open > .handle {
|
||||
border-left-color: #EAECF0;
|
||||
}
|
||||
|
||||
@container settings (max-width: 1170px) {
|
||||
.acf-field-settings-split {
|
||||
border: none;
|
||||
flex-direction: column;
|
||||
}
|
||||
.acf-field {
|
||||
border-top-width: 1px;
|
||||
border-top-style: solid;
|
||||
border-top-color: #EAECF0;
|
||||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------------
|
||||
*
|
||||
* Display & return format
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1676,6 +1676,15 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------
|
||||
*
|
||||
* ACF Admin Page Footer Styles
|
||||
*
|
||||
*------------------------------------------------------------------*/
|
||||
.acf-admin-page #wpfooter {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Admin Postbox & ACF Postbox
|
||||
@ -1919,7 +1928,6 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-admin-page #lost-connection-notice {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
max-width: 1440px;
|
||||
min-height: 48px;
|
||||
margin-top: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
@ -2080,6 +2088,9 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
margin-top: -6px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.acf-admin-page .notice[data-persisted=true] {
|
||||
display: none;
|
||||
}
|
||||
.acf-admin-page .notice.is-dismissible {
|
||||
padding-right: 56px;
|
||||
}
|
||||
@ -2113,21 +2124,25 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
}
|
||||
|
||||
.acf-admin-single-taxonomy .notice-success .acf-item-saved-text,
|
||||
.acf-admin-single-post-type .notice-success .acf-item-saved-text {
|
||||
.acf-admin-single-post-type .notice-success .acf-item-saved-text,
|
||||
.acf-admin-single-options-page .notice-success .acf-item-saved-text {
|
||||
font-weight: 600;
|
||||
}
|
||||
.acf-admin-single-taxonomy .notice-success .acf-item-saved-links,
|
||||
.acf-admin-single-post-type .notice-success .acf-item-saved-links {
|
||||
.acf-admin-single-post-type .notice-success .acf-item-saved-links,
|
||||
.acf-admin-single-options-page .notice-success .acf-item-saved-links {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
}
|
||||
.acf-admin-single-taxonomy .notice-success .acf-item-saved-links a,
|
||||
.acf-admin-single-post-type .notice-success .acf-item-saved-links a {
|
||||
.acf-admin-single-post-type .notice-success .acf-item-saved-links a,
|
||||
.acf-admin-single-options-page .notice-success .acf-item-saved-links a {
|
||||
text-decoration: none;
|
||||
opacity: 1;
|
||||
}
|
||||
.acf-admin-single-taxonomy .notice-success .acf-item-saved-links a:after,
|
||||
.acf-admin-single-post-type .notice-success .acf-item-saved-links a:after {
|
||||
.acf-admin-single-post-type .notice-success .acf-item-saved-links a:after,
|
||||
.acf-admin-single-options-page .notice-success .acf-item-saved-links a:after {
|
||||
content: "";
|
||||
width: 1px;
|
||||
height: 13px;
|
||||
@ -2139,7 +2154,8 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
opacity: 0.3;
|
||||
}
|
||||
.acf-admin-single-taxonomy .notice-success .acf-item-saved-links a:last-child:after,
|
||||
.acf-admin-single-post-type .notice-success .acf-item-saved-links a:last-child:after {
|
||||
.acf-admin-single-post-type .notice-success .acf-item-saved-links a:last-child:after,
|
||||
.acf-admin-single-options-page .notice-success .acf-item-saved-links a:last-child:after {
|
||||
content: none;
|
||||
}
|
||||
|
||||
@ -2162,9 +2178,10 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
left: unset;
|
||||
right: 12px;
|
||||
}
|
||||
.rtl.acf-field-group.acf-admin-single-taxonomy .notice-success .acf-item-saved-links a:after, .rtl.acf-field-group.acf-admin-single-post-type .notice-success .acf-item-saved-links a:after,
|
||||
.rtl.acf-field-group.acf-admin-single-taxonomy .notice-success .acf-item-saved-links a:after, .rtl.acf-field-group.acf-admin-single-post-type .notice-success .acf-item-saved-links a:after, .rtl.acf-field-group.acf-admin-single-options-page .notice-success .acf-item-saved-links a:after,
|
||||
.rtl.acf-internal-post-type.acf-admin-single-taxonomy .notice-success .acf-item-saved-links a:after,
|
||||
.rtl.acf-internal-post-type.acf-admin-single-post-type .notice-success .acf-item-saved-links a:after {
|
||||
.rtl.acf-internal-post-type.acf-admin-single-post-type .notice-success .acf-item-saved-links a:after,
|
||||
.rtl.acf-internal-post-type.acf-admin-single-options-page .notice-success .acf-item-saved-links a:after {
|
||||
left: unset;
|
||||
right: 6px;
|
||||
}
|
||||
@ -2267,12 +2284,19 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-h2, .acf-no-field-groups-wrapper .acf-no-field-groups-inner h2,
|
||||
.acf-no-field-groups-wrapper .acf-no-taxonomies-inner h2,
|
||||
.acf-no-field-groups-wrapper .acf-no-post-types-inner h2,
|
||||
.acf-no-field-groups-wrapper .acf-no-options-pages-inner h2,
|
||||
.acf-no-taxonomies-wrapper .acf-no-field-groups-inner h2,
|
||||
.acf-no-taxonomies-wrapper .acf-no-taxonomies-inner h2,
|
||||
.acf-no-taxonomies-wrapper .acf-no-post-types-inner h2,
|
||||
.acf-no-taxonomies-wrapper .acf-no-options-pages-inner h2,
|
||||
.acf-no-post-types-wrapper .acf-no-field-groups-inner h2,
|
||||
.acf-no-post-types-wrapper .acf-no-taxonomies-inner h2,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner h2, .acf-page-title, .acf-admin-page h2,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner h2,
|
||||
.acf-no-post-types-wrapper .acf-no-options-pages-inner h2,
|
||||
.acf-no-options-pages-wrapper .acf-no-field-groups-inner h2,
|
||||
.acf-no-options-pages-wrapper .acf-no-taxonomies-inner h2,
|
||||
.acf-no-options-pages-wrapper .acf-no-post-types-inner h2,
|
||||
.acf-no-options-pages-wrapper .acf-no-options-pages-inner h2, .acf-page-title, .acf-admin-page h2,
|
||||
.acf-headerbar h2 {
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
@ -2305,18 +2329,32 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-no-field-groups-wrapper .acf-no-taxonomies-inner .acf-admin-page p,
|
||||
.acf-admin-page .acf-no-field-groups-wrapper .acf-no-post-types-inner p,
|
||||
.acf-no-field-groups-wrapper .acf-no-post-types-inner .acf-admin-page p,
|
||||
.acf-admin-page .acf-no-field-groups-wrapper .acf-no-options-pages-inner p,
|
||||
.acf-no-field-groups-wrapper .acf-no-options-pages-inner .acf-admin-page p,
|
||||
.acf-admin-page .acf-no-taxonomies-wrapper .acf-no-field-groups-inner p,
|
||||
.acf-no-taxonomies-wrapper .acf-no-field-groups-inner .acf-admin-page p,
|
||||
.acf-admin-page .acf-no-taxonomies-wrapper .acf-no-taxonomies-inner p,
|
||||
.acf-no-taxonomies-wrapper .acf-no-taxonomies-inner .acf-admin-page p,
|
||||
.acf-admin-page .acf-no-taxonomies-wrapper .acf-no-post-types-inner p,
|
||||
.acf-no-taxonomies-wrapper .acf-no-post-types-inner .acf-admin-page p,
|
||||
.acf-admin-page .acf-no-taxonomies-wrapper .acf-no-options-pages-inner p,
|
||||
.acf-no-taxonomies-wrapper .acf-no-options-pages-inner .acf-admin-page p,
|
||||
.acf-admin-page .acf-no-post-types-wrapper .acf-no-field-groups-inner p,
|
||||
.acf-no-post-types-wrapper .acf-no-field-groups-inner .acf-admin-page p,
|
||||
.acf-admin-page .acf-no-post-types-wrapper .acf-no-taxonomies-inner p,
|
||||
.acf-no-post-types-wrapper .acf-no-taxonomies-inner .acf-admin-page p,
|
||||
.acf-admin-page .acf-no-post-types-wrapper .acf-no-post-types-inner p,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner .acf-admin-page p, .acf-admin-page #acf-admin-tools .acf-meta-box-wrap .acf-fields .acf-label, #acf-admin-tools .acf-meta-box-wrap .acf-fields .acf-admin-page .acf-label {
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner .acf-admin-page p,
|
||||
.acf-admin-page .acf-no-post-types-wrapper .acf-no-options-pages-inner p,
|
||||
.acf-no-post-types-wrapper .acf-no-options-pages-inner .acf-admin-page p,
|
||||
.acf-admin-page .acf-no-options-pages-wrapper .acf-no-field-groups-inner p,
|
||||
.acf-no-options-pages-wrapper .acf-no-field-groups-inner .acf-admin-page p,
|
||||
.acf-admin-page .acf-no-options-pages-wrapper .acf-no-taxonomies-inner p,
|
||||
.acf-no-options-pages-wrapper .acf-no-taxonomies-inner .acf-admin-page p,
|
||||
.acf-admin-page .acf-no-options-pages-wrapper .acf-no-post-types-inner p,
|
||||
.acf-no-options-pages-wrapper .acf-no-post-types-inner .acf-admin-page p,
|
||||
.acf-admin-page .acf-no-options-pages-wrapper .acf-no-options-pages-inner p,
|
||||
.acf-no-options-pages-wrapper .acf-no-options-pages-inner .acf-admin-page p, .acf-admin-page #acf-admin-tools .acf-meta-box-wrap .acf-fields .acf-label, #acf-admin-tools .acf-meta-box-wrap .acf-fields .acf-admin-page .acf-label {
|
||||
font-size: 14px;
|
||||
}
|
||||
.acf-admin-page .p3, .acf-admin-page .acf-internal-post-type .wp-list-table .post-state, .acf-internal-post-type .wp-list-table .acf-admin-page .post-state, .acf-admin-page .subtitle {
|
||||
@ -2347,18 +2385,32 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-no-field-groups-wrapper .acf-no-taxonomies-inner .acf-admin-page p.acf-small,
|
||||
.acf-admin-page .acf-no-field-groups-wrapper .acf-no-post-types-inner p.acf-small,
|
||||
.acf-no-field-groups-wrapper .acf-no-post-types-inner .acf-admin-page p.acf-small,
|
||||
.acf-admin-page .acf-no-field-groups-wrapper .acf-no-options-pages-inner p.acf-small,
|
||||
.acf-no-field-groups-wrapper .acf-no-options-pages-inner .acf-admin-page p.acf-small,
|
||||
.acf-admin-page .acf-no-taxonomies-wrapper .acf-no-field-groups-inner p.acf-small,
|
||||
.acf-no-taxonomies-wrapper .acf-no-field-groups-inner .acf-admin-page p.acf-small,
|
||||
.acf-admin-page .acf-no-taxonomies-wrapper .acf-no-taxonomies-inner p.acf-small,
|
||||
.acf-no-taxonomies-wrapper .acf-no-taxonomies-inner .acf-admin-page p.acf-small,
|
||||
.acf-admin-page .acf-no-taxonomies-wrapper .acf-no-post-types-inner p.acf-small,
|
||||
.acf-no-taxonomies-wrapper .acf-no-post-types-inner .acf-admin-page p.acf-small,
|
||||
.acf-admin-page .acf-no-taxonomies-wrapper .acf-no-options-pages-inner p.acf-small,
|
||||
.acf-no-taxonomies-wrapper .acf-no-options-pages-inner .acf-admin-page p.acf-small,
|
||||
.acf-admin-page .acf-no-post-types-wrapper .acf-no-field-groups-inner p.acf-small,
|
||||
.acf-no-post-types-wrapper .acf-no-field-groups-inner .acf-admin-page p.acf-small,
|
||||
.acf-admin-page .acf-no-post-types-wrapper .acf-no-taxonomies-inner p.acf-small,
|
||||
.acf-no-post-types-wrapper .acf-no-taxonomies-inner .acf-admin-page p.acf-small,
|
||||
.acf-admin-page .acf-no-post-types-wrapper .acf-no-post-types-inner p.acf-small,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner .acf-admin-page p.acf-small, .acf-admin-page .acf-internal-post-type .row-actions, .acf-internal-post-type .acf-admin-page .row-actions, .acf-admin-page .acf-small {
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner .acf-admin-page p.acf-small,
|
||||
.acf-admin-page .acf-no-post-types-wrapper .acf-no-options-pages-inner p.acf-small,
|
||||
.acf-no-post-types-wrapper .acf-no-options-pages-inner .acf-admin-page p.acf-small,
|
||||
.acf-admin-page .acf-no-options-pages-wrapper .acf-no-field-groups-inner p.acf-small,
|
||||
.acf-no-options-pages-wrapper .acf-no-field-groups-inner .acf-admin-page p.acf-small,
|
||||
.acf-admin-page .acf-no-options-pages-wrapper .acf-no-taxonomies-inner p.acf-small,
|
||||
.acf-no-options-pages-wrapper .acf-no-taxonomies-inner .acf-admin-page p.acf-small,
|
||||
.acf-admin-page .acf-no-options-pages-wrapper .acf-no-post-types-inner p.acf-small,
|
||||
.acf-no-options-pages-wrapper .acf-no-post-types-inner .acf-admin-page p.acf-small,
|
||||
.acf-admin-page .acf-no-options-pages-wrapper .acf-no-options-pages-inner p.acf-small,
|
||||
.acf-no-options-pages-wrapper .acf-no-options-pages-inner .acf-admin-page p.acf-small, .acf-admin-page .acf-internal-post-type .row-actions, .acf-internal-post-type .acf-admin-page .row-actions, .acf-admin-page .acf-small {
|
||||
font-size: 12px;
|
||||
}
|
||||
.acf-admin-page .p7, .acf-admin-page .acf-tooltip, .acf-admin-page .acf-notice p.help,
|
||||
@ -2879,6 +2931,8 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container.-acf,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container.-acf,
|
||||
.acf-admin-page .acf-field-query-var .select2-container.-acf,
|
||||
.acf-admin-page .acf-field-capability .select2-container.-acf,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container.-acf,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container.-acf,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container.-acf,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container.-acf,
|
||||
@ -2889,6 +2943,8 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-query-var .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-capability .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container--default .select2-selection--single .select2-selection__rendered,
|
||||
@ -2907,6 +2963,8 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container--default .select2-selection--single .field-type-icon,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container--default .select2-selection--single .field-type-icon,
|
||||
.acf-admin-page .acf-field-query-var .select2-container--default .select2-selection--single .field-type-icon,
|
||||
.acf-admin-page .acf-field-capability .select2-container--default .select2-selection--single .field-type-icon,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container--default .select2-selection--single .field-type-icon,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container--default .select2-selection--single .field-type-icon,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container--default .select2-selection--single .field-type-icon,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container--default .select2-selection--single .field-type-icon,
|
||||
@ -2920,6 +2978,8 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
.acf-admin-page .acf-field-query-var .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
.acf-admin-page .acf-field-capability .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container--default .select2-selection--single .field-type-icon:before,
|
||||
@ -2931,6 +2991,8 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container--open .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container--open .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-query-var .select2-container--open .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-capability .select2-container--open .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container--open .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container--open .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container--open .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container--open .select2-selection__rendered,
|
||||
@ -2942,6 +3004,8 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-query-var .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-capability .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container--open.select2-container--below .select2-selection__rendered,
|
||||
@ -2953,6 +3017,8 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-query-var .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-capability .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container--open.select2-container--above .select2-selection__rendered,
|
||||
@ -2966,6 +3032,8 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-admin-page .acf-field-setting-type .acf-selection.has-icon,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .acf-selection.has-icon,
|
||||
.acf-admin-page .acf-field-query-var .acf-selection.has-icon,
|
||||
.acf-admin-page .acf-field-capability .acf-selection.has-icon,
|
||||
.acf-admin-page .acf-field-data-storage .acf-selection.has-icon,
|
||||
.acf-admin-page .acf-field-manage-terms .acf-selection.has-icon,
|
||||
.acf-admin-page .acf-field-edit-terms .acf-selection.has-icon,
|
||||
.acf-admin-page .acf-field-delete-terms .acf-selection.has-icon,
|
||||
@ -2973,13 +3041,15 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-admin-page .acf-field-meta-box .acf-selection.has-icon {
|
||||
margin-left: 6px;
|
||||
}
|
||||
.rtl.acf-admin-page .acf-field-setting-type .acf-selection.has-icon, .acf-admin-page .acf-field-permalink-rewrite .acf-selection.has-icon, .acf-admin-page .acf-field-query-var .acf-selection.has-icon, .acf-admin-page .acf-field-manage-terms .acf-selection.has-icon, .acf-admin-page .acf-field-edit-terms .acf-selection.has-icon, .acf-admin-page .acf-field-delete-terms .acf-selection.has-icon, .acf-admin-page .acf-field-assign-terms .acf-selection.has-icon, .acf-admin-page .acf-field-meta-box .acf-selection.has-icon {
|
||||
.rtl.acf-admin-page .acf-field-setting-type .acf-selection.has-icon, .acf-admin-page .acf-field-permalink-rewrite .acf-selection.has-icon, .acf-admin-page .acf-field-query-var .acf-selection.has-icon, .acf-admin-page .acf-field-capability .acf-selection.has-icon, .acf-admin-page .acf-field-data-storage .acf-selection.has-icon, .acf-admin-page .acf-field-manage-terms .acf-selection.has-icon, .acf-admin-page .acf-field-edit-terms .acf-selection.has-icon, .acf-admin-page .acf-field-delete-terms .acf-selection.has-icon, .acf-admin-page .acf-field-assign-terms .acf-selection.has-icon, .acf-admin-page .acf-field-meta-box .acf-selection.has-icon {
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
.acf-admin-page .acf-field-setting-type .select2-selection__arrow,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-selection__arrow,
|
||||
.acf-admin-page .acf-field-query-var .select2-selection__arrow,
|
||||
.acf-admin-page .acf-field-capability .select2-selection__arrow,
|
||||
.acf-admin-page .acf-field-data-storage .select2-selection__arrow,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-selection__arrow,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-selection__arrow,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-selection__arrow,
|
||||
@ -2994,6 +3064,8 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-admin-page .acf-field-setting-type .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-query-var .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-capability .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-data-storage .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-selection__arrow:after,
|
||||
@ -3025,6 +3097,8 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-admin-page .acf-field-setting-type .select2-selection__arrow b[role=presentation],
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-selection__arrow b[role=presentation],
|
||||
.acf-admin-page .acf-field-query-var .select2-selection__arrow b[role=presentation],
|
||||
.acf-admin-page .acf-field-capability .select2-selection__arrow b[role=presentation],
|
||||
.acf-admin-page .acf-field-data-storage .select2-selection__arrow b[role=presentation],
|
||||
.acf-admin-page .acf-field-manage-terms .select2-selection__arrow b[role=presentation],
|
||||
.acf-admin-page .acf-field-edit-terms .select2-selection__arrow b[role=presentation],
|
||||
.acf-admin-page .acf-field-delete-terms .select2-selection__arrow b[role=presentation],
|
||||
@ -3035,6 +3109,8 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-admin-page .acf-field-setting-type .select2-container--open .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-permalink-rewrite .select2-container--open .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-query-var .select2-container--open .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-capability .select2-container--open .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-data-storage .select2-container--open .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-manage-terms .select2-container--open .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-edit-terms .select2-container--open .select2-selection__arrow:after,
|
||||
.acf-admin-page .acf-field-delete-terms .select2-container--open .select2-selection__arrow:after,
|
||||
@ -3626,7 +3702,8 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-no-field-groups-wrapper,
|
||||
.acf-no-taxonomies-wrapper,
|
||||
.acf-no-post-types-wrapper {
|
||||
.acf-no-post-types-wrapper,
|
||||
.acf-no-options-pages-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding-top: 48px;
|
||||
@ -3635,12 +3712,19 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-no-field-groups-wrapper .acf-no-field-groups-inner,
|
||||
.acf-no-field-groups-wrapper .acf-no-taxonomies-inner,
|
||||
.acf-no-field-groups-wrapper .acf-no-post-types-inner,
|
||||
.acf-no-field-groups-wrapper .acf-no-options-pages-inner,
|
||||
.acf-no-taxonomies-wrapper .acf-no-field-groups-inner,
|
||||
.acf-no-taxonomies-wrapper .acf-no-taxonomies-inner,
|
||||
.acf-no-taxonomies-wrapper .acf-no-post-types-inner,
|
||||
.acf-no-taxonomies-wrapper .acf-no-options-pages-inner,
|
||||
.acf-no-post-types-wrapper .acf-no-field-groups-inner,
|
||||
.acf-no-post-types-wrapper .acf-no-taxonomies-inner,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner {
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner,
|
||||
.acf-no-post-types-wrapper .acf-no-options-pages-inner,
|
||||
.acf-no-options-pages-wrapper .acf-no-field-groups-inner,
|
||||
.acf-no-options-pages-wrapper .acf-no-taxonomies-inner,
|
||||
.acf-no-options-pages-wrapper .acf-no-post-types-inner,
|
||||
.acf-no-options-pages-wrapper .acf-no-options-pages-inner {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
@ -3659,6 +3743,9 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-no-field-groups-wrapper .acf-no-post-types-inner img,
|
||||
.acf-no-field-groups-wrapper .acf-no-post-types-inner h2,
|
||||
.acf-no-field-groups-wrapper .acf-no-post-types-inner p,
|
||||
.acf-no-field-groups-wrapper .acf-no-options-pages-inner img,
|
||||
.acf-no-field-groups-wrapper .acf-no-options-pages-inner h2,
|
||||
.acf-no-field-groups-wrapper .acf-no-options-pages-inner p,
|
||||
.acf-no-taxonomies-wrapper .acf-no-field-groups-inner img,
|
||||
.acf-no-taxonomies-wrapper .acf-no-field-groups-inner h2,
|
||||
.acf-no-taxonomies-wrapper .acf-no-field-groups-inner p,
|
||||
@ -3668,6 +3755,9 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-no-taxonomies-wrapper .acf-no-post-types-inner img,
|
||||
.acf-no-taxonomies-wrapper .acf-no-post-types-inner h2,
|
||||
.acf-no-taxonomies-wrapper .acf-no-post-types-inner p,
|
||||
.acf-no-taxonomies-wrapper .acf-no-options-pages-inner img,
|
||||
.acf-no-taxonomies-wrapper .acf-no-options-pages-inner h2,
|
||||
.acf-no-taxonomies-wrapper .acf-no-options-pages-inner p,
|
||||
.acf-no-post-types-wrapper .acf-no-field-groups-inner img,
|
||||
.acf-no-post-types-wrapper .acf-no-field-groups-inner h2,
|
||||
.acf-no-post-types-wrapper .acf-no-field-groups-inner p,
|
||||
@ -3676,18 +3766,40 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-no-post-types-wrapper .acf-no-taxonomies-inner p,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner img,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner h2,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner p {
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner p,
|
||||
.acf-no-post-types-wrapper .acf-no-options-pages-inner img,
|
||||
.acf-no-post-types-wrapper .acf-no-options-pages-inner h2,
|
||||
.acf-no-post-types-wrapper .acf-no-options-pages-inner p,
|
||||
.acf-no-options-pages-wrapper .acf-no-field-groups-inner img,
|
||||
.acf-no-options-pages-wrapper .acf-no-field-groups-inner h2,
|
||||
.acf-no-options-pages-wrapper .acf-no-field-groups-inner p,
|
||||
.acf-no-options-pages-wrapper .acf-no-taxonomies-inner img,
|
||||
.acf-no-options-pages-wrapper .acf-no-taxonomies-inner h2,
|
||||
.acf-no-options-pages-wrapper .acf-no-taxonomies-inner p,
|
||||
.acf-no-options-pages-wrapper .acf-no-post-types-inner img,
|
||||
.acf-no-options-pages-wrapper .acf-no-post-types-inner h2,
|
||||
.acf-no-options-pages-wrapper .acf-no-post-types-inner p,
|
||||
.acf-no-options-pages-wrapper .acf-no-options-pages-inner img,
|
||||
.acf-no-options-pages-wrapper .acf-no-options-pages-inner h2,
|
||||
.acf-no-options-pages-wrapper .acf-no-options-pages-inner p {
|
||||
flex: 1 0 100%;
|
||||
}
|
||||
.acf-no-field-groups-wrapper .acf-no-field-groups-inner h2,
|
||||
.acf-no-field-groups-wrapper .acf-no-taxonomies-inner h2,
|
||||
.acf-no-field-groups-wrapper .acf-no-post-types-inner h2,
|
||||
.acf-no-field-groups-wrapper .acf-no-options-pages-inner h2,
|
||||
.acf-no-taxonomies-wrapper .acf-no-field-groups-inner h2,
|
||||
.acf-no-taxonomies-wrapper .acf-no-taxonomies-inner h2,
|
||||
.acf-no-taxonomies-wrapper .acf-no-post-types-inner h2,
|
||||
.acf-no-taxonomies-wrapper .acf-no-options-pages-inner h2,
|
||||
.acf-no-post-types-wrapper .acf-no-field-groups-inner h2,
|
||||
.acf-no-post-types-wrapper .acf-no-taxonomies-inner h2,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner h2 {
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner h2,
|
||||
.acf-no-post-types-wrapper .acf-no-options-pages-inner h2,
|
||||
.acf-no-options-pages-wrapper .acf-no-field-groups-inner h2,
|
||||
.acf-no-options-pages-wrapper .acf-no-taxonomies-inner h2,
|
||||
.acf-no-options-pages-wrapper .acf-no-post-types-inner h2,
|
||||
.acf-no-options-pages-wrapper .acf-no-options-pages-inner h2 {
|
||||
margin-top: 32px;
|
||||
margin-bottom: 0;
|
||||
padding: 0;
|
||||
@ -3696,12 +3808,19 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-no-field-groups-wrapper .acf-no-field-groups-inner p,
|
||||
.acf-no-field-groups-wrapper .acf-no-taxonomies-inner p,
|
||||
.acf-no-field-groups-wrapper .acf-no-post-types-inner p,
|
||||
.acf-no-field-groups-wrapper .acf-no-options-pages-inner p,
|
||||
.acf-no-taxonomies-wrapper .acf-no-field-groups-inner p,
|
||||
.acf-no-taxonomies-wrapper .acf-no-taxonomies-inner p,
|
||||
.acf-no-taxonomies-wrapper .acf-no-post-types-inner p,
|
||||
.acf-no-taxonomies-wrapper .acf-no-options-pages-inner p,
|
||||
.acf-no-post-types-wrapper .acf-no-field-groups-inner p,
|
||||
.acf-no-post-types-wrapper .acf-no-taxonomies-inner p,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner p {
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner p,
|
||||
.acf-no-post-types-wrapper .acf-no-options-pages-inner p,
|
||||
.acf-no-options-pages-wrapper .acf-no-field-groups-inner p,
|
||||
.acf-no-options-pages-wrapper .acf-no-taxonomies-inner p,
|
||||
.acf-no-options-pages-wrapper .acf-no-post-types-inner p,
|
||||
.acf-no-options-pages-wrapper .acf-no-options-pages-inner p {
|
||||
margin-top: 12px;
|
||||
margin-bottom: 0;
|
||||
padding: 0;
|
||||
@ -3710,12 +3829,19 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-no-field-groups-wrapper .acf-no-field-groups-inner p.acf-small,
|
||||
.acf-no-field-groups-wrapper .acf-no-taxonomies-inner p.acf-small,
|
||||
.acf-no-field-groups-wrapper .acf-no-post-types-inner p.acf-small,
|
||||
.acf-no-field-groups-wrapper .acf-no-options-pages-inner p.acf-small,
|
||||
.acf-no-taxonomies-wrapper .acf-no-field-groups-inner p.acf-small,
|
||||
.acf-no-taxonomies-wrapper .acf-no-taxonomies-inner p.acf-small,
|
||||
.acf-no-taxonomies-wrapper .acf-no-post-types-inner p.acf-small,
|
||||
.acf-no-taxonomies-wrapper .acf-no-options-pages-inner p.acf-small,
|
||||
.acf-no-post-types-wrapper .acf-no-field-groups-inner p.acf-small,
|
||||
.acf-no-post-types-wrapper .acf-no-taxonomies-inner p.acf-small,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner p.acf-small {
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner p.acf-small,
|
||||
.acf-no-post-types-wrapper .acf-no-options-pages-inner p.acf-small,
|
||||
.acf-no-options-pages-wrapper .acf-no-field-groups-inner p.acf-small,
|
||||
.acf-no-options-pages-wrapper .acf-no-taxonomies-inner p.acf-small,
|
||||
.acf-no-options-pages-wrapper .acf-no-post-types-inner p.acf-small,
|
||||
.acf-no-options-pages-wrapper .acf-no-options-pages-inner p.acf-small {
|
||||
display: block;
|
||||
position: relative;
|
||||
margin-top: 32px;
|
||||
@ -3723,35 +3849,55 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-no-field-groups-wrapper .acf-no-field-groups-inner img,
|
||||
.acf-no-field-groups-wrapper .acf-no-taxonomies-inner img,
|
||||
.acf-no-field-groups-wrapper .acf-no-post-types-inner img,
|
||||
.acf-no-field-groups-wrapper .acf-no-options-pages-inner img,
|
||||
.acf-no-taxonomies-wrapper .acf-no-field-groups-inner img,
|
||||
.acf-no-taxonomies-wrapper .acf-no-taxonomies-inner img,
|
||||
.acf-no-taxonomies-wrapper .acf-no-post-types-inner img,
|
||||
.acf-no-taxonomies-wrapper .acf-no-options-pages-inner img,
|
||||
.acf-no-post-types-wrapper .acf-no-field-groups-inner img,
|
||||
.acf-no-post-types-wrapper .acf-no-taxonomies-inner img,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner img {
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner img,
|
||||
.acf-no-post-types-wrapper .acf-no-options-pages-inner img,
|
||||
.acf-no-options-pages-wrapper .acf-no-field-groups-inner img,
|
||||
.acf-no-options-pages-wrapper .acf-no-taxonomies-inner img,
|
||||
.acf-no-options-pages-wrapper .acf-no-post-types-inner img,
|
||||
.acf-no-options-pages-wrapper .acf-no-options-pages-inner img {
|
||||
max-width: 284px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.acf-no-field-groups-wrapper .acf-no-field-groups-inner .acf-btn,
|
||||
.acf-no-field-groups-wrapper .acf-no-taxonomies-inner .acf-btn,
|
||||
.acf-no-field-groups-wrapper .acf-no-post-types-inner .acf-btn,
|
||||
.acf-no-field-groups-wrapper .acf-no-options-pages-inner .acf-btn,
|
||||
.acf-no-taxonomies-wrapper .acf-no-field-groups-inner .acf-btn,
|
||||
.acf-no-taxonomies-wrapper .acf-no-taxonomies-inner .acf-btn,
|
||||
.acf-no-taxonomies-wrapper .acf-no-post-types-inner .acf-btn,
|
||||
.acf-no-taxonomies-wrapper .acf-no-options-pages-inner .acf-btn,
|
||||
.acf-no-post-types-wrapper .acf-no-field-groups-inner .acf-btn,
|
||||
.acf-no-post-types-wrapper .acf-no-taxonomies-inner .acf-btn,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner .acf-btn {
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner .acf-btn,
|
||||
.acf-no-post-types-wrapper .acf-no-options-pages-inner .acf-btn,
|
||||
.acf-no-options-pages-wrapper .acf-no-field-groups-inner .acf-btn,
|
||||
.acf-no-options-pages-wrapper .acf-no-taxonomies-inner .acf-btn,
|
||||
.acf-no-options-pages-wrapper .acf-no-post-types-inner .acf-btn,
|
||||
.acf-no-options-pages-wrapper .acf-no-options-pages-inner .acf-btn {
|
||||
margin-top: 32px;
|
||||
}
|
||||
.acf-no-field-groups-wrapper .acf-no-post-types-inner img,
|
||||
.acf-no-field-groups-wrapper .acf-no-options-pages-inner img,
|
||||
.acf-no-taxonomies-wrapper .acf-no-post-types-inner img,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner img {
|
||||
.acf-no-taxonomies-wrapper .acf-no-options-pages-inner img,
|
||||
.acf-no-post-types-wrapper .acf-no-post-types-inner img,
|
||||
.acf-no-post-types-wrapper .acf-no-options-pages-inner img,
|
||||
.acf-no-options-pages-wrapper .acf-no-post-types-inner img,
|
||||
.acf-no-options-pages-wrapper .acf-no-options-pages-inner img {
|
||||
width: 106px;
|
||||
height: 88px;
|
||||
}
|
||||
.acf-no-field-groups-wrapper .acf-no-taxonomies-inner img,
|
||||
.acf-no-taxonomies-wrapper .acf-no-taxonomies-inner img,
|
||||
.acf-no-post-types-wrapper .acf-no-taxonomies-inner img {
|
||||
.acf-no-post-types-wrapper .acf-no-taxonomies-inner img,
|
||||
.acf-no-options-pages-wrapper .acf-no-taxonomies-inner img {
|
||||
width: 98px;
|
||||
height: 88px;
|
||||
}
|
||||
@ -3771,7 +3917,13 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-no-taxonomies .acf-admin-field-groups .wp-list-table tr:hover,
|
||||
.acf-no-taxonomies .striped > tbody > :nth-child(odd),
|
||||
.acf-no-taxonomies ul.striped > :nth-child(odd),
|
||||
.acf-no-taxonomies .alternate {
|
||||
.acf-no-taxonomies .alternate,
|
||||
.acf-no-options-pages #the-list tr:hover td,
|
||||
.acf-no-options-pages #the-list tr:hover th,
|
||||
.acf-no-options-pages .acf-admin-field-groups .wp-list-table tr:hover,
|
||||
.acf-no-options-pages .striped > tbody > :nth-child(odd),
|
||||
.acf-no-options-pages ul.striped > :nth-child(odd),
|
||||
.acf-no-options-pages .alternate {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
.acf-no-field-groups .wp-list-table thead,
|
||||
@ -3779,7 +3931,9 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
.acf-no-post-types .wp-list-table thead,
|
||||
.acf-no-post-types .wp-list-table tfoot,
|
||||
.acf-no-taxonomies .wp-list-table thead,
|
||||
.acf-no-taxonomies .wp-list-table tfoot {
|
||||
.acf-no-taxonomies .wp-list-table tfoot,
|
||||
.acf-no-options-pages .wp-list-table thead,
|
||||
.acf-no-options-pages .wp-list-table tfoot {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -3857,6 +4011,16 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
@media screen and (max-width: 1250px) {
|
||||
.acf-admin-toolbar .acf-admin-toolbar-inner .acf-nav-wrap .acf-header-tab-acf-post-type,
|
||||
.acf-admin-toolbar .acf-admin-toolbar-inner .acf-nav-wrap .acf-header-tab-acf-taxonomy {
|
||||
display: none;
|
||||
}
|
||||
.acf-admin-toolbar .acf-admin-toolbar-inner .acf-nav-wrap .acf-more .acf-header-tab-acf-post-type,
|
||||
.acf-admin-toolbar .acf-admin-toolbar-inner .acf-nav-wrap .acf-more .acf-header-tab-acf-taxonomy {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
.acf-admin-toolbar .acf-admin-toolbar-inner .acf-nav-upgrade-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@ -3865,7 +4029,7 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
display: inline-flex;
|
||||
margin-left: 24px;
|
||||
}
|
||||
@media screen and (max-width: 1465px) {
|
||||
@media screen and (max-width: 1000px) {
|
||||
.acf-admin-toolbar .acf-admin-toolbar-inner .acf-nav-wpengine-logo {
|
||||
display: none;
|
||||
}
|
||||
@ -3941,25 +4105,55 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
margin-right: 0;
|
||||
margin-bottom: 0;
|
||||
margin-left: 0;
|
||||
padding-top: 0;
|
||||
padding-right: 16px;
|
||||
padding-bottom: 0;
|
||||
padding-left: 16px;
|
||||
padding: 0;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 8px 23px rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
.acf-admin-toolbar .acf-more ul .acf-wp-engine {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 48px;
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.08);
|
||||
background: #ECFBFC;
|
||||
}
|
||||
.acf-admin-toolbar .acf-more ul .acf-wp-engine a {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
border-top: none;
|
||||
}
|
||||
.acf-admin-toolbar .acf-more ul li {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding: 0 16px;
|
||||
}
|
||||
.acf-admin-toolbar .acf-more ul li .acf-header-tab-acf-post-type,
|
||||
.acf-admin-toolbar .acf-more ul li .acf-header-tab-acf-taxonomy {
|
||||
display: none;
|
||||
}
|
||||
.acf-admin-toolbar .acf-more ul li.acf-more-section-header {
|
||||
background: #F9FAFB;
|
||||
padding: 1px 0 0 0;
|
||||
margin-top: -1px;
|
||||
border-top: 1px solid #EAECF0;
|
||||
border-bottom: 1px solid #EAECF0;
|
||||
}
|
||||
.acf-admin-toolbar .acf-more ul li.acf-more-section-header span {
|
||||
color: #475467;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.acf-admin-toolbar .acf-more ul li.acf-more-section-header span:hover {
|
||||
background: #F9FAFB;
|
||||
}
|
||||
.acf-admin-toolbar .acf-more ul li a {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: #1D2939;
|
||||
border-radius: 0;
|
||||
border-bottom-width: 1px;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-color: #F2F4F7;
|
||||
border-top-width: 1px;
|
||||
border-top-style: solid;
|
||||
border-top-color: #F2F4F7;
|
||||
}
|
||||
.acf-admin-toolbar .acf-more ul li a:hover, .acf-admin-toolbar .acf-more ul li a.acf-tab.is-active {
|
||||
background-color: unset;
|
||||
@ -3973,7 +4167,40 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
mask-size: 16px;
|
||||
background-color: #98A2B3 !important;
|
||||
}
|
||||
.acf-admin-toolbar .acf-more ul li:last-child a {
|
||||
.acf-admin-toolbar .acf-more ul li a .acf-requires-pro {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: white;
|
||||
background: linear-gradient(90.52deg, #3E8BFF 0.44%, #A45CFF 113.3%);
|
||||
background-size: 140% 20%;
|
||||
background-position: 100% 0;
|
||||
border-radius: 100px;
|
||||
font-size: 11px;
|
||||
position: absolute;
|
||||
right: 16px;
|
||||
padding-right: 6px;
|
||||
padding-left: 6px;
|
||||
}
|
||||
.acf-admin-toolbar .acf-more ul li a img.acf-wp-engine-pro {
|
||||
display: block;
|
||||
height: 16px;
|
||||
width: auto;
|
||||
}
|
||||
.acf-admin-toolbar .acf-more ul li a .acf-wp-engine-upsell-pill {
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 22px;
|
||||
border-radius: 100px;
|
||||
font-size: 11px;
|
||||
padding-right: 8px;
|
||||
padding-left: 8px;
|
||||
background: #0ECAD4;
|
||||
color: #FFFFFF;
|
||||
text-shadow: 0px 1px 0 rgba(0, 0, 0, 0.12);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.acf-admin-toolbar .acf-more ul li:first-child a {
|
||||
border-bottom: none;
|
||||
}
|
||||
.acf-admin-toolbar .acf-more ul:hover, .acf-admin-toolbar .acf-more ul:focus {
|
||||
@ -3996,10 +4223,6 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
}
|
||||
}
|
||||
|
||||
.acf-internal-post-type.post-php .acf-admin-toolbar .acf-admin-toolbar-inner {
|
||||
max-width: 1440px;
|
||||
}
|
||||
|
||||
.rtl #wpcontent .acf-admin-toolbar {
|
||||
margin-left: 0;
|
||||
margin-right: -20px;
|
||||
@ -4128,6 +4351,9 @@ html[dir=rtl] .acf-table > tbody > tr > td.order + td {
|
||||
padding-bottom: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
.acf-headerbar .acf-page-title .acf-duplicated-from {
|
||||
color: #98A2B3;
|
||||
}
|
||||
@media screen and (max-width: 880px) {
|
||||
.acf-headerbar {
|
||||
position: static;
|
||||
@ -4629,6 +4855,11 @@ h3.acf-sub-field-list-title:before,
|
||||
mask-image: url("../../images/icons/icon-fields.svg");
|
||||
}
|
||||
|
||||
.acf-create-options-page-popup h3:before {
|
||||
-webkit-mask-image: url("../../images/icons/icon-sliders.svg");
|
||||
mask-image: url("../../images/icons/icon-sliders.svg");
|
||||
}
|
||||
|
||||
#acf-field-group-options .postbox-header h2:before {
|
||||
-webkit-mask-image: url("../../images/icons/icon-settings.svg");
|
||||
mask-image: url("../../images/icons/icon-settings.svg");
|
||||
@ -4640,7 +4871,8 @@ h3.acf-sub-field-list-title:before,
|
||||
}
|
||||
|
||||
.acf-admin-single-post-type #acf-advanced-settings .postbox-header h2:before,
|
||||
.acf-admin-single-taxonomy #acf-advanced-settings .postbox-header h2:before {
|
||||
.acf-admin-single-taxonomy #acf-advanced-settings .postbox-header h2:before,
|
||||
.acf-admin-single-options-page #acf-advanced-settings .postbox-header h2:before {
|
||||
-webkit-mask-image: url("../../images/icons/icon-post-type.svg");
|
||||
mask-image: url("../../images/icons/icon-post-type.svg");
|
||||
}
|
||||
@ -4663,7 +4895,8 @@ h3.acf-sub-field-list-title:before,
|
||||
.post-type-acf-field-group #acf-field-group-options .postbox-header .handle-actions,
|
||||
.post-type-acf-field-group .postbox .postbox-header .handle-actions,
|
||||
.acf-admin-single-post-type #acf-advanced-settings .postbox-header .handle-actions,
|
||||
.acf-admin-single-taxonomy #acf-advanced-settings .postbox-header .handle-actions {
|
||||
.acf-admin-single-taxonomy #acf-advanced-settings .postbox-header .handle-actions,
|
||||
.acf-admin-single-options-page #acf-advanced-settings .postbox-header .handle-actions {
|
||||
display: flex;
|
||||
}
|
||||
.post-type-acf-field-group .postbox-header .handle-actions .toggle-indicator:before,
|
||||
@ -4671,7 +4904,8 @@ h3.acf-sub-field-list-title:before,
|
||||
.post-type-acf-field-group #acf-field-group-options .postbox-header .handle-actions .toggle-indicator:before,
|
||||
.post-type-acf-field-group .postbox .postbox-header .handle-actions .toggle-indicator:before,
|
||||
.acf-admin-single-post-type #acf-advanced-settings .postbox-header .handle-actions .toggle-indicator:before,
|
||||
.acf-admin-single-taxonomy #acf-advanced-settings .postbox-header .handle-actions .toggle-indicator:before {
|
||||
.acf-admin-single-taxonomy #acf-advanced-settings .postbox-header .handle-actions .toggle-indicator:before,
|
||||
.acf-admin-single-options-page #acf-advanced-settings .postbox-header .handle-actions .toggle-indicator:before {
|
||||
content: "";
|
||||
display: inline-flex;
|
||||
width: 20px;
|
||||
@ -4693,7 +4927,8 @@ h3.acf-sub-field-list-title:before,
|
||||
.post-type-acf-field-group #acf-field-group-options.closed .postbox-header .handle-actions .toggle-indicator:before,
|
||||
.post-type-acf-field-group .postbox.closed .postbox-header .handle-actions .toggle-indicator:before,
|
||||
.acf-admin-single-post-type #acf-advanced-settings.closed .postbox-header .handle-actions .toggle-indicator:before,
|
||||
.acf-admin-single-taxonomy #acf-advanced-settings.closed .postbox-header .handle-actions .toggle-indicator:before {
|
||||
.acf-admin-single-taxonomy #acf-advanced-settings.closed .postbox-header .handle-actions .toggle-indicator:before,
|
||||
.acf-admin-single-options-page #acf-advanced-settings.closed .postbox-header .handle-actions .toggle-indicator:before {
|
||||
-webkit-mask-image: url("../../images/icons/icon-chevron-down.svg");
|
||||
mask-image: url("../../images/icons/icon-chevron-down.svg");
|
||||
}
|
||||
@ -5730,58 +5965,71 @@ h3.acf-sub-field-list-title:before,
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
.acf-admin-single-post-type label[for=acf-basic-settings-hide],
|
||||
.acf-admin-single-taxonomy label[for=acf-basic-settings-hide] {
|
||||
.acf-admin-single-taxonomy label[for=acf-basic-settings-hide],
|
||||
.acf-admin-single-options-page label[for=acf-basic-settings-hide] {
|
||||
display: none;
|
||||
}
|
||||
.acf-admin-single-post-type fieldset.columns-prefs,
|
||||
.acf-admin-single-taxonomy fieldset.columns-prefs {
|
||||
.acf-admin-single-taxonomy fieldset.columns-prefs,
|
||||
.acf-admin-single-options-page fieldset.columns-prefs {
|
||||
display: none;
|
||||
}
|
||||
.acf-admin-single-post-type #acf-basic-settings .postbox-header,
|
||||
.acf-admin-single-taxonomy #acf-basic-settings .postbox-header {
|
||||
.acf-admin-single-taxonomy #acf-basic-settings .postbox-header,
|
||||
.acf-admin-single-options-page #acf-basic-settings .postbox-header {
|
||||
display: none;
|
||||
}
|
||||
.acf-admin-single-post-type .postbox-container,
|
||||
.acf-admin-single-post-type .notice,
|
||||
.acf-admin-single-taxonomy .postbox-container,
|
||||
.acf-admin-single-taxonomy .notice {
|
||||
.acf-admin-single-taxonomy .notice,
|
||||
.acf-admin-single-options-page .postbox-container,
|
||||
.acf-admin-single-options-page .notice {
|
||||
max-width: 1440px;
|
||||
clear: left;
|
||||
}
|
||||
.acf-admin-single-post-type #post-body-content,
|
||||
.acf-admin-single-taxonomy #post-body-content {
|
||||
.acf-admin-single-taxonomy #post-body-content,
|
||||
.acf-admin-single-options-page #post-body-content {
|
||||
margin: 0;
|
||||
}
|
||||
.acf-admin-single-post-type .postbox .inside,
|
||||
.acf-admin-single-post-type .acf-box .inside,
|
||||
.acf-admin-single-taxonomy .postbox .inside,
|
||||
.acf-admin-single-taxonomy .acf-box .inside {
|
||||
.acf-admin-single-taxonomy .acf-box .inside,
|
||||
.acf-admin-single-options-page .postbox .inside,
|
||||
.acf-admin-single-options-page .acf-box .inside {
|
||||
padding-top: 48px;
|
||||
padding-right: 48px;
|
||||
padding-bottom: 48px;
|
||||
padding-left: 48px;
|
||||
}
|
||||
.acf-admin-single-post-type #acf-advanced-settings.postbox .inside,
|
||||
.acf-admin-single-taxonomy #acf-advanced-settings.postbox .inside {
|
||||
.acf-admin-single-taxonomy #acf-advanced-settings.postbox .inside,
|
||||
.acf-admin-single-options-page #acf-advanced-settings.postbox .inside {
|
||||
padding-bottom: 24px;
|
||||
}
|
||||
.acf-admin-single-post-type .postbox-container .meta-box-sortables #acf-basic-settings .inside,
|
||||
.acf-admin-single-taxonomy .postbox-container .meta-box-sortables #acf-basic-settings .inside {
|
||||
.acf-admin-single-taxonomy .postbox-container .meta-box-sortables #acf-basic-settings .inside,
|
||||
.acf-admin-single-options-page .postbox-container .meta-box-sortables #acf-basic-settings .inside {
|
||||
border: none;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-input-wrap,
|
||||
.acf-admin-single-taxonomy .acf-input-wrap {
|
||||
.acf-admin-single-taxonomy .acf-input-wrap,
|
||||
.acf-admin-single-options-page .acf-input-wrap {
|
||||
overflow: visible;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field,
|
||||
.acf-admin-single-taxonomy .acf-field {
|
||||
.acf-admin-single-taxonomy .acf-field,
|
||||
.acf-admin-single-options-page .acf-field {
|
||||
margin-top: 0;
|
||||
margin-right: 0;
|
||||
margin-bottom: 24px;
|
||||
margin-left: 0;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field .acf-label,
|
||||
.acf-admin-single-taxonomy .acf-field .acf-label {
|
||||
.acf-admin-single-taxonomy .acf-field .acf-label,
|
||||
.acf-admin-single-options-page .acf-field .acf-label {
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-text,
|
||||
@ -5789,28 +6037,36 @@ h3.acf-sub-field-list-title:before,
|
||||
.acf-admin-single-post-type .acf-field-select,
|
||||
.acf-admin-single-taxonomy .acf-field-text,
|
||||
.acf-admin-single-taxonomy .acf-field-textarea,
|
||||
.acf-admin-single-taxonomy .acf-field-select {
|
||||
.acf-admin-single-taxonomy .acf-field-select,
|
||||
.acf-admin-single-options-page .acf-field-text,
|
||||
.acf-admin-single-options-page .acf-field-textarea,
|
||||
.acf-admin-single-options-page .acf-field-select {
|
||||
max-width: 600px;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-true-false,
|
||||
.acf-admin-single-taxonomy .acf-field-true-false {
|
||||
.acf-admin-single-taxonomy .acf-field-true-false,
|
||||
.acf-admin-single-options-page .acf-field-true-false {
|
||||
max-width: 700px;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-supports,
|
||||
.acf-admin-single-taxonomy .acf-field-supports {
|
||||
.acf-admin-single-taxonomy .acf-field-supports,
|
||||
.acf-admin-single-options-page .acf-field-supports {
|
||||
max-width: 600px;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-supports .acf-label,
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf-label {
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf-label,
|
||||
.acf-admin-single-options-page .acf-field-supports .acf-label {
|
||||
display: block;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-supports .acf-label .description,
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf-label .description {
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf-label .description,
|
||||
.acf-admin-single-options-page .acf-field-supports .acf-label .description {
|
||||
margin-top: 4px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-supports .acf_post_type_supports,
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports {
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports,
|
||||
.acf-admin-single-options-page .acf-field-supports .acf_post_type_supports {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
@ -5818,15 +6074,18 @@ h3.acf-sub-field-list-title:before,
|
||||
align-items: flex-start;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-supports .acf_post_type_supports:focus-within,
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports:focus-within {
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports:focus-within,
|
||||
.acf-admin-single-options-page .acf-field-supports .acf_post_type_supports:focus-within {
|
||||
border-color: transparent;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-supports .acf_post_type_supports li,
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports li {
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports li,
|
||||
.acf-admin-single-options-page .acf-field-supports .acf_post_type_supports li {
|
||||
flex: 0 0 25%;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-supports .acf_post_type_supports li a.button,
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports li a.button {
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports li a.button,
|
||||
.acf-admin-single-options-page .acf-field-supports .acf_post_type_supports li a.button {
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
@ -5837,7 +6096,8 @@ h3.acf-sub-field-list-title:before,
|
||||
line-height: 22px;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-supports .acf_post_type_supports li a.button:before,
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports li a.button:before {
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports li a.button:before,
|
||||
.acf-admin-single-options-page .acf-field-supports .acf_post_type_supports li a.button:before {
|
||||
content: "";
|
||||
margin-right: 6px;
|
||||
display: inline-flex;
|
||||
@ -5859,11 +6119,13 @@ h3.acf-sub-field-list-title:before,
|
||||
mask-image: url("../../images/icons/icon-add.svg");
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-supports .acf_post_type_supports li a.button:hover,
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports li a.button:hover {
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports li a.button:hover,
|
||||
.acf-admin-single-options-page .acf-field-supports .acf_post_type_supports li a.button:hover {
|
||||
color: #044E71;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-supports .acf_post_type_supports li input[type=text],
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports li input[type=text] {
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports li input[type=text],
|
||||
.acf-admin-single-options-page .acf-field-supports .acf_post_type_supports li input[type=text] {
|
||||
width: calc(100% - 36px);
|
||||
padding: 0;
|
||||
box-shadow: none;
|
||||
@ -5875,12 +6137,14 @@ h3.acf-sub-field-list-title:before,
|
||||
min-height: auto;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-supports .acf_post_type_supports li input[type=text]:focus,
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports li input[type=text]:focus {
|
||||
.acf-admin-single-taxonomy .acf-field-supports .acf_post_type_supports li input[type=text]:focus,
|
||||
.acf-admin-single-options-page .acf-field-supports .acf_post_type_supports li input[type=text]:focus {
|
||||
outline: none;
|
||||
border-bottom-color: #399CCB;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-seperator,
|
||||
.acf-admin-single-taxonomy .acf-field-seperator {
|
||||
.acf-admin-single-taxonomy .acf-field-seperator,
|
||||
.acf-admin-single-options-page .acf-field-seperator {
|
||||
margin-top: 40px;
|
||||
margin-bottom: 40px;
|
||||
border-top: 1px solid #EAECF0;
|
||||
@ -5889,20 +6153,24 @@ h3.acf-sub-field-list-title:before,
|
||||
border-left: none;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-field-advanced-configuration,
|
||||
.acf-admin-single-taxonomy .acf-field-advanced-configuration {
|
||||
.acf-admin-single-taxonomy .acf-field-advanced-configuration,
|
||||
.acf-admin-single-options-page .acf-field-advanced-configuration {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.acf-admin-single-post-type .postbox-container .acf-tab-wrap,
|
||||
.acf-admin-single-post-type .acf-regenerate-labels-bar,
|
||||
.acf-admin-single-taxonomy .postbox-container .acf-tab-wrap,
|
||||
.acf-admin-single-taxonomy .acf-regenerate-labels-bar {
|
||||
.acf-admin-single-taxonomy .acf-regenerate-labels-bar,
|
||||
.acf-admin-single-options-page .postbox-container .acf-tab-wrap,
|
||||
.acf-admin-single-options-page .acf-regenerate-labels-bar {
|
||||
position: relative;
|
||||
top: -48px;
|
||||
left: -48px;
|
||||
width: calc(100% + 96px);
|
||||
}
|
||||
.acf-admin-single-post-type .acf-regenerate-labels-bar,
|
||||
.acf-admin-single-taxonomy .acf-regenerate-labels-bar {
|
||||
.acf-admin-single-taxonomy .acf-regenerate-labels-bar,
|
||||
.acf-admin-single-options-page .acf-regenerate-labels-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: right;
|
||||
@ -5916,7 +6184,8 @@ h3.acf-sub-field-list-title:before,
|
||||
border-bottom-color: #F2F4F7;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-labels-tip,
|
||||
.acf-admin-single-taxonomy .acf-labels-tip {
|
||||
.acf-admin-single-taxonomy .acf-labels-tip,
|
||||
.acf-admin-single-options-page .acf-labels-tip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 24px;
|
||||
@ -5927,7 +6196,8 @@ h3.acf-sub-field-list-title:before,
|
||||
border-left-color: #EAECF0;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-labels-tip .acf-icon,
|
||||
.acf-admin-single-taxonomy .acf-labels-tip .acf-icon {
|
||||
.acf-admin-single-taxonomy .acf-labels-tip .acf-icon,
|
||||
.acf-admin-single-options-page .acf-labels-tip .acf-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
width: 16px;
|
||||
@ -5936,8 +6206,8 @@ h3.acf-sub-field-list-title:before,
|
||||
mask-size: 16px;
|
||||
background-color: #98A2B3;
|
||||
}
|
||||
.acf-admin-single-post-type .acf-select2-default-pill,
|
||||
.acf-admin-single-taxonomy .acf-select2-default-pill {
|
||||
|
||||
.acf-select2-default-pill {
|
||||
border-radius: 100px;
|
||||
min-height: 20px;
|
||||
padding-top: 2px;
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,11 +1,11 @@
|
||||
/******/ (function() { // webpackBootstrap
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./src/advanced-custom-fields-pro/assets/src/js/_browse-fields-modal.js":
|
||||
/*!******************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_browse-fields-modal.js ***!
|
||||
\******************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
@ -161,7 +161,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||
initializeFieldType: function () {
|
||||
var _fieldObject$data;
|
||||
const fieldObject = this.get('openedBy');
|
||||
const fieldType = fieldObject === null || fieldObject === void 0 ? void 0 : (_fieldObject$data = fieldObject.data) === null || _fieldObject$data === void 0 ? void 0 : _fieldObject$data.type;
|
||||
const fieldType = fieldObject === null || fieldObject === void 0 || (_fieldObject$data = fieldObject.data) === null || _fieldObject$data === void 0 ? void 0 : _fieldObject$data.type;
|
||||
|
||||
// Select default field type
|
||||
if (fieldType) {
|
||||
@ -284,7 +284,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||
/*!************************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_field-group-compatibility.js ***!
|
||||
\************************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var _acf = acf.getCompatibility(acf);
|
||||
@ -509,7 +509,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_field-group-conditions.js ***!
|
||||
\*********************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
@ -882,7 +882,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||
/*!****************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_field-group-field.js ***!
|
||||
\****************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
acf.FieldObject = acf.Model.extend({
|
||||
@ -1127,7 +1127,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||
suppressFilters: true,
|
||||
dropdownCssClass: 'field-type-select-results',
|
||||
templateResult: function (selection) {
|
||||
if (selection.loading || selection.element && selection.element.nodeName == 'OPTGROUP') {
|
||||
if (selection.loading || selection.element && selection.element.nodeName === 'OPTGROUP') {
|
||||
var $selection = $('<span class="acf-selection"></span>');
|
||||
$selection.html(acf.escHtml(selection.text));
|
||||
} else {
|
||||
@ -1269,6 +1269,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||
|
||||
// action (show)
|
||||
acf.doAction('show', $settings);
|
||||
this.hideEmptyTabs();
|
||||
|
||||
// open
|
||||
$settings.slideDown();
|
||||
@ -1766,6 +1767,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||
$tab.prepend(tabContent);
|
||||
acf.doAction('append', $tab);
|
||||
});
|
||||
this.hideEmptyTabs();
|
||||
},
|
||||
updateParent: function () {
|
||||
// vars
|
||||
@ -1779,6 +1781,20 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||
|
||||
// update
|
||||
this.prop('parent', ID);
|
||||
},
|
||||
hideEmptyTabs: function () {
|
||||
const $settings = this.$settings();
|
||||
const $tabs = $settings.find('.acf-field-settings:first > .acf-field-settings-main');
|
||||
$tabs.each(function () {
|
||||
const $tabContent = $(this);
|
||||
const tabName = $tabContent.find('.acf-field-type-settings:first').data('parentTab');
|
||||
const $tabLink = $settings.find('.acf-settings-type-' + tabName).first();
|
||||
if ($.trim($tabContent.text()) === '') {
|
||||
$tabLink.hide();
|
||||
} else if ($tabLink.is(':hidden')) {
|
||||
$tabLink.show();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
@ -1789,7 +1805,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_field-group-fields.js ***!
|
||||
\*****************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
@ -2252,7 +2268,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_field-group-locations.js ***!
|
||||
\********************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
@ -2385,7 +2401,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||
/*!*******************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_field-group-settings.js ***!
|
||||
\*******************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
@ -2672,7 +2688,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_field-group.js ***!
|
||||
\**********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
@ -2702,6 +2718,52 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||
},
|
||||
initialize: function () {
|
||||
acf.addAction('prepare', this.maybeInitNewFieldGroup);
|
||||
acf.add_filter('select2_args', this.setBidirectionalSelect2Args);
|
||||
acf.add_filter('select2_ajax_data', this.setBidirectionalSelect2AjaxDataArgs);
|
||||
},
|
||||
setBidirectionalSelect2Args: function (args, $select, settings, field, instance) {
|
||||
if (field.data('key') !== 'bidirectional_target') return args;
|
||||
args.dropdownCssClass = 'field-type-select-results';
|
||||
args.templateResult = function (selection) {
|
||||
if ('undefined' !== typeof selection.element) {
|
||||
return selection;
|
||||
}
|
||||
if (selection.children) {
|
||||
return selection.text;
|
||||
}
|
||||
if (selection.loading || selection.element && selection.element.nodeName === 'OPTGROUP') {
|
||||
var $selection = $('<span class="acf-selection"></span>');
|
||||
$selection.html(acf.escHtml(selection.text));
|
||||
return $selection;
|
||||
}
|
||||
if ('undefined' === typeof selection.human_field_type || 'undefined' === typeof selection.field_type || 'undefined' === typeof selection.this_field) {
|
||||
return selection.text;
|
||||
}
|
||||
var $selection = $('<i title="' + acf.escHtml(selection.human_field_type) + '" class="field-type-icon field-type-icon-' + acf.escHtml(selection.field_type.replaceAll('_', '-')) + '"></i><span class="acf-selection has-icon">' + acf.escHtml(selection.text) + '</span>');
|
||||
if (selection.this_field) {
|
||||
$selection.last().append('<span class="acf-select2-default-pill">' + acf.__('This Field') + '</span>');
|
||||
}
|
||||
$selection.data('element', selection.element);
|
||||
return $selection;
|
||||
};
|
||||
return args;
|
||||
},
|
||||
setBidirectionalSelect2AjaxDataArgs: function (data, args, $input, field, instance) {
|
||||
if (data.field_key !== 'bidirectional_target') return data;
|
||||
const $fieldObject = acf.findFieldObjects({
|
||||
child: field
|
||||
});
|
||||
const fieldObject = acf.getFieldObject($fieldObject);
|
||||
data.field_key = '_acf_bidirectional_target';
|
||||
data.parent_key = fieldObject.get('key');
|
||||
data.field_type = fieldObject.get('type');
|
||||
|
||||
// This might not be needed, but I wanted to figure out how to get a field setting in the JS API when the key isn't unique.
|
||||
data.post_type = acf.getField(acf.findFields({
|
||||
parent: $fieldObject,
|
||||
key: 'post_type'
|
||||
})).val();
|
||||
return data;
|
||||
},
|
||||
maybeInitNewFieldGroup: function () {
|
||||
let $field_list_wrapper = $('#acf-field-group-fields > .inside > .acf-field-list-wrap.acf-auto-add-field');
|
||||
@ -2929,12 +2991,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
||||
/*!*******************************************************************!*\
|
||||
!*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
|
||||
\*******************************************************************/
|
||||
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
||||
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "default": function() { return /* binding */ _defineProperty; }
|
||||
/* harmony export */ "default": () => (/* binding */ _defineProperty)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
|
||||
|
||||
@ -2959,12 +3021,12 @@ function _defineProperty(obj, key, value) {
|
||||
/*!****************************************************************!*\
|
||||
!*** ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
|
||||
\****************************************************************/
|
||||
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
||||
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "default": function() { return /* binding */ _toPrimitive; }
|
||||
/* harmony export */ "default": () => (/* binding */ _toPrimitive)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
||||
|
||||
@ -2985,12 +3047,12 @@ function _toPrimitive(input, hint) {
|
||||
/*!******************************************************************!*\
|
||||
!*** ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
|
||||
\******************************************************************/
|
||||
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
||||
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "default": function() { return /* binding */ _toPropertyKey; }
|
||||
/* harmony export */ "default": () => (/* binding */ _toPropertyKey)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
||||
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
|
||||
@ -3007,12 +3069,12 @@ function _toPropertyKey(arg) {
|
||||
/*!***********************************************************!*\
|
||||
!*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***!
|
||||
\***********************************************************/
|
||||
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
||||
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "default": function() { return /* binding */ _typeof; }
|
||||
/* harmony export */ "default": () => (/* binding */ _typeof)
|
||||
/* harmony export */ });
|
||||
function _typeof(obj) {
|
||||
"@babel/helpers - typeof";
|
||||
@ -3054,49 +3116,49 @@ function _typeof(obj) {
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ !function() {
|
||||
/******/ (() => {
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ __webpack_require__.n = (module) => {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function() { return module['default']; } :
|
||||
/******/ function() { return module; };
|
||||
/******/ () => (module['default']) :
|
||||
/******/ () => (module);
|
||||
/******/ __webpack_require__.d(getter, { a: getter });
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ !function() {
|
||||
/******/ (() => {
|
||||
/******/ // define getter functions for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, definition) {
|
||||
/******/ __webpack_require__.d = (exports, definition) => {
|
||||
/******/ for(var key in definition) {
|
||||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ !function() {
|
||||
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
||||
/******/ }();
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ !function() {
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ __webpack_require__.r = (exports) => {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
||||
!function() {
|
||||
(() => {
|
||||
"use strict";
|
||||
/*!*************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/acf-field-group.js ***!
|
||||
@ -3125,7 +3187,8 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
}();
|
||||
})();
|
||||
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=acf-field-group.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,11 +1,11 @@
|
||||
/******/ (function() { // webpackBootstrap
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./src/advanced-custom-fields-pro/assets/src/js/_acf-compatibility.js":
|
||||
/*!****************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-compatibility.js ***!
|
||||
\****************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
@ -706,7 +706,7 @@
|
||||
/*!******************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-condition-types.js ***!
|
||||
\******************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var __ = acf.__;
|
||||
@ -1134,7 +1134,7 @@
|
||||
/*!************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-condition.js ***!
|
||||
\************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
// vars
|
||||
@ -1385,7 +1385,7 @@
|
||||
/*!*************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-conditions.js ***!
|
||||
\*************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
// vars
|
||||
@ -1675,7 +1675,7 @@
|
||||
/*!******************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-accordion.js ***!
|
||||
\******************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var i = 0;
|
||||
@ -1906,7 +1906,7 @@
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-button-group.js ***!
|
||||
\*********************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -1950,7 +1950,7 @@
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-checkbox.js ***!
|
||||
\*****************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -2054,7 +2054,7 @@
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-color-picker.js ***!
|
||||
\*********************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -2124,7 +2124,7 @@
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-date-picker.js ***!
|
||||
\********************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -2277,7 +2277,7 @@
|
||||
/*!*************************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-date-time-picker.js ***!
|
||||
\*************************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.models.DatePickerField.extend({
|
||||
@ -2374,7 +2374,7 @@
|
||||
/*!*************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-file.js ***!
|
||||
\*************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.models.ImageField.extend({
|
||||
@ -2489,7 +2489,7 @@
|
||||
/*!*******************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-google-map.js ***!
|
||||
\*******************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -3041,7 +3041,7 @@
|
||||
/*!**************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-image.js ***!
|
||||
\**************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -3217,7 +3217,7 @@
|
||||
/*!*************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-link.js ***!
|
||||
\*************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -3394,7 +3394,7 @@
|
||||
/*!***************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-oembed.js ***!
|
||||
\***************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -3538,7 +3538,7 @@
|
||||
/*!******************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-page-link.js ***!
|
||||
\******************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.models.SelectField.extend({
|
||||
@ -3553,7 +3553,7 @@
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-post-object.js ***!
|
||||
\********************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.models.SelectField.extend({
|
||||
@ -3568,7 +3568,7 @@
|
||||
/*!**************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-radio.js ***!
|
||||
\**************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -3633,7 +3633,7 @@
|
||||
/*!**************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-range.js ***!
|
||||
\**************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -3674,7 +3674,7 @@
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-relationship.js ***!
|
||||
\*********************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -4020,7 +4020,7 @@
|
||||
/*!***************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-select.js ***!
|
||||
\***************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -4081,7 +4081,7 @@
|
||||
/*!************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-tab.js ***!
|
||||
\************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
// vars
|
||||
@ -4553,7 +4553,7 @@
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-taxonomy.js ***!
|
||||
\*****************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -4837,7 +4837,7 @@
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-time-picker.js ***!
|
||||
\********************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.models.DatePickerField.extend({
|
||||
@ -4912,7 +4912,7 @@
|
||||
/*!*******************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-true-false.js ***!
|
||||
\*******************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -4996,7 +4996,7 @@
|
||||
/*!************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-url.js ***!
|
||||
\************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -5056,7 +5056,7 @@
|
||||
/*!*************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-user.js ***!
|
||||
\*************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.models.SelectField.extend({
|
||||
@ -5081,7 +5081,7 @@
|
||||
/*!****************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field-wysiwyg.js ***!
|
||||
\****************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Field = acf.Field.extend({
|
||||
@ -5176,7 +5176,7 @@
|
||||
/*!********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-field.js ***!
|
||||
\********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
// vars
|
||||
@ -5669,7 +5669,7 @@
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-fields.js ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
@ -6069,7 +6069,7 @@
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-helpers.js ***!
|
||||
\**********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
@ -6443,7 +6443,7 @@
|
||||
/*!********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-media.js ***!
|
||||
\********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
@ -7199,7 +7199,7 @@
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-postbox.js ***!
|
||||
\**********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
@ -7416,7 +7416,7 @@
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-screen.js ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
acf.screen = new acf.Model({
|
||||
@ -7964,7 +7964,7 @@
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-select2.js ***!
|
||||
\**********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
@ -8322,7 +8322,6 @@
|
||||
}
|
||||
|
||||
// filter for 3rd party customization
|
||||
//options = acf.applyFilters( 'select2_args', options, $select, this );
|
||||
if (!options.suppressFilters) {
|
||||
var field = this.get('field');
|
||||
options = acf.applyFilters('select2_args', options, $select, this.data, field || false, this);
|
||||
@ -8753,7 +8752,7 @@
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-tinymce.js ***!
|
||||
\**********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
acf.tinymce = {
|
||||
@ -9132,7 +9131,7 @@
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-unload.js ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
acf.unload = new acf.Model({
|
||||
@ -9187,7 +9186,7 @@
|
||||
/*!*************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-validation.js ***!
|
||||
\*************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
@ -9424,6 +9423,11 @@
|
||||
this.set('notice', notice);
|
||||
}
|
||||
|
||||
// If in a modal, don't try to scroll.
|
||||
if (this.$el.parents('.acf-popup-box').length) {
|
||||
return;
|
||||
}
|
||||
|
||||
// if no $scrollTo, set to message
|
||||
if (!$scrollTo) {
|
||||
$scrollTo = this.get('notice').$el;
|
||||
@ -9833,6 +9837,12 @@
|
||||
return $wrap;
|
||||
}
|
||||
|
||||
// ACF 6.2 options page modal
|
||||
var $wrap = $('#acf-create-options-page-form .acf-actions');
|
||||
if ($wrap.length) {
|
||||
return $wrap;
|
||||
}
|
||||
|
||||
// ACF 6.0+ headerbar submit
|
||||
var $wrap = $('.acf-headerbar-actions');
|
||||
if ($wrap.length) {
|
||||
@ -10324,49 +10334,49 @@
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ !function() {
|
||||
/******/ (() => {
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ __webpack_require__.n = (module) => {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function() { return module['default']; } :
|
||||
/******/ function() { return module; };
|
||||
/******/ () => (module['default']) :
|
||||
/******/ () => (module);
|
||||
/******/ __webpack_require__.d(getter, { a: getter });
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ !function() {
|
||||
/******/ (() => {
|
||||
/******/ // define getter functions for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, definition) {
|
||||
/******/ __webpack_require__.d = (exports, definition) => {
|
||||
/******/ for(var key in definition) {
|
||||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ !function() {
|
||||
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
||||
/******/ }();
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ !function() {
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ __webpack_require__.r = (exports) => {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
||||
!function() {
|
||||
(() => {
|
||||
"use strict";
|
||||
/*!*******************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/acf-input.js ***!
|
||||
@ -10486,7 +10496,8 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
}();
|
||||
})();
|
||||
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=acf-input.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,11 +1,11 @@
|
||||
/******/ (function() { // webpackBootstrap
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./src/advanced-custom-fields-pro/assets/src/js/_acf-internal-post-type.js":
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-internal-post-type.js ***!
|
||||
\*********************************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
@ -32,15 +32,20 @@
|
||||
const name = $el.val();
|
||||
const $keyInput = $('.acf_slugified_key');
|
||||
|
||||
// generate field key.
|
||||
// Generate field key.
|
||||
if ($keyInput.val().trim() == '') {
|
||||
let slug = acf.strSanitize(name.trim()).replaceAll('_', '-');
|
||||
slug = acf.applyFilters('generate_internal_post_type_name', slug, this);
|
||||
let slugLength = 0;
|
||||
if ('taxonomy' === acf.get('screen')) {
|
||||
$keyInput.val(slug.substring(0, 32));
|
||||
return;
|
||||
slugLength = 32;
|
||||
} else if ('post_type' === acf.get('screen')) {
|
||||
slugLength = 20;
|
||||
}
|
||||
$keyInput.val(slug.substring(0, 20));
|
||||
if (slugLength) {
|
||||
slug = slug.substring(0, slugLength);
|
||||
}
|
||||
$keyInput.val(slug);
|
||||
}
|
||||
},
|
||||
initialize: function () {
|
||||
@ -339,49 +344,49 @@
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ !function() {
|
||||
/******/ (() => {
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ __webpack_require__.n = (module) => {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function() { return module['default']; } :
|
||||
/******/ function() { return module; };
|
||||
/******/ () => (module['default']) :
|
||||
/******/ () => (module);
|
||||
/******/ __webpack_require__.d(getter, { a: getter });
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ !function() {
|
||||
/******/ (() => {
|
||||
/******/ // define getter functions for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, definition) {
|
||||
/******/ __webpack_require__.d = (exports, definition) => {
|
||||
/******/ for(var key in definition) {
|
||||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ !function() {
|
||||
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
||||
/******/ }();
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ !function() {
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ __webpack_require__.r = (exports) => {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
||||
!function() {
|
||||
(() => {
|
||||
"use strict";
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/acf-internal-post-type.js ***!
|
||||
@ -390,7 +395,8 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _acf_internal_post_type_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_acf-internal-post-type.js */ "./src/advanced-custom-fields-pro/assets/src/js/_acf-internal-post-type.js");
|
||||
/* harmony import */ var _acf_internal_post_type_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_acf_internal_post_type_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
|
||||
}();
|
||||
})();
|
||||
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=acf-internal-post-type.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,11 +1,11 @@
|
||||
/******/ (function() { // webpackBootstrap
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./src/advanced-custom-fields-pro/assets/src/js/_acf-hooks.js":
|
||||
/*!********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-hooks.js ***!
|
||||
\********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function (window, undefined) {
|
||||
'use strict';
|
||||
@ -249,7 +249,7 @@
|
||||
/*!********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-modal.js ***!
|
||||
\********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
acf.models.Modal = acf.Model.extend({
|
||||
@ -360,7 +360,7 @@
|
||||
/*!********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-model.js ***!
|
||||
\********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
// Cached regex to split keys for `addEvent`.
|
||||
@ -1228,7 +1228,7 @@
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-notice.js ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var Notice = acf.Model.extend({
|
||||
@ -1354,6 +1354,7 @@
|
||||
if (dismissed && typeof dismissed == 'object' && dismissed.includes($(this).data('persist-id'))) {
|
||||
$(this).remove();
|
||||
} else {
|
||||
$(this).show();
|
||||
$(this).on('click', '.notice-dismiss', function (e) {
|
||||
dismissed = acf.getPreference('dismissed-notices');
|
||||
if (!dismissed || typeof dismissed != 'object') {
|
||||
@ -1375,7 +1376,7 @@
|
||||
/*!********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-panel.js ***!
|
||||
\********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
var panel = new acf.Model({
|
||||
@ -1409,7 +1410,7 @@
|
||||
/*!********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-popup.js ***!
|
||||
\********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
acf.models.Popup = acf.Model.extend({
|
||||
@ -1550,7 +1551,7 @@
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-tooltip.js ***!
|
||||
\**********************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
acf.newTooltip = function (props) {
|
||||
@ -1853,7 +1854,7 @@
|
||||
/*!**************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf.js ***!
|
||||
\**************************************************************/
|
||||
/***/ (function() {
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
@ -4380,49 +4381,49 @@
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ !function() {
|
||||
/******/ (() => {
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ __webpack_require__.n = (module) => {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function() { return module['default']; } :
|
||||
/******/ function() { return module; };
|
||||
/******/ () => (module['default']) :
|
||||
/******/ () => (module);
|
||||
/******/ __webpack_require__.d(getter, { a: getter });
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ !function() {
|
||||
/******/ (() => {
|
||||
/******/ // define getter functions for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, definition) {
|
||||
/******/ __webpack_require__.d = (exports, definition) => {
|
||||
/******/ for(var key in definition) {
|
||||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ !function() {
|
||||
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
||||
/******/ }();
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ !function() {
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ __webpack_require__.r = (exports) => {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
||||
!function() {
|
||||
(() => {
|
||||
"use strict";
|
||||
/*!*************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/acf.js ***!
|
||||
@ -4452,7 +4453,8 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
}();
|
||||
})();
|
||||
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=acf.js.map
|
File diff suppressed because one or more lines are too long
2
includes/acf/assets/build/js/acf.min.js
vendored
2
includes/acf/assets/build/js/acf.min.js
vendored
File diff suppressed because one or more lines are too long
1
includes/acf/assets/images/icons/icon-info-red.svg
Normal file
1
includes/acf/assets/images/icons/icon-info-red.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="none" stroke="#D13737" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 16v-4m0-4h.01M22 12c0 5.52-4.48 10-10 10C6.47 22 2 17.52 2 12 2 6.47 6.47 2 12 2c5.52 0 10 4.47 10 10Z"/></svg>
|
After Width: | Height: | Size: 277 B |
3
includes/acf/assets/images/icons/icon-sliders.svg
Normal file
3
includes/acf/assets/images/icons/icon-sliders.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12.5421 7.5H4.58333C3.43274 7.5 2.5 6.56726 2.5 5.41667C2.5 4.26607 3.43274 3.33333 4.58333 3.33333H12.5421M7.45791 16.6667H15.4167C16.5672 16.6667 17.5 15.7339 17.5 14.5833C17.5 13.4327 16.5672 12.5 15.4167 12.5H7.45791M2.5 14.5833C2.5 16.1942 3.80583 17.5 5.41667 17.5C7.0275 17.5 8.33333 16.1942 8.33333 14.5833C8.33333 12.9725 7.0275 11.6667 5.41667 11.6667C3.80583 11.6667 2.5 12.9725 2.5 14.5833ZM17.5 5.41667C17.5 7.0275 16.1942 8.33333 14.5833 8.33333C12.9725 8.33333 11.6667 7.0275 11.6667 5.41667C11.6667 3.80583 12.9725 2.5 14.5833 2.5C16.1942 2.5 17.5 3.80583 17.5 5.41667Z" stroke="#98A2B3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
After Width: | Height: | Size: 783 B |
14
includes/acf/assets/images/wp-engine-horizontal-black.svg
Normal file
14
includes/acf/assets/images/wp-engine-horizontal-black.svg
Normal file
@ -0,0 +1,14 @@
|
||||
<svg width="104" height="20" viewBox="0 0 104 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.923096 1.52942L2.45251 0H7.35447V6.43138H0.923096V1.52942ZM7.70741 0H14.1388V4.90196L12.5702 6.43138H9.23682L7.70741 4.90196V0ZM16.0211 6.78432L14.4917 8.31373V11.6863L16.0211 13.2157H20.9231V6.78432H16.0211ZM7.70741 20H14.1388V15.098L12.5702 13.5686H9.23682L7.70741 15.098V20ZM20.9231 20V15.098L19.3937 13.5686H14.4917V20H20.9231ZM14.4917 0V4.90196L16.0211 6.43138H20.9231V0H14.4917ZM10.0211 10C10.0211 10.4706 10.4133 10.902 10.9231 10.902C11.4329 10.902 11.8251 10.5098 11.8251 10C11.8251 9.52941 11.4329 9.09804 10.9231 9.09804C10.4525 9.09804 10.0211 9.4902 10.0211 10ZM7.35447 6.78432H0.923096V13.2157H5.78584L7.35447 11.6863V6.78432ZM5.78584 13.5686L7.35447 15.098V18.4706L5.78584 20H0.923096V13.5686H5.78584Z" fill="#0ECAD4"/>
|
||||
<path d="M80.4769 3.11705C80.3614 3.11705 80.2844 3.04002 80.2844 2.92447V2.11567C80.2844 2.00012 80.3614 1.9231 80.4769 1.9231H80.9389C81.0544 1.9231 81.1314 2.00012 81.1314 2.11567V2.92447C81.1314 3.04002 81.0544 3.11705 80.9389 3.11705H80.4769Z" fill="#002838"/>
|
||||
<path d="M80.6309 15.4031C80.5154 15.4031 80.4384 15.3261 80.4384 15.2106V6.23672C80.4384 6.12117 80.5154 6.04414 80.6309 6.04414H80.8234C80.9389 6.04414 81.0159 6.12117 81.0159 6.23672V15.2106C81.0159 15.3261 80.9389 15.4031 80.8234 15.4031H80.6309Z" fill="#002838"/>
|
||||
<path d="M33.8928 15.5957C33.7773 15.5957 33.7388 15.5572 33.7003 15.4417L32.1218 9.85707H32.0833L30.5049 15.4417C30.4664 15.5572 30.4279 15.5957 30.3124 15.5957H28.4644C28.3489 15.5957 28.3104 15.5572 28.2719 15.4417L25.5385 5.73603C25.5385 5.659 25.5385 5.58197 25.654 5.58197H28.0794C28.1949 5.58197 28.2719 5.659 28.2719 5.73603L29.5809 11.5517H29.6194L31.1593 5.73603C31.1978 5.62049 31.2363 5.58197 31.3518 5.58197H32.8533C32.9688 5.58197 33.0073 5.62049 33.0458 5.73603L34.6628 11.5517H34.7013L35.9333 5.73603C35.9333 5.659 36.0103 5.58197 36.1258 5.58197H38.5512C38.6282 5.58197 38.6667 5.659 38.6667 5.73603L35.9718 15.4417C35.9333 15.5572 35.8948 15.5957 35.7793 15.5957H33.8928Z" fill="#002838"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M40.5917 15.5957C40.5147 15.5957 40.4377 15.5187 40.4377 15.4417V5.73603C40.4377 5.659 40.5147 5.58197 40.5917 5.58197H44.5956C47.0211 5.58197 48.2915 6.96849 48.2915 8.89421C48.2915 10.8199 47.0211 12.245 44.5956 12.245H43.1326C43.0556 12.245 43.0556 12.2835 43.0556 12.322V15.4031C43.0556 15.4802 42.9786 15.5572 42.9016 15.5572H40.5917V15.5957ZM45.7121 8.93273C45.7121 8.23947 45.2501 7.81581 44.4416 7.81581H43.1326C43.0556 7.81581 43.0556 7.85432 43.0556 7.89283V10.0111C43.0556 10.0882 43.0941 10.0882 43.1326 10.0882H44.4416C45.2501 10.0882 45.7121 9.62598 45.7121 8.93273Z" fill="#002838"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M51.4485 10.6659C51.4485 11.9754 51.5255 12.6301 51.718 13.1693C52.257 14.7869 53.4119 15.5957 55.1444 15.5957C56.6074 15.5957 57.7238 14.941 58.3783 14.0166C58.4553 13.9396 58.4553 13.8241 58.3398 13.747L58.2243 13.6315C58.1473 13.5545 58.0318 13.5545 57.9549 13.67C57.3774 14.4403 56.4149 15.018 55.1059 15.018C53.7199 15.018 52.6804 14.4018 52.2184 12.9767C52.0645 12.4761 51.9875 11.8983 51.9875 10.8584C51.9875 10.7814 52.026 10.7044 52.103 10.7044H58.3783C58.5323 10.7044 58.6093 10.6274 58.6093 10.5118C58.6093 9.31787 58.5323 8.70164 58.3398 8.16244C57.8394 6.58335 56.6459 5.77454 55.0289 5.77454C53.4504 5.77454 52.2185 6.58335 51.718 8.16244C51.564 8.70164 51.4485 9.3949 51.4485 10.6659ZM58.0703 10.0496C58.0703 10.1267 58.0318 10.1652 57.9549 10.1652H52.18C52.103 10.1652 52.0645 10.1267 52.0645 10.0496C52.0645 9.35638 52.1415 8.8557 52.2955 8.39353C52.7189 7.00701 53.7199 6.35225 55.0674 6.35225C56.4149 6.35225 57.4159 7.04552 57.8393 8.39353C57.9933 8.8557 58.0703 9.3949 58.0703 10.0496Z" fill="#002838"/>
|
||||
<path d="M67.5412 15.4031C67.4257 15.4031 67.3487 15.3261 67.3487 15.2106V9.58748C67.3487 7.35364 66.4247 6.39077 64.6152 6.39077C63.0368 6.39077 61.7278 7.46918 61.7278 9.31787V15.2491C61.7278 15.3646 61.6508 15.4417 61.5353 15.4417H61.3428C61.2273 15.4417 61.1503 15.3646 61.1503 15.2491V6.27523C61.1503 6.15969 61.2273 6.08266 61.3428 6.08266H61.5353C61.6508 6.08266 61.7278 6.15969 61.7278 6.27523V7.58472H61.7663C62.2283 6.50632 63.3062 5.85157 64.6537 5.85157C66.7712 5.85157 67.9647 7.04552 67.9647 9.47193V15.2491C67.9647 15.3646 67.8877 15.4417 67.7722 15.4417H67.5412V15.4031Z" fill="#002838"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M70.8136 17.56C70.6981 17.5985 70.6981 17.714 70.7751 17.8296C71.2371 18.5613 72.3536 19.1776 73.7011 19.2161C75.857 19.2161 77.243 18.0606 77.243 15.4802V6.27523C77.243 6.15969 77.166 6.08266 77.0505 6.08266H76.858C76.7425 6.08266 76.6655 6.15969 76.6655 6.27523V7.62324H76.627C76.165 6.58335 75.3565 5.85157 73.7011 5.85157C72.1226 5.85157 71.0446 6.69888 70.5826 8.0854C70.3901 8.74015 70.2746 9.58748 70.2746 10.7429C70.2746 11.8983 70.3516 12.7457 70.5826 13.4004C71.0446 14.7869 72.1226 15.6342 73.7011 15.6342C75.3565 15.6342 76.165 14.9025 76.627 13.8626H76.6655V15.4417C76.6655 17.7525 75.5105 18.6384 73.7396 18.6384C72.5846 18.6384 71.7761 18.2147 71.2371 17.5214C71.1601 17.4059 71.0831 17.3674 70.9676 17.4444L70.8136 17.56ZM76.6655 10.7044C76.6655 11.8983 76.5885 12.5916 76.396 13.1693C75.9725 14.5558 74.933 15.0565 73.778 14.9795C72.5076 14.9795 71.6221 14.3633 71.1986 13.1308C71.0061 12.5531 70.8906 11.7443 70.8906 10.6659C70.8906 9.58747 71.0061 8.77867 71.1986 8.20095C71.5836 6.96849 72.5076 6.35225 73.778 6.35225C74.933 6.35225 75.934 6.85295 76.396 8.23947C76.5885 8.81719 76.6655 9.54896 76.6655 10.7044Z" fill="#002838"/>
|
||||
<path d="M90.4097 15.2106C90.4097 15.3261 90.4867 15.4031 90.6022 15.4031V15.4417H90.8332C90.9487 15.4417 91.0257 15.3646 91.0257 15.2491V9.47193C91.0257 7.04552 89.8323 5.85157 87.7148 5.85157C86.3673 5.85157 85.2893 6.50632 84.8273 7.58472H84.7888V6.27523C84.7888 6.15969 84.7118 6.08266 84.5963 6.08266H84.4039C84.2884 6.08266 84.2114 6.15969 84.2114 6.27523V15.2491C84.2114 15.3646 84.2884 15.4417 84.4039 15.4417H84.5963C84.7118 15.4417 84.7888 15.3646 84.7888 15.2491V9.31787C84.7888 7.46918 86.0978 6.39077 87.6763 6.39077C89.4858 6.39077 90.4097 7.35364 90.4097 9.58748V15.2106Z" fill="#002838"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M93.6437 13.1693C93.4512 12.6301 93.3742 11.9754 93.3742 10.6659C93.3742 9.3949 93.4897 8.70164 93.6437 8.16244C94.1442 6.58335 95.3761 5.77454 96.9546 5.77454C98.5716 5.77454 99.7651 6.58335 100.266 8.16244C100.458 8.70164 100.535 9.31787 100.535 10.5118C100.535 10.6274 100.458 10.7044 100.304 10.7044H94.0672C93.9902 10.7044 93.9517 10.7814 93.9517 10.8584C93.9517 11.8983 94.0287 12.4761 94.1827 12.9767C94.6447 14.4018 95.6841 15.018 97.0701 15.018C98.3791 15.018 99.3416 14.4403 99.9191 13.67C99.9961 13.5545 100.112 13.5545 100.189 13.6315L100.304 13.747C100.42 13.8241 100.42 13.9396 100.343 14.0166C99.6881 14.941 98.5716 15.5957 97.1086 15.5957C95.3376 15.5957 94.1442 14.7869 93.6437 13.1693ZM99.8421 10.1652C99.9191 10.1652 99.9576 10.1267 99.9576 10.0496C99.9576 9.3949 99.8806 8.8557 99.7266 8.39353C99.3031 7.04552 98.3021 6.35225 96.9546 6.35225C95.6071 6.35225 94.6062 7.00701 94.1827 8.39353C94.0287 8.8557 93.9517 9.35638 93.9517 10.0496C93.9517 10.1267 93.9902 10.1652 94.0672 10.1652H99.8421Z" fill="#002838"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M102.422 7.5462C102.422 7.58472 102.422 7.58472 102.46 7.58472H102.537C102.537 7.58472 102.576 7.58472 102.576 7.5462V7.08404H102.845L103.115 7.58472C103.134 7.58472 103.143 7.59435 103.153 7.60398C103.163 7.61361 103.172 7.62324 103.192 7.62324H103.307C103.346 7.62324 103.384 7.58472 103.346 7.5462L103.076 7.04552C103.269 7.00701 103.346 6.85295 103.346 6.69889C103.346 6.46781 103.191 6.31375 102.922 6.31375H102.46C102.441 6.31375 102.431 6.31375 102.426 6.31856C102.422 6.32337 102.422 6.333 102.422 6.35225V7.5462ZM102.922 6.50632C103.076 6.50632 103.153 6.58335 103.153 6.69889C103.153 6.81444 103.076 6.89147 102.922 6.89147H102.614V6.50632H102.922Z" fill="#002838"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M102.845 5.81305C102.191 5.81305 101.69 6.31374 101.69 6.96849C101.69 7.62323 102.191 8.12392 102.845 8.12392C103.499 8.12392 104 7.62323 104 6.96849C104 6.31374 103.499 5.81305 102.845 5.81305ZM102.845 6.00563C103.384 6.00563 103.807 6.39077 103.807 6.96849C103.807 7.50769 103.384 7.93135 102.845 7.93135C102.306 7.93135 101.883 7.5462 101.883 6.96849C101.883 6.42929 102.268 6.00563 102.845 6.00563Z" fill="#002838"/>
|
||||
</svg>
|
After Width: | Height: | Size: 8.3 KiB |
273
includes/acf/includes/acf-bidirectional-functions.php
Normal file
273
includes/acf/includes/acf-bidirectional-functions.php
Normal file
@ -0,0 +1,273 @@
|
||||
<?php
|
||||
/**
|
||||
* General functions relating to the bidirectional feature of some fields.
|
||||
*
|
||||
* @package ACF
|
||||
*/
|
||||
|
||||
/**
|
||||
* Process updating bidirectional fields.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param array $target_item_ids The post, user or term IDs which should be updated with the origin item ID.
|
||||
* @param int|string $post_id The ACF encoded origin post, user or term ID.
|
||||
* @param array $field The field being updated on the origin post, user or term ID.
|
||||
* @param string|false $target_prefix The ACF prefix for a post, user or term ID required for the update_field call for this field type.
|
||||
*/
|
||||
function acf_update_bidirectional_values( $target_item_ids, $post_id, $field, $target_prefix = false ) {
|
||||
|
||||
// Bail early if we're already updating a bidirectional relationship to prevent recursion.
|
||||
if ( acf_get_data( 'acf_doing_bidirectional_update' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Support disabling bidirectionality globally.
|
||||
if ( ! acf_get_setting( 'enable_bidirection' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( empty( $field['bidirectional'] ) || empty( $field['bidirectional_target'] ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$decoded = acf_decode_post_id( $post_id );
|
||||
$item_id = $decoded['id'];
|
||||
$valid_target_types = acf_get_valid_bidirectional_target_types( $decoded['type'] );
|
||||
$valid_targets = array();
|
||||
|
||||
foreach ( $field['bidirectional_target'] as $target_field ) {
|
||||
$target_field_object = get_field_object( $target_field );
|
||||
if ( empty( $target_field_object ) || ! is_array( $target_field_object ) ) {
|
||||
continue;
|
||||
}
|
||||
if ( in_array( $target_field_object['type'], $valid_target_types, true ) ) {
|
||||
$valid_targets[] = $target_field;
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! empty( $valid_targets ) ) {
|
||||
|
||||
// Get current values for this field.
|
||||
$current_values = array_filter( acf_get_array( get_field( $field['key'], $post_id, false ) ) );
|
||||
$new_values = array_filter( acf_get_array( $target_item_ids ) );
|
||||
|
||||
$additions = array_diff( $new_values, $current_values );
|
||||
$subtractions = array_diff( $current_values, $new_values );
|
||||
|
||||
// Prefix additions and subtractions for destinations which aren't posts.
|
||||
if ( ! empty( $target_prefix ) ) {
|
||||
$mapper = function( $v ) use ( $target_prefix ) {
|
||||
return $target_prefix . '_' . $v;
|
||||
};
|
||||
$additions = array_map( $mapper, $additions );
|
||||
$subtractions = array_map( $mapper, $subtractions );
|
||||
}
|
||||
|
||||
acf_set_data( 'acf_doing_bidirectional_update', true );
|
||||
|
||||
// Loop over each target, processing additions and removals.
|
||||
foreach ( $valid_targets as $target_field ) {
|
||||
foreach ( $additions as $addition ) {
|
||||
$current_value = acf_get_array( get_field( $target_field, $addition, false ) );
|
||||
update_field( $target_field, array_unique( array_merge( $current_value, array( $item_id ) ) ), $addition );
|
||||
}
|
||||
|
||||
foreach ( $subtractions as $subtraction ) {
|
||||
$current_value = acf_get_array( get_field( $target_field, $subtraction, false ) );
|
||||
update_field( $target_field, array_unique( array_diff( $current_value, array( $item_id ) ) ), $subtraction );
|
||||
}
|
||||
}
|
||||
|
||||
acf_set_data( 'acf_doing_bidirectional_update', false );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows third party fields to enable support as a target field type for a particular object type
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param string $object_type The object type that will be updated on the target field, such as 'term', 'user' or 'post'.
|
||||
* @return array An array of valid field type names (slugs) for the target of the bidirectional field.
|
||||
*/
|
||||
function acf_get_valid_bidirectional_target_types( $object_type ) {
|
||||
$valid_target_types = array();
|
||||
switch ( $object_type ) {
|
||||
case 'term':
|
||||
$valid_target_types = array( 'taxonomy' );
|
||||
break;
|
||||
case 'user':
|
||||
$valid_target_types = array( 'user' );
|
||||
break;
|
||||
case 'post':
|
||||
$valid_target_types = array( 'relationship', 'post_object' );
|
||||
break;
|
||||
}
|
||||
return apply_filters( 'acf/bidirectional/supported_field_types_for_post', $valid_target_types, $object_type );
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the complete choices argument for rendering the select2 field for bidirectional target based on the currently selected choices
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param array $choices The currently selected choices (as an array of field keys).
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function acf_build_bidirectional_target_current_choices( $choices ) {
|
||||
if ( empty( $choices ) ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
$results = array();
|
||||
foreach ( $choices as $choice ) {
|
||||
if ( empty( $choice ) || ! is_string( $choice ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$field_object = get_field_object( $choice );
|
||||
if ( is_array( $field_object ) && ! empty( $field_object['label'] ) ) {
|
||||
$results[ $choice ] = $field_object['label'];
|
||||
} else {
|
||||
$results[ $choice ] = $choice;
|
||||
}
|
||||
}
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build valid fields for a bidirectional relationship for select2 display
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param array $results The original results array.
|
||||
* @param array $options The options provided to the select2 AJAX search.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function acf_build_bidirectional_relationship_field_target_args( $results, $options ) {
|
||||
$valid_field_types = apply_filters( 'acf/bidirectional/supported_target_field_types', array( 'relationship', 'post_object', 'user', 'taxonomy' ) );
|
||||
|
||||
$field_groups = array_filter(
|
||||
acf_get_field_groups(),
|
||||
function( $field_group ) {
|
||||
return $field_group['active'];
|
||||
}
|
||||
);
|
||||
|
||||
$valid_fields = array();
|
||||
foreach ( $field_groups as $field_group ) {
|
||||
$fields = acf_get_fields( $field_group );
|
||||
foreach ( $fields as $field ) {
|
||||
if ( in_array( $field['type'], $valid_field_types, true ) ) {
|
||||
if ( empty( $valid_fields[ $field_group['title'] ] ) ) {
|
||||
$valid_fields[ $field_group['title'] ] = array();
|
||||
}
|
||||
$valid_fields[ $field_group['title'] ][ $field['key'] ] = array(
|
||||
'type' => $field['type'],
|
||||
'label' => $field['label'],
|
||||
);
|
||||
|
||||
if ( isset( $options['parent_key'] ) && $options['parent_key'] === $field['key'] ) {
|
||||
$valid_fields[ $field_group['title'] ][ $field['key'] ]['this_field'] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach ( $valid_fields as $field_group_name => $fields ) {
|
||||
$field_group = array(
|
||||
'text' => $field_group_name,
|
||||
'children' => array(),
|
||||
);
|
||||
foreach ( $fields as $key => $data ) {
|
||||
$field_group['children'][] = array(
|
||||
'id' => $key,
|
||||
'text' => $data['label'],
|
||||
'field_type' => $data['type'],
|
||||
/* translators: %s A field type name, such as "Relationship" */
|
||||
'human_field_type' => sprintf( __( '%s Field', 'acf' ), acf_get_field_type_prop( $data['type'], 'label' ) ),
|
||||
'this_field' => ! empty( $data['this_field'] ),
|
||||
);
|
||||
}
|
||||
$results['results'][] = $field_group;
|
||||
}
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
add_action( 'acf/fields/select/query/key=_acf_bidirectional_target', 'acf_build_bidirectional_relationship_field_target_args', 10, 2 );
|
||||
|
||||
/**
|
||||
* Renders the field settings required for bidirectional fields
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param array $field The field object passed into field setting functions.
|
||||
*/
|
||||
function acf_render_bidirectional_field_settings( $field ) {
|
||||
if ( ! acf_get_setting( 'enable_bidirection' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
acf_render_field_setting(
|
||||
$field,
|
||||
array(
|
||||
'label' => __( 'Bidirectional', 'acf' ),
|
||||
'instructions' => __( 'Update a field on the selected values, referencing back to this ID', 'acf' ),
|
||||
'type' => 'true_false',
|
||||
'name' => 'bidirectional',
|
||||
'ui' => 1,
|
||||
)
|
||||
);
|
||||
|
||||
acf_render_field_setting(
|
||||
$field,
|
||||
array(
|
||||
'name' => 'bidirectional_notes',
|
||||
'type' => 'message',
|
||||
'message' => acf_get_bidirectional_field_settings_instruction_text(),
|
||||
'conditions' => array(
|
||||
'field' => 'bidirectional',
|
||||
'operator' => '==',
|
||||
'value' => 1,
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
acf_render_field_setting(
|
||||
$field,
|
||||
array(
|
||||
'type' => 'select',
|
||||
'name' => 'bidirectional_target',
|
||||
'label' => __( 'Target Field', 'acf' ),
|
||||
'instructions' => __( 'Select field(s) to store the reference back to the item being updated. You may select this field. Target fields must be compatible with where this field is being displayed. For example, if this field is displayed on a Taxonomy, your target field should be of type Taxonomy', 'acf' ),
|
||||
'class' => 'bidrectional_target',
|
||||
'choices' => acf_build_bidirectional_target_current_choices( $field['bidirectional_target'] ),
|
||||
'conditions' => array(
|
||||
'field' => 'bidirectional',
|
||||
'operator' => '==',
|
||||
'value' => 1,
|
||||
),
|
||||
'ui' => 1,
|
||||
'multiple' => 1,
|
||||
'ajax' => 1,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the translated instructional text for the message field for the bidirectional field settings.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @return string The html containing the instructional message.
|
||||
*/
|
||||
function acf_get_bidirectional_field_settings_instruction_text() {
|
||||
/* translators: %s the URL to ACF's bidirectional relationship documentation */
|
||||
$message = '<p class="acf-feature-notice with-warning-icon">' . sprintf( __( 'Enabling the bidirectional setting allows you to update a value in the target fields for each value selected for this field, adding or removing the Post ID, Taxonomy ID or User ID of the item being updated. For more information, please read the <a href="%s" target="_blank">documentation</a>.', 'acf' ), acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/bidirectional-relationships/', 'docs', 'bidirectional' ) ) . '</p>';
|
||||
return $message;
|
||||
}
|
@ -518,7 +518,7 @@ function acf_add_url_utm_tags( $url, $campaign, $content, $anchor = false, $sour
|
||||
$medium = ! empty( $medium ) ? $medium : 'insideplugin';
|
||||
|
||||
if ( empty( $source ) ) {
|
||||
$source = ( defined( 'ACF_PRO' ) && ACF_PRO ) ? 'ACF PRO' : 'ACF Free';
|
||||
$source = acf_is_pro() ? 'ACF PRO' : 'ACF Free';
|
||||
}
|
||||
|
||||
$query = http_build_query(
|
||||
@ -534,7 +534,11 @@ function acf_add_url_utm_tags( $url, $campaign, $content, $anchor = false, $sour
|
||||
);
|
||||
|
||||
if ( $query ) {
|
||||
$query = '?' . $query;
|
||||
if ( strpos( $url, '?' ) !== false ) {
|
||||
$query = '&' . $query;
|
||||
} else {
|
||||
$query = '?' . $query;
|
||||
}
|
||||
}
|
||||
|
||||
return esc_url( $url . $query . $anchor_url );
|
||||
@ -664,3 +668,14 @@ function acf_maybe_unserialize( $data ) {
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if current install is ACF PRO
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @return boolean True if the current install is ACF PRO
|
||||
*/
|
||||
function acf_is_pro() {
|
||||
return defined( 'ACF_PRO' ) && ACF_PRO;
|
||||
}
|
||||
|
@ -523,6 +523,32 @@ function acf_get_combined_taxonomy_settings_tabs() {
|
||||
return array_merge( $default_taxonomy_tabs, $additional_taxonomy_tabs );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of tabs for the options page advanced settings
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function acf_get_combined_options_page_settings_tabs() {
|
||||
$default_options_page_tabs = array(
|
||||
'visibility' => __( 'Visibility', 'acf' ),
|
||||
'labels' => __( 'Labels', 'acf' ),
|
||||
'permissions' => __( 'Permissions', 'acf' ),
|
||||
);
|
||||
|
||||
$additional_options_page_tabs = (array) apply_filters( 'acf/ui_options_page/additional_settings_tabs', array() );
|
||||
|
||||
// Remove any default tab values from the filtered tabs.
|
||||
foreach ( $additional_options_page_tabs as $key => $tab ) {
|
||||
if ( isset( $default_options_page_tabs[ $key ] ) ) {
|
||||
unset( $additional_options_page_tabs[ $key ] );
|
||||
}
|
||||
}
|
||||
|
||||
return array_merge( $default_options_page_tabs, $additional_options_page_tabs );
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts an _acf_screen or hook value into a post type.
|
||||
*
|
||||
@ -539,6 +565,8 @@ function acf_get_post_type_from_screen_value( $screen ) {
|
||||
return 'acf-taxonomy';
|
||||
case 'field_group':
|
||||
return 'acf-field-group';
|
||||
case 'ui_options_page':
|
||||
return 'acf-ui-options-page';
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
@ -565,16 +593,19 @@ function acf_validate_internal_post_type_values( $post_type ) {
|
||||
*
|
||||
* @since 6.1
|
||||
*
|
||||
* @param string $name The name of the input.
|
||||
* @param string $message An optional error message to display.
|
||||
* @param string $name The name of the input.
|
||||
* @param string $message An optional error message to display.
|
||||
* @param string $post_type Optional post type the error message is for.
|
||||
* @return void
|
||||
*/
|
||||
function acf_add_internal_post_type_validation_error( $name, $message = '' ) {
|
||||
$screen = isset( $_POST['_acf_screen'] ) ? (string) $_POST['_acf_screen'] : 'post_type'; // phpcs:ignore WordPress.Security -- Nonce verified upstream, value only used for comparison.
|
||||
$post_type = acf_get_post_type_from_screen_value( $screen );
|
||||
function acf_add_internal_post_type_validation_error( $name, $message = '', $post_type = '' ) {
|
||||
if ( empty( $post_type ) ) {
|
||||
$screen = isset( $_POST['_acf_screen'] ) ? (string) $_POST['_acf_screen'] : 'post_type'; // phpcs:ignore WordPress.Security -- Nonce verified upstream, value only used for comparison.
|
||||
$post_type = acf_get_post_type_from_screen_value( $screen );
|
||||
|
||||
if ( ! $post_type ) {
|
||||
return;
|
||||
if ( ! $post_type ) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$input_prefix = str_replace( '-', '_', $post_type );
|
||||
@ -595,13 +626,13 @@ function acf_add_internal_post_type_validation_error( $name, $message = '' ) {
|
||||
* @return array|bool
|
||||
*/
|
||||
function acf_get_post_type_from_request_args( $action = '' ) {
|
||||
$acf_use_post_type = acf_request_arg( 'use_post_type', false );
|
||||
$acf_use_post_type = (int) acf_request_arg( 'use_post_type', 0 );
|
||||
|
||||
if ( ! $acf_use_post_type || ! wp_verify_nonce( acf_request_arg( '_wpnonce' ), $action . '-' . $acf_use_post_type ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return acf_get_internal_post_type( (int) $acf_use_post_type, 'acf-post-type' );
|
||||
return acf_get_internal_post_type( $acf_use_post_type, 'acf-post-type' );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -613,11 +644,29 @@ function acf_get_post_type_from_request_args( $action = '' ) {
|
||||
* @return array|bool
|
||||
*/
|
||||
function acf_get_taxonomy_from_request_args( $action = '' ) {
|
||||
$acf_use_taxonomy = acf_request_arg( 'use_taxonomy', false );
|
||||
$acf_use_taxonomy = (int) acf_request_arg( 'use_taxonomy', 0 );
|
||||
|
||||
if ( ! $acf_use_taxonomy || ! wp_verify_nonce( acf_request_arg( '_wpnonce' ), $action . '-' . $acf_use_taxonomy ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return acf_get_internal_post_type( (int) $acf_use_taxonomy, 'acf-taxonomy' );
|
||||
return acf_get_internal_post_type( $acf_use_taxonomy, 'acf-taxonomy' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets an ACF options page from request args and verifies nonce based on action.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param string $action The action being performed.
|
||||
* @return array|bool
|
||||
*/
|
||||
function acf_get_ui_options_page_from_request_args( $action = '' ) {
|
||||
$acf_use_options_page = (int) acf_request_arg( 'use_options_page', 0 );
|
||||
|
||||
if ( ! $acf_use_options_page || ! wp_verify_nonce( acf_request_arg( '_wpnonce' ), $action . '-' . $acf_use_options_page ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return acf_get_internal_post_type( $acf_use_options_page, 'acf-ui-options-page' );
|
||||
}
|
||||
|
@ -199,7 +199,7 @@ function acf_update_value( $value, $post_id, $field ) {
|
||||
// Allow filter to short-circuit update_value logic.
|
||||
$check = apply_filters( 'acf/pre_update_value', null, $value, $post_id, $field );
|
||||
if ( $check !== null ) {
|
||||
return $check;
|
||||
return $check;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -56,6 +56,13 @@ if ( ! class_exists( 'ACF_Admin_Internal_Post_Type_List' ) ) :
|
||||
*/
|
||||
public $store = '';
|
||||
|
||||
/**
|
||||
* If this is a pro feature or not.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $is_pro_feature = false;
|
||||
|
||||
/**
|
||||
* Constructs the class.
|
||||
*/
|
||||
@ -271,10 +278,13 @@ if ( ! class_exists( 'ACF_Admin_Internal_Post_Type_List' ) ) :
|
||||
|
||||
// Check the post store to see if this failed registration.
|
||||
if ( ! empty( $this->store ) && ! empty( $post->ID ) ) {
|
||||
$store = acf_get_store( $this->store );
|
||||
$store_item = $store->get( $post->ID );
|
||||
if ( ! empty( $store_item ) && ! empty( $store_item['not_registered'] ) ) {
|
||||
$post_states['acf-registration-warning'] = $this->get_registration_error_state();
|
||||
$store = acf_get_store( $this->store );
|
||||
|
||||
if ( $store ) {
|
||||
$store_item = $store->get( $post->ID );
|
||||
if ( ! empty( $store_item ) && ! empty( $store_item['not_registered'] ) ) {
|
||||
$post_states['acf-registration-warning'] = $this->get_registration_error_state();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -290,7 +300,15 @@ if ( ! class_exists( 'ACF_Admin_Internal_Post_Type_List' ) ) :
|
||||
*/
|
||||
public function get_not_found_html() {
|
||||
ob_start();
|
||||
acf_get_view( $this->post_type . '/list-empty' );
|
||||
|
||||
$view = $this->post_type . '/list-empty';
|
||||
|
||||
if ( $this->is_pro_feature ) {
|
||||
$view = ACF_PATH . 'pro/admin/views/' . $view . '.php';
|
||||
}
|
||||
|
||||
acf_get_view( $view );
|
||||
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
||||
@ -407,17 +425,22 @@ if ( ! class_exists( 'ACF_Admin_Internal_Post_Type_List' ) ) :
|
||||
* @return array
|
||||
*/
|
||||
public function page_row_actions( $actions, $post ) {
|
||||
|
||||
// Remove "Quick Edit" action.
|
||||
unset( $actions['inline'], $actions['inline hide-if-no-js'] );
|
||||
|
||||
$duplicate_action_url = '';
|
||||
|
||||
// Append "Duplicate" action.
|
||||
// TODO: We'll likely have to add support for CPTs/Taxonomies!
|
||||
if ( 'acf-field-group' === $this->post_type ) {
|
||||
$duplicate_action_url = $this->get_admin_url( '&acfduplicate=' . $post->ID . '&_wpnonce=' . wp_create_nonce( 'bulk-posts' ) );
|
||||
$actions['acfduplicate'] = '<a href="' . esc_url( $duplicate_action_url ) . '" aria-label="' . esc_attr__( 'Duplicate this item', 'acf' ) . '">' . __( 'Duplicate', 'acf' ) . '</a>';
|
||||
$duplicate_action_url = $this->get_admin_url( '&acfduplicate=' . $post->ID . '&_wpnonce=' . wp_create_nonce( 'bulk-posts' ) );
|
||||
} elseif ( 'acf-post-type' === $this->post_type ) {
|
||||
$duplicate_action_url = wp_nonce_url( admin_url( 'post-new.php?post_type=acf-post-type&use_post_type=' . $post->ID ), 'acfduplicate-' . $post->ID );
|
||||
} elseif ( 'acf-taxonomy' === $this->post_type ) {
|
||||
$duplicate_action_url = wp_nonce_url( admin_url( 'post-new.php?post_type=acf-taxonomy&use_taxonomy=' . $post->ID ), 'acfduplicate-' . $post->ID );
|
||||
}
|
||||
|
||||
$actions['acfduplicate'] = '<a href="' . esc_url( $duplicate_action_url ) . '" aria-label="' . esc_attr__( 'Duplicate this item', 'acf' ) . '">' . __( 'Duplicate', 'acf' ) . '</a>';
|
||||
|
||||
// Append the "Activate" or "Deactivate" actions.
|
||||
if ( 'acf-disabled' === $post->post_status ) {
|
||||
$activate_deactivate_action = 'acfactivate';
|
||||
@ -430,12 +453,7 @@ if ( ! class_exists( 'ACF_Admin_Internal_Post_Type_List' ) ) :
|
||||
}
|
||||
|
||||
// Return actions in custom order.
|
||||
// TODO: We'll likely have to add support for CPTs/Taxonomies!
|
||||
if ( 'acf-field-group' === $this->post_type ) {
|
||||
$order = array( 'edit', 'acfduplicate', $activate_deactivate_action, 'trash' );
|
||||
} else {
|
||||
$order = array( 'edit', $activate_deactivate_action, 'trash' );
|
||||
}
|
||||
$order = array( 'edit', 'acfduplicate', $activate_deactivate_action, 'trash' );
|
||||
|
||||
return array_merge( array_flip( $order ), $actions );
|
||||
}
|
||||
|
@ -259,11 +259,22 @@ if ( ! class_exists( 'ACF_Admin_Internal_Post_Type' ) ) :
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( 'acf-post-type' === $post_type ) {
|
||||
$param = 'post_type';
|
||||
$value = $saved_post['post_type'];
|
||||
} elseif ( 'acf-taxonomy' === $post_type ) {
|
||||
$param = 'taxonomy';
|
||||
$value = $saved_post['taxonomy'];
|
||||
} else {
|
||||
$param = 'options_page';
|
||||
$value = $saved_post['menu_slug'];
|
||||
}
|
||||
|
||||
$field_group['location'][] = array(
|
||||
array(
|
||||
'param' => 'acf-post-type' === $post_type ? 'post_type' : 'taxonomy',
|
||||
'param' => $param,
|
||||
'operator' => '==',
|
||||
'value' => 'acf-post-type' === $post_type ? $saved_post['post_type'] : $saved_post['taxonomy'],
|
||||
'value' => $value,
|
||||
),
|
||||
);
|
||||
|
||||
@ -305,6 +316,12 @@ if ( ! class_exists( 'ACF_Admin_Internal_Post_Type' ) ) :
|
||||
}
|
||||
}
|
||||
|
||||
$instructions = sprintf(
|
||||
/* translators: %s - either "post type" or "taxonomy" */
|
||||
__( 'Add this %s to the location rules of the selected field groups.', 'acf' ),
|
||||
'acf-post-type' === $post_type ? __( 'post type', 'acf' ) : __( 'taxonomy', 'acf' )
|
||||
);
|
||||
|
||||
$field = acf_get_valid_field(
|
||||
array(
|
||||
'type' => 'select',
|
||||
@ -312,7 +329,8 @@ if ( ! class_exists( 'ACF_Admin_Internal_Post_Type' ) ) :
|
||||
'choices' => $choices,
|
||||
'aria-label' => __( 'Please select the field groups to link.', 'acf' ),
|
||||
'placeholder' => __( 'Select one or many field groups...', 'acf' ),
|
||||
'instructions' => __( 'Field group(s)', 'acf' ),
|
||||
'label' => __( 'Field Group(s)', 'acf' ),
|
||||
'instructions' => $instructions,
|
||||
'ui' => true,
|
||||
'multiple' => true,
|
||||
'allow_null' => true,
|
||||
@ -322,7 +340,7 @@ if ( ! class_exists( 'ACF_Admin_Internal_Post_Type' ) ) :
|
||||
ob_start();
|
||||
?>
|
||||
<form id="acf-link-field-groups-form">
|
||||
<?php acf_render_field_wrap( $field ); ?>
|
||||
<?php acf_render_field_wrap( $field, 'div', 'field' ); ?>
|
||||
<div class="acf-actions">
|
||||
<button type="button" class="acf-btn acf-btn-secondary acf-close-popup"><?php esc_html_e( 'Cancel', 'acf' ); ?></button>
|
||||
<button type="submit" class="acf-btn acf-btn-primary"><?php esc_html_e( 'Done', 'acf' ); ?></button>
|
||||
@ -330,17 +348,11 @@ if ( ! class_exists( 'ACF_Admin_Internal_Post_Type' ) ) :
|
||||
</form>
|
||||
<?php
|
||||
$content = ob_get_clean();
|
||||
$title = sprintf(
|
||||
/* translators: %1$s - name of newly created post. %2$s - either "post type" or "taxonomy". */
|
||||
__( 'Link %1$s %2$s to field groups', 'acf' ),
|
||||
isset( $saved_post['title'] ) ? $saved_post['title'] : '',
|
||||
'acf-post-type' === $post_type ? __( 'post type', 'acf' ) : __( 'taxonomy', 'acf' )
|
||||
);
|
||||
|
||||
wp_send_json_success(
|
||||
array(
|
||||
'content' => $content,
|
||||
'title' => $title,
|
||||
'title' => esc_html__( 'Link Existing Field Groups', 'acf' ),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -102,6 +102,7 @@ if ( ! class_exists( 'ACF_Admin' ) ) :
|
||||
if ( isset( $screen->post_type ) && in_array( $screen->post_type, acf_get_internal_post_types(), true ) ) {
|
||||
add_action( 'in_admin_header', array( $this, 'in_admin_header' ) );
|
||||
add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ) );
|
||||
add_filter( 'update_footer', array( $this, 'admin_footer_version_text' ) );
|
||||
$this->setup_help_tab();
|
||||
$this->maybe_show_import_from_cptui_notice();
|
||||
}
|
||||
@ -223,19 +224,47 @@ if ( ! class_exists( 'ACF_Admin' ) ) :
|
||||
* @date 7/4/20
|
||||
* @since 5.9.0
|
||||
*
|
||||
* @param string $text The admin footer text.
|
||||
* @param string $text The current admin footer text.
|
||||
* @return string
|
||||
*/
|
||||
function admin_footer_text( $text ) {
|
||||
if ( null === $text ) {
|
||||
$text = '';
|
||||
}
|
||||
public function admin_footer_text( $text ) {
|
||||
$wp_engine_link = acf_add_url_utm_tags( 'https://wpengine.com/', 'bx_prod_referral', acf_is_pro() ? 'acf_pro_plugin_footer_text' : 'acf_free_plugin_footer_text', false, 'acf_plugin', 'referral' );
|
||||
$acf_link = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/', 'footer', 'footer' );
|
||||
|
||||
$is_free = ! defined( 'ACF_PRO' ) || ! ACF_PRO;
|
||||
$wp_engine_link = acf_add_url_utm_tags( 'https://wpengine.com/', 'bx_prod_referral', $is_free ? 'acf_free_plugin_footer_text' : 'acf_pro_plugin_footer_text', false, 'acf_plugin', 'referral' );
|
||||
return sprintf(
|
||||
/* translators: This text is prepended by a link to ACF's website, and appended by a link to WP Engine's website. */
|
||||
'<a href="%1$s" target="_blank">' . ( acf_is_pro() ? 'ACF PRO' : 'ACF' ) . '</a> ' . __( 'is developed and maintained by', 'acf' ) . ' <a href="%2$s" target="_blank">WP Engine</a>.',
|
||||
$acf_link,
|
||||
$wp_engine_link
|
||||
);
|
||||
}
|
||||
|
||||
// Use RegExp to append "ACF" after the <a> element allowing translations to read correctly.
|
||||
return preg_replace( '/(<a[\S\s]+?\/a>)/', '$1 ' . __( 'and', 'acf' ) . ' <a href="' . acf_add_url_utm_tags( 'https://www.advancedcustomfields.com', 'footer', 'footer' ) . '" target="_blank">ACF</a> ' . __( 'from', 'acf' ) . ' <a href="' . $wp_engine_link . '" target="_blank">WP Engine</a>', $text, 1 );
|
||||
/**
|
||||
* Modifies the admin footer version text.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param string $text The current admin footer version text.
|
||||
* @return string
|
||||
*/
|
||||
public function admin_footer_version_text( $text ) {
|
||||
$documentation_link = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/', 'footer', 'footer' );
|
||||
$support_link = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/support/', 'footer', 'footer' );
|
||||
$feedback_link = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/feedback/', 'footer', 'footer' );
|
||||
$version_link = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/changelog/', 'footer', 'footer' );
|
||||
|
||||
return sprintf(
|
||||
'<a href="%s" target="_blank">%s</a> ∙ <a href="%s" target="_blank">%s</a> ∙ <a href="%s" target="_blank">%s</a> ∙ <a href="%s" target="_blank">%s %s</a>',
|
||||
$documentation_link,
|
||||
__( 'Documentation', 'acf' ),
|
||||
$support_link,
|
||||
__( 'Support', 'acf' ),
|
||||
$feedback_link,
|
||||
__( 'Feedback', 'acf' ),
|
||||
$version_link,
|
||||
acf_is_pro() ? __( 'ACF PRO', 'acf' ) : __( 'ACF', 'acf' ),
|
||||
ACF_VERSION
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -116,8 +116,9 @@ if ( ! class_exists( 'acf_admin_field_group' ) ) :
|
||||
'Selection is greater than' => __( 'Selection is greater than', 'acf' ),
|
||||
'Selection is less than' => __( 'Selection is less than', 'acf' ),
|
||||
|
||||
// Field type selection modal.
|
||||
// Custom Select2 templates.
|
||||
'Type to search...' => __( 'Type to search...', 'acf' ),
|
||||
'This Field' => __( 'This Field', 'acf' ),
|
||||
)
|
||||
);
|
||||
|
||||
@ -228,7 +229,7 @@ if ( ! class_exists( 'acf_admin_field_group' ) ) :
|
||||
*/
|
||||
public function include_pro_features() {
|
||||
// Bail if on PRO.
|
||||
if ( defined( 'ACF_PRO' ) && ACF_PRO ) {
|
||||
if ( acf_is_pro() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ if ( ! class_exists( 'ACF_Admin_Field_Groups' ) ) :
|
||||
*/
|
||||
public function include_pro_features() {
|
||||
// Bail if on PRO.
|
||||
if ( defined( 'ACF_PRO' ) && ACF_PRO ) {
|
||||
if ( acf_is_pro() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -74,8 +74,6 @@ if ( ! class_exists( 'ACF_Admin_Post_Type' ) ) :
|
||||
|
||||
/* translators: %s post type name */
|
||||
$item_saved_text = sprintf( __( '%s post type updated', 'acf' ), $title );
|
||||
/* translators: %s post type name */
|
||||
$add_fields_text = sprintf( __( 'Add fields to %s', 'acf' ), $title );
|
||||
|
||||
if ( $created ) {
|
||||
/* translators: %s post type name */
|
||||
@ -87,7 +85,11 @@ if ( ! class_exists( 'ACF_Admin_Post_Type' ) ) :
|
||||
'add-fields-' . $post_id
|
||||
);
|
||||
|
||||
$create_post_type_link = admin_url( 'post-new.php?post_type=acf-post-type' );
|
||||
$create_post_type_link = admin_url( 'post-new.php?post_type=acf-post-type' );
|
||||
$duplicate_post_type_link = wp_nonce_url(
|
||||
admin_url( 'post-new.php?post_type=acf-post-type&use_post_type=' . $post_id ),
|
||||
'acfduplicate-' . $post_id
|
||||
);
|
||||
|
||||
$create_taxonomy_link = wp_nonce_url(
|
||||
admin_url( 'post-new.php?post_type=acf-taxonomy&use_post_type=' . $post_id ),
|
||||
@ -97,10 +99,11 @@ if ( ! class_exists( 'ACF_Admin_Post_Type' ) ) :
|
||||
ob_start(); ?>
|
||||
<p class="acf-item-saved-text"><?php echo esc_html( $item_saved_text ); ?></p>
|
||||
<div class="acf-item-saved-links">
|
||||
<a href="<?php echo esc_url( $add_fields_link ); ?>"><?php echo esc_html( $add_fields_text ); ?></a>
|
||||
<a class="acf-link-field-groups" href="#"><?php esc_html_e( 'Link existing field groups', 'acf' ); ?></a>
|
||||
<a href="<?php echo esc_url( $create_post_type_link ); ?>"><?php esc_html_e( 'Create new post type', 'acf' ); ?></a>
|
||||
<a href="<?php echo esc_url( $create_taxonomy_link ); ?>"><?php esc_html_e( 'Create new taxonomy', 'acf' ); ?></a>
|
||||
<a href="<?php echo esc_url( $add_fields_link ); ?>"><?php esc_html_e( 'Add fields', 'acf' ); ?></a>
|
||||
<a class="acf-link-field-groups" href="#"><?php esc_html_e( 'Link field groups', 'acf' ); ?></a>
|
||||
<a href="<?php echo esc_url( $create_post_type_link ); ?>"><?php esc_html_e( 'Create post type', 'acf' ); ?></a>
|
||||
<a href="<?php echo esc_url( $duplicate_post_type_link ); ?>"><?php esc_html_e( 'Duplicate post type', 'acf' ); ?></a>
|
||||
<a href="<?php echo esc_url( $create_taxonomy_link ); ?>"><?php esc_html_e( 'Create taxonomy', 'acf' ); ?></a>
|
||||
</div>
|
||||
<?php
|
||||
return ob_get_clean();
|
||||
|
@ -56,7 +56,7 @@ if ( ! class_exists( 'ACF_Admin_Post_Types' ) ) :
|
||||
*/
|
||||
public function include_pro_features() {
|
||||
// Bail if on PRO.
|
||||
if ( defined( 'ACF_PRO' ) && ACF_PRO ) {
|
||||
if ( acf_is_pro() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ if ( ! class_exists( 'ACF_Admin_Taxonomies' ) ) :
|
||||
*/
|
||||
public function include_pro_features() {
|
||||
// Bail if on PRO.
|
||||
if ( defined( 'ACF_PRO' ) && ACF_PRO ) {
|
||||
if ( acf_is_pro() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,11 @@ if ( ! class_exists( 'ACF_Admin_Taxonomy' ) ) :
|
||||
'add-fields-' . $post_id
|
||||
);
|
||||
|
||||
$create_taxonomy_link = admin_url( 'post-new.php?post_type=acf-taxonomy' );
|
||||
$create_taxonomy_link = admin_url( 'post-new.php?post_type=acf-taxonomy' );
|
||||
$duplicate_taxonomy_link = wp_nonce_url(
|
||||
admin_url( 'post-new.php?post_type=acf-taxonomy&use_taxonomy=' . $post_id ),
|
||||
'acfduplicate-' . $post_id
|
||||
);
|
||||
|
||||
$create_post_type_link = wp_nonce_url(
|
||||
admin_url( 'post-new.php?post_type=acf-post-type&use_taxonomy=' . $post_id ),
|
||||
@ -97,10 +101,11 @@ if ( ! class_exists( 'ACF_Admin_Taxonomy' ) ) :
|
||||
ob_start(); ?>
|
||||
<p class="acf-item-saved-text"><?php echo esc_html( $item_saved_text ); ?></p>
|
||||
<div class="acf-item-saved-links">
|
||||
<a href="<?php echo esc_url( $add_fields_link ); ?>"><?php echo esc_html( $add_fields_text ); ?></a>
|
||||
<a class="acf-link-field-groups" href="#"><?php esc_html_e( 'Link existing field groups', 'acf' ); ?></a>
|
||||
<a href="<?php echo esc_url( $create_taxonomy_link ); ?>"><?php esc_html_e( 'Create new taxonomy', 'acf' ); ?></a>
|
||||
<a href="<?php echo esc_url( $create_post_type_link ); ?>"><?php esc_html_e( 'Create new post type', 'acf' ); ?></a>
|
||||
<a href="<?php echo esc_url( $add_fields_link ); ?>"><?php esc_html_e( 'Add fields', 'acf' ); ?></a>
|
||||
<a class="acf-link-field-groups" href="#"><?php esc_html_e( 'Link field groups', 'acf' ); ?></a>
|
||||
<a href="<?php echo esc_url( $create_taxonomy_link ); ?>"><?php esc_html_e( 'Create taxonomy', 'acf' ); ?></a>
|
||||
<a href="<?php echo esc_url( $duplicate_taxonomy_link ); ?>"><?php esc_html_e( 'Duplicate taxonomy', 'acf' ); ?></a>
|
||||
<a href="<?php echo esc_url( $create_post_type_link ); ?>"><?php esc_html_e( 'Create post type', 'acf' ); ?></a>
|
||||
</div>
|
||||
<?php
|
||||
return ob_get_clean();
|
||||
|
@ -283,6 +283,28 @@ if ( ! class_exists( 'ACF_Admin_Tool_Export' ) ) :
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$choices = array();
|
||||
$selected = $this->get_selected_keys();
|
||||
$options_pages = acf_get_internal_post_type_posts( 'acf-ui-options-page' );
|
||||
|
||||
if ( $options_pages ) {
|
||||
foreach ( $options_pages as $options_page ) {
|
||||
$choices[ $options_page['key'] ] = esc_html( $options_page['title'] );
|
||||
}
|
||||
|
||||
acf_render_field_wrap(
|
||||
array(
|
||||
'label' => __( 'Select Options Pages', 'acf' ),
|
||||
'type' => 'checkbox',
|
||||
'name' => 'ui_options_page_keys',
|
||||
'prefix' => false,
|
||||
'value' => $selected,
|
||||
'toggle' => true,
|
||||
'choices' => $choices,
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -435,6 +457,8 @@ if ( ! class_exists( 'ACF_Admin_Tool_Export' ) ) :
|
||||
echo "\tif ( ! function_exists( 'acf_add_local_field_group' ) ) {\r\n\t\treturn;\r\n\t}\r\n\r\n";
|
||||
} elseif ( 'acf-post-type' === $post_type || 'acf-taxonomy' === $post_type ) {
|
||||
echo "add_action( 'init', function() {\r\n";
|
||||
} elseif ( 'acf-ui-options-page' === $post_type ) {
|
||||
echo "add_action( 'acf/init', function() {\r\n";
|
||||
}
|
||||
|
||||
$count = 0;
|
||||
@ -447,7 +471,7 @@ if ( ! class_exists( 'ACF_Admin_Tool_Export' ) ) :
|
||||
$count++;
|
||||
}
|
||||
|
||||
if ( in_array( $post_type, array( 'acf-post-type', 'acf-taxonomy', 'acf-field-group' ), true ) ) {
|
||||
if ( in_array( $post_type, array( 'acf-post-type', 'acf-taxonomy', 'acf-field-group', 'acf-ui-options-page' ), true ) ) {
|
||||
echo "} );\r\n\r\n";
|
||||
}
|
||||
}
|
||||
@ -501,7 +525,7 @@ if ( ! class_exists( 'ACF_Admin_Tool_Export' ) ) :
|
||||
* @return array|bool
|
||||
*/
|
||||
public function get_selected_keys() {
|
||||
$key_names = array( 'keys', 'post_type_keys', 'taxonomy_keys' );
|
||||
$key_names = array( 'keys', 'post_type_keys', 'taxonomy_keys', 'ui_options_page_keys' );
|
||||
$all_keys = array();
|
||||
|
||||
foreach ( $key_names as $key_name ) {
|
||||
|
@ -72,6 +72,7 @@ $prefix = 'acf_field_group[location][' . $rule['group'] . '][' . $rule['id'] . '
|
||||
array(
|
||||
'type' => 'select',
|
||||
'name' => 'value',
|
||||
'class' => 'location-rule-value',
|
||||
'prefix' => $prefix,
|
||||
'value' => $rule['value'],
|
||||
'choices' => $choices,
|
||||
|
@ -17,8 +17,9 @@ if ( empty( $field_group['location'] ) ) {
|
||||
),
|
||||
);
|
||||
|
||||
$acf_use_post_type = acf_get_post_type_from_request_args( 'add-fields' );
|
||||
$acf_use_taxonomy = acf_get_taxonomy_from_request_args( 'add-fields' );
|
||||
$acf_use_post_type = acf_get_post_type_from_request_args( 'add-fields' );
|
||||
$acf_use_taxonomy = acf_get_taxonomy_from_request_args( 'add-fields' );
|
||||
$acf_use_options_page = acf_get_ui_options_page_from_request_args( 'add-fields' );
|
||||
|
||||
if ( $acf_use_post_type && ! empty( $acf_use_post_type['post_type'] ) ) {
|
||||
$field_group['location'] = array(
|
||||
@ -43,6 +44,18 @@ if ( empty( $field_group['location'] ) ) {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
if ( $acf_use_options_page && ! empty( $acf_use_options_page['menu_slug'] ) ) {
|
||||
$field_group['location'] = array(
|
||||
array(
|
||||
array(
|
||||
'param' => 'options_page',
|
||||
'operator' => '==',
|
||||
'value' => $acf_use_options_page['menu_slug'],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
foreach ( acf_get_combined_field_group_settings_tabs() as $tab_key => $tab_label ) {
|
||||
|
@ -1,6 +1,22 @@
|
||||
<?php
|
||||
global $acf_post_type;
|
||||
|
||||
$acf_duplicate_post_type = acf_get_post_type_from_request_args( 'acfduplicate' );
|
||||
|
||||
if ( acf_is_post_type( $acf_duplicate_post_type ) ) {
|
||||
// Reset vars that likely have to be changed.
|
||||
$acf_duplicate_post_type['key'] = uniqid( 'post_type_' );
|
||||
$acf_duplicate_post_type['title'] = '';
|
||||
$acf_duplicate_post_type['labels'] = array_map( '__return_empty_string', $acf_duplicate_post_type['labels'] );
|
||||
$acf_duplicate_post_type['post_type'] = '';
|
||||
$acf_duplicate_post_type['rest_base'] = '';
|
||||
$acf_duplicate_post_type['query_var_name'] = '';
|
||||
$acf_duplicate_post_type['rewrite']['slug'] = '';
|
||||
|
||||
// Rest of the vars can be reused.
|
||||
$acf_post_type = $acf_duplicate_post_type;
|
||||
}
|
||||
|
||||
acf_render_field_wrap(
|
||||
array(
|
||||
'label' => __( 'Plural Label', 'acf' ),
|
||||
|
@ -2,6 +2,22 @@
|
||||
|
||||
global $acf_taxonomy;
|
||||
|
||||
$acf_duplicate_taxonomy = acf_get_taxonomy_from_request_args( 'acfduplicate' );
|
||||
|
||||
if ( acf_is_taxonomy( $acf_duplicate_taxonomy ) ) {
|
||||
// Reset vars that likely have to be changed.
|
||||
$acf_duplicate_taxonomy['key'] = uniqid( 'taxonomy_' );
|
||||
$acf_duplicate_taxonomy['title'] = '';
|
||||
$acf_duplicate_taxonomy['labels'] = array_map( '__return_empty_string', $acf_duplicate_taxonomy['labels'] );
|
||||
$acf_duplicate_taxonomy['taxonomy'] = '';
|
||||
$acf_duplicate_taxonomy['rewrite']['slug'] = '';
|
||||
$acf_duplicate_taxonomy['query_var_name'] = '';
|
||||
$acf_duplicate_taxonomy['rest_base'] = '';
|
||||
|
||||
// Rest of the vars can be reused.
|
||||
$acf_taxonomy = $acf_duplicate_taxonomy;
|
||||
}
|
||||
|
||||
acf_render_field_wrap(
|
||||
array(
|
||||
'label' => __( 'Plural Label', 'acf' ),
|
||||
|
@ -4,14 +4,16 @@ $acf_title_placeholder = apply_filters( 'enter_title_here', __( 'Add title' ), $
|
||||
$acf_title = $post->post_title;
|
||||
$acf_post_type = is_object( $post_type_object ) ? $post_type_object->name : '';
|
||||
$acf_publish_btn_name = 'save';
|
||||
$acf_duplicated_from = '';
|
||||
|
||||
if ( 'publish' !== $post->post_status ) {
|
||||
$acf_publish_btn_name = 'publish';
|
||||
}
|
||||
|
||||
if ( 'acf-field-group' === $acf_post_type ) {
|
||||
$acf_use_post_type = acf_get_post_type_from_request_args( 'add-fields' );
|
||||
$acf_use_taxonomy = acf_get_taxonomy_from_request_args( 'add-fields' );
|
||||
$acf_use_post_type = acf_get_post_type_from_request_args( 'add-fields' );
|
||||
$acf_use_taxonomy = acf_get_taxonomy_from_request_args( 'add-fields' );
|
||||
$acf_use_options_page = acf_get_ui_options_page_from_request_args( 'add-fields' );
|
||||
|
||||
/* translators: %s - singular label of post type/taxonomy, i.e. "Movie"/"Genre" */
|
||||
$acf_prefilled_title = __( '%s fields', 'acf' );
|
||||
@ -29,6 +31,8 @@ if ( 'acf-field-group' === $acf_post_type ) {
|
||||
$acf_prefilled_title = sprintf( $acf_prefilled_title, $acf_use_post_type['labels']['singular_name'] );
|
||||
} elseif ( $acf_use_taxonomy && ! empty( $acf_use_taxonomy['labels']['singular_name'] ) ) {
|
||||
$acf_prefilled_title = sprintf( $acf_prefilled_title, $acf_use_taxonomy['labels']['singular_name'] );
|
||||
} elseif ( $acf_use_options_page && ! empty( $acf_use_options_page['page_title'] ) ) {
|
||||
$acf_prefilled_title = sprintf( $acf_prefilled_title, $acf_use_options_page['page_title'] );
|
||||
} else {
|
||||
$acf_prefilled_title = false;
|
||||
}
|
||||
@ -36,6 +40,21 @@ if ( 'acf-field-group' === $acf_post_type ) {
|
||||
if ( empty( $acf_title ) && $acf_prefilled_title ) {
|
||||
$acf_title = $acf_prefilled_title;
|
||||
}
|
||||
} elseif ( in_array( $acf_post_type, array( 'acf-post-type', 'acf-taxonomy' ) ) ) {
|
||||
$acf_duplicate_post_type = acf_get_post_type_from_request_args( 'acfduplicate' );
|
||||
$acf_duplicate_taxonomy = acf_get_taxonomy_from_request_args( 'acfduplicate' );
|
||||
$acf_duplicated_from_label = '';
|
||||
|
||||
if ( $acf_duplicate_post_type && ! empty( $acf_duplicate_post_type['labels']['singular_name'] ) ) {
|
||||
$acf_duplicated_from_label = $acf_duplicate_post_type['labels']['singular_name'];
|
||||
} elseif ( $acf_duplicate_taxonomy && ! empty( $acf_duplicate_taxonomy['labels']['singular_name'] ) ) {
|
||||
$acf_duplicated_from_label = $acf_duplicate_taxonomy['labels']['singular_name'];
|
||||
}
|
||||
|
||||
if ( ! empty( $acf_duplicated_from_label ) ) {
|
||||
/* translators: %s - A singular label for a post type or taxonomy. */
|
||||
$acf_duplicated_from = sprintf( __( ' (Duplicated from %s)', 'acf' ), $acf_duplicated_from_label );
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="acf-headerbar acf-headerbar-field-editor">
|
||||
@ -45,6 +64,10 @@ if ( 'acf-field-group' === $acf_post_type ) {
|
||||
<h1 class="acf-page-title">
|
||||
<?php
|
||||
echo esc_html( $title );
|
||||
|
||||
if ( ! empty( $acf_duplicated_from ) ) {
|
||||
echo '<span class="acf-duplicated-from">' . esc_html( $acf_duplicated_from ) . '</span>';
|
||||
}
|
||||
?>
|
||||
</h1>
|
||||
<?php if ( 'acf-field-group' === $acf_post_type ) : ?>
|
||||
|
@ -11,14 +11,19 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
global $submenu, $parent_file, $submenu_file, $plugin_page, $pagenow, $acf_page_title;
|
||||
global $submenu, $submenu_file, $plugin_page, $acf_page_title;
|
||||
|
||||
// Vars.
|
||||
$parent_slug = 'edit.php?post_type=acf-field-group';
|
||||
// Setup default vars and generate array of navigation items.
|
||||
$parent_slug = 'edit.php?post_type=acf-field-group';
|
||||
$core_tabs = array();
|
||||
$acf_more_items = array();
|
||||
$more_items = array();
|
||||
$wpengine_more_items = array();
|
||||
|
||||
// Hardcoded since future ACF post types will likely live in the "More" menu.
|
||||
$core_tabs_classes = array( 'acf-field-group', 'acf-post-type', 'acf-taxonomy' );
|
||||
$acf_more_items_classes = array( 'acf-ui-options-page', 'acf-tools', 'acf-settings-updates' );
|
||||
|
||||
// Generate array of navigation items.
|
||||
$more_items = array();
|
||||
$core_tabs = array();
|
||||
if ( isset( $submenu[ $parent_slug ] ) ) {
|
||||
foreach ( $submenu[ $parent_slug ] as $i => $sub_item ) {
|
||||
|
||||
@ -52,16 +57,45 @@ if ( isset( $submenu[ $parent_slug ] ) ) {
|
||||
$menu_item['is_active'] = true;
|
||||
}
|
||||
|
||||
// Flag core tabs.
|
||||
$core_tabs_classes = array_merge( acf_get_internal_post_types(), array( 'acf-tools', 'acf-settings-updates' ) );
|
||||
// Organize the menu items.
|
||||
if ( in_array( $menu_item['class'], $core_tabs_classes, true ) ) {
|
||||
// Main ACF tabs.
|
||||
$core_tabs[] = $menu_item;
|
||||
|
||||
// Add post types & taxonomies to the more menu as well so we can show them there on smaller screens.
|
||||
if ( in_array( $menu_item['class'], array( 'acf-post-type', 'acf-taxonomy' ), true ) ) {
|
||||
$acf_more_items[] = $menu_item;
|
||||
}
|
||||
} elseif ( in_array( $menu_item['class'], $acf_more_items_classes, true ) ) {
|
||||
// ACF tabs moved to the "More" menu.
|
||||
$acf_more_items[] = $menu_item;
|
||||
} else {
|
||||
// Third party tabs placed into the "More" menu.
|
||||
$more_items[] = $menu_item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! acf_get_setting( 'pro' ) ) {
|
||||
$acf_more_items[] = array(
|
||||
'url' => acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/pro/', 'more-menu', 'options-pages' ),
|
||||
'text' => __( 'Options Pages', 'acf' ) . '<span class="acf-requires-pro">' . __( 'PRO', 'acf' ) . '</span>',
|
||||
'target' => '_blank',
|
||||
);
|
||||
}
|
||||
|
||||
if ( ! defined( 'PWP_NAME' ) ) {
|
||||
$acf_wpengine_logo = acf_get_url( 'assets/images/wp-engine-horizontal-black.svg' );
|
||||
$acf_wpengine_logo = sprintf( '<span><img class="acf-wp-engine-pro" src="%s" alt="WP Engine" /></span>', $acf_wpengine_logo );
|
||||
$utm_content = acf_is_pro() ? 'acf_pro_plugin_topbar_dropdown_cta' : 'acf_free_plugin_topbar_dropdown_cta';
|
||||
$wpengine_more_items[] = array(
|
||||
'url' => acf_add_url_utm_tags( 'https://wpengine.com/plans/?coupon=freedomtocreate', 'bx_prod_referral', $utm_content, false, 'acf_plugin', 'referral' ),
|
||||
'text' => $acf_wpengine_logo . '<span class="acf-wp-engine-upsell-pill">' . __( '4 Months Free', 'acf' ) . '</span>',
|
||||
'target' => '_blank',
|
||||
'li_class' => 'acf-wp-engine',
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the admin navigation more items.
|
||||
*
|
||||
@ -76,54 +110,90 @@ if ( $core_tabs === false ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$acf_is_free = ! defined( 'ACF_PRO' ) || ! ACF_PRO;
|
||||
$acf_wpengine_logo_link = acf_add_url_utm_tags(
|
||||
'https://wpengine.com/',
|
||||
'bx_prod_referral',
|
||||
$acf_is_free ? 'acf_free_plugin_topbar_logo' : 'acf_pro_plugin_topbar_logo',
|
||||
acf_is_pro() ? 'acf_pro_plugin_topbar_logo' : 'acf_free_plugin_topbar_logo',
|
||||
false,
|
||||
'acf_plugin',
|
||||
'referral'
|
||||
);
|
||||
|
||||
/**
|
||||
* Helper function for looping over the provided menu items
|
||||
* and echoing out the necessary markup.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param array $menu_items An array of menu items to print.
|
||||
* @param string $section The section being printed.
|
||||
* @return void
|
||||
*/
|
||||
function acf_print_menu_section( $menu_items, $section = '' ) {
|
||||
// Bail if no menu items.
|
||||
if ( ! is_array( $menu_items ) || empty( $menu_items ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$section_html = '';
|
||||
|
||||
foreach ( $menu_items as $menu_item ) {
|
||||
$class = ! empty( $menu_item['class'] ) ? $menu_item['class'] : $menu_item['text'];
|
||||
$target = ! empty( $menu_item['target'] ) ? ' target="' . esc_attr( $menu_item['target'] ) . '"' : '';
|
||||
$li_class = ! empty( $menu_item['li_class'] ) ? $menu_item['li_class'] : '';
|
||||
|
||||
$html = sprintf(
|
||||
'<a class="acf-tab%s %s" href="%s"%s><i class="acf-icon"></i>%s</a>',
|
||||
! empty( $menu_item['is_active'] ) ? ' is-active' : '',
|
||||
'acf-header-tab-' . acf_slugify( $class ),
|
||||
esc_url( $menu_item['url'] ),
|
||||
$target,
|
||||
acf_esc_html( $menu_item['text'] )
|
||||
);
|
||||
|
||||
if ( 'core' !== $section ) {
|
||||
if ( $li_class === '' ) {
|
||||
$html = '<li>' . $html . '</li>';
|
||||
} else {
|
||||
$html = sprintf( '<li class="%s">', $li_class ) . $html . '</li>';
|
||||
}
|
||||
}
|
||||
|
||||
$section_html .= $html;
|
||||
}
|
||||
|
||||
echo $section_html;
|
||||
}
|
||||
?>
|
||||
<div class="acf-admin-toolbar">
|
||||
<div class="acf-admin-toolbar-inner">
|
||||
<div class="acf-nav-wrap">
|
||||
<a href="<?php echo admin_url( 'edit.php?post_type=acf-field-group' ); ?>" class="acf-logo">
|
||||
<img src="<?php echo acf_get_url( 'assets/images/acf-logo.svg' ); ?>" alt="<?php esc_attr_e( 'Advanced Custom Fields logo', 'acf' ); ?>">
|
||||
<?php if ( defined( 'ACF_PRO' ) && ACF_PRO ) { ?>
|
||||
<?php if ( acf_is_pro() ) { ?>
|
||||
<div class="acf-pro-label">PRO</div>
|
||||
<?php } ?>
|
||||
</a>
|
||||
|
||||
<h2><?php echo acf_get_setting( 'name' ); ?></h2>
|
||||
<?php
|
||||
foreach ( $core_tabs as $menu_item ) {
|
||||
$classname = ! empty( $menu_item['class'] ) ? $menu_item['class'] : $menu_item['text'];
|
||||
printf(
|
||||
'<a class="acf-tab%s %s" href="%s"><i class="acf-icon"></i>%s</a>',
|
||||
! empty( $menu_item['is_active'] ) ? ' is-active' : '',
|
||||
'acf-header-tab-' . acf_slugify( $classname ),
|
||||
esc_url( $menu_item['url'] ),
|
||||
acf_esc_html( $menu_item['text'] )
|
||||
);
|
||||
}
|
||||
?>
|
||||
<?php if ( $more_items ) { ?>
|
||||
<?php acf_print_menu_section( $core_tabs, 'core' ); ?>
|
||||
<?php if ( $acf_more_items || $more_items ) { ?>
|
||||
<div class="acf-more acf-header-tab-acf-more" tabindex="0">
|
||||
<span class="acf-tab acf-more-tab"><i class="acf-icon acf-icon-more"></i><?php esc_html_e( 'More', 'acf' ); ?> <i class="acf-icon acf-icon-dropdown"></i></span>
|
||||
<ul>
|
||||
<?php
|
||||
foreach ( $more_items as $more_item ) {
|
||||
$classname = ! empty( $more_item['class'] ) ? $more_item['class'] : $more_item['text'];
|
||||
printf(
|
||||
'<li><a class="acf-tab%s %s" href="%s"><i class="acf-icon"></i>%s</a></li>',
|
||||
! empty( $more_item['is_active'] ) ? ' is-active' : '',
|
||||
'acf-header-tab-' . acf_slugify( $classname ),
|
||||
esc_url( $more_item['url'] ),
|
||||
acf_esc_html( $more_item['text'] )
|
||||
);
|
||||
if ( $acf_more_items ) {
|
||||
if ( $more_items ) {
|
||||
echo '<li class="acf-more-section-header"><span class="acf-tab acf-tab-header">ACF</span></li>';
|
||||
}
|
||||
acf_print_menu_section( $acf_more_items, 'acf' );
|
||||
}
|
||||
if ( $more_items ) {
|
||||
echo '<li class="acf-more-section-header"><span class="acf-tab acf-tab-header">' . esc_html__( 'Other', 'acf' ) . ' </span></li>';
|
||||
acf_print_menu_section( $more_items );
|
||||
}
|
||||
if ( $wpengine_more_items ) {
|
||||
acf_print_menu_section( $wpengine_more_items );
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
@ -131,7 +201,7 @@ $acf_wpengine_logo_link = acf_add_url_utm_tags(
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="acf-nav-upgrade-wrap">
|
||||
<?php if ( $acf_is_free ) : ?>
|
||||
<?php if ( ! acf_is_pro() ) : ?>
|
||||
<a target="_blank" href="<?php echo acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/pro/', 'ACF upgrade', 'header' ); ?>" class="btn-upgrade acf-admin-toolbar-upgrade-btn">
|
||||
<i class="acf-icon acf-icon-stars"></i>
|
||||
<p><?php esc_html_e( 'Unlock Extra Features with ACF PRO', 'acf' ); ?></p>
|
||||
|
@ -28,7 +28,7 @@ $tool = $active ? ' tool-' . $active : '';
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if ( ! defined( 'ACF_PRO' ) || ! ACF_PRO ) {
|
||||
if ( ! acf_is_pro() ) {
|
||||
acf_get_view( 'acf-field-group/pro-features' );
|
||||
}
|
||||
?>
|
||||
|
@ -131,7 +131,7 @@ function acf_get_setting( $name, $value = null ) {
|
||||
* @return array An array of ACF's internal post type names
|
||||
*/
|
||||
function acf_get_internal_post_types() {
|
||||
return array( 'acf-field-group', 'acf-post-type', 'acf-taxonomy' );
|
||||
return array( 'acf-field-group', 'acf-post-type', 'acf-taxonomy', 'acf-ui-options-page' );
|
||||
}
|
||||
|
||||
/*
|
||||
@ -629,6 +629,7 @@ function acf_get_post_types( $args = array() ) {
|
||||
$exclude[] = 'acf-field-group';
|
||||
$exclude[] = 'acf-post-type';
|
||||
$exclude[] = 'acf-taxonomy';
|
||||
$exclude[] = 'acf-ui-options-page';
|
||||
|
||||
// Get post type objects.
|
||||
$objects = get_post_types( $args, 'objects' );
|
||||
|
@ -471,7 +471,7 @@ if ( ! class_exists( 'ACF_Assets' ) ) :
|
||||
'post_id' => acf_get_form_data( 'post_id' ),
|
||||
'validation' => acf_get_form_data( 'validation' ),
|
||||
'editor' => acf_is_block_editor() ? 'block' : 'classic',
|
||||
'is_pro' => defined( 'ACF_PRO' ) && ACF_PRO,
|
||||
'is_pro' => acf_is_pro(),
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -483,7 +483,7 @@ if ( ! class_exists( 'ACF_Internal_Post_Type' ) ) {
|
||||
|
||||
// Make a backup of internal post type data and remove some args.
|
||||
$_post = $post;
|
||||
acf_extract_vars( $_post, array( 'ID', 'key', 'title', 'menu_order', 'fields', 'active', '_valid' ) );
|
||||
acf_extract_vars( $_post, array( 'ID', 'key', 'title', 'menu_order', 'fields', 'active', '_valid', '_parent' ) );
|
||||
|
||||
// Create array of data to save.
|
||||
$save = array(
|
||||
@ -499,6 +499,10 @@ if ( ! class_exists( 'ACF_Internal_Post_Type' ) ) {
|
||||
'ping_status' => 'closed',
|
||||
);
|
||||
|
||||
if ( ! empty( $post['_parent'] ) ) {
|
||||
$save['post_parent'] = (int) $post['_parent'];
|
||||
}
|
||||
|
||||
// Unhook wp_targeted_link_rel() filter from WP 5.1 corrupting serialized data.
|
||||
remove_filter( 'content_save_pre', 'wp_targeted_link_rel' );
|
||||
|
||||
|
@ -409,6 +409,7 @@ function acf_get_combined_field_type_settings_tabs() {
|
||||
'validation' => __( 'Validation', 'acf' ),
|
||||
'presentation' => __( 'Presentation', 'acf' ),
|
||||
'conditional_logic' => __( 'Conditional Logic', 'acf' ),
|
||||
'advanced' => __( 'Advanced', 'acf' ),
|
||||
);
|
||||
|
||||
$field_type_settings_tabs = (array) apply_filters( 'acf/field_group/additional_field_settings_tabs', array() );
|
||||
|
@ -316,17 +316,7 @@ if ( ! class_exists( 'acf_field_button_group' ) ) :
|
||||
$schema['default'] = $field['default_value'];
|
||||
}
|
||||
|
||||
/**
|
||||
* If a user has defined keys for the buttons,
|
||||
* we should use the keys for the available options to POST to,
|
||||
* since they are what is displayed in GET requests.
|
||||
*/
|
||||
$button_keys = array_diff(
|
||||
array_keys( $field['choices'] ),
|
||||
array_values( $field['choices'] )
|
||||
);
|
||||
|
||||
$schema['enum'] = empty( $button_keys ) ? $field['choices'] : $button_keys;
|
||||
$schema['enum'] = acf_get_field_type( 'select' )->format_rest_choices( $field['choices'] );
|
||||
$schema['enum'][] = null;
|
||||
|
||||
// Allow null via UI will value to empty string.
|
||||
|
@ -626,23 +626,7 @@ if ( ! class_exists( 'acf_field_checkbox' ) ) :
|
||||
return $schema;
|
||||
}
|
||||
|
||||
/**
|
||||
* If a user has defined keys for the checkboxes,
|
||||
* we should use the keys for the available options to POST to,
|
||||
* since they are what is displayed in GET requests.
|
||||
*/
|
||||
$checkbox_keys = array_map(
|
||||
'strval',
|
||||
array_diff(
|
||||
array_keys( $field['choices'] ),
|
||||
array_values( $field['choices'] )
|
||||
)
|
||||
);
|
||||
|
||||
// Support users passing integers for the keys as well.
|
||||
$checkbox_keys = array_merge( $checkbox_keys, array_map( 'intval', array_keys( $field['choices'] ) ) );
|
||||
|
||||
$schema['items']['enum'] = empty( $checkbox_keys ) ? $field['choices'] : $checkbox_keys;
|
||||
$schema['items']['enum'] = acf_get_field_type( 'select' )->format_rest_choices( $field['choices'] );
|
||||
|
||||
return $schema;
|
||||
}
|
||||
|
@ -5,22 +5,14 @@ if ( ! class_exists( 'acf_field_post_object' ) ) :
|
||||
class acf_field_post_object extends acf_field {
|
||||
|
||||
|
||||
/*
|
||||
* __construct
|
||||
*
|
||||
* This function will setup the field type data
|
||||
*
|
||||
* @type function
|
||||
* @date 5/03/2014
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param n/a
|
||||
* @return n/a
|
||||
*/
|
||||
|
||||
function initialize() {
|
||||
|
||||
// vars
|
||||
/**
|
||||
* This function will setup the field type data
|
||||
*
|
||||
* @type function
|
||||
* @date 5/03/2014
|
||||
* @since 5.0.0
|
||||
*/
|
||||
public function initialize() {
|
||||
$this->name = 'post_object';
|
||||
$this->label = __( 'Post Object', 'acf' );
|
||||
$this->category = 'relational';
|
||||
@ -28,12 +20,13 @@ if ( ! class_exists( 'acf_field_post_object' ) ) :
|
||||
$this->preview_image = acf_get_url() . '/assets/images/field-type-previews/field-preview-post-object.png';
|
||||
$this->doc_url = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/post-object/', 'docs', 'field-type-selection' );
|
||||
$this->defaults = array(
|
||||
'post_type' => array(),
|
||||
'taxonomy' => array(),
|
||||
'allow_null' => 0,
|
||||
'multiple' => 0,
|
||||
'return_format' => 'object',
|
||||
'ui' => 1,
|
||||
'post_type' => array(),
|
||||
'taxonomy' => array(),
|
||||
'allow_null' => 0,
|
||||
'multiple' => 0,
|
||||
'return_format' => 'object',
|
||||
'ui' => 1,
|
||||
'bidirectional_target' => array(),
|
||||
);
|
||||
|
||||
// extra
|
||||
@ -461,6 +454,18 @@ if ( ! class_exists( 'acf_field_post_object' ) ) :
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the field settings used in the "Advanced" tab.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param array $field The field settings array.
|
||||
* @return void
|
||||
*/
|
||||
public function render_field_advanced_settings( $field ) {
|
||||
acf_render_bidirectional_field_settings( $field );
|
||||
}
|
||||
|
||||
/*
|
||||
* load_value()
|
||||
*
|
||||
@ -535,26 +540,22 @@ if ( ! class_exists( 'acf_field_post_object' ) ) :
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* update_value()
|
||||
*
|
||||
* This filter is appied to the $value before it is updated in the db
|
||||
*
|
||||
* @type filter
|
||||
* @since 3.6
|
||||
* @date 23/01/13
|
||||
*
|
||||
* @param $value - the value which will be saved in the database
|
||||
* @param $post_id - the $post_id of which the value will be saved
|
||||
* @param $field - the field array holding all the field options
|
||||
*
|
||||
* @return $value - the modified value
|
||||
*/
|
||||
|
||||
function update_value( $value, $post_id, $field ) {
|
||||
/**
|
||||
* Filters the field value before it is saved into the database.
|
||||
*
|
||||
* @since 3.6
|
||||
*
|
||||
* @param mixed $value The value which will be saved in the database.
|
||||
* @param int $post_id The post_id of which the value will be saved.
|
||||
* @param array $field The field array holding all the field options.
|
||||
*
|
||||
* @return mixed $value The modified value.
|
||||
*/
|
||||
public function update_value( $value, $post_id, $field ) {
|
||||
|
||||
// Bail early if no value.
|
||||
if ( empty( $value ) ) {
|
||||
acf_update_bidirectional_values( array(), $post_id, $field );
|
||||
return $value;
|
||||
}
|
||||
|
||||
@ -570,7 +571,8 @@ if ( ! class_exists( 'acf_field_post_object' ) ) :
|
||||
$value = acf_idval( $value );
|
||||
}
|
||||
|
||||
// Return value.
|
||||
acf_update_bidirectional_values( acf_get_array( $value ), $post_id, $field );
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
|
@ -472,17 +472,8 @@ if ( ! class_exists( 'acf_field_radio' ) ) :
|
||||
return $schema;
|
||||
}
|
||||
|
||||
/**
|
||||
* If a user has defined keys for the radio options,
|
||||
* we should use the keys for the available options to POST to,
|
||||
* since they are what is displayed in GET requests.
|
||||
*/
|
||||
$radio_keys = array_diff(
|
||||
array_keys( $field['choices'] ),
|
||||
array_values( $field['choices'] )
|
||||
);
|
||||
$schema['enum'] = acf_get_field_type( 'select' )->format_rest_choices( $field['choices'] );
|
||||
|
||||
$schema['enum'] = empty( $radio_keys ) ? $field['choices'] : $radio_keys;
|
||||
if ( ! empty( $field['allow_null'] ) ) {
|
||||
$schema['enum'][] = null;
|
||||
}
|
||||
|
@ -5,22 +5,14 @@ if ( ! class_exists( 'acf_field_relationship' ) ) :
|
||||
class acf_field_relationship extends acf_field {
|
||||
|
||||
|
||||
/*
|
||||
* __construct
|
||||
*
|
||||
* This function will setup the field type data
|
||||
*
|
||||
* @type function
|
||||
* @date 5/03/2014
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param n/a
|
||||
* @return n/a
|
||||
*/
|
||||
|
||||
function initialize() {
|
||||
|
||||
// vars
|
||||
/**
|
||||
* This function will setup the field type data
|
||||
*
|
||||
* @type function
|
||||
* @date 5/03/2014
|
||||
* @since 5.0.0
|
||||
*/
|
||||
public function initialize() {
|
||||
$this->name = 'relationship';
|
||||
$this->label = __( 'Relationship', 'acf' );
|
||||
$this->category = 'relational';
|
||||
@ -28,13 +20,14 @@ if ( ! class_exists( 'acf_field_relationship' ) ) :
|
||||
$this->preview_image = acf_get_url() . '/assets/images/field-type-previews/field-preview-relationship.png';
|
||||
$this->doc_url = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/relationship/', 'docs', 'field-type-selection' );
|
||||
$this->defaults = array(
|
||||
'post_type' => array(),
|
||||
'taxonomy' => array(),
|
||||
'min' => 0,
|
||||
'max' => 0,
|
||||
'filters' => array( 'search', 'post_type', 'taxonomy' ),
|
||||
'elements' => array(),
|
||||
'return_format' => 'object',
|
||||
'post_type' => array(),
|
||||
'taxonomy' => array(),
|
||||
'min' => 0,
|
||||
'max' => 0,
|
||||
'filters' => array( 'search', 'post_type', 'taxonomy' ),
|
||||
'elements' => array(),
|
||||
'return_format' => 'object',
|
||||
'bidirectional_target' => array(),
|
||||
);
|
||||
|
||||
// extra
|
||||
@ -711,6 +704,18 @@ if ( ! class_exists( 'acf_field_relationship' ) ) :
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the field settings used in the "Advanced" tab.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param array $field The field settings array.
|
||||
* @return void
|
||||
*/
|
||||
public function render_field_advanced_settings( $field ) {
|
||||
acf_render_bidirectional_field_settings( $field );
|
||||
}
|
||||
|
||||
/*
|
||||
* format_value()
|
||||
*
|
||||
@ -798,23 +803,21 @@ if ( ! class_exists( 'acf_field_relationship' ) ) :
|
||||
|
||||
|
||||
/**
|
||||
* update_value()
|
||||
* Filters the field value before it is saved into the database.
|
||||
*
|
||||
* This filter is applied to the $value before it is updated in the db
|
||||
* @since 3.6
|
||||
*
|
||||
* @type filter
|
||||
* @since 3.6
|
||||
* @date 23/01/13
|
||||
* @param mixed $value The value which will be saved in the database.
|
||||
* @param int $post_id The post_id of which the value will be saved.
|
||||
* @param array $field The field array holding all the field options.
|
||||
*
|
||||
* @param $value - the value which will be saved in the database
|
||||
* @param $post_id - the post_id of which the value will be saved
|
||||
* @param $field - the field array holding all the field options
|
||||
*
|
||||
* @return $value - the modified value
|
||||
* @return mixed $value The modified value.
|
||||
*/
|
||||
function update_value( $value, $post_id, $field ) {
|
||||
public function update_value( $value, $post_id, $field ) {
|
||||
|
||||
// Bail early if no value.
|
||||
if ( empty( $value ) ) {
|
||||
acf_update_bidirectional_values( array(), $post_id, $field );
|
||||
return $value;
|
||||
}
|
||||
|
||||
@ -830,6 +833,8 @@ if ( ! class_exists( 'acf_field_relationship' ) ) :
|
||||
$value = acf_idval( $value );
|
||||
}
|
||||
|
||||
acf_update_bidirectional_values( acf_get_array( $value ), $post_id, $field );
|
||||
|
||||
// Return value.
|
||||
return $value;
|
||||
}
|
||||
|
@ -154,22 +154,15 @@ if ( ! class_exists( 'acf_field_select' ) ) :
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* get_ajax_query
|
||||
*
|
||||
* This function will return an array of data formatted for use in a select2 AJAX response
|
||||
*
|
||||
* @type function
|
||||
* @date 15/10/2014
|
||||
* @since 5.0.9
|
||||
*
|
||||
* @param $options (array)
|
||||
* @return (array)
|
||||
*/
|
||||
|
||||
function get_ajax_query( $options = array() ) {
|
||||
|
||||
// defaults
|
||||
/**
|
||||
* This function will return an array of data formatted for use in a select2 AJAX response
|
||||
*
|
||||
* @since 5.0.9
|
||||
*
|
||||
* @param array $options An array of options.
|
||||
* @return array A select2 compatible array of options.
|
||||
*/
|
||||
public function get_ajax_query( $options = array() ) {
|
||||
$options = acf_parse_args(
|
||||
$options,
|
||||
array(
|
||||
@ -180,23 +173,28 @@ if ( ! class_exists( 'acf_field_select' ) ) :
|
||||
)
|
||||
);
|
||||
|
||||
// load field
|
||||
$shortcut = apply_filters( 'acf/fields/select/query', array(), $options );
|
||||
$shortcut = apply_filters( 'acf/fields/select/query/key=' . $options['field_key'], $shortcut, $options );
|
||||
if ( ! empty( $shortcut ) ) {
|
||||
return $shortcut;
|
||||
}
|
||||
|
||||
// load field.
|
||||
$field = acf_get_field( $options['field_key'] );
|
||||
if ( ! $field ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// get choices
|
||||
// get choices.
|
||||
$choices = acf_get_array( $field['choices'] );
|
||||
if ( empty( $field['choices'] ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// vars
|
||||
$results = array();
|
||||
$s = null;
|
||||
|
||||
// search
|
||||
// search.
|
||||
if ( $options['s'] !== '' ) {
|
||||
|
||||
// strip slashes (search may be integer)
|
||||
@ -205,18 +203,17 @@ if ( ! class_exists( 'acf_field_select' ) ) :
|
||||
|
||||
}
|
||||
|
||||
// loop
|
||||
foreach ( $field['choices'] as $k => $v ) {
|
||||
|
||||
// ensure $v is a string
|
||||
// ensure $v is a string.
|
||||
$v = strval( $v );
|
||||
|
||||
// if searching, but doesn't exist
|
||||
// if searching, but doesn't exist.
|
||||
if ( is_string( $s ) && stripos( $v, $s ) === false ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// append
|
||||
// append results.
|
||||
$results[] = array(
|
||||
'id' => $k,
|
||||
'text' => $v,
|
||||
@ -224,14 +221,11 @@ if ( ! class_exists( 'acf_field_select' ) ) :
|
||||
|
||||
}
|
||||
|
||||
// vars
|
||||
$response = array(
|
||||
'results' => $results,
|
||||
);
|
||||
|
||||
// return
|
||||
return $response;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -698,29 +692,53 @@ if ( ! class_exists( 'acf_field_select' ) ) :
|
||||
return $valid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Formats the choices available for the REST API.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param array $choices The choices for the field.
|
||||
* @return array
|
||||
*/
|
||||
public function format_rest_choices( $choices ) {
|
||||
$keys = array_keys( $choices );
|
||||
$values = array_values( $choices );
|
||||
$int_choices = array();
|
||||
|
||||
if ( array_diff( $keys, $values ) ) {
|
||||
// User has specified custom keys.
|
||||
$choices = $keys;
|
||||
} else {
|
||||
// Default keys, same as value.
|
||||
$choices = $values;
|
||||
}
|
||||
|
||||
// Assume everything is a string by default.
|
||||
$choices = array_map( 'strval', $choices );
|
||||
|
||||
// Also allow integers if is_numeric().
|
||||
foreach ( $choices as $choice ) {
|
||||
if ( is_numeric( $choice ) ) {
|
||||
$int_choices[] = (int) $choice;
|
||||
}
|
||||
}
|
||||
|
||||
return array_merge( $choices, $int_choices );
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the schema array for the REST API.
|
||||
*
|
||||
* @param array $field
|
||||
* @param array $field The main field array.
|
||||
* @return array
|
||||
*/
|
||||
public function get_rest_schema( array $field ) {
|
||||
/**
|
||||
* If a user has defined keys for the select options,
|
||||
* we should use the keys for the available options to POST to,
|
||||
* since they are what is displayed in GET requests.
|
||||
*/
|
||||
$option_keys = array_diff(
|
||||
array_keys( $field['choices'] ),
|
||||
array_values( $field['choices'] )
|
||||
);
|
||||
|
||||
$schema = array(
|
||||
'type' => array( 'string', 'array', 'int', 'null' ),
|
||||
'required' => ! empty( $field['required'] ),
|
||||
'items' => array(
|
||||
'type' => array( 'string', 'int' ),
|
||||
'enum' => empty( $option_keys ) ? $field['choices'] : $option_keys,
|
||||
'enum' => $this->format_rest_choices( $field['choices'] ),
|
||||
),
|
||||
);
|
||||
|
||||
|
@ -8,22 +8,14 @@ if ( ! class_exists( 'acf_field_taxonomy' ) ) :
|
||||
var $save_post_terms = array();
|
||||
|
||||
|
||||
/*
|
||||
* __construct
|
||||
*
|
||||
* This function will setup the field type data
|
||||
*
|
||||
* @type function
|
||||
* @date 5/03/2014
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param n/a
|
||||
* @return n/a
|
||||
*/
|
||||
|
||||
function initialize() {
|
||||
|
||||
// vars
|
||||
/**
|
||||
* This function will setup the field type data
|
||||
*
|
||||
* @type function
|
||||
* @date 5/03/2014
|
||||
* @since 5.0.0
|
||||
*/
|
||||
public function initialize() {
|
||||
$this->name = 'taxonomy';
|
||||
$this->label = __( 'Taxonomy', 'acf' );
|
||||
$this->category = 'relational';
|
||||
@ -31,14 +23,15 @@ if ( ! class_exists( 'acf_field_taxonomy' ) ) :
|
||||
$this->preview_image = acf_get_url() . '/assets/images/field-type-previews/field-preview-taxonomy.png';
|
||||
$this->doc_url = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/taxonomy/', 'docs', 'field-type-selection' );
|
||||
$this->defaults = array(
|
||||
'taxonomy' => 'category',
|
||||
'field_type' => 'checkbox',
|
||||
'multiple' => 0,
|
||||
'allow_null' => 0,
|
||||
'return_format' => 'id',
|
||||
'add_term' => 1, // 5.2.3
|
||||
'load_terms' => 0, // 5.2.7
|
||||
'save_terms' => 0, // 5.2.7
|
||||
'taxonomy' => 'category',
|
||||
'field_type' => 'checkbox',
|
||||
'multiple' => 0,
|
||||
'allow_null' => 0,
|
||||
'return_format' => 'id',
|
||||
'add_term' => 1, // 5.2.3
|
||||
'load_terms' => 0, // 5.2.7
|
||||
'save_terms' => 0, // 5.2.7
|
||||
'bidirectional_target' => array(),
|
||||
);
|
||||
|
||||
// Register filter variations.
|
||||
@ -246,7 +239,7 @@ if ( ! class_exists( 'acf_field_taxonomy' ) ) :
|
||||
* @param array $field The field settings.
|
||||
* @param (int|string) $post_id The post_id being edited.
|
||||
*/
|
||||
return apply_filters( 'acf/fields/taxonomy/result', $title, $term, $field, $post_id );
|
||||
return apply_filters( 'acf/fields/taxonomy/result', $title, $term, $field, $post_id );
|
||||
}
|
||||
|
||||
|
||||
@ -374,60 +367,50 @@ if ( ! class_exists( 'acf_field_taxonomy' ) ) :
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* update_value()
|
||||
*
|
||||
* This filter is appied to the $value before it is updated in the db
|
||||
*
|
||||
* @type filter
|
||||
* @since 3.6
|
||||
* @date 23/01/13
|
||||
*
|
||||
* @param $value - the value which will be saved in the database
|
||||
* @param $field - the field array holding all the field options
|
||||
* @param $post_id - the $post_id of which the value will be saved
|
||||
*
|
||||
* @return $value - the modified value
|
||||
*/
|
||||
/**
|
||||
* Filters the field value before it is saved into the database.
|
||||
*
|
||||
* @since 3.6
|
||||
*
|
||||
* @param mixed $value The value which will be saved in the database.
|
||||
* @param int $post_id The post_id of which the value will be saved.
|
||||
* @param array $field The field array holding all the field options.
|
||||
*
|
||||
* @return mixed $value The modified value.
|
||||
*/
|
||||
public function update_value( $value, $post_id, $field ) {
|
||||
|
||||
function update_value( $value, $post_id, $field ) {
|
||||
|
||||
// vars
|
||||
if ( is_array( $value ) ) {
|
||||
|
||||
$value = array_filter( $value );
|
||||
|
||||
}
|
||||
|
||||
// save_terms
|
||||
acf_update_bidirectional_values( acf_get_array( $value ), $post_id, $field, 'term' );
|
||||
|
||||
// save_terms if enabled.
|
||||
if ( $field['save_terms'] ) {
|
||||
|
||||
// vars
|
||||
$taxonomy = $field['taxonomy'];
|
||||
|
||||
// force value to array
|
||||
// force value to array.
|
||||
$term_ids = acf_get_array( $value );
|
||||
|
||||
// convert to int
|
||||
// convert to int.
|
||||
$term_ids = array_map( 'intval', $term_ids );
|
||||
|
||||
// get existing term id's (from a previously saved field)
|
||||
// get existing term id's (from a previously saved field).
|
||||
$old_term_ids = isset( $this->save_post_terms[ $taxonomy ] ) ? $this->save_post_terms[ $taxonomy ] : array();
|
||||
|
||||
// append
|
||||
$this->save_post_terms[ $taxonomy ] = array_merge( $old_term_ids, $term_ids );
|
||||
|
||||
// if called directly from frontend update_field()
|
||||
// if called directly from frontend update_field().
|
||||
if ( ! did_action( 'acf/save_post' ) ) {
|
||||
|
||||
$this->save_post( $post_id );
|
||||
|
||||
return $value;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// return
|
||||
return $value;
|
||||
|
||||
}
|
||||
@ -800,6 +783,18 @@ if ( ! class_exists( 'acf_field_taxonomy' ) ) :
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the field settings used in the "Advanced" tab.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param array $field The field settings array.
|
||||
* @return void
|
||||
*/
|
||||
public function render_field_advanced_settings( $field ) {
|
||||
acf_render_bidirectional_field_settings( $field );
|
||||
}
|
||||
|
||||
/*
|
||||
* ajax_add_term
|
||||
*
|
||||
|
@ -9,13 +9,8 @@ if ( ! class_exists( 'ACF_Field_User' ) ) :
|
||||
*
|
||||
* @date 5/03/2014
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param void
|
||||
* @return void
|
||||
*/
|
||||
function initialize() {
|
||||
|
||||
// Props.
|
||||
$this->name = 'user';
|
||||
$this->label = __( 'User', 'acf' );
|
||||
$this->category = 'relational';
|
||||
@ -23,10 +18,11 @@ if ( ! class_exists( 'ACF_Field_User' ) ) :
|
||||
$this->preview_image = acf_get_url() . '/assets/images/field-type-previews/field-preview-user.png';
|
||||
$this->doc_url = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/user/', 'docs', 'field-type-selection' );
|
||||
$this->defaults = array(
|
||||
'role' => '',
|
||||
'multiple' => 0,
|
||||
'allow_null' => 0,
|
||||
'return_format' => 'array',
|
||||
'role' => '',
|
||||
'multiple' => 0,
|
||||
'allow_null' => 0,
|
||||
'return_format' => 'array',
|
||||
'bidirectional_target' => array(),
|
||||
);
|
||||
|
||||
// Register filter variations.
|
||||
@ -113,6 +109,18 @@ if ( ! class_exists( 'ACF_Field_User' ) ) :
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the field settings used in the "Advanced" tab.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param array $field The field settings array.
|
||||
* @return void
|
||||
*/
|
||||
public function render_field_advanced_settings( $field ) {
|
||||
acf_render_bidirectional_field_settings( $field );
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the field input HTML.
|
||||
*
|
||||
@ -286,18 +294,19 @@ if ( ! class_exists( 'ACF_Field_User' ) ) :
|
||||
/**
|
||||
* Filters the field value before it is saved into the database.
|
||||
*
|
||||
* @date 23/01/13
|
||||
* @since 3.6.0
|
||||
*
|
||||
* @param mixed $value The field value.
|
||||
* @param mixed $post_id The post ID where the value is saved.
|
||||
* @param array $field The field array containing all settings.
|
||||
* @return mixed
|
||||
*
|
||||
* @return mixed $value The modified value.
|
||||
*/
|
||||
function update_value( $value, $post_id, $field ) {
|
||||
public function update_value( $value, $post_id, $field ) {
|
||||
|
||||
// Bail early if no value.
|
||||
if ( empty( $value ) ) {
|
||||
acf_update_bidirectional_values( array(), $post_id, $field, 'user' );
|
||||
return $value;
|
||||
}
|
||||
|
||||
@ -313,6 +322,8 @@ if ( ! class_exists( 'ACF_Field_User' ) ) :
|
||||
$value = acf_idval( $value );
|
||||
}
|
||||
|
||||
acf_update_bidirectional_values( acf_get_array( $value ), $post_id, $field, 'user' );
|
||||
|
||||
// Return value.
|
||||
return $value;
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ acf_register_store( 'local-groups' );
|
||||
acf_register_store( 'local-empty' );
|
||||
acf_register_store( 'local-post-types' );
|
||||
acf_register_store( 'local-taxonomies' );
|
||||
acf_register_store( 'local-ui-options-pages' );
|
||||
|
||||
// Register filter.
|
||||
acf_enable_filter( 'local' );
|
||||
@ -80,6 +81,9 @@ function acf_get_local_store( $name = '', $post_type = '' ) {
|
||||
case 'acf-field':
|
||||
$name = 'fields';
|
||||
break;
|
||||
case 'acf-ui-options-page':
|
||||
$name = 'ui-options-pages';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -648,6 +652,7 @@ function _acf_apply_get_local_internal_posts( $posts = array(), $post_type = 'ac
|
||||
add_filter( 'acf/load_field_groups', '_acf_apply_get_local_internal_posts', 20, 2 );
|
||||
add_filter( 'acf/load_post_types', '_acf_apply_get_local_internal_posts', 20, 2 );
|
||||
add_filter( 'acf/load_taxonomies', '_acf_apply_get_local_internal_posts', 20, 2 );
|
||||
add_filter( 'acf/load_ui_options_pages', '_acf_apply_get_local_internal_posts', 20, 2 );
|
||||
|
||||
/**
|
||||
* _acf_apply_is_local_field_key
|
||||
|
@ -41,7 +41,7 @@ if ( ! class_exists( 'ACF_Local_JSON' ) ) :
|
||||
add_action( 'acf/trash_post_type', array( $this, 'delete_internal_post_type' ) );
|
||||
add_action( 'acf/delete_post_type', array( $this, 'delete_internal_post_type' ) );
|
||||
add_action( 'acf/update_taxonomy', array( $this, 'update_internal_post_type' ) );
|
||||
add_action( 'acf/untrash/taxonomy', array( $this, 'update_internal_post_type' ) );
|
||||
add_action( 'acf/untrash_taxonomy', array( $this, 'update_internal_post_type' ) );
|
||||
add_action( 'acf/trash_taxonomy', array( $this, 'delete_internal_post_type' ) );
|
||||
add_action( 'acf/delete_taxonomy', array( $this, 'delete_internal_post_type' ) );
|
||||
|
||||
@ -64,6 +64,60 @@ if ( ! class_exists( 'ACF_Local_JSON' ) ) :
|
||||
return (bool) acf_get_setting( 'json' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the path(s) to load JSON from.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function get_load_paths() {
|
||||
$paths = (array) acf_get_setting( 'load_json' );
|
||||
|
||||
/**
|
||||
* Filters the path(s) used to load JSON from.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param array $paths An array of potential paths to load JSON from.
|
||||
* @return array
|
||||
*/
|
||||
return (array) apply_filters( 'acf/json/load_paths', $paths );
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the path(s) to save JSON to.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param string $key The key to get paths for (optional).
|
||||
* @param array $post The main ACF post array (optional).
|
||||
* @return array
|
||||
*/
|
||||
public function get_save_paths( $key = '', $post = array() ) {
|
||||
$name = ! empty( $post['title'] ) ? (string) $post['title'] : '';
|
||||
$post_type = acf_determine_internal_post_type( $key );
|
||||
$paths = array();
|
||||
|
||||
// Paths are sorted by priority, with key overriding name, etc.
|
||||
$paths[] = acf_get_setting( "save_json/key={$key}" );
|
||||
$paths[] = acf_get_setting( "save_json/name={$name}" );
|
||||
$paths[] = acf_get_setting( "save_json/type={$post_type}" );
|
||||
$paths[] = acf_get_setting( 'save_json' );
|
||||
$paths = array_values( array_filter( $paths ) );
|
||||
|
||||
/**
|
||||
* Filters the paths used to save JSON.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param array $paths An array of the potential paths to save JSON to.
|
||||
* @param array $post The ACF field group, post type, or taxonomy array.
|
||||
* @return array
|
||||
*/
|
||||
return (array) apply_filters( 'acf/json/save_paths', $paths, $post );
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes field group data to JSON file.
|
||||
*
|
||||
@ -141,7 +195,7 @@ if ( ! class_exists( 'ACF_Local_JSON' ) ) :
|
||||
// WP appends '__trashed' to the end of 'key' (post_name).
|
||||
$key = str_replace( '__trashed', '', $post['key'] );
|
||||
|
||||
return $this->delete_file( $key );
|
||||
return $this->delete_file( $key, $post );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -240,8 +294,7 @@ if ( ! class_exists( 'ACF_Local_JSON' ) ) :
|
||||
$json_files = array();
|
||||
|
||||
// Loop over "local_json" paths and parse JSON files.
|
||||
$paths = (array) acf_get_setting( 'load_json' );
|
||||
foreach ( $paths as $path ) {
|
||||
foreach ( $this->get_load_paths() as $path ) {
|
||||
if ( is_dir( $path ) ) {
|
||||
$files = scandir( $path );
|
||||
if ( $files ) {
|
||||
@ -326,9 +379,64 @@ if ( ! class_exists( 'ACF_Local_JSON' ) ) :
|
||||
* @return bool
|
||||
*/
|
||||
public function save_file( $key, $post ) {
|
||||
$path = acf_get_setting( 'save_json' );
|
||||
$file = untrailingslashit( $path ) . '/' . $key . '.json';
|
||||
if ( ! is_writable( $path ) ) {
|
||||
$paths = $this->get_save_paths( $key, $post );
|
||||
$file = false;
|
||||
$first_writable = false;
|
||||
$load_path = '';
|
||||
|
||||
if ( is_array( $this->files ) && isset( $this->files[ $key ] ) ) {
|
||||
$load_path = $this->files[ $key ];
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the filename used when saving JSON.
|
||||
*
|
||||
* @since 6.2
|
||||
*
|
||||
* @param string $filename The default filename.
|
||||
* @param array $post The main post array for the item being saved.
|
||||
* @param string $load_path The path that the item was loaded from.
|
||||
*/
|
||||
$filename = apply_filters( 'acf/json/save_file_name', $key . '.json', $post, $load_path );
|
||||
|
||||
if ( ! is_string( $filename ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$filename = sanitize_file_name( $filename );
|
||||
|
||||
// sanitize_file_name() can potentially remove all characters.
|
||||
if ( empty( $filename ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach ( $paths as $path ) {
|
||||
if ( ! is_writable( $path ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( false === $first_writable ) {
|
||||
$first_writable = $path;
|
||||
}
|
||||
|
||||
$file_to_check = trailingslashit( $path ) . $filename;
|
||||
|
||||
if ( is_file( $file_to_check ) ) {
|
||||
$file = $file_to_check;
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! $file ) {
|
||||
if ( $first_writable ) {
|
||||
$file = trailingslashit( $first_writable ) . $filename;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure this is a valid ACF post type.
|
||||
$post_type = acf_determine_internal_post_type( $key );
|
||||
if ( ! $post_type ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -339,18 +447,12 @@ if ( ! class_exists( 'ACF_Local_JSON' ) ) :
|
||||
$post['modified'] = strtotime( 'now' );
|
||||
}
|
||||
|
||||
$post_type = acf_determine_internal_post_type( $key );
|
||||
// Prepare for export and save the file.
|
||||
$post = acf_prepare_internal_post_type_for_export( $post, $post_type );
|
||||
$result = file_put_contents( $file, acf_json_encode( $post ) . apply_filters( 'acf/json/eof_newline', PHP_EOL ) );
|
||||
|
||||
if ( $post_type ) {
|
||||
// Prepare for export and save the file.
|
||||
$post = acf_prepare_internal_post_type_for_export( $post, $post_type );
|
||||
$result = file_put_contents( $file, acf_json_encode( $post ) . "\r\n" );
|
||||
|
||||
// Return true if bytes were written.
|
||||
return is_int( $result );
|
||||
}
|
||||
|
||||
return false;
|
||||
// Return true if bytes were written.
|
||||
return is_int( $result );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -359,17 +461,22 @@ if ( ! class_exists( 'ACF_Local_JSON' ) ) :
|
||||
* @date 17/4/20
|
||||
* @since 5.9.0
|
||||
*
|
||||
* @param string $key The ACF post key.
|
||||
* @return bool True on success.
|
||||
* @param string $key The ACF post key.
|
||||
* @param array $post The main ACF post array.
|
||||
* @return bool
|
||||
*/
|
||||
public function delete_file( $key ) {
|
||||
$path = acf_get_setting( 'save_json' );
|
||||
$file = untrailingslashit( $path ) . '/' . $key . '.json';
|
||||
if ( is_readable( $file ) ) {
|
||||
unlink( $file );
|
||||
return true;
|
||||
public function delete_file( $key, $post = array() ) {
|
||||
$paths = $this->get_save_paths( $key, $post );
|
||||
|
||||
foreach ( $paths as $path_to_check ) {
|
||||
$file = untrailingslashit( $path_to_check ) . '/' . $key . '.json';
|
||||
|
||||
if ( is_writable( $file ) ) {
|
||||
wp_delete_file( $file );
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -360,7 +360,7 @@ if ( ! class_exists( 'ACF_Post_Type' ) ) {
|
||||
public function get_post_type_args( $post ) {
|
||||
$args = array();
|
||||
|
||||
// Make sure any provided labels are strings and not empty.
|
||||
// Make sure any provided labels are escaped strings and not empty.
|
||||
$labels = array_filter( $post['labels'] );
|
||||
$labels = array_map( 'strval', $labels );
|
||||
$labels = array_map( 'esc_html', $labels );
|
||||
|
@ -306,7 +306,7 @@ if ( ! class_exists( 'ACF_Taxonomy' ) ) {
|
||||
public function get_taxonomy_args( $post ) {
|
||||
$args = array();
|
||||
|
||||
// Make sure any provided labels are strings and not empty.
|
||||
// Make sure any provided labels are escaped strings and not empty.
|
||||
$labels = array_filter( $post['labels'] );
|
||||
$labels = array_map( 'strval', $labels );
|
||||
$labels = array_map( 'esc_html', $labels );
|
||||
|
@ -195,8 +195,10 @@ if ( ! class_exists( 'acf_validation' ) ) :
|
||||
$post_type = acf_request_arg( 'post_type', false );
|
||||
$screen = acf_request_arg( '_acf_screen', false );
|
||||
|
||||
if ( in_array( $screen, array( 'post_type', 'taxonomy' ), true ) && in_array( $post_type, array( 'acf-post-type', 'acf-taxonomy' ), true ) ) {
|
||||
if ( in_array( $screen, array( 'post_type', 'taxonomy', 'ui_options_page' ), true ) && in_array( $post_type, array( 'acf-post-type', 'acf-taxonomy', 'acf-ui-options-page' ), true ) ) {
|
||||
acf_validate_internal_post_type_values( $post_type );
|
||||
} elseif ( acf_request_arg( 'acf_ui_options_page' ) ) {
|
||||
acf_validate_internal_post_type_values( 'acf-ui-options-page' );
|
||||
} else {
|
||||
// Bail early if no matching $_POST.
|
||||
if ( empty( $_POST['acf'] ) ) {
|
||||
|
Binary file not shown.
@ -12,7 +12,7 @@
|
||||
# This file is distributed under the same license as Advanced Custom Fields.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"PO-Revision-Date: 2023-06-27T14:09:59+00:00\n"
|
||||
"PO-Revision-Date: 2023-08-09T12:53:50+00:00\n"
|
||||
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
|
||||
"Language: ar\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
Binary file not shown.
@ -12,7 +12,7 @@
|
||||
# This file is distributed under the same license as Advanced Custom Fields.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"PO-Revision-Date: 2023-06-27T14:09:59+00:00\n"
|
||||
"PO-Revision-Date: 2023-08-09T12:53:50+00:00\n"
|
||||
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
|
||||
"Language: bg_BG\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -12,7 +12,7 @@
|
||||
# This file is distributed under the same license as Advanced Custom Fields.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"PO-Revision-Date: 2023-06-27T14:09:59+00:00\n"
|
||||
"PO-Revision-Date: 2023-08-09T12:53:50+00:00\n"
|
||||
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
|
||||
"Language: de_CH\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -12,7 +12,7 @@
|
||||
# This file is distributed under the same license as Advanced Custom Fields.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"PO-Revision-Date: 2023-06-27T14:09:59+00:00\n"
|
||||
"PO-Revision-Date: 2023-08-09T12:53:50+00:00\n"
|
||||
"Report-Msgid-Bugs-To: http://support.advancedcustomfields.com\n"
|
||||
"Language: fi\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user