Version Description
- Added: Ask a question button.
Download this release
Release Info
Developer | 10web |
Plugin | WD Google Maps – Google Maps builder Plugin |
Version | 1.0.63 |
Comparing to | |
See all releases |
Code changes from version 1.0.62 to 1.0.63
- admin/views/GMWDView.php +1 -1
- admin/views/GMWDViewMarkercategories_gmwd.php +1 -2
- admin/views/GMWDViewThemes_gmwd.php +1 -1
- css/pricing.css +179 -0
- framework/functions.php +100 -52
- gmwd_admin_class.php +14 -3
- images/help.svg +1 -0
- js/admin_main.js +4 -1
- readme.txt +5 -1
- wd-google-maps.php +22 -1
admin/views/GMWDView.php
CHANGED
@@ -18,7 +18,7 @@ class GMWDView {
|
|
18 |
$this->model = $model;
|
19 |
if(GMWDHelper::get('ajax') !=1){
|
20 |
if(GMWDHelper::get('page') == "maps_gmwd" || GMWDHelper::get('page') == "options_gmwd" || GMWDHelper::get('page') == "uninstall_gmwd"){
|
21 |
-
|
22 |
}
|
23 |
?>
|
24 |
<script>
|
18 |
$this->model = $model;
|
19 |
if(GMWDHelper::get('ajax') !=1){
|
20 |
if(GMWDHelper::get('page') == "maps_gmwd" || GMWDHelper::get('page') == "options_gmwd" || GMWDHelper::get('page') == "uninstall_gmwd"){
|
21 |
+
topbar();
|
22 |
}
|
23 |
?>
|
24 |
<script>
|
admin/views/GMWDViewMarkercategories_gmwd.php
CHANGED
@@ -18,8 +18,7 @@ class GMWDViewMarkercategories_gmwd extends GMWDView{
|
|
18 |
// Public Methods //
|
19 |
////////////////////////////////////////////////////////////////////////////////////////
|
20 |
public function display(){
|
21 |
-
|
22 |
-
|
23 |
?>
|
24 |
<div class="gmwd">
|
25 |
<div class="gmwd_theme_imgs">
|
18 |
// Public Methods //
|
19 |
////////////////////////////////////////////////////////////////////////////////////////
|
20 |
public function display(){
|
21 |
+
topbar();
|
|
|
22 |
?>
|
23 |
<div class="gmwd">
|
24 |
<div class="gmwd_theme_imgs">
|
admin/views/GMWDViewThemes_gmwd.php
CHANGED
@@ -19,7 +19,7 @@ class GMWDViewThemes_gmwd extends GMWDView{
|
|
19 |
////////////////////////////////////////////////////////////////////////////////////////
|
20 |
|
21 |
public function display(){
|
22 |
-
|
23 |
?>
|
24 |
<div class="gmwd">
|
25 |
<div class="gmwd_theme_imgs">
|
19 |
////////////////////////////////////////////////////////////////////////////////////////
|
20 |
|
21 |
public function display(){
|
22 |
+
topbar();
|
23 |
?>
|
24 |
<div class="gmwd">
|
25 |
<div class="gmwd_theme_imgs">
|
css/pricing.css
ADDED
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.wrap h1.head-notice {
|
2 |
+
height: 0;
|
3 |
+
padding: 0;
|
4 |
+
visibility: hidden;
|
5 |
+
}
|
6 |
+
|
7 |
+
/* Top bar start */
|
8 |
+
.topbar-container * {
|
9 |
+
font-family: Roboto;
|
10 |
+
}
|
11 |
+
|
12 |
+
.topbar-container {
|
13 |
+
display: flex;
|
14 |
+
flex-direction: row;
|
15 |
+
justify-content: flex-end;
|
16 |
+
margin: 20px 0 20px 0;
|
17 |
+
font-family: Roboto;
|
18 |
+
}
|
19 |
+
.topbar-container * {
|
20 |
+
box-sizing: border-box;
|
21 |
+
}
|
22 |
+
.topbar-container .topbar {
|
23 |
+
background-color: #FFFFFF;
|
24 |
+
border: 1px solid #D0D0D080;
|
25 |
+
border-radius: 7px;
|
26 |
+
color: #000000;
|
27 |
+
padding: 10px;
|
28 |
+
}
|
29 |
+
|
30 |
+
.topbar_cont {
|
31 |
+
display: flex;
|
32 |
+
}
|
33 |
+
|
34 |
+
.topbar-container .topbar.topbar_support_forum {
|
35 |
+
background-color: #4786FF;
|
36 |
+
margin-left: 20px;
|
37 |
+
}
|
38 |
+
|
39 |
+
.topbar-container .topbar.topbar_support_forum:hover {
|
40 |
+
background-color: #3077FF;
|
41 |
+
opacity:1
|
42 |
+
}
|
43 |
+
|
44 |
+
.topbar-content {
|
45 |
+
display: flex;
|
46 |
+
justify-content: space-between;
|
47 |
+
flex: auto;
|
48 |
+
margin: 0 20px 0 0;
|
49 |
+
padding: 10px 15px;
|
50 |
+
height: 60px;
|
51 |
+
}
|
52 |
+
.topbar-links {
|
53 |
+
color: #000000;
|
54 |
+
display: flex;
|
55 |
+
flex-direction: column;
|
56 |
+
justify-content: space-around;
|
57 |
+
font-size: 18px;
|
58 |
+
font-weight: 300;
|
59 |
+
margin: 0 0 0 2px;
|
60 |
+
height: 60px;
|
61 |
+
}
|
62 |
+
.topbar-links-container {
|
63 |
+
display: flex;
|
64 |
+
justify-content: space-around;
|
65 |
+
height: 80%;
|
66 |
+
}
|
67 |
+
.topbar-links-item {
|
68 |
+
display: flex;
|
69 |
+
flex: 1;
|
70 |
+
align-self: center;
|
71 |
+
justify-content: center;
|
72 |
+
width: 170px;
|
73 |
+
line-height: 50px;
|
74 |
+
}
|
75 |
+
.topbar-links * {
|
76 |
+
font-size: 18px;
|
77 |
+
}
|
78 |
+
.topbar-links a,
|
79 |
+
.topbar-links a:focus {
|
80 |
+
align-self: center;
|
81 |
+
box-shadow: none;
|
82 |
+
color: #000000;
|
83 |
+
text-decoration: none;
|
84 |
+
}
|
85 |
+
|
86 |
+
.topbar-links a.topbar_support_forum {
|
87 |
+
color: #fff;
|
88 |
+
}
|
89 |
+
|
90 |
+
.topbar-links a.topbar_support_forum .help_icon {
|
91 |
+
margin-right: 10px;
|
92 |
+
}
|
93 |
+
|
94 |
+
.topbar-links a:hover {
|
95 |
+
opacity: 0.5;
|
96 |
+
text-decoration: none;
|
97 |
+
}
|
98 |
+
.topbar-separator {
|
99 |
+
background-color: #C2C2C280;
|
100 |
+
width: 1px;
|
101 |
+
height: 100%;
|
102 |
+
}
|
103 |
+
.topbar-content-title {
|
104 |
+
color: #0C4D68;
|
105 |
+
font-size: 16px;
|
106 |
+
font-weight: 700;
|
107 |
+
line-height: 22px;
|
108 |
+
text-transform: uppercase;
|
109 |
+
}
|
110 |
+
.topbar-content-body {
|
111 |
+
font-size: 15px;
|
112 |
+
font-weight: 300;
|
113 |
+
line-height: 20px;
|
114 |
+
}
|
115 |
+
.topbar-content-container {
|
116 |
+
display: flex;
|
117 |
+
flex-direction: column;
|
118 |
+
}
|
119 |
+
.topbar-content-button-container,
|
120 |
+
.free-message-button-container {
|
121 |
+
align-self: center;
|
122 |
+
}
|
123 |
+
.topbar-upgrade-button,
|
124 |
+
.topbar-upgrade-button:focus {
|
125 |
+
background-color: #29B311;
|
126 |
+
border-radius: 20px;
|
127 |
+
box-shadow: none;
|
128 |
+
color: #FFFFFF;
|
129 |
+
font-size: 14px;
|
130 |
+
padding: 5px 44px;
|
131 |
+
text-decoration: none;
|
132 |
+
text-transform: uppercase;
|
133 |
+
}
|
134 |
+
.topbar-upgrade-button:hover {
|
135 |
+
text-decoration: none;
|
136 |
+
color: #FFFFFFCC;
|
137 |
+
}
|
138 |
+
@media screen and (max-width: 1366px) {
|
139 |
+
.topbar-links {
|
140 |
+
font-size: 15px;
|
141 |
+
}
|
142 |
+
.topbar-content-title {
|
143 |
+
font-size: 15px;
|
144 |
+
}
|
145 |
+
.topbar-content-body {
|
146 |
+
font-size: 13px;
|
147 |
+
}
|
148 |
+
}
|
149 |
+
@media screen and (max-width: 1285px) {
|
150 |
+
.topbar-container {
|
151 |
+
flex-direction: column;
|
152 |
+
}
|
153 |
+
.topbar-links,
|
154 |
+
.topbar-content {
|
155 |
+
margin: 0 0 10px 0;
|
156 |
+
width: 100%;
|
157 |
+
}
|
158 |
+
.topbar-content {
|
159 |
+
flex-direction: column;
|
160 |
+
height: auto;
|
161 |
+
}
|
162 |
+
.topbar-content-container,
|
163 |
+
.topbar-content-container * {
|
164 |
+
align-self: center;
|
165 |
+
padding-bottom: 4px;
|
166 |
+
}
|
167 |
+
}
|
168 |
+
|
169 |
+
@media screen and (max-width: 450px) {
|
170 |
+
.topbar_cont {
|
171 |
+
display: block;
|
172 |
+
}
|
173 |
+
|
174 |
+
.topbar-container .topbar.topbar_support_forum {
|
175 |
+
margin-left: 0px;
|
176 |
+
}
|
177 |
+
}
|
178 |
+
|
179 |
+
/* Top bar end */
|
framework/functions.php
CHANGED
@@ -21,68 +21,116 @@ function gmwd_get_option($option_name)
|
|
21 |
return false;
|
22 |
}
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
</div>
|
63 |
-
<div class="
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
|
|
|
|
74 |
</div>
|
|
|
75 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
</div>
|
|
|
77 |
</div>
|
78 |
-
|
|
|
|
|
|
|
79 |
?>
|
80 |
<div class="wd-text-right wd-row" style="color: #15699F; font-size: 20px; margin-top:10px; padding:0px 15px;">
|
81 |
-
|
82 |
</div>
|
83 |
<?php
|
84 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
|
|
|
86 |
}
|
87 |
|
88 |
function api_key_notice()
|
21 |
return false;
|
22 |
}
|
23 |
|
24 |
+
/**
|
25 |
+
* Generate top bar.
|
26 |
+
*
|
27 |
+
* @return string Top bar html.
|
28 |
+
*/
|
29 |
+
function topbar() {
|
30 |
+
$page = isset($_GET['page']) ? esc_html($_GET['page']) : '';
|
31 |
+
$task = isset($_GET["task"]) ? esc_html($_GET["task"]) : "";
|
32 |
+
$user_guide_link = 'https://help.10web.io/hc/en-us/articles/';
|
33 |
+
$show_guide_link = true;
|
34 |
+
$description = "";
|
35 |
+
switch ($page) {
|
36 |
+
case "maps_gmwd":
|
37 |
+
if ($task == "edit") {
|
38 |
+
$user_guide_link .= '360018133851-Creating-Map';
|
39 |
+
$description .= __('This section allows you to add/edit map.', 'gmwd');
|
40 |
+
|
41 |
+
} else {
|
42 |
+
$user_guide_link .= '360018133851-Creating-Map';
|
43 |
+
$description .= __('This section allows you to create, edit and delete maps.', 'gmwd');
|
44 |
+
}
|
45 |
+
break;
|
46 |
+
case 'options_gmwd': {
|
47 |
+
$user_guide_link .= '360017853132-Configuring-Google-Maps-General-Settings';
|
48 |
+
$description .= __('This section allows you to change general options.', 'gmwd');
|
49 |
+
break;
|
50 |
+
}
|
51 |
+
case 'markercategories_gmwd': {
|
52 |
+
$user_guide_link .= '360018135431-Creating-Marker-Categories';
|
53 |
+
$description .= __('This section allows you to create and add marker categories to your WordPress Google Map.', 'gmwd');
|
54 |
+
break;
|
55 |
+
}
|
56 |
+
case 'themes_gmwd': {
|
57 |
+
$user_guide_link .= '360017854292-Modifying-Google-Maps-Themes';
|
58 |
+
$description .= __('This section allows you to create a new or modifying theme/skin for your map.', 'gmwd');
|
59 |
+
break;
|
60 |
+
}
|
61 |
+
default: {
|
62 |
+
return '';
|
63 |
+
break;
|
64 |
+
}
|
65 |
+
}
|
66 |
+
$support_forum_link = 'https://wordpress.org/support/plugin/wd-google-maps/#new-post';
|
67 |
+
$premium_link = 'https://10web.io/plugins/wordpress-google-maps/';
|
68 |
+
wp_enqueue_style('gmwd-roboto');
|
69 |
+
wp_enqueue_style('gmwd-pricing');
|
70 |
+
ob_start();
|
71 |
+
?>
|
72 |
+
<div class="wrap">
|
73 |
+
<h1 class="head-notice"> </h1>
|
74 |
+
<div class="topbar-container">
|
75 |
+
<div class="topbar topbar-content">
|
76 |
+
<div class="topbar-content-container">
|
77 |
+
<div class="topbar-content-title">
|
78 |
+
<?php _e('Google Maps by 10Web Premium', 'gmwd'); ?>
|
79 |
+
</div>
|
80 |
+
<div class="topbar-content-body">
|
81 |
+
<?php echo $description; ?>
|
82 |
+
</div>
|
83 |
</div>
|
84 |
+
<div class="topbar-content-button-container">
|
85 |
+
<a href="<?php echo $premium_link; ?>" target="_blank" class="topbar-upgrade-button"><?php _e( 'Upgrade','gmwd' ); ?></a>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
<div class="topbar_cont">
|
89 |
+
<?php
|
90 |
+
if ( $show_guide_link ) {
|
91 |
+
?>
|
92 |
+
<div class="topbar topbar-links">
|
93 |
+
<div class="topbar-links-container">
|
94 |
+
<a href="<?php echo $user_guide_link; ?>" target="_blank" class="topbar_user_guid">
|
95 |
+
<div class="topbar-links-item">
|
96 |
+
<?php _e('User guide', 'gmwd'); ?>
|
97 |
</div>
|
98 |
+
</a>
|
99 |
</div>
|
100 |
+
</div>
|
101 |
+
<?php
|
102 |
+
}
|
103 |
+
?>
|
104 |
+
<div class="topbar topbar-links topbar_support_forum">
|
105 |
+
<div class="topbar-links-container">
|
106 |
+
<a href="<?php echo $support_forum_link; ?>" target="_blank" class="topbar_support_forum">
|
107 |
+
<div class="topbar-links-item">
|
108 |
+
<img src="<?php echo GMWD_URL . '/images/help.svg'; ?>" class="help_icon" />
|
109 |
+
<?php _e('Ask a question', 'gmwd'); ?>
|
110 |
+
</div>
|
111 |
+
</a>
|
112 |
+
</div>
|
113 |
</div>
|
114 |
+
</div>
|
115 |
</div>
|
116 |
+
</div>
|
117 |
+
<?php
|
118 |
+
|
119 |
+
if ( $page == 'themes_gmwd' ) {
|
120 |
?>
|
121 |
<div class="wd-text-right wd-row" style="color: #15699F; font-size: 20px; margin-top:10px; padding:0px 15px;">
|
122 |
+
<?php echo __("This is FREE version, Customizing themes is available only in the PAID version.", "gmwd"); ?>
|
123 |
</div>
|
124 |
<?php
|
125 |
+
} elseif ($page == 'markercategories_gmwd') {
|
126 |
+
?>
|
127 |
+
<div class="wd-text-right wd-row" style="color: #15699F; font-size: 20px; margin-top:10px; padding:0px 15px;">
|
128 |
+
<?php echo __("This is FREE version, Customizing marker categories is available only in the PAID version.", "gmwd"); ?>
|
129 |
+
</div>
|
130 |
+
<?php
|
131 |
+
}
|
132 |
|
133 |
+
echo ob_get_clean();
|
134 |
}
|
135 |
|
136 |
function api_key_notice()
|
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 |
////////////////////////////////////////////////////////////////////////////////////////
|
@@ -64,17 +64,19 @@ class GMWDAdmin
|
|
64 |
|
65 |
// add meta fields
|
66 |
add_filter("plugin_row_meta", array($this, 'meta_links'), 10, 2);
|
|
|
|
|
67 |
}
|
68 |
////////////////////////////////////////////////////////////////////////////////////////
|
69 |
// Public Methods //
|
70 |
////////////////////////////////////////////////////////////////////////////////////////
|
71 |
|
72 |
-
|
73 |
{
|
74 |
if (GMWD_MAIN_FILE == $file) {
|
75 |
$plugin_url = "https://wordpress.org/support/plugin/wd-google-maps";
|
76 |
$prefix = 'gmwd';
|
77 |
-
$meta_fields[] = "<a href='" . $plugin_url . "' target='_blank'>" . __('
|
78 |
$meta_fields[] = "<a href='" . $plugin_url . "/reviews#new-post' target='_blank' title='" . __('Rate', $prefix) . "'>
|
79 |
<i class='wdi-rate-stars'>"
|
80 |
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
@@ -214,6 +216,15 @@ class GMWDAdmin
|
|
214 |
|
215 |
add_submenu_page('maps_gmwd', __('Google Maps Add-ons', 'gmwd'), __('Google Maps Add-ons', 'gmwd'), 'manage_options', 'gmwd_addons', array($this, "gmwd_addons"));
|
216 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
}
|
218 |
|
219 |
// Admin main function
|
12 |
// Variables //
|
13 |
////////////////////////////////////////////////////////////////////////////////////////
|
14 |
protected static $instance = null;
|
15 |
+
private static $version = '1.0.63';
|
16 |
////////////////////////////////////////////////////////////////////////////////////////
|
17 |
// Constructor & Destructor //
|
18 |
////////////////////////////////////////////////////////////////////////////////////////
|
64 |
|
65 |
// add meta fields
|
66 |
add_filter("plugin_row_meta", array($this, 'meta_links'), 10, 2);
|
67 |
+
|
68 |
+
|
69 |
}
|
70 |
////////////////////////////////////////////////////////////////////////////////////////
|
71 |
// Public Methods //
|
72 |
////////////////////////////////////////////////////////////////////////////////////////
|
73 |
|
74 |
+
public function meta_links($meta_fields, $file)
|
75 |
{
|
76 |
if (GMWD_MAIN_FILE == $file) {
|
77 |
$plugin_url = "https://wordpress.org/support/plugin/wd-google-maps";
|
78 |
$prefix = 'gmwd';
|
79 |
+
$meta_fields[] = "<a href='" . $plugin_url . "/#new-post' target='_blank'>" . __('Ask a question', $prefix) . "</a>";
|
80 |
$meta_fields[] = "<a href='" . $plugin_url . "/reviews#new-post' target='_blank' title='" . __('Rate', $prefix) . "'>
|
81 |
<i class='wdi-rate-stars'>"
|
82 |
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
216 |
|
217 |
add_submenu_page('maps_gmwd', __('Google Maps Add-ons', 'gmwd'), __('Google Maps Add-ons', 'gmwd'), 'manage_options', 'gmwd_addons', array($this, "gmwd_addons"));
|
218 |
|
219 |
+
/* Custom link to wordpress.org*/
|
220 |
+
global $submenu;
|
221 |
+
$url = 'https://wordpress.org/support/plugin/wd-google-maps/#new-post';
|
222 |
+
$submenu[$parent_slug][] = array(
|
223 |
+
'<div id="gmwd_ask_question">' . __('Ask a question', 'gmwd') . '</div>',
|
224 |
+
'manage_options',
|
225 |
+
$url
|
226 |
+
);
|
227 |
+
|
228 |
}
|
229 |
|
230 |
// Admin main function
|
images/help.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19"><defs><style>.a{fill:#fff;}</style></defs><g transform="translate(-64 -64)"><path class="a" d="M73.5,64A9.5,9.5,0,1,0,83,73.5,9.5,9.5,0,0,0,73.5,64Zm0,17.388A7.888,7.888,0,1,1,81.388,73.5,7.89,7.89,0,0,1,73.5,81.388Z"/><path class="a" d="M357.759,276.863a3.676,3.676,0,0,0-4.733,0A2.891,2.891,0,0,0,352,279.054v.161a.17.17,0,0,0,.17.17h1.018a.17.17,0,0,0,.17-.17v-.161a2.07,2.07,0,0,1,4.071,0,1.716,1.716,0,0,1-1.19,1.542,2.37,2.37,0,0,0-1.1.867,2.427,2.427,0,0,0-.422,1.376v.456a.17.17,0,0,0,.17.17H355.9a.17.17,0,0,0,.17-.17v-.481a1.025,1.025,0,0,1,.655-.95,3.061,3.061,0,0,0,2.059-2.81,2.882,2.882,0,0,0-1.024-2.191Zm-3.215,8.807a.848.848,0,1,0,.848-.848A.848.848,0,0,0,354.545,285.67Z" transform="translate(-281.893 -207.504)"/></g></svg>
|
js/admin_main.js
CHANGED
@@ -36,7 +36,10 @@ jQuery(document).ready(function () {
|
|
36 |
});
|
37 |
|
38 |
}*/
|
39 |
-
|
|
|
|
|
|
|
40 |
});
|
41 |
|
42 |
|
36 |
});
|
37 |
|
38 |
}*/
|
39 |
+
|
40 |
+
jQuery('#gmwd_ask_question').parent().attr('target','_blank');
|
41 |
+
|
42 |
+
|
43 |
});
|
44 |
|
45 |
|
readme.txt
CHANGED
@@ -3,7 +3,8 @@ 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: 5.2
|
6 |
-
|
|
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -139,6 +140,9 @@ Activate 10Web Google Maps by going to Plugins and pressing Activate button.
|
|
139 |
|
140 |
== Changelog ==
|
141 |
|
|
|
|
|
|
|
142 |
= 1.0.62 =
|
143 |
* Fixed: a minor bug
|
144 |
|
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: 5.2
|
6 |
+
Requires PHP: 5.2
|
7 |
+
Stable tag: 1.0.63
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
140 |
|
141 |
== Changelog ==
|
142 |
|
143 |
+
= 1.0.63 =
|
144 |
+
* Added: Ask a question button.
|
145 |
+
|
146 |
= 1.0.62 =
|
147 |
* Fixed: a minor bug
|
148 |
|
wd-google-maps.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: 10Web Google Maps
|
5 |
* Plugin URI: https://10web.io/plugins/wordpress-google-maps/
|
6 |
* Description: 10Web Google Maps is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
|
7 |
-
* Version: 1.0.
|
8 |
* Author: 10Web
|
9 |
* Author URI: https://10web.io/plugins
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -46,6 +46,10 @@ function gmwd_register_admin_scripts() {
|
|
46 |
wp_register_style( 'admin_main', GMWD_URL . '/css/admin_main.css', array(), $version );
|
47 |
wp_register_style( 'simple-slider', GMWD_URL . '/css/simple-slider.css', array(), $version );
|
48 |
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
|
51 |
require_once('gmwd_class.php');
|
@@ -343,5 +347,22 @@ function wd_gmwd_init()
|
|
343 |
|
344 |
add_action('init', "wd_gmwd_init");
|
345 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
|
347 |
?>
|
4 |
* Plugin Name: 10Web Google Maps
|
5 |
* Plugin URI: https://10web.io/plugins/wordpress-google-maps/
|
6 |
* Description: 10Web Google Maps is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
|
7 |
+
* Version: 1.0.63
|
8 |
* Author: 10Web
|
9 |
* Author URI: https://10web.io/plugins
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
46 |
wp_register_style( 'admin_main', GMWD_URL . '/css/admin_main.css', array(), $version );
|
47 |
wp_register_style( 'simple-slider', GMWD_URL . '/css/simple-slider.css', array(), $version );
|
48 |
|
49 |
+
wp_register_style('gmwd-pricing', GMWD_URL . '/css/pricing.css', array(), $version);
|
50 |
+
wp_register_style('gmwd-roboto', 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');
|
51 |
+
|
52 |
+
|
53 |
}
|
54 |
|
55 |
require_once('gmwd_class.php');
|
347 |
|
348 |
add_action('init', "wd_gmwd_init");
|
349 |
|
350 |
+
add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'gmvd_add_ask_question_links' );
|
351 |
+
|
352 |
+
/**
|
353 |
+
* Add plugin action links.
|
354 |
+
*
|
355 |
+
* Add a link to the settings page on the plugins.php page.
|
356 |
+
*
|
357 |
+
* @since 1.0.0
|
358 |
+
*
|
359 |
+
* @param array $links List of existing plugin action links.
|
360 |
+
* @return array List of modified plugin action links.
|
361 |
+
*/
|
362 |
+
function gmvd_add_ask_question_links ( $links ) {
|
363 |
+
$url = 'https://wordpress.org/support/plugin/wd-google-maps/#new-post';
|
364 |
+
$gmwd_ask_question_link = array('<a href="' . $url . '" target="_blank">' . __('Help', 'gmwd') . '</a>');
|
365 |
+
return array_merge( $links, $gmwd_ask_question_link );
|
366 |
+
}
|
367 |
|
368 |
?>
|