Version Description
- Changed: Dashboard menu
Download this release
Release Info
Developer | webdorado |
Plugin | WD Google Maps – Google Maps builder Plugin |
Version | 1.0.36 |
Comparing to | |
See all releases |
Code changes from version 1.0.35 to 1.0.36
- gmwd_admin_class.php +7 -4
- readme.txt +4 -1
- wd-google-maps.php +142 -137
- wd/README.md +129 -0
- wd/assets/css/deactivate_popup.css +20 -1
- wd/assets/css/overview.css +3 -0
- wd/assets/img/faqwd_main_plugin.png +0 -0
- wd/assets/img/{fbwd_main_plugin.png → ffwd_main_plugin.png} +0 -0
- wd/assets/img/spinner.gif +0 -0
- wd/assets/img/{awd_main_plugin.png → wd_ads_main_plugin.png} +0 -0
- wd/assets/img/{ewd_main_plugin.png → wde_main_plugin.png} +0 -0
- wd/assets/img/{iwd_main_plugin.png → wdi_main_plugin.png} +0 -0
- wd/assets/img/{swd_main_plugin.png → wds_main_plugin.png} +0 -0
- wd/assets/js/deactivate_popup.js +1 -1
- wd/config.php +17 -5
- wd/includes/api.php +1 -1
- wd/includes/deactivate.php +1 -1
- wd/includes/subscribe.php +2 -2
- wd/start.php +1 -1
- wd/templates/display_deactivation_popup.php +3 -0
- wd/templates/display_overview_support.php +27 -18
- wd/templates/display_overview_welcome.php +7 -1
- wd/wd.php +27 -17
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 |
////////////////////////////////////////////////////////////////////////////////////////
|
@@ -22,7 +22,7 @@ class GMWDAdmin{
|
|
22 |
|
23 |
|
24 |
// Add menu
|
25 |
-
add_action('admin_menu', array($this,'gmwd_options_panel'));
|
26 |
add_action('admin_init', array($this,'setup_redirect'));
|
27 |
|
28 |
//Screen options
|
@@ -115,9 +115,12 @@ class GMWDAdmin{
|
|
115 |
public function gmwd_options_panel() {
|
116 |
$parent_slug = null;
|
117 |
if( get_option( "gmwd_subscribe_done" ) == 1 ){
|
118 |
-
$parent_slug = "
|
|
|
|
|
|
|
119 |
}
|
120 |
-
|
121 |
$gmwd_page = add_submenu_page($parent_slug, __('Maps','gmwd'), __('Maps','gmwd'), 'manage_options', 'maps_gmwd', array($this,'gmwd'));
|
122 |
add_action('load-' . $gmwd_page, array($this,'gmwd_maps_per_page_option'));
|
123 |
|
11 |
// Variables //
|
12 |
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
protected static $instance = null;
|
14 |
+
private static $version = '1.0.36';
|
15 |
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
// Constructor & Destructor //
|
17 |
////////////////////////////////////////////////////////////////////////////////////////
|
22 |
|
23 |
|
24 |
// Add menu
|
25 |
+
add_action('admin_menu', array($this,'gmwd_options_panel'),9);
|
26 |
add_action('admin_init', array($this,'setup_redirect'));
|
27 |
|
28 |
//Screen options
|
115 |
public function gmwd_options_panel() {
|
116 |
$parent_slug = null;
|
117 |
if( get_option( "gmwd_subscribe_done" ) == 1 ){
|
118 |
+
$parent_slug = "maps_gmwd";
|
119 |
+
$gmwd_page = add_menu_page( "Google Maps WD", "Google Maps WD", 'manage_options', 'maps_gmwd' , array( $this, 'gmwd' ), GMWD_URL . '/images/icon-map-20.png', 9 );
|
120 |
+
add_action('load-' . $gmwd_page, array($this,'gmwd_maps_per_page_option'));
|
121 |
+
|
122 |
}
|
123 |
+
|
124 |
$gmwd_page = add_submenu_page($parent_slug, __('Maps','gmwd'), __('Maps','gmwd'), 'manage_options', 'maps_gmwd', array($this,'gmwd'));
|
125 |
add_action('load-' . $gmwd_page, array($this,'gmwd_maps_per_page_option'));
|
126 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
|
4 |
Tags: directions, google map, google map plugin, google maps, google maps plugin, map, map markers, map plugin, map widget, maps, wp google map, wp google maps
|
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.35 =
|
117 |
* Fixed: Minor bugs
|
118 |
|
4 |
Tags: directions, google map, google map plugin, google maps, google maps plugin, map, map markers, map plugin, map widget, maps, wp google map, wp google maps
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.0.36
|
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.36 =
|
117 |
+
* Changed: Dashboard menu
|
118 |
+
|
119 |
= 1.0.35 =
|
120 |
* Fixed: Minor bugs
|
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
|
@@ -54,144 +54,149 @@ function gmwd_map($shortcode_id, $map_id ){
|
|
54 |
require_once( GMWD_DIR. '/widgets.php' );
|
55 |
|
56 |
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
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 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
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.36
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
54 |
require_once( GMWD_DIR. '/widgets.php' );
|
55 |
|
56 |
|
57 |
+
function wd_gmwd_init(){
|
58 |
+
if( !isset($_REQUEST['ajax']) && is_admin() ){
|
59 |
+
if( !class_exists("WebDorado") ){
|
60 |
+
require_once(GMWD_DIR . '/wd/start.php');
|
61 |
+
}
|
62 |
+
global $gmwd_options;
|
63 |
+
$gmwd_options = array (
|
64 |
+
"prefix" => "gmwd",
|
65 |
+
"wd_plugin_id" => 147,
|
66 |
+
"plugin_title" => "Google Maps WD",
|
67 |
+
"plugin_wordpress_slug" => "wd-google-maps",
|
68 |
+
"plugin_dir" => GMWD_DIR,
|
69 |
+
"plugin_main_file" => __FILE__,
|
70 |
+
"description" => __('Plugin for creating Google maps with advanced markers, custom layers and overlays for your website.', 'gmwd'),
|
71 |
+
// from web-dorado.com
|
72 |
+
"plugin_features" => array(
|
73 |
+
0 => array(
|
74 |
+
"title" => __("Easy set up", "gmwd"),
|
75 |
+
"description" => __("After installation a set-up guide will help you configure general options and get started on the dashboard. The plugin also displays tooltips in the whole admin area and settings. Moreover, you get instant live previews of changes you make in the working area, so you don’t have to save and publish maps to see the results.", "gmwd"),
|
76 |
+
),
|
77 |
+
1 => array(
|
78 |
+
"title" => __("Unlimited Everything", "gmwd"),
|
79 |
+
"description" => __("Display unlimited maps on any page or post. Same is true for markers, rectangles, circles, polygons and polylines.", "gmwd"),
|
80 |
+
),
|
81 |
+
2 => array(
|
82 |
+
"title" => __("100+ Marker Icons", "gmwd"),
|
83 |
+
"description" => __("Choose from 100+ readymade marker icons with different shapes and colors. Can’t find what you need? Create your own icons with the icon marker editor, setting background color and icon color or upload your own image.", "gmwd"),
|
84 |
+
),
|
85 |
+
3 => array(
|
86 |
+
"title" => __("Beautiful Maps Theme", "gmwd"),
|
87 |
+
"description" => __("Select or create a beautiful map theme that best fits your business and website needs. Choose from readymade themes or design your own map skin, by using the advanced editor.", "gmwd"),
|
88 |
+
),
|
89 |
+
4 => array(
|
90 |
+
"title" => __("Multilevel Marker Categories", "gmwd"),
|
91 |
+
"description" => __("Do you have a large number of markers on locations? Then the marker clustering option is for you! Add multiple marker categories and subcategories. Assign categories to markers quickly and easily by choosing from a dropdown menu.", "gmwd"),
|
92 |
+
)
|
93 |
+
),
|
94 |
+
// user guide from web-dorado.com
|
95 |
+
"user_guide" => array(
|
96 |
+
0 => array(
|
97 |
+
"main_title" => __("Installation Wizard/ Options Menu", "gmwd"),
|
98 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/installation-wizard-options-menu.html",
|
99 |
+
"titles" => array(
|
100 |
+
array(
|
101 |
+
"title" => __("Configuring Map API Key", "gmwd"),
|
102 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/installation-wizard-options-menu/configuring-api-key.html"
|
103 |
+
)
|
104 |
+
)
|
105 |
+
),
|
106 |
+
1 => array(
|
107 |
+
"main_title" => __("Creating Map", "gmwd"),
|
108 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/creating-map.html",
|
109 |
+
"titles" => array()
|
110 |
+
),
|
111 |
+
2 => array(
|
112 |
+
"main_title" => __("Settings", "gmwd"),
|
113 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/settings.html",
|
114 |
+
"titles" => array(
|
115 |
+
array(
|
116 |
+
"title" => __("General", "gmwd"),
|
117 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/settings/general.html",
|
118 |
+
),
|
119 |
+
array(
|
120 |
+
"title" => __("Controls", "gmwd"),
|
121 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/settings/controls.html",
|
122 |
+
),
|
123 |
+
array(
|
124 |
+
"title" => __("Layers", "gmwd"),
|
125 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/settings/layers.html",
|
126 |
+
),
|
127 |
+
array(
|
128 |
+
"title" => __("Directions", "gmwd"),
|
129 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/settings/directions.html",
|
130 |
+
),
|
131 |
+
array(
|
132 |
+
"title" => __("Store Locator", "gmwd"),
|
133 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/settings/store-locator.html",
|
134 |
+
),
|
135 |
+
array(
|
136 |
+
"title" => __("Marker Listing", "gmwd"),
|
137 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/settings/marker-listing.html",
|
138 |
+
),
|
139 |
+
)
|
140 |
+
),
|
141 |
+
3 => array(
|
142 |
+
"main_title" => __("Map", "gmwd"),
|
143 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/map.html",
|
144 |
+
"titles" => array(
|
145 |
+
array(
|
146 |
+
"title" => __("Adding Marker", "gmwd"),
|
147 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/map/adding-marker.html",
|
148 |
+
),
|
149 |
+
array(
|
150 |
+
"title" => __("Adding Circle", "gmwd"),
|
151 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/map/adding-circle.html",
|
152 |
+
),
|
153 |
+
array(
|
154 |
+
"title" => __("Adding Rectangle", "gmwd"),
|
155 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/map/adding-rectangle.html",
|
156 |
+
),
|
157 |
+
array(
|
158 |
+
"title" => __("Adding Polygon", "gmwd"),
|
159 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/map/adding-polygon.html",
|
160 |
+
),
|
161 |
+
array(
|
162 |
+
"title" => __("Adding Polylines", "gmwd"),
|
163 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/map/adding-polylines.html",
|
164 |
+
),
|
165 |
+
)
|
166 |
+
),
|
167 |
+
4 => array(
|
168 |
+
"main_title" => __("Preview/Themes", "gmwd"),
|
169 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/preview-themes.html",
|
170 |
+
"titles" => array()
|
171 |
+
),
|
172 |
+
5 => array(
|
173 |
+
"main_title" => __("Creating Marker Categories", "gmwd"),
|
174 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/creating-marker-categories.html",
|
175 |
+
"titles" => array()
|
176 |
+
),
|
177 |
+
),
|
178 |
+
"overview_welcome_image" => null,
|
179 |
+
"video_youtube_id" => "acaexefeP7o", // e.g. https://www.youtube.com/watch?v=acaexefeP7o youtube id is the acaexefeP7o
|
180 |
+
"plugin_wd_url" => "https://web-dorado.com/products/wordpress-google-maps-plugin.html",
|
181 |
+
"plugin_wd_demo_link" => "http://wpdemo.web-dorado.com/google-maps/?_ga=1.55907819.1794949467.1468394897",
|
182 |
+
"plugin_wd_addons_link" => "https://web-dorado.com/products/wordpress-google-maps-plugin/add-ons/marker-clustering.html",
|
183 |
+
"after_subscribe" => "admin.php?page=overview_gmwd", // this can be plagin overview page or set up page
|
184 |
+
"plugin_wizard_link" => admin_url('index.php?page=gmwd_setup'),
|
185 |
+
"plugin_menu_title" => "Google Maps WD",
|
186 |
+
"plugin_menu_icon" => GMWD_URL . '/images/icon-map-20.png',
|
187 |
+
"deactivate" => true,
|
188 |
+
"subscribe" => true,
|
189 |
+
"custom_post" => "maps_gmwd", // if true => edit.php?post_type=contact
|
190 |
+
"menu_capability" => "manage_options",
|
191 |
+
"menu_position" => 9,
|
192 |
+
);
|
193 |
+
|
194 |
+
web_dorado_init($gmwd_options);
|
195 |
+
}
|
196 |
+
|
197 |
}
|
198 |
|
199 |
+
add_action( 'init', "wd_gmwd_init" );
|
200 |
|
201 |
|
202 |
?>
|
wd/README.md
ADDED
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Version: 1.0.2
|
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 WebDorado class doesn't exist, include it
|
8 |
+
if( !class_exists("WebDorado") ){
|
9 |
+
require_once(PATH_TO_YOUR_PLUGIN_DIR . '/wd/start.php');
|
10 |
+
}
|
11 |
+
|
12 |
+
Then call web_dorado_init($options) function.
|
13 |
+
$options = array (
|
14 |
+
"prefix" => "your_plugin_prefix",
|
15 |
+
"wd_plugin_id" => your_plugin_id,
|
16 |
+
"plugin_title" => "your plugin titile",
|
17 |
+
"plugin_wordpress_slug" => "your plugin wordpress slug",
|
18 |
+
"plugin_dir" => 'path to your plugin dir',
|
19 |
+
"plugin_main_file" => 'path to your plugin main file',
|
20 |
+
"description" => 'your plugin description',
|
21 |
+
|
22 |
+
"plugin_features" => array(
|
23 |
+
0 => array(
|
24 |
+
"title" => "feature title 1",
|
25 |
+
"description" => "feature 1 description",
|
26 |
+
),
|
27 |
+
1 => array(
|
28 |
+
"title" => "feature title 2",
|
29 |
+
"description" => "feature 2 description",
|
30 |
+
),
|
31 |
+
...
|
32 |
+
),
|
33 |
+
"user_guide" => array(
|
34 |
+
0 => array(
|
35 |
+
"main_title" => "user guide step 1",
|
36 |
+
"url" => "link to step 1",
|
37 |
+
"titles" => array(
|
38 |
+
array(
|
39 |
+
"title" => "step 1 sub title",
|
40 |
+
"url" => "link to step 1 sub"
|
41 |
+
)
|
42 |
+
)
|
43 |
+
),
|
44 |
+
...
|
45 |
+
),
|
46 |
+
"overview_welcome_image" => null,
|
47 |
+
"video_youtube_id" => "your plugin youtube video id", // e.g. https://www.youtube.com/watch?v=acaexefeP7o youtube id is the acaexefeP7o
|
48 |
+
"plugin_wd_url" => "https://web-dorado.com/products/your plugin",
|
49 |
+
"plugin_wd_demo_link" => "http://wpdemo.web-dorado.com/your plugin",
|
50 |
+
"plugin_wd_addons_link" => "https://web-dorado.com/products/your plugin addons",
|
51 |
+
"after_subscribe" => "after subsribe page", // this can be plagin overview page or set up page admin.php?page=overview_YOUR_PREFIX
|
52 |
+
"plugin_wizard_link" => "your plugin wizard page",
|
53 |
+
"plugin_menu_title" => "Your plugin menu title",
|
54 |
+
"plugin_menu_icon" => "path to menu icon",
|
55 |
+
"deactivate" => true,
|
56 |
+
"subscribe" => true,
|
57 |
+
"custom_post" => false, // if true => edit.php?post_type=contact
|
58 |
+
"menu_capability" => "manage_options",
|
59 |
+
"menu_position" => null,
|
60 |
+
);
|
61 |
+
|
62 |
+
Fully documentation of web_dorado_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)
|
66 |
+
plugin_wd_zip_name - (type string) plugin zip name (in web-dorado database, ask Armen or Sergey )
|
67 |
+
plugin_title - type string) plugin title (
|
68 |
+
plugin_wordpress_slug - (type string) plugin slug
|
69 |
+
plugin_dir - (type string) full file path to your plugin directory
|
70 |
+
plugin_main_file - (type string) path to your plugin main file (__FILE__)
|
71 |
+
description - (type string) plugin short description
|
72 |
+
|
73 |
+
plugin_features - (type array) plugin top 5 features from web-dorado.com
|
74 |
+
e.g. (for google maps plugin)
|
75 |
+
array(
|
76 |
+
0 => array(
|
77 |
+
"title" => __("Easy set up", "gmwd"),
|
78 |
+
"description" => __("After installation a set-up guide will help you configure general options and get started on the dashboard. The plugin also displays tooltips in the whole admin area and settings. Moreover, you get instant live previews of changes you make in the working area, so you don’t have to save and publish maps to see the results.", "gmwd"),
|
79 |
+
),
|
80 |
+
1 => array(
|
81 |
+
"title" => __("Unlimited Everything", "gmwd"),
|
82 |
+
"description" => __("Display unlimited maps on any page or post. Same is true for markers, rectangles, circles, polygons and polylines.", "gmwd"),
|
83 |
+
),
|
84 |
+
....
|
85 |
+
)
|
86 |
+
|
87 |
+
user_guide - (type array) plugin user guide links from web-dorado.com
|
88 |
+
e.g. (for google maps plugin)
|
89 |
+
array(
|
90 |
+
0 => array(
|
91 |
+
"main_title" => __("Installation Wizard/ Options Menu", "gmwd"),
|
92 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/installation-wizard-options-menu.html",
|
93 |
+
"titles" => array(
|
94 |
+
array(
|
95 |
+
"title" => __("Configuring Map API Key", "gmwd"),
|
96 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/installation-wizard-options-menu/configuring-api-key.html"
|
97 |
+
)
|
98 |
+
)
|
99 |
+
),
|
100 |
+
1 => array(
|
101 |
+
"main_title" => __("Creating Map", "gmwd"),
|
102 |
+
"url" => "https://web-dorado.com/wordpress-google-maps/creating-map.html",
|
103 |
+
"titles" => array()
|
104 |
+
),
|
105 |
+
)
|
106 |
+
|
107 |
+
video_youtube_id - (type string) if your plugin has video, video's id, else null
|
108 |
+
( e.g. for https://www.youtube.com/watch?v=acaexefeP7o , youtube id is the 'acaexefeP7o' )
|
109 |
+
|
110 |
+
plugin_wd_url - (type string) plugin page url
|
111 |
+
(e.g. https://web-dorado.com/products/wordpress-google-maps-plugin.html)
|
112 |
+
|
113 |
+
plugin_wd_demo_link - (type string) plugin demo url
|
114 |
+
plugin_wd_addons_link - (type string) if plugin has addons , plugin addons link, else null
|
115 |
+
plugin_wizard_link - (type string) if plugin has wizard, wizard page , else null
|
116 |
+
( e.g. admin_url( 'index.php?page=gmwd_setup' ) )
|
117 |
+
|
118 |
+
plugin_menu_title - (type string) plugin wordpress backend menu title
|
119 |
+
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 pass false, 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 |
+
|
127 |
+
|
128 |
+
|
129 |
+
|
wd/assets/css/deactivate_popup.css
CHANGED
@@ -64,4 +64,23 @@
|
|
64 |
|
65 |
.wd-popup-active2{
|
66 |
height: 426px !important
|
67 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
.wd-popup-active2{
|
66 |
height: 426px !important
|
67 |
+
}
|
68 |
+
.wd-deactivate-popup-opacity{
|
69 |
+
width: 100%;
|
70 |
+
height: 100%;
|
71 |
+
background: #D9D9D9;
|
72 |
+
opacity: 0.3;
|
73 |
+
z-index: 45;
|
74 |
+
position: absolute;
|
75 |
+
display: none;
|
76 |
+
}
|
77 |
+
|
78 |
+
.wd-deactivate-popup-opacity .wd-img-loader{
|
79 |
+
position: absolute;
|
80 |
+
top: 0;
|
81 |
+
left: 0;
|
82 |
+
right: 0;
|
83 |
+
bottom: 0;
|
84 |
+
margin: auto;
|
85 |
+
z-index: 63;
|
86 |
+
}
|
wd/assets/css/overview.css
CHANGED
@@ -31,6 +31,9 @@ a:focus{
|
|
31 |
}
|
32 |
|
33 |
/*end general */
|
|
|
|
|
|
|
34 |
.overview_welcome{
|
35 |
background: url(img/welcome_bg.png) no-repeat;
|
36 |
margin: 21px 0px;
|
31 |
}
|
32 |
|
33 |
/*end general */
|
34 |
+
.wd-video_container{
|
35 |
+
text-align: center;
|
36 |
+
}
|
37 |
.overview_welcome{
|
38 |
background: url(img/welcome_bg.png) no-repeat;
|
39 |
margin: 21px 0px;
|
wd/assets/img/faqwd_main_plugin.png
ADDED
Binary file
|
wd/assets/img/{fbwd_main_plugin.png → ffwd_main_plugin.png}
RENAMED
File without changes
|
wd/assets/img/spinner.gif
ADDED
Binary file
|
wd/assets/img/{awd_main_plugin.png → wd_ads_main_plugin.png}
RENAMED
File without changes
|
wd/assets/img/{ewd_main_plugin.png → wde_main_plugin.png}
RENAMED
File without changes
|
wd/assets/img/{iwd_main_plugin.png → wdi_main_plugin.png}
RENAMED
File without changes
|
wd/assets/img/{swd_main_plugin.png → wds_main_plugin.png}
RENAMED
File without changes
|
wd/assets/js/deactivate_popup.js
CHANGED
@@ -79,7 +79,7 @@ function wdReady(prefix){
|
|
79 |
|
80 |
});
|
81 |
jQuery(document).on("click", ".wd-" + prefix + "-deactivate", function(){
|
82 |
-
|
83 |
if(jQuery(this).hasClass("wd-clicked") == false){
|
84 |
jQuery(this).addClass("wd-clicked");
|
85 |
jQuery("[name=" + prefix + "_submit_and_deactivate]").val(jQuery(this).attr("data-val"));
|
79 |
|
80 |
});
|
81 |
jQuery(document).on("click", ".wd-" + prefix + "-deactivate", function(){
|
82 |
+
jQuery(".wd-deactivate-popup-opacity-" + prefix).show();
|
83 |
if(jQuery(this).hasClass("wd-clicked") == false){
|
84 |
jQuery(this).addClass("wd-clicked");
|
85 |
jQuery("[name=" + prefix + "_submit_and_deactivate]").val(jQuery(this).attr("data-val"));
|
wd/config.php
CHANGED
@@ -15,6 +15,7 @@
|
|
15 |
public $description = null;
|
16 |
public $plugin_features = null;
|
17 |
public $user_guide = null;
|
|
|
18 |
public $video_youtube_id = null;
|
19 |
public $plugin_wd_url = null;
|
20 |
public $plugin_wd_demo_link = null;
|
@@ -33,6 +34,8 @@
|
|
33 |
public $deactivate = null;
|
34 |
public $subscribe = null;
|
35 |
public $custom_post = null;
|
|
|
|
|
36 |
|
37 |
public function set_options( $options ){
|
38 |
|
@@ -67,6 +70,9 @@
|
|
67 |
if(isset( $options["video_youtube_id"] )) {
|
68 |
$this->video_youtube_id = $options["video_youtube_id"];
|
69 |
}
|
|
|
|
|
|
|
70 |
if(isset( $options["plugin_wd_url"] )) {
|
71 |
$this->plugin_wd_url = $options["plugin_wd_url"];
|
72 |
}
|
@@ -96,16 +102,22 @@
|
|
96 |
}
|
97 |
if(isset( $options["custom_post"] )) {
|
98 |
$this->custom_post = $options["custom_post"];
|
99 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
// directories
|
102 |
-
$this->wd_dir = dirname(
|
103 |
$this->wd_dir_includes = $this->wd_dir . '/includes';
|
104 |
$this->wd_dir_templates = $this->wd_dir . '/templates';
|
105 |
$this->wd_dir_assets = $this->wd_dir . '/assets';
|
106 |
-
$this->wd_url_css = plugins_url( plugin_basename(
|
107 |
-
$this->wd_url_js = plugins_url( plugin_basename(
|
108 |
-
$this->wd_url_img = plugins_url( plugin_basename(
|
109 |
}
|
110 |
|
111 |
|
15 |
public $description = null;
|
16 |
public $plugin_features = null;
|
17 |
public $user_guide = null;
|
18 |
+
public $overview_welcome_image = null;
|
19 |
public $video_youtube_id = null;
|
20 |
public $plugin_wd_url = null;
|
21 |
public $plugin_wd_demo_link = null;
|
34 |
public $deactivate = null;
|
35 |
public $subscribe = null;
|
36 |
public $custom_post = null;
|
37 |
+
public $menu_capability = null;
|
38 |
+
public $menu_position = null;
|
39 |
|
40 |
public function set_options( $options ){
|
41 |
|
70 |
if(isset( $options["video_youtube_id"] )) {
|
71 |
$this->video_youtube_id = $options["video_youtube_id"];
|
72 |
}
|
73 |
+
if(isset( $options["overview_welcome_image"] )) {
|
74 |
+
$this->overview_welcome_image = $options["overview_welcome_image"];
|
75 |
+
}
|
76 |
if(isset( $options["plugin_wd_url"] )) {
|
77 |
$this->plugin_wd_url = $options["plugin_wd_url"];
|
78 |
}
|
102 |
}
|
103 |
if(isset( $options["custom_post"] )) {
|
104 |
$this->custom_post = $options["custom_post"];
|
105 |
+
}
|
106 |
+
if(isset( $options["menu_capability"] )) {
|
107 |
+
$this->menu_capability = $options["menu_capability"];
|
108 |
+
}
|
109 |
+
if(isset( $options["menu_position"] )) {
|
110 |
+
$this->menu_position = $options["menu_position"];
|
111 |
+
}
|
112 |
|
113 |
// directories
|
114 |
+
$this->wd_dir = dirname( $this->plugin_main_file ) . '/wd';
|
115 |
$this->wd_dir_includes = $this->wd_dir . '/includes';
|
116 |
$this->wd_dir_templates = $this->wd_dir . '/templates';
|
117 |
$this->wd_dir_assets = $this->wd_dir . '/assets';
|
118 |
+
$this->wd_url_css = plugins_url( plugin_basename( $this->wd_dir ) ) . '/assets/css';
|
119 |
+
$this->wd_url_js = plugins_url( plugin_basename( $this->wd_dir ) ) . '/assets/js';
|
120 |
+
$this->wd_url_img = plugins_url( plugin_basename( $this->wd_dir ) ) . '/assets/img';
|
121 |
}
|
122 |
|
123 |
|
wd/includes/api.php
CHANGED
@@ -53,7 +53,7 @@
|
|
53 |
}
|
54 |
|
55 |
public function get_hash(){
|
56 |
-
$response = wp_remote_get("
|
57 |
|
58 |
$response_body = isset($response["body"]) ? json_decode($response["body"], true) : null;
|
59 |
|
53 |
}
|
54 |
|
55 |
public function get_hash(){
|
56 |
+
$response = wp_remote_get("https://api.web-dorado.com/hash/" . $_SERVER['REMOTE_ADDR'] . "/" . $_SERVER['HTTP_HOST']);
|
57 |
|
58 |
$response_body = isset($response["body"]) ? json_decode($response["body"], true) : null;
|
59 |
|
wd/includes/deactivate.php
CHANGED
@@ -118,7 +118,7 @@
|
|
118 |
|
119 |
$data["name"] = $user_first_name || $user_last_name ? $user_first_name . " " . $user_last_name : $admin_data->data->user_login;
|
120 |
$data["hash"] = $hash;
|
121 |
-
$response = wp_remote_post( "
|
122 |
'method' => 'POST',
|
123 |
'timeout' => 45,
|
124 |
'redirection' => 5,
|
118 |
|
119 |
$data["name"] = $user_first_name || $user_last_name ? $user_first_name . " " . $user_last_name : $admin_data->data->user_login;
|
120 |
$data["hash"] = $hash;
|
121 |
+
$response = wp_remote_post( "https://api.web-dorado.com/deactivatereasons", array(
|
122 |
'method' => 'POST',
|
123 |
'timeout' => 45,
|
124 |
'redirection' => 5,
|
wd/includes/subscribe.php
CHANGED
@@ -96,7 +96,7 @@
|
|
96 |
$data["all_plugins"] = $all_plugins;
|
97 |
|
98 |
|
99 |
-
$response = wp_remote_post( "
|
100 |
'method' => 'POST',
|
101 |
'timeout' => 45,
|
102 |
'redirection' => 5,
|
@@ -122,7 +122,7 @@
|
|
122 |
add_option( $wd_options->prefix . "_subscribe_done" , "1", '', 'no');
|
123 |
}
|
124 |
|
125 |
-
wp_safe_redirect(
|
126 |
}
|
127 |
|
128 |
}
|
96 |
$data["all_plugins"] = $all_plugins;
|
97 |
|
98 |
|
99 |
+
$response = wp_remote_post( "https://api.web-dorado.com/collectuserdata", array(
|
100 |
'method' => 'POST',
|
101 |
'timeout' => 45,
|
102 |
'redirection' => 5,
|
122 |
add_option( $wd_options->prefix . "_subscribe_done" , "1", '', 'no');
|
123 |
}
|
124 |
|
125 |
+
wp_safe_redirect( $wd_options->after_subscribe );
|
126 |
}
|
127 |
|
128 |
}
|
wd/start.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
exit;
|
4 |
}
|
5 |
-
define( 'WEB_DORADO_API_PLUGIN_DATA_PATH', '
|
6 |
require_once dirname( __FILE__ ) . '/config.php';
|
7 |
|
8 |
/**
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
exit;
|
4 |
}
|
5 |
+
define( 'WEB_DORADO_API_PLUGIN_DATA_PATH', 'https://api.web-dorado.com/v2/_id_/plugindata' );
|
6 |
require_once dirname( __FILE__ ) . '/config.php';
|
7 |
|
8 |
/**
|
wd/templates/display_deactivation_popup.php
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
<div class="wd-opacity wd-<?php echo $wd_options->prefix; ?>-opacity"></div>
|
2 |
<div class="wd-deactivate-popup wd-<?php echo $wd_options->prefix; ?>-deactivate-popup">
|
|
|
|
|
|
|
3 |
<form method="post" id="<?php echo $wd_options->prefix; ?>_deactivate_form">
|
4 |
<div class="wd-deactivate-popup-header">
|
5 |
<?php _e( "Please let us know why you are deactivating. Your answer will help us to serve you better", $wd_options->prefix ); ?>:
|
1 |
<div class="wd-opacity wd-<?php echo $wd_options->prefix; ?>-opacity"></div>
|
2 |
<div class="wd-deactivate-popup wd-<?php echo $wd_options->prefix; ?>-deactivate-popup">
|
3 |
+
<div class="wd-deactivate-popup-opacity wd-deactivate-popup-opacity-<?php echo $wd_options->prefix; ?>">
|
4 |
+
<img src="<?php echo $wd_options->wd_url_img . '/spinner.gif'; ?>" class="wd-img-loader" >
|
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 ); ?>:
|
wd/templates/display_overview_support.php
CHANGED
@@ -9,24 +9,33 @@
|
|
9 |
<br>
|
10 |
<?php _e( "It helps us troubleshoot more quickly.", $wd_options->prefix ); ?>
|
11 |
</p>
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
</div>
|
31 |
<div class="contact_us_wrap">
|
32 |
<a href="https://web-dorado.com/support/contact-us.html" target="_blank" class="contact_us"><?php _e("Contact us", $wd_options->prefix); ?></a>
|
9 |
<br>
|
10 |
<?php _e( "It helps us troubleshoot more quickly.", $wd_options->prefix ); ?>
|
11 |
</p>
|
12 |
+
<?php
|
13 |
+
if ( function_exists('current_user_can' ) ) {
|
14 |
+
if ( current_user_can('manage_options') ) {
|
15 |
+
?>
|
16 |
+
<div class="wd-site-deatils wd-table">
|
17 |
+
<button id="wd-copy"><?php _e( "Copy to Clipboard", $wd_options->prefix ); ?></button>
|
18 |
+
<div id="wd-site-deatils">
|
19 |
+
<textarea rows="10" id="wd-site-deatils-textarea"><?php
|
20 |
+
_e( "Server Settings", $wd_options->prefix );
|
21 |
+
echo ' ';
|
22 |
+
foreach( $server_info as $key => $val ){
|
23 |
+
echo $key . ": " . $val . ' ';
|
24 |
+
}
|
25 |
+
echo ' ';
|
26 |
+
_e( "Graphic Library", $wd_options->prefix );
|
27 |
+
echo ' ';
|
28 |
+
foreach( $gd_info as $key => $val ){
|
29 |
+
echo $key . ": " . $val . ' ';
|
30 |
+
}
|
31 |
+
?></textarea>
|
32 |
+
</div>
|
33 |
+
</div>
|
34 |
+
<?php
|
35 |
+
}
|
36 |
+
}
|
37 |
+
?>
|
38 |
+
|
39 |
</div>
|
40 |
<div class="contact_us_wrap">
|
41 |
<a href="https://web-dorado.com/support/contact-us.html" target="_blank" class="contact_us"><?php _e("Contact us", $wd_options->prefix); ?></a>
|
wd/templates/display_overview_welcome.php
CHANGED
@@ -1,7 +1,13 @@
|
|
1 |
<div id="welcome">
|
2 |
<!-- display plugin video -->
|
3 |
<?php if( $wd_options->video_youtube_id ){ ?>
|
4 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
<?php } ?>
|
6 |
|
7 |
<!-- display plugin features -->
|
1 |
<div id="welcome">
|
2 |
<!-- display plugin video -->
|
3 |
<?php if( $wd_options->video_youtube_id ){ ?>
|
4 |
+
<div class="wd-video_container">
|
5 |
+
<iframe width="100%" height="400" src="//www.youtube.com/embed/<?php echo $wd_options->video_youtube_id; ?>?rel=0" frameborder="0" allowfullscreen></iframe>
|
6 |
+
</div>
|
7 |
+
<?php }
|
8 |
+
else if( $wd_options->overview_welcome_image ) { ?>
|
9 |
+
<img src="<?php echo $wd_options->overview_welcome_image; ?>" width="100%" />
|
10 |
+
|
11 |
<?php } ?>
|
12 |
|
13 |
<!-- display plugin features -->
|
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 //
|
@@ -40,8 +40,11 @@
|
|
40 |
$config = new WDConfig();
|
41 |
$config->set_options( $options );
|
42 |
$this->config = $config;
|
|
|
|
|
|
|
43 |
|
44 |
-
$this->
|
45 |
$this->register_hooks();
|
46 |
|
47 |
}
|
@@ -49,22 +52,15 @@
|
|
49 |
// Create overview menu page
|
50 |
public function wd_overview_menu_page() {
|
51 |
$wd_options = $this->config;
|
52 |
-
|
|
|
53 |
if( get_option( $wd_options->prefix . "_subscribe_done" ) == 1 || $wd_options->subscribe === false ){
|
54 |
-
|
55 |
-
$overview_page = add_menu_page( $wd_options->plugin_menu_title, $wd_options->plugin_menu_title, 'manage_options', 'overview_' . $wd_options->prefix , array( $this, 'display_overview_page' ), $wd_options->plugin_menu_icon, 11 );
|
56 |
-
$parent_slug = 'overview_' . $wd_options->prefix;
|
57 |
-
}
|
58 |
-
else{
|
59 |
-
$parent_slug = $wd_options->custom_post;
|
60 |
-
}
|
61 |
-
|
62 |
}
|
63 |
else{
|
64 |
|
65 |
-
$subscribe_page = add_menu_page( $wd_options->plugin_menu_title, $wd_options->plugin_menu_title,
|
66 |
|
67 |
-
require_once ( $wd_options->wd_dir_includes . "/subscribe.php" );
|
68 |
$subscribe_instance = new WebDoradoSubscribe($this->config);
|
69 |
$this->subscribe_instance = $subscribe_instance;
|
70 |
add_action( 'admin_print_styles-' . $subscribe_page, array( $subscribe_instance, 'subscribe_styles' ) );
|
@@ -73,9 +69,9 @@
|
|
73 |
$parent_slug = null;
|
74 |
}
|
75 |
|
76 |
-
$overview_page = add_submenu_page( $parent_slug, __( 'Overview', $wd_options->prefix ), __( 'Overview', $wd_options->prefix ),
|
77 |
|
78 |
-
|
79 |
$overview_instance = new WebDoradoOverview($this->config);
|
80 |
$this->overview_instance = $overview_instance;
|
81 |
add_action( 'admin_print_styles-' . $overview_page, array( $overview_instance, 'overview_styles' ) );
|
@@ -100,14 +96,28 @@
|
|
100 |
if( $wd_options->deactivate === true ){
|
101 |
if(strpos( $current_url, "plugins.php" ) !== false ){
|
102 |
require_once $wd_options->wd_dir_includes . '/deactivate.php' ;
|
103 |
-
new WebDoradoDeactivate( $this->config );
|
104 |
}
|
105 |
}
|
106 |
|
107 |
// notices
|
108 |
require_once $wd_options->wd_dir_includes . '/api.php';
|
109 |
require_once $wd_options->wd_dir_includes . '/notices.php';
|
110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
}
|
112 |
|
113 |
public function register_hooks(){
|
17 |
public $overview_instance;
|
18 |
public $subscribe_instance;
|
19 |
public $config;
|
20 |
+
private $version = "1.0.2";
|
21 |
|
22 |
////////////////////////////////////////////////////////////////////////////////////////
|
23 |
// Constructor & Destructor //
|
40 |
$config = new WDConfig();
|
41 |
$config->set_options( $options );
|
42 |
$this->config = $config;
|
43 |
+
if( !class_exists("WebDoradoApi") ){
|
44 |
+
$this->wd_includes();
|
45 |
+
}
|
46 |
|
47 |
+
$this->init_classes();
|
48 |
$this->register_hooks();
|
49 |
|
50 |
}
|
52 |
// Create overview menu page
|
53 |
public function wd_overview_menu_page() {
|
54 |
$wd_options = $this->config;
|
55 |
+
|
56 |
+
$capability = $wd_options->menu_capability ? $wd_options->menu_capability : "manage_options";
|
57 |
if( get_option( $wd_options->prefix . "_subscribe_done" ) == 1 || $wd_options->subscribe === false ){
|
58 |
+
$parent_slug = $wd_options->custom_post;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
}
|
60 |
else{
|
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 WebDoradoSubscribe($this->config);
|
65 |
$this->subscribe_instance = $subscribe_instance;
|
66 |
add_action( 'admin_print_styles-' . $subscribe_page, array( $subscribe_instance, 'subscribe_styles' ) );
|
69 |
$parent_slug = null;
|
70 |
}
|
71 |
|
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 WebDoradoOverview($this->config);
|
76 |
$this->overview_instance = $overview_instance;
|
77 |
add_action( 'admin_print_styles-' . $overview_page, array( $overview_instance, 'overview_styles' ) );
|
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';
|
105 |
+
require_once $wd_options->wd_dir_includes . "/overview.php";
|
106 |
+
require_once $wd_options->wd_dir_includes . "/subscribe.php";
|
107 |
+
|
108 |
+
}
|
109 |
+
public function init_classes(){
|
110 |
+
$wd_options = $this->config;
|
111 |
+
|
112 |
+
$current_url = $_SERVER['REQUEST_URI'];
|
113 |
+
if( $wd_options->deactivate === true ){
|
114 |
+
if(strpos( $current_url, "plugins.php" ) !== false ){
|
115 |
+
new WebDoradoDeactivate( $this->config );
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
new WebDoradoNotices( $this->config );
|
120 |
+
|
121 |
}
|
122 |
|
123 |
public function register_hooks(){
|