Version Description
Download this release
Release Info
Developer | WebFactory |
Plugin | Google Maps Widget – Ultimate Google Maps Plugin |
Version | 3.77 |
Comparing to | |
See all releases |
Code changes from version 3.76 to 3.77
- css/gmw-admin.css +22 -12
- gmw-widget.php +11 -4
- google-maps-widget.php +22 -12
- readme.txt +1 -1
css/gmw-admin.css
CHANGED
@@ -124,6 +124,13 @@ option.gmw_promo {
|
|
124 |
border: 1px solid #ff3f3f;
|
125 |
color: #ff3f3f;
|
126 |
padding: 10px 15px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
}
|
128 |
|
129 |
body.widgets-php .select2-container--default .select2-results__option[aria-disabled=true] {
|
@@ -833,27 +840,29 @@ ul.ui-tabs-nav{
|
|
833 |
margin-top: 5px !important;
|
834 |
}
|
835 |
|
836 |
-
#gmw_dialog_pro_features .
|
837 |
-
width:
|
|
|
|
|
|
|
|
|
|
|
838 |
display: inline-block;
|
839 |
vertical-align: top;
|
840 |
-
margin: 0;
|
841 |
-
padding: 0;
|
842 |
}
|
843 |
|
844 |
-
#gmw_dialog_pro_features .list
|
845 |
-
width: 33%;
|
846 |
display: inline-block;
|
847 |
vertical-align: top;
|
848 |
-
margin: 0;
|
849 |
padding: 0;
|
850 |
}
|
851 |
|
852 |
#gmw_dialog_pro_features li {
|
853 |
-
margin-bottom:
|
854 |
list-style-position: inside;
|
855 |
-
text-indent: -
|
856 |
-
padding-left:
|
857 |
}
|
858 |
|
859 |
#gmw_dialog_pro_features li:first-letter {
|
@@ -890,8 +899,9 @@ ul.ui-tabs-nav{
|
|
890 |
}
|
891 |
|
892 |
.gmw_goto_intro.button-secondary:hover {
|
893 |
-
background:
|
894 |
-
color: #
|
|
|
895 |
}
|
896 |
|
897 |
#gmw-pricing-table {
|
124 |
border: 1px solid #ff3f3f;
|
125 |
color: #ff3f3f;
|
126 |
padding: 10px 15px;
|
127 |
+
text-align: justify;
|
128 |
+
}
|
129 |
+
|
130 |
+
.gmw-upgrade-notice-widget {
|
131 |
+
border: 1px solid #008ec2;
|
132 |
+
padding: 10px 15px;
|
133 |
+
text-align: justify;
|
134 |
}
|
135 |
|
136 |
body.widgets-php .select2-container--default .select2-results__option[aria-disabled=true] {
|
840 |
margin-top: 5px !important;
|
841 |
}
|
842 |
|
843 |
+
#gmw_dialog_pro_features .features-left {
|
844 |
+
width: 50%;
|
845 |
+
display: inline-block;
|
846 |
+
vertical-align: top;
|
847 |
+
}
|
848 |
+
#gmw_dialog_pro_features .features-right {
|
849 |
+
width: 50%;
|
850 |
display: inline-block;
|
851 |
vertical-align: top;
|
|
|
|
|
852 |
}
|
853 |
|
854 |
+
#gmw_dialog_pro_features .features-list {
|
|
|
855 |
display: inline-block;
|
856 |
vertical-align: top;
|
857 |
+
margin: 10px 0 0 0;
|
858 |
padding: 0;
|
859 |
}
|
860 |
|
861 |
#gmw_dialog_pro_features li {
|
862 |
+
margin-bottom: 8px;
|
863 |
list-style-position: inside;
|
864 |
+
text-indent: -18px;
|
865 |
+
padding-left: 18px;
|
866 |
}
|
867 |
|
868 |
#gmw_dialog_pro_features li:first-letter {
|
899 |
}
|
900 |
|
901 |
.gmw_goto_intro.button-secondary:hover {
|
902 |
+
background: #d54e21;
|
903 |
+
border-color: #d54e21;
|
904 |
+
color: #fff !important;
|
905 |
}
|
906 |
|
907 |
#gmw-pricing-table {
|
gmw-widget.php
CHANGED
@@ -205,13 +205,13 @@ class GoogleMapsWidget extends WP_Widget {
|
|
205 |
|
206 |
// upgrade ad if plugin used > 60 days
|
207 |
if (!GMW::is_activated() && ((current_time('timestamp') - $options['first_install']) > (DAY_IN_SECONDS * 60))) {
|
208 |
-
echo '<p>A <a class="open_promo_dialog" href="#">special offer</a> for users like <b>you</b> who\'ve been using GMW for over two months: a <b>one time payment</b>, lifetime license for <b>only $19</b>! No nonsense! <a class="open_promo_dialog" href="#">Upgrade now</a> to <span class="gmw-pro-red">PRO</span> & get more than 50 extra options & features.</p>';
|
209 |
}
|
210 |
|
211 |
-
// api key warning
|
212 |
-
if (
|
213 |
echo '<p class="gmw-api-key-error"><b>Important!</b> ';
|
214 |
-
echo 'Please go to <a href="' . admin_url('options-general.php?page=gmw_options') . '" title="Google Maps Widget settings">settings</a> & follow simple instructions
|
215 |
}
|
216 |
|
217 |
// widget options markup
|
@@ -461,6 +461,13 @@ class GoogleMapsWidget extends WP_Widget {
|
|
461 |
|
462 |
// output widget
|
463 |
function widget($widget, $instance) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
464 |
$out = $widget_content = $style = '';
|
465 |
$map_params = array();
|
466 |
$instance = $this->upgrade_wiget_instance($instance);
|
205 |
|
206 |
// upgrade ad if plugin used > 60 days
|
207 |
if (!GMW::is_activated() && ((current_time('timestamp') - $options['first_install']) > (DAY_IN_SECONDS * 60))) {
|
208 |
+
echo '<p class="gmw-upgrade-notice-widget">A <a class="open_promo_dialog" href="#">special offer</a> for users like <b>you</b> who\'ve been using GMW for over two months: a <b>one time payment</b>, lifetime license for <b>only $19</b>! No nonsense! <a class="open_promo_dialog" href="#">Upgrade now</a> to <span class="gmw-pro-red">PRO</span> & get more than 50 extra options & features.</p>';
|
209 |
}
|
210 |
|
211 |
+
// api key warning
|
212 |
+
if (!GMW::get_api_key('test')) {
|
213 |
echo '<p class="gmw-api-key-error"><b>Important!</b> ';
|
214 |
+
echo 'Please go to <a href="' . admin_url('options-general.php?page=gmw_options') . '" title="Google Maps Widget settings">settings</a> & follow simple instructions to get a <b>free Google Maps API key</b>. It only takes a minute. Without a key your maps will stop working. This rule is enforced by Google. Sorry for the inconvenience.</p>';
|
215 |
}
|
216 |
|
217 |
// widget options markup
|
461 |
|
462 |
// output widget
|
463 |
function widget($widget, $instance) {
|
464 |
+
// no user key and installed +3 months ago -> disable map
|
465 |
+
if (!GMW::get_api_key('test') && ((current_time('timestamp') - $options['first_install']) > (DAY_IN_SECONDS * 100))) {
|
466 |
+
echo $widget['before_widget'] . '<div style="border: 1px solid black; padding: 20px;">Open your map settings to configure the Google Maps API key. The map can\'t work without it.</div>' . $widget['after_widget'];
|
467 |
+
return;
|
468 |
+
}
|
469 |
+
|
470 |
+
|
471 |
$out = $widget_content = $style = '';
|
472 |
$map_params = array();
|
473 |
$instance = $this->upgrade_wiget_instance($instance);
|
google-maps-widget.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Maps Widget
|
|
4 |
Plugin URI: http://www.gmapswidget.com/
|
5 |
Description: Display a single image super-fast loading Google map in a widget. A larger, full featured map is available in a lightbox. Includes a user-friendly interface and numerous appearance options.
|
6 |
Author: Web Factory Ltd
|
7 |
-
Version: 3.
|
8 |
Author URI: http://www.webfactoryltd.com/
|
9 |
Text Domain: google-maps-widget
|
10 |
Domain Path: lang
|
@@ -881,34 +881,44 @@ class GMW {
|
|
881 |
$out .= '<div id="gmw_dialog_pro_features" style="display: none;" class="gmw_promo_dialog_screen">
|
882 |
<div class="content">';
|
883 |
$out .= '<h4>See how <span class="gmw-pro-red">PRO</span> features can make your life easier!</h4>';
|
884 |
-
$out .= '<
|
|
|
|
|
885 |
$out .= '<li>Multiple pins support with per-pin options for appearance & click behaviour</li>
|
886 |
<li>12 thumbnail & lightbox map skins + create your own fully custom skin</li>
|
887 |
<li>1500+ map pins</li>
|
888 |
<li>4 extra map image formats for even faster loading</li>
|
889 |
<li>replace thumb with interactive map feature</li>
|
890 |
-
<li>extra hidden sidebar for easier shortcode handling</li>
|
|
|
|
|
|
|
891 |
<li>custom map language option</li>
|
892 |
<li>4 map modes; directions, view, street & streetview</li>
|
893 |
<li>fully customizable pin options for thumbnail map</li>
|
894 |
<li>Advanced cache & fastest loading times</li>
|
895 |
-
<li>JS & CSS optimization options</li>
|
896 |
-
<li>Continuous updates & new features</li>';
|
897 |
$out .= '</ul>';
|
898 |
-
$out .= '
|
|
|
|
|
|
|
899 |
$out .= '<li>Full control over all pins</li>
|
|
|
900 |
<li>Clustering support</li>
|
901 |
<li>3 additional map link types</li>
|
902 |
-
<li>
|
903 |
-
<li>
|
904 |
-
<li>
|
905 |
-
|
906 |
-
|
907 |
<li>Clone widget feature</li>
|
908 |
<li>export & import tools</li>
|
909 |
<li>Google Analytics integration</li>
|
910 |
-
<li>
|
|
|
911 |
$out .= '</ul>';
|
|
|
912 |
$out .= ' </div>';
|
913 |
$out .= '<div class="footer">';
|
914 |
$out .= '<p class="center"><a href="#" class="button-secondary gmw_goto_intro">Go PRO now</a><br>
|
4 |
Plugin URI: http://www.gmapswidget.com/
|
5 |
Description: Display a single image super-fast loading Google map in a widget. A larger, full featured map is available in a lightbox. Includes a user-friendly interface and numerous appearance options.
|
6 |
Author: Web Factory Ltd
|
7 |
+
Version: 3.77
|
8 |
Author URI: http://www.webfactoryltd.com/
|
9 |
Text Domain: google-maps-widget
|
10 |
Domain Path: lang
|
881 |
$out .= '<div id="gmw_dialog_pro_features" style="display: none;" class="gmw_promo_dialog_screen">
|
882 |
<div class="content">';
|
883 |
$out .= '<h4>See how <span class="gmw-pro-red">PRO</span> features can make your life easier!</h4>';
|
884 |
+
$out .= '<div class="features-left">';
|
885 |
+
$out .= '<b>Multiple pins support</b><br>';
|
886 |
+
$out .= '<ul class="features-list">';
|
887 |
$out .= '<li>Multiple pins support with per-pin options for appearance & click behaviour</li>
|
888 |
<li>12 thumbnail & lightbox map skins + create your own fully custom skin</li>
|
889 |
<li>1500+ map pins</li>
|
890 |
<li>4 extra map image formats for even faster loading</li>
|
891 |
<li>replace thumb with interactive map feature</li>
|
892 |
+
<li>extra hidden sidebar for easier shortcode handling</li>';
|
893 |
+
$out .= '</ul><br><br><b>Complete control over map design</b><br>';
|
894 |
+
$out .= '<ul class="features-list">';
|
895 |
+
$out .= '<li>19 map skins + build your own skin option</li>
|
896 |
<li>custom map language option</li>
|
897 |
<li>4 map modes; directions, view, street & streetview</li>
|
898 |
<li>fully customizable pin options for thumbnail map</li>
|
899 |
<li>Advanced cache & fastest loading times</li>
|
900 |
+
<li>JS & CSS optimization options</li>';
|
|
|
901 |
$out .= '</ul>';
|
902 |
+
$out .= '</div>';
|
903 |
+
$out .= '<div class="features-right">';
|
904 |
+
$out .= '<b>Advanced options</b><br>';
|
905 |
+
$out .= '<ul class="features-list">';
|
906 |
$out .= '<li>Full control over all pins</li>
|
907 |
+
<li>Complete shortcode support</li>
|
908 |
<li>Clustering support</li>
|
909 |
<li>3 additional map link types</li>
|
910 |
+
<li>Fullscreen lightbox mode</li>
|
911 |
+
<li>Extra lightbox features</li>
|
912 |
+
<li>Disable thumbnail map - immediately load interactive map</li>';
|
913 |
+
$out .= '</ul><br><br><b>Unrivaled support</b><br>';
|
914 |
+
$out .= '<ul class="features-list">
|
915 |
<li>Clone widget feature</li>
|
916 |
<li>export & import tools</li>
|
917 |
<li>Google Analytics integration</li>
|
918 |
+
<li>Premium email support</li>
|
919 |
+
<li>Continuous updates & new features</li>';
|
920 |
$out .= '</ul>';
|
921 |
+
$out .= '</div>';
|
922 |
$out .= ' </div>';
|
923 |
$out .= '<div class="footer">';
|
924 |
$out .= '<p class="center"><a href="#" class="button-secondary gmw_goto_intro">Go PRO now</a><br>
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ License: GPLv2 or later
|
|
5 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
6 |
Requires at least: 4.0
|
7 |
Tested up to: 4.9
|
8 |
-
Stable tag: 3.
|
9 |
Requires PHP: 5.2
|
10 |
|
11 |
Tired of broken Google Maps taking hours to setup? With Google Maps Widget you'll have a perfect map with a thumbnail & lightbox in minutes!
|
5 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
6 |
Requires at least: 4.0
|
7 |
Tested up to: 4.9
|
8 |
+
Stable tag: 3.77
|
9 |
Requires PHP: 5.2
|
10 |
|
11 |
Tired of broken Google Maps taking hours to setup? With Google Maps Widget you'll have a perfect map with a thumbnail & lightbox in minutes!
|