Version Description
- Changed : Deactivation popup.
- Added : Support forum link.
Download this release
Release Info
Developer | webdorado |
Plugin | 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 +0 -8
- css/admin_main.css +12 -4
- framework/functions.php +82 -66
- gmwd_admin_class.php +1 -1
- images/i_support.png +0 -0
- readme.txt +355 -399
- wd-google-maps.php +3 -3
- wd/README.md +1 -1
- wd/assets/css/deactivate_popup.css +4 -0
- wd/assets/img/cfm_main_plugin.png +0 -0
- wd/assets/js/overview.js +2 -2
- wd/assets/js/subsribe.js +3 -3
- wd/includes/notices.php +170 -170
- wd/templates/display_deactivation_popup.php +3 -4
- wd/wd.php +1 -1
.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:
|
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 |
-
.
|
42 |
background-color: #D8D8D8;
|
43 |
padding: 1px 5px;
|
44 |
font-size: 11px;
|
45 |
}
|
46 |
|
47 |
-
.gmwd_upgrade .wd-cell:first-child{
|
48 |
-
padding-right:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
7 |
-
|
8 |
-
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
20 |
}
|
21 |
-
|
|
|
|
|
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 |
-
|
28 |
-
switch($page){
|
29 |
case "maps_gmwd":
|
30 |
-
if($task == "edit"){
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
-
|
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"
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
55 |
}
|
56 |
-
|
57 |
</div>
|
58 |
-
<div class="wd-right">
|
59 |
-
|
60 |
-
<div class="wd-
|
61 |
-
<
|
62 |
-
<img src="<?php echo GMWD_URL; ?>/images/
|
63 |
-
|
64 |
-
|
|
|
|
|
65 |
<?php _e("UPGRADE TO PAID VERSION", "gmwd"); ?>
|
66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
</div>
|
68 |
-
</
|
69 |
-
|
70 |
</div>
|
71 |
</div>
|
72 |
-
<?php if($text){
|
73 |
?>
|
74 |
-
|
75 |
-
|
76 |
-
|
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="'.__(
|
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.
|
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
|
2 |
-
Contributors: webdorado,
|
3 |
-
|
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
Google Maps
|
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
|
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
|
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
|
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 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
###IMPORTANT:
|
38 |
-
If you think you found a bug
|
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
|
|
|
|
|
88 |
|
89 |
-
|
90 |
-
* Wordpress 3.9+
|
91 |
-
* PHP 5.x
|
92 |
-
* MySQL 5.x
|
93 |
|
94 |
-
|
|
|
|
|
|
|
95 |
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
109 |
-
2. Google Maps
|
110 |
-
3. Google Maps
|
111 |
-
4. Google Maps
|
112 |
-
5. Google Maps
|
113 |
-
6. Google Maps
|
114 |
-
7. Google Maps
|
115 |
-
8. Google Maps
|
116 |
-
9. Google Maps
|
117 |
-
10. Google Maps
|
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 |
-
|
280 |
|
281 |
-
|
282 |
|
283 |
-
|
284 |
|
285 |
-
|
286 |
|
287 |
-
|
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 |
-
|
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 |
-
|
294 |
-
Yes Google Maps WD is a responsive product (both with free and Pro versions).
|
295 |
|
296 |
-
|
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 |
-
=
|
300 |
|
301 |
-
|
302 |
|
303 |
-
|
|
|
304 |
|
305 |
-
|
306 |
|
307 |
-
|
308 |
-
Yes, it is possible to upload a hyperlink in marker infowindow using Google Maps WD Pro version.
|
309 |
|
310 |
-
|
311 |
-
|
|
|
|
|
|
|
|
|
|
|
312 |
|
313 |
-
=
|
314 |
|
315 |
-
|
316 |
|
317 |
-
|
318 |
-
|
319 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
320 |
|
321 |
-
|
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 |
-
|
325 |
|
326 |
-
=
|
327 |
-
Minimum requirements
|
328 |
-
WordPress 3.4+
|
329 |
-
PHP 5.x
|
330 |
-
MySQL 5.x
|
331 |
|
332 |
-
|
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 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
You
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
The
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
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
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
6 |
-
* Description: Google Maps
|
7 |
-
* Version: 1.0.
|
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.
|
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
|
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
|
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
|
14 |
-
jQuery(".permissions").click
|
15 |
jQuery(".list").toggle();
|
16 |
return false;
|
17 |
});
|
18 |
|
19 |
-
jQuery(".allow_and_continue").click
|
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 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
}
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
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 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
if ( current_user_can( 'manage_options' ) ) {
|
30 |
-
return true;
|
31 |
-
}
|
32 |
-
}
|
33 |
return false;
|
34 |
}
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
$wd_options = $this->config;
|
39 |
-
// Check options
|
40 |
-
if ( !$this->wd_admin_notice() ) {
|
41 |
return false;
|
42 |
}
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
46 |
return false;
|
47 |
}
|
|
|
48 |
|
49 |
-
|
50 |
-
|
51 |
-
if ( !$this->admin_notice_pages( $admin_notices[$slug]['pages'] ) ) {
|
52 |
-
return false;
|
53 |
-
}
|
54 |
-
}
|
55 |
|
56 |
-
//
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
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 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
$
|
86 |
-
$
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
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 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
}
|
127 |
-
return false;
|
128 |
}
|
|
|
|
|
129 |
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
}
|
142 |
}
|
|
|
143 |
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
}
|
163 |
}
|
|
|
164 |
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
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 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
|
|
195 |
}
|
196 |
return false;
|
197 |
}
|
|
|
198 |
|
199 |
-
|
200 |
-
|
201 |
-
|
|
|
|
|
|
|
|
|
202 |
}
|
|
|
|
|
203 |
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
$promo_close = add_query_arg( array( $wd_options->prefix . '_admin_notice_ignore' => 'ecommerce_promo' ) );
|
209 |
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
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-
|
22 |
-
<a href="<?php echo $deactivate_url; ?>" data-val="2" class="button button-
|
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.
|
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 //
|