Version Description
- Added: Text Editor for marker description
Download this release
Release Info
Developer | webdorado |
Plugin | WD Google Maps – Google Maps builder Plugin |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- admin/models/GMWDModel.php +9 -15
- admin/views/GMWDViewMarkers_gmwd.php +9 -6
- gmwd_admin_class.php +1 -1
- readme.txt +4 -1
- wd-google-maps.php +1 -1
admin/models/GMWDModel.php
CHANGED
@@ -72,27 +72,21 @@ class GMWDModel {
|
|
72 |
|
73 |
public static function column_types($table_name){
|
74 |
global $wpdb;
|
75 |
-
$query = "
|
76 |
$columns_data_types = $wpdb->get_results( $query );
|
77 |
|
78 |
|
79 |
$data_types = array();
|
80 |
foreach($columns_data_types as $column){
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
case "longtext" :
|
89 |
-
case "date" :
|
90 |
-
case "datetime" :
|
91 |
-
$data_types[$column->COLUMN_NAME] = '%s';
|
92 |
-
break;
|
93 |
-
}
|
94 |
}
|
95 |
-
|
96 |
return $data_types;
|
97 |
|
98 |
}
|
72 |
|
73 |
public static function column_types($table_name){
|
74 |
global $wpdb;
|
75 |
+
$query = "SHOW COLUMNS FROM " . $wpdb->prefix . $table_name ;
|
76 |
$columns_data_types = $wpdb->get_results( $query );
|
77 |
|
78 |
|
79 |
$data_types = array();
|
80 |
foreach($columns_data_types as $column){
|
81 |
+
if(strpos($column->Type, "int") !== false || strpos($column->Type, "tinyint") !== false){
|
82 |
+
$data_types[$column->Field] = '%d';
|
83 |
+
}
|
84 |
+
else if(strpos($column->Type, "varchar") !== false || strpos($column->Type, "text") !== false || strpos($column->Type, "longtext") !== false || strpos($column->Type, "date") !== false || strpos($column->Type, "datetime") !== false){
|
85 |
+
$data_types[$column->Field] = '%s';
|
86 |
+
}
|
87 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
+
|
90 |
return $data_types;
|
91 |
|
92 |
}
|
admin/views/GMWDViewMarkers_gmwd.php
CHANGED
@@ -107,17 +107,20 @@ class GMWDViewMarkers_gmwd extends GMWDView{
|
|
107 |
<textarea name="description" id="description" class="wd-form-field gmwd_disabled_field" disabled readonly></textarea>
|
108 |
<div class="gmwd_pro_option"><small><?php _e("Only in the Paid version.","gmwd");?></small></div>
|
109 |
</td>
|
110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
<td>
|
112 |
<input type="radio" class="inputbox wd-form-field" id="enable_info_window0" name="enable_info_window" <?php echo (($row->enable_info_window) ? '' : 'checked="checked"'); ?> value="0" >
|
113 |
<label for="enable_info_window0"><?php _e("No","gmwd"); ?></label>
|
114 |
<input type="radio" class="inputbox wd-form-field" id="enable_info_window1" name="enable_info_window" <?php echo (($row->enable_info_window) ? 'checked="checked"' : ''); ?> value="1" >
|
115 |
<label for="enable_info_window1"><?php _e("Yes","gmwd"); ?></label>
|
116 |
-
</td>
|
117 |
-
</tr>
|
118 |
-
<tr>
|
119 |
-
<td></td>
|
120 |
-
<td></td>
|
121 |
<td><label title="<?php _e("Choose whether to open info by default or not.","gmwd");?>"><?php _e("Open Info Window by Default","gmwd");?></label>:</td>
|
122 |
<td>
|
123 |
<input type="radio" class="inputbox wd-form-field" id="info_window_open0" name="info_window_open" <?php echo (($row->info_window_open) ? '' : 'checked="checked"'); ?> value="0" >
|
107 |
<textarea name="description" id="description" class="wd-form-field gmwd_disabled_field" disabled readonly></textarea>
|
108 |
<div class="gmwd_pro_option"><small><?php _e("Only in the Paid version.","gmwd");?></small></div>
|
109 |
</td>
|
110 |
+
<td colspan="2">
|
111 |
+
<button class="wd-btn wd-btn-primary open_editor" onclick="alert('<?php _e("This functionality is disabled in free version.","gmwd"); ?>');return false;"><?php _e("Open Editor","gmwd");?></button>
|
112 |
+
<div class="gmwd_pro_option"><small><?php _e("Only in the Paid version.","gmwd");?></small></div>
|
113 |
+
</td>
|
114 |
+
|
115 |
+
</tr>
|
116 |
+
<tr>
|
117 |
+
<td><label title="<?php _e("Choose whether to enable info window or not.","gmwd");?>"><?php _e("Enable Info Window","gmwd");?></label>:</td>
|
118 |
<td>
|
119 |
<input type="radio" class="inputbox wd-form-field" id="enable_info_window0" name="enable_info_window" <?php echo (($row->enable_info_window) ? '' : 'checked="checked"'); ?> value="0" >
|
120 |
<label for="enable_info_window0"><?php _e("No","gmwd"); ?></label>
|
121 |
<input type="radio" class="inputbox wd-form-field" id="enable_info_window1" name="enable_info_window" <?php echo (($row->enable_info_window) ? 'checked="checked"' : ''); ?> value="1" >
|
122 |
<label for="enable_info_window1"><?php _e("Yes","gmwd"); ?></label>
|
123 |
+
</td>
|
|
|
|
|
|
|
|
|
124 |
<td><label title="<?php _e("Choose whether to open info by default or not.","gmwd");?>"><?php _e("Open Info Window by Default","gmwd");?></label>:</td>
|
125 |
<td>
|
126 |
<input type="radio" class="inputbox wd-form-field" id="info_window_open0" name="info_window_open" <?php echo (($row->info_window_open) ? '' : 'checked="checked"'); ?> value="0" >
|
gmwd_admin_class.php
CHANGED
@@ -11,7 +11,7 @@ class GMWDAdmin{
|
|
11 |
// Variables //
|
12 |
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
protected static $instance = null;
|
14 |
-
private static $version = '1.0.
|
15 |
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
// Constructor & Destructor //
|
17 |
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
// Variables //
|
12 |
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
protected static $instance = null;
|
14 |
+
private static $version = '1.0.3';
|
15 |
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
// Constructor & Destructor //
|
17 |
////////////////////////////////////////////////////////////////////////////////////////
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
|
4 |
Tags: address, cross-browser, custom google map, custom google maps, easy map, geo, geocoder, gmaps, google, google earth, google map, google map plugin, google map widget, google maps, google maps plugin, googlemaps, gps, gpx, kml, latitude, location, longitude, map, map markers, map plugin, map styles, map widget, maps, marker, openstreetmap, path, pin, place, polygons, polylines, post map, routes, store locator, streetview, widget map, wp google map, wp google maps, wp map, wp maps, directions, widget, layers, circles, responsive
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -108,6 +108,9 @@ After downloading the ZIP file of the Google Maps WD plugin,
|
|
108 |
|
109 |
== Changelog ==
|
110 |
|
|
|
|
|
|
|
111 |
= 1.0.2 =
|
112 |
* Added: Layer options
|
113 |
|
4 |
Tags: address, cross-browser, custom google map, custom google maps, easy map, geo, geocoder, gmaps, google, google earth, google map, google map plugin, google map widget, google maps, google maps plugin, googlemaps, gps, gpx, kml, latitude, location, longitude, map, map markers, map plugin, map styles, map widget, maps, marker, openstreetmap, path, pin, place, polygons, polylines, post map, routes, store locator, streetview, widget map, wp google map, wp google maps, wp map, wp maps, directions, widget, layers, circles, responsive
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.0.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
108 |
|
109 |
== Changelog ==
|
110 |
|
111 |
+
= 1.0.3 =
|
112 |
+
* Added: Text Editor for marker description
|
113 |
+
|
114 |
= 1.0.2 =
|
115 |
* Added: Layer options
|
116 |
|
wd-google-maps.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Google Maps WD
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
6 |
* Description: Google Maps WD is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
|
7 |
-
* Version: 1.0.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
4 |
* Plugin Name: Google Maps WD
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
6 |
* Description: Google Maps WD is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
|
7 |
+
* Version: 1.0.3
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|