plugin_name . '_admin_options' ); $mlsimport_mls_metadata_populated = get_option( 'mlsimport_mls_metadata_populated', '' ); $permited_tags=mlsimport_allowed_html_tags_content(); $post_type= ''; if (method_exists($this->env_data, 'get_property_post_type')) { $post_type = $this->env_data->get_property_post_type(); } $available_taxonomies = mlsimport_get_custom_post_type_taxonomies($post_type); if ( 'yes' === $mlsimport_mls_metadata_populated ) { ?>
plugin_name . '_admin_fields_select' ); do_settings_sections( $this->plugin_name . '_admin_fields_select' ); $options = get_option( $this->plugin_name . '_admin_fields_select' ); $mlsimport_mls_metadata_theme_schema = get_option( 'mlsimport_mls_metadata_theme_schema', '' ); $mlsimport_mls_metadata_mls_data = get_option( 'mlsimport_mls_metadata_mls_data', '' ); $mlsimport_mls_metadata_mls_data = json_decode( $mlsimport_mls_metadata_mls_data, true ); $theme_schema = $mlsimport_mls_metadata_theme_schema; $metadata_api_call_data_service_property = $mlsimport_mls_metadata_mls_data; global $mlsimport; $mlsimport->admin->mlsimport_saas_setting_up(); $mandatory_fields = ''; $non_mandatory_fields = ''; if(is_array($metadata_api_call_data_service_property)){ foreach ( $metadata_api_call_data_service_property as $key => $value ) { $description = 'no description '; $mandatory = 0; $is_checkbox = 0; $is_checkbox_admin = 0; if ( isset( $options['mls-fields'][ $key ] ) && 1 === intval( $options['mls-fields'][ $key ] ) ) { $is_checkbox = 1; } elseif ( ! isset( $options['mls-fields'][ $key ] ) ) { $is_checkbox = 1; } if ( isset( $options['mls-fields-admin'][ $key ] ) && 1 === intval( $options['mls-fields-admin'][ $key ]) ) { $is_checkbox_admin = 1; } if ( array_key_exists( $key, $theme_schema ) ) { $mandatory_fields .= '' . esc_html($key) . '
' . esc_html( $value ) . '
'; } else { $label_value = ''; if ( isset( $options['mls-fields-label'][ $key ] ) ) { $label_value = $options['mls-fields-label'][ $key ]; } if ( '' === $label_value ) { $label_value = $key; } $label_post_meta=''; if ( isset( $options['mls-fields-map-postmeta'][ $key ] ) ) { $label_post_meta = $options['mls-fields-map-postmeta'][ $key ]; } $label_tax_meta=''; if ( isset( $options['mls-fields-map-taxonomy'][ $key ] ) ) { $label_tax_meta = $options['mls-fields-map-taxonomy'][ $key ]; } $non_mandatory_fields .= '

' . esc_html($key) . '

'; if( $value !==''){ $non_mandatory_fields .= '
' . esc_html__( 'Explanation', 'mlsimport' ) . ': ' . stripslashes(esc_html( $value) ) . '
'; } $non_mandatory_fields .= '
'; } } } ?>

:

admin->mlsimport_saas_get_mls_api_token_from_transient(); if ( trim( $token ) !== '' ) { ?>
" />