Version Description
- Fixed: Minor bugs
Download this release
Release Info
Developer | webdorado |
Plugin | WD Google Maps – Google Maps builder Plugin |
Version | 1.0.37 |
Comparing to | |
See all releases |
Code changes from version 1.0.36 to 1.0.37
- admin/controllers/GMWDControllerUninstall_gmwd.php +3 -5
- gmwd_admin_class.php +1 -1
- readme.txt +6 -3
- wd-google-maps.php +3 -3
- wd/README.md +6 -6
- wd/assets/img/wdps_main_plugin.png +0 -0
- wd/config.php +1 -1
- wd/includes/api.php +2 -2
- wd/includes/deactivate.php +2 -2
- wd/includes/notices.php +1 -1
- wd/includes/overview.php +1 -1
- wd/includes/subscribe.php +2 -2
- wd/start.php +3 -3
- wd/wd.php +8 -14
admin/controllers/GMWDControllerUninstall_gmwd.php
CHANGED
@@ -16,16 +16,14 @@ class GMWDControllerUninstall_gmwd extends GMWDController{
|
|
16 |
public function __construct(){
|
17 |
parent::__construct();
|
18 |
global $gmwd_options;
|
19 |
-
if(!class_exists("
|
20 |
include_once (GMWD_DIR . "/wd/config.php");
|
21 |
}
|
22 |
-
|
23 |
-
include_once (GMWD_DIR . "/wd/includes/deactivate.php");
|
24 |
-
$config = new WDConfig();
|
25 |
|
26 |
$config->set_options( $gmwd_options );
|
27 |
|
28 |
-
$deactivate_reasons = new
|
29 |
//$deactivate_reasons->add_deactivation_feedback_dialog_box();
|
30 |
$deactivate_reasons->submit_and_deactivate();
|
31 |
|
16 |
public function __construct(){
|
17 |
parent::__construct();
|
18 |
global $gmwd_options;
|
19 |
+
if(!class_exists("DoradoWebConfig")){
|
20 |
include_once (GMWD_DIR . "/wd/config.php");
|
21 |
}
|
22 |
+
$config = new DoradoWebConfig();
|
|
|
|
|
23 |
|
24 |
$config->set_options( $gmwd_options );
|
25 |
|
26 |
+
$deactivate_reasons = new DoradoWebDeactivate($config);
|
27 |
//$deactivate_reasons->add_deactivation_feedback_dialog_box();
|
28 |
$deactivate_reasons->submit_and_deactivate();
|
29 |
|
gmwd_admin_class.php
CHANGED
@@ -11,7 +11,7 @@ class GMWDAdmin{
|
|
11 |
// Variables //
|
12 |
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
protected static $instance = null;
|
14 |
-
private static $version = '1.0.
|
15 |
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
// Constructor & Destructor //
|
17 |
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
// Variables //
|
12 |
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
protected static $instance = null;
|
14 |
+
private static $version = '1.0.37';
|
15 |
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
// Constructor & Destructor //
|
17 |
////////////////////////////////////////////////////////////////////////////////////////
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
=== Google
|
2 |
Contributors: webdorado, wdsupport
|
3 |
Donate link: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
4 |
-
Tags:
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -113,6 +113,9 @@ After downloading the ZIP file of the Google Maps WD plugin,
|
|
113 |
|
114 |
== Changelog ==
|
115 |
|
|
|
|
|
|
|
116 |
= 1.0.36 =
|
117 |
* Changed: Dashboard menu
|
118 |
|
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
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.0.37
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
113 |
|
114 |
== Changelog ==
|
115 |
|
116 |
+
= 1.0.37 =
|
117 |
+
* Fixed: Minor bugs
|
118 |
+
|
119 |
= 1.0.36 =
|
120 |
* Changed: Dashboard menu
|
121 |
|
wd-google-maps.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Google Maps WD
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
6 |
* Description: Google Maps WD is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
|
7 |
-
* Version: 1.0.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -56,7 +56,7 @@ require_once( GMWD_DIR. '/widgets.php' );
|
|
56 |
|
57 |
function wd_gmwd_init(){
|
58 |
if( !isset($_REQUEST['ajax']) && is_admin() ){
|
59 |
-
if( !class_exists("
|
60 |
require_once(GMWD_DIR . '/wd/start.php');
|
61 |
}
|
62 |
global $gmwd_options;
|
@@ -191,7 +191,7 @@ function wd_gmwd_init(){
|
|
191 |
"menu_position" => 9,
|
192 |
);
|
193 |
|
194 |
-
|
195 |
}
|
196 |
|
197 |
}
|
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.37
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
56 |
|
57 |
function wd_gmwd_init(){
|
58 |
if( !isset($_REQUEST['ajax']) && is_admin() ){
|
59 |
+
if( !class_exists("DoradoWeb") ){
|
60 |
require_once(GMWD_DIR . '/wd/start.php');
|
61 |
}
|
62 |
global $gmwd_options;
|
191 |
"menu_position" => 9,
|
192 |
);
|
193 |
|
194 |
+
dorado_web_init($gmwd_options);
|
195 |
}
|
196 |
|
197 |
}
|
wd/README.md
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
Version: 1.0.
|
2 |
|
3 |
|
4 |
Usage:
|
5 |
|
6 |
Copy and paste wd library into your plugin folder.
|
7 |
-
In your plugin main file check if library main
|
8 |
-
if( !class_exists("
|
9 |
require_once(PATH_TO_YOUR_PLUGIN_DIR . '/wd/start.php');
|
10 |
}
|
11 |
|
12 |
-
Then call
|
13 |
$options = array (
|
14 |
"prefix" => "your_plugin_prefix",
|
15 |
"wd_plugin_id" => your_plugin_id,
|
@@ -59,7 +59,7 @@ $options = array (
|
|
59 |
"menu_position" => null,
|
60 |
);
|
61 |
|
62 |
-
Fully documentation of
|
63 |
|
64 |
prefix - (type string) your plugin prefix
|
65 |
wd_plugin_id - (type int) plugin id ( in web-dorado database, you use it for update functionality)
|
@@ -120,7 +120,7 @@ plugin_menu_icon - (type string) path to plugin wordpress backend menu icon
|
|
120 |
( e.g. GMWD_URL . '/images/icon-map-20.png' )
|
121 |
deactivate - (type bool) if plugin free deactivate = true, else deactivate = false
|
122 |
subscribe - (type bool) if plugin free subscribe = true, else subscribe = false
|
123 |
-
custom_post - ( type string) if plugin has not custom posts
|
124 |
menu_capability - (type string) top level menu capability e.g. manage_options
|
125 |
menu_position - (type string) top level menu position , default is null
|
126 |
|
1 |
+
Version: 1.0.5
|
2 |
|
3 |
|
4 |
Usage:
|
5 |
|
6 |
Copy and paste wd library into your plugin folder.
|
7 |
+
In your plugin main file check if library main DoradoWeb class doesn't exist, include it
|
8 |
+
if( !class_exists("DoradoWeb") ){
|
9 |
require_once(PATH_TO_YOUR_PLUGIN_DIR . '/wd/start.php');
|
10 |
}
|
11 |
|
12 |
+
Then call dorado_web_init($options) function.
|
13 |
$options = array (
|
14 |
"prefix" => "your_plugin_prefix",
|
15 |
"wd_plugin_id" => your_plugin_id,
|
59 |
"menu_position" => null,
|
60 |
);
|
61 |
|
62 |
+
Fully documentation of dorado_web_init options:
|
63 |
|
64 |
prefix - (type string) your plugin prefix
|
65 |
wd_plugin_id - (type int) plugin id ( in web-dorado database, you use it for update functionality)
|
120 |
( e.g. GMWD_URL . '/images/icon-map-20.png' )
|
121 |
deactivate - (type bool) if plugin free deactivate = true, else deactivate = false
|
122 |
subscribe - (type bool) if plugin free subscribe = true, else subscribe = false
|
123 |
+
custom_post - ( type string) if plugin has not custom posts it must be top level menu slug, else toplevel menu url , e.g. edit.php?post_type=contact
|
124 |
menu_capability - (type string) top level menu capability e.g. manage_options
|
125 |
menu_position - (type string) top level menu position , default is null
|
126 |
|
wd/assets/img/wdps_main_plugin.png
ADDED
Binary file
|
wd/config.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
-
class
|
7 |
public static $instance;
|
8 |
|
9 |
public $prefix = null;
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
+
class DoradoWebConfig {
|
7 |
public static $instance;
|
8 |
|
9 |
public $prefix = null;
|
wd/includes/api.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
-
class
|
7 |
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
// Events //
|
9 |
////////////////////////////////////////////////////////////////////////////////////////
|
@@ -31,7 +31,7 @@
|
|
31 |
|
32 |
|
33 |
public function get_remote_data( $id ) {
|
34 |
-
$remote_data_path =
|
35 |
$request = wp_remote_get( ( str_replace( '_id_', $id, $remote_data_path ) ) );
|
36 |
|
37 |
if ( !is_wp_error($request) || wp_remote_retrieve_response_code($request) === 200 ) {
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
+
class DoradoWebApi{
|
7 |
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
// Events //
|
9 |
////////////////////////////////////////////////////////////////////////////////////////
|
31 |
|
32 |
|
33 |
public function get_remote_data( $id ) {
|
34 |
+
$remote_data_path = DORADO_WEB_API_PLUGIN_DATA_PATH . '/' . $this->userhash;
|
35 |
$request = wp_remote_get( ( str_replace( '_id_', $id, $remote_data_path ) ) );
|
36 |
|
37 |
if ( !is_wp_error($request) || wp_remote_retrieve_response_code($request) === 200 ) {
|
wd/includes/deactivate.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
-
class
|
7 |
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
// Events //
|
9 |
////////////////////////////////////////////////////////////////////////////////////////
|
@@ -101,7 +101,7 @@
|
|
101 |
if( isset( $_POST[$wd_options->prefix . "_submit_and_deactivate"] ) ){
|
102 |
|
103 |
if( $_POST[$wd_options->prefix . "_submit_and_deactivate"] == 2 || $_POST[$wd_options->prefix . "_submit_and_deactivate"] == 3 ){
|
104 |
-
$api = new
|
105 |
$hash = $api->get_hash();
|
106 |
if($hash != null){
|
107 |
$data = array();
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
+
class DoradoWebDeactivate{
|
7 |
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
// Events //
|
9 |
////////////////////////////////////////////////////////////////////////////////////////
|
101 |
if( isset( $_POST[$wd_options->prefix . "_submit_and_deactivate"] ) ){
|
102 |
|
103 |
if( $_POST[$wd_options->prefix . "_submit_and_deactivate"] == 2 || $_POST[$wd_options->prefix . "_submit_and_deactivate"] == 3 ){
|
104 |
+
$api = new DoradoWebApi( $wd_options );
|
105 |
$hash = $api->get_hash();
|
106 |
if($hash != null){
|
107 |
$data = array();
|
wd/includes/notices.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
-
class
|
7 |
|
8 |
protected $promo_link = '';
|
9 |
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
+
class DoradoWebNotices {
|
7 |
|
8 |
protected $promo_link = '';
|
9 |
|
wd/includes/overview.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
-
class
|
7 |
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
// Events //
|
9 |
////////////////////////////////////////////////////////////////////////////////////////
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
+
class DoradoWebOverview{
|
7 |
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
// Events //
|
9 |
////////////////////////////////////////////////////////////////////////////////////////
|
wd/includes/subscribe.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
exit;
|
4 |
}
|
5 |
-
class
|
6 |
// //////////////////////////////////////////////////////////////////////////////////////
|
7 |
// Events //
|
8 |
// //////////////////////////////////////////////////////////////////////////////////////
|
@@ -63,7 +63,7 @@
|
|
63 |
if( isset( $_GET[ $wd_options->prefix . "_sub_action"] ) ){
|
64 |
|
65 |
if( $_GET[$wd_options->prefix . "_sub_action"] == "allow" ){
|
66 |
-
$api = new
|
67 |
$hash = $api->get_hash();
|
68 |
|
69 |
if( $hash != null ){
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
exit;
|
4 |
}
|
5 |
+
class DoradoWebSubscribe {
|
6 |
// //////////////////////////////////////////////////////////////////////////////////////
|
7 |
// Events //
|
8 |
// //////////////////////////////////////////////////////////////////////////////////////
|
63 |
if( isset( $_GET[ $wd_options->prefix . "_sub_action"] ) ){
|
64 |
|
65 |
if( $_GET[$wd_options->prefix . "_sub_action"] == "allow" ){
|
66 |
+
$api = new DoradoWebApi($wd_options);
|
67 |
$hash = $api->get_hash();
|
68 |
|
69 |
if( $hash != null ){
|
wd/start.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
exit;
|
4 |
}
|
5 |
-
define( '
|
6 |
require_once dirname( __FILE__ ) . '/config.php';
|
7 |
|
8 |
/**
|
@@ -26,12 +26,12 @@
|
|
26 |
* custom_post;
|
27 |
*/
|
28 |
|
29 |
-
function
|
30 |
|
31 |
// load files
|
32 |
require_once dirname( __FILE__ ) . '/wd.php';
|
33 |
|
34 |
-
$wd = new
|
35 |
$wd->wd_init( $options );
|
36 |
|
37 |
}
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
exit;
|
4 |
}
|
5 |
+
define( 'DORADO_WEB_API_PLUGIN_DATA_PATH', 'https://api.web-dorado.com/v2/_id_/plugindata' );
|
6 |
require_once dirname( __FILE__ ) . '/config.php';
|
7 |
|
8 |
/**
|
26 |
* custom_post;
|
27 |
*/
|
28 |
|
29 |
+
function dorado_web_init( $options ) {
|
30 |
|
31 |
// load files
|
32 |
require_once dirname( __FILE__ ) . '/wd.php';
|
33 |
|
34 |
+
$wd = new DoradoWeb();
|
35 |
$wd->wd_init( $options );
|
36 |
|
37 |
}
|
wd/wd.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
-
class
|
7 |
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
// Events //
|
9 |
////////////////////////////////////////////////////////////////////////////////////////
|
@@ -37,10 +37,10 @@
|
|
37 |
if(!is_array($options)){
|
38 |
return false;
|
39 |
}
|
40 |
-
$config = new
|
41 |
$config->set_options( $options );
|
42 |
$this->config = $config;
|
43 |
-
if( !class_exists("
|
44 |
$this->wd_includes();
|
45 |
}
|
46 |
|
@@ -61,7 +61,7 @@
|
|
61 |
|
62 |
$subscribe_page = add_menu_page( $wd_options->plugin_menu_title, $wd_options->plugin_menu_title, "manage_options", $wd_options->prefix . '_subscribe' , array( $this, 'display_subscribew_page' ), $wd_options->plugin_menu_icon, $wd_options->menu_position );
|
63 |
|
64 |
-
$subscribe_instance = new
|
65 |
$this->subscribe_instance = $subscribe_instance;
|
66 |
add_action( 'admin_print_styles-' . $subscribe_page, array( $subscribe_instance, 'subscribe_styles' ) );
|
67 |
add_action( 'admin_print_scripts-' . $subscribe_page, array( $subscribe_instance, 'subscribe_scripts' ) );
|
@@ -72,7 +72,7 @@
|
|
72 |
$overview_page = add_submenu_page( $parent_slug, __( 'Overview', $wd_options->prefix ), __( 'Overview', $wd_options->prefix ), $capability, 'overview_' . $wd_options->prefix, array( $this, 'display_overview_page' ));
|
73 |
|
74 |
|
75 |
-
$overview_instance = new
|
76 |
$this->overview_instance = $overview_instance;
|
77 |
add_action( 'admin_print_styles-' . $overview_page, array( $overview_instance, 'overview_styles' ) );
|
78 |
add_action( 'admin_print_scripts-' . $overview_page, array( $overview_instance, 'overview_scripts' ) );
|
@@ -92,13 +92,7 @@
|
|
92 |
public function wd_includes(){
|
93 |
$wd_options = $this->config;
|
94 |
|
95 |
-
|
96 |
-
if( $wd_options->deactivate === true ){
|
97 |
-
if(strpos( $current_url, "plugins.php" ) !== false ){
|
98 |
-
require_once $wd_options->wd_dir_includes . '/deactivate.php' ;
|
99 |
-
}
|
100 |
-
}
|
101 |
-
|
102 |
// notices
|
103 |
require_once $wd_options->wd_dir_includes . '/api.php';
|
104 |
require_once $wd_options->wd_dir_includes . '/notices.php';
|
@@ -112,11 +106,11 @@
|
|
112 |
$current_url = $_SERVER['REQUEST_URI'];
|
113 |
if( $wd_options->deactivate === true ){
|
114 |
if(strpos( $current_url, "plugins.php" ) !== false ){
|
115 |
-
new
|
116 |
}
|
117 |
}
|
118 |
|
119 |
-
new
|
120 |
|
121 |
}
|
122 |
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
+
class DoradoWeb {
|
7 |
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
// Events //
|
9 |
////////////////////////////////////////////////////////////////////////////////////////
|
37 |
if(!is_array($options)){
|
38 |
return false;
|
39 |
}
|
40 |
+
$config = new DoradoWebConfig();
|
41 |
$config->set_options( $options );
|
42 |
$this->config = $config;
|
43 |
+
if( !class_exists("DoradoWebApi") ){
|
44 |
$this->wd_includes();
|
45 |
}
|
46 |
|
61 |
|
62 |
$subscribe_page = add_menu_page( $wd_options->plugin_menu_title, $wd_options->plugin_menu_title, "manage_options", $wd_options->prefix . '_subscribe' , array( $this, 'display_subscribew_page' ), $wd_options->plugin_menu_icon, $wd_options->menu_position );
|
63 |
|
64 |
+
$subscribe_instance = new DoradoWebSubscribe($this->config);
|
65 |
$this->subscribe_instance = $subscribe_instance;
|
66 |
add_action( 'admin_print_styles-' . $subscribe_page, array( $subscribe_instance, 'subscribe_styles' ) );
|
67 |
add_action( 'admin_print_scripts-' . $subscribe_page, array( $subscribe_instance, 'subscribe_scripts' ) );
|
72 |
$overview_page = add_submenu_page( $parent_slug, __( 'Overview', $wd_options->prefix ), __( 'Overview', $wd_options->prefix ), $capability, 'overview_' . $wd_options->prefix, array( $this, 'display_overview_page' ));
|
73 |
|
74 |
|
75 |
+
$overview_instance = new DoradoWebOverview($this->config);
|
76 |
$this->overview_instance = $overview_instance;
|
77 |
add_action( 'admin_print_styles-' . $overview_page, array( $overview_instance, 'overview_styles' ) );
|
78 |
add_action( 'admin_print_scripts-' . $overview_page, array( $overview_instance, 'overview_scripts' ) );
|
92 |
public function wd_includes(){
|
93 |
$wd_options = $this->config;
|
94 |
|
95 |
+
require_once $wd_options->wd_dir_includes . '/deactivate.php' ;
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
// notices
|
97 |
require_once $wd_options->wd_dir_includes . '/api.php';
|
98 |
require_once $wd_options->wd_dir_includes . '/notices.php';
|
106 |
$current_url = $_SERVER['REQUEST_URI'];
|
107 |
if( $wd_options->deactivate === true ){
|
108 |
if(strpos( $current_url, "plugins.php" ) !== false ){
|
109 |
+
new DoradoWebDeactivate( $this->config );
|
110 |
}
|
111 |
}
|
112 |
|
113 |
+
new DoradoWebNotices( $this->config );
|
114 |
|
115 |
}
|
116 |
|