WD Google Maps – Google Maps builder Plugin - Version 1.0.50

Version Description

  • Changed : Deactivation popup.
  • Added : Support forum link.
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 WD Google Maps – Google Maps builder Plugin
Version 1.0.50
Comparing to
See all releases

Code changes from version 1.0.49 to 1.0.50

.idea/wd-gmwd-free.iml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
5
- <orderEntry type="inheritedJdk" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
 
 
 
 
 
 
 
 
css/admin_main.css CHANGED
@@ -29,7 +29,7 @@ h1, h2, h3, h4{
29
  }
30
  .gmwd_upgrade{
31
  clear: both;
32
- padding: 0px 15px;
33
  background: #fff;
34
  margin: 6px 0px;
35
  color: #6e7990;
@@ -38,14 +38,22 @@ h1, h2, h3, h4{
38
  line-height: 30px;
39
 
40
  }
41
- .gmwd_upgrade .wd-table{
42
  background-color: #D8D8D8;
43
  padding: 1px 5px;
44
  font-size: 11px;
45
  }
46
 
47
- .gmwd_upgrade .wd-cell:first-child{
48
- padding-right: 2px;
 
 
 
 
 
 
 
 
49
  }
50
  .gmwd_upgrade a, .ytwd_upgrade a:hover {
51
  text-decoration: none !important;
29
  }
30
  .gmwd_upgrade{
31
  clear: both;
32
+ padding: 10px 15px;
33
  background: #fff;
34
  margin: 6px 0px;
35
  color: #6e7990;
38
  line-height: 30px;
39
 
40
  }
41
+ .wd-upgrade-table{
42
  background-color: #D8D8D8;
43
  padding: 1px 5px;
44
  font-size: 11px;
45
  }
46
 
47
+ .gmwd_upgrade .wd-cell:first-child a{
48
+ padding-right: 8px;
49
+ color: #72777c !important;
50
+ }
51
+ .gmwd_upgrade .wd-cell:last-child {
52
+ background: #45A6B7;
53
+ padding: 1px 18px;
54
+ }
55
+ .gmwd_upgrade .wd-cell:last-child a{
56
+ color: #fff !important;
57
  }
58
  .gmwd_upgrade a, .ytwd_upgrade a:hover {
59
  text-decoration: none !important;
framework/functions.php CHANGED
@@ -1,99 +1,115 @@
1
  <?php
2
  // get option function
3
- function gmwd_get_option($option_name){
 
4
  global $wpdb;
5
 
6
- if(get_option("gmwd_version")){
7
- $query = "SELECT * FROM ". $wpdb->prefix . "gmwd_options ";
8
- $rows = $wpdb->get_results($query);
9
 
10
- $options = new stdClass();
11
- foreach ($rows as $row) {
12
- $name = $row->name;
13
- $value = $row->value !== "" ? $row->value : $row->default_value;
14
- $options->$name = $value;
15
- }
16
-
17
- return $options->$option_name;
18
- }
19
- return false;
 
20
  }
21
- function upgrade_pro($text = false){
 
 
22
  $page = isset($_GET["page"]) ? $_GET["page"] : "";
23
  $task = isset($_GET["task"]) ? $_GET["task"] : "";
24
- ?>
25
- <div class="gmwd_upgrade wd-clear" >
26
  <div class="wd-left">
27
- <?php
28
- switch($page){
29
  case "maps_gmwd":
30
- if($task == "edit"){
31
- ?>
32
- <div style="font-size: 14px;margin-top: 6px;">
33
- <?php _e(" This section allows you to add/edit map.","gmwd");?>
34
- <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://web-dorado.com/wordpress-google-maps/creating-map.html"><?php _e("Read More in User Manual.","gmwd");?></a>
35
- </div>
36
- <?php
 
 
 
 
 
 
 
 
 
37
  }
38
- else{
39
- ?>
40
- <div style="font-size: 14px;margin-top: 6px;">
41
- <?php _e(" This section allows you to create, edit and delete maps.","gmwd");?>
42
- <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://web-dorado.com/wordpress-google-maps/creating-map.html"><?php _e("Read More in User Manual.","gmwd");?></a>
43
- </div>
44
- <?php
45
- }
46
- break;
47
  case "options_gmwd":
48
- ?>
49
  <div style="font-size: 14px;margin-top: 6px;">
50
- <?php _e("This section allows you to change general options.","gmwd");?>
51
- <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://web-dorado.com/wordpress-google-maps/installation-wizard-options-menu.html"><?php _e("Read More in User Manual.","gmwd");?></a>
52
- </div>
53
- <?php
54
- break;
 
55
  }
56
- ?>
57
  </div>
58
- <div class="wd-right">
59
- <a href="https://web-dorado.com/files/fromGoogleMaps.php" target="_blank">
60
- <div class="wd-table">
61
- <div class="wd-cell wd-cell-valign-middle">
62
- <img src="<?php echo GMWD_URL; ?>/images/web-dorado.png" width="42px" >
63
- </div>
64
- <div class="wd-cell wd-cell-valign-middle">
 
 
65
  <?php _e("UPGRADE TO PAID VERSION", "gmwd"); ?>
66
- </div>
 
 
 
 
 
 
 
 
67
  </div>
68
- </a>
69
-
70
  </div>
71
  </div>
72
- <?php if($text){
73
  ?>
74
- <div class="wd-text-right wd-row" style="color: #15699F; font-size: 20px; margin-top:10px; padding:0px 15px;">
75
- <?php echo sprintf(__("This is FREE version, Customizing %s is available only in the PAID version.","gmwd"), $text);?>
76
- </div>
77
  <?php
78
- }
79
 
80
  }
81
 
82
- function api_key_notice(){
 
83
  echo '<div style="width:99%">
84
  <div class="error">
85
- <p style="font-size:18px;"><strong>'.__("Important. API key is required for Google Maps to work.","gmwd").'</strong></p>
86
- <p style="font-size:18px;"><strong>'.__("To avoid limitation errors, fill in your own App key.","gmwd").'</strong></p>
87
- <p><a href=\'https://console.developers.google.com/henhouse/?pb=["hh-1","maps_backend",null,[],"https://developers.google.com",null,["maps_backend","geocoding_backend","directions_backend","distance_matrix_backend","elevation_backend","places_backend","static_maps_backend","roads","street_view_image_backend","geolocation"],null]&TB_iframe=true&width=600&height=400\' class="wd-btn wd-btn-primary thickbox" style="text-decoration:none;" name="'.__( "Generate API Key - ( MUST be logged in to your Google account )", "gmwd" ).'">'.__("Generate Key","gmwd").'</a> or <a target="_blank" href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,static_maps_backend,roads,street_view_image_backend,geolocation,places_backend&keyType=CLIENT_SIDE&reusekey=true">click here</a> to Get a Google Maps API KEY</p>
88
  <p>After creating the API key, please paste it here.</p>
89
  <form method="post">
90
- '.wp_nonce_field('nonce_gmwd', 'nonce_gmwd').'
91
- <p>'.__("API Key","gmwd").' <input type="text" name="gmwd_api_key_general"> <button class="wd-btn wd-btn-primary">'.__("Save","gmwd").'</button></p>
92
  <input type="hidden" name="task" value="save_api_key">
93
- <input type="hidden" name="page" value="'.GMWDHelper::get("page").'">
94
- <input type="hidden" name="step" value="'.GMWDHelper::get("step").'">
95
  </form>
96
- <p>'.__("It may take up to 5 minutes for API key change to take effect.","gmwd").'</p>
97
  </div>
98
  </div>';
99
  }
1
  <?php
2
  // get option function
3
+ function gmwd_get_option($option_name)
4
+ {
5
  global $wpdb;
6
 
7
+ if (get_option("gmwd_version")) {
8
+ $query = "SELECT * FROM " . $wpdb->prefix . "gmwd_options ";
9
+ $rows = $wpdb->get_results($query);
10
 
11
+ $options = new stdClass();
12
+ foreach ($rows as $row) {
13
+ $name = $row->name;
14
+ $value = $row->value !== "" ? $row->value : $row->default_value;
15
+ $options->$name = $value;
16
+ }
17
+
18
+ return $options->$option_name;
19
+ }
20
+
21
+ return false;
22
  }
23
+
24
+ function upgrade_pro($text = false)
25
+ {
26
  $page = isset($_GET["page"]) ? $_GET["page"] : "";
27
  $task = isset($_GET["task"]) ? $_GET["task"] : "";
28
+ ?>
29
+ <div class="gmwd_upgrade wd-clear">
30
  <div class="wd-left">
31
+ <?php
32
+ switch ($page) {
33
  case "maps_gmwd":
34
+ if ($task == "edit") {
35
+ ?>
36
+ <div style="font-size: 14px;margin-top: 6px;">
37
+ <?php _e(" This section allows you to add/edit map.", "gmwd"); ?>
38
+ <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank"
39
+ href="https://web-dorado.com/wordpress-google-maps/creating-map.html"><?php _e("Read More in User Manual.", "gmwd"); ?></a>
40
+ </div>
41
+ <?php
42
+ } else {
43
+ ?>
44
+ <div style="font-size: 14px;margin-top: 6px;">
45
+ <?php _e(" This section allows you to create, edit and delete maps.", "gmwd"); ?>
46
+ <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank"
47
+ href="https://web-dorado.com/wordpress-google-maps/creating-map.html"><?php _e("Read More in User Manual.", "gmwd"); ?></a>
48
+ </div>
49
+ <?php
50
  }
51
+ break;
 
 
 
 
 
 
 
 
52
  case "options_gmwd":
53
+ ?>
54
  <div style="font-size: 14px;margin-top: 6px;">
55
+ <?php _e("This section allows you to change general options.", "gmwd"); ?>
56
+ <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank"
57
+ href="https://web-dorado.com/wordpress-google-maps/installation-wizard-options-menu.html"><?php _e("Read More in User Manual.", "gmwd"); ?></a>
58
+ </div>
59
+ <?php
60
+ break;
61
  }
62
+ ?>
63
  </div>
64
+ <div class="wd-right">
65
+ <div class="wd-table">
66
+ <div class="wd-cell wd-cell-valign-middle">
67
+ <a href="https://wordpress.org/support/plugin/wd-google-maps" target="_blank">
68
+ <img src="<?php echo GMWD_URL; ?>/images/i_support.png">
69
+ Support Forum </a>
70
+ </div>
71
+ <div class="wd-cell wd-cell-valign-middle">
72
+ <a href="https://web-dorado.com/files/fromGoogleMaps.php" target="_blank">
73
  <?php _e("UPGRADE TO PAID VERSION", "gmwd"); ?>
74
+ <!--<div class="wd-table">
75
+ <div class="wd-cell wd-cell-valign-middle">
76
+ <img src="<?php echo GMWD_URL; ?>/images/web-dorado.png" width="42px">
77
+ </div>
78
+ <div class="wd-cell wd-cell-valign-middle">
79
+ <?php _e("UPGRADE TO PAID VERSION", "gmwd"); ?>
80
+ </div>
81
+ </div>-->
82
+ </a>
83
  </div>
84
+ </div>
 
85
  </div>
86
  </div>
87
+ <?php if ($text) {
88
  ?>
89
+ <div class="wd-text-right wd-row" style="color: #15699F; font-size: 20px; margin-top:10px; padding:0px 15px;">
90
+ <?php echo sprintf(__("This is FREE version, Customizing %s is available only in the PAID version.", "gmwd"), $text); ?>
91
+ </div>
92
  <?php
93
+ }
94
 
95
  }
96
 
97
+ function api_key_notice()
98
+ {
99
  echo '<div style="width:99%">
100
  <div class="error">
101
+ <p style="font-size:18px;"><strong>' . __("Important. API key is required for Google Maps to work.", "gmwd") . '</strong></p>
102
+ <p style="font-size:18px;"><strong>' . __("To avoid limitation errors, fill in your own App key.", "gmwd") . '</strong></p>
103
+ <p><a href=\'https://console.developers.google.com/henhouse/?pb=["hh-1","maps_backend",null,[],"https://developers.google.com",null,["maps_backend","geocoding_backend","directions_backend","distance_matrix_backend","elevation_backend","places_backend","static_maps_backend","roads","street_view_image_backend","geolocation"],null]&TB_iframe=true&width=600&height=400\' class="wd-btn wd-btn-primary thickbox" style="text-decoration:none;" name="' . __("Generate API Key - ( MUST be logged in to your Google account )", "gmwd") . '">' . __("Generate Key", "gmwd") . '</a> or <a target="_blank" href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,static_maps_backend,roads,street_view_image_backend,geolocation,places_backend&keyType=CLIENT_SIDE&reusekey=true">click here</a> to Get a Google Maps API KEY</p>
104
  <p>After creating the API key, please paste it here.</p>
105
  <form method="post">
106
+ ' . wp_nonce_field('nonce_gmwd', 'nonce_gmwd') . '
107
+ <p>' . __("API Key", "gmwd") . ' <input type="text" name="gmwd_api_key_general"> <button class="wd-btn wd-btn-primary">' . __("Save", "gmwd") . '</button></p>
108
  <input type="hidden" name="task" value="save_api_key">
109
+ <input type="hidden" name="page" value="' . GMWDHelper::get("page") . '">
110
+ <input type="hidden" name="step" value="' . GMWDHelper::get("step") . '">
111
  </form>
112
+ <p>' . __("It may take up to 5 minutes for API key change to take effect.", "gmwd") . '</p>
113
  </div>
114
  </div>';
115
  }
gmwd_admin_class.php CHANGED
@@ -12,7 +12,7 @@ class GMWDAdmin
12
  // Variables //
13
  ////////////////////////////////////////////////////////////////////////////////////////
14
  protected static $instance = null;
15
- private static $version = '1.0.49';
16
  ////////////////////////////////////////////////////////////////////////////////////////
17
  // Constructor & Destructor //
18
  ////////////////////////////////////////////////////////////////////////////////////////
12
  // Variables //
13
  ////////////////////////////////////////////////////////////////////////////////////////
14
  protected static $instance = null;
15
+ private static $version = '1.0.50';
16
  ////////////////////////////////////////////////////////////////////////////////////////
17
  // Constructor & Destructor //
18
  ////////////////////////////////////////////////////////////////////////////////////////
images/i_support.png ADDED
Binary file
readme.txt CHANGED
@@ -1,123 +1,153 @@
1
- === Google Maps WD - Google Maps builder Plugin ===
2
- Contributors: webdorado, wdsupport
3
- Donate link: https://web-dorado.com/products/wordpress-google-maps-plugin.html
4
- Tags: google map, google maps, map, map markers, maps, directions, google map plugin, google maps plugin, map plugin, map widget, wp google map, wp google maps, google map widget, google map shortcode, wp map, google maps directions, google maps builder, google places, google places api, google maps api, google places reviews, contact page map, custom google map, loaction by address, location, map direction, map styles, polygons, simple google map, gmap, google map embed, best google maps, custom google maps
5
  Requires at least: 3.4
6
  Tested up to: 4.9
7
- Stable tag: 1.0.49
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Google Maps WD is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
12
 
13
  == Description ==
14
 
15
  https://www.youtube.com/watch?v=bUI4ObvKlkA
16
 
17
  [Special Offer for all Premium Plugins](https://web-dorado.com/wordpress-plugins-bundle.html)
18
- [WordPress Google Maps WD](https://web-dorado.com/products/wordpress-google-maps-plugin.html)
19
  [Demo](http://wpdemo.web-dorado.com/google-maps/)
20
  [Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=maps_gmwd)
21
  [User Guide](https://web-dorado.com/wordpress-google-maps/installing.html)
22
  [Support Forum](https://web-dorado.com/forum/wordpress-google-maps-wd.html)
23
 
24
- = Google Maps WD Add-ons: =
25
  [GMWD Marker Clustering Add-on](https://web-dorado.com/products/wordpress-google-maps-plugin/add-ons/marker-clustering.html)
26
 
27
 
28
- Google Maps WD is a user-friendly, responsive WP Google maps plugin. It is very simple in use, doesn’t require any coding skills or complex customization processes and allows to easily add custom Google maps to your website. Using this simple Google map WordPress plugin you can showcase any location, display related or categorized locations with markers or showcase coverage areas with the help of layers and overlays.
29
 
30
- Need to add a contact page map or any kind of custom google map to your WordPress pages or posts? With an intuitive and user friendly interface, Google Maps is an easy map plugin and one of the best google maps solutions available.
31
 
32
- It solves the necessity of adding different plugins for individual Google Maps related features combining marker maps plugin, store locator plugin, location highlighting WP map plugin in a single package.
33
 
34
- The WP google map plugin allows to add multiple map markers or placemarks, adding information, such as address, location by latitude/longitude description, links, images, get map directions and much more. If you need to display a large number of markers on your map and don't want to overload the map, you can user the market clustering add-on (commercial version). Marker Clustering will help you group close markers for more user-friendly display over the map. The gmap plugin allows you to create different map styles, display different map layers on the maps, highlight traffic/bike lanes and more.
35
- To add Google Maps to your post/page all you need is to copy the Google map shortcode or php code from Map listing and add it to your post/page or php file. You can also add the plugin as a map widget to have Google Map embedded to a custom position.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
  ###IMPORTANT:
38
- If you think you found a bug in Google Maps WD or have any problem/question concerning this plugin, please check out [Support Forum](https://wordpress.org/support/plugin/wd-google-maps) . If you do not find a solution here, do not hesitate to [click here to contact us](https://web-dorado.com/support/contact-us.html).
39
-
40
-
41
- = Features of Google Maps WD plugin: =
42
-
43
- * Fully responsive design
44
- * Localization and language support for Google maps
45
- * Intuitive and user friendly interface which uses tooltips on mouseover for each feature of Google Maps WD allowing to learn about the possible functionality on the backend
46
- * Instant live previews of changes you make in the working area on the Google Maps WD back end
47
- * Unlimited maps for posts and pages
48
- * Support for different Google maps styles: road, traffic, satellite, terrain and hybrid
49
- * Unlimited number of markers per map (placemarks or map point), possibility to add markers filling out location by address or alternatively right clicking on the map
50
- * Drag and drop feature for markers, custom animation support
51
- * Polygon layer, which allows to add multi-edge shape overlay over selected area of the map with markers
52
- * Polyline layer, which allows to add mark certain area on the map with line overlay without covering marked area with fill color
53
- * Full support of controls of the Google map, such as zoom control, map type control, scale control, street view control, fullscreen and rotate (only available with zoomed satellite map) control
54
- * Google Maps standard Bicycle, traffic and transit layers highlighting bike lanes and traffic lanes
55
- * Store locator for allowing WP map users to find nearest stores with provided radius overlay * Possibility to define cycle line color, width, opacity for store locator
56
- * User geolocation
57
-
58
- Upgrade to [Google Maps Pro](https://web-dorado.com/products/wordpress-google-maps-plugin.html) to get access to:
59
-
60
- * Customizable Google maps skins
61
- * Possibility to add new Google Maps themes/customize existing themes based on detailed styles and colors section
62
- * Get directions feature for allowing users to get detailed map directions for moving from point A to point B using one of the modes (Walking, Driving, Bicycling and Transit)
63
- * Circle and Rectangle layers over the map
64
- * Multi-level marker categories: created marker category can serve as a parent for newly-created marker
65
- * Custom Marker icon builder (100+ marker icons + option to add your own icons)
66
- * Custom icon, custom marker text/description, images and link support for the markers
67
- * Marker, Circle, Rectangle, Polygon, Polyline Export/Import option from one map to another
68
- * Marker listing ( Basic listing, Advanced Listing and Carousel view) for easier access of categorized markers
69
- * Marker listing display within the map as a map legend
70
- * Advanced layer support (layers based on GeoRSS, KML URLs, Fusion Table Id)
71
-
72
-
73
- = Google Maps WD Demos =
74
- [Basic Google Maps](http://wpdemo.web-dorado.com/google-maps/)
75
- [Google Maps Directions ](http://wpdemo.web-dorado.com/directions/)
76
- [Google Maps List Markers](http://wpdemo.web-dorado.com/list-markers/)
77
- [Google Maps Advanced Marker Listing](http://wpdemo.web-dorado.com/advanced-marker-listing/)
78
- [Google Maps Carousel Marker Listing](http://wpdemo.web-dorado.com/carousel-marker-listing/)
79
- [Google Maps Marker categories](http://wpdemo.web-dorado.com/marker-categories/)
80
- [Google Maps Store Locator](http://wpdemo.web-dorado.com/store-locator/)
81
- [Responsive Google Maps](http://wpdemo.web-dorado.com/responsive-maps/)
82
- [Google Maps Polygon and Polyline](http://wpdemo.web-dorado.com/polygon-and-polyline/)
83
 
84
 
85
  == Installation ==
86
 
87
- #### Thank you for your interest in Google Maps WD.
 
 
88
 
89
- ### Minimum requirements.
90
- * Wordpress 3.9+
91
- * PHP 5.x
92
- * MySQL 5.x
93
 
94
- ### Perform a new installation
 
 
 
95
 
96
- After downloading the ZIP file of the Google Maps WD plugin,
 
 
 
 
 
 
97
 
98
- 1. Log in to the administrator panel.
99
- 2. Go to Plugins Add > New > Upload.
100
- 3. Click "Choose file" ("Browse") and select the downloaded zip file of the Google Maps plugin.
101
- *For Mac Users*
102
- *Go to your Downloads folder and locate the folder with the Google Maps WD. Right-click on the folder and select Compress. Now you have a newly created .zip file which can be installed as described here.*
103
- 4. Click "Install Now" button.
104
- 5. Click "Activate Plugin" button for activating the Google Maps WD.
105
- 6. If the installation does not succeed, please contact us at [support@web-dorado.com](mailto:support@web-dorado.com).
106
 
107
  == Screenshots ==
108
- 1. Google Maps WD - Edit Map
109
- 2. Google Maps WD - Add Marker
110
- 3. Google Maps WD - Add Polygon
111
- 4. Google Maps WD - Map Settings
112
- 5. Google Maps WD - Edit Theme
113
- 6. Google Maps WD - Basic Google Maps
114
- 7. Google Maps WD - Google Maps Directions
115
- 8. Google Maps WD - Google Maps Advanced Marker Listing
116
- 9. Google Maps WD - Google Maps Store locator
117
- 10. Google Maps WD - Google Maps Polygons and Polylines
118
 
119
  == Changelog ==
120
 
 
 
 
 
121
  = 1.0.49 =
122
  * Remove: Font awesome.
123
  * Changed : WebDorado links.
@@ -275,342 +305,268 @@ After downloading the ZIP file of the Google Maps WD plugin,
275
 
276
  == Frequently Asked Questions ==
277
 
 
278
 
279
- = 1. How many Google maps can I insert into a post? =
280
 
281
- The number of Google Maps per post is not limited. You can choose to display multiple Google Maps per post/page using Google Maps WD standard shortcode.
282
 
283
- = 2. Can I use Google Maps in Widgets? =
284
 
285
- Yes Google Maps WD comes with a widget. You can insert created Google Maps into a custom area depending on your theme widget areas assigning it to certain position. You can configure the Google Maps settings and define its dimension.
286
 
287
- = 3. How to insert Google maps into a template? =
288
- If you plan to include it into a template they you will have to use Google Maps WD php shortcode instead of the standard shortcode. The shortcode does not require additional customization, simply copy the code and paste it into the php file where you want the Google Maps to be displayed
289
 
290
- = 4. How can I stylize the maps? =
291
- Google Maps WD Pro version allows to fully customize Google Maps choosing map skins and changing styles and colors for certain Google Maps attributes.
292
 
293
- = 5. Is Google Maps WD responsive? =
294
- Yes Google Maps WD is a responsive product (both with free and Pro versions).
295
 
296
- = 6. How to display directions with custom Google Maps? =
297
- Google Maps WD Pro version allows to add directions tab with Google Maps displaying the standard directions process and modes of reaching from point A to point B on the Google Map.
298
 
299
- = 7. Are taxonomies supported in Marker categories? =
300
 
301
- If you use Pro version of Google Maps WD the option is possible to achieve. Different marker categories of the Google Maps can serve as parent category for another marker category.
302
 
303
- = 8. How can I center the map? =
 
304
 
305
- You can position the Google Maps going to Google Maps WD>Maps>Settings> General section and here specifying the alignment of the map.
306
 
307
- = 9. Can I insert a link in Google Maps marker infowindow? =
308
- Yes, it is possible to upload a hyperlink in marker infowindow using Google Maps WD Pro version.
309
 
310
- = 10. Can I insert image in Google Maps marker info window? =
311
- Yes, it is possible to upload an image in marker infowindow using Google Maps WD Pro version.
 
 
 
 
 
312
 
313
- = 11. Can I create shapes with free version of Google Maps WD? =
314
 
315
- Yes, free version of Google Maps WD allows to create polygon and polyline overlays for the maps, whereas Google Maps WD Pro version adds circle and rectangular overlays to this list.
316
 
317
- = 12. Are there any limitations on the number of google maps to be used within a single website? =
318
- There are no limitations on the number of google maps. You can use unlimited number of google maps within each website.
319
 
 
 
 
 
 
 
 
 
 
 
 
 
320
 
321
- = 13. Is it possible to translate Google Maps into another language? =
322
- It is only possible to translate the front end of the Google Maps. Plugin should be translated automatically. Please be informed, that you can modify the translations from wp-content/plugins/wd-google-maps/languages/ (you will need POEdit http://www.poedit.net/download.php). You can find the language codes for the Google Maps in WordPress.org appropriate plugins' page.
323
 
324
- == Google Maps WD User Manual ==
325
 
326
- = Installation =
327
- Minimum requirements
328
- WordPress 3.4+
329
- PHP 5.x
330
- MySQL 5.x
331
 
332
- Installing plugin from WordPress Dashboard
333
- Log in to Administrative Panel of your WordPress site.
334
- Go to Plugins > Add > New > Upload.
335
- Click “Choose file” (“Browse”) and select Google Maps WD zip file.
336
 
337
- Installing via FTP
338
- Login to your hosting space via an FTP software, e.g. FileZilla.
339
- Unzip the downloaded Google Maps plugin folder without making any changes to the folder.
340
- Upload the plugin into the following location wp-content>wp-plugins.
341
- Login to the WordPress Administrative Panel.
342
- Activate the plugin by going to Plugins and pressing Activate button below Google Maps WD.
343
-
344
- If any problem occurs, please contact us at support@web-dorado.com
345
-
346
- = Installation Wizard/ Options Menu =
347
- After activation of Google Maps WD the setup wizard will be automatically launched. You can press Skip the wizard and relaunch it later or configure the options in Google Maps> Options submenu.
348
-
349
- At first step you choose the language for the Googlemaps either the language will be determined based on location of the visitor.
350
-
351
- Center address. Center address of the map can be determined automatically based on your current location either you can fill it with autocomplete feature.
352
- Latitude+Longitude․ Provide more precise values for your center address.
353
- Zoom Level. Google Maps has an integer 'zoom level' which is the resolution of the current view. Zoom levels are between 0 (the entire world can be seen on one map) and 21+.
354
- Wheel Scrolling. Allow zooming in and out for Google Maps using mouse scroll or not.
355
- Map Draggable. Allow using mouse for dragging Google maps up/down or not.
356
-
357
- Afterwards you can go on to your first map creation using Google Maps plugin. Configuring Map API Key
358
- Starting June 22, 2016 API keys are required for Google Maps API functioning. If you want to create a map API key, login to Google API Console. Start a project by clicking the Create project button if you are a new user or choose one of the existing projects if you're a returning user.
359
- Follow the steps and fill in the form. Copy the API key and fill them in Google Maps WD > Options.
360
-
361
- = Settings =
362
- You need to configure settings of the map in advance to moving to the rest of Google Maps WD plugin sections.
363
-
364
- General
365
- Map type. Choose the type of WP map embedded based on available Google Maps options:
366
- Roadmap displays 2D road map. This is default map type for Google Map.
367
- Satellite displays Google Earth satellite images.
368
- Hybrid displays mixture of roadmap and satellite views- photographic map with roads and city name indication.
369
- Terrain displays a physical map based on terrain information (geographic/physical map with mountains, rivers and other relevant terrain information).
370
- Width. You can set the width of the Google maps in percentage of the content area or fixed pixels.
371
- Height. Height of the map should be provided in pixels.
372
- Center address + latitude+longitude. Center address of the map can be determined automatically based on your current location either you can fill it with autocomplete feature.
373
- Or you can right click on the map and set a center address.
374
- Zoom Level+Maximum/Minimum Zoom. Google Maps has an integer 'zoom level' which is the resolution of the current view. Zoom levels are between 0 (the entire world can be seen on one map) and 21+. You can also set the minimum and maximum values for the zoom parameter.
375
- Wheel Scrolling. Choose whether to allow zooming of Google maps using mouse scroll or not.
376
- Map Draggable. Choose whether to allow dragging Google maps using mouse or not.
377
- Markers Draggable. Choose whether to allow dragging markers over the map or not.
378
- Information Window Open. Display marker information hovering or clicking on it.
379
- Geolocate User. The user will see a pop-up asking for geolocation permission.
380
- Visitor location will automatically used as a center address.
381
- Alignment. If the width of the map is set in percentage you can choose to display it to the left/center/right in relation to the content area.
382
-
383
- Controls
384
- Here you can configure Google maps controls and change their positions :
385
- Zoom Control. Contains + and - buttons to zoom in and zoom out the Google maps.
386
- Map Type Control. Allows the users to change from standard Gogole roadmap to satellite view.
387
- Scale Control. Displays the scale of the map and can be changed.
388
- Street View Control. Displays a human icon over the Google maps and allows switching to street view for certain location.
389
- Fullscreen Control. Displays the Google map in fullscreen mode.
390
- Rotate Control feature is only available with Google Maps Satellite mode, when you have close-up view of the location and can use it to rotate the satellite-created image.
391
-
392
- Layers
393
-
394
- Enable Bicycle Layer. Bike lanes will be highlighted on the map. Usually suggested routes will be highlighted as well. In cases if bicycle layer is not available with that certain area on Google Maps, the layer will be disabled.
395
- Enable Traffic Layer. Real-time traffic information of the route will be highlighted on map as a layer. The timing is based on the actual request time. In cases if traffic layer is not available with that certain area on Google Maps, the traffic lanes will be disabled.
396
- Enable Transit Layer. Transit routes will be highlighted on the map. This will display the public transit network of the city. The information will be displayed with thick lines. The list of the supported cities can be found at official developers site of Google Maps.
397
- GeoRSS URL. Providing the URL to created Geographically encoded objects of RSS (http://www.georss.org/) feed you can add RSS-feed based layers on your Google Maps.
398
- KML URL. KML is a file format created on the basis of Google Earth. It might contain rich data, such as trails/locations, images and tips related to the locations, etc. After creating the file you can provide the URL here.
399
- Fusion Table Id. You can create your own Google Fusion table and provide its ID here. Fusion tables is overall an application used for sharing, visualizing, and publishing tabular data.
400
-
401
- Directions
402
-
403
- This allows users to choose two locations on Google Maps and get directions. The mode can be driving, walking, bicycling or transit depending on support of the mode of the specified Google Maps area.
404
- Enable Directions. Choose whether to enable directions for the Google maps or not.
405
- Directions Window Open. Choose to display directions with an open window or not. If disabled, the user can access to directions pressing Get directions button within marker of the Google Maps.
406
- Directions Window Width. Choose fixed size for the directions window in pixels either percentage of content area.
407
- Direction Window Position. Choose the position of the directions window from possible options.
408
-
409
- Store Locator
410
-
411
- Store locator will add a circular overlay over the Google maps with filled centre and radius. Than you can see the markers (placemarks) which are located within this circle:
412
- Enable Store Locator. Choose whether to have store locator feature enabled for the Google maps or not.
413
- Window Width. Choose fixed size for the store locator window in pixels either percentage of content area.
414
- Window Position. Chose the Store location window position relative to Google maps.
415
- Distance In. Choose the measurement unit- kilometers or miles.
416
- Circle line + fill. Define styles and colors for the circular overlay edge (line) and fill (covered area).
417
-
418
- Marker Listing
419
-
420
- Markers used on the Google maps can be listed with different view options, helping out the users to find locations based on marker categories. To create marker categories navigate to Google Maps WD>Marker Category section.
421
- When filter is enabled you can choose the categories to display markers for:
422
- List Type. The markers can be listed in one of the following view option:
423
- Basic: Displays the category, marker location, get directions(if directions are enabled) and marker image if available.
424
- Advanced Table: Displays marker title, category, address and description with search possibility as well as ordering (changes direction for ascending to descending when hitting the title, category, address or description).
425
- Carousel: Lists the markers in a slideshow. When hitting the slide the marker will be displayed on the map
426
- Enable Category Filter. When enabled the user will be able to filter markers to certain categories.
427
- Move List Inside Map. Markers can also be included within Google maps serving as Google maps legends.
428
- Marker List position. Choose the location where markers will be listed among possible options.
429
-
430
- Map
431
- In this section you will be able to add Google maps attributes and preview them on the Google maps. The map attributes can differ thus for each added Google Maps you will get a chance to have its own attributes set.
432
-
433
- Next to title you will see a set of buttons which apply to the current Google maps:
434
- Save allows saving the Google maps. It closes the current map and returns the user to the list of all created maps.
435
- Apply button saves the Google maps, but doesn’t close the map, so that you can continue making changes afterwards.
436
- Save as Copy is handy when you are making changes with already existing Google maps, but want to save the finalized changes as a brand new map.
437
- Export button is designed for exporting all created Google maps attributes (markers, circles, rectangles, polygons and polylines) for future importing into another map.
438
- Import button is designed for importing created Google maps attributes (markers, circles, rectangles, polygons and polylines) of another map to current one.
439
- Cancel button allows cancelling changes made to map.
440
-
441
-
442
- Adding Marker
443
-
444
- Markers are used for indicating specific location on Google maps. The icon of the marker appears as an overlay of the Google map and may give some additional information.
445
- Note that all changes made here will be previewed on small Google maps sample on the right side of the screen.
446
- Title. You can provide a title for the marker. The title will be included in Information window of the marker.
447
- Link URL. You can link Google Maps Marker to any URL, so that when site visitor hits the marker they will be redirected to mentioned URL. The link will be opened in a new window.
448
- Address. There are three ways of adding the marker location- providing address, filling in longitude and latitude (GPS coordinates) or right-clicking on the location on the map.
449
- Description. Description of the marker will be displayed alongside its title within Information window of the Google Maps.
450
- Marker Description Image. The marker information window can also contain an image. Here you can upload the images to be used.
451
- Category. Here you can specify the marker category. More about marker categories can be found at Marker Category section.
452
- Animation. By default the marker will be automatically displayed with the map, but if you want to have an effect for adding marker overlay, you can choose the animation from the list.
453
- Enable Info Window. Choose whether to have information window displayed over the Google Maps with markers or not.
454
- Open Info Window by Default. Choose whether to display information window of the marker by default or when user presses the marker icon.
455
- Icon. You can choose from existing icons or upload your own. Plugin includes different categories of icons as a part of Google Maps WD package.You can also create your own icons filling marker and icon colors. Your created icons will be saved in Added markers category.
456
- Custom Icon size. Here you can define the dimensions of the icon.
457
- Published. Choose whether to publish the marker or leave it for the further publishing.
458
- When all settings are set up, press Add Marker button.
459
- The created marker will appear below the Google Maps within Markers tab: here you will have the option to filter, duplicate, edit and delete markers.
460
-
461
- Adding Circle Google Maps Layer
462
-
463
- Circle is a circle-shaped overlay for Google Maps. Here you can define the colors, widths, radius and opacity values both for the edge of the circle (line) and its covered area (fill).
464
- Title. You can provide a title for the circle overlay. The title will be included in Information window of the shape.
465
- Center Address. There are three ways of adding the center of the circle- providing address, filling in longitude and latitude or right-clicking on the location on the map.
466
- Link URL. You can link circle overlay to any URL, so that when site visitor hits the circle they will be redirected to mentioned URL. The link will be opened in a new window and Google Maps page will remain open.
467
- Radius (meters). Provide the radius of the circle in meters.
468
- Show marker. Choose whether to display the marker in center address of the circle overlay or not.
469
- Enable Info Window. In some cases (e.g. you don’t want to display marker or you want the user to learn more about the location using URL redirection only) you can disable Information window here.
470
- Line+Fill Color and styles. Choose the color and widths for the overlay covered area (fill) and its edge (line) by default and when hovered.
471
- Published. Choose whether to publish the circle overlay or leave it for the further publishing.
472
- When all settings are set up, press Add Circle button.
473
- The created circle overlay will appear below the map within Circles tab:
474
- The created circle will appear below the map within Circles tab: here you will have the option to filter, duplicate, edit and delete circles. The number of circles is not limited for Google Maps.
475
-
476
- Adding Rectangle Google Maps Layer
477
-
478
- Rectangle is rectangle-shaped overlay for the Google maps. When creating a rectangle you can define the colors, widths and opacity values both for the edges of the rectangle (line) and its covered area (fill). The shape gets created based on only two values/vertexes - its marker on North East point and South West. The rest of two points- North West and South East get created automatically on the Google Maps. In case you want to change one of the edges of the shape, you can click on the marker, the vertex will be removed and you can create a new one. In addition overall shape and south west/north east markers is draggable and you can move them within the Google maps to change the rectangle shape or rectangle location.
479
- Title. You can provide a title for the rectangle overlay. The title will be included in Information window of the shape.
480
- Link.You can link rectangle overlay to any URL, so that when site visitor hits the shape they will be redirected to mentioned URL. The link will be opened in a new window and Google Maps page will remain open.
481
- South West. Fill in longitude and latitude of the Sout West point or right click on the map to create the vertex.
482
- North East. Fill in longitude and latitude of the North East point or right click on the map to create the vertex.
483
- Show markers. Choose whether to display the marker, which are at the edges of the rectangle overlay or not.
484
- Enable Info Window.In some cases (e.g. you don’t want to display markers with Google Maps or you want the user to learn more about the location using URL redireciton only) you can disable Information window here.
485
- Line+Fill Color and styles. Choose the color and widths for the Google Maps overlay covered area (fill) and its edge (line) by default and when hovered.
486
- Published. Choose whether to publish the rectangle overlay or leave it for the further publishing.
487
- When all settings are set up, press Add Rectangle button.
488
- The created rectangle overlay will appear below the map within Rectangles tab: here you will have the option to filter, duplicate, edit and delete rectangles. The number of rectangles is not limited for Google Maps.
489
-
490
- Adding Polygon Google Maps Layer
491
-
492
- Polygon is a multi-edge Google Maps overlay. When creating a polygon you can define the colors, widths and opacity values for the edges of the rectangle (line) and its covered area (fill). The shape gets created based on vertexes.In case you want to change one of the edges of the shape, you can click on the marker, the vertex will be removed from Google Maps and you can create a new one. In addition overall created shape and its markers is draggable and you can move them within the Google maps to change the shape or its location.
493
- Title. You can provide a title for the polygon overlay. The title will be included in Information window of the shape.
494
- Link.You can link polygon overlay to any URL, so that when site visitor hits the shape they will be redirected to mentioned URL. The link will be opened in a new window. So the Google Maps page will remain open.
495
- Data. Here you can either provide the longitude and latitude values for all included edges or use the markers to create the shape.
496
- Show markers. Choose whether to display the marker, which are at the edges of the polygon overlay over the Google Maps or not.
497
- Enable Info Window. In some cases (e.g. you don’t want to display markers or you want the user to learn more about the location using URL redirection only) you can disable Information window here.
498
- Line+Fill Color and styles. Choose the color and widths for the overlay covered area (fill) and its edge (line) by default and when hovered.
499
- Published. Choose whether to publish the polygon overlay or leave it for the further publishing.
500
- When all settings are set up, press Add Polygon button.
501
- The created polygon overlay will appear below the map within Polygons tab: here you will have the option to filter, duplicate, edit and delete polygons. The number of polygones is not limited for Google Maps.
502
-
503
- Adding Polyline Google Maps Layer
504
-
505
- Polylines is a Google Maps overlay-shape created using multiple vertexes where each edge is marked with a marker. You can define the color and widths of the lines used for this overlay. Based on the number of used vertexes, the polyline can be a set of from two up to any number of lines over the Google Maps. In case you want to change one of the edges of the shape, you can click on the marker, the vertex will be removed from Google Maps and you can create a new one. In addition overall created shape and its markers are draggable and you can move them within the map to change the shape or its location.
506
- Title. You can provide a title for the polyline overlay. The title will be included in Information window of the shape.
507
- Link.You can link polyline overlay to any URL, so that when site visitor hits the shape they will be redirected to mentioned URL. The link will be opened in a new window. So the Google Maps page will remain open.
508
- Data. Here you can either provide the longitude and latitude values for all included edges or use the markers to create the shape.
509
- Show markers. Choose whether to display the marker, which are at the edges of the polyline overlay or not.
510
- Enable Info Window. In some cases (e.g. you don’t want to display markers or you want the user to learn more about the location using URL redirection only) you can disable Information window here.
511
- Line color and styles. Choose the color and widths for the edges (line) by default and when hovered.
512
- Published. Choose whether to publish the polyline overlay or leave it for the further publishing.
513
- When all settings are set up, press Add Polyline button.
514
- The created polyline overlay will appear below the map within Polylines tab: here you will have the option to filter, duplicate, edit and delete polylines. The number of polylines is not limited for Google Maps.
515
-
516
- Preview/Themes
517
- Here you can select the theme for the map from already created Google Maps themes. In case you want to create a new theme, you need to Google Maps>Themes section and press Add New button.
518
- Select. Here you will see the list of already created themes.
519
- Preview. Here you will see the live preview of the Google Maps theme.
520
-
521
-
522
- = Adding/Modifying Maps Themes =
523
-
524
- In this section you can create a new theme/skin for your Google maps. As a first step you need to add title to the theme.
525
- All changes made in styles and colors for Directions, Store Locator, Marker Listings (with its 4 styles) can be previewed on the right side of the screen to get overall idea on what you have as a result of changes.
526
-
527
- Let's start discussing with Directions over the Google Maps:
528
- Title Text Color. Choose the text color which will display Get directions text over the Google Maps.
529
- Directions Window Background Color. Choose background color for the Google Maps directions window overall.
530
- Directions Window Border Radius. Set border radius for directions window using css style values.
531
- Input Field Border Radius. Set input border radius, which will allow searching directions for either point A or point B on Google Maps.
532
- Input Field Border Color. Choose color for Google Maps direction search input box.
533
- Label Text Color. Set color for the labels.
534
- Label Background Color. Set background color for the label.
535
- Label Border Radius. Set border radius using CSS style values.
536
- Button Alignment. Set the position for the Google Maps direction search button.
537
- Button Width. Set the widht for direction search button.
538
- Button Border Radius.Set border radius for the search button using CSS style values
539
- Button Background Color. Define the color for the directions connecting button.
540
- Button Text Color. Define the text color voer the directions searching button.
541
- Columns. You can choose to display Directions window above the Google maps using either one column or two columns option.
542
-
543
- Store Locator options:
544
- Title Text Color. Set title color for Store locator.
545
- Store Locator Window Background Color.Set window background color for Store locator.
546
- Store Locator Window Border Radius.Set border radius using CSS style values.
547
- Input Field Border Radius.Set border radius using CSS style values.
548
- Input Field Border Color. Choose color for the border.
549
- Label Text Color. Choose text color.
550
- Label Background Color.
551
- Label Border Radius.Set border radius using CSS style values.
552
- Buttons Alignment. Choose position for the buttons.
553
- Buttons Width. Set button width.
554
- Buttons Border Radius.Set border radius using CSS style values.
555
- Background Color. Choose overall background color.
556
- Width. Set overall width for store locator.
557
- Height. Set overall height for store locator.
558
- Border Radius.Set border radius using CSS style values.
559
- Search Button Background Color. Set border radius using CSS style values.
560
- Search Button Text Color.Choose color for search button.
561
- Reset Button Background Color. Choose background color for reset button.
562
- Reset Button Text Color.Choose color for reset button.
563
- Columns. You can choose to display Directions window above the Google maps using either one column or two columns option.
564
-
565
- Marker Listings Basic
566
-
567
- Title Text Color.Set title color for Google Maps maker listing.
568
- Background Color. Choose background color for marker listings.
569
- Directions Button Border Radius.Set border radius using CSS style values.
570
- Directions Button Width. Set overall width for directions button.
571
- Directions Button Height. Set overall height for directions button.
572
- Directions Button Background Color. Choose background color for Store locator.
573
- Directions Button Text Color. Choose text color for directions. Hitting the button the user will get to directions over the Google Maps.
574
-
575
- Marker Listing Carousel
576
-
577
- Here you can change the text and background color for the marker listing below/above Google Maps, the colors when hovered. Plus you can display the number of markers that will be displayed with Google Maps by default allowing to navigate to next identical amount of makers pressing the navigation buttons. The height and border radius for the marker listing can also be provided.
578
-
579
- Marker Listing Advanced
580
- Here you can table and advanced info window (note that this is separate from the info window displayed with Google Maps, but contains identical information in it). Talking about table we refer to the listing window dimensions, here each parameter of the Google Maps marker comes in a cell of a table.
581
-
582
- Marker Listings inside Map
583
-
584
- Text Color. Choose the text color for the maker listing within the Google Maps.
585
- Background Color. Set a background color for the marker window noting that this will cover part of the Google Maps.
586
- Width. Set the width of the marker window inside the Google Maps.
587
- Height. Set the height of the marker window inside the Google Maps.
588
- Border Radius.Set border radius using CSS style values.
589
-
590
-
591
- For the Google maps styles you need first to provide the radius from center you want to display with the map.
592
- There are three options for creating the theme for Google maps:
593
- Choose from default options:
594
- Here you will see the list of available Google maps skins to choose from. Whenever you add a new custom skin, the new skin will be added to the list.
595
-
596
- Style existing/Create new skin based on default skin:
597
- To create a custom skin first press Add new Style button. Then navigate to Edit Map Style and press Add feature style button.Two dropdowns will appear. Map Style Feature Type will allow choosing a specific map-related feature, e.g. landscape, road and etc. Map Style Element Type will allow choosing specific element of the Google Maps features, e.g. geometry or labels. For each element you can make style changes using Styler. It will allow to change color, gamma, hue,invert lightness, lightness, saturation, visibility and widths of the selected element of the Google Maps.
598
-
599
- Create Custom skin
600
- If you want to have a custom map skin based on Google Maps styling standard, you can uncheck Auto Generate Map Style Code and paste the custom script in content area below.
601
-
602
-
603
- = Creating Marker Categories =
604
- To create Google Maps marker category navigate to Google Maps WD> Marker Category.
605
- Title. Provide a title for the marker category to be used with Google Maps.
606
- Select Parent Category. Here you can leave to root to create a first-level category or choose one of existing(already added) categories to be used as a parent for the category.
607
- Category Icon. You can upload a custom image to accompany the marker category. It will accompany the marker category with marker filtering and marker listing options.
608
- Published. Choose whether to publish the marker category or leave it for further publishing.
609
- When done with changes press Save (will save and get to the list of created markers), Apply (will save and keep you on the marker page), Save as Copy (if you want to make changes to the marker category but not overwrite the existing marker category) or Cancel (to stop the process of creating a new marker).
610
-
611
- = Publishing Created Map =
612
- To Insert Google Maps into a Page or Post you should open the post/page from Admin Panel. Here you will see Google Maps icon. Press on it:
613
- Here select the Map and press Insert button:
614
- Alternatively you can copy the shortcode available in Google Maps WD>Maps section. Go your Post/Page. Change the content box from Visual to Text tab and add the Google Map code here.
615
- If you want to add Google map to custom area on your site please instead use php shortcode. Copy and paste it to .php file, where you plan to include the map.
616
- For adding Google Maps as a widget go to Appearance>Widgets. Here find Google Maps WD and assign it to a custom position. After that set up Google Maps settings, choose the Google Map to add and press Save button. This way Google Maps will be added to selected area.
1
+ === WD Google Maps - Google Maps builder Plugin ===
2
+ Contributors: webdorado,10web,wdsupport
3
+ Tags: google map, google maps, map, map markers, maps, directions, google map plugin, google maps plugin, map plugin, wp google map, wp google maps, google map widget
 
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
+ Stable tag: 1.0.50
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ WD Google Maps is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
11
 
12
  == Description ==
13
 
14
  https://www.youtube.com/watch?v=bUI4ObvKlkA
15
 
16
  [Special Offer for all Premium Plugins](https://web-dorado.com/wordpress-plugins-bundle.html)
17
+ [WordPress WD Google Maps](https://web-dorado.com/products/wordpress-google-maps-plugin.html)
18
  [Demo](http://wpdemo.web-dorado.com/google-maps/)
19
  [Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=maps_gmwd)
20
  [User Guide](https://web-dorado.com/wordpress-google-maps/installing.html)
21
  [Support Forum](https://web-dorado.com/forum/wordpress-google-maps-wd.html)
22
 
23
+ = WD Google Maps Add-ons: =
24
  [GMWD Marker Clustering Add-on](https://web-dorado.com/products/wordpress-google-maps-plugin/add-ons/marker-clustering.html)
25
 
26
 
27
+ WD Google Maps combines quality and simplicity, offering you an easy way to add unlimited Maps to your website. It’s an out of the box solution with some powerful functionality and additional customization options. The plugin is distinguished for its feature-packed free version, offering what are usually premium features absolutely free, such as unlimited number of responsive maps, geolocation feature, store locator, layers, unlimited markers, and more. Another great thing about it is that it features an intuitive builder, letting you customize your maps and preview the changes immediately with the live preview option. For additional quality features like marker icon builder, directions, skins and themes, marker listing and multi-level marker categories there is the premium version, which will let you further personalize your maps. Plugin uses clean code, which guarantees smooth operation and compatibility with any WordPress theme.
28
 
 
29
 
 
30
 
31
+ == Benefits ==
32
+ * **Reliability** - Google Maps is the most popular service of its kind and probably the most reliable too. Bring the maps to your website and take advantage of the wealth of information they offer.
33
+ * **Better user experience** - User-friendly interface makes it easy to create personalized maps within minutes and insert them into your posts and pages.They are pretty simple in use, making it easy to search for addresses and get directions.
34
+ * **Informative** - The plugin features almost all Google Maps functionalities, which means you can mark up specific locations and display marker information window as users click on or hover over it. Marker description can include address, location by latitude/longitude, links, images, and more.
35
+ * **High level of customization** - While free plugin supports all essential Google Maps controls and overlays, its Premium version offers some additional features, such as skins and themes. Plus, with the built-in icon maker you can create custom icons and attach them to the maps. The plugin is flexible and allows to style and personalize the maps in different ways.
36
+ * **Customers can easily find you** - Usually consumers search for local businesses online. So if you own a business, a clothing store or a small coffee shop, this is the easiest way to let your customers find you.
37
+ * **Ease of use** - designed for users with any level of familiarity with WordPress. The user-friendly interface of the plugin makes it easy for everyone to create maps, add markers, and make the necessary customization.
38
+ * **Awesome support** - timely and effective support to all users. We keep standards high and response time low.
39
+
40
+
41
+ == What’s in it ==
42
+
43
+ = RESPONSIVE MAPS =
44
+ Maps created with the plugin are responsive and perfectly scale to screens of all shapes and sizes.
45
+
46
+ = UNLIMITED MAPS =
47
+ You can have unlimited maps on your website and unlimited markers on each of them.
48
+
49
+ = SUPPORTS ALL GOOGLE MAPS CONTROLS =
50
+ The plugin supports all Google Maps controls making user interaction smooth and easy. You can configure control settings and choose their position on the map.
51
+
52
+ = SUPPORT FOR ALL MAP TYPES =
53
+ Plugin supports all Google maps styles including road, traffic, satellite, terrain, and hybrid.
54
+
55
+ = LIVE PREVIEW OPTION =
56
+ Customizing maps was never this easy. While you add markers, draw circles and rectangles, apply themes and skins, the changes are immediately shown in the quick preview. A great way to see how your maps look like before you actually add them to your website.
57
+
58
+ = MULTIPLE MAP LAYERS =
59
+ Plugin supports multiple layers. Google Maps standard bicycle, transit and traffic layers, as well as polygon and polyline layers come with the free version, while Circle and Rectangle layers are part of Premium version of the plugin. The latter also provides support for advanced layers, such as layers based on GeoRSS, KML URLs, and Fusion Table Id.
60
+
61
+ = STORE LOCATOR =
62
+ Store locator will let you display a set of markers showing store locations within a specified radius and help your site visitors find stores or business locations nearby. A great way to drive customers to any of your physical locations.
63
+
64
+ = SKINS AND THEMES =
65
+ There are six themes and multiple skins available in the Premium version that can be used to give your maps a distinct look and feel.
66
+
67
+ = DIRECTIONS =
68
+ Directions is a Premium version feature, enabling your site visitors search for locations and find possible route directions from a specific point to the destination. By enabling this feature you can provide directions with driving, walking, bicycling or transit mode, depending which of the modes the specified area supports.
69
+
70
+ = CUSTOM MARKER ICON BUILDER =
71
+ This is perhaps the only Google Maps plugin that lets you create custom icons for the markers. You can upload your own image for the marker and choose its size. This feature is available in Premium version.
72
+
73
+ = MULTI-LEVEL MARKER CATEGORIES =
74
+ Marker categories are a great way to segment your markers and can help your visitors easily find locations using category filtering. Add multi-level marker category support and you can add new categories to already existing parent categories (Premium Version).
75
+
76
+
77
+ = MARKER LISTING OPTIONS =
78
+ You can list markers using Basic listing, Advanced Listing and Carousel view options,which will make it easy for your site visitors find markers based on categories. Users of the Premium plugin can display marker listings as a legend right on the map.
79
+
80
+
81
+ = LAYER IMPORT/EXPORT =
82
+ You can import/export all Google Maps attributes, including markers, circles, rectangles, polygons and polylines from one map to another. The data is exported/imported in .xlsx format.
83
+
84
+
85
+ = SETTINGS/CUSTOMIZATION =
86
+ *Some customizations described here are available in Premium version. Please refer to feature summary for additional info.*
87
+
88
+ The plugin has a pretty intuitive and user-friendly interface, making it easy to create maps and display them on your website. It comes with a comprehensive set of default settings, which include choosing the map center address, center longitude and latitude, zooming level among others. Once you add a new map and start making changes to it, you’ll find a settings tab, where you can set and configure individual settings for every new entry you create. Under this tab, you can configure the settings for store locator, options for controls, and some of the layer settings. Users of the Premium version will also have the settings for marker listing, directions, marker category filter and some other advanced settings available. The latter has separate tab for themes right above the map display, where you can choose a theme for the map. Adding markers and layers requires just a few clicks. Once you click on the Add Marker tab a new window will open, where you can specify marker options, depending on the plugin version you’re using.
89
+
90
+
91
+ [Premium version adds](https://web-dorado.com/products/wordpress-google-maps-plugin.html)
92
+
93
+ * Customizable Google Maps skins
94
+ * Google Maps themes/customize existing themes based on detailed styles and colors section
95
+ * Directions with Walking, Driving, Bicycling and Transit modes
96
+ * Circle and Rectangle layers over the map
97
+ * Multi-level marker categories
98
+ * Custom Marker icon builder (100+ marker icons + option to add your own icons)
99
+ * Custom icon, custom marker text/description, images and link support for the markers
100
+ * Marker, Circle, Rectangle, Polygon, Polyline Export/Import option from one map to another
101
+ * Marker listing (Basic listing, Advanced Listing and Carousel view) for easier access of categorized markers
102
+ * Marker listing display within the map as a legend
103
+ * Advanced layer support (layers based on GeoRSS, KML URLs, Fusion Table ID)
104
+
105
 
106
  ###IMPORTANT:
107
+ If you think you found a bug or have any problem/question concerning this plugin, please check out [Support Forum](https://wordpress.org/support/plugin/wd-google-maps). If you do not find a solution here, do not hesitate to [click here to contact us](https://web-dorado.com/support/contact-us.html).
108
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
 
110
 
111
  == Installation ==
112
 
113
+ #### Thank you for your interest in WD Google Maps.
114
+
115
+ Here are two ways of installing WD Google Maps: via WordPress backend and via FTP. Let’s discuss each case individually:
116
 
117
+ **Installing via WordPress**
 
 
 
118
 
119
+ Login to the WordPress Administrator Panel.
120
+ Go to Plugins> Add New>Upload.
121
+ Click Choose file button and select the zip folder of WD Google Maps plugin and press Install now button.
122
+ Click Activate button.
123
 
124
+ **Installing via FTP**
125
+
126
+ Login to your hosting space via an FTP software, e.g. FileZilla.
127
+ Unzip the downloaded WD Google Maps plugin folder without making any changes to the folder.
128
+ Upload the Google Mapsplugin into the following location wp-content>wp-plugins.
129
+ Login to the WordPress Administrator Panel.
130
+ Activate WD Google Maps by going to Plugins and pressing Activate button.
131
 
 
 
 
 
 
 
 
 
132
 
133
  == Screenshots ==
134
+ 1. WD Google Maps - Edit Map
135
+ 2. WD Google Maps - Add Marker
136
+ 3. WD Google Maps - Add Polygon
137
+ 4. WD Google Maps - Map Settings
138
+ 5. WD Google Maps - Edit Theme
139
+ 6. WD Google Maps - Basic Google Maps
140
+ 7. WD Google Maps - Google Maps Directions
141
+ 8. WD Google Maps - Google Maps Advanced Marker Listing
142
+ 9. WD Google Maps - Google Maps Store locator
143
+ 10. WD Google Maps - Google Maps Polygons and Polylines
144
 
145
  == Changelog ==
146
 
147
+ = 1.0.50 =
148
+ * Changed : Deactivation popup.
149
+ * Added : Support forum link.
150
+
151
  = 1.0.49 =
152
  * Remove: Font awesome.
153
  * Changed : WebDorado links.
305
 
306
  == Frequently Asked Questions ==
307
 
308
+ = How can I add Google Maps API key to the plugin? =
309
 
310
+ After activation of WordPress Google Maps plugin, the setup wizard of maps will be automatically launched. You can press **Skip** the wizard and relaunch it later or configure the options in **Google Maps > Options** submenu.
311
 
312
+ WD Google Maps plugin requires Google Maps API keys for functioning. It currently allows to have up to 25 000 requests per day free of charge. For further requests you will be charged. You can find out more about this [here](https://developers.google.com/maps/documentation/javascript/usage).
313
 
314
+ To create an Maps API key login to Google API Console following [this link](https://console.developers.google.com/apis/library/maps-backend.googleapis.com/?project=resolute-bloom-181412).
315
 
316
+ If you are a new user you will be required to start a project. To do this, press **Create project** button or choose one of the existing projects.
317
 
318
+ Press **Continue** button. A new page will be opened. Fill in the name and domain(s) using the following format:
 
319
 
320
+ *.example.com/*
 
321
 
322
+ and press **Create** button. It creation process will take up to a few minutes.
 
323
 
324
+ Copy the API key and fill them in **WD Google Maps > Options** page.
 
325
 
326
+ = How do I publish a map on posts or pages? =
327
 
328
+ To insert WordPress Google Map into a Page or Post you should open the post/page from Admin Panel. Here you will see Google Maps icon. Press on it to open the maps.
329
 
330
+ Select the map you want to add to the page/post from the list.
331
+ Alternatively you can copy the shortcode of this mapping service available in **WD Google Maps > Maps** section. Go your Post/Page where you wish to add a map. Change the content box from **Visual** to **Text** tab and add the code.
332
 
333
+ If you want to add map to custom area on your site please use PHP shortcode of WD Google Maps instead. Copy and paste it to the .php file, where you plan to include the map.
334
 
335
+ To insert the Map as a widget, navigate to **Appearance > Widgets,** and look for **WD Google Maps** widget. Select a position for the maps widget, then configure the settings. Press the **Save** button to publish your new map widget.
 
336
 
337
+ * **Title.** Provide title for the widget.
338
+ * **Select Map.** Choose one of the created Google Maps to insert as widget.
339
+ * **Map Type.** Choose the map mode.
340
+ * **Zoom Level.** Define zoom level for maps widget or leave the default option.
341
+ * **Width.** Set the width of the widget.
342
+ * **Height.** Set the height of the widget.
343
+ * **Text Above/Below Map.** Fill in custom text to accompany map for one of/or both positions.
344
 
345
+ = How do I add a marker to Google Maps? =
346
 
347
+ Navigate to WD Google Maps > Maps page and edit the entry where you wish to add map markers. In this section you are able to to add markers to your WordPress Google Map.
348
 
349
+ Markers are used for indicating specific location on a map. The icon of the marker appears as an overlay of the map and may give some additional information.
350
+ Note, that all changes made in the markers of this quick map builder will be previewed on small map sample on the right side of the screen.
351
 
352
+ **Title.** You can provide a title for the maps marker. The title will be included in Information window of the marker.
353
+ **Link URL. You can link Marker to any URL, so that when site visitor hits the marker they will be redirected to mentioned URL. The link will be opened in a new window.
354
+ **Address.** There are three ways of adding the marker location on maps - providing address, filling in longitude and latitude or right-clicking on the location on the map.
355
+ **Description.** Description of the marker will be displayed alongside its title within Information window.
356
+ **Marker Description Image.** The marker information window can also contain an image. Here you can upload the images to be used.
357
+ **Category.** Here you can specify the marker category. More about marker categories can be found at Marker Category section.
358
+ **Animation.** By default, the marker will be automatically displayed with the map, but if you want to have an effect for adding marker overlay, you can choose the maps animation from the list.
359
+ **Enable Info Window.** Choose whether to have information window with map markers or not.
360
+ **Open Info Window by Default.** Choose whether to display information window of the marker by default or when user presses the marker icon.
361
+ **Icon.** You can choose from existing icons or upload your own. Plugin includes different categories of icons.You can also create your own icons filling marker and icon colors. Your created icons will be saved in Added markers category.
362
+ **Custom Icon size.** Here you can define the dimensions of the icon.
363
+ **Published.** Choose whether to publish the marker or leave it for the further publishing.
364
 
365
+ When all settings are set up, press **Add Marker/Edit Marker** button.
 
366
 
367
+ The created marker will appear below the map within Markers tab: here you will have the option to filter, duplicate, edit and delete markers.
368
 
369
+ = How can I create marker categories? =
 
 
 
 
370
 
371
+ To create a marker category navigate to **WD Google Maps > Marker Category** page.
 
 
 
372
 
373
+ **Title.** Provide a title for the marker category.
374
+ **Select Parent Category.** Here you can leave to root to create a first-level map category or choose one of existing (already added) categories to be used as a parent for the category.
375
+ **Category Icon.** You can upload a custom image to accompany the marker category. It will accompany the marker category with marker filtering and marker listing options.
376
+ **Published.** Choose whether to publish the maps marker category or leave it for further publishing.
377
+ When done with changes press Save (will save and get to the list of created markers), Apply (will save and keep you on the marker page), Save as Copy (if you want to make changes to the marker category but not overwrite the existing marker category) or Cancel (to stop the process of creating a new marker).
378
+
379
+ = Can I change the control settings on the map? =
380
+
381
+ Yes, you can edit the Control settings of the WordPress Google Maps plugin to better fit your needs. To change control setting navigate to **Settings > Controls** section.
382
+
383
+ You can configure map controls and change their positions:
384
+ * **Zoom Control.** Contains + and - buttons to zoom in and zoom out the map.
385
+ * **Map Type Control.** Allows the users to change from roadmap to satellite view.
386
+ * **Scale Control.** Displays the scale of the map and can be changed.
387
+ * **Street View Control.** Displays a person icon and allow switching to street view for certain location.
388
+ * **Fullscreen Control.** Displays the map in fullscreen mode.
389
+
390
+ **Rotate Control** feature is only available with **Satellite** mode of Google Maps, when you have close-up view of the location and can use it to rotate the satellite-created image.
391
+
392
+ = How can I add Circles or Rectangles to a map? =
393
+
394
+ **Adding Circle to WordPress Google Map**
395
+
396
+ Circle is a circle-shaped overlay. Here you can define the colors, widths, radius and opacity values both for the edge of the circle (line) and its covered area (fill).
397
+
398
+ **Title.** You can provide a title for your circle map layers. The title will be included in Information window of the shape.
399
+ **Center Address.** There are three ways of adding the center of the circle - providing address, filling in longitude and latitude or right-clicking on the location on the map.
400
+ **Link URL.** You can link circle overlay to any URL, so that when site visitor hits the circle they will be redirected to mentioned URL. The link will be opened in a new window.
401
+ **Radius (meters).** Provide the radius of the circle in meters.
402
+ **Show marker.** Choose whether to display the marker in center address of the circle overlay or not.
403
+ **Enable Info Window.** In some cases (e.g. you don’t want to display marker or you want the user to learn more about the location using URL redireciton only) you can disable Information window here.
404
+ **Line+Fill Color and styles.** Choose the color and widths for the overlay covered area (fill) and its edge (line) by default and when hovered.
405
+ **Published.** Choose whether to publish the circle overlay or leave it for the further publishing.
406
+
407
+ When all settings are set up, press Add Circle button.
408
+ The created circle overlay will appear below the map within Circles tab:
409
+ The created circle will appear below the map within Circles tab: here you will have the option to filter, duplicate, edit and delete circles.
410
+
411
+
412
+ **Adding Rectangle to WordPress Google Map**
413
+
414
+ This intuitive map builder allows you to add rectangle-shaped overlay for the map. When creating a rectangle you can define the colors, widths and opacity values both for the edges of the rectangle (line) and its covered area (fill). The shape gets created based on only two values/vertexes - its marker on North East point and South West. The rest of two points- North West and South East get created automatically. In case you want to change one of the edges of the shape, you can click on the marker, the vertex will be removed and you can create a new one. In addition overall shape and south west/north east markers is draggable and you can move them within the map to change the rectangle shape or rectangle location.
415
+
416
+ **Title.** You can provide a title for the rectangle overlay. The title will be included in Information window of the shape.
417
+ **Link.** You can link rectangle map layers to any URL, so that when site visitor hits the shape they will be redirected to mentioned URL. The link will be opened in a new window.
418
+ **South West.** Fill in longitude and latitude of the South West point or right click on the map to create the vertex.
419
+ **North East.** Fill in longitude and latitude of the North East point or right click on the map to create the vertex.
420
+ **Show markers.** Choose whether to display the marker, which are at the edges of the rectangle overlay or not.
421
+ **Enable Info Window.** In some cases (e.g. you don’t want to display markers or you want the user to learn more about the location using URL redirection only) you can disable Information window here.
422
+ **Line+Fill Color and styles.** Choose the color and widths for the overlay covered area (fill) and its edge (line) by default and when hovered.
423
+ **Published.** Choose whether to publish the rectangle overlay or leave it for the further publishing.
424
+
425
+ When all settings are set up, press Add Rectangle button.
426
+
427
+ The created rectangle overlay will appear below the map within Rectangles tab: here you will have the option to filter, duplicate, edit and delete rectangles.
428
+
429
+ = Can I use Google Maps in Widgets? =
430
+
431
+ Yes WD Google Maps comes with a widget. You can insert created Google Maps into a custom area depending on your theme widget areas assigning it to certain position. You can configure the Google Maps settings and define its dimension.
432
+
433
+ = How many Google maps can I insert into a post? =
434
+
435
+ The number of Google Maps per post is not limited. You can choose to display multiple Google Maps per post/page using WD Google Maps standard shortcode.
436
+
437
+ = Are taxonomies supported in Marker categories? =
438
+
439
+ If you use Pro version of WD Google Maps the option is possible to achieve. Different marker categories of the Google Maps can serve as parent category for another marker category.
440
+
441
+
442
+ = Can I create shapes with free version of WD Google Maps? =
443
+
444
+ Yes, free version of WD Google Maps allows to create polygon and polyline overlays for the maps, whereas WD Google Maps Pro version adds circle and rectangular overlays to this list.
445
+
446
+ **Polygon**
447
+
448
+ When creating a polygon you can define the colors, widths and opacity values for the edges of the rectangle (line) and its covered area (fill). The shape gets created based on vertexes.
449
+
450
+ In case you want to change one of the edges of the shape, you can click on the marker, the vertex will be removed and you can create a new one. In addition overall created shape and its markers is draggable and you can move them within the map to change the shape or its location.
451
+
452
+ * Title. You can provide a title for the polygon overlay. The title will be included in Information window of the shape.
453
+ * Link. You can link polygon overlay to any URL, so that when site visitor hits the shape they will be redirected to mentioned URL. The link will be opened in a new window.
454
+ * Data. Here you can either provide the longitude and latitude values for all included edges or use the markers to create the shape.
455
+ * Show markers. Choose whether to display the marker, which are at the edges of the polygon overlay or not.
456
+ * Enable Info Window. In some cases (e.g. you don’t want to display markers or you want the user to learn more about the location using URL redirection only) you can disable Information window here.
457
+ * Line+Fill Color and styles. Choose the color and widths for the overlay covered area (fill) and its edge (line) by default and when hovered.
458
+ * Published. Choose whether to publish the polygon overlay or leave it for the further publishing.
459
+
460
+ When all settings are set up, press **Add Polygon** button. The created polygon overlay will appear below the map within Polygons tab: here you will have the option to filter, duplicate, edit and delete polygons.
461
+
462
+ **Polyline**
463
+
464
+ This is a shape created using multiple vertexes where each edge is marked with a marker. You can define the color and widths of the lines used for this overlay. Based on the number of used vertexes, the polyline can be a set of from two up to any number of lines.
465
+
466
+ In case you want to change one of the edges of the shape, you can click on the marker, the vertex will be removed and you can create a new one. In addition overall created shape and its markers are draggable and you can move them within the map to change the shape or its location.
467
+
468
+ * Title. You can provide a title for the polyline overlay. The title will be included in Information window of the shape.
469
+ * Link. You can link polyline overlay to any URL, so that when site visitor hits the shape they will be redirected to mentioned URL. The link will be opened in a new window.
470
+ * Data. Here you can either provide the longitude and latitude values for all included edges or use the markers to create the shape.
471
+ * Show markers. Choose whether to display the marker, which are at the edges of the polyline overlay or not.
472
+ * Enable Info Window. In some cases (e.g. you don’t want to display markers or you want the user to learn more about the location using URL redireciton only) you can disable Information window here.
473
+ * Line color and styles. Choose the color and widths for the edges (line) by default and when hovered.
474
+ * Published. Choose whether to publish the polyline overlay or leave it for the further publishing.
475
+
476
+ When all settings are set up, press **Add Polyline** button. The created polyline overlay will appear below the map within Polylines tab. Here you will have the option to filter, duplicate, edit and delete polylines.
477
+
478
+ = How to display directions with custom Google Maps? =
479
+
480
+ WD Google Maps Pro version allows to add directions tab with Google Maps displaying the standard directions process and modes of reaching from point A to point B on the Google Map.
481
+
482
+ To edit the **Directions** settings of the WordPress Google Maps, open **Settings** tab of your Google map, then go to **Directions** section.
483
+
484
+ This allows users to choose two locations and get directions. The mode can be driving, walking, bicycling or transit.
485
+
486
+ * Enable Directions. Choose whether to enable directions for the map or not.
487
+ * Directions Window Open. Choose to display directions with an open window or not. If disabled, the user can access to directions pressing Get directions button within marker.
488
+ * Directions Window Width. Choose fixed size for the directions window in pixels either percentage of content area.
489
+ * Direction Window Position. Choose the position of the directions window from possible options.
490
+
491
+ = How to insert Google maps into a template? =
492
+
493
+ If you plan to include your Google Map into a custom **PHP template,** you need to use the **PHP Function** of WD Google Maps.
494
+
495
+ The shortcode does not require additional customization, simply copy the code and paste it into the PHP file, where you want the Google Maps to be displayed. You can find the function on **WD Google Maps > Maps** page.
496
+
497
+ = How can I style the maps? =
498
+
499
+ **Premium version** of WD Google Maps provides numerous customizable map skins and map themes. This allows you to fully customize Google Maps choosing map skins and changing styles and colors for certain Google Maps attributes.
500
+
501
+ You can select a theme from already created themes for your WordPress Google Map. In case you want to create a new theme, you need to **Google Maps > Themes** section and press **Add New** button.
502
+
503
+ * Select. Here you will see the list of already created themes.
504
+ * Preview. Here you will see the live preview of the theme.
505
+
506
+ **Adding/Modifying Maps Themes**
507
+
508
+ In this section you can create new map themes and a map skins for your map. As a first step you need to add title to the theme of your map.
509
+
510
+ **Adding/Modifying Maps Themes**
511
+
512
+ All changes made in styles and colors for:
513
+
514
+ * Directions,
515
+ * Store Locator,
516
+ * Marker Listings (with its 4 styles)
517
+
518
+ can be previewed on the right side of the screen to get overall idea on what you have as a result of changes.
519
+
520
+ For the map styles you need first to provide the radius from center you want to display with the map.
521
+
522
+ There are three options for creating map themes.
523
+
524
+ **Choose from default options**
525
+
526
+ Here you will see the list of available map skins to choose from. Whenever you add new custom map skins, the new skin will be added to the list.
527
+
528
+ **Style existing/Create new skin based on default skin**
529
+
530
+ **Choose from default options**
531
+
532
+ To create a custom skin first press Add new Style button. Then navigate to Edit Map Style and press Add feature style button. Two dropdowns will appear. Map Style Feature Type will allow choosing a specific map-related feature, e.g. landscape, road and etc. Map Style Element Type will allow choosing specific element of the feature, e.g. geometry or labels. For each element you can make style changes using Styler. It will allow to change color, gamma, hue, invert lightness, lightness, saturation, visibility and widths of the selected element.
533
+
534
+ **Create Custom skin**
535
+
536
+ If you want to have a custom map skin based on Google Map styling standard, you can uncheck Auto Generate Map Style Code and paste the custom script in content area below.
537
+
538
+ = Is WD Google Maps responsive? =
539
+
540
+ WD Google Maps plugin is developed to provide excellent user experience on any mobile or desktop device. It has a responsive design and layout, thus functions correctly on any screen size.
541
+
542
+ = Is it possible to show a list of all markers with the map? =
543
+
544
+ You can use **Marker Listing** option to activate map legend markers and show them with your Google Maps. To enable this feature, add/edit your markers and navigate to **Settings** tab.
545
+
546
+ Go to **Marker Listing** section to access map legend tools. Firstly, you need to set **Marker List Type** to one of the following options:
547
+
548
+ * Basic Table,
549
+ * Advanced Table,
550
+ * Carousel.
551
+
552
+ When **None** option is selected, the map legend of markers is deactivated. After choosing Marker List Type, configure the settings below and save the map.
553
+
554
+ * Header Title,
555
+ * Order By,
556
+ * Order Direction,
557
+ * Marker List Position,
558
+ * Enable List Inside Map,
559
+ * Inside Map List Position.
560
+
561
+ = Can I allow users to locate my venues on the Google map?
562
+
563
+ You can do this with WD Google Maps **Store Locator** Settings.
564
+
565
+ To edit the **Store Locator** settings of the WordPress Google Maps plugin, navigate to **Settings** tab of your map, then open **Store Locator** section.
566
+
567
+ Store locator will add a circular overlay over the map with filled centre and radius. Than you can see the markers which are located within this circle:
568
+
569
+ * Enable Store Locator. Choose whether to have store locator feature enabled for your map or not.
570
+ * Window Width. Choose fixed size for the map store locator window in pixels either percentage of content area.
571
+ * Window Position. Chose the Store location window position relative to map. Distance In. Choose the measurement unit for your Google Maps Store Locator - kilometers or miles.
572
+ * Circle line + fill. Define styles and colors for the circular overlay edge (line) and fill (covered area) of your map.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wd-google-maps.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
 
3
  /**
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.49
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
1
  <?php
2
 
3
  /**
4
+ * Plugin Name: WD Google Maps
5
  * Plugin URI: https://web-dorado.com/products/wordpress-google-maps-plugin.html
6
+ * Description: WD Google Maps is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
7
+ * Version: 1.0.50
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
wd/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Version: 1.0.11
2
 
3
 
4
 
1
+ Version: 1.0.13
2
 
3
 
4
 
wd/assets/css/deactivate_popup.css CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  .wd-opacity{
2
  position: fixed;
3
  top: 0px;
1
+ .wd-bwg-reasons:nth-child(3) {
2
+ display: none;
3
+ }
4
+
5
  .wd-opacity{
6
  position: fixed;
7
  top: 0px;
wd/assets/img/cfm_main_plugin.png ADDED
Binary file
wd/assets/js/overview.js CHANGED
@@ -12,7 +12,7 @@
12
  ////////////////////////////////////////////////////////////////////////////////////////
13
  jQuery(document).ready(function () {
14
  jQuery(".overview_content > div:not(#welcome)").hide();
15
- jQuery(".overview_tabs li a:not(.not_tab)").click(function(){
16
  jQuery(".overview_tabs li a").removeClass("overview_tab_active");
17
  jQuery(this).addClass("overview_tab_active");
18
  jQuery(".overview_content > div").hide();
@@ -31,7 +31,7 @@ jQuery(document).ready(function () {
31
  // jQuery("body").append('<style>.stars-' + rate.toString() + ':after{width:' + rate + '%;}</style>');
32
  // });
33
 
34
- jQuery("#wd-copy").click(function(){
35
  var selector = document.querySelector('#wd-site-deatils-textarea');
36
  selector.select();
37
  document.execCommand('copy');
12
  ////////////////////////////////////////////////////////////////////////////////////////
13
  jQuery(document).ready(function () {
14
  jQuery(".overview_content > div:not(#welcome)").hide();
15
+ jQuery(".overview_tabs li a:not(.not_tab)").on("click", function(){
16
  jQuery(".overview_tabs li a").removeClass("overview_tab_active");
17
  jQuery(this).addClass("overview_tab_active");
18
  jQuery(".overview_content > div").hide();
31
  // jQuery("body").append('<style>.stars-' + rate.toString() + ':after{width:' + rate + '%;}</style>');
32
  // });
33
 
34
+ jQuery("#wd-copy").on("click", function(){
35
  var selector = document.querySelector('#wd-site-deatils-textarea');
36
  selector.select();
37
  document.execCommand('copy');
wd/assets/js/subsribe.js CHANGED
@@ -10,13 +10,13 @@
10
  ////////////////////////////////////////////////////////////////////////////////////////
11
  // Constructor & Destructor //
12
  ////////////////////////////////////////////////////////////////////////////////////////
13
- jQuery(document).ready(function () {
14
- jQuery(".permissions").click(function(){
15
  jQuery(".list").toggle();
16
  return false;
17
  });
18
 
19
- jQuery(".allow_and_continue").click(function(){
20
  jQuery(this).css("opacity", "0.5");
21
  jQuery(".wd_loader").css("visibility", "visible");
22
  });
10
  ////////////////////////////////////////////////////////////////////////////////////////
11
  // Constructor & Destructor //
12
  ////////////////////////////////////////////////////////////////////////////////////////
13
+ jQuery(document).on("ready", function () {
14
+ jQuery(".permissions").on("click", function(){
15
  jQuery(".list").toggle();
16
  return false;
17
  });
18
 
19
+ jQuery(".allow_and_continue").on("click", function(){
20
  jQuery(this).css("opacity", "0.5");
21
  jQuery(".wd_loader").css("visibility", "visible");
22
  });
wd/includes/notices.php CHANGED
@@ -1,96 +1,96 @@
1
  <?php
2
- if ( !defined( 'ABSPATH' ) ) {
3
- exit;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- class DoradoWebNotices {
7
-
8
- protected $promo_link = '';
9
-
10
- public $config;
11
- public $notice_spam = 0;
12
- public $notice_spam_max = 2;
13
-
14
- // Basic actions to run
15
- public function __construct( $config = array() ) {
16
- $this->config = $config;
17
- // Runs the admin notice ignore function incase a dismiss button has been clicked
18
- add_action( 'admin_init', array( $this, 'admin_notice_ignore' ) );
19
- // Runs the admin notice temp ignore function incase a temp dismiss link has been clicked
20
- add_action( 'admin_init', array( $this, 'admin_notice_temp_ignore' ) );
21
- add_action( 'admin_notices', array( $this, 'wd_admin_notices' ) );
22
  }
 
 
23
 
24
- // Checks to ensure notices aren't disabled and the user has the correct permissions.
25
- public function wd_admin_notice() {
26
- $wd_options = $this->config;
27
- $settings = get_option($wd_options->prefix . '_admin_notice');
28
- if ( !isset( $settings['disable_admin_notices'] ) || ( isset( $settings['disable_admin_notices'] ) && $settings['disable_admin_notices'] == 0 ) ) {
29
- if ( current_user_can( 'manage_options' ) ) {
30
- return true;
31
- }
32
- }
33
  return false;
34
  }
35
-
36
- // Primary notice function that can be called from an outside function sending necessary variables
37
- public function admin_notice( $admin_notices ) {
38
- $wd_options = $this->config;
39
- // Check options
40
- if ( !$this->wd_admin_notice() ) {
41
  return false;
42
  }
43
- foreach ( $admin_notices as $slug => $admin_notice ) {
44
- // Call for spam protection
45
- if ( $this->anti_notice_spam() ) {
 
46
  return false;
47
  }
 
48
 
49
- // Check for proper page to display on
50
- if (isset( $admin_notices[$slug]['pages']) && is_array( $admin_notices[$slug]['pages'])) {
51
- if ( !$this->admin_notice_pages( $admin_notices[$slug]['pages'] ) ) {
52
- return false;
53
- }
54
- }
55
 
56
- // Check for required fields
57
- if ( !$this->required_fields( $admin_notices[$slug] ) ) {
58
-
59
- // Get the current date then set start date to either passed value or current date value and add interval
60
- $current_date = current_time( "n/j/Y" );
61
- $start = ( isset( $admin_notices[$slug]['start'] ) ? $admin_notices[$slug]['start'] : $current_date );
62
- $start = date( "n/j/Y", strtotime( $start ) );
63
- $date_array = explode( '/', $start );
64
- $interval = ( isset( $admin_notices[$slug]['int'] ) ? $admin_notices[$slug]['int'] : 0 );
65
-
66
- $date_array[1] += $interval;
67
- $start = date( "n/j/Y", mktime( 0, 0, 0, $date_array[0], $date_array[1], $date_array[2] ) );
68
-
69
- // This is the main notices storage option
70
- $admin_notices_option = get_option( $wd_options->prefix . '_admin_notice', array() );
71
- // Check if the message is already stored and if so just grab the key otherwise store the message and its associated date information
72
- if ( !array_key_exists( $slug, $admin_notices_option ) ) {
73
- $admin_notices_option[$slug]['start'] = $start;
74
- $admin_notices_option[$slug]['int'] = $interval;
75
- update_option( $wd_options->prefix . '_admin_notice', $admin_notices_option );
76
- }
77
 
78
- // Sanity check to ensure we have accurate information
79
- // New date information will not overwrite old date information
80
- $admin_display_check = ( isset( $admin_notices_option[$slug]['dismissed'] ) ? $admin_notices_option[$slug]['dismissed'] : 0 );
81
- $admin_display_start = ( isset( $admin_notices_option[$slug]['start'] ) ? $admin_notices_option[$slug]['start'] : $start );
82
- $admin_display_interval = ( isset($admin_notices_option[$slug]['int'] ) ? $admin_notices_option[$slug]['int'] : $interval );
83
- $admin_display_msg = ( isset($admin_notices[$slug]['msg'] ) ? $admin_notices[$slug]['msg'] : '' );
84
- $admin_display_title = ( isset($admin_notices[$slug]['title'] ) ? $admin_notices[$slug]['title'] : '' );
85
- $admin_display_link = ( isset( $admin_notices[$slug]['link'] ) ? $admin_notices[$slug]['link'] : '' );
86
- $output_css = false;
87
-
88
- // Ensure the notice hasn't been hidden and that the current date is after the start date
89
- if ( $admin_display_check == 0 && strtotime($admin_display_start) <= strtotime($current_date ) ) {
90
-
91
- // Get remaining query string
92
- $query_str = ( isset( $admin_notices[$slug]['later_link'] ) ? $admin_notices[$slug]['later_link'] : esc_url(add_query_arg( $wd_options->prefix . '_admin_notice_ignore', $slug ) ) );
93
- if ( strpos($slug, 'promo' ) === FALSE ) {
 
 
 
 
 
 
 
 
 
 
 
 
94
  // Admin notice display output
95
  echo '<div class="update-nag wd-admin-notice">
96
  <div class="wd-notice-logo" style="background-image: url(' . $wd_options->wd_url_img . '/' . $wd_options->prefix . '_main_plugin.png);"></div>
@@ -99,8 +99,8 @@
99
  <ul class="wd-notice-body wd-blue">' . $admin_display_link . '</ul>
100
  <a href="' . $query_str . '" class="dashicons dashicons-dismiss"></a>
101
  </div>';
102
- }
103
- else {
104
  echo '<div class="admin-notice-promo">';
105
  echo $admin_display_msg;
106
  echo '<ul class="notice-body-promo blue">
@@ -108,116 +108,116 @@
108
  </ul>';
109
  echo '<a href="' . $query_str . '" class="dashicons dashicons-dismiss close-promo"></a>';
110
  echo '</div>';
111
- }
112
- $this->notice_spam += 1;
113
- $output_css = true;
114
- }
115
- if ( $output_css ) {
116
- wp_enqueue_style( $wd_options->prefix . '-admin-notices', $wd_options->wd_url_css . '/notices.css', array(), get_option($wd_options->prefix . "_version" ) );
117
  }
 
 
 
 
 
118
  }
119
  }
120
  }
 
121
 
122
- // Spam protection check
123
- public function anti_notice_spam() {
124
- if ( $this->notice_spam >= $this->notice_spam_max ) {
125
- return true;
126
- }
127
- return false;
128
  }
 
 
129
 
130
- // Ignore function that gets ran at admin init to ensure any messages that were dismissed get marked
131
- public function admin_notice_ignore() {
132
- $wd_options = $this->config;
133
- // If user clicks to ignore the notice, update the option to not show it again
134
- if ( isset( $_GET[$wd_options->prefix . '_admin_notice_ignore'] ) ) {
135
- $admin_notices_option = get_option( $wd_options->prefix . '_admin_notice', array() );
136
- $admin_notices_option[$_GET[$wd_options->prefix . '_admin_notice_ignore']]['dismissed'] = 1;
137
- update_option( $wd_options->prefix . '_admin_notice', $admin_notices_option );
138
- $query_str = remove_query_arg( $wd_options->prefix . '_admin_notice_ignore' );
139
- wp_redirect( $query_str );
140
- exit;
141
- }
142
  }
 
143
 
144
- // Temp Ignore function that gets ran at admin init to ensure any messages that were temp dismissed get their start date changed
145
- public function admin_notice_temp_ignore() {
146
- $wd_options = $this->config;
147
- // If user clicks to temp ignore the notice, update the option to change the start date - default interval of 14 days
148
- if ( isset( $_GET[$wd_options->prefix . '_admin_notice_temp_ignore'] ) ) {
149
- $admin_notices_option = get_option( $wd_options->prefix . '_admin_notice', array() );
150
- $current_date = current_time( "n/j/Y" );
151
- $date_array = explode( '/', $current_date );
152
- $interval = (isset($_GET['wd_int']) ? $_GET['wd_int'] : 14);
153
- $date_array[1] += $interval;
154
- $new_start = date( "n/j/Y", mktime( 0, 0, 0, $date_array[0], $date_array[1], $date_array[2] ) );
155
-
156
- $admin_notices_option[$_GET[$wd_options->prefix . '_admin_notice_temp_ignore']]['start'] = $new_start;
157
- $admin_notices_option[$_GET[$wd_options->prefix . '_admin_notice_temp_ignore']]['dismissed'] = 0;
158
- update_option( $wd_options->prefix . '_admin_notice', $admin_notices_option );
159
- $query_str = remove_query_arg( array( $wd_options->prefix . '_admin_notice_temp_ignore', 'wd_int' ) );
160
- wp_redirect( $query_str );
161
- exit;
162
- }
163
  }
 
164
 
165
- public function admin_notice_pages($pages) {
166
- $wd_options = $this->config;
167
- foreach ( $pages as $key => $page ) {
168
- if (is_array($page)) {
169
- if ( isset( $_GET['page'] ) && $_GET['page'] == $page[0] && isset($_GET['tab']) && $_GET['tab'] == $page[1] ) {
170
- return true;
171
- }
172
- }
173
- else {
174
- if ( $page == 'all' ) {
175
- return true;
176
- }
177
- if ( get_current_screen()->id === $page ) {
178
- return true;
179
- }
180
- if ( isset($_GET['page']) && $_GET['page'] == $page ) {
181
- return true;
182
- }
183
  }
184
- return false;
185
  }
186
- }
187
-
188
- // Required fields check
189
- public function required_fields( $fields ) {
190
- if ( !isset( $fields['msg'] ) || ( isset($fields['msg'] ) && empty( $fields['msg'] ) ) ) {
191
- return true;
192
- }
193
- if ( !isset( $fields['title'] ) || ( isset( $fields['title'] ) && empty( $fields['title'] ) ) ) {
194
- return true;
 
195
  }
196
  return false;
197
  }
 
198
 
199
- // Special parameters function that is to be used in any extension of this class
200
- public function special_parameters($admin_notices) {
201
- // Intentionally left blank
 
 
 
 
202
  }
 
 
203
 
204
- public function wd_admin_notices() {
205
- $wd_options = $this->config;
206
- $two_week_review_ignore = add_query_arg( array( $wd_options->prefix . '_admin_notice_ignore' => 'two_week_review' ) );
207
- $two_week_review_temp = add_query_arg( array( $wd_options->prefix . '_admin_notice_temp_ignore' => 'two_week_review', 'int' => 14 ) );
208
- $promo_close = add_query_arg( array( $wd_options->prefix . '_admin_notice_ignore' => 'ecommerce_promo' ) );
209
 
210
- $notices['two_week_review'] = array(
211
- 'title' => __('Leave A Review?', $wd_options->prefix),
212
- 'msg' => sprintf(__('We hope you\'ve enjoyed using WordPress %s! Would you consider leaving us a review on WordPress.org?', $wd_options->prefix), $wd_options->plugin_title),
213
- 'link' => '<li><span class="dashicons dashicons-external"></span><a href="https://wordpress.org/support/view/plugin-reviews/' . $wd_options->plugin_wordpress_slug . '?filter=5" target="_blank">' . __('Sure! I\'d love to!', $wd_options->prefix) . '</a></li>
 
 
 
 
 
 
214
  <li><span class="dashicons dashicons-smiley"></span><a href="' . $two_week_review_ignore . '"> ' . __('I\'ve already left a review', $wd_options->prefix) . '</a></li>
215
  <li><span class="dashicons dashicons-calendar-alt"></span><a href="' . $two_week_review_temp . '">' . __('Maybe Later', $wd_options->prefix) . '</a></li>
216
  <li><span class="dashicons dashicons-dismiss"></span><a href="' . $two_week_review_ignore . '">' . __('Never show again', $wd_options->prefix) . '</a></li>',
217
- 'later_link' => $two_week_review_temp,
218
- 'int' => 14
219
- );
220
-
221
- $this->admin_notice($notices);
222
- }
223
  }
 
1
  <?php
2
+ if ( !defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+
6
+ class DoradoWebNotices {
7
+
8
+ protected $promo_link = '';
9
+
10
+ public $config;
11
+ public $notice_spam = 0;
12
+ public $notice_spam_max = 2;
13
+
14
+ // Basic actions to run
15
+ public function __construct( $config = array() ) {
16
+ $this->config = $config;
17
+ // Runs the admin notice ignore function incase a dismiss button has been clicked
18
+ add_action( 'admin_init', array( $this, 'admin_notice_ignore' ) );
19
+ // Runs the admin notice temp ignore function incase a temp dismiss link has been clicked
20
+ add_action( 'admin_init', array( $this, 'admin_notice_temp_ignore' ) );
21
+ add_action( 'admin_notices', array( $this, 'wd_admin_notices' ) );
22
  }
23
 
24
+ // Checks to ensure notices aren't disabled and the user has the correct permissions.
25
+ public function wd_admin_notice() {
26
+ $wd_options = $this->config;
27
+ $settings = get_option($wd_options->prefix . '_admin_notice');
28
+ if ( !isset( $settings['disable_admin_notices'] ) || ( isset( $settings['disable_admin_notices'] ) && $settings['disable_admin_notices'] == 0 ) ) {
29
+ if ( current_user_can( 'manage_options' ) ) {
30
+ return true;
31
+ }
 
 
 
 
 
 
 
 
32
  }
33
+ return false;
34
+ }
35
 
36
+ // Primary notice function that can be called from an outside function sending necessary variables
37
+ public function admin_notice( $admin_notices ) {
38
+ $wd_options = $this->config;
39
+ // Check options
40
+ if ( !$this->wd_admin_notice() ) {
 
 
 
 
41
  return false;
42
  }
43
+ foreach ( $admin_notices as $slug => $admin_notice ) {
44
+ // Call for spam protection
45
+ if ( $this->anti_notice_spam() ) {
 
 
 
46
  return false;
47
  }
48
+
49
+ // Check for proper page to display on
50
+ if (isset( $admin_notices[$slug]['pages']) && is_array( $admin_notices[$slug]['pages'])) {
51
+ if ( !$this->admin_notice_pages( $admin_notices[$slug]['pages'] ) ) {
52
  return false;
53
  }
54
+ }
55
 
56
+ // Check for required fields
57
+ if ( !$this->required_fields( $admin_notices[$slug] ) ) {
 
 
 
 
58
 
59
+ // Get the current date then set start date to either passed value or current date value and add interval
60
+ $current_date = current_time( "n/j/Y" );
61
+ $start = ( isset( $admin_notices[$slug]['start'] ) ? $admin_notices[$slug]['start'] : $current_date );
62
+ $start = date( "n/j/Y", strtotime( $start ) );
63
+ $date_array = explode( '/', $start );
64
+ $interval = ( isset( $admin_notices[$slug]['int'] ) ? $admin_notices[$slug]['int'] : 0 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
 
66
+ $date_array[1] += $interval;
67
+ $start = date( "n/j/Y", mktime( 0, 0, 0, $date_array[0], $date_array[1], $date_array[2] ) );
68
+
69
+ // This is the main notices storage option
70
+ $admin_notices_option = get_option( $wd_options->prefix . '_admin_notice', array() );
71
+ // Check if the message is already stored and if so just grab the key otherwise store the message and its associated date information
72
+ if ( !array_key_exists( $slug, $admin_notices_option ) ) {
73
+ $admin_notices_option[$slug]['start'] = $start;
74
+ $admin_notices_option[$slug]['int'] = $interval;
75
+ update_option( $wd_options->prefix . '_admin_notice', $admin_notices_option );
76
+ }
77
+
78
+ // Sanity check to ensure we have accurate information
79
+ // New date information will not overwrite old date information
80
+ $admin_display_check = ( isset( $admin_notices_option[$slug]['dismissed'] ) ? $admin_notices_option[$slug]['dismissed'] : 0 );
81
+ $admin_display_start = ( isset( $admin_notices_option[$slug]['start'] ) ? $admin_notices_option[$slug]['start'] : $start );
82
+ $admin_display_interval = ( isset($admin_notices_option[$slug]['int'] ) ? $admin_notices_option[$slug]['int'] : $interval );
83
+ $admin_display_msg = ( isset($admin_notices[$slug]['msg'] ) ? $admin_notices[$slug]['msg'] : '' );
84
+ $admin_display_title = ( isset($admin_notices[$slug]['title'] ) ? $admin_notices[$slug]['title'] : '' );
85
+ $admin_display_link = ( isset( $admin_notices[$slug]['link'] ) ? $admin_notices[$slug]['link'] : '' );
86
+ $output_css = false;
87
+
88
+ // Ensure the notice hasn't been hidden and that the current date is after the start date
89
+ if ( $admin_display_check == 0 && strtotime($admin_display_start) <= strtotime($current_date ) ) {
90
+
91
+ // Get remaining query string
92
+ $query_str = ( isset( $admin_notices[$slug]['later_link'] ) ? $admin_notices[$slug]['later_link'] : esc_url(add_query_arg( $wd_options->prefix . '_admin_notice_ignore', $slug ) ) );
93
+ if ( strpos($slug, 'promo' ) === FALSE ) {
94
  // Admin notice display output
95
  echo '<div class="update-nag wd-admin-notice">
96
  <div class="wd-notice-logo" style="background-image: url(' . $wd_options->wd_url_img . '/' . $wd_options->prefix . '_main_plugin.png);"></div>
99
  <ul class="wd-notice-body wd-blue">' . $admin_display_link . '</ul>
100
  <a href="' . $query_str . '" class="dashicons dashicons-dismiss"></a>
101
  </div>';
102
+ }
103
+ else {
104
  echo '<div class="admin-notice-promo">';
105
  echo $admin_display_msg;
106
  echo '<ul class="notice-body-promo blue">
108
  </ul>';
109
  echo '<a href="' . $query_str . '" class="dashicons dashicons-dismiss close-promo"></a>';
110
  echo '</div>';
 
 
 
 
 
 
111
  }
112
+ $this->notice_spam += 1;
113
+ $output_css = true;
114
+ }
115
+ if ( $output_css ) {
116
+ wp_enqueue_style( $wd_options->prefix . '-admin-notices', $wd_options->wd_url_css . '/notices.css', array(), get_option($wd_options->prefix . "_version" ) );
117
  }
118
  }
119
  }
120
+ }
121
 
122
+ // Spam protection check
123
+ public function anti_notice_spam() {
124
+ if ( $this->notice_spam >= $this->notice_spam_max ) {
125
+ return true;
 
 
126
  }
127
+ return false;
128
+ }
129
 
130
+ // Ignore function that gets ran at admin init to ensure any messages that were dismissed get marked
131
+ public function admin_notice_ignore() {
132
+ $wd_options = $this->config;
133
+ // If user clicks to ignore the notice, update the option to not show it again
134
+ if ( isset( $_GET[$wd_options->prefix . '_admin_notice_ignore'] ) ) {
135
+ $admin_notices_option = get_option( $wd_options->prefix . '_admin_notice', array() );
136
+ $admin_notices_option[$_GET[$wd_options->prefix . '_admin_notice_ignore']]['dismissed'] = 1;
137
+ update_option( $wd_options->prefix . '_admin_notice', $admin_notices_option );
138
+ $query_str = remove_query_arg( $wd_options->prefix . '_admin_notice_ignore' );
139
+ wp_redirect( $query_str );
140
+ exit;
 
141
  }
142
+ }
143
 
144
+ // Temp Ignore function that gets ran at admin init to ensure any messages that were temp dismissed get their start date changed
145
+ public function admin_notice_temp_ignore() {
146
+ $wd_options = $this->config;
147
+ // If user clicks to temp ignore the notice, update the option to change the start date - default interval of 14 days
148
+ if ( isset( $_GET[$wd_options->prefix . '_admin_notice_temp_ignore'] ) ) {
149
+ $admin_notices_option = get_option( $wd_options->prefix . '_admin_notice', array() );
150
+ $current_date = current_time( "n/j/Y" );
151
+ $date_array = explode( '/', $current_date );
152
+ $interval = (isset($_GET['wd_int']) ? $_GET['wd_int'] : 14);
153
+ $date_array[1] += $interval;
154
+ $new_start = date( "n/j/Y", mktime( 0, 0, 0, $date_array[0], $date_array[1], $date_array[2] ) );
155
+
156
+ $admin_notices_option[$_GET[$wd_options->prefix . '_admin_notice_temp_ignore']]['start'] = $new_start;
157
+ $admin_notices_option[$_GET[$wd_options->prefix . '_admin_notice_temp_ignore']]['dismissed'] = 0;
158
+ update_option( $wd_options->prefix . '_admin_notice', $admin_notices_option );
159
+ $query_str = remove_query_arg( array( $wd_options->prefix . '_admin_notice_temp_ignore', 'wd_int' ) );
160
+ wp_redirect( $query_str );
161
+ exit;
 
162
  }
163
+ }
164
 
165
+ public function admin_notice_pages($pages) {
166
+ $wd_options = $this->config;
167
+ foreach ( $pages as $key => $page ) {
168
+ if (is_array($page)) {
169
+ if ( isset( $_GET['page'] ) && $_GET['page'] == $page[0] && isset($_GET['tab']) && $_GET['tab'] == $page[1] ) {
170
+ return true;
 
 
 
 
 
 
 
 
 
 
 
 
171
  }
 
172
  }
173
+ else {
174
+ if ( $page == 'all' ) {
175
+ return true;
176
+ }
177
+ if ( get_current_screen()->id === $page ) {
178
+ return true;
179
+ }
180
+ if ( isset($_GET['page']) && $_GET['page'] == $page ) {
181
+ return true;
182
+ }
183
  }
184
  return false;
185
  }
186
+ }
187
 
188
+ // Required fields check
189
+ public function required_fields( $fields ) {
190
+ if ( !isset( $fields['msg'] ) || ( isset($fields['msg'] ) && empty( $fields['msg'] ) ) ) {
191
+ return true;
192
+ }
193
+ if ( !isset( $fields['title'] ) || ( isset( $fields['title'] ) && empty( $fields['title'] ) ) ) {
194
+ return true;
195
  }
196
+ return false;
197
+ }
198
 
199
+ // Special parameters function that is to be used in any extension of this class
200
+ public function special_parameters($admin_notices) {
201
+ // Intentionally left blank
202
+ }
 
203
 
204
+ public function wd_admin_notices() {
205
+ $wd_options = $this->config;
206
+ $two_week_review_ignore = add_query_arg( array( $wd_options->prefix . '_admin_notice_ignore' => 'two_week_review' ) );
207
+ $two_week_review_temp = add_query_arg( array( $wd_options->prefix . '_admin_notice_temp_ignore' => 'two_week_review', 'int' => 14 ) );
208
+ $promo_close = add_query_arg( array( $wd_options->prefix . '_admin_notice_ignore' => 'ecommerce_promo' ) );
209
+
210
+ $notices['two_week_review'] = array(
211
+ 'title' => __('Leave A Review?', $wd_options->prefix),
212
+ 'msg' => sprintf(__('We hope you\'ve enjoyed using WordPress %s! Would you consider leaving us a review on WordPress.org?', $wd_options->prefix), $wd_options->plugin_title),
213
+ 'link' => '<li><span class="dashicons dashicons-external"></span><a href="https://wordpress.org/support/plugin/' . $wd_options->plugin_wordpress_slug . '/reviews?filter=5&rate=5#new-post" target="_blank">' . __('Sure! I\'d love to!', $wd_options->prefix) . '</a></li>
214
  <li><span class="dashicons dashicons-smiley"></span><a href="' . $two_week_review_ignore . '"> ' . __('I\'ve already left a review', $wd_options->prefix) . '</a></li>
215
  <li><span class="dashicons dashicons-calendar-alt"></span><a href="' . $two_week_review_temp . '">' . __('Maybe Later', $wd_options->prefix) . '</a></li>
216
  <li><span class="dashicons dashicons-dismiss"></span><a href="' . $two_week_review_ignore . '">' . __('Never show again', $wd_options->prefix) . '</a></li>',
217
+ 'later_link' => $two_week_review_temp,
218
+ 'int' => 14
219
+ );
220
+
221
+ $this->admin_notice($notices);
 
222
  }
223
+ }
wd/templates/display_deactivation_popup.php CHANGED
@@ -5,7 +5,7 @@
5
  </div>
6
  <form method="post" id="<?php echo $wd_options->prefix; ?>_deactivate_form">
7
  <div class="wd-deactivate-popup-header">
8
- <?php _e( "Please let us know why you are deactivating. Your answer will help us to serve you better", $wd_options->prefix ); ?>:
9
  </div>
10
 
11
  <div class="wd-deactivate-popup-body">
@@ -18,9 +18,8 @@
18
  <div class="<?php echo $wd_options->prefix; ?>_additional_details_wrap"></div>
19
  </div>
20
  <div class="wd-btns">
21
- <a href="<?php echo $deactivate_url; ?>" data-val="1" class="button button-secondary button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-deactivate"><?php _e( "Deactivate" , $wd_options->prefix ); ?></a>
22
- <a href="<?php echo $deactivate_url; ?>" data-val="2" class="button button-secondary button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-submit-and-deactivate" style="display:none;"><?php _e( "Submit and deactivate" , $wd_options->prefix ); ?></a>
23
- <a href="<?php echo admin_url( 'plugins.php' ); ?>" class="button button-primary wd-<?php echo $wd_options->prefix; ?>-cancel"><?php _e( "Cancel" , $wd_options->prefix ); ?></a>
24
  </div>
25
  <input type="hidden" name="<?php echo $wd_options->prefix . "_submit_and_deactivate"; ?>" value="" >
26
  <?php wp_nonce_field( $wd_options->prefix . '_save_form', $wd_options->prefix . '_save_form_fild'); ?>
5
  </div>
6
  <form method="post" id="<?php echo $wd_options->prefix; ?>_deactivate_form">
7
  <div class="wd-deactivate-popup-header">
8
+ <?php _e( "Please let us know why you are deactivating. Your answer will help us to serve you better (Optional)", $wd_options->prefix ); ?>:
9
  </div>
10
 
11
  <div class="wd-deactivate-popup-body">
18
  <div class="<?php echo $wd_options->prefix; ?>_additional_details_wrap"></div>
19
  </div>
20
  <div class="wd-btns">
21
+ <a href="<?php echo $deactivate_url; ?>" data-val="1" class="button button-primary button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-deactivate"><?php _e( "Skip and Deactivate" , $wd_options->prefix ); ?></a>
22
+ <a href="<?php echo $deactivate_url; ?>" data-val="2" class="button button-primary button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-submit-and-deactivate" style="display:none;"><?php _e( "Submit and Deactivate" , $wd_options->prefix ); ?></a>
 
23
  </div>
24
  <input type="hidden" name="<?php echo $wd_options->prefix . "_submit_and_deactivate"; ?>" value="" >
25
  <?php wp_nonce_field( $wd_options->prefix . '_save_form', $wd_options->prefix . '_save_form_fild'); ?>
wd/wd.php CHANGED
@@ -17,7 +17,7 @@
17
  public $overview_instance;
18
  public $subscribe_instance;
19
  public $config;
20
- private $version = "1.0.11";
21
 
22
  ////////////////////////////////////////////////////////////////////////////////////////
23
  // Constructor & Destructor //
17
  public $overview_instance;
18
  public $subscribe_instance;
19
  public $config;
20
+ private $version = "1.0.13";
21
 
22
  ////////////////////////////////////////////////////////////////////////////////////////
23
  // Constructor & Destructor //