wordpress/wp-content/themes/basic/themify/themify-builder/modules/module-map.php
/**
	 * Handles Ajax request to check map api
	 *
	 * @since 4.5.0
	 */
Handles Ajax request to check map api
@since 4.5.0
Handles Ajax request to check map api @since 4 . 5 . 0
public function check_map_api($values) {
		$googleAPI = themify_builder_get( 'setting-google_map_key', 'builder_settings_google_map_key' );
	    $values['google_api'] =  !empty($googleAPI);
		if(!$values['google_api']) {
		    $values['google_api_err'] = __('Please enter the required Google Maps API key.','themify');
		}
	    $bingAPI = themify_builder_get( 'setting-bing_map_key', 'builder_settings_bing_map_key' );
		$values['bing_api'] =  !empty($bingAPI);
		if(!$values['bing_api']) {
			$values['bing_api_err'] = __('Please enter the required Bing Maps API key.','themify');
		}
		return $values;
	}
public function check_map_api ( $ values ) { $ googleAPI = themify_builder_get ( 'setting-google_map_key' , 'builder_settings_google_map_key' ) ; $ values [ 'google_api' ] = ! empty ( $ googleAPI ) ; if ( ! $ values [ 'google_api' ] ) { $ values [ 'google_api_err' ] = __ ( 'Please enter the required Google Maps API key.' , 'themify' ) ; } $ bingAPI = themify_builder_get ( 'setting-bing_map_key' , 'builder_settings_bing_map_key' ) ; $ values [ 'bing_api' ] = ! empty ( $ bingAPI ) ; if ( ! $ values [ 'bing_api' ] ) { $ values [ 'bing_api_err' ] = __ ( 'Please enter the required Bing Maps API key.' , 'themify' ) ; } return $ values ; }
Handles Ajax request to check map api
 @since 4.5.0
Handles Ajax request to check map api @since 4 . 5 . 0