plugin_name . '_admin_options' ); do_settings_sections( $this->plugin_name . '_admin_options' ); $options = get_option( $this->plugin_name . '_admin_options' ); global $mlsimport; $settings_list = array( 'mlsimport_username' => array( 'name' => esc_html__( 'MLSImport.com Username (not your email)', 'mlsimport' ), 'details' => 'to be added', ), 'mlsimport_password' => array( 'name' => esc_html__( 'MLSImport.com Password', 'mlsimport'), 'details' => 'to be added', ), 'mlsimport_mls_name' => array( 'type' => 'select', 'name' => esc_html__( 'Your MLS', 'mlsimport'), 'details' => 'to be added', ), 'mlsimport_mls_token' => array( 'name' => esc_html__( 'Your API Server token - provided by your MLS','mlsimport'), 'details' => 'to be added', ), 'mlsimport_tresle_client_id' => array( 'name' => esc_html__( 'Your Trestle Client ID - provided by your MLS', 'mlsimport'), 'details' => 'to be added', ), 'mlsimport_tresle_client_secret' => array( 'name' => esc_html__( 'Your Trestle Client Secret - provided by your MLS', 'mlsimport' ), 'details' => 'to be added', ), 'mlsimport_connectmls_username' => array( 'name' => esc_html__( 'Your ConnectMLS Username - provided by your MLS', 'mlsimport' ), 'details' => 'to be added', ), 'mlsimport_connectmls_password' => array( 'name' => esc_html__( 'Your ConnectMLS Password - provided by your MLS', 'mlsimport' ), 'details' => 'to be added', ), 'mlsimport_rapattoni_client_id' => array( 'name' => esc_html__( 'MLSImport Rapattoni Client id', 'mlsimport' ), 'details' => 'to be added', ), 'mlsimport_rapattoni_client_secret' => array( 'name' => esc_html__( 'MLSImport Rapattoni Client Secret', 'mlsimport' ), 'details' => 'to be added', ), 'mlsimport_rapattoni_username' => array( 'name' => esc_html__( 'MLSImport Rapattoni Username', 'mlsimport' ), 'details' => 'to be added', ), 'mlsimport_rapattoni_password' => array( 'name' => esc_html__( 'MLSImport Rapattoni Client Password','mlsimport' ), 'details' => 'to be added', ), 'mlsimport_paragon_client_id' => array( 'name' => esc_html__( 'MLSImport Paragon Client id', 'mlsimport' ), 'details' => 'to be added', ), 'mlsimport_paragon_client_secret' => array( 'name' => esc_html__( 'MLSImport Paragon Client Secret', 'mlsimport' ), 'details' => 'to be added', ), 'mlsimport_realtorca_client_id' => array( 'name' => esc_html__( 'MLSImport Realtor.ca Client id', 'mlsimport' ), 'details' => 'to be added', ), 'mlsimport_realtorca_client_secret' => array( 'name' => esc_html__( 'MLSImport Realtor.ca Client Secret', 'mlsimport' ), 'details' => 'to be added', ), 'mlsimport_brightmls_client_id' => array( 'name' => esc_html__( 'Your BrightMLS Client ID - provided by your MLS', 'mlsimport' ), 'details' => 'to be added', ), 'mlsimport_brightmls_client_secret' => array( 'name' => esc_html__( 'Your BrightMLS Client Secret - provided by your MLS', 'mlsimport' ), 'details' => 'to be added', ), 'mlsimport_theme_used' => array( 'type' => 'select', 'name' => esc_html__( 'Your Wordpress Theme', 'mlsimport'), 'details' => 'to be added', ), ); ?> admin->mlsimport_saas_get_mls_api_token_from_transient(); $is_mls_connected = get_option( 'mlsimport_connection_test', '' ); $mlsimport->admin->mlsimport_saas_setting_up(); if ( 'yes' !== $is_mls_connected ) { $mlsimport->admin->mlsimport_saas_check_mls_connection(); $is_mls_connected = get_option( 'mlsimport_connection_test', '' ); } if ( trim( $token ) === '' ) { mlsimport_show_signup(); ?>
admin->mlsimport_saas_get_mls_api_token_from_transient(); $token_expiry = get_option('mlsimport_token_expiry', 0); $expiry_date = date('Y-m-d H:i:s', $token_expiry); $is_expired = time() >= $token_expiry; $status_color = $is_expired ? '#dc3545' : '#28a745'; $status_text = $is_expired ? 'EXPIRED' : 'VALID'; echo '
'; echo '

Current Token Status

'; echo '

Token: ' . esc_html(substr($current_token, 0, 20)) . '...

'; echo '

Status: ' . $status_text . '

'; echo '

Expires: ' . esc_html($expiry_date) . '

'; echo '
'; */ foreach ( $settings_list as $key => $setting ) { $value = ( isset( $options[ $key ] ) && ! empty( $options[ $key ] ) ) ? esc_attr( $options[ $key ] ) : ''; ?>
If your MLS is not on the list yet, requires manual activation, or if your credentials are not connecting, please contact us for support.
type="password" type="text" class="mlsimport-input mlsimport-2025-input " autocomplete="off" id="plugin_name . '_admin_options' ); ?>-" name="plugin_name . '_admin_options' ); ?>[]" value=""/>
'mlsimport_but' ); submit_button( __( 'Save Changes', 'mlsimport' ), 'mlsimport_button save_data', 'submit', true, $attributes ); ?>