MapPress Easy Google Maps - Version 2.44.2

Version Description

Download this release

Release Info

Developer chrisvrichardson
Plugin Icon 128x128 MapPress Easy Google Maps
Version 2.44.2
Comparing to
See all releases

Code changes from version 2.44.1 to 2.44.2

css/mappress.css CHANGED
@@ -142,7 +142,7 @@
142
.mapp-iw .mapp-links {
143
clear: both; /* Clear any floats from images in body */
144
white-space: nowrap; /* Don't let links split in small infowindows */
145
- margin: 4px 0 0 0 !important;
146
padding-top: 4px !important;
147
border-top: 1px solid lightgray ;
148
}
@@ -223,9 +223,9 @@
223
}
224
225
.mapp-poi-list table {
226
- margin-top: 10px ;
227
width: 100% ;
228
- line-height: normal !important; /* 2012 sets to 2 */
229
border-collapse: collapse ;
230
table-layout: auto; /* 2015 */
231
}
142
.mapp-iw .mapp-links {
143
clear: both; /* Clear any floats from images in body */
144
white-space: nowrap; /* Don't let links split in small infowindows */
145
+ margin: 0 !important; /* Margin causes scrollbars */
146
padding-top: 4px !important;
147
border-top: 1px solid lightgray ;
148
}
223
}
224
225
.mapp-poi-list table {
226
+ margin: 0 !important; /* 2012 */
227
width: 100% ;
228
+ line-height: normal !important; /* 2012 */
229
border-collapse: collapse ;
230
table-layout: auto; /* 2015 */
231
}
js/mappress_editor.min.js CHANGED
@@ -1 +1 @@
1
- var mapp=window.mapp||{};mapp.Media=function(){function u(i){n=i;jQuery("#mapp_m_editor").empty();jQuery("#mapp_m_editor").append(r.clone());var u=n.getMapid();u?jQuery("#mapp_m_mapid").text(u):jQuery("#mapp_m_mapid").text("");jQuery("#mapp_m_title").val(n.getTitle());jQuery("#mapp_m_width").val(n.getWidth());jQuery("#mapp_m_height").val(n.getHeight());jQuery("#mapp_m_edit_panel").show();jQuery("#mapp_m_list_panel").hide();t=new mapp.Editor(n)}function f(){t.close();n=null;t=null;jQuery("#mapp_m_edit_panel").hide();jQuery("#mapp_m_list_panel").show()}function o(){mapp.Map.ajaxCreate("mapp_edit",i,function(n){u(n)})}function s(n){mapp.Map.ajaxGet(n,"mapp_edit",i,function(n){u(n)})}function h(n){var t='[mappress mapid="'+n+'"]';send_to_editor(t)}function e(){if(n){var t=jQuery.trim(jQuery("#mapp_m_title").val());t=t!=""?t:mappl10n.untitled;n.setTitle(t);n.ajaxSave(function(n){n.list&&jQuery("#mapp_m_maplist").html(n.list);f()})}}function c(n){confirm(mappl10n.delete_map_prompt)&&(jQuery("#mapp_m_maplist tr[data-mapid='"+n+"']").remove(),mapp.Map.ajaxDelete(n))}var t,n,r,l=this,i;r=jQuery("#mapp_m_editor").contents().detach();i={bicycling:!1,directions:"none",editable:!0,initialOpenInfo:!1,iwDisableAutoPan:!1,iwType:"ib",mapTypeControl:!0,mapTypeControlStyle:2,mapTypeIds:null,navigationControlOptions:{style:0},overviewMapControl:!1,overviewMapControlOptions:{opened:!1},streetViewControl:!1,traffic:!1,transit:!1};jQuery("#mapp_m_list_panel").show();jQuery("#mapp_m_add_map").click(function(){return o(),!1});jQuery("#mapp_m_maplist").on("click","tr",function(n){var t=jQuery(this).attr("data-mapid");return jQuery(n.target).hasClass("mapp-maplist-edit")?(s(t),!1):jQuery(n.target).hasClass("mapp-maplist-delete")?(c(t),!1):jQuery(n.target).hasClass("mapp-maplist-insert")?(h(t),!1):void 0});jQuery(".mapp-m-size").click(function(){var n=jQuery(this).data("width"),i=jQuery(this).data("height");return jQuery("#mapp_m_width").val(n),jQuery("#mapp_m_height").val(i),t.resize(n,i),!1});jQuery("#mapp_m_width, #mapp_m_height").change(function(){var n=jQuery("#mapp_m_width").val(),i=jQuery("#mapp_m_height").val();return t.resize(n,i),!1});jQuery("#publish, #post-preview").click(function(){e()});jQuery("#mapp_m_save").click(function(){return e(),!1});jQuery("#mapp_m_title").keydown(function(n){if(n.which==13)return n.preventDefault(),jQuery("#mapp_m_save").click(),!1});jQuery("#mapp_m_cancel").click(function(){return f(),!1});jQuery("#mapp_m_insert").click(function(){var t=n.getMapid(),i='[mappress mapid="'+n.getMapid()+'"]';return t?send_to_editor(i):alert(mappl10n.save_first),!1});this.getMap=function(){return n}};mapp.Editor=function(n){function c(){o=jQuery("#mapp_e_infobox").detach();t=n;t.display();this.resize(t.getWidth(),t.getHeight());i();t.getGeocoder().autocompleteField("#mapp_e_saddr","#mapp_e_saddr_err","#mapp_e_search","#mapp_e_myloc",v);google.maps.event.addListener(t,"poicontent",l);google.maps.event.addListener(t,"poidomready",a);jQuery("#mapp_e_recenter").click(function(){return t.closeInfoWindow(),t.autoCenter(!0),!1});google.maps.event.addListener(t.getMap(),"click",function(n){jQuery("#mapp_e_latlng").text(n.latLng.toUrlValue())})}function i(){for(var r=t.getPois(),u="<table>",n=0;n<r.length;n++){var f=r[n].title.replace(/\'/g,"&rsquo;"),e=mapp.Icons.getUrl(r[n].iconid),o=r[n].address;u+="<tr id='"+n+"'><td><img class='mapp-e-icon' src='"+e+"'><\/td><td style='width:100%'><a href='#' title='"+o+"'><b>"+f+"<\/b><\/a><div class='mapp-e-actions'><a href='#' class='mapp-e-poi-list-zoom' data-idx='"+n+"'>"+mappl10n.zoom+"<\/a> | <a href='#' class='mapp-e-poi-list-delete' data-idx='"+n+"'>"+mappl10n.del+"<\/a><\/div><\/td><\/tr>"}u+="<\/table>";jQuery("#mapp_e_poi_list").html(u);jQuery("#mapp_e_poi_list tbody").sortable({axis:"y",placeholder:"mapp-e-sortable-placeholder",forcePlaceholderSize:!0,delay:200,update:function(){var n=jQuery("#mapp_e_poi_list tbody").sortable("toArray");t.sortPois(n);i()}});jQuery("#mapp_e_poi_list tr").click(function(n){var r=jQuery(this).attr("id"),i=t.getPoi(r);return jQuery(n.target).hasClass("mapp-e-poi-list-zoom")?i.zoomIn():jQuery(n.target).hasClass("mapp-e-poi-list-delete")?k(i):t.openPoi(i),!1})}function l(n,t){var i=jQuery(o).clone();jQuery("#mapp_e_poi_title",i).val(n.title);jQuery("#mapp_e_poi_body",i).val(n.body);jQuery("#mapp_e_poi_iconid",i).val(n.iconid);n.type=="kml"&&(jQuery("#mapp_e_poi_kml_fields",i).show(),jQuery("#mapp_e_poi_kml_url",i).val(n.overlay.getUrl()));t.content=i}function a(n){var r={title:n.title,body:n.body,iconid:n.iconid,colors:n.getColors()};w();jQuery("#mapp_e_poi_title").focus();google.maps.event.addListenerOnce(t.getInfoWindow(),"closeclick",function(){n.title=jQuery("#mapp_e_poi_title").val();n.body=jQuery("#mapp_e_poi_body").val();i()});jQuery("#mapp_e_save_poi").click(function(n){t.closeInfoWindow();n.preventDefault()});jQuery("#mapp_e_cancel_poi").click(function(u){t.closeInfoWindow();n.title=r.title;n.body=r.body;n.iconid=r.iconid;n.setIcon(r.iconid);n.setColors(r.colors);i();u.preventDefault()})}function v(n){if(n){if(n.geometry){var t=mapp.Geocoder.parseAddress(n.formatted_address),i=n.name?n.name:t.firstLine,u=n.name?t.firstLine+", "+t.secondLine:t.secondLine,e=new mapp.Poi({address:n.formatted_address,body:u,iconid:f,overlay:new google.maps.Marker({position:n.geometry.location}),title:i,type:null,viewport:n.geometry.viewport?n.geometry.viewport:null});r(e,!0);return}if(n instanceof google.maps.LatLng)return p(n);if(typeof n=="string"&&n.substring(0,4)=="http")return y(n);alert("Internal error, unable to add location")}}function y(n){var t=new mapp.Poi({iconid:f,overlay:new google.maps.KmlLayer(n,{suppressInfoWindows:!0}),title:"KML",type:"kml"});google.maps.event.addListener(t.overlay,"status_changed",function(){var r=t.overlay.getStatus(),n;r=="OK"?(n=t.overlay.getMetadata(),t.title=n.name,t.body=n.description,t.viewport=t.overlay.getDefaultViewport(),i()):alert(mappl10n.kml_error+":"+r)});r(t,!0)}function p(n){poi=new mapp.Poi({body:"",iconid:f,overlay:new google.maps.Marker({position:n}),title:n.toUrlValue(4)});r(poi,!0)}function r(n,r){t.closeInfoWindow();u&&u.setDrawingMode(null);t.insertPoi(n);r&&n.center(!0);i()}function w(){typeof tinyMCE!="undefined"&&typeof tinyMCE.init!="undefined"&&(b(),e&&s(),jQuery("#mapp_e_visual").click(function(){s();e=!0}),jQuery("#mapp_e_html").click(function(){h();e=!1}),google.maps.event.addListenerOnce(t.getInfoWindow(),"closeclick",function(){tinyMCE.get("mapp_e_poi_body")&&(tinyMCE.get("mapp_e_poi_body").save(),h())}))}function b(){var i="en",t,n;typeof tinyMCEPreInit!="undefined"&&typeof window.tinyMCEPreInit.mceInit!="undefined"&&typeof window.tinyMCEPreInit.mceInit.content!="undefined"&&(t=window.tinyMCEPreInit.mceInit.content,i=typeof t.language!="undefined"?t.language:"en");n={mode:"none",height:"175px",convert_urls:!1,language:i,menubar:!1,plugins:"wordpress,paste,wplink,textcolor,image",relative_urls:!1,remove_script_host:!1,statusbar:!1,theme:"modern",toolbar1:"formatselect,forecolor,bold,italic,alignleft,aligncenter,alignright,link,unlink,image",toolbar2:"",toolbar3:"",toolbar4:""};tinyMCE.majorVersion<"4"&&(oldOpts={plugins:"paste",skin:"wp_theme",theme:"advanced",theme_advanced_toolbar_location:"top",theme_advanced_buttons1:"formatselect, forecolor,|,bold,italic,|,justifyleft,justifycenter,justifyright,|,link,unlink,|,image,separator,undo,redo",theme_advanced_buttons2:"",theme_advanced_buttons3:""},n=jQuery.extend(n,oldOpts));tinyMCE.init(n)}function s(){tinyMCE.majorVersion>="4"?tinyMCE.execCommand("mceAddEditor",!1,"mapp_e_poi_body"):tinyMCE.execCommand("mceAddControl",!1,"mapp_e_poi_body")}function h(){tinyMCE.majorVersion>="4"?tinyMCE.execCommand("mceRemoveEditor",!1,"mapp_e_poi_body"):tinyMCE.execCommand("mceRemoveControl",!1,"mapp_e_poi_body")}function k(n){return t.closeInfoWindow(),confirm(mappl10n.delete_prompt)?(t.removePoi(n),i(),!0):!1}var u,o,f=null,e=!0,t=n;this.close=function(){t.closeInfoWindow()};this.resize=function(n,i){t.resize(n,i);t.closeInfoWindow();var r=jQuery("#mapp_e_top_toolbar").outerHeight(),u=jQuery("#mapp_edit").outerHeight();jQuery("#mapp_e_poi_list").height(r+u)};c.apply(this)}
1
+ var mapp=window.mapp||{};mapp.Media=function(){function u(i){n=i;jQuery("#mapp_m_editor").empty();jQuery("#mapp_m_editor").append(r.clone());var u=n.getMapid();u?jQuery("#mapp_m_mapid").text(u):jQuery("#mapp_m_mapid").text("");jQuery("#mapp_m_title").val(n.getTitle());jQuery("#mapp_m_width").val(n.getWidth());jQuery("#mapp_m_height").val(n.getHeight());jQuery("#mapp_m_edit_panel").show();jQuery("#mapp_m_list_panel").hide();t=new mapp.Editor(n)}function f(){t.close();n=null;t=null;jQuery("#mapp_m_edit_panel").hide();jQuery("#mapp_m_list_panel").show()}function o(){mapp.Map.ajaxCreate("mapp_edit",i,function(n){u(n)})}function s(n){mapp.Map.ajaxGet(n,"mapp_edit",i,function(n){u(n)})}function h(n){var t='[mappress mapid="'+n+'"]';send_to_editor(t)}function e(){if(n){var t=jQuery.trim(jQuery("#mapp_m_title").val());t=t!=""?t:mappl10n.untitled;n.setTitle(t);n.ajaxSave(function(n){n.list&&jQuery("#mapp_m_maplist").html(n.list);f()})}}function c(n){confirm(mappl10n.delete_map_prompt)&&(jQuery("#mapp_m_maplist tr[data-mapid='"+n+"']").remove(),mapp.Map.ajaxDelete(n))}var t,n,r,l=this,i;r=jQuery("#mapp_m_editor").contents().detach();i={bicycling:!1,directions:"none",editable:!0,initialOpenInfo:!1,iwDisableAutoPan:!1,iwType:"ib",mapTypeControl:!0,mapTypeControlStyle:2,mapTypeIds:null,navigationControlOptions:{style:0},overviewMapControl:!1,overviewMapControlOptions:{opened:!1},streetViewControl:!1,traffic:!1,transit:!1};jQuery("#mapp_m_list_panel").show();jQuery("#mapp_m_add_map").click(function(){return o(),!1});jQuery("#mapp_m_maplist").on("click","tr",function(n){var t=jQuery(this).attr("data-mapid");return jQuery(n.target).hasClass("mapp-maplist-edit")?(s(t),!1):jQuery(n.target).hasClass("mapp-maplist-delete")?(c(t),!1):jQuery(n.target).hasClass("mapp-maplist-insert")?(h(t),!1):void 0});jQuery(".mapp-m-size").click(function(){var n=jQuery(this).data("width"),i=jQuery(this).data("height");return jQuery("#mapp_m_width").val(n),jQuery("#mapp_m_height").val(i),t.resize(n,i),!1});jQuery("#mapp_m_width, #mapp_m_height").change(function(){var n=jQuery("#mapp_m_width").val(),i=jQuery("#mapp_m_height").val();return t.resize(n,i),!1});jQuery("#publish, #post-preview").click(function(){e()});jQuery("#mapp_m_save").click(function(){return e(),!1});jQuery("#mapp_m_title").keydown(function(n){if(n.which==13)return n.preventDefault(),jQuery("#mapp_m_save").click(),!1});jQuery("#mapp_m_cancel").click(function(){return f(),!1});jQuery("#mapp_m_insert").click(function(){var t=n.getMapid(),i='[mappress mapid="'+n.getMapid()+'"]';return t?send_to_editor(i):alert(mappl10n.save_first),!1});this.getMap=function(){return n}};mapp.Editor=function(n){function c(){o=jQuery("#mapp_e_infobox").detach();t=n;t.display();this.resize(t.getWidth(),t.getHeight());i();t.getGeocoder().autocompleteField("#mapp_e_saddr","#mapp_e_saddr_err","#mapp_e_search","#mapp_e_myloc",v);google.maps.event.addListener(t,"poicontent",l);google.maps.event.addListener(t,"poidomready",a);jQuery("#mapp_e_recenter").click(function(){return t.closeInfoWindow(),t.autoCenter(!0),!1});google.maps.event.addListener(t.getMap(),"click",function(n){jQuery("#mapp_e_latlng").text(n.latLng.toUrlValue())})}function i(){for(var r=t.getPois(),u="<table>",n=0;n<r.length;n++){var f=r[n].title.replace(/\'/g,"&rsquo;"),e=mapp.Icons.getUrl(r[n].iconid),o=r[n].address;u+="<tr id='"+n+"'><td><img class='mapp-e-icon' src='"+e+"'><\/td><td style='width:100%'><a href='#' title='"+o+"'><b>"+f+"<\/b><\/a><div class='mapp-e-actions'><a href='#' class='mapp-e-poi-list-zoom' data-idx='"+n+"'>"+mappl10n.zoom+"<\/a> | <a href='#' class='mapp-e-poi-list-delete' data-idx='"+n+"'>"+mappl10n.del+"<\/a><\/div><\/td><\/tr>"}u+="<\/table>";jQuery("#mapp_e_poi_list").html(u);jQuery("#mapp_e_poi_list tbody").sortable({axis:"y",placeholder:"mapp-e-sortable-placeholder",forcePlaceholderSize:!0,delay:200,update:function(){var n=jQuery("#mapp_e_poi_list tbody").sortable("toArray");t.sortPois(n);i()}});jQuery("#mapp_e_poi_list tr").click(function(n){var r=jQuery(this).attr("id"),i=t.getPoi(r);return jQuery(n.target).hasClass("mapp-e-poi-list-zoom")?i.zoomIn():jQuery(n.target).hasClass("mapp-e-poi-list-delete")?k(i):t.openPoi(i),!1})}function l(n,t){var i=jQuery(o).clone();jQuery("#mapp_e_poi_title",i).val(n.title);jQuery("#mapp_e_poi_body",i).val(n.body);jQuery("#mapp_e_poi_iconid",i).val(n.iconid);n.type=="kml"&&(jQuery("#mapp_e_poi_kml_fields",i).show(),jQuery("#mapp_e_poi_kml_url",i).val(n.overlay.getUrl()));t.content=i}function a(n){var r={title:n.title,body:n.body,iconid:n.iconid,colors:n.getColors()};w();jQuery("#mapp_e_poi_title").focus();google.maps.event.addListenerOnce(t.getInfoWindow(),"closeclick",function(){n.title=jQuery("#mapp_e_poi_title").val();n.body=jQuery("#mapp_e_poi_body").val();i()});jQuery("#mapp_e_save_poi").click(function(n){t.closeInfoWindow();n.preventDefault()});jQuery("#mapp_e_cancel_poi").click(function(u){t.closeInfoWindow();n.title=r.title;n.body=r.body;n.iconid=r.iconid;n.setIcon(r.iconid);n.setColors(r.colors);i();u.preventDefault()})}function v(n){if(n){if(n.geometry){var t=mapp.Geocoder.parseAddress(n.formatted_address),i=n.name?n.name:t.firstLine,u=n.name?t.firstLine+", "+t.secondLine:t.secondLine,e=new mapp.Poi({address:n.formatted_address,body:u,iconid:f,overlay:new google.maps.Marker({position:n.geometry.location}),title:i,type:null,viewport:n.geometry.viewport?n.geometry.viewport:null});r(e,!0);return}if(n instanceof google.maps.LatLng)return p(n);if(typeof n=="string"&&n.substring(0,4)=="http")return y(n);alert("Internal error, unable to add location")}}function y(n){var t=new mapp.Poi({iconid:f,overlay:new google.maps.KmlLayer(n,{suppressInfoWindows:!0}),title:"KML",type:"kml"});google.maps.event.addListener(t.overlay,"status_changed",function(){var r=t.overlay.getStatus(),n;r=="OK"?(n=t.overlay.getMetadata(),t.title=n.name,t.body=n.description,t.viewport=t.overlay.getDefaultViewport(),i()):alert(mappl10n.kml_error+":"+r)});r(t,!0)}function p(n){poi=new mapp.Poi({body:"",iconid:f,overlay:new google.maps.Marker({position:n}),title:n.toUrlValue(6)});r(poi,!0)}function r(n,r){t.closeInfoWindow();u&&u.setDrawingMode(null);t.insertPoi(n);r&&n.center(!0);i()}function w(){typeof tinyMCE!="undefined"&&typeof tinyMCE.init!="undefined"&&(b(),e&&s(),jQuery("#mapp_e_visual").click(function(){s();e=!0}),jQuery("#mapp_e_html").click(function(){h();e=!1}),google.maps.event.addListenerOnce(t.getInfoWindow(),"closeclick",function(){tinyMCE.get("mapp_e_poi_body")&&(tinyMCE.get("mapp_e_poi_body").save(),h())}))}function b(){var i="en",t,n;typeof tinyMCEPreInit!="undefined"&&typeof window.tinyMCEPreInit.mceInit!="undefined"&&typeof window.tinyMCEPreInit.mceInit.content!="undefined"&&(t=window.tinyMCEPreInit.mceInit.content,i=typeof t.language!="undefined"?t.language:"en");n={mode:"none",height:"175px",convert_urls:!1,language:i,menubar:!1,plugins:"wordpress,paste,wplink,textcolor,image",relative_urls:!1,remove_script_host:!1,statusbar:!1,theme:"modern",toolbar1:"formatselect,forecolor,bold,italic,alignleft,aligncenter,alignright,link,unlink,image",toolbar2:"",toolbar3:"",toolbar4:""};tinyMCE.majorVersion<"4"&&(oldOpts={plugins:"paste",skin:"wp_theme",theme:"advanced",theme_advanced_toolbar_location:"top",theme_advanced_buttons1:"formatselect, forecolor,|,bold,italic,|,justifyleft,justifycenter,justifyright,|,link,unlink,|,image,separator,undo,redo",theme_advanced_buttons2:"",theme_advanced_buttons3:""},n=jQuery.extend(n,oldOpts));tinyMCE.init(n)}function s(){tinyMCE.majorVersion>="4"?tinyMCE.execCommand("mceAddEditor",!1,"mapp_e_poi_body"):tinyMCE.execCommand("mceAddControl",!1,"mapp_e_poi_body")}function h(){tinyMCE.majorVersion>="4"?tinyMCE.execCommand("mceRemoveEditor",!1,"mapp_e_poi_body"):tinyMCE.execCommand("mceRemoveControl",!1,"mapp_e_poi_body")}function k(n){return t.closeInfoWindow(),confirm(mappl10n.delete_prompt)?(t.removePoi(n),i(),!0):!1}var u,o,f=null,e=!0,t=n;this.close=function(){t.closeInfoWindow()};this.resize=function(n,i){t.resize(n,i);t.closeInfoWindow();var r=jQuery("#mapp_e_top_toolbar").outerHeight(),u=jQuery("#mapp_edit").outerHeight();jQuery("#mapp_e_poi_list").height(r+u)};c.apply(this)}
languages/mappress-google-maps-for-wordpress.pot CHANGED
@@ -1,14 +1,14 @@
1
- # Copyright (C) 2016 MapPress Easy Google Maps
2
# This file is distributed under the same license as the MapPress Easy Google Maps package.
3
msgid ""
4
msgstr ""
5
- "Project-Id-Version: MapPress Easy Google Maps 2.44.1\n"
6
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
- "POT-Creation-Date: 2016-11-06 04:36:52+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=UTF-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
@@ -20,7 +20,7 @@ msgstr ""
20
msgid "My location"
21
msgstr ""
22
23
- #: forms/map_editor.php:25 mappress_map.php:529 mappress_settings.php:412
24
msgid "Center map"
25
msgstr ""
26
@@ -57,7 +57,7 @@ msgid "Save"
57
msgstr ""
58
59
#: forms/map_editor_infobox.php:39 forms/map_media.php:47
60
- #: mappress_controls.php:205 pro/mappress_icons.php:53
61
msgid "Cancel"
62
msgstr ""
63
@@ -85,137 +85,137 @@ msgstr ""
85
msgid "Insert into post"
86
msgstr ""
87
88
- #: mappress.php:120
89
msgid "Version"
90
msgstr ""
91
92
- #: mappress.php:128
93
msgid "Documentation"
94
msgstr ""
95
96
- #: mappress.php:129
97
msgid "Support"
98
msgstr ""
99
100
- #: mappress.php:132
101
msgid "Upgrade to MapPress Pro"
102
msgstr ""
103
104
- #: mappress.php:342
105
msgid "MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this."
106
msgstr ""
107
108
- #: mappress.php:347
109
msgid "WARNING: MapPress now requires WordPress 3.2 or higher. Please upgrade before using MapPress."
110
msgstr ""
111
112
- #: mappress.php:352
113
msgid "WARNING: MapPress is not compfatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress."
114
msgstr ""
115
116
- #: mappress.php:359
117
msgid "A Google Maps API key is required"
118
msgstr ""
119
120
- #: mappress.php:359
121
msgid "Please update your"
122
msgstr ""
123
124
- #: mappress.php:359
125
msgid "MapPress Settings"
126
msgstr ""
127
128
- #: mappress.php:527 templates/map_directions.php:6
129
msgid "Bicycling"
130
msgstr ""
131
132
- #: mappress.php:528
133
msgid "Bike"
134
msgstr ""
135
136
- #: mappress.php:529
137
msgid "One of the addresses could not be found."
138
msgstr ""
139
140
- #: mappress.php:530
141
msgid "Google cannot return directions between those addresses. There is no route between them or the routing information is not available."
142
msgstr ""
143
144
- #: mappress.php:531
145
msgid "Unknown error, unable to return directions. Status code = "
146
msgstr ""
147
148
- #: mappress.php:532 mappress_poi.php:232 mappress_settings.php:134
149
- #: pro/mappress_widget.php:106
150
msgid "Directions"
151
msgstr ""
152
153
- #: mappress.php:533
154
msgid "Error reading KML file"
155
msgstr ""
156
157
- #: mappress.php:534
158
msgid "Loading..."
159
msgstr ""
160
161
- #: mappress.php:535
162
msgid "No matching address"
163
msgstr ""
164
165
- #: mappress.php:536
166
msgid "Unable to get your location"
167
msgstr ""
168
169
- #: mappress.php:537 mappress_settings.php:337
170
msgid "Traffic"
171
msgstr ""
172
173
- #: mappress.php:538
174
msgid "Transit"
175
msgstr ""
176
177
- #: mappress.php:539 mappress_poi.php:281 mappress_settings.php:332
178
- #: mappress_settings.php:420 pro/mappress_widget.php:122
179
msgid "Zoom"
180
msgstr ""
181
182
- #: mappress.php:544 mappress_controls.php:156
183
msgid "Add"
184
msgstr ""
185
186
- #: mappress.php:545
187
msgid "Click & drag to move"
188
msgstr ""
189
190
- #: mappress.php:546
191
msgid "Click to change"
192
msgstr ""
193
194
- #: mappress.php:547 mappress_controls.php:141 mappress_map.php:492
195
msgid "Delete"
196
msgstr ""
197
198
- #: mappress.php:548
199
msgid "Delete this POI?"
200
msgstr ""
201
202
- #: mappress.php:549
203
msgid "Delete this map?"
204
msgstr ""
205
206
- #: mappress.php:550
207
msgid "Please save the map first"
208
msgstr ""
209
210
- #: mappress.php:551
211
msgid "Shape"
212
msgstr ""
213
214
- #: mappress.php:552
215
msgid "Untitled"
216
msgstr ""
217
218
- #: mappress_controls.php:203
219
msgid "New"
220
msgstr ""
221
@@ -227,418 +227,417 @@ msgstr ""
227
msgid "Edit"
228
msgstr ""
229
230
- #: mappress_map.php:517
231
msgid "Show map"
232
msgstr ""
233
234
- #: mappress_map.php:538 mappress_settings.php:413
235
msgid "Reset map"
236
msgstr ""
237
238
- #: mappress_map.php:547 mappress_settings.php:411
239
msgid "Bigger map"
240
msgstr ""
241
242
- #: mappress_map.php:548
243
msgid "Smaller map"
244
msgstr ""
245
246
- #: mappress_poi.php:197 mappress_settings.php:421
247
msgid "Directions to"
248
msgstr ""
249
250
- #: mappress_poi.php:199 mappress_settings.php:422
251
msgid "Directions from"
252
msgstr ""
253
254
- #: mappress_settings.php:131
255
msgid "Basic Settings"
256
msgstr ""
257
258
- #: mappress_settings.php:132
259
msgid "Post types"
260
msgstr ""
261
262
- #: mappress_settings.php:133
263
msgid "Automatic map display"
264
msgstr ""
265
266
- #: mappress_settings.php:136
267
msgid "Browser API key"
268
msgstr ""
269
270
- #: mappress_settings.php:139
271
msgid "Server API key"
272
msgstr ""
273
274
- #: mappress_settings.php:141
275
msgid "Map Controls"
276
msgstr ""
277
278
- #: mappress_settings.php:142
279
msgid "Draggable"
280
msgstr ""
281
282
- #: mappress_settings.php:143
283
msgid "Keyboard shortcuts"
284
msgstr ""
285
286
- #: mappress_settings.php:144
287
msgid "Scroll wheel zoom"
288
msgstr ""
289
290
- #: mappress_settings.php:145
291
msgid "Map Types"
292
msgstr ""
293
294
- #: mappress_settings.php:146
295
msgid "Map controls"
296
msgstr ""
297
298
- #: mappress_settings.php:148
299
msgid "Map Settings"
300
msgstr ""
301
302
- #: mappress_settings.php:149
303
msgid "Map links"
304
msgstr ""
305
306
- #: mappress_settings.php:150
307
msgid "Map alignment"
308
msgstr ""
309
310
- #: mappress_settings.php:151
311
msgid "Open first POI"
312
msgstr ""
313
314
- #: mappress_settings.php:153
315
msgid "POI Settings"
316
msgstr ""
317
318
- #: mappress_settings.php:154
319
msgid "POI links"
320
msgstr ""
321
322
- #: mappress_settings.php:155
323
msgid "Tooltips"
324
msgstr ""
325
326
- #: mappress_settings.php:156
327
msgid "Default zoom"
328
msgstr ""
329
330
- #: mappress_settings.php:159
331
msgid "Mashups"
332
msgstr ""
333
334
- #: mappress_settings.php:160
335
msgid "Icons"
336
msgstr ""
337
338
- #: mappress_settings.php:161
339
msgid "Styled Maps"
340
msgstr ""
341
342
- #: mappress_settings.php:162
343
msgid "Geocoding"
344
msgstr ""
345
346
- #: mappress_settings.php:165
347
msgid "Localization"
348
msgstr ""
349
350
- #: mappress_settings.php:166
351
msgid "Language"
352
msgstr ""
353
354
- #: mappress_settings.php:167
355
msgid "Country"
356
msgstr ""
357
358
- #: mappress_settings.php:168
359
msgid "Directions server"
360
msgstr ""
361
362
- #: mappress_settings.php:169
363
msgid "Directions units"
364
msgstr ""
365
366
- #: mappress_settings.php:171
367
msgid "Miscellaneous"
368
msgstr ""
369
370
- #: mappress_settings.php:173
371
msgid "Map sizes"
372
msgstr ""
373
374
- #: mappress_settings.php:174
375
msgid "Scripts"
376
msgstr ""
377
378
- #: mappress_settings.php:175
379
msgid "Adaptive display"
380
msgstr ""
381
382
- #: mappress_settings.php:176
383
msgid "CSS"
384
msgstr ""
385
386
- #: mappress_settings.php:230
387
msgid "Use the settings below to automatically create maps from custom fields."
388
msgstr ""
389
390
- #: mappress_settings.php:235
391
msgid "Recenter maps when window is resized"
392
msgstr ""
393
394
- #: mappress_settings.php:240
395
msgid "more info"
396
msgstr ""
397
398
- #: mappress_settings.php:241
399
msgid "Required to display maps"
400
msgstr ""
401
402
- #: mappress_settings.php:245
403
msgid "Output scripts in footer"
404
msgstr ""
405
406
- #: mappress_settings.php:256
407
msgid "country code"
408
msgstr ""
409
410
- #: mappress_settings.php:258
411
msgid "Enter a %s to use when searching (leave blank for USA)"
412
msgstr ""
413
414
- #: mappress_settings.php:265
415
msgid "Enter a google server URL for directions/printing"
416
msgstr ""
417
418
- #: mappress_settings.php:270
419
msgid "(Default)"
420
msgstr ""
421
422
- #: mappress_settings.php:270
423
msgid "Metric (kilometers)"
424
msgstr ""
425
426
- #: mappress_settings.php:270
427
msgid "Imperial (miles)"
428
msgstr ""
429
430
- #: mappress_settings.php:275
431
msgid "Enable map dragging with the mouse"
432
msgstr ""
433
434
- #: mappress_settings.php:279
435
msgid "Enable zoom with the mouse scroll wheel"
436
msgstr ""
437
438
- #: mappress_settings.php:283
439
msgid "Enable keyboard panning and zooming"
440
msgstr ""
441
442
- #: mappress_settings.php:289
443
msgid "language"
444
msgstr ""
445
446
- #: mappress_settings.php:291
447
msgid "Use a specific %s for map controls and geocoding"
448
msgstr ""
449
450
- #: mappress_settings.php:299 mappress_settings.php:305
451
- #: mappress_settings.php:399 mappress_settings.php:449
452
msgid "Default"
453
msgstr ""
454
455
- #: mappress_settings.php:300
456
msgid "Horizontal"
457
msgstr ""
458
459
- #: mappress_settings.php:301
460
msgid "Dropdown"
461
msgstr ""
462
463
- #: mappress_settings.php:306
464
msgid "Small"
465
msgstr ""
466
467
- #: mappress_settings.php:307
468
msgid "Large"
469
msgstr ""
470
471
- #: mappress_settings.php:308
472
msgid "Android"
473
msgstr ""
474
475
- #: mappress_settings.php:319
476
msgid "Open initially"
477
msgstr ""
478
479
- #: mappress_settings.php:321 mappress_settings.php:323
480
- #: mappress_settings.php:325
481
msgid "Checked initially"
482
msgstr ""
483
484
- #: mappress_settings.php:327
485
msgid "Control"
486
msgstr ""
487
488
- #: mappress_settings.php:327
489
msgid "Enable"
490
msgstr ""
491
492
- #: mappress_settings.php:327
493
msgid "Style"
494
msgstr ""
495
496
- #: mappress_settings.php:330
497
msgid "Map types"
498
msgstr ""
499
500
- #: mappress_settings.php:331
501
msgid "Pan"
502
msgstr ""
503
504
- #: mappress_settings.php:333
505
msgid "Street view"
506
msgstr ""
507
508
- #: mappress_settings.php:334
509
msgid "Scale"
510
msgstr ""
511
512
- #: mappress_settings.php:335
513
msgid "Overview map"
514
msgstr ""
515
516
- #: mappress_settings.php:336
517
msgid "Public transit"
518
msgstr ""
519
520
- #: mappress_settings.php:338
521
msgid "Bike routes"
522
msgstr ""
523
524
- #: mappress_settings.php:345
525
msgid "Road map"
526
msgstr ""
527
528
- #: mappress_settings.php:346 pro/mappress_widget.php:140
529
msgid "Satellite"
530
msgstr ""
531
532
- #: mappress_settings.php:347 pro/mappress_widget.php:141
533
msgid "Terrain"
534
msgstr ""
535
536
- #: mappress_settings.php:348 pro/mappress_widget.php:139
537
msgid "Hybrid"
538
msgstr ""
539
540
- #: mappress_settings.php:361 pro/mappress_pro_settings.php:263
541
- #: pro/mappress_widget.php:108
542
msgid "Google"
543
msgstr ""
544
545
- #: mappress_settings.php:362 pro/mappress_widget.php:107
546
msgid "Inline"
547
msgstr ""
548
549
- #: mappress_settings.php:363 pro/mappress_widget.php:109
550
msgid "None"
551
msgstr ""
552
553
- #: mappress_settings.php:370
554
msgid "Automatically open the first POI when a map is displayed"
555
msgstr ""
556
557
- #: mappress_settings.php:375 mappress_settings.php:384
558
msgid "Show control"
559
msgstr ""
560
561
- #: mappress_settings.php:379 mappress_settings.php:388
562
msgid "Enabled by default"
563
msgstr ""
564
565
- #: mappress_settings.php:392
566
msgid "Show POI titles as a \"tooltip\" on mouse-over"
567
msgstr ""
568
569
- #: mappress_settings.php:400 pro/mappress_widget.php:114
570
msgid "Center"
571
msgstr ""
572
573
- #: mappress_settings.php:401
574
msgid "Left"
575
msgstr ""
576
577
- #: mappress_settings.php:402
578
msgid "Right"
579
msgstr ""
580
581
- #: mappress_settings.php:430
582
msgid "Default zoom for POIs entered by lat/lng"
583
msgstr ""
584
585
- #: mappress_settings.php:436
586
msgid "Top of post"
587
msgstr ""
588
589
- #: mappress_settings.php:437
590
msgid "Bottom of post"
591
msgstr ""
592
593
- #: mappress_settings.php:438
594
msgid "No automatic display"
595
msgstr ""
596
597
- #: mappress_settings.php:445
598
msgid "Load %s"
599
msgstr ""
600
601
- #: mappress_settings.php:449
602
msgid "Width"
603
msgstr ""
604
605
- #: mappress_settings.php:449
606
msgid "Height"
607
msgstr ""
608
609
- #: mappress_settings.php:460
610
msgid "Enter sizes in px or %"
611
msgstr ""
612
613
- #: mappress_settings.php:470
614
msgid "Rate it 5 Stars"
615
msgstr ""
616
617
- #: mappress_settings.php:472
618
msgid "%s on WordPress.org"
619
msgstr ""
620
621
- #: mappress_settings.php:473
622
msgid "Thanks for your support!"
623
msgstr ""
624
625
- #: mappress_settings.php:501
626
msgid "Easy Google Maps"
627
msgstr ""
628
629
- #: mappress_settings.php:550
630
msgid "Like this plugin?"
631
msgstr ""
632
633
- #: mappress_settings.php:552
634
msgid "Sample Map"
635
msgstr ""
636
637
- #: mappress_settings.php:571
638
msgid "Save Changes"
639
msgstr ""
640
641
- #: mappress_settings.php:572
642
msgid "Reset Defaults"
643
msgstr ""
644
@@ -654,26 +653,26 @@ msgstr ""
654
msgid "A PRO Version update is available for manual installation: %s"
655
msgstr ""
656
657
- #: pro/mappress_geocoders.php:44
658
- msgid "No results, check that a geocoder is configured"
659
- msgstr ""
660
-
661
- #: pro/mappress_geocoders.php:57
662
msgid "Server API Key is missing - see MapPress Settings"
663
msgstr ""
664
665
- #: pro/mappress_geocoders.php:82
666
- msgid "Invalid status: %s, address: %s"
667
msgstr ""
668
669
- #: pro/mappress_geocoders.php:91 pro/mappress_geocoders.php:156
670
msgid "No results for address: %s"
671
msgstr ""
672
673
- #: pro/mappress_geocoders.php:152
674
msgid "Error: %s %s"
675
msgstr ""
676
677
#: pro/mappress_icons.php:52
678
msgid "Use default icon"
679
msgstr ""
@@ -739,238 +738,230 @@ msgid "Default style"
739
msgstr ""
740
741
#: pro/mappress_pro_settings.php:32
742
- msgid "Geocoder(s)"
743
- msgstr ""
744
-
745
- #: pro/mappress_pro_settings.php:33
746
msgid "Geocoding fields"
747
msgstr ""
748
749
- #: pro/mappress_pro_settings.php:35
750
msgid "Force resize"
751
msgstr ""
752
753
- #: pro/mappress_pro_settings.php:130
754
msgid "Optional - for geocoding only"
755
msgstr ""
756
757
- #: pro/mappress_pro_settings.php:135
758
msgid "Post type"
759
msgstr ""
760
761
- #: pro/mappress_pro_settings.php:152
762
msgid "Key"
763
msgstr ""
764
765
- #: pro/mappress_pro_settings.php:152
766
msgid "Value"
767
msgstr ""
768
769
- #: pro/mappress_pro_settings.php:152 pro/mappress_pro_settings.php:284
770
msgid "Icon"
771
msgstr ""
772
773
- #: pro/mappress_pro_settings.php:157
774
msgid "Show a list of POIs under each map"
775
msgstr ""
776
777
- #: pro/mappress_pro_settings.php:162
778
msgid "Show the POI list as a sortable %s"
779
msgstr ""
780
781
- #: pro/mappress_pro_settings.php:166
782
msgid "POI title"
783
msgstr ""
784
785
- #: pro/mappress_pro_settings.php:166
786
msgid "Post title"
787
msgstr ""
788
789
- #: pro/mappress_pro_settings.php:171
790
msgid "POI body"
791
msgstr ""
792
793
- #: pro/mappress_pro_settings.php:171
794
msgid "Address"
795
msgstr ""
796
797
- #: pro/mappress_pro_settings.php:171
798
msgid "Post excerpt"
799
msgstr ""
800
801
- #: pro/mappress_pro_settings.php:176
802
msgid "Link POI titles to the underlying post"
803
msgstr ""
804
805
- #: pro/mappress_pro_settings.php:180
806
msgid "Open the POI"
807
msgstr ""
808
809
- #: pro/mappress_pro_settings.php:180
810
msgid "Go directly to the post"
811
msgstr ""
812
813
- #: pro/mappress_pro_settings.php:195
814
msgid "Google InfoWindow"
815
msgstr ""
816
817
- #: pro/mappress_pro_settings.php:196
818
msgid "InfoBox"
819
msgstr ""
820
821
- #: pro/mappress_pro_settings.php:202
822
msgid "Show featured image thumbnails in mashup POIs"
823
msgstr ""
824
825
- #: pro/mappress_pro_settings.php:210
826
msgid "Use existing size: "
827
msgstr ""
828
829
- #: pro/mappress_pro_settings.php:213
830
msgid "or resize to (px): "
831
msgstr ""
832
833
- #: pro/mappress_pro_settings.php:227
834
msgid "styled maps"
835
msgstr ""
836
837
- #: pro/mappress_pro_settings.php:228
838
msgid "styled maps wizard"
839
msgstr ""
840
841
- #: pro/mappress_pro_settings.php:230
842
msgid "Enter JSON for %s from Google's %s"
843
msgstr ""
844
845
- #: pro/mappress_pro_settings.php:239
846
msgid "Style name"
847
msgstr ""
848
849
- #: pro/mappress_pro_settings.php:253
850
msgid "No styles have been defined yet"
851
msgstr ""
852
853
- #: pro/mappress_pro_settings.php:264
854
- msgid "Nominatim"
855
- msgstr ""
856
-
857
- #: pro/mappress_pro_settings.php:276
858
msgid "Address Line 1"
859
msgstr ""
860
861
- #: pro/mappress_pro_settings.php:277
862
msgid "Address Line 2"
863
msgstr ""
864
865
- #: pro/mappress_pro_settings.php:278
866
msgid "Address Line 3"
867
msgstr ""
868
869
- #: pro/mappress_pro_settings.php:279
870
msgid "Address Line 4"
871
msgstr ""
872
873
- #: pro/mappress_pro_settings.php:280
874
msgid "Address Line 5"
875
msgstr ""
876
877
- #: pro/mappress_pro_settings.php:281
878
msgid "Address Line 6"
879
msgstr ""
880
881
- #: pro/mappress_pro_settings.php:282
882
msgid "Latitude"
883
msgstr ""
884
885
- #: pro/mappress_pro_settings.php:283
886
msgid "Longitude"
887
msgstr ""
888
889
- #: pro/mappress_pro_settings.php:285
890
msgid "Title"
891
msgstr ""
892
893
- #: pro/mappress_pro_settings.php:286
894
msgid "Body"
895
msgstr ""
896
897
- #: pro/mappress_pro_settings.php:287
898
msgid "Map Zoom"
899
msgstr ""
900
901
- #: pro/mappress_pro_settings.php:290 pro/mappress_widget.php:138
902
msgid "Map"
903
msgstr ""
904
905
- #: pro/mappress_pro_settings.php:290
906
msgid "Custom Field"
907
msgstr ""
908
909
- #: pro/mappress_pro_settings.php:299
910
msgid "Overwrite existing maps when updating"
911
msgstr ""
912
913
- #: pro/mappress_pro_settings.php:307
914
msgid "Permanently resize existing maps"
915
msgstr ""
916
917
- #: pro/mappress_pro_settings.php:309
918
msgid "from %s to %s"
919
msgstr ""
920
921
- #: pro/mappress_pro_settings.php:310
922
msgid "Force Resize"
923
msgstr ""
924
925
- #: pro/mappress_widget.php:76
926
msgid "Widget title"
927
msgstr ""
928
929
- #: pro/mappress_widget.php:81
930
msgid "Map size"
931
msgstr ""
932
933
- #: pro/mappress_widget.php:87
934
msgid "Show"
935
msgstr ""
936
937
- #: pro/mappress_widget.php:88
938
msgid "Current posts"
939
msgstr ""
940
941
- #: pro/mappress_widget.php:89
942
msgid "Hide if empty"
943
msgstr ""
944
945
- #: pro/mappress_widget.php:91
946
msgid "All posts"
947
msgstr ""
948
949
- #: pro/mappress_widget.php:92
950
msgid "Custom query"
951
msgstr ""
952
953
- #: pro/mappress_widget.php:95
954
msgid "Learn about queries"
955
msgstr ""
956
957
- #: pro/mappress_widget.php:100
958
msgid "Show POI list"
959
msgstr ""
960
961
- #: pro/mappress_widget.php:102
962
msgid "Link POIs to posts"
963
msgstr ""
964
965
- #: pro/mappress_widget.php:135
966
msgid "Map type"
967
msgstr ""
968
969
- #: pro/mappress_widget.php:149
970
msgid "Other Settings"
971
msgstr ""
972
973
- #: pro/mappress_widget.php:152
974
msgid "Example: traffic=\"false\" maplinks=\"\""
975
msgstr ""
976
1
+ # Copyright (C) 2017 MapPress Easy Google Maps
2
# This file is distributed under the same license as the MapPress Easy Google Maps package.
3
msgid ""
4
msgstr ""
5
+ "Project-Id-Version: MapPress Easy Google Maps 2.44.2\n"
6
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
+ "POT-Creation-Date: 2017-03-27 18:45:39+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=UTF-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
20
msgid "My location"
21
msgstr ""
22
23
+ #: forms/map_editor.php:25 mappress_map.php:526 mappress_settings.php:407
24
msgid "Center map"
25
msgstr ""
26
57
msgstr ""
58
59
#: forms/map_editor_infobox.php:39 forms/map_media.php:47
60
+ #: mappress_controls.php:201 pro/mappress_icons.php:53
61
msgid "Cancel"
62
msgstr ""
63
85
msgid "Insert into post"
86
msgstr ""
87
88
+ #: mappress.php:119
89
msgid "Version"
90
msgstr ""
91
92
+ #: mappress.php:127
93
msgid "Documentation"
94
msgstr ""
95
96
+ #: mappress.php:128
97
msgid "Support"
98
msgstr ""
99
100
+ #: mappress.php:131
101
msgid "Upgrade to MapPress Pro"
102
msgstr ""
103
104
+ #: mappress.php:341
105
msgid "MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this."
106
msgstr ""
107
108
+ #: mappress.php:346
109
msgid "WARNING: MapPress now requires WordPress 3.2 or higher. Please upgrade before using MapPress."
110
msgstr ""
111
112
+ #: mappress.php:351
113
msgid "WARNING: MapPress is not compfatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress."
114
msgstr ""
115
116
+ #: mappress.php:358
117
msgid "A Google Maps API key is required"
118
msgstr ""
119
120
+ #: mappress.php:358
121
msgid "Please update your"
122
msgstr ""
123
124
+ #: mappress.php:358
125
msgid "MapPress Settings"
126
msgstr ""
127
128
+ #: mappress.php:516 templates/map_directions.php:6
129
msgid "Bicycling"
130
msgstr ""
131
132
+ #: mappress.php:517
133
msgid "Bike"
134
msgstr ""
135
136
+ #: mappress.php:518
137
msgid "One of the addresses could not be found."
138
msgstr ""
139
140
+ #: mappress.php:519
141
msgid "Google cannot return directions between those addresses. There is no route between them or the routing information is not available."
142
msgstr ""
143
144
+ #: mappress.php:520
145
msgid "Unknown error, unable to return directions. Status code = "
146
msgstr ""
147
148
+ #: mappress.php:521 mappress_poi.php:230 mappress_settings.php:133
149
+ #: pro/mappress_widget.php:104
150
msgid "Directions"
151
msgstr ""
152
153
+ #: mappress.php:522
154
msgid "Error reading KML file"
155
msgstr ""
156
157
+ #: mappress.php:523
158
msgid "Loading..."
159
msgstr ""
160
161
+ #: mappress.php:524
162
msgid "No matching address"
163
msgstr ""
164
165
+ #: mappress.php:525
166
msgid "Unable to get your location"
167
msgstr ""
168
169
+ #: mappress.php:526 mappress_settings.php:332
170
msgid "Traffic"
171
msgstr ""
172
173
+ #: mappress.php:527
174
msgid "Transit"
175
msgstr ""
176
177
+ #: mappress.php:528 mappress_poi.php:272 mappress_settings.php:327
178
+ #: mappress_settings.php:415 pro/mappress_widget.php:120
179
msgid "Zoom"
180
msgstr ""
181
182
+ #: mappress.php:533 mappress_controls.php:152
183
msgid "Add"
184
msgstr ""
185
186
+ #: mappress.php:534
187
msgid "Click & drag to move"
188
msgstr ""
189
190
+ #: mappress.php:535
191
msgid "Click to change"
192
msgstr ""
193
194
+ #: mappress.php:536 mappress_controls.php:137 mappress_map.php:492
195
msgid "Delete"
196
msgstr ""
197
198
+ #: mappress.php:537
199
msgid "Delete this POI?"
200
msgstr ""
201
202
+ #: mappress.php:538
203
msgid "Delete this map?"
204
msgstr ""
205
206
+ #: mappress.php:539
207
msgid "Please save the map first"
208
msgstr ""
209
210
+ #: mappress.php:540
211
msgid "Shape"
212
msgstr ""
213
214
+ #: mappress.php:541
215
msgid "Untitled"
216
msgstr ""
217
218
+ #: mappress_controls.php:199
219
msgid "New"
220
msgstr ""
221
227
msgid "Edit"
228
msgstr ""
229
230
+ #: mappress_map.php:516
231
msgid "Show map"
232
msgstr ""
233
234
+ #: mappress_map.php:532 mappress_settings.php:408
235
msgid "Reset map"
236
msgstr ""
237
238
+ #: mappress_map.php:538 mappress_settings.php:406
239
msgid "Bigger map"
240
msgstr ""
241
242
+ #: mappress_map.php:539
243
msgid "Smaller map"
244
msgstr ""
245
246
+ #: mappress_poi.php:196 mappress_settings.php:416
247
msgid "Directions to"
248
msgstr ""
249
250
+ #: mappress_poi.php:198 mappress_settings.php:417
251
msgid "Directions from"
252
msgstr ""
253
254
+ #: mappress_settings.php:130
255
msgid "Basic Settings"
256
msgstr ""
257
258
+ #: mappress_settings.php:131
259
msgid "Post types"
260
msgstr ""
261
262
+ #: mappress_settings.php:132
263
msgid "Automatic map display"
264
msgstr ""
265
266
+ #: mappress_settings.php:135
267
msgid "Browser API key"
268
msgstr ""
269
270
+ #: mappress_settings.php:138
271
msgid "Server API key"
272
msgstr ""
273
274
+ #: mappress_settings.php:140
275
msgid "Map Controls"
276
msgstr ""
277
278
+ #: mappress_settings.php:141
279
msgid "Draggable"
280
msgstr ""
281
282
+ #: mappress_settings.php:142
283
msgid "Keyboard shortcuts"
284
msgstr ""
285
286
+ #: mappress_settings.php:143
287
msgid "Scroll wheel zoom"
288
msgstr ""
289
290
+ #: mappress_settings.php:144
291
msgid "Map Types"
292
msgstr ""
293
294
+ #: mappress_settings.php:145
295
msgid "Map controls"
296
msgstr ""
297
298
+ #: mappress_settings.php:147
299
msgid "Map Settings"
300
msgstr ""
301
302
+ #: mappress_settings.php:148
303
msgid "Map links"
304
msgstr ""
305
306
+ #: mappress_settings.php:149
307
msgid "Map alignment"
308
msgstr ""
309
310
+ #: mappress_settings.php:150
311
msgid "Open first POI"
312
msgstr ""
313
314
+ #: mappress_settings.php:152
315
msgid "POI Settings"
316
msgstr ""
317
318
+ #: mappress_settings.php:153
319
msgid "POI links"
320
msgstr ""
321
322
+ #: mappress_settings.php:154
323
msgid "Tooltips"
324
msgstr ""
325
326
+ #: mappress_settings.php:155
327
msgid "Default zoom"
328
msgstr ""
329
330
+ #: mappress_settings.php:158
331
msgid "Mashups"
332
msgstr ""
333
334
+ #: mappress_settings.php:159
335
msgid "Icons"
336
msgstr ""
337
338
+ #: mappress_settings.php:160
339
msgid "Styled Maps"
340
msgstr ""
341
342
+ #: mappress_settings.php:161
343
msgid "Geocoding"
344
msgstr ""
345
346
+ #: mappress_settings.php:164
347
msgid "Localization"
348
msgstr ""
349
350
+ #: mappress_settings.php:165
351
msgid "Language"
352
msgstr ""
353
354
+ #: mappress_settings.php:166
355
msgid "Country"
356
msgstr ""
357
358
+ #: mappress_settings.php:167
359
msgid "Directions server"
360
msgstr ""
361
362
+ #: mappress_settings.php:168
363
msgid "Directions units"
364
msgstr ""
365
366
+ #: mappress_settings.php:170
367
msgid "Miscellaneous"
368
msgstr ""
369
370
+ #: mappress_settings.php:172
371
msgid "Map sizes"
372
msgstr ""
373
374
+ #: mappress_settings.php:173
375
msgid "Scripts"
376
msgstr ""
377
378
+ #: mappress_settings.php:174
379
msgid "Adaptive display"
380
msgstr ""
381
382
+ #: mappress_settings.php:175
383
msgid "CSS"
384
msgstr ""
385
386
+ #: mappress_settings.php:225
387
msgid "Use the settings below to automatically create maps from custom fields."
388
msgstr ""
389
390
+ #: mappress_settings.php:230
391
msgid "Recenter maps when window is resized"
392
msgstr ""
393
394
+ #: mappress_settings.php:235
395
msgid "more info"
396
msgstr ""
397
398
+ #: mappress_settings.php:236
399
msgid "Required to display maps"
400
msgstr ""
401
402
+ #: mappress_settings.php:240
403
msgid "Output scripts in footer"
404
msgstr ""
405
406
+ #: mappress_settings.php:251
407
msgid "country code"
408
msgstr ""
409
410
+ #: mappress_settings.php:253
411
msgid "Enter a %s to use when searching (leave blank for USA)"
412
msgstr ""
413
414
+ #: mappress_settings.php:260
415
msgid "Enter a google server URL for directions/printing"
416
msgstr ""
417
418
+ #: mappress_settings.php:265
419
msgid "(Default)"
420
msgstr ""
421
422
+ #: mappress_settings.php:265
423
msgid "Metric (kilometers)"
424
msgstr ""
425
426
+ #: mappress_settings.php:265
427
msgid "Imperial (miles)"
428
msgstr ""
429
430
+ #: mappress_settings.php:270
431
msgid "Enable map dragging with the mouse"
432
msgstr ""
433
434
+ #: mappress_settings.php:274
435
msgid "Enable zoom with the mouse scroll wheel"
436
msgstr ""
437
438
+ #: mappress_settings.php:278
439
msgid "Enable keyboard panning and zooming"
440
msgstr ""
441
442
+ #: mappress_settings.php:284
443
msgid "language"
444
msgstr ""
445
446
+ #: mappress_settings.php:286
447
msgid "Use a specific %s for map controls and geocoding"
448
msgstr ""
449
450
+ #: mappress_settings.php:294 mappress_settings.php:300
451
+ #: mappress_settings.php:394 mappress_settings.php:444
452
msgid "Default"
453
msgstr ""
454
455
+ #: mappress_settings.php:295
456
msgid "Horizontal"
457
msgstr ""
458
459
+ #: mappress_settings.php:296
460
msgid "Dropdown"
461
msgstr ""
462
463
+ #: mappress_settings.php:301
464
msgid "Small"
465
msgstr ""
466
467
+ #: mappress_settings.php:302
468
msgid "Large"
469
msgstr ""
470
471
+ #: mappress_settings.php:303
472
msgid "Android"
473
msgstr ""
474
475
+ #: mappress_settings.php:314
476
msgid "Open initially"
477
msgstr ""
478
479
+ #: mappress_settings.php:316 mappress_settings.php:318
480
+ #: mappress_settings.php:320
481
msgid "Checked initially"
482
msgstr ""
483
484
+ #: mappress_settings.php:322
485
msgid "Control"
486
msgstr ""
487
488
+ #: mappress_settings.php:322
489
msgid "Enable"
490
msgstr ""
491
492
+ #: mappress_settings.php:322
493
msgid "Style"
494
msgstr ""
495
496
+ #: mappress_settings.php:325
497
msgid "Map types"
498
msgstr ""
499
500
+ #: mappress_settings.php:326
501
msgid "Pan"
502
msgstr ""
503
504
+ #: mappress_settings.php:328
505
msgid "Street view"
506
msgstr ""
507
508
+ #: mappress_settings.php:329
509
msgid "Scale"
510
msgstr ""
511
512
+ #: mappress_settings.php:330
513
msgid "Overview map"
514
msgstr ""
515
516
+ #: mappress_settings.php:331
517
msgid "Public transit"
518
msgstr ""
519
520
+ #: mappress_settings.php:333
521
msgid "Bike routes"
522
msgstr ""
523
524
+ #: mappress_settings.php:340
525
msgid "Road map"
526
msgstr ""
527
528
+ #: mappress_settings.php:341 pro/mappress_widget.php:138
529
msgid "Satellite"
530
msgstr ""
531
532
+ #: mappress_settings.php:342 pro/mappress_widget.php:139
533
msgid "Terrain"
534
msgstr ""
535
536
+ #: mappress_settings.php:343 pro/mappress_widget.php:137
537
msgid "Hybrid"
538
msgstr ""
539
540
+ #: mappress_settings.php:356 pro/mappress_widget.php:106
541
msgid "Google"
542
msgstr ""
543
544
+ #: mappress_settings.php:357 pro/mappress_widget.php:105
545
msgid "Inline"
546
msgstr ""
547
548
+ #: mappress_settings.php:358 pro/mappress_widget.php:107
549
msgid "None"
550
msgstr ""
551
552
+ #: mappress_settings.php:365
553
msgid "Automatically open the first POI when a map is displayed"
554
msgstr ""
555
556
+ #: mappress_settings.php:370 mappress_settings.php:379
557
msgid "Show control"
558
msgstr ""
559
560
+ #: mappress_settings.php:374 mappress_settings.php:383
561
msgid "Enabled by default"
562
msgstr ""
563
564
+ #: mappress_settings.php:387
565
msgid "Show POI titles as a \"tooltip\" on mouse-over"
566
msgstr ""
567
568
+ #: mappress_settings.php:395 pro/mappress_widget.php:112
569
msgid "Center"
570
msgstr ""
571
572
+ #: mappress_settings.php:396
573
msgid "Left"
574
msgstr ""
575
576
+ #: mappress_settings.php:397
577
msgid "Right"
578
msgstr ""
579
580
+ #: mappress_settings.php:425
581
msgid "Default zoom for POIs entered by lat/lng"
582
msgstr ""
583
584
+ #: mappress_settings.php:431
585
msgid "Top of post"
586
msgstr ""
587
588
+ #: mappress_settings.php:432
589
msgid "Bottom of post"
590
msgstr ""
591
592
+ #: mappress_settings.php:433
593
msgid "No automatic display"
594
msgstr ""
595
596
+ #: mappress_settings.php:440
597
msgid "Load %s"
598
msgstr ""
599
600
+ #: mappress_settings.php:444
601
msgid "Width"
602
msgstr ""
603
604
+ #: mappress_settings.php:444
605
msgid "Height"
606
msgstr ""
607
608
+ #: mappress_settings.php:455
609
msgid "Enter sizes in px or %"
610
msgstr ""
611
612
+ #: mappress_settings.php:465
613
msgid "Rate it 5 Stars"
614
msgstr ""
615
616
+ #: mappress_settings.php:467
617
msgid "%s on WordPress.org"
618
msgstr ""
619
620
+ #: mappress_settings.php:468
621
msgid "Thanks for your support!"
622
msgstr ""
623
624
+ #: mappress_settings.php:496
625
msgid "Easy Google Maps"
626
msgstr ""
627
628
+ #: mappress_settings.php:545
629
msgid "Like this plugin?"
630
msgstr ""
631
632
+ #: mappress_settings.php:547
633
msgid "Sample Map"
634
msgstr ""
635
636
+ #: mappress_settings.php:566
637
msgid "Save Changes"
638
msgstr ""
639
640
+ #: mappress_settings.php:567
641
msgid "Reset Defaults"
642
msgstr ""
643
653
msgid "A PRO Version update is available for manual installation: %s"
654
msgstr ""
655
656
+ #: pro/mappress_geocoder.php:24
657
msgid "Server API Key is missing - see MapPress Settings"
658
msgstr ""
659
660
+ #: pro/mappress_geocoder.php:49
661
+ msgid "Invalid status: %s, %s Address: %s"
662
msgstr ""
663
664
+ #: pro/mappress_geocoder.php:59
665
msgid "No results for address: %s"
666
msgstr ""
667
668
+ #: pro/mappress_geocoder.php:87
669
msgid "Error: %s %s"
670
msgstr ""
671
672
+ #: pro/mappress_geocoder.php:91
673
+ msgid "Invalid JSON from Google: %s"
674
+ msgstr ""
675
+
676
#: pro/mappress_icons.php:52
677
msgid "Use default icon"
678
msgstr ""
738
msgstr ""
739
740
#: pro/mappress_pro_settings.php:32
741
msgid "Geocoding fields"
742
msgstr ""
743
744
+ #: pro/mappress_pro_settings.php:33
745
msgid "Force resize"
746
msgstr ""
747
748
+ #: pro/mappress_pro_settings.php:128
749
msgid "Optional - for geocoding only"
750
msgstr ""
751
752
+ #: pro/mappress_pro_settings.php:133
753
msgid "Post type"
754
msgstr ""
755
756
+ #: pro/mappress_pro_settings.php:150
757
msgid "Key"
758
msgstr ""
759
760
+ #: pro/mappress_pro_settings.php:150
761
msgid "Value"
762
msgstr ""
763
764
+ #: pro/mappress_pro_settings.php:150 pro/mappress_pro_settings.php:274
765
msgid "Icon"
766
msgstr ""
767
768
+ #: pro/mappress_pro_settings.php:155
769
msgid "Show a list of POIs under each map"
770
msgstr ""
771
772
+ #: pro/mappress_pro_settings.php:160
773
msgid "Show the POI list as a sortable %s"
774
msgstr ""
775
776
+ #: pro/mappress_pro_settings.php:164
777
msgid "POI title"
778
msgstr ""
779
780
+ #: pro/mappress_pro_settings.php:164
781
msgid "Post title"
782
msgstr ""
783
784
+ #: pro/mappress_pro_settings.php:169
785
msgid "POI body"
786
msgstr ""
787
788
+ #: pro/mappress_pro_settings.php:169
789
msgid "Address"
790
msgstr ""
791
792
+ #: pro/mappress_pro_settings.php:169
793
msgid "Post excerpt"
794
msgstr ""
795
796
+ #: pro/mappress_pro_settings.php:174
797
msgid "Link POI titles to the underlying post"
798
msgstr ""
799
800
+ #: pro/mappress_pro_settings.php:178
801
msgid "Open the POI"
802
msgstr ""
803
804
+ #: pro/mappress_pro_settings.php:178
805
msgid "Go directly to the post"
806
msgstr ""
807
808
+ #: pro/mappress_pro_settings.php:193
809
msgid "Google InfoWindow"
810
msgstr ""
811
812
+ #: pro/mappress_pro_settings.php:194
813
msgid "InfoBox"
814
msgstr ""
815
816
+ #: pro/mappress_pro_settings.php:200
817
msgid "Show featured image thumbnails in mashup POIs"
818
msgstr ""
819
820
+ #: pro/mappress_pro_settings.php:208
821
msgid "Use existing size: "
822
msgstr ""
823
824
+ #: pro/mappress_pro_settings.php:211
825
msgid "or resize to (px): "
826
msgstr ""
827
828
+ #: pro/mappress_pro_settings.php:225
829
msgid "styled maps"
830
msgstr ""
831
832
+ #: pro/mappress_pro_settings.php:226
833
msgid "styled maps wizard"
834
msgstr ""
835
836
+ #: pro/mappress_pro_settings.php:228
837
msgid "Enter JSON for %s from Google's %s"
838
msgstr ""
839
840
+ #: pro/mappress_pro_settings.php:237
841
msgid "Style name"
842
msgstr ""
843
844
+ #: pro/mappress_pro_settings.php:251
845
msgid "No styles have been defined yet"
846
msgstr ""
847
848
+ #: pro/mappress_pro_settings.php:266
849
msgid "Address Line 1"
850
msgstr ""
851
852
+ #: pro/mappress_pro_settings.php:267
853
msgid "Address Line 2"
854
msgstr ""
855
856
+ #: pro/mappress_pro_settings.php:268
857
msgid "Address Line 3"
858
msgstr ""
859
860
+ #: pro/mappress_pro_settings.php:269
861
msgid "Address Line 4"
862
msgstr ""
863
864
+ #: pro/mappress_pro_settings.php:270
865
msgid "Address Line 5"
866
msgstr ""
867
868
+ #: pro/mappress_pro_settings.php:271
869
msgid "Address Line 6"
870
msgstr ""
871
872
+ #: pro/mappress_pro_settings.php:272
873
msgid "Latitude"
874
msgstr ""
875
876
+ #: pro/mappress_pro_settings.php:273
877
msgid "Longitude"
878
msgstr ""
879
880
+ #: pro/mappress_pro_settings.php:275
881
msgid "Title"
882
msgstr ""
883
884
+ #: pro/mappress_pro_settings.php:276
885
msgid "Body"
886
msgstr ""
887
888
+ #: pro/mappress_pro_settings.php:277
889
msgid "Map Zoom"
890
msgstr ""
891
892
+ #: pro/mappress_pro_settings.php:280 pro/mappress_widget.php:136
893
msgid "Map"
894
msgstr ""
895
896
+ #: pro/mappress_pro_settings.php:280
897
msgid "Custom Field"
898
msgstr ""
899
900
+ #: pro/mappress_pro_settings.php:289
901
msgid "Overwrite existing maps when updating"
902
msgstr ""
903
904
+ #: pro/mappress_pro_settings.php:297
905
msgid "Permanently resize existing maps"
906
msgstr ""
907
908
+ #: pro/mappress_pro_settings.php:299
909
msgid "from %s to %s"
910
msgstr ""
911
912
+ #: pro/mappress_pro_settings.php:300
913
msgid "Force Resize"
914
msgstr ""
915
916
+ #: pro/mappress_widget.php:74
917
msgid "Widget title"
918
msgstr ""
919
920
+ #: pro/mappress_widget.php:79
921
msgid "Map size"
922
msgstr ""
923
924
+ #: pro/mappress_widget.php:85
925
msgid "Show"
926
msgstr ""
927
928
+ #: pro/mappress_widget.php:86
929
msgid "Current posts"
930
msgstr ""
931
932
+ #: pro/mappress_widget.php:87
933
msgid "Hide if empty"
934
msgstr ""
935
936
+ #: pro/mappress_widget.php:89
937
msgid "All posts"
938
msgstr ""
939
940
+ #: pro/mappress_widget.php:90
941
msgid "Custom query"
942
msgstr ""
943
944
+ #: pro/mappress_widget.php:93
945
msgid "Learn about queries"
946
msgstr ""
947
948
+ #: pro/mappress_widget.php:98
949
msgid "Show POI list"
950
msgstr ""
951
952
+ #: pro/mappress_widget.php:100
953
msgid "Link POIs to posts"
954
msgstr ""
955
956
+ #: pro/mappress_widget.php:133
957
msgid "Map type"
958
msgstr ""
959
960
+ #: pro/mappress_widget.php:147
961
msgid "Other Settings"
962
msgstr ""
963
964
+ #: pro/mappress_widget.php:150
965
msgid "Example: traffic=\"false\" maplinks=\"\""
966
msgstr ""
967
languages/texts.php CHANGED
@@ -158,11 +158,11 @@ __("Reset Defaults");
158
__("Settings");
159
__("download it now");
160
__("A PRO Version update is available for manual installation: %s");
161
- __("No results, check that a geocoder is configured");
162
__("Server API Key is missing - see MapPress Settings");
163
- __("Invalid status: %s, address: %s");
164
__("No results for address: %s");
165
__("Error: %s %s");
166
__("Use default icon");
167
__("Automatic");
168
__("POI list");
@@ -179,7 +179,6 @@ __("Thumbnail Size");
179
__("Automatic icons");
180
__("Styled maps");
181
__("Default style");
182
- __("Geocoder(s)");
183
__("Geocoding fields");
184
__("Force resize");
185
__("Optional - for geocoding only");
@@ -207,7 +206,6 @@ __("styled maps wizard");
207
__("Enter JSON for %s from Google's %s");
208
__("Style name");
209
__("No styles have been defined yet");
210
- __("Nominatim");
211
__("Address Line 1");
212
__("Address Line 2");
213
__("Address Line 3");
158
__("Settings");
159
__("download it now");
160
__("A PRO Version update is available for manual installation: %s");
161
__("Server API Key is missing - see MapPress Settings");
162
+ __("Invalid status: %s, %s Address: %s");
163
__("No results for address: %s");
164
__("Error: %s %s");
165
+ __("Invalid JSON from Google: %s");
166
__("Use default icon");
167
__("Automatic");
168
__("POI list");
179
__("Automatic icons");
180
__("Styled maps");
181
__("Default style");
182
__("Geocoding fields");
183
__("Force resize");
184
__("Optional - for geocoding only");
206
__("Enter JSON for %s from Google's %s");
207
__("Style name");
208
__("No styles have been defined yet");
209
__("Address Line 1");
210
__("Address Line 2");
211
__("Address Line 3");
mappress.php CHANGED
@@ -3,8 +3,8 @@
3
Plugin Name: MapPress Easy Google Maps
4
Plugin URI: http://www.wphostreviews.com/mappress
5
Author URI: http://www.wphostreviews.com/mappress
6
- Description: MapPress makes it easy to insert Google Maps in WordPress posts and pages.
7
- Version: 2.44.1
8
Author: Chris Richardson
9
Text Domain: mappress-google-maps-for-wordpress
10
Thanks to all the translators and to Matthias Stasiak for his wonderful icons (http://code.google.com/p/google-maps-icons/)
@@ -24,22 +24,22 @@ require_once dirname( __FILE__ ) . '/mappress_settings.php';
24
require_once dirname( __FILE__ ) . '/mappress_updater.php';
25
26
if (file_exists(dirname( __FILE__ ) . '/pro/mappress_pro.php')) {
27
include_once dirname( __FILE__ ) . '/pro/mappress_pro.php';
28
include_once dirname( __FILE__ ) . '/pro/mappress_pro_settings.php';
29
include_once dirname( __FILE__ ) . '/pro/mappress_query.php';
30
- include_once dirname( __FILE__ ) . '/pro/mappress_geocoders.php';
31
- include_once dirname( __FILE__ ) . '/pro/mappress_icons.php';
32
include_once dirname( __FILE__ ) . '/pro/mappress_widget.php';
33
}
34
class Mappress {
35
- const VERSION = '2.44.1';
36
37
static
38
$baseurl,
39
$basename,
40
$basedir,
41
$debug,
42
- $geocoders,
43
$options,
44
$pages,
45
$updater;
@@ -57,7 +57,6 @@ class Mappress {
57
58
// Initialize Pro classes
59
if (class_exists('Mappress_Pro')) {
60
- self::$geocoders = new Mappress_Geocoders();
61
self::$updater = new Mappress_Updater(self::$basename);
62
}
63
@@ -98,7 +97,7 @@ class Mappress {
98
99
if (isset($_GET['mp_info'])) {
100
echo "<b>Plugin version</b> " . $this->get_version_string();
101
- foreach(array('version', 'language', 'wpurl', 'url') as $info)
102
printf("<br/>%s : %s", $info, get_bloginfo($info));
103
die();
104
}
@@ -355,7 +354,7 @@ class Mappress {
355
356
// Dismissible notices
357
$notices = array();
358
- if (!self::$options->apiKey)
359
$notices['apikey'] = sprintf("%s. %s <a href='%s'>%s</a>.", __("A Google Maps API key is required", 'mappress-google-maps-for-wordpress'), __("Please update your", 'mappress-google-maps-for-wordpress'), admin_url('admin.php?page=mappress'), __('MapPress Settings', 'mappress-google-maps-for-wordpress'));
360
361
foreach($notices as $notice => $msg)
@@ -466,16 +465,6 @@ class Mappress {
466
return $data;
467
}
468
469
- /**
470
- * Output javascript
471
- *
472
- * @param mixed $script
473
- */
474
- static function script($script) {
475
- $script = (is_array($script)) ? implode("\r\n", $script) : $script;
476
- return "\r\n<script type='text/javascript'>\r\n{$script}\r\n</script>\r\n";
477
- }
478
-
479
function load($type = null) {
480
static $loaded;
481
@@ -490,7 +479,7 @@ class Mappress {
490
$dev = (isset($dev) && empty($dev)) ? 'dev' : $dev;
491
492
$apiversion = ($dev) ? 'v=3.exp' : 'v=3';
493
- $apikey = (!empty(self::$options->apiKey)) ? "&key=" . self::$options->apiKey : '';
494
$libstring = ($type == 'editor') ? '&libraries=places,drawing' : '&libraries=places';
495
496
// Directories
@@ -557,7 +546,7 @@ class Mappress {
557
$l10n['options'] = array(
558
'admin' => current_user_can('administrator'),
559
'ajaxurl' => admin_url('admin-ajax.php'),
560
- 'apiKey' => Mappress::$options->apiKey,
561
'debug' => Mappress::$debug,
562
'iconsUrl' => (class_exists('Mappress_Icons')) ? Mappress_Icons::$icons_url : null,
563
'language' => $this->get_language(),
@@ -620,11 +609,8 @@ class Mappress {
620
* @return mixed
621
*/
622
function print_template( $template_name, $args = '' ) {
623
- $defaults = array(
624
- 'map' => null,
625
- 'poi' => null
626
- );
627
- extract(wp_parse_args($args, $defaults));
628
$template_file = $this->find_template($template_name);
629
require($template_file);
630
}
@@ -636,6 +622,25 @@ class Mappress {
636
$template_file = Mappress::$basedir . "/templates/$template_name";
637
return $template_file;
638
}
639
} // End Mappress class
640
641
if (class_exists('Mappress_Pro'))
3
Plugin Name: MapPress Easy Google Maps
4
Plugin URI: http://www.wphostreviews.com/mappress
5
Author URI: http://www.wphostreviews.com/mappress
6
+ Description: MapPress makes it easy to insert Google Maps in WordPress posts and pages
7
+ Version: 2.44.2
8
Author: Chris Richardson
9
Text Domain: mappress-google-maps-for-wordpress
10
Thanks to all the translators and to Matthias Stasiak for his wonderful icons (http://code.google.com/p/google-maps-icons/)
24
require_once dirname( __FILE__ ) . '/mappress_updater.php';
25
26
if (file_exists(dirname( __FILE__ ) . '/pro/mappress_pro.php')) {
27
+ include_once dirname( __FILE__ ) . '/pro/mappress_geocoder.php';
28
+ include_once dirname( __FILE__ ) . '/pro/mappress_icons.php';
29
include_once dirname( __FILE__ ) . '/pro/mappress_pro.php';
30
include_once dirname( __FILE__ ) . '/pro/mappress_pro_settings.php';
31
include_once dirname( __FILE__ ) . '/pro/mappress_query.php';
32
include_once dirname( __FILE__ ) . '/pro/mappress_widget.php';
33
}
34
class Mappress {
35
+ const VERSION = '2.44.2';
36
37
static
38
$baseurl,
39
+
40
$basename,
41
$basedir,
42
$debug,
43
$options,
44
$pages,
45
$updater;
57
58
// Initialize Pro classes
59
if (class_exists('Mappress_Pro')) {
60
self::$updater = new Mappress_Updater(self::$basename);
61
}
62
97
98
if (isset($_GET['mp_info'])) {
99
echo "<b>Plugin version</b> " . $this->get_version_string();
100
+ foreach(array('language', 'wpurl', 'url') as $info)
101
printf("<br/>%s : %s", $info, get_bloginfo($info));
102
die();
103
}
354
355
// Dismissible notices
356
$notices = array();
357
+ if (!self::get_api_keys()->browser)
358
$notices['apikey'] = sprintf("%s. %s <a href='%s'>%s</a>.", __("A Google Maps API key is required", 'mappress-google-maps-for-wordpress'), __("Please update your", 'mappress-google-maps-for-wordpress'), admin_url('admin.php?page=mappress'), __('MapPress Settings', 'mappress-google-maps-for-wordpress'));
359
360
foreach($notices as $notice => $msg)
465
return $data;
466
}
467
468
function load($type = null) {
469
static $loaded;
470
479
$dev = (isset($dev) && empty($dev)) ? 'dev' : $dev;
480
481
$apiversion = ($dev) ? 'v=3.exp' : 'v=3';
482
+ $apikey = "&key=" . self::get_api_keys()->browser;
483
$libstring = ($type == 'editor') ? '&libraries=places,drawing' : '&libraries=places';
484
485
// Directories
546
$l10n['options'] = array(
547
'admin' => current_user_can('administrator'),
548
'ajaxurl' => admin_url('admin-ajax.php'),
549
+ 'apiKey' => self::get_api_keys()->browser,
550
'debug' => Mappress::$debug,
551
'iconsUrl' => (class_exists('Mappress_Icons')) ? Mappress_Icons::$icons_url : null,
552
'language' => $this->get_language(),
609
* @return mixed
610
*/
611
function print_template( $template_name, $args = '' ) {
612
+ $map = (isset($args['map'])) ? $args['map'] : null;
613
+ $poi = (isset($args['poi'])) ? $args['poi'] : null;
614
$template_file = $this->find_template($template_name);
615
require($template_file);
616
}
622
$template_file = Mappress::$basedir . "/templates/$template_name";
623
return $template_file;
624
}
625
+
626
+ static function get_api_keys() {
627
+ $results = (object) array('browser' => self::$options->apiKey, 'server' => self::$options->apiKeyServer);
628
+ if (empty($results->browser) && defined('MAPPRESS_APIKEY'))
629
+ $results->browser = MAPPRESS_APIKEY;
630
+ if (empty($results->server) && defined('MAPPRESS_APIKEY_SERVER'))
631
+ $results->server = MAPPRESS_APIKEY_SERVER;
632
+ return $results;
633
+ }
634
+
635
+ /**
636
+ * Output javascript
637
+ *
638
+ * @param mixed $script
639
+ */
640
+ static function script($script) {
641
+ $script = (is_array($script)) ? implode("\r\n", $script) : $script;
642
+ return "\r\n<script type='text/javascript'>\r\n{$script}\r\n</script>\r\n";
643
+ }
644
} // End Mappress class
645
646
if (class_exists('Mappress_Pro'))
mappress_controls.php CHANGED
@@ -81,7 +81,6 @@ class Mappress_Controls {
81
}
82
83
static function radios($name, $data, $selected = null, $args = '') {
84
- extract(wp_parse_args($args, array('vertical' => false)));
85
$atts = self::parse_atts($name, $args);
86
87
// If no selected value, use first key
@@ -94,23 +93,21 @@ class Mappress_Controls {
94
foreach ((array)$data as $key => $label) {
95
$key = esc_attr($key);
96
$html .= "<label><input type='radio' value='$key' " . checked($selected, $key, false) . " $atts />$label</label> ";
97
- if ($vertical)
98
- $html .= "<br/>";
99
}
100
return $html;
101
}
102
103
static function select($name, $data, $selected = '', $args = '') {
104
- extract(wp_parse_args($args, array('short_labels' => false, 'none' => false)));
105
$atts = self::parse_atts($name, $args);
106
107
if (!is_array($data) || empty($data))
108
$data = array();
109
110
- if ($none) {
111
- if ($none === true)
112
- $none = '&nbsp;';
113
- $data = array('' => $none) + $data;
114
}
115
116
$html = "<select $atts>\r\n";
@@ -123,9 +120,8 @@ class Mappress_Controls {
123
$select = ($select) ? 'selected' : '';
124
125
$value = esc_attr($key);
126
- $title = ($short_labels) ? esc_attr($label) : '';
127
- $text = ($short_labels) ? esc_attr($key) : esc_attr($label);
128
- $html .= "<option value='$value' title='$title' $select>$text</option>\r\n";
129
}
130
$html .= "</select>\r\n";
131
return $html;
81
}
82
83
static function radios($name, $data, $selected = null, $args = '') {
84
$atts = self::parse_atts($name, $args);
85
86
// If no selected value, use first key
93
foreach ((array)$data as $key => $label) {
94
$key = esc_attr($key);
95
$html .= "<label><input type='radio' value='$key' " . checked($selected, $key, false) . " $atts />$label</label> ";
96
}
97
return $html;
98
}
99
100
static function select($name, $data, $selected = '', $args = '') {
101
+ $args = (object) wp_parse_args($args, array('none' => false));
102
$atts = self::parse_atts($name, $args);
103
104
if (!is_array($data) || empty($data))
105
$data = array();
106
107
+ if ($args->none) {
108
+ if ($args->none === true)
109
+ $args->none = '&nbsp;';
110
+ $data = array('' => $args->none) + $data;
111
}
112
113
$html = "<select $atts>\r\n";
120
$select = ($select) ? 'selected' : '';
121
122
$value = esc_attr($key);
123
+ $text = esc_attr($label);
124
+ $html .= "<option value='$value' $select>$text</option>\r\n";
125
}
126
$html .= "</select>\r\n";
127
return $html;
mappress_map.php CHANGED
@@ -512,10 +512,8 @@ class Mappress_Map extends Mappress_Obj {
512
return $style;
513
}
514
515
- function get_show_link($args = '') {
516
- extract(wp_parse_args($args, array(
517
- 'text' => __('Show map', 'mappress-google-maps-for-wordpress')
518
- )));
519
520
if (!$this->options->hidden)
521
return '';
@@ -525,29 +523,20 @@ class Mappress_Map extends Mappress_Obj {
525
}
526
527
function get_center_link($args = '') {
528
- extract(wp_parse_args($args, array(
529
- 'text' => __('Center map', 'mappress-google-maps-for-wordpress')
530
- )));
531
-
532
$click = "{$this->name}.autoCenter(true); return false;";
533
return "<a href='#' onclick='$click'>$text</a>";
534
}
535
536
function get_reset_link($args = '') {
537
- extract(wp_parse_args($args, array(
538
- 'text' => __('Reset map', 'mappress-google-maps-for-wordpress')
539
- )));
540
-
541
$click = "{$this->name}.reset(); return false;";
542
return "<a href='#' onclick='$click'>$text</a>";
543
}
544
545
function get_bigger_link($args = '') {
546
- extract(wp_parse_args($args, array(
547
- 'big_text' => "&raquo;&nbsp;" . __('Bigger map', 'mappress-google-maps-for-wordpress'),
548
- 'small_text' => "&laquo;&nbsp;" . __('Smaller map', 'mappress-google-maps-for-wordpress')
549
- )));
550
-
551
$click = "{$this->name}.bigger(this, \"$big_text\", \"$small_text\"); return false;";
552
return "<a href='#' onclick='$click'>$big_text</a>";
553
}
512
return $style;
513
}
514
515
+ function get_show_link() {
516
+ $text = __('Show map', 'mappress-google-maps-for-wordpress');
517
518
if (!$this->options->hidden)
519
return '';
523
}
524
525
function get_center_link($args = '') {
526
+ $text = __('Center map', 'mappress-google-maps-for-wordpress');
527
$click = "{$this->name}.autoCenter(true); return false;";
528
return "<a href='#' onclick='$click'>$text</a>";
529
}
530
531
function get_reset_link($args = '') {
532
+ $text = __('Reset map', 'mappress-google-maps-for-wordpress');
533
$click = "{$this->name}.reset(); return false;";
534
return "<a href='#' onclick='$click'>$text</a>";
535
}
536
537
function get_bigger_link($args = '') {
538
+ $big_text = "&raquo;&nbsp;" . __('Bigger map', 'mappress-google-maps-for-wordpress');
539
+ $small_text = "&laquo;&nbsp;" . __('Smaller map', 'mappress-google-maps-for-wordpress');
540
$click = "{$this->name}.bigger(this, \"$big_text\", \"$small_text\"); return false;";
541
return "<a href='#' onclick='$click'>$big_text</a>";
542
}
mappress_poi.php CHANGED
@@ -39,30 +39,29 @@ class Mappress_Poi extends Mappress_Obj {
39
* @param mixed $auto true = automatically update the poi, false = return raw geocoding results
40
* @return true if auto=true and success | WP_Error on failure
41
*/
42
- function geocode($auto=true) {
43
if (!class_exists('Mappress_Pro'))
44
return new WP_Error('geocode', 'MapPress Pro required for geocoding');
45
46
// If point has a lat/lng then no geocoding
47
if (!empty($this->point['lat']) && !empty($this->point['lng'])) {
48
- if ($this->address)
49
- $this->correctedAddress = $this->address;
50
$this->viewport = null;
51
} else {
52
- $location = Mappress::$geocoders->geocode($this->address);
53
54
if (is_wp_error($location))
55
return $location;
56
57
$this->point = array('lat' => $location->lat, 'lng' => $location->lng);
58
- $this->correctedAddress = $location->corrected_address;
59
$this->viewport = $location->viewport;
60
}
61
62
// Guess a default title / body - use address if available or lat, lng if not
63
if (empty($this->title) && empty($this->body)) {
64
if ($this->correctedAddress) {
65
- $parsed = Mappress::$geocoders->parse_address($this->correctedAddress);
66
$this->title = $parsed[0];
67
$this->body = (isset($parsed[1])) ? $parsed[1] : "";
68
} else {
@@ -172,7 +171,7 @@ class Mappress_Poi extends Mappress_Obj {
172
*
173
*/
174
function get_address() {
175
- $parsed = Mappress::$geocoders->parse_address($this->correctedAddress);
176
if (!$parsed)
177
return "";
178
@@ -225,30 +224,28 @@ class Mappress_Poi extends Mappress_Obj {
225
function get_directions_link($args = '') {
226
$map = $this->map();
227
228
- extract(wp_parse_args($args, array(
229
'from' => $map->options->from,
230
'to' => $map->options->to,
231
- 'focus' => true,
232
'text' => __('Directions', 'mappress-google-maps-for-wordpress')
233
- )));
234
235
// Convert objects to indexes, quote strings
236
- if (is_object($from)) {
237
- $i = array_search($from, $map->pois);
238
$from = "{$map->name}.getPoi($i)";
239
} else {
240
- $from = "\"$from\"";
241
}
242
243
- if (is_object($to)) {
244
- $i = array_search($to, $map->pois);
245
$to = "{$map->name}.getPoi($i)";
246
} else {
247
- $to = "\"$to\"";
248
}
249
250
- $link = "<a href='#' onclick = '{$map->name}.openDirections(%s, %s, $focus); return false;'>$text</a>";
251
-
252
return sprintf($link, $from, $to);
253
}
254
@@ -265,22 +262,14 @@ class Mappress_Poi extends Mappress_Obj {
265
*/
266
function get_open_link ($args = '') {
267
$map = $this->map();
268
- extract(wp_parse_args($args, array(
269
- 'title' => $this->title,
270
- 'zoom' => null
271
- )));
272
-
273
$i = array_search($this, $map->pois);
274
- $zoom = Mappress::boolean_to_string($zoom);
275
- return "<a href='#' onclick='{$map->name}.getPoi($i).open($zoom); return false;' >$title</a>";
276
}
277
278
function get_zoom_link ($args = '') {
279
$map = $this->map();
280
- extract(wp_parse_args($args, array(
281
- 'text' => __('Zoom', 'mappress-google-maps-for-wordpress'),
282
- )));
283
-
284
$i = array_search($this, $map->pois);
285
$click = "{$map->name}.getPoi($i).zoomIn(); return false;";
286
return "<a href='#' onclick='$click'>$text</a>";
39
* @param mixed $auto true = automatically update the poi, false = return raw geocoding results
40
* @return true if auto=true and success | WP_Error on failure
41
*/
42
+ function geocode() {
43
if (!class_exists('Mappress_Pro'))
44
return new WP_Error('geocode', 'MapPress Pro required for geocoding');
45
46
// If point has a lat/lng then no geocoding
47
if (!empty($this->point['lat']) && !empty($this->point['lng'])) {
48
+ $this->correctedAddress = ($this->address) ? $this->address : null;
49
$this->viewport = null;
50
} else {
51
+ $location = Mappress_Geocoder::geocode($this->address);
52
53
if (is_wp_error($location))
54
return $location;
55
56
$this->point = array('lat' => $location->lat, 'lng' => $location->lng);
57
+ $this->correctedAddress = $location->formatted_address;
58
$this->viewport = $location->viewport;
59
}
60
61
// Guess a default title / body - use address if available or lat, lng if not
62
if (empty($this->title) && empty($this->body)) {
63
if ($this->correctedAddress) {
64
+ $parsed = Mappress_Geocoder::parse_address($this->correctedAddress);
65
$this->title = $parsed[0];
66
$this->body = (isset($parsed[1])) ? $parsed[1] : "";
67
} else {
171
*
172
*/
173
function get_address() {
174
+ $parsed = Mappress_Geocoder::parse_address($this->correctedAddress);
175
if (!$parsed)
176
return "";
177
224
function get_directions_link($args = '') {
225
$map = $this->map();
226
227
+ $args = (object) wp_parse_args($args, array(
228
'from' => $map->options->from,
229
'to' => $map->options->to,
230
'text' => __('Directions', 'mappress-google-maps-for-wordpress')
231
+ ));
232
233
// Convert objects to indexes, quote strings
234
+ if (is_object($args->from)) {
235
+ $i = array_search($args->from, $map->pois);
236
$from = "{$map->name}.getPoi($i)";
237
} else {
238
+ $from = "\"{$args->from}\"";
239
}
240
241
+ if (is_object($args->to)) {
242
+ $i = array_search($args->to, $map->pois);
243
$to = "{$map->name}.getPoi($i)";
244
} else {
245
+ $to = "\"{$args->to}\"";
246
}
247
248
+ $link = "<a href='#' onclick = '{$map->name}.openDirections(%s, %s, true); return false;'>{$args->text}</a>";
249
return sprintf($link, $from, $to);
250
}
251
262
*/
263
function get_open_link ($args = '') {
264
$map = $this->map();
265
+ $title = $this->title;
266
$i = array_search($this, $map->pois);
267
+ return "<a href='#' onclick='{$map->name}.getPoi($i).open(null); return false;' >$title</a>";
268
}
269
270
function get_zoom_link ($args = '') {
271
$map = $this->map();
272
+ $text = __('Zoom', 'mappress-google-maps-for-wordpress');
273
$i = array_search($this, $map->pois);
274
$click = "{$map->name}.getPoi($i).zoomIn(); return false;";
275
return "<a href='#' onclick='$click'>$text</a>";
mappress_settings.php CHANGED
@@ -23,7 +23,6 @@ class Mappress_Options extends Mappress_Obj {
23
$editable = false,
24
$footer = true,
25
$from,
26
- $geocoders = array('google'),
27
$hidden = false, // Hide the map with a 'show map' link
28
$hideEmpty = false, // Hide 'current posts' mashups if empty
29
$iconScale,
@@ -216,10 +215,6 @@ class Mappress_Settings {
216
$input['poiLinks'] = (isset($input['poiLinks'])) ? $input['poiLinks'] : array();
217
$input['mapLinks'] = (isset($input['mapLinks'])) ? $input['mapLinks'] : array();
218
$input['postTypes'] = (isset($input['postTypes'])) ? $input['postTypes'] : array();
219
-
220
- // Must select at least 1 geocoder
221
- $input['geocoders'] = (isset($input['geocoders'])) ? $input['geocoders'] : array('google');
222
-
223
return $input;
224
}
225
@@ -337,7 +332,7 @@ class Mappress_Settings {
337
array(__('Traffic', 'mappress-google-maps-for-wordpress'), $traffic, $initial_traffic ),
338
array(__('Bike routes', 'mappress-google-maps-for-wordpress'), $bicycling, $initial_bicycling ),
339
);
340
- echo self::table($headers, $rows);
341
}
342
343
function set_map_type_ids() {
@@ -458,7 +453,7 @@ class Mappress_Settings {
458
);
459
}
460
echo __('Enter sizes in px or %', 'mappress-google-maps-for-wordpress') . ": <br/>";
461
- echo self::table($headers, $rows);
462
}
463
464
@@ -603,15 +598,10 @@ class Mappress_Settings {
603
*
604
*/
605
static function dropdown($data, $selected, $name='', $args=null) {
606
- $defaults = array(
607
'id' => $name,
608
- 'asort' => false,
609
- 'ksort' => false,
610
'none' => false,
611
- 'class' => null,
612
- 'multiple' => false,
613
- 'select_attr' => ""
614
- );
615
616
if (!is_array($data))
617
return;
@@ -625,29 +615,17 @@ class Mappress_Settings {
625
$value = array_shift($value);
626
}
627
628
- extract(wp_parse_args($args, $defaults));
629
-
630
- if ($asort)
631
- asort($data);
632
- if ($ksort)
633
- ksort($data);
634
-
635
// If 'none' arg provided, prepend a blank entry
636
- if ($none) {
637
- if ($none === true)
638
- $none = '&nbsp;';
639
$data = array('' => $none) + $data; // Note that array_merge() won't work because it renumbers indexes!
640
}
641
642
- if (!$id)
643
- $id = $name;
644
-
645
$name = ($name) ? "name='$name'" : "";
646
$id = ($id) ? "id='$id'" : "";
647
- $class = ($class) ? "class='$class'" : "";
648
- $multiple = ($multiple) ? "multiple='multiple'" : "";
649
650
- $html = "<select $name $id $class $multiple $select_attr>";
651
652
foreach ((array)$data as $key => $description) {
653
$key = esc_attr($key);
@@ -713,51 +691,6 @@ class Mappress_Settings {
713
return $html;
714
}
715
716
- /**
717
- * Outputs a table
718
- *
719
- * $args values:
720
- * class - CSS class for table
721
- * col_styles - array of column styles
722
- * footer - array of footer cols
723
- * id - table id
724
- * style - CSS styles for table
725
- *
726
- * @param mixed array $headers - array of header cols
727
- * @param mixed array $rows - array of rows; rows are arrays of cols
728
- * @param mixed array $args
729
- */
730
- static function table($headers, $rows, $args = '') {
731
- $defaults = array(
732
- 'class' => '',
733
- 'id' => '',
734
- 'style' => '',
735
- 'col_styles' => null
736
- );
737
-
738
- extract(wp_parse_args($args, $defaults));
739
-
740
- $html = "<table id='$id' class='$class' style='$style'><thead><tr>";
741
-
742
- foreach ((array)$headers as $i => $header) {
743
- $style = ($col_styles) ? "style='$col_styles[$i]'" : '';
744
- $html .= "<th $style>$header</th>";
745
- }
746
- $html .= "</tr></thead>";
747
- $html .= "<tbody>";
748
-
749
- foreach ((array)$rows as $i => $row) {
750
- $html .= "<tr>";
751
- foreach ((array)$row as $col)
752
- $html .= "<td>$col</td>";
753
- $html .= "</tr>";
754
- }
755
- $html .= "</tbody>";
756
-
757
- $html .= "</table>";
758
- return $html;
759
- }
760
-
761
/**
762
* Get a list of custom fields
763
*
23
$editable = false,
24
$footer = true,
25
$from,
26
$hidden = false, // Hide the map with a 'show map' link
27
$hideEmpty = false, // Hide 'current posts' mashups if empty
28
$iconScale,
215
$input['poiLinks'] = (isset($input['poiLinks'])) ? $input['poiLinks'] : array();
216
$input['mapLinks'] = (isset($input['mapLinks'])) ? $input['mapLinks'] : array();
217
$input['postTypes'] = (isset($input['postTypes'])) ? $input['postTypes'] : array();
218
return $input;
219
}
220
332
array(__('Traffic', 'mappress-google-maps-for-wordpress'), $traffic, $initial_traffic ),
333
array(__('Bike routes', 'mappress-google-maps-for-wordpress'), $bicycling, $initial_bicycling ),
334
);
335
+ echo Mappress_Controls::table($headers, $rows);
336
}
337
338
function set_map_type_ids() {
453
);
454
}
455
echo __('Enter sizes in px or %', 'mappress-google-maps-for-wordpress') . ": <br/>";
456
+ echo Mappress_Controls::table($headers, $rows);
457
}
458
459
598
*
599
*/
600
static function dropdown($data, $selected, $name='', $args=null) {
601
+ $args = (object) wp_parse_args($args, array(
602
'id' => $name,
603
'none' => false,
604
+ ));
605
606
if (!is_array($data))
607
return;
615
$value = array_shift($value);
616
}
617
618
// If 'none' arg provided, prepend a blank entry
619
+ if ($args->none) {
620
+ $none = ($args->none === true) ? '&nbsp;' : $args->none;
621
$data = array('' => $none) + $data; // Note that array_merge() won't work because it renumbers indexes!
622
}
623
624
+ $id = ($args->id) ? $args->id : $name;
625
$name = ($name) ? "name='$name'" : "";
626
$id = ($id) ? "id='$id'" : "";
627
628
+ $html = "<select $name $id>";
629
630
foreach ((array)$data as $key => $description) {
631
$key = esc_attr($key);
691
return $html;
692
}
693
694
/**
695
* Get a list of custom fields
696
*
readme.txt CHANGED
@@ -4,16 +4,18 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
Tags: google maps,google,map,maps,easy,poi,mapping,mapper,gps,lat,lon,latitude,longitude,geocoder,geocoding,georss,geo rss,geo,v3,marker,mashup,mash,api,v3,buddypress,mashup,geo,wp-geo,geo mashup,simplemap,simple,wpml
5
Requires at least: 3.5
6
Tested up to: 4.9
7
- Stable tag: 2.44.1
8
9
MapPress is the most popular and easiest way to create great-looking Google Maps and driving directions in your blog.
10
11
== Description ==
12
MapPress adds an interactive map to the wordpress editing screens. When editing a post or page just enter any addresses you'd like to map.
13
14
- The plugin will automatically insert a great-looking interactive map into your blog. Your readers can get directions right in your blog and you can even create custom HTML for the map markers (including pictures, links, etc.)!
15
16
- For even more features, try the [MapPress Pro Version](http://wphostreviews.com/mappress)
17
18
= Key Features =
19
* MapPress is based on the latest Google maps API v3
@@ -95,6 +97,12 @@ See full [installation intructions and Documentation](http://www.wphostreviews.c
95
96
== Changelog ==
97
98
2.44.1
99
* Changed: added 'footer' option for loading scripts in header/footer (for use in AJAX plugins)
100
* Fixed: default sort applied to mashup with orderby
4
Tags: google maps,google,map,maps,easy,poi,mapping,mapper,gps,lat,lon,latitude,longitude,geocoder,geocoding,georss,geo rss,geo,v3,marker,mashup,mash,api,v3,buddypress,mashup,geo,wp-geo,geo mashup,simplemap,simple,wpml
5
Requires at least: 3.5
6
Tested up to: 4.9
7
+ Stable tag: 2.44.2
8
9
MapPress is the most popular and easiest way to create great-looking Google Maps and driving directions in your blog.
10
11
== Description ==
12
MapPress adds an interactive map to the wordpress editing screens. When editing a post or page just enter any addresses you'd like to map.
13
14
+ The plugin will automatically insert a great-looking interactive map into your blog, with directions and custom map markers.
15
16
+ For even more features, try [MapPress Pro](http://wphostreviews.com/mappress)
17
+
18
+ For the latest updates try the [Development Version](https://wordpress.org/plugins/mappress-google-maps-for-wordpress/developers/)
19
20
= Key Features =
21
* MapPress is based on the latest Google maps API v3
97
98
== Changelog ==
99
100
+ 2.44.2
101
+ * Changed: geocoding module has been updated
102
+ * Changed: the Nominatim geocoder has been removed
103
+ * Changed: when geocoding an 'address' field in format 'lat,lng' the field is used verbatim rather than mapped to the nearest street address
104
+ * Changed: extract removed from helper functions
105
+
106
2.44.1
107
* Changed: added 'footer' option for loading scripts in header/footer (for use in AJAX plugins)
108
* Fixed: default sort applied to mashup with orderby