'acf-field-object acf-field-object-' . acf_slugify( $field['type'] ), 'data-id' => $field['ID'], 'data-key' => $field['key'], 'data-type' => $field['type'], ); // Add additional class if the field is an endpoint. if ( isset( $field['endpoint'] ) && $field['endpoint'] ) { $div_attrs['class'] .= ' acf-field-is-endpoint'; } // Misc template vars. $field_label = acf_get_field_label( $field, 'admin' ); $field_type_label = acf_get_field_type_label( $field['type'] ); $field_type_supports = acf_get_field_type_prop( $field['type'], 'supports' ); $inactive_field_class = ''; $inactive_field_title = ''; if ( acf_is_pro() && acf_get_field_type_prop( $field['type'], 'pro' ) ) { $div_attrs['class'] .= ' acf-pro-field-object'; } if ( acf_is_pro() && acf_get_field_type_prop( $field['type'], 'pro' ) && ! acf_pro_is_license_active() ) { $field_type_label .= 'PRO'; if ( ! acf_pro_is_license_expired() ) { $inactive_field_class = ' acf-js-tooltip'; $inactive_field_title = __( 'PRO fields cannot be edited without an active license.', 'acf' ); } } if ( ! isset( $num_field_groups ) ) { $num_field_groups = 0; } $conditional_logic_class = $conditional_logic_text = ''; if ( isset( $field['conditional_logic'] ) && is_array( $field['conditional_logic'] ) && count( $field['conditional_logic'] ) > 0 ) { $conditional_logic_class = ' is-enabled'; $conditional_logic_text = __( 'Active', 'acf' ); } ?>