Version Description
- New: Added a custom meta field to the Google Map single post screen that outputs the post's shortcode so it's more easily accessible. Before you could only access the shortcode via the Google Maps post listing page.
- Updated readme.txt file with more information about the plugin, fixed several formatting errors and typos.
- Fixed: Activation error "PHP Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Google_Maps_Builder::activate() should not be called statically in ..." - Thanks Jon Brown!
Download this release
Release Info
Developer | webdevmattcrom |
Plugin | Maps Builder – Google Maps Plugin |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- README.txt +48 -14
- admin/assets/css/admin.css +22 -0
- admin/assets/css/admin.min.css +1 -1
- admin/class-wordpress-google-maps-admin.php +27 -10
- admin/views/tab-map-options.php +0 -3
- google-maps-builder.php +1 -1
- public/class-wordpress-google-maps-engine.php +1 -2
- public/class-wordpress-google-maps.php +1 -1
README.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Google Maps Builder ===
|
2 |
-
Contributors: dlocc,
|
3 |
Donate link: http://wordimpress.com/
|
4 |
Tags: google maps, google map, google map widget, google map shortcode, maps, map, wp map, wp google maps, google maps directions, google maps builder, google maps plugin, google places, google places api, google maps api, google places reviews
|
5 |
Requires at least: 3.6
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -12,13 +12,13 @@ One Google Maps plugin to rule them all. Google Maps Builder is intuitive, sleek
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
Google Maps Builder isn't just another Google Maps plugin. It's built from the ground up to be the easiest, most intuitive and fastest Google Maps plugin for WordPress. Visually build
|
16 |
|
17 |
-
= Plugin
|
18 |
|
19 |
-
* **Google Places API integration**
|
20 |
-
* **Snazzy Maps integration**
|
21 |
-
* **Unique Marker Icons** The only plugin with [Map Icons](map-icons.com) integration; set icon and marker colors for truly unique markers
|
22 |
* **Intuitive UI** that seamlessly integrates with WordPress' - no eye sores or outdated interfaces here
|
23 |
* **Small Footprint** - GMB does not create any new database tables, not even one
|
24 |
* **Optimized** - All scripts and styles are optimized and packaged with Grunt
|
@@ -32,7 +32,13 @@ Google Maps builder features a simple **"Point and Click" marker creation system
|
|
32 |
|
33 |
Want to add some pazazz to your maps? [Snazzy Maps](http://snazzymaps.com/) themes are baked right in to Google Map Builder. This means your maps can stand out, fit into any design, and look unique and intriguing.
|
34 |
|
|
|
35 |
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
== Installation ==
|
38 |
|
@@ -62,16 +68,39 @@ This section describes how to install the plugin and get it working.
|
|
62 |
|
63 |
== Frequently Asked Questions ==
|
64 |
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
-
|
68 |
|
69 |
-
|
70 |
|
71 |
-
|
72 |
|
73 |
-
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
|
76 |
== Roadmap ==
|
77 |
|
@@ -108,5 +137,10 @@ Bug Fixes
|
|
108 |
|
109 |
== Changelog ==
|
110 |
|
111 |
-
= 1.0 =
|
|
|
|
|
|
|
|
|
|
|
112 |
* Plugin released. Yay!
|
1 |
=== Google Maps Builder ===
|
2 |
+
Contributors: wordimpress, dlocc, webdevmattcrom
|
3 |
Donate link: http://wordimpress.com/
|
4 |
Tags: google maps, google map, google map widget, google map shortcode, maps, map, wp map, wp google maps, google maps directions, google maps builder, google maps plugin, google places, google places api, google maps api, google places reviews
|
5 |
Requires at least: 3.6
|
6 |
+
Tested up to: 4.1
|
7 |
+
Stable tag: 1.0.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
Google Maps Builder isn't just another Google Maps plugin. It's built from the ground up to be the easiest, most intuitive and fastest Google Maps plugin for WordPress. Visually build powerful customized Google Maps to use on your WordPress site quickly and easily without ever having to touch a bit of code.
|
16 |
|
17 |
+
= Plugin Highlights: =
|
18 |
|
19 |
+
* **Google Places API integration** - Display nearby business locations and points of interest complete with ratings, custom marker icon
|
20 |
+
* **Snazzy Maps integration** - Create truly unique Google Map themes that look great with any design powered by [Snazzy Maps](http://snazzymaps.com/).
|
21 |
+
* **Unique Marker Icons** - The only plugin with [Map Icons](map-icons.com) integration; set icon and marker colors for truly unique markers
|
22 |
* **Intuitive UI** that seamlessly integrates with WordPress' - no eye sores or outdated interfaces here
|
23 |
* **Small Footprint** - GMB does not create any new database tables, not even one
|
24 |
* **Optimized** - All scripts and styles are optimized and packaged with Grunt
|
32 |
|
33 |
Want to add some pazazz to your maps? [Snazzy Maps](http://snazzymaps.com/) themes are baked right in to Google Map Builder. This means your maps can stand out, fit into any design, and look unique and intriguing.
|
34 |
|
35 |
+
= Granular Map Control =
|
36 |
|
37 |
+
Fine tune your Google Maps with full control over settings for street view, zooming, panning, dragging, and more. Set defaults for each controls so each new map you create is just the way you like it.
|
38 |
+
|
39 |
+
= Actively Developed and Supported =
|
40 |
+
|
41 |
+
This plugin is currently being actively developed, which means consistent improvements and enhancements. As well, we won't shy away from bug fixes and further code refractoring and optimization.
|
42 |
|
43 |
== Installation ==
|
44 |
|
68 |
|
69 |
== Frequently Asked Questions ==
|
70 |
|
71 |
+
= What sets this plugin apart from all the other Google Maps plugins for WordPress? =
|
72 |
+
|
73 |
+
There are a number features and functionality that set Google Maps Builder apart from the many WordPress Google Maps plugins. For starters, we promise this plugin will always have a light footprint. No extra tables or unnecessary overhead. Furthermore, the plugin is built from the ground up to be both easy and fun to use.
|
74 |
+
|
75 |
+
We have placed extra care and attention on the map creation process and are always looking to improve the UI with enhancements. It's our goal to integrate the plugin with the native WordPress admin UI without adding any distracting visuals. Finally, there are a number of additional features such as built in integration with Google Places API, Maps Icons and Snazzy Maps.
|
76 |
+
|
77 |
+
= Do I need a Google Places API Key to use this plugin? =
|
78 |
+
|
79 |
+
No. You do not need a Google Places API plugin to use this plugin.
|
80 |
+
|
81 |
+
= Does this plugin create any new database tables? =
|
82 |
|
83 |
+
Unlike many other Google Maps plugins, Google Maps Builder does not create a single new table in your WordPress database. There is no added database overhead or foreign MySQL queries. It's our guarantee that this plugin will never leave an orphaned table in your WordPress database.
|
84 |
|
85 |
+
= Where can I find the shortcodes for each map I create? =
|
86 |
|
87 |
+
You can find the shortcodes for each map on the post listing screen, within the post itself in the shortcode metabox (coming soon). Also coming soon: Map widget and TinyMCE button to include shortcode.
|
88 |
|
89 |
+
= What the heck is a shortcode and how do I use it? =
|
90 |
|
91 |
+
Google Maps Builder works by creating a plugin specific [WordPress shortcode](http://codex.wordpress.org/Shortcode). Basically, you can copy the shortcode for a specific map and enter in into a widget or directly within content. As well, you can use the WordPress [do_shortcode()](http://codex.wordpress.org/Function_Reference/do_shortcode) function to use it within your theme template files and even plugins.
|
92 |
+
|
93 |
+
= Does this plugin include a widget for displaying maps? =
|
94 |
+
|
95 |
+
Soon! For now, you can use the shortcode in the text widget. Soon there will be a Google Maps Builder Widget.
|
96 |
+
|
97 |
+
= How do I report a bug? =
|
98 |
+
|
99 |
+
We always welcome your feedback for improvements or if you have uncovered a bug. To report a bug please use the WordPress.org support forum.
|
100 |
+
|
101 |
+
= Who is behind this plugin? =
|
102 |
+
|
103 |
+
The main developer of this plugin is Devin Walker. He lives in San Diego, California and loves all things WordPress. To find out more information about him please visit [his website.](http://imdev.in)
|
104 |
|
105 |
== Roadmap ==
|
106 |
|
137 |
|
138 |
== Changelog ==
|
139 |
|
140 |
+
= 1.0.1 =
|
141 |
+
* New: Added a custom meta field to the Google Map single post screen that outputs the post's shortcode so it's more easily accessible. Before you could only access the shortcode via the Google Maps post listing page.
|
142 |
+
* Updated readme.txt file with more information about the plugin, fixed several formatting errors and typos.
|
143 |
+
* Fixed: Activation error "PHP Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Google_Maps_Builder::activate() should not be called statically in ..." - Thanks Jon Brown!
|
144 |
+
|
145 |
+
= 1.0.0 =
|
146 |
* Plugin released. Yay!
|
admin/assets/css/admin.css
CHANGED
@@ -19,6 +19,12 @@
|
|
19 |
transition: 0.2s all linear;
|
20 |
}
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
#gmb_markers_group_repeat {
|
23 |
/*display: none;*/
|
24 |
}
|
@@ -61,6 +67,22 @@
|
|
61 |
padding-right: 16px;
|
62 |
}
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
/*------------------------------------------
|
66 |
CMB Interface
|
19 |
transition: 0.2s all linear;
|
20 |
}
|
21 |
|
22 |
+
.box-sizing {
|
23 |
+
box-sizing: border-box;
|
24 |
+
-moz-box-sizing: border-box;
|
25 |
+
-webkit-box-sizing: border-box;
|
26 |
+
}
|
27 |
+
|
28 |
#gmb_markers_group_repeat {
|
29 |
/*display: none;*/
|
30 |
}
|
67 |
padding-right: 16px;
|
68 |
}
|
69 |
|
70 |
+
/*Shortcode Input */
|
71 |
+
|
72 |
+
.shortcode-wrap {
|
73 |
+
margin: 1px 14px 12px 11px;
|
74 |
+
}
|
75 |
+
|
76 |
+
.shortcode-wrap label {
|
77 |
+
margin: 0 0 3px;
|
78 |
+
display: block;
|
79 |
+
cursor: default;
|
80 |
+
}
|
81 |
+
|
82 |
+
.shortcode-input {
|
83 |
+
margin: 0;
|
84 |
+
width: 100%;
|
85 |
+
}
|
86 |
|
87 |
/*------------------------------------------
|
88 |
CMB Interface
|
admin/assets/css/admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.clear:before,.clear:after{content:" ";display:table}.clear:after{clear:both}.hover-transition,.marker-icon-row .icon,.marker-row .marker-item{-webkit-transition:.2s all linear;-moz-transition:.2s all linear;-o-transition:.2s all linear;transition:.2s all linear}#gmb_markers_group_repeat{}.cmb_id_gmb_theme_json{display:none}.marker-info-wrapper{background-color:#F1F1F1;margin:8px 0 4px;padding:12px;font-size:13px}.marker-info-wrapper>div{margin:0 0 5px;padding:0}.marker-info-wrapper>div.rating-wrap{margin:0;padding:0}.repeatable-grouping .cmb-nested-table td{padding-top:3px}.repeatable-grouping .cmb-nested-table td pre{margin:0}.repeatable-grouping .cmb-nested-table td pre textarea{height:50px}.new-window{background:url(../img/new-window-icon.png) no-repeat right 3px transparent;padding-right:16px}.cmb_metabox_description{display:block;margin-top:5px}.cmb_id_gmb_places_search_multicheckbox ul{overflow:hidden}.cmb_id_gmb_places_search_multicheckbox li{float:left;width:33%}.cmb_id_gmb_places_search_multicheckbox .cmb_metabox_description{margin-top:10px;margin-right:2px}#google-map-wrap{position:relative}.autocomplete-wrap{background:url(../img/powered-by-google-on-white.png) no-repeat right 8px rgba(0,0,0,0)}.repeatable-group .shift-rows{display:none}.wpgp-message{background-color:#FFF;border-left:4px solid #7AD03A;-webkit-box-shadow:1px 1px 1px 1px rgba(0,0,0,.15);box-shadow:1px 1px 1px 1px rgba(0,0,0,.15);box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;padding:1px 12px;display:none}.wpgp-message.warning-message{border-left:4px solid #d40000;margin:20px 0 0}.wpgp-message p,.form-table td .wpgp-message p{margin:.5em 0;padding:2px}.places-change-message{margin-bottom:15px;margin-right:2px}.places-change-message p{float:left}.places-change-message .button{float:right;margin-top:5px}#google-map-wrap .wpgp-message{margin-top:20px}#map{width:100%;margin:0 auto}.places-loading{background:url(../img/spinner.gif) no-repeat center right transparent;font-style:italic;position:absolute;top:-34px;right:31px;padding:0 25px 0 0;display:none}.cmb_id_gmb_map_type td{padding-bottom:0}.cmb_id_gmb_map_type .cmb_option{margin:5px 0 10px}.cmb_id_gmb_geocoder td{padding-bottom:3px}.cmb_id_gmb_search_radius,.cmb_id_gmb_places_search_multicheckbox{display:none}#google_maps_details_options tr{display:none}#google_maps_details_options tr.cmb_id_gmb_show_poi{display:table-row}.snazzy-link{font-size:10px;text-transform:uppercase;font-style:normal;display:inline-block}.width_unit_label,.width_radio,.map-width,.map-height,.size-label{float:left!important}#width_wrap{margin:0 0 10px}#size_labels_wrap{margin:8px 0 0 10px;padding:0;float:left}#width_unit_percent{margin:0 3px 0 0}#width_unit_px{margin:0 3px 0 8px}.inner-sidebar table.cmb_metabox label.size-label,#side-sortables table.cmb_metabox label.size-label,label.size-label{font-weight:400;font-style:italic}.inner-sidebar table.cmb_metabox label.size-label,#side-sortables table.cmb_metabox label.size-label,.form-table label.size-label{padding:9px 0 0;width:50px;font-weight:400}.map-width,.map-height{width:55px!important}#google-map-wrap div#infobubble-content{line-height:1.35}#infobubble-content.loading{background:url(../../../includes/assets/img/loading.GIF) no-repeat center center #FFF}#google-map-wrap div#infobubble-content>div{white-space:normal}.gm-style-iw,.gm-style-iw>div{overflow:visible!important}#infobubble-content p{font-size:12px;margin:0 0 7px;color:#2C2C2C}#infobubble-content{padding:0;margin:3px -20px 0 0;min-width:314px;min-height:80px;height:100%;overflow:hidden;box-sizing:border-box;cursor:default}#infobubble-content .place-title{border:1px solid #FFF;font-family:Roboto,Arial,sans-serif;font-size:16px;line-height:21px;font-weight:700;min-height:21px;white-space:normal;padding-right:20px}#infobubble-content .place-description{white-space:normal}.marker-confirm-place{margin:0 8px 4px 0;display:inline-block}.marker-confirm-place:hover{cursor:pointer}#infobubble-content .rating-wrap{overflow:hidden}#infobubble-content .numeric-rating{font-size:16px;color:#DD4B39;font-weight:400;float:left;margin:0 5px 0 0}#infobubble-content .star-rating-wrap{background:url(../../../includes/assets/img/review_stars.png) no-repeat 0 0 transparent;height:13px;width:67px;float:left;margin:5px 0 0}#infobubble-content .star-rating-size{background:url(../../../includes/assets/img/review_stars.png) no-repeat 0 -13px transparent;height:13px}#edit-toolbar{list-style:none;margin:0;padding:0;text-align:right}#edit-toolbar>li{margin:0 4px;cursor:pointer;display:inline-block;content:'';height:21px;width:21px;opacity:.5;background:url(../img/icons-infowindow-002.svg)}#edit-toolbar>li:hover{opacity:.75}#edit-toolbar>li.trash-marker{background-position:-42px 0}#edit-toolbar>li.edit-info{background:url(../img/icons-app-000.svg);background-position:21px 21px}#lat-lng-wrap input[type=text].latitude,#lat-lng-wrap input[type=text].longitude,#side-sortables #lat-lng-wrap input[type=text].latitude,#side-sortables #lat-lng-wrap input[type=text].longitude{width:100px;float:left}.lat-lng-wrap{float:left;margin:0 0 10px;clear:none}.lng-wrap{margin-bottom:0}.lat-lng-wrap>span,.lat-lng-wrap>input{float:left}.lat-lng-wrap>span{margin:8px 5px 0 0;width:80px;font-style:italic}.lat-lng-change-message{float:left;clear:both;margin:10px 0 0;width:100%}.lat-lng-change-message>p{float:left}.lat-lng-update-btn{float:right;margin:7px 0 0!important}#google_maps_metabox .search-autocomplete{width:78%;margin-right:10px}#google_maps_metabox .autocomplete-wrap p{font-style:italic;margin-bottom:5px!important}#google_maps_metabox a.drop-marker{font-style:normal}#save-toolbar{margin:0;padding:0;float:left}#save-toolbar>li{display:inline-block;margin:0;padding:0}#save-toolbar>li:first-child{margin:0 5px 0 0}#save-toolbar>li .google-btn{width:75px}a.marker-edit-link{background:url(../img/marker-btn.png) no-repeat 0 0 transparent;width:20px;height:20px;opacity:.5;margin:4px 0 0;display:block;float:right}#save-toolbar>li .marker-edit-link{opacity:.75}#infobubble-content .edit-place-title{width:290px}#infobubble-content .edit-place-description{display:block;font-size:12px;width:100%;min-height:100px}.marker-icon-row{margin-bottom:10px}.marker-icon-row,.save-marker-icon{display:none}.marker-icon-row .icon,.marker-row .marker-item{width:31%;float:left;font-size:14px;margin-bottom:10px;padding:4px;border-radius:5px}.icon-inner{position:relative;top:-8px}.marker-icon-row .icon span{font-size:32px;margin-right:8px;position:relative;top:8px}.marker-icon-row .icon:hover,.marker-row .marker-item:hover,.marker-item-selected{cursor:pointer;background:#DDEAEC}.marker-label{z-index:99;position:absolute;display:block;margin-top:-50px;margin-left:-25px;width:50px;height:50px;font-size:28px;text-align:center;color:#FFF;white-space:nowrap;line-height:1}.marker-icon-color-wrap,.marker-label-color-wrap{display:none}.marker-label-color-wrap{margin-bottom:60px}.marker-color-picker-wrap{float:left}#TB_ajaxContent p.color-desc{float:left;margin:0 0 0 10px;padding-top:3px;font-style:italic}.marker-row .marker-item{float:left;width:31%}.marker-svg{float:left;margin-right:12px;height:50px}.marker-svg .default-marker{margin:8px 0 0 10px}.marker-description{line-height:50px}.save-marker-icon{background:#F1F1F1;padding:10px;position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border-top:1px solid #DFDFDF}.save-marker-icon .save-text{float:left;font-style:italic;margin:0}.save-marker-icon .button{float:right}.radius-label{position:relative;top:35px;color:#7dbee8}.google-btn{-webkit-border-radius:2px;border-radius:2px;cursor:default;font-weight:300;font-size:13px;text-align:center;white-space:nowrap;height:27px;line-height:27px;min-width:54px;outline:0;padding:0 8px}.google-btn-blue{-webkit-box-shadow:none;box-shadow:none;background-color:#4D90FE;background-image:-webkit-linear-gradient(top,#4D90FE,#4787ED);background-image:linear-gradient(top,#4d90fe,#4787ed);border:1px solid #3079ED;color:#FFF}.google-btn-blue:hover{-webkit-box-shadow:none;box-shadow:none;background-color:#357AE8;background-image:-webkit-linear-gradient(top,#4D90FE,#357AE8);background-image:linear-gradient(top,#4d90fe,#357ae8);border:1px solid #2F5BB7;border-bottom-color:#2F5BB7}.google-btn-blue:active,.google-btn-blue:focus{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.3);box-shadow:inset 0 1px 2px rgba(0,0,0,.3);background:#357AE8;border:1px solid #2F5BB7;border-top:1px solid #2F5BB7}.google-btn-default{-webkit-box-shadow:none;box-shadow:none;background-color:#F5F5F5;background-image:-webkit-linear-gradient(top,#F5F5F5,#F1F1F1);background-image:linear-gradient(top,#f5f5f5,#f1f1f1);color:#333;border:1px solid #DCDCDC;border:1px solid rgba(0,0,0,.1)}.google-btn-default:hover{-webkit-box-shadow:none;box-shadow:none;background-color:#F8F8F8;background-image:-webkit-linear-gradient(top,#F8F8F8,#F1F1F1);background-image:linear-gradient(top,#f8f8f8,#f1f1f1);border:1px solid #C6C6C6;color:#111}.google-btn-default:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:#F8F8F8;color:#111}.infowindow-toolbar{display:block;margin:0;padding:8px 0 5px}.add-marker{text-decoration:none}
|
1 |
+
.clear:before,.clear:after{content:" ";display:table}.clear:after{clear:both}.hover-transition,.marker-icon-row .icon,.marker-row .marker-item{-webkit-transition:.2s all linear;-moz-transition:.2s all linear;-o-transition:.2s all linear;transition:.2s all linear}.box-sizing{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}#gmb_markers_group_repeat{}.cmb_id_gmb_theme_json{display:none}.marker-info-wrapper{background-color:#F1F1F1;margin:8px 0 4px;padding:12px;font-size:13px}.marker-info-wrapper>div{margin:0 0 5px;padding:0}.marker-info-wrapper>div.rating-wrap{margin:0;padding:0}.repeatable-grouping .cmb-nested-table td{padding-top:3px}.repeatable-grouping .cmb-nested-table td pre{margin:0}.repeatable-grouping .cmb-nested-table td pre textarea{height:50px}.new-window{background:url(../img/new-window-icon.png) no-repeat right 3px transparent;padding-right:16px}.shortcode-wrap{margin:1px 14px 12px 11px}.shortcode-wrap label{margin:0 0 3px;display:block;cursor:default}.shortcode-input{margin:0;width:100%}.cmb_metabox_description{display:block;margin-top:5px}.cmb_id_gmb_places_search_multicheckbox ul{overflow:hidden}.cmb_id_gmb_places_search_multicheckbox li{float:left;width:33%}.cmb_id_gmb_places_search_multicheckbox .cmb_metabox_description{margin-top:10px;margin-right:2px}#google-map-wrap{position:relative}.autocomplete-wrap{background:url(../img/powered-by-google-on-white.png) no-repeat right 8px rgba(0,0,0,0)}.repeatable-group .shift-rows{display:none}.wpgp-message{background-color:#FFF;border-left:4px solid #7AD03A;-webkit-box-shadow:1px 1px 1px 1px rgba(0,0,0,.15);box-shadow:1px 1px 1px 1px rgba(0,0,0,.15);box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;padding:1px 12px;display:none}.wpgp-message.warning-message{border-left:4px solid #d40000;margin:20px 0 0}.wpgp-message p,.form-table td .wpgp-message p{margin:.5em 0;padding:2px}.places-change-message{margin-bottom:15px;margin-right:2px}.places-change-message p{float:left}.places-change-message .button{float:right;margin-top:5px}#google-map-wrap .wpgp-message{margin-top:20px}#map{width:100%;margin:0 auto}.places-loading{background:url(../img/spinner.gif) no-repeat center right transparent;font-style:italic;position:absolute;top:-34px;right:31px;padding:0 25px 0 0;display:none}.cmb_id_gmb_map_type td{padding-bottom:0}.cmb_id_gmb_map_type .cmb_option{margin:5px 0 10px}.cmb_id_gmb_geocoder td{padding-bottom:3px}.cmb_id_gmb_search_radius,.cmb_id_gmb_places_search_multicheckbox{display:none}#google_maps_details_options tr{display:none}#google_maps_details_options tr.cmb_id_gmb_show_poi{display:table-row}.snazzy-link{font-size:10px;text-transform:uppercase;font-style:normal;display:inline-block}.width_unit_label,.width_radio,.map-width,.map-height,.size-label{float:left!important}#width_wrap{margin:0 0 10px}#size_labels_wrap{margin:8px 0 0 10px;padding:0;float:left}#width_unit_percent{margin:0 3px 0 0}#width_unit_px{margin:0 3px 0 8px}.inner-sidebar table.cmb_metabox label.size-label,#side-sortables table.cmb_metabox label.size-label,label.size-label{font-weight:400;font-style:italic}.inner-sidebar table.cmb_metabox label.size-label,#side-sortables table.cmb_metabox label.size-label,.form-table label.size-label{padding:9px 0 0;width:50px;font-weight:400}.map-width,.map-height{width:55px!important}#google-map-wrap div#infobubble-content{line-height:1.35}#infobubble-content.loading{background:url(../../../includes/assets/img/loading.GIF) no-repeat center center #FFF}#google-map-wrap div#infobubble-content>div{white-space:normal}.gm-style-iw,.gm-style-iw>div{overflow:visible!important}#infobubble-content p{font-size:12px;margin:0 0 7px;color:#2C2C2C}#infobubble-content{padding:0;margin:3px -20px 0 0;min-width:314px;min-height:80px;height:100%;overflow:hidden;box-sizing:border-box;cursor:default}#infobubble-content .place-title{border:1px solid #FFF;font-family:Roboto,Arial,sans-serif;font-size:16px;line-height:21px;font-weight:700;min-height:21px;white-space:normal;padding-right:20px}#infobubble-content .place-description{white-space:normal}.marker-confirm-place{margin:0 8px 4px 0;display:inline-block}.marker-confirm-place:hover{cursor:pointer}#infobubble-content .rating-wrap{overflow:hidden}#infobubble-content .numeric-rating{font-size:16px;color:#DD4B39;font-weight:400;float:left;margin:0 5px 0 0}#infobubble-content .star-rating-wrap{background:url(../../../includes/assets/img/review_stars.png) no-repeat 0 0 transparent;height:13px;width:67px;float:left;margin:5px 0 0}#infobubble-content .star-rating-size{background:url(../../../includes/assets/img/review_stars.png) no-repeat 0 -13px transparent;height:13px}#edit-toolbar{list-style:none;margin:0;padding:0;text-align:right}#edit-toolbar>li{margin:0 4px;cursor:pointer;display:inline-block;content:'';height:21px;width:21px;opacity:.5;background:url(../img/icons-infowindow-002.svg)}#edit-toolbar>li:hover{opacity:.75}#edit-toolbar>li.trash-marker{background-position:-42px 0}#edit-toolbar>li.edit-info{background:url(../img/icons-app-000.svg);background-position:21px 21px}#lat-lng-wrap input[type=text].latitude,#lat-lng-wrap input[type=text].longitude,#side-sortables #lat-lng-wrap input[type=text].latitude,#side-sortables #lat-lng-wrap input[type=text].longitude{width:100px;float:left}.lat-lng-wrap{float:left;margin:0 0 10px;clear:none}.lng-wrap{margin-bottom:0}.lat-lng-wrap>span,.lat-lng-wrap>input{float:left}.lat-lng-wrap>span{margin:8px 5px 0 0;width:80px;font-style:italic}.lat-lng-change-message{float:left;clear:both;margin:10px 0 0;width:100%}.lat-lng-change-message>p{float:left}.lat-lng-update-btn{float:right;margin:7px 0 0!important}#google_maps_metabox .search-autocomplete{width:78%;margin-right:10px}#google_maps_metabox .autocomplete-wrap p{font-style:italic;margin-bottom:5px!important}#google_maps_metabox a.drop-marker{font-style:normal}#save-toolbar{margin:0;padding:0;float:left}#save-toolbar>li{display:inline-block;margin:0;padding:0}#save-toolbar>li:first-child{margin:0 5px 0 0}#save-toolbar>li .google-btn{width:75px}a.marker-edit-link{background:url(../img/marker-btn.png) no-repeat 0 0 transparent;width:20px;height:20px;opacity:.5;margin:4px 0 0;display:block;float:right}#save-toolbar>li .marker-edit-link{opacity:.75}#infobubble-content .edit-place-title{width:290px}#infobubble-content .edit-place-description{display:block;font-size:12px;width:100%;min-height:100px}.marker-icon-row{margin-bottom:10px}.marker-icon-row,.save-marker-icon{display:none}.marker-icon-row .icon,.marker-row .marker-item{width:31%;float:left;font-size:14px;margin-bottom:10px;padding:4px;border-radius:5px}.icon-inner{position:relative;top:-8px}.marker-icon-row .icon span{font-size:32px;margin-right:8px;position:relative;top:8px}.marker-icon-row .icon:hover,.marker-row .marker-item:hover,.marker-item-selected{cursor:pointer;background:#DDEAEC}.marker-label{z-index:99;position:absolute;display:block;margin-top:-50px;margin-left:-25px;width:50px;height:50px;font-size:28px;text-align:center;color:#FFF;white-space:nowrap;line-height:1}.marker-icon-color-wrap,.marker-label-color-wrap{display:none}.marker-label-color-wrap{margin-bottom:60px}.marker-color-picker-wrap{float:left}#TB_ajaxContent p.color-desc{float:left;margin:0 0 0 10px;padding-top:3px;font-style:italic}.marker-row .marker-item{float:left;width:31%}.marker-svg{float:left;margin-right:12px;height:50px}.marker-svg .default-marker{margin:8px 0 0 10px}.marker-description{line-height:50px}.save-marker-icon{background:#F1F1F1;padding:10px;position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border-top:1px solid #DFDFDF}.save-marker-icon .save-text{float:left;font-style:italic;margin:0}.save-marker-icon .button{float:right}.radius-label{position:relative;top:35px;color:#7dbee8}.google-btn{-webkit-border-radius:2px;border-radius:2px;cursor:default;font-weight:300;font-size:13px;text-align:center;white-space:nowrap;height:27px;line-height:27px;min-width:54px;outline:0;padding:0 8px}.google-btn-blue{-webkit-box-shadow:none;box-shadow:none;background-color:#4D90FE;background-image:-webkit-linear-gradient(top,#4D90FE,#4787ED);background-image:linear-gradient(top,#4d90fe,#4787ed);border:1px solid #3079ED;color:#FFF}.google-btn-blue:hover{-webkit-box-shadow:none;box-shadow:none;background-color:#357AE8;background-image:-webkit-linear-gradient(top,#4D90FE,#357AE8);background-image:linear-gradient(top,#4d90fe,#357ae8);border:1px solid #2F5BB7;border-bottom-color:#2F5BB7}.google-btn-blue:active,.google-btn-blue:focus{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.3);box-shadow:inset 0 1px 2px rgba(0,0,0,.3);background:#357AE8;border:1px solid #2F5BB7;border-top:1px solid #2F5BB7}.google-btn-default{-webkit-box-shadow:none;box-shadow:none;background-color:#F5F5F5;background-image:-webkit-linear-gradient(top,#F5F5F5,#F1F1F1);background-image:linear-gradient(top,#f5f5f5,#f1f1f1);color:#333;border:1px solid #DCDCDC;border:1px solid rgba(0,0,0,.1)}.google-btn-default:hover{-webkit-box-shadow:none;box-shadow:none;background-color:#F8F8F8;background-image:-webkit-linear-gradient(top,#F8F8F8,#F1F1F1);background-image:linear-gradient(top,#f8f8f8,#f1f1f1);border:1px solid #C6C6C6;color:#111}.google-btn-default:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:#F8F8F8;color:#111}.infowindow-toolbar{display:block;margin:0;padding:8px 0 5px}.add-marker{text-decoration:none}
|
admin/class-wordpress-google-maps-admin.php
CHANGED
@@ -69,23 +69,42 @@ class Google_Maps_Builder_Admin {
|
|
69 |
add_action( 'cmb_render_search_options', array( $this, 'cmb_render_search_options' ), 10, 2 );
|
70 |
add_action( 'cmb_render_width_height', array( $this, 'cmb_render_width_height' ), 10, 2 );
|
71 |
add_action( 'cmb_render_lat_lng', array( $this, 'cmb_render_lat_lng' ), 10, 2 );
|
72 |
-
|
73 |
|
74 |
|
75 |
}
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
public function get_default_map_options() {
|
79 |
|
80 |
$width_height = gmb_get_option( 'gmb_width_height' );
|
81 |
-
// $lat_lng = gmb_get_option( 'gmb_lat_lng' );
|
82 |
|
83 |
-
$defaults
|
84 |
'width' => ( isset( $width_height['width'] ) ) ? $width_height['width'] : '100',
|
85 |
'width_unit' => ( isset( $width_height['map_width_unit'] ) ) ? $width_height['map_width_unit'] : '%',
|
86 |
'height' => ( isset( $width_height['height'] ) ) ? $width_height['height'] : '600',
|
87 |
-
// 'latitude' => ( isset( $lat_lng['latitude'] ) ) ? $lat_lng['latitude'] : '600',
|
88 |
-
// 'longitude' => ( isset( $lat_lng['longitude'] ) ) ? $lat_lng['longitude'] : '600',
|
89 |
);
|
90 |
|
91 |
return $defaults;
|
@@ -161,8 +180,8 @@ class Google_Maps_Builder_Admin {
|
|
161 |
$maps_data = array(
|
162 |
'api_key' => $api_key,
|
163 |
'geolocate_setting' => isset( $geolocate['geolocate_map'] ) ? $geolocate['geolocate_map'] : 'yes',
|
164 |
-
'default_lat'
|
165 |
-
'default_lng'
|
166 |
'plugin_url' => GMB_PLUGIN_URL,
|
167 |
'snazzy' => json_encode( $snazzy )
|
168 |
);
|
@@ -176,8 +195,6 @@ class Google_Maps_Builder_Admin {
|
|
176 |
}
|
177 |
|
178 |
|
179 |
-
|
180 |
-
|
181 |
/**
|
182 |
* Register our setting to WP
|
183 |
* @since 1.0.0
|
@@ -244,7 +261,7 @@ class Google_Maps_Builder_Admin {
|
|
244 |
array(
|
245 |
'id' => $prefix . 'markers_group',
|
246 |
'type' => 'group',
|
247 |
-
'description' => __('Generatemap m marke. You may update marker data here in bulk ps', $this->plugin_slug ),
|
248 |
'options' => array(
|
249 |
'add_button' => __( 'Add Another Marker', $this->plugin_slug ),
|
250 |
'remove_button' => __( 'Remove Marker', $this->plugin_slug ),
|
69 |
add_action( 'cmb_render_search_options', array( $this, 'cmb_render_search_options' ), 10, 2 );
|
70 |
add_action( 'cmb_render_width_height', array( $this, 'cmb_render_width_height' ), 10, 2 );
|
71 |
add_action( 'cmb_render_lat_lng', array( $this, 'cmb_render_lat_lng' ), 10, 2 );
|
72 |
+
add_action( 'post_submitbox_misc_actions', array( $this, 'gmb_add_shortcode_to_publish_metabox' ) );
|
73 |
|
74 |
|
75 |
}
|
76 |
|
77 |
+
/**
|
78 |
+
*
|
79 |
+
* Add Shortcode to Publish Metabox
|
80 |
+
*
|
81 |
+
*/
|
82 |
+
public function gmb_add_shortcode_to_publish_metabox() {
|
83 |
+
|
84 |
+
global $post;
|
85 |
+
//Shortcode column with select all input
|
86 |
+
$shortcode = htmlentities( '[google_maps id="' . $post->ID . '"]' );
|
87 |
+
echo '<div class="shortcode-wrap box-sizing"><label>' . __('Map Shortcode:', $this->plugin_slug) . '</label><input onClick="this.setSelectionRange(0, this.value.length)" type="text" class="shortcode-input" readonly value="' . $shortcode . '"></div>';
|
88 |
|
89 |
+
}
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Get Default Map Options
|
93 |
+
*
|
94 |
+
* Helper function that returns default map options from settings
|
95 |
+
* @return array
|
96 |
+
*/
|
97 |
public function get_default_map_options() {
|
98 |
|
99 |
$width_height = gmb_get_option( 'gmb_width_height' );
|
100 |
+
// $lat_lng = gmb_get_option( 'gmb_lat_lng' );
|
101 |
|
102 |
+
$defaults = array(
|
103 |
'width' => ( isset( $width_height['width'] ) ) ? $width_height['width'] : '100',
|
104 |
'width_unit' => ( isset( $width_height['map_width_unit'] ) ) ? $width_height['map_width_unit'] : '%',
|
105 |
'height' => ( isset( $width_height['height'] ) ) ? $width_height['height'] : '600',
|
106 |
+
// 'latitude' => ( isset( $lat_lng['latitude'] ) ) ? $lat_lng['latitude'] : '600',
|
107 |
+
// 'longitude' => ( isset( $lat_lng['longitude'] ) ) ? $lat_lng['longitude'] : '600',
|
108 |
);
|
109 |
|
110 |
return $defaults;
|
180 |
$maps_data = array(
|
181 |
'api_key' => $api_key,
|
182 |
'geolocate_setting' => isset( $geolocate['geolocate_map'] ) ? $geolocate['geolocate_map'] : 'yes',
|
183 |
+
'default_lat' => isset( $geolocate['latitude'] ) ? $geolocate['latitude'] : '32.715738',
|
184 |
+
'default_lng' => isset( $geolocate['longitude'] ) ? $geolocate['longitude'] : '-117.16108380000003',
|
185 |
'plugin_url' => GMB_PLUGIN_URL,
|
186 |
'snazzy' => json_encode( $snazzy )
|
187 |
);
|
195 |
}
|
196 |
|
197 |
|
|
|
|
|
198 |
/**
|
199 |
* Register our setting to WP
|
200 |
* @since 1.0.0
|
261 |
array(
|
262 |
'id' => $prefix . 'markers_group',
|
263 |
'type' => 'group',
|
264 |
+
'description' => __( 'Generatemap m marke. You may update marker data here in bulk ps', $this->plugin_slug ),
|
265 |
'options' => array(
|
266 |
'add_button' => __( 'Add Another Marker', $this->plugin_slug ),
|
267 |
'remove_button' => __( 'Remove Marker', $this->plugin_slug ),
|
admin/views/tab-map-options.php
CHANGED
@@ -18,9 +18,6 @@
|
|
18 |
|
19 |
<h3><?php _e('Default Map Settings', $this->plugin_slug); ?></h3>
|
20 |
<p><?php _e('The following settings change the default map options that display when created a new map. <strong>Many more options coming soon!</strong>', $this->plugin_slug); ?></p>
|
21 |
-
<?php
|
22 |
-
|
23 |
-
?>
|
24 |
<?php cmb_metabox_form( $this->map_option_fields(), self::$key ); ?>
|
25 |
</div>
|
26 |
|
18 |
|
19 |
<h3><?php _e('Default Map Settings', $this->plugin_slug); ?></h3>
|
20 |
<p><?php _e('The following settings change the default map options that display when created a new map. <strong>Many more options coming soon!</strong>', $this->plugin_slug); ?></p>
|
|
|
|
|
|
|
21 |
<?php cmb_metabox_form( $this->map_option_fields(), self::$key ); ?>
|
22 |
</div>
|
23 |
|
google-maps-builder.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* Plugin Name: Google Maps Builder
|
13 |
* Plugin URI: http://wordimpress.com/
|
14 |
* Description: Create stylish and powerful Google Maps quickly and easily.
|
15 |
-
* Version: 1.0.
|
16 |
* Author: dlocc, wordimpress
|
17 |
* Author URI: http://wordimpress.com/
|
18 |
* Text Domain: google-maps-builder
|
12 |
* Plugin Name: Google Maps Builder
|
13 |
* Plugin URI: http://wordimpress.com/
|
14 |
* Description: Create stylish and powerful Google Maps quickly and easily.
|
15 |
+
* Version: 1.0.1
|
16 |
* Author: dlocc, wordimpress
|
17 |
* Author URI: http://wordimpress.com/
|
18 |
* Text Domain: google-maps-builder
|
public/class-wordpress-google-maps-engine.php
CHANGED
@@ -208,8 +208,7 @@ class Google_Maps_Builder_Engine {
|
|
208 |
*
|
209 |
* @return object A single instance of this class.
|
210 |
*/
|
211 |
-
public
|
212 |
-
static function get_instance() {
|
213 |
|
214 |
// If the single instance hasn't been set, set it now.
|
215 |
if ( null == self::$instance ) {
|
208 |
*
|
209 |
* @return object A single instance of this class.
|
210 |
*/
|
211 |
+
public static function get_instance() {
|
|
|
212 |
|
213 |
// If the single instance hasn't been set, set it now.
|
214 |
if ( null == self::$instance ) {
|
public/class-wordpress-google-maps.php
CHANGED
@@ -256,7 +256,7 @@ class Google_Maps_Builder {
|
|
256 |
* WPMU is disabled or plugin is
|
257 |
* activated on an individual blog.
|
258 |
*/
|
259 |
-
public function activate( $network_wide ) {
|
260 |
|
261 |
//Remove Welcome Message Meta so User Sees it Again
|
262 |
global $current_user;
|
256 |
* WPMU is disabled or plugin is
|
257 |
* activated on an individual blog.
|
258 |
*/
|
259 |
+
public static function activate( $network_wide ) {
|
260 |
|
261 |
//Remove Welcome Message Meta so User Sees it Again
|
262 |
global $current_user;
|