version, 'all' ); wp_register_style( 'font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css', array(), $this->version ); wp_enqueue_style( 'listings-map-view-css' ); wp_enqueue_style( 'font-awesome' ); if ( 'Yes' === $google_map_script_loaded_or_not ) { wp_enqueue_script( 'google-map-js', "https://maps.googleapis.com/maps/api/js$google_map_api_key_pass", array( 'jquery' ) ); wp_enqueue_script( 'overlapping-marker-spiderfier', ARETK_CREA_PLUGIN_URL . 'public/js/oms.min.js', array( 'jquery', 'google-map-js' ), $this->version, false ); wp_enqueue_script( 'aretk-properties-map', ARETK_CREA_PLUGIN_URL . 'public/templates/listings/map-view/scripts.js', array( 'jquery', 'google-map-js', 'overlapping-marker-spiderfier' ), $this->version, false ); } else { wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/aretk-crea-admin.js', array( 'jquery' ), $this->version, false ); } $html .= '
'; if ( $display_searchbar === 'yes' ) { require_once ARETK_CREA_PLUGIN_PATH . 'public/templates/listings-search/template.php'; } if ( 'Yes' === $google_map_script_loaded_or_not ) { $html .= '
'; $html .= '
'; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= '
'; $html .= '
'; $html .= '
'; } else { $html .= '
'; $html .= '

Include Valid Google Map Api key in plugin settings and enable load api

'; $html .= '
'; }