MapPress Easy Google Maps - Version 2.43.8

Version Description

Download this release

Release Info

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

Code changes from version 2.43.4 to 2.43.8

Files changed (50) hide show
  1. css/mappress.css +2 -0
  2. forms/map_editor.php +4 -4
  3. forms/map_editor_infobox.php +8 -8
  4. forms/map_media.php +8 -8
  5. js/mappress.min.js +1 -1
  6. languages/{mappress-bg_BG.mo → mappress-google-maps-for-wordpress-bg_BG.mo} +0 -0
  7. languages/{mappress-bg_BG.po → mappress-google-maps-for-wordpress-bg_BG.po} +0 -0
  8. languages/{mappress-de_DE.mo → mappress-google-maps-for-wordpress-de_DE.mo} +0 -0
  9. languages/{mappress-de_DE.po → mappress-google-maps-for-wordpress-de_DE.po} +0 -0
  10. languages/{mappress-es_ES.mo → mappress-google-maps-for-wordpress-es_ES.mo} +0 -0
  11. languages/{mappress-es_ES.po → mappress-google-maps-for-wordpress-es_ES.po} +0 -0
  12. languages/{mappress-fi.mo → mappress-google-maps-for-wordpress-fi.mo} +0 -0
  13. languages/{mappress-fi.po → mappress-google-maps-for-wordpress-fi.po} +0 -0
  14. languages/{mappress-fr_FR.mo → mappress-google-maps-for-wordpress-fr_FR.mo} +0 -0
  15. languages/{mappress-fr_FR.po → mappress-google-maps-for-wordpress-fr_FR.po} +0 -0
  16. languages/{mappress-hr.mo → mappress-google-maps-for-wordpress-hr.mo} +0 -0
  17. languages/{mappress-hr.po → mappress-google-maps-for-wordpress-hr.po} +0 -0
  18. languages/{mappress-hu_HU.mo → mappress-google-maps-for-wordpress-hu_HU.mo} +0 -0
  19. languages/{mappress-hu_HU.po → mappress-google-maps-for-wordpress-hu_HU.po} +0 -0
  20. languages/{mappress-it_IT.mo → mappress-google-maps-for-wordpress-it_IT.mo} +0 -0
  21. languages/{mappress-it_IT.po → mappress-google-maps-for-wordpress-it_IT.po} +0 -0
  22. languages/{mappress-ja.mo → mappress-google-maps-for-wordpress-ja.mo} +0 -0
  23. languages/{mappress-ja.po → mappress-google-maps-for-wordpress-ja.po} +0 -0
  24. languages/{mappress-nl_NL.mo → mappress-google-maps-for-wordpress-nl_NL.mo} +0 -0
  25. languages/{mappress-nl_NL.po → mappress-google-maps-for-wordpress-nl_NL.po} +0 -0
  26. languages/{mappress-pl_PL.mo → mappress-google-maps-for-wordpress-pl_PL.mo} +0 -0
  27. languages/{mappress-pl_PL.po → mappress-google-maps-for-wordpress-pl_PL.po} +0 -0
  28. languages/{mappress-pt_BR.mo → mappress-google-maps-for-wordpress-pt_BR.mo} +0 -0
  29. languages/{mappress-pt_BR.po → mappress-google-maps-for-wordpress-pt_BR.po} +0 -0
  30. languages/{mappress-ru_RU.mo → mappress-google-maps-for-wordpress-ru_RU.mo} +0 -0
  31. languages/{mappress-ru_RU.po → mappress-google-maps-for-wordpress-ru_RU.po} +0 -0
  32. languages/mappress-google-maps-for-wordpress-sr_RS.mo +0 -0
  33. languages/mappress-google-maps-for-wordpress-sr_RS.po +1730 -0
  34. languages/{mappress-zh_CN.mo → mappress-google-maps-for-wordpress-zh_CN.mo} +0 -0
  35. languages/{mappress-zh_CN.po → mappress-google-maps-for-wordpress-zh_CN.po} +0 -0
  36. languages/{mappress-zh_TW.mo → mappress-google-maps-for-wordpress-zh_TW.mo} +0 -0
  37. languages/{mappress-zh_TW.po → mappress-google-maps-for-wordpress-zh_TW.po} +0 -0
  38. languages/{mappress.mo → mappress-google-maps-for-wordpress.mo} +0 -0
  39. languages/{mappress.po → mappress-google-maps-for-wordpress.po} +168 -163
  40. languages/mappress-google-maps-for-wordpress.pot +998 -0
  41. languages/texts.php +247 -0
  42. mappress.php +115 -140
  43. mappress_controls.php +35 -5
  44. mappress_map.php +65 -47
  45. mappress_poi.php +17 -14
  46. mappress_settings.php +114 -117
  47. mappress_updater.php +3 -3
  48. readme.txt +30 -2
  49. templates/map_directions.php +9 -9
  50. templates/map_poi_list.php +0 -6
css/mappress.css CHANGED
@@ -126,6 +126,8 @@
126
  padding-right: 10px !important; /* important is used here because otherwise .mapp-canvas img setting will take priority */
127
  vertical-align: top;
128
  float: left;
 
 
129
  }
130
 
131
  .mapp-iw img {
126
  padding-right: 10px !important; /* important is used here because otherwise .mapp-canvas img setting will take priority */
127
  vertical-align: top;
128
  float: left;
129
+ width: 32px ;
130
+ height: 32px;
131
  }
132
 
133
  .mapp-iw img {
forms/map_editor.php CHANGED
@@ -2,13 +2,13 @@
2
  <div class='mapp-table mapp-searchbox'>
3
  <div>
4
  <div class='mapp-max'>
5
- <input style='width:100%' type='text' id='mapp_e_saddr' placeholder='<?php _e('Add POI', 'mappress'); ?>'/>
6
  </div>
7
  <div>
8
  <button id='mapp_e_search' class='button button-primary mapp-search-button'></button>
9
  </div>
10
  <div>
11
- <button id='mapp_e_myloc' class='button mapp-geolocate-button' title='<?php _e('My location', 'mappress');?>'></button>
12
  </div>
13
  </div>
14
  </div>
@@ -22,8 +22,8 @@
22
  </td>
23
  <td style='width: 75%'>
24
  <div id='mapp_e_top_toolbar' class='mapp-e-top-toolbar'>
25
- <a href='#' id='mapp_e_recenter'><?php _e('Center map', 'mappress'); ?></a> |
26
- <?php _e('Click map for lat/lng: ', 'mappress'); ?><span id='mapp_e_latlng'>0,0</span>
27
  </div>
28
  <div id='mapp_edit' class='mapp-e-canvas'></div>
29
  </td>
2
  <div class='mapp-table mapp-searchbox'>
3
  <div>
4
  <div class='mapp-max'>
5
+ <input style='width:100%' type='text' id='mapp_e_saddr' placeholder='<?php _e('Add POI', 'mappress-google-maps-for-wordpress'); ?>'/>
6
  </div>
7
  <div>
8
  <button id='mapp_e_search' class='button button-primary mapp-search-button'></button>
9
  </div>
10
  <div>
11
+ <button id='mapp_e_myloc' class='button mapp-geolocate-button' title='<?php _e('My location', 'mappress-google-maps-for-wordpress');?>'></button>
12
  </div>
13
  </div>
14
  </div>
22
  </td>
23
  <td style='width: 75%'>
24
  <div id='mapp_e_top_toolbar' class='mapp-e-top-toolbar'>
25
+ <a href='#' id='mapp_e_recenter'><?php _e('Center map', 'mappress-google-maps-for-wordpress'); ?></a> |
26
+ <?php _e('Click map for lat/lng: ', 'mappress-google-maps-for-wordpress'); ?><span id='mapp_e_latlng'>0,0</span>
27
  </div>
28
  <div id='mapp_edit' class='mapp-e-canvas'></div>
29
  </td>
forms/map_editor_infobox.php CHANGED
@@ -17,12 +17,12 @@
17
  </div>
18
 
19
  <div id='mapp_e_poi_poly_fields' style='display: none;'>
20
- <?php _e('Color', 'mappress'); ?>:
21
  <span id='mapp_e_poi_color' class='mapp-colorpicker-toggle' tabindex="0"></span>
22
- <?php _e('Opacity', 'mappress'); ?>:
23
- <?php echo Mappress_Settings::dropdown($opacities, '', '', array('id' => 'mapp_e_poi_opacity', 'title' => __('Opacity', 'mappress')) ); ?>
24
- <?php _e('Line', 'mappress'); ?>:
25
- <?php echo Mappress_Settings::dropdown($weights, '', '', array('id' => 'mapp_e_poi_weight', 'title' => __('Weight', 'mappress')) ); ?>
26
  </div>
27
 
28
  <div id='mapp_e_poi_kml_fields' style='display: none'>
@@ -30,13 +30,13 @@
30
  </div>
31
 
32
  <div>
33
- <a id="mapp_e_visual"><?php _e('Visual', 'mappress'); ?></a> | <a id="mapp_e_html"><?php _e('HTML', 'mappress');?></a>
34
  <textarea id='mapp_e_poi_body' class='mapp-e-poi-body' rows='10'></textarea>
35
  </div>
36
 
37
  <div>
38
- <input id='mapp_e_save_poi' class='button button-primary' type='button' value='<?php esc_attr_e('Save', 'mappress'); ?>' />
39
- <input id='mapp_e_cancel_poi' class='button' type='button' value='<?php esc_attr_e('Cancel', 'mappress'); ?>' />
40
  </div>
41
  </div>
42
  </div>
17
  </div>
18
 
19
  <div id='mapp_e_poi_poly_fields' style='display: none;'>
20
+ <?php _e('Color', 'mappress-google-maps-for-wordpress'); ?>:
21
  <span id='mapp_e_poi_color' class='mapp-colorpicker-toggle' tabindex="0"></span>
22
+ <?php _e('Opacity', 'mappress-google-maps-for-wordpress'); ?>:
23
+ <?php echo Mappress_Settings::dropdown($opacities, '', '', array('id' => 'mapp_e_poi_opacity', 'title' => __('Opacity', 'mappress-google-maps-for-wordpress')) ); ?>
24
+ <?php _e('Line', 'mappress-google-maps-for-wordpress'); ?>:
25
+ <?php echo Mappress_Settings::dropdown($weights, '', '', array('id' => 'mapp_e_poi_weight', 'title' => __('Weight', 'mappress-google-maps-for-wordpress')) ); ?>
26
  </div>
27
 
28
  <div id='mapp_e_poi_kml_fields' style='display: none'>
30
  </div>
31
 
32
  <div>
33
+ <a id="mapp_e_visual"><?php _e('Visual', 'mappress-google-maps-for-wordpress'); ?></a> | <a id="mapp_e_html"><?php _e('HTML', 'mappress-google-maps-for-wordpress');?></a>
34
  <textarea id='mapp_e_poi_body' class='mapp-e-poi-body' rows='10'></textarea>
35
  </div>
36
 
37
  <div>
38
+ <input id='mapp_e_save_poi' class='button button-primary' type='button' value='<?php esc_attr_e('Save', 'mappress-google-maps-for-wordpress'); ?>' />
39
+ <input id='mapp_e_cancel_poi' class='button' type='button' value='<?php esc_attr_e('Cancel', 'mappress-google-maps-for-wordpress'); ?>' />
40
  </div>
41
  </div>
42
  </div>
forms/map_media.php CHANGED
@@ -8,8 +8,8 @@
8
  <hr/>
9
 
10
  <div id='mapp_m_list_panel' style='display:none'>
11
- <b><?php _e('Maps for This Post', 'mappress')?></b>
12
- <input class='button' type='button' id='mapp_m_add_map' value='<?php esc_attr_e('New Map', 'mappress')?>' />
13
  <div id='mapp_m_maplist'>
14
  <?php echo Mappress_Map::get_map_list(); ?>
15
  </div>
@@ -19,17 +19,17 @@
19
  <div class='mapp-panel'>
20
  <table>
21
  <tr>
22
- <td><?php _e('Map ID', 'mappress');?>:</td>
23
  <td><span id='mapp_m_mapid'></span></td>
24
  </tr>
25
 
26
  <tr>
27
- <td><?php _e('Map Title', 'mappress');?>:</td>
28
  <td><input id='mapp_m_title' type='text' size='40' /></td>
29
  </tr>
30
 
31
  <tr>
32
- <td><?php _e('Size', 'mappress');?>:</td>
33
  <td>
34
  <?php
35
  $sizes = array();
@@ -43,9 +43,9 @@
43
  </table>
44
  </div>
45
  <div>
46
- <input class='button button-primary' type='button' id='mapp_m_save' value='<?php esc_attr_e('Save', 'mappress'); ?>' />
47
- <input class='button' type='button' id='mapp_m_cancel' value='<?php esc_attr_e('Cancel', 'mappress'); ?>' />
48
- <input class='button' type='button' id='mapp_m_insert' value='<?php esc_attr_e('Insert into post', 'mappress'); ?>' />
49
  </div>
50
  <hr/>
51
  <div id='mapp_m_editor'>
8
  <hr/>
9
 
10
  <div id='mapp_m_list_panel' style='display:none'>
11
+ <b><?php _e('Maps for This Post', 'mappress-google-maps-for-wordpress')?></b>
12
+ <input class='button' type='button' id='mapp_m_add_map' value='<?php esc_attr_e('New Map', 'mappress-google-maps-for-wordpress')?>' />
13
  <div id='mapp_m_maplist'>
14
  <?php echo Mappress_Map::get_map_list(); ?>
15
  </div>
19
  <div class='mapp-panel'>
20
  <table>
21
  <tr>
22
+ <td><?php _e('Map ID', 'mappress-google-maps-for-wordpress');?>:</td>
23
  <td><span id='mapp_m_mapid'></span></td>
24
  </tr>
25
 
26
  <tr>
27
+ <td><?php _e('Map Title', 'mappress-google-maps-for-wordpress');?>:</td>
28
  <td><input id='mapp_m_title' type='text' size='40' /></td>
29
  </tr>
30
 
31
  <tr>
32
+ <td><?php _e('Size', 'mappress-google-maps-for-wordpress');?>:</td>
33
  <td>
34
  <?php
35
  $sizes = array();
43
  </table>
44
  </div>
45
  <div>
46
+ <input class='button button-primary' type='button' id='mapp_m_save' value='<?php esc_attr_e('Save', 'mappress-google-maps-for-wordpress'); ?>' />
47
+ <input class='button' type='button' id='mapp_m_cancel' value='<?php esc_attr_e('Cancel', 'mappress-google-maps-for-wordpress'); ?>' />
48
+ <input class='button' type='button' id='mapp_m_insert' value='<?php esc_attr_e('Insert into post', 'mappress-google-maps-for-wordpress'); ?>' />
49
  </div>
50
  <hr/>
51
  <div id='mapp_m_editor'>
js/mappress.min.js CHANGED
@@ -1 +1 @@
1
- var mapp=window.mapp||{};+function(n){mapp.Map=function(t){function yt(){var e,h,n;if(!l&&(l=["roadmap","satellite","terrain","hybrid"],mappl10n.styles))for(e in mappl10n.styles)l.push(e);for(o=o?new google.maps.LatLng(t.center.lat,t.center.lng):new google.maps.LatLng(0,0),h={backgroundColor:"transparent",center:o,draggable:ui,keyboardShortcuts:ct,mapTypeControl:li,mapTypeControlOptions:{style:ai,mapTypeIds:l},maxZoom:yi,minZoom:pi,overviewMapControl:wi,overviewMapControlOptions:{opened:bi},panControl:ki,rotateControl:gi,scaleControl:nr,scrollwheel:tr,streetViewControl:ur,tilt:er,zoom:a?a:0,zoomControl:cr,zoomControlOptions:{style:lr}},r=new google.maps.Map(v,h),n=0;n<i.length;n++)i[n].setMap(u);ar();u.setMapTypeId(wt);vr();c=="ib"?(mapp.InfoBox.prototype=new google.maps.OverlayView,f=new mapp.InfoBox):f=new google.maps.InfoWindow;c=="ib"&&(ct=!1);et=new mapp.Geocoder(u,ci,ti);st!="none"&&(s=new mapp.Directions(u,st,et,ii,ri));u.initCenter()}function ar(){var n,t,i;for(n in mappl10n.styles)t=mappl10n.styles[n],i=new google.maps.StyledMapType(t,{name:n}),r.mapTypes.set(n,i),fr==n&&r.setOptions({styles:t})}function vr(){sr&&ot("traffic",mappl10n.traffic,si);dt&&ot("bicycling",mappl10n.bike,ei);hr&&ot("transit",mappl10n.transit,hi)}function ot(n,t,i){var f=e+"_"+n,o=i?"checked='checked'":"",s="<div class='gmnoprint mapp-control'><input type='checkbox' id='"+f+"' "+o+" /> "+t+"<\/div>",u=jQuery(s).get(0);r.controls[google.maps.ControlPosition.TOP_RIGHT].push(u);i&&pt(n);google.maps.event.clearListeners(u,"click");google.maps.event.addDomListener(u,"click",function(){pt(n)})}function pt(n){var i=e+"_"+n,t;switch(n){case"transit":g=g?g:new google.maps.TransitLayer;t=g;break;case"traffic":d=d?d:new google.maps.TrafficLayer;t=d;break;case"bicycling":k=k?k:new google.maps.BicyclingLayer;t=k}t.getMap()?(jQuery("#"+i).prop("checked",!1),t.setMap(null)):(jQuery("#"+i).prop("checked",!0),t.setMap(r))}var o=t.center,w=t.height,h=t.mapid,wt=t.mapTypeId?t.mapTypeId:"roadmap",bt=t.metaKey,e=t.name,kt=t.options,it=t.query,rt=t.title,b=t.width,a=parseInt(t.zoom,10),yr=t.options.adaptive,dt=t.options.bicycling,gt=t.options.bigHeight,ni=t.options.bigWidth,ti=t.options.country,ut=t.options.dataTables,st=t.options.directions,ii=t.options.directionsServer,ri=t.options.directionsUnits,ui=t.options.draggable,fi=t.options.editable,ht=t.options.from,ei=t.options.initialBicycling,oi=t.options.initialOpenDirections,ft=t.options.initialOpenInfo,si=t.options.initialTraffic,hi=t.options.initialTransit,c=t.options.iwType,ct=t.options.keyboardShortcuts,ci=t.options.language,li=t.options.mapTypeControl,ai=parseInt(t.options.mapTypeControlStyle,10),l=t.options.mapTypeIds,vi=t.options.mashupClick,yi=parseInt(t.options.maxZoom),pi=parseInt(t.options.minZoom),wi=t.options.overviewMapControl,bi=t.options.overviewMapControlOpened,ki=t.options.panControl,di=t.options.poiZoom,gi=t.options.rotateControl,nr=t.options.scaleControl,tr=t.options.scrollwheel,ir=t.height,rr=t.width,ur=t.options.streetViewControl,fr=t.options.style,er=parseInt(t.options.tilt),lt=t.options.to,or=t.options.tooltips,sr=t.options.traffic,hr=t.options.transit,cr=t.options.zoomControl,lr=parseInt(t.options.zoomControlStyle,10),u=this,k,d,g,s=null,nt,at,tt,v,y,et=null,r=null,f=null,i=[],vt=!1,p;this.display=function(){if(nt=jQuery("#"+e+"_dialog"),at=jQuery("#"+e+"_directions"),tt=jQuery("#"+e+"_layout"),v=document.getElementById(e),y=jQuery("#"+e+"_poi_list"),!v)return mapp.lib.log("MapPress: Missing map name or container for map: "+e);if(typeof google=="undefined")return mapp.lib.log("MapPress: Google API not loaded");if(mapp.lib.jqVersionCheck("1.7")||mapp.lib.log("jQuery version is too old: "+n.fn.jquery),p=google.maps.Marker.MAX_ZINDEX,at.append(jQuery("#"+e+"_directions_").contents()),y.append(jQuery("#"+e+"_poi_list_").contents()),this.setDataTables(),it){this.ajaxQuery(function(){yt()});return}u.setPois(t.pois,!1);yt()};this.getQuery=function(){return it};this.setQuery=function(n){it=n};this.setDialog=function(n){n=n?n:'<span class="mapp-spinner"><\/span>'+mappl10n.loading;n='<div class="mapp-dialog-inner">'+n+"<\/div>";jQuery(nt).html(n);jQuery(nt).show()};this.hideDialog=function(){jQuery(nt).hide()};this.setPoiList=function(n){typeof n=="string"?y.html(n):y.append(n);this.setDataTables()};this.setDataTables=function(){if(ut&&typeof jQuery.fn.dataTable!="undefined"){var n=ut==!0?{bFilter:!1,bPaginate:!1}:ut;jQuery("table",y).dataTable(n)}};this.getOptions=function(){return kt};this.getResized=function(){return vt};this.show=function(){tt.show();this.display()};this.closeInfoWindow=function(){f.close()};this.openDirections=function(n,t,i){var r,u;typeof n=="object"?(r=n.address?n.address:n.getPosition().toUrlValue(),n.open()):r=n;typeof t=="object"?(u=t.address?t.address:t.getPosition().toUrlValue(),t.open()):u=t;s.open(r,u,i)};this.setMapTypeId=function(n){n=n&&jQuery.inArray(n,l)!=-1?n:l[0];r.setMapTypeId(n)};this.setCenter=function(n,t){r.setCenter(new google.maps.LatLng(n,t))};this.setZoom=function(n){r.setZoom(n)};this.getPoiZoom=function(){return parseInt(di)};this.poiToFront=function(n){p++;n.setZIndex(p)};this.getMap=function(){return r};this.getGeocoder=function(){return et};this.getName=function(){return e};this.setName=function(n){e=n};this.getMapid=function(){return h};this.setMapid=function(n){h=n};this.getTitle=function(){return rt};this.setTitle=function(n){rt=n};this.getWidth=function(){return b};this.setWidth=function(n){b=n};this.getHeight=function(){return w};this.setHeight=function(n){w=n};this.getInfoWindow=function(){return f};this.getEditable=function(){return fi};this.getTooltips=function(){return or};this.getPoi=function(n){return typeof n=="string"&&(n=parseInt(n,10)),i[n]};this.getPoiById=function(n){for(var t=0;t<i.length;t++)if(i[t].postid==n)return i[t];return null};this.getPois=function(){return i};this.insertPoi=function(n){i.unshift(n);n.setMap(this)};this.addPoi=function(n){i.push(n);n.setMap(this)};this.removePoi=function(n){var t=jQuery.inArray(n,i);t!=-1&&(i[t].setMap(null),i.splice(t,1))};this.setPois=function(n,t){for(var u,r=0;r<i.length;r++)i[r].setMap(null);for(i=[],r=0;r<n.length;r++)u=new mapp.Poi,u.fromJSON(n[r]),i.push(u),t&&u.setMap(this),u.setZIndex(p+n.length-1-r);p+=n.length-1};this.showPois=function(){for(var n=0;n<i.length;n++)i[n].setVisible(!0)};this.hidePois=function(){for(var n=0;n<i.length;n++)i[n].setVisible(!1)};this.sortPois=function(n){for(var u,t=Array(),r=0;r<n.length;r++){if(u=parseInt(n[r]),isNaN(u))return!1;t.push(i[u])}return t.length!=i.length?!1:(i=t,!0)};this.openPoi=function(n,t){var r,i;if(c&&c!="none"){if(vi=="post"&&n.postid){window.location.assign(n.url);return}i={html:null};google.maps.event.trigger(u,"poicontent",n,i);r=i.content?i.content:t&&typeof t.featureData!="undefined"?t.featureData.infoWindowHtml:n.html;this.openInfoWindow(n,r,t)}};this.openInfoWindow=function(n,t,i){(s&&s.close(),c&&c!="none")&&(this.poiToFront(n),f.close(),f.setContent(t),google.maps.event.addListenerOnce(f,"domready",function(){google.maps.event.trigger(u,"poidomready",n)}),n.type=="kml"&&i?(f.setOptions({pixelOffset:i.pixelOffset,position:i.latLng}),f.open(r)):n.type?(f.setOptions({position:n.getPosition()}),f.open(r)):f.open(r,n.overlay))};this.closeInfoWindow=function(){f.close()};this.resize=function(n,t){var i=r.getCenter();n&&t&&(jQuery(v).width(n),jQuery(v).height(t),b=n,w=t);google.maps.event.trigger(r,"resize");r.setCenter(i);vt=!0;return};this.initCenter=function(){if(this.closeInfoWindow(),google.maps.event.addListenerOnce(r,"idle",function(){u.initWindows()}),o&&o.lat()&&o.lng())r.setCenter(o),r.setZoom(a);else{var n=a?a:!0;u.autoCenter(n)}};this.initWindows=function(){var i,n,t;s&&oi?(n=jQuery.trim(ht),t=ht==null&&lt==null?"0":jQuery.trim(lt),n=jQuery.isNumeric(n)?this.getPoi(n):n,t=jQuery.isNumeric(t)?this.getPoi(t):t,typeof n=="object"?n.center(!1):typeof t=="object"&&t.center(!1),u.openDirections(n,t,!1)):ft&&(i=jQuery.isNumeric(ft)?u.getPoi(ft):u.getPoi(0),i&&i.open())};this.autoCenter=function(n){var t,u,f;if(i.length==0){this.setCenter(0,0);typeof n=="number"?r.setZoom(n):r.setZoom(1);return}if(i.length==1){i[0].center(n);return}for(t=new google.maps.LatLngBounds,u=0;u<i.length;u++)f=i[u].getBounds(),t=f?t.union(f):t.extend(i[u].getPosition());if(n===!1){r.setCenter(t.getCenter());return}if(typeof n=="number"){r.setCenter(t.getCenter());r.setZoom(n);return}r.fitBounds(t)};this.reset=function(){this.initCenter()};this.bigger=function(n,t,i){s&&s.close();this.closeInfoWindow();jQuery(n).text()==t?(jQuery(n).text(i),jQuery(tt).width(ni),this.resize("100%",gt)):(jQuery(n).text(t),jQuery(tt).width(rr),this.resize("100%",ir))};this.toJSON=function(){return{center:{lat:r.getCenter().lat(),lng:r.getCenter().lng()},height:w,mapid:h,mapTypeId:r.getMapTypeId(),metaKey:bt,pois:i,title:rt,width:b,zoom:r.getZoom()}};this.ajaxSave=function(n){var t,i;t=typeof Prototype!="undefined"&&typeof Object.toJSON!="undefined"?Object.toJSON(u):t=JSON.stringify(u);i={action:"mapp_save",map:t,postid:mappl10n.options.postid};mapp.Ajax("POST",i,function(t){t.status=="OK"&&(h=t.data.mapid,n(t.data))})};this.ajaxDelete=function(n){h||n();var t={action:"mapp_delete",mapid:h};mapp.Ajax("POST",t,function(t){t.status=="OK"&&n()})}};mapp.Map.ajaxCreate=function(n,t,i){mapp.Ajax("GET",{action:"mapp_create"},function(r){if(r.status=="OK"){jQuery.extend(r.data.map.options,t);r.data.map.name=n;var u=new mapp.Map(r.data.map);i(u)}})};mapp.Map.ajaxGet=function(n,t,i,r){var u={action:"mapp_get",mapid:n};mapp.Ajax("GET",u,function(n){if(n.status=="OK"){jQuery.extend(n.data.map.options,i);n.data.map.name=t;var u=new mapp.Map(n.data.map);r(u)}})};mapp.Map.ajaxDelete=function(n,t){var i={action:"mapp_delete",mapid:n};mapp.Ajax("POST",i,function(n){n.status=="OK"&&t&&t()})};mapp.Ajax=function(n,t,i){jQuery.ajax({type:n,cache:!1,url:mappl10n.options.ajaxurl,data:t,success:function(n){if(n.output&&(mappl10n.options.admin||mappl10n.options.debug)&&alert("AJAX Error\r\n"+n.output),n.status=="OK"){i(n);return}(mappl10n.options.admin||mappl10n.options.debug)&&(typeof n=="object"?alert("AJAX Error\r\n"+n.status):alert("AJAX Error\r\n"+n))},error:function(n,t,i){typeof i!="undefined"&&i!=""&&mappl10n.ajaxErrors&&alert("AJAX ERROR\r\nStatus="+t+"\r\nError="+i+"\r\nResponseText="+n.responseText)}})}}(jQuery);mapp=window.mapp||{};mapp.Directions=function(n,t,i,r,u){function p(){jQuery(".mapp-dir-swap",f).click(function(){var n=jQuery(".mapp-dir-daddr",f).val(),t=jQuery(".mapp-dir-saddr",f).val();return jQuery(".mapp-dir-saddr",f).val(n),jQuery(".mapp-dir-daddr",f).val(t),jQuery(".mapp-dir-get",f).click(),!1});jQuery(".mapp-dir-get",f).click(function(){return s.getDirections(),!1});jQuery(".mapp-dir-print",f).click(function(){s.printDirections()});jQuery(".mapp-dir-close",f).click(function(){return s.close(),!1});jQuery(".mapp-travelmode",f).click(function(){return jQuery(".mapp-travelmode",f).removeClass("mapp-travelmode-on"),jQuery(this).addClass("mapp-travelmode-on"),s.getDirections(),!1});jQuery(".mapp-myloc",f).click(function(){return c.geolocate(function(n){n?(jQuery(".mapp-dir-saddr",f).val("("+n.coords.latitude+", "+n.coords.longitude+")"),jQuery(".mapp-dir-get",f).click()):alert(mappl10n.no_geolocate)}),!1})}function w(n,t,i){var u=jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-walk")?google.maps.DirectionsTravelMode.WALKING:jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-transit")?google.maps.DirectionsTravelMode.TRANSIT:jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-bike")?google.maps.DirectionsTravelMode.BICYCLING:google.maps.DirectionsTravelMode.DRIVING;var o={travelMode:u,transitOptions:{departureTime:null},provideRouteAlternatives:!0,origin:n,destination:t,unitSystem:y},r=jQuery(".mapp-dir-renderer",f).get(0);jQuery(".mapp-dir-renderer",f).empty();l||(l=new google.maps.DirectionsService);l.route(o,function(n,t){switch(t){case google.maps.DirectionsStatus.OK:h.hidePois();e?(e.setDirections(n),e.setMap(a),e.setPanel(r)):e=new google.maps.DirectionsRenderer({map:a,panel:r,directions:n,hideRouteList:!1,draggable:!0});break;case google.maps.DirectionsStatus.NOT_FOUND:alert(mappl10n.dir_not_found);break;case google.maps.DirectionsStatus.ZERO_RESULTS:alert(mappl10n.dir_zero_results);break;default:alert(mappl10n.dir_default+t)}i()})}var h=n,v=t,c=i,o=r,y=u,f=jQuery("#"+n.getName()+"_directions"),e,l,a=n.getMap(),s=this;o.toLowerCase().indexOf("http")==-1&&(o="https://"+o);p();this.open=function(n,t,i){if(v=="google"){this.openGoogle(n,t);return}jQuery(f).show();jQuery(".mapp-dir-saddr",f).val(n);jQuery(".mapp-dir-daddr",f).val(t);(i||typeof i=="undefined")&&(jQuery(".mapp-dir-get",f).focus(),jQuery(".mapp-dir-saddr",f).focus())};this.close=function(){jQuery(f).hide();e&&(e.setPanel(null),e.getMap()&&(e.setMap(null),h.showPois()))};this.getDirections=function(){h.closeInfoWindow();jQuery(".mapp-spinner",f).show();var n=jQuery(".mapp-dir-saddr",f),t=jQuery(".mapp-dir-daddr",f),i=jQuery(".mapp-dir-saddr-err",f),r=jQuery(".mapp-dir-daddr-err",f);c.geocodeField(n,i,function(n){c.geocodeField(t,r,function(t){n&&t?w(n,t,function(){jQuery(".mapp-spinner",f).hide();return}):jQuery(".mapp-spinner",f).hide()})})};this.printDirections=function(){var t,n=jQuery(".mapp-travelmode-on > span",f);t=n.hasClass("mapp-dir-walk")?"w":n.hasClass("mapp-dir-bike")?"b":n.hasClass("mapp-dir-transit")?"r":"d";this.openGoogle(jQuery(".mapp-dir-saddr",f).val(),jQuery(".mapp-dir-daddr",f).val(),t)};this.openGoogle=function(n,t,i){var r=o;r+="?saddr="+encodeURIComponent(n);r+="&daddr="+encodeURIComponent(t);i&&(r+="&dirflg="+i);window.open(r)}};mapp=window.mapp||{};mapp.Geocoder=function(n,t,i){function f(n,t){jQuery(n).removeClass("mapp-error");jQuery(t).hide()}function e(n,t,i){jQuery(n).addClass("mapp-error");jQuery(t).html(i);jQuery(t).show()}var o,u,s,h,c,r;o=i;h=t;c=n;s=c.getMap();r=this;this.geocode=function(n,t){var i=n instanceof google.maps.LatLng?{latLng:n}:{address:n,region:o,language:h};i.bounds=s.getBounds();u||(u=new google.maps.Geocoder);u.geocode(i,function(n,i){if(n){for(var r=0;r<n.length;r++)n[r].formatted_address==""&&n.splice(r,1);t(n[0],i)}else t(null,i)})};this.geolocate=function(n){if(!navigator||!navigator.geolocation)return null;navigator.geolocation.getCurrentPosition(function(t){n(t)},function(){n(null)},{timeout:1e4,enableHighAccuracy:!0,maximumAge:3e4})};this.stringToLatLng=function(n){var t=n.split(",",2),i=Number(t[0]),r=Number(t[1]);return isNaN(i)||isNaN(r)?!1:new google.maps.LatLng(i,r)};this.geocodeField=function(n,t,i){f(n,t);checkAddress(n,t,jQuery(n).val(),function(r){if(!r){e(n,t,mappl10n.no_address);i(null);return}if(r&&r.formatted_address){jQuery(n).val(r.formatted_address);i(r.formatted_address);return}i(r);return})};this.autocompleteField=function(n,t,i,u,o){jQuery(n).keypress(function(i){i.which==13&&(checkAddress(n,t,jQuery(n).val(),o),i.preventDefault())});jQuery(i).click(function(){return checkAddress(n,t,jQuery(n).val(),o),!1});jQuery(u).click(function(){return f(n,t),r.geolocate(function(i){if(i){var r="("+i.coords.latitude+", "+i.coords.longitude+")";jQuery(n).val("");checkAddress(n,t,r,o)}else e(n,t,mappl10n.no_geolocate);return}),!1})};checkAddress=function(n,t,i,u){if(f(n,t),i=jQuery.trim(i),i==""){u(null);return}var o=r.stringToLatLng(i);if(o){u(o);return}if(i.substring(0,4)=="http"){u(i);return}r.geocode(i,function(i,r){if(!i||r!=google.maps.GeocoderStatus.OK){e(n,t,mappl10n.no_address);u(null);return}u(i);return})}};mapp.Geocoder.parseAddress=function(n){return!n||n==""?{firstLine:"",secondLine:""}:(n.lastIndexOf(", USA")>0||n.lastIndexOf(", United States")>0)&&(n.lastIndexOf(", USA")>0&&(n=n.slice(0,n.lastIndexOf(", USA"))),n.lastIndexOf(", United States")>0&&(n=n.slice(0,n.lastIndexOf(", United States"))),n.indexOf(",")==n.lastIndexOf(","))?{firstLine:n,secondLine:""}:n.indexOf(",")==-1?{firstLine:n,secondLine:""}:{firstLine:n.slice(0,n.indexOf(",")),secondLine:n.slice(n.indexOf(", ")+2)}};mapp=window.mapp||{};mapp.Icons={};mapp.Icons.get=function(){return"https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png"};mapp.Icons.getUrl=function(){return"https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png"};mapp=window.mapp||{};mapp.InfoBox=function(){var u,f,n,i,t,r=this;this.setContent=function(n){u=n};this.onAdd=function(){n=jQuery("<div class='mapp-ib'><div class='mapp-ib-close'>X<\/div><\/div>");t=jQuery("<div class='mapp-ib-tip'><\/div>");typeof u=="string"?jQuery(n).append(u):jQuery(n).append(jQuery(u));jQuery("body").append(n);jQuery("body").append(t);jQuery(".mapp-ib-close",n).click(function(){r.close()});jQuery(window).resize(function(){r.close()})};this.draw=function(){var c=jQuery(n).is(":visible"),u=r.getProjection().fromLatLngToContainerPixel(i),f,o,s;if(u.x=parseInt(u.x),u.y=parseInt(u.y),f=jQuery(this.getMap().getDiv()),u.x>f.width()||u.x<0||u.y>f.height()||u.y<0){jQuery(n).hide();jQuery(t).hide();return}jQuery(n).show();jQuery(t).show();o=f.offset().left+u.x;s=f.offset().top+u.y-32;jQuery(t).offset({top:s-t.outerHeight()-2,left:o-parseInt(t.outerWidth()/2)});var e=o-parseInt(n.outerWidth()/2),l=s-n.outerHeight()-t.outerHeight(),h=jQuery(document).width();e+n.outerWidth()>h&&(e=Math.max(h-n.outerWidth(),o-n.outerWidth()+parseInt(t.outerWidth()/2)));e<0&&(e=0);jQuery(n).offset({top:l,left:e});c||google.maps.event.trigger(this,"domready")};this.onRemove=function(){jQuery(n).remove();jQuery(t).remove()};this.setPosition=function(n){i=n};this.open=function(n,t){f=n;t&&(i=typeof t.getPosition=="function"?t.getPosition():t.getBounds().getCenter());this.setMap(f);this.disableAutoPan&&n.getBounds().contains(i)||f.panTo(i);google.maps.event.addListenerOnce(n,"drag",function(){r.close()});google.maps.event.addListenerOnce(n,"click",function(){r.close()})};this.close=function(){google.maps.event.trigger(this,"closeclick");this.setMap(null)}};mapp=window.mapp||{};this.JSON||(this.JSON={}),function(){function i(n){return n<10?"0"+n:n}function f(n){return o.lastIndex=0,o.test(n)?'"'+n.replace(o,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function r(i,e){var h,c,l,a,v=n,s,o=e[i];o&&typeof o=="object"&&typeof o.toJSON=="function"&&(o=o.toJSON(i));typeof t=="function"&&(o=t.call(e,i,o));switch(typeof o){case"string":return f(o);case"number":return isFinite(o)?String(o):"null";case"boolean":case"null":return String(o);case"object":if(!o)return"null";if(n+=u,s=[],Object.prototype.toString.apply(o)==="[object Array]"){for(a=o.length,h=0;h<a;h+=1)s[h]=r(h,o)||"null";return l=s.length===0?"[]":n?"[\n"+n+s.join(",\n"+n)+"\n"+v+"]":"["+s.join(",")+"]",n=v,l}if(t&&typeof t=="object")for(a=t.length,h=0;h<a;h+=1)c=t[h],typeof c=="string"&&(l=r(c,o))&&s.push(f(c)+(n?": ":":")+l);else for(c in o)Object.hasOwnProperty.call(o,c)&&(l=r(c,o))&&s.push(f(c)+(n?": ":":")+l);return l=s.length===0?"{}":n?"{\n"+n+s.join(",\n"+n)+"\n"+v+"}":"{"+s.join(",")+"}",n=v,l}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,u,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(u=n="",typeof e=="number")for(o=0;o<e;o+=1)u+=" ";else typeof e=="string"&&(u=e);if((t=f)&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw Error("JSON.stringify");return r("",{"":i})});typeof JSON.parse!="function"&&(JSON.parse=function(n,t){function r(n,i){var f,e,u=n[i];if(u&&typeof u=="object")for(f in u)Object.hasOwnProperty.call(u,f)&&(e=r(u,f),e!==undefined?u[f]=e:delete u[f]);return t.call(n,i,u)}var i;if(n=String(n),e.lastIndex=0,e.test(n)&&(n=n.replace(e,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(n.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return i=eval("("+n+")"),typeof t=="function"?r({"":i},""):i;throw new SyntaxError("JSON.parse");})}();mapp.lib={ajax:function(n){var i,t;if(jQuery.extend({type:"GET",cache:!1,data:null,spinner:null,callback:jQuery.noop},n),n.cache)for(typeof mapp.lib.ajax.cache=="undefined"&&(mapp.lib.ajax.cache=[]),i=JSON.stringify(n.data),t=0;t<mapp.lib.ajax.cache.length;t++)if(mapp.lib.ajax.cache[t].data==i){n.callback(mapp.lib.ajax.cache[t].response);return}n.spinner&&mapp.lib.spinner(n.spinner,!0);jQuery.ajax({type:n.type,cache:!1,url:mappl10n.options.ajaxurl,data:n.data,success:function(t,i,r){if(mapp.lib.spinner(n.spinner,!1),t.output&&(mappl10n.options.admin||mappl10n.options.debug)){alert("AJAX Error\r\n"+t.output);return}if(t.status=="OK"){n.cache&&mapp.lib.ajax.cache.push({data:JSON.stringify(n.data),response:t});n.callback&&n.callback(t,i,r);return}if(mappl10n.options.admin||mappl10n.options.debug){var u=typeof t=="object"?t.status:t;alert("AJAX ERROR\r\nResponse="+u+" TextStatus="+i+"\r\nResponseText="+r.responseText);return}},error:function(t,i,r){if((n.spinner&&mapp.lib.spinner(n.spinner,!1),typeof r!="undefined"&&r!="")&&(mappl10n.options.admin||mappl10n.options.debug)){alert("AJAX ERROR\r\nTextStatus="+i+"\r\nError="+r+"\r\nResponseText="+t.responseText);return}}})},jqVersionCheck:function(n){if(typeof jQuery=="undefined"||typeof n=="undefined")return!1;for(n=n.split("."),v=jQuery.fn.jquery.split("."),i=0;i<n.length;i++){var t=parseInt(n[i]),r=typeof v[i]!="undefined"?parseInt(v[i]):0;if(r!=t)return r>t}return!0},log:function(n,t){mappl10n.options.debug&&window.console&&console.log(n+" : "+t)},spinner:function(n,t){return t?(jQuery(n).addClass("mapp-spinner"),jQuery(n).prepend('<div class="mapp-spinner-overlay"><\/div><div class="mapp-spinner-icon"><\/div>')):(jQuery(n).removeClass("mapp-spinner"),jQuery(".mapp-spinner-overlay, .mapp-spinner-icon",n).remove()),n},scrollTo:function(n,t){if(n&&t&&n.length&&t.length){var r=jQuery(n).scrollTop(),u=jQuery(n).height(),i=jQuery(t).position().top,f=i+jQuery(t).height();(i<0||f>u)&&jQuery(n).scrollTop(r+i)}},stringToInt:function(n){for(arg in n){var t=n[arg];typeof t=="object"?mapp.lib.stringToInt(t):n[arg]=jQuery.isNumeric(t)?parseInt(t):t}return n}};jQuery("body").on("tabsactivate tabsshow",function(n,t){var i=t.newPanel?t.newPanel:t.panel;i&&jQuery(".mapp-canvas",i).each(function(){var t=jQuery(this).attr("id"),n=window[t];n.getResized()||(n.resize(),n.initCenter())})});mapp=window.mapp||{};+function(n){mapp.Places=function(t,i){function l(){i=n.extend({callback:n.noop,gmap:null,kml:!1,parse:!0,types:["geocode"]},i);h=n(t);o=i.gmap;r=n("input",t);f=new google.maps.places.Autocomplete(r.get(0),{types:i.types});f.bindTo("bounds",o);s=new google.maps.places.AutocompleteService;_placesService=new google.maps.places.PlacesService(o);google.maps.event.addListener(f,"place_changed",function(){var n=f.getPlace();i.parse?n&&n.geometry&&n.geometry.viewport?(e.set(c(n.formatted_address,"text")),i.callback(n)):e.parse(i.callback):i.callback});n("[data-mapp-geolocate]",h).click(function(){return e.geolocate(),!1})}function c(n,t){var i;return(n=jQuery.trim(n),n=n.replace(", United States of America","").replace(", USA","").replace(", United States",""),t=="text")?n:(i=n.indexOf(","),i==-1?[n]:[n.substring(0,i),jQuery.trim(n.substring(i+1))])}function u(n){r.toggleClass("mapp-error",!!n)}var f,s,o,r,h,e=this;this.set=function(n){r.blur();r.val(n)};this.get=function(){return n.trim(r.val())};this.focus=function(){r.focus()};this.parse=function(n){if(u(!1),value=this.get(),!value)return this.focus(),u(!0);if(i.kml){if(input=="kml")return n("http://kml-samples.googlecode.com/svn/trunk/kml/Placemark/placemark.kml");if(input.substring(0,4)=="http")return n(input)}var t=value.split(",");if(t.length==2&&!isNaN(t[0])&&!isNaN(t[1]))return n({geometry:{location:new google.maps.LatLng(t[0],t[1])}});s.getPlacePredictions({input:value,types:i.types},function(t,i){if(i!="OK"||t==null||t.length==0)return u(!0);_placesService.getDetails({placeId:t[0].place_id},function(t,i){return i!="OK"||!t||!t.geometry?u(!0):(e.set(c(t.formatted_address,"text")),n(t))})})};this.geolocate=function(){if(u(!1),!navigator||!navigator.geolocation){alert(mappl10n.no_geolocate);return}navigator.geolocation.getCurrentPosition(function(n){i.callback(new google.maps.LatLng(n.coords.latitude,n.coords.longitude))},function(){return u(!0)},{timeout:1e4,enableHighAccuracy:!0,maximumAge:3e4})};l.apply(this)}}(jQuery);mapp=window.mapp||{};mapp.Poi=function(){this.address=null;this.body=null;this.html=null;this.iconid=null;this.map=null;this.overlay=null;this.postid=null;this.title="";this.url=null;this.type=null;this.viewport=null;for(var n in arguments[0])typeof arguments[0][n]!="undefined"&&(this[n]=arguments[0][n])};mapp.Poi.prototype={fromJSON:function(n){var u,f,i,o,t,r,s,e;this.address=n.correctedAddress;this.body=n.body;this.correctedAddress=n.correctedAddress;this.html=n.html;this.iconid=n.iconid;this.postid=n.postid;this.title=n.title;this.type=n.type;this.url=n.url;n.viewport&&n.viewport.sw&&n.viewport.ne&&(u=new google.maps.LatLng(n.viewport.sw.lat,n.viewport.sw.lng),f=new google.maps.LatLng(n.viewport.ne.lat,n.viewport.ne.lng),this.viewport=u.lat()==0&&u.lng()==0&&f.lat()==0&&f.lng()==0?null:new google.maps.LatLngBounds(u,f));i=[];o=[];switch(this.type){case"polygon":if(n.poly&&n.poly.paths)for(t=0;t<n.poly.paths.length;t++){for(i=[],r=0;r<n.poly.paths[t].length;r++)i.push(new google.maps.LatLng(n.poly.paths[t][r].lat,n.poly.paths[t][r].lng));o.push(new google.maps.MVCArray(i))}this.overlay=new google.maps.Polygon({paths:new google.maps.MVCArray(o)});this.setColors(n.poly);break;case"polyline":if(n.poly&&n.poly.path)for(t=0;t<n.poly.path.length;t++)i.push(new google.maps.LatLng(n.poly.path[t].lat,n.poly.path[t].lng));this.overlay=new google.maps.Polyline({path:new google.maps.MVCArray(i)});this.setColors(n.poly);break;case"circle":e=new google.maps.LatLng(n.point.lat,n.point.lng);this.overlay=new google.maps.Circle({center:e,radius:parseFloat(n.poly.radius)});this.setColors(n.poly);break;case"rectangle":this.overlay=new google.maps.Rectangle({bounds:this.viewport});this.setColors(n.poly);break;case"kml":s=n.kml&&n.kml.url?n.kml.url:"";this.overlay=new google.maps.KmlLayer(s,{preserveViewport:!0,suppressInfoWindows:!0});break;case"":default:e=new google.maps.LatLng(n.point.lat,n.point.lng);this.overlay=new google.maps.Marker({position:e})}},toJSON:function(){var n={address:this.address,body:this.body,correctedAddress:this.address,iconid:this.iconid,point:null,poly:null,title:this.title,type:this.type,viewport:null},r=this.getPosition(),i,t;if(n.point={lat:r.lat(),lng:r.lng()},i=this.viewport?this.viewport:this.getBounds(),i&&(n.viewport={sw:{lat:i.getSouthWest().lat(),lng:i.getSouthWest().lng()},ne:{lat:i.getNorthEast().lat(),lng:i.getNorthEast().lng()}}),this.type=="kml"&&(n.kml={url:this.overlay.getUrl()},t=this.overlay.getDefaultViewport(),n.viewport={sw:{lat:t.getSouthWest().lat(),lng:t.getSouthWest().lng()},ne:{lat:t.getNorthEast().lat(),lng:t.getNorthEast().lng()}}),this.isPoly()){n.poly=this.getColors();switch(this.type){case"circle":n.poly.radius=this.overlay.getRadius();break;case"polyline":n.poly.path=[];this.overlay.getPath().forEach(function(t){n.poly.path.push({lat:t.lat(),lng:t.lng()})});break;case"polygon":n.poly.paths=[];this.overlay.getPaths().forEach(function(t){var i=[];t.forEach(function(n){i.push({lat:n.lat(),lng:n.lng()})});n.poly.paths.push(i)});break;case"rectangle":t=this.overlay.getBounds();n.viewport={sw:{lat:t.getSouthWest().lat(),lng:t.getSouthWest().lng()},ne:{lat:t.getNorthEast().lat(),lng:t.getNorthEast().lng()}}}}return n},setTooltip:function(n){this.map.getTooltips()&&(this.type||(n?this.overlay.setTitle(n):this.overlay.setTitle(jQuery("<div>").html(this.title).text())))},setMap:function(n){var t=this;if(google.maps.event.clearInstanceListeners(this.overlay),n==null){this.overlay.setMap(null);return}this.type=="kml"&&(google.maps.event.addListener(this.overlay,"defaultviewport_changed",function(){t.viewport=t.overlay.getDefaultViewport()}),google.maps.event.addListener(this.overlay,"status_changed",function(){var n=t.overlay.getStatus();n!="OK"&&mappl10n.ajaxErrors&&alert(mappl10n.kml_error+":"+n)}));this.map=n;this.overlay.setMap(n.getMap());this.setEditable(this.map.getEditable());this.setIcon(this.iconid);this.setTooltip();google.maps.event.addListener(this.overlay,"click",function(n){t.open(n)})},setEditable:function(n){var t=this;this.type!="kml"&&(this.overlay.setDraggable(n),this.isPoly()&&this.overlay.setEditable(n),google.maps.event.clearListeners(this.overlay,"rightclick"),google.maps.event.clearListeners(this.overlay,"dragstart"),n&&(google.maps.event.addListener(this.overlay,"dragstart",function(){t.viewport=null;t.map.closeInfoWindow()}),(this.type=="polygon"||this.type=="polyline")&&google.maps.event.addListener(this.overlay,"rightclick",function(n){n.vertex!=null&&t.overlay.getPath().getLength()>2&&t.overlay.getPath().removeAt(n.vertex)})))},getZIndex:function(){return this.type?this.overlay.zIndex:this.overlay.getZIndex()},setZIndex:function(n){this.type?this.overlay.zIndex=n:this.overlay.setZIndex(n)},setIcon:function(n){this.type||typeof mapp.Icons=="undefined"||(this.overlay.setIcon(null),this.overlay.setIcon(mapp.Icons.get(n)),this.iconid=n)},setVisible:function(n){typeof this.overlay.setVisible!="undefined"&&this.overlay.setVisible(n)},setColors:function(n){var i={};for(var t in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})n&&typeof n[t]!="undefined"&&(i[t]=n[t]);this.overlay.setOptions(i)},getColors:function(){var t={};for(var n in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})typeof this.overlay[n]!="undefined"&&(t[n]=this.overlay[n]);return t},center:function(n){var t=this.map.getMap(),i;if(!n){t.setCenter(this.getPosition());return}if(typeof n=="number"){t.setCenter(this.getPosition());t.setZoom(n);return}i=this.getBounds();i?(t.fitBounds(i),t.setCenter(this.getPosition())):(t.setCenter(this.getPosition()),t.setZoom(this.map.getPoiZoom()))},open:function(n){this.map.openPoi(this,n)},zoomIn:function(){var n=this.map.getMap(),r=n.getZoom(),t=this.getBounds(),i=Math.min(r+2,21);t&&n.fitBounds(t);i>n.getZoom()&&n.setZoom(i);n.setCenter(this.getPosition())},isPoly:function(){return jQuery.inArray(this.type,["polyline","polygon","circle","rectangle"])!=-1},getBounds:function(){var n;if(!this.map.getEditable()&&this.viewport)return this.viewport;switch(this.type){case"polyline":n=new google.maps.LatLngBounds;this.overlay.getPath().forEach(function(t){n.extend(t)});break;case"polygon":n=new google.maps.LatLngBounds;this.overlay.getPaths().forEach(function(t){t.forEach(function(t){n.extend(t)})});break;case"rectangle":case"circle":n=this.overlay.getBounds();break;case"kml":n=this.overlay.getDefaultViewport();break;default:return this.viewport?this.viewport:null}return n},getPosition:function(){if(this.type){var n=this.getBounds();return n?n.getCenter():new google.maps.LatLng(0,0)}return this.overlay.getPosition()},click:function(){google.maps.event.trigger(this.overlay,"click")}}
1
+ var mapp=window.mapp||{};+function(n){mapp.Map=function(t){function vr(){var n,t,r;for(n in mappl10n.styles)t=mappl10n.styles[n],r=new google.maps.StyledMapType(t,{name:n}),i.mapTypes.set(n,r),er==n&&i.setOptions({styles:t})}function yr(){hr&&ot("traffic",mappl10n.traffic,hi);gt&&ot("bicycling",mappl10n.bike,oi);cr&&ot("transit",mappl10n.transit,ci)}function ot(n,t,r){var f=e+"_"+n,o=r?"checked='checked'":"",s="<div class='gmnoprint mapp-control'><input type='checkbox' id='"+f+"' "+o+" /> "+t+"<\/div>",u=jQuery(s).get(0);i.controls[google.maps.ControlPosition.TOP_RIGHT].push(u);r&&pt(n);google.maps.event.clearListeners(u,"click");google.maps.event.addDomListener(u,"click",function(){pt(n)})}function pt(n){var r=e+"_"+n,t;switch(n){case"transit":k=k?k:new google.maps.TransitLayer;t=k;break;case"traffic":b=b?b:new google.maps.TrafficLayer;t=b;break;case"bicycling":w=w?w:new google.maps.BicyclingLayer;t=w}t.getMap()?(jQuery("#"+r).prop("checked",!1),t.setMap(null)):(jQuery("#"+r).prop("checked",!0),t.setMap(i))}var s=t.center,y=t.height,h=t.mapid,wt=t.mapTypeId?t.mapTypeId:"roadmap",bt=t.metaKey,e=t.name,kt=t.options,tt=t.query,it=t.title,p=t.width,rt=parseInt(t.zoom,10),dt=t.options.adaptive,gt=t.options.bicycling,ni=t.options.bigHeight,ti=t.options.bigWidth,ii=t.options.country,st=t.options.directions,ri=t.options.directionsServer,ui=t.options.directionsUnits,fi=t.options.draggable,ei=t.options.editable,ht=t.options.from,oi=t.options.initialBicycling,si=t.options.initialOpenDirections,ut=t.options.initialOpenInfo,hi=t.options.initialTraffic,ci=t.options.initialTransit,c=t.options.iwType,ct=t.options.keyboardShortcuts,li=t.options.language,ai=t.options.mapTypeControl,vi=parseInt(t.options.mapTypeControlStyle,10),l=t.options.mapTypeIds,yi=t.options.mashupClick,pi=parseInt(t.options.maxZoom),wi=parseInt(t.options.minZoom),bi=t.options.overviewMapControl,ki=t.options.overviewMapControlOpened,di=t.options.panControl,gi=t.options.poiZoom,pr=t.options.radius,nr=t.options.rotateControl,tr=t.options.scaleControl,ir=t.options.scrollwheel,lt=t.options.search,rr=t.height,ur=t.width,fr=t.options.streetViewControl,er=t.options.style,or=parseInt(t.options.tilt),at=t.options.to,sr=t.options.tooltips,hr=t.options.traffic,cr=t.options.transit,lr=t.options.zoomControl,ar=parseInt(t.options.zoomControlStyle,10),u=this,w,b,k,o=null,d,vt,g,a,nt,ft=null,i=null,f=null,et,r=[],yt=!1,v;this.display=function(){var r,h;if(d=jQuery("#"+e+"_dialog"),vt=jQuery("#"+e+"_directions"),g=jQuery("#"+e+"_layout"),a=document.getElementById(e),nt=jQuery("#"+e+"_poi_list"),!a)return mapp.lib.alert("MapPress: Missing map name or container for map: "+e);if(typeof google=="undefined")return mapp.lib.alert("MapPress: Google API not loaded");if(mapp.lib.jqVersionCheck("1.7")||mapp.lib.alert("jQuery version is too old: "+n.fn.jquery),i=new google.maps.Map(a,{mapTypeId:"roadmap",center:new google.maps.LatLng(0,0),zoom:1}),v=google.maps.Marker.MAX_ZINDEX,vt.append(jQuery("#"+e+"_directions_").contents()),nt.append(jQuery("#"+e+"_poi_list_").contents()),et=new mapp.Places(null,{gmap:i}),google.maps.event.addListener(et,"search",function(n){u.search(n)}),!l&&(l=["roadmap","satellite","terrain","hybrid"],mappl10n.styles))for(r in mappl10n.styles)l.push(r);if(s=s?new google.maps.LatLng(t.center.lat,t.center.lng):new google.maps.LatLng(0,0),h={backgroundColor:"transparent",draggable:fi,keyboardShortcuts:ct,mapTypeControl:ai,mapTypeControlOptions:{style:vi,mapTypeIds:l},maxZoom:pi,minZoom:wi,overviewMapControl:bi,overviewMapControlOptions:{opened:ki},panControl:di,rotateControl:nr,scaleControl:tr,scrollwheel:ir,streetViewControl:fr,tilt:or,zoomControl:lr,zoomControlOptions:{style:ar}},i.setOptions(h),vr(),u.setMapTypeId(wt),yr(),c=="ib"?(mapp.InfoBox.prototype=new google.maps.OverlayView,f=new mapp.InfoBox):f=new google.maps.InfoWindow,c=="ib"&&(ct=!1),ft=new mapp.Geocoder(u,li,ii),st!="none"&&(o=new mapp.Directions(u,st,ft,ri,ui)),dt&&jQuery(window).resize(function(){u.resize()}),tt){lt?et.parse(lt):this.ajaxQuery();return}google.maps.event.addListenerOnce(i,"idle",function(){u.initCenter()});this.setPois(t.pois)};this.getQuery=function(){return tt};this.setQuery=function(n){tt=n};this.setDialog=function(n){n=n?n:'<span class="mapp-spinner"><\/span>'+mappl10n.loading;n='<div class="mapp-dialog-inner">'+n+"<\/div>";jQuery(d).html(n);jQuery(d).show()};this.hideDialog=function(){jQuery(d).hide()};this.setPoiList=function(n){typeof n=="string"?nt.html(n):nt.append(n)};this.getOptions=function(){return kt};this.getResized=function(){return yt};this.show=function(){g.show();this.display()};this.closeInfoWindow=function(){f.close()};this.openDirections=function(n,t,i){var r,u;typeof n=="object"?(r=n.address?n.address:n.getPosition().toUrlValue(),n.open()):r=n;typeof t=="object"?(u=t.address?t.address:t.getPosition().toUrlValue(),t.open()):u=t;o.open(r,u,i)};this.setMapTypeId=function(n){n=n&&jQuery.inArray(n,l)!=-1?n:l[0];i.setMapTypeId(n)};this.setCenter=function(n,t){i.setCenter(new google.maps.LatLng(n,t))};this.setZoom=function(n){i.setZoom(n)};this.getPoiZoom=function(){return parseInt(gi)};this.poiToFront=function(n){v++;n.setZIndex(v)};this.getMap=function(){return i};this.getGeocoder=function(){return ft};this.getName=function(){return e};this.setName=function(n){e=n};this.getMapid=function(){return h};this.setMapid=function(n){h=n};this.getTitle=function(){return it};this.setTitle=function(n){it=n};this.getWidth=function(){return p};this.setWidth=function(n){p=n};this.getHeight=function(){return y};this.setHeight=function(n){y=n};this.getInfoWindow=function(){return f};this.getEditable=function(){return ei};this.getTooltips=function(){return sr};this.getPoi=function(n){return typeof n=="string"&&(n=parseInt(n,10)),r[n]};this.getPoiById=function(n){for(var t=0;t<r.length;t++)if(r[t].postid==n)return r[t];return null};this.getPois=function(){return r};this.insertPoi=function(n){r.unshift(n);n.setMap(this)};this.addPoi=function(n){r.push(n);n.setMap(this)};this.removePoi=function(n){var t=jQuery.inArray(n,r);t!=-1&&(r[t].setMap(null),r.splice(t,1))};this.setPois=function(n){for(var i,t=0;t<r.length;t++)r[t].setMap(null);for(r=[],t=0;t<n.length;t++)i=new mapp.Poi,i.fromJSON(n[t]),r.push(i),i.setMap(this),i.setZIndex(v+n.length-1-t);v+=n.length-1};this.showPois=function(){for(var n=0;n<r.length;n++)r[n].setVisible(!0)};this.hidePois=function(){for(var n=0;n<r.length;n++)r[n].setVisible(!1)};this.sortPois=function(n){for(var u,t=Array(),i=0;i<n.length;i++){if(u=parseInt(n[i]),isNaN(u))return!1;t.push(r[u])}return t.length!=r.length?!1:(r=t,!0)};this.openPoi=function(n,t){var r,i;if(c&&c!="none"){if(yi=="post"&&n.postid&&n.url){window.location.assign(n.url);return}i={html:null};google.maps.event.trigger(u,"poicontent",n,i);r=i.content?i.content:t&&typeof t.featureData!="undefined"?t.featureData.infoWindowHtml:n.html;this.openInfoWindow(n,r,t)}};this.openInfoWindow=function(n,t,r){(o&&o.close(),c&&c!="none")&&(this.poiToFront(n),f.close(),f.setContent(t),google.maps.event.addListenerOnce(f,"domready",function(){google.maps.event.trigger(u,"poidomready",n)}),n.type=="kml"&&r?(f.setOptions({pixelOffset:r.pixelOffset,position:r.latLng}),f.open(i)):n.type?(f.setOptions({position:n.getPosition()}),f.open(i)):f.open(i,n.overlay))};this.closeInfoWindow=function(){f.close()};this.resize=function(n,t){var r=i.getCenter();n&&t&&(jQuery(a).width(n),jQuery(a).height(t),p=n,y=t);google.maps.event.trigger(i,"resize");i.setCenter(r);yt=!0;return};this.initCenter=function(){if(this.closeInfoWindow(),google.maps.event.addListenerOnce(i,"idle",function(){u.initWindows()}),s&&s.lat()&&s.lng())i.setCenter(s),i.setZoom(rt);else{var n=rt?rt:!0;u.autoCenter(n)}};this.initWindows=function(){var i,n,t;o&&si?(n=jQuery.trim(ht),t=ht==null&&at==null?"0":jQuery.trim(at),n=jQuery.isNumeric(n)?this.getPoi(n):n,t=jQuery.isNumeric(t)?this.getPoi(t):t,typeof n=="object"?n.center(!1):typeof t=="object"&&t.center(!1),u.openDirections(n,t,!1)):ut&&(i=jQuery.isNumeric(ut)?u.getPoi(ut):u.getPoi(0),i&&i.open())};this.autoCenter=function(n){var t,u,f;if(r.length==0){this.setCenter(0,0);typeof n=="number"?i.setZoom(n):i.setZoom(1);return}if(r.length==1){r[0].center(n);return}for(t=new google.maps.LatLngBounds,u=0;u<r.length;u++)f=r[u].getBounds(),t=f?t.union(f):t.extend(r[u].getPosition());if(n===!1){i.setCenter(t.getCenter());return}if(typeof n=="number"){i.setCenter(t.getCenter());i.setZoom(n);return}i.fitBounds(t)};this.reset=function(){this.initCenter()};this.bigger=function(n,t,i){o&&o.close();this.closeInfoWindow();jQuery(n).text()==t?(jQuery(n).text(i),jQuery(g).width(ti),this.resize("100%",ni)):(jQuery(n).text(t),jQuery(g).width(ur),this.resize("100%",rr))};this.toJSON=function(){return{center:{lat:i.getCenter().lat(),lng:i.getCenter().lng()},height:y,mapid:h,mapTypeId:i.getMapTypeId(),metaKey:bt,pois:r,title:it,width:p,zoom:i.getZoom()}};this.ajaxSave=function(n){var t,i;t=typeof Prototype!="undefined"&&typeof Object.toJSON!="undefined"?Object.toJSON(u):t=JSON.stringify(u);i={action:"mapp_save",map:t,postid:mappl10n.options.postid};mapp.Ajax("POST",i,function(t){t.status=="OK"&&(h=t.data.mapid,n(t.data))})};this.ajaxDelete=function(n){h||n();var t={action:"mapp_delete",mapid:h};mapp.Ajax("POST",t,function(t){t.status=="OK"&&n()})}};mapp.Map.ajaxCreate=function(n,t,i){mapp.Ajax("GET",{action:"mapp_create"},function(r){if(r.status=="OK"){jQuery.extend(r.data.map.options,t);r.data.map.name=n;var u=new mapp.Map(r.data.map);i(u)}})};mapp.Map.ajaxGet=function(n,t,i,r){var u={action:"mapp_get",mapid:n};mapp.Ajax("GET",u,function(n){if(n.status=="OK"){jQuery.extend(n.data.map.options,i);n.data.map.name=t;var u=new mapp.Map(n.data.map);r(u)}})};mapp.Map.ajaxDelete=function(n,t){var i={action:"mapp_delete",mapid:n};mapp.Ajax("POST",i,function(n){n.status=="OK"&&t&&t()})};mapp.Ajax=function(n,t,i){jQuery.ajax({type:n,cache:!1,url:mappl10n.options.ajaxurl,data:t,success:function(n){if(n.output&&(mappl10n.options.admin||mappl10n.options.debug)&&alert("AJAX Error\r\n"+n.output),n.status=="OK"){i(n);return}(mappl10n.options.admin||mappl10n.options.debug)&&(typeof n=="object"?alert("AJAX Error\r\n"+n.status):alert("AJAX Error\r\n"+n))},error:function(n,t,i){typeof i!="undefined"&&i!=""&&mappl10n.ajaxErrors&&alert("AJAX ERROR\r\nStatus="+t+"\r\nError="+i+"\r\nResponseText="+n.responseText)}})}}(jQuery);mapp=window.mapp||{};mapp.Directions=function(n,t,i,r,u){function p(){jQuery(".mapp-dir-swap",f).click(function(){var n=jQuery(".mapp-dir-daddr",f).val(),t=jQuery(".mapp-dir-saddr",f).val();return jQuery(".mapp-dir-saddr",f).val(n),jQuery(".mapp-dir-daddr",f).val(t),jQuery(".mapp-dir-get",f).click(),!1});jQuery(".mapp-dir-get",f).click(function(){return s.getDirections(),!1});jQuery(".mapp-dir-print",f).click(function(){s.printDirections()});jQuery(".mapp-dir-close",f).click(function(){return s.close(),!1});jQuery(".mapp-travelmode",f).click(function(){return jQuery(".mapp-travelmode",f).removeClass("mapp-travelmode-on"),jQuery(this).addClass("mapp-travelmode-on"),s.getDirections(),!1});jQuery(".mapp-myloc",f).click(function(){return c.geolocate(function(n){n?(jQuery(".mapp-dir-saddr",f).val("("+n.coords.latitude+", "+n.coords.longitude+")"),jQuery(".mapp-dir-get",f).click()):alert(mappl10n.no_geolocate)}),!1})}function w(n,t,i){var u=jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-walk")?google.maps.DirectionsTravelMode.WALKING:jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-transit")?google.maps.DirectionsTravelMode.TRANSIT:jQuery(".mapp-travelmode-on > span",f).hasClass("mapp-dir-bike")?google.maps.DirectionsTravelMode.BICYCLING:google.maps.DirectionsTravelMode.DRIVING;var o={travelMode:u,transitOptions:{departureTime:null},provideRouteAlternatives:!0,origin:n,destination:t,unitSystem:y},r=jQuery(".mapp-dir-renderer",f).get(0);jQuery(".mapp-dir-renderer",f).empty();l||(l=new google.maps.DirectionsService);l.route(o,function(n,t){switch(t){case google.maps.DirectionsStatus.OK:h.hidePois();e?(e.setDirections(n),e.setMap(a),e.setPanel(r)):e=new google.maps.DirectionsRenderer({map:a,panel:r,directions:n,hideRouteList:!1,draggable:!0});break;case google.maps.DirectionsStatus.NOT_FOUND:alert(mappl10n.dir_not_found);break;case google.maps.DirectionsStatus.ZERO_RESULTS:alert(mappl10n.dir_zero_results);break;default:alert(mappl10n.dir_default+t)}i()})}var h=n,v=t,c=i,o=r,y=u,f=jQuery("#"+n.getName()+"_directions"),e,l,a=n.getMap(),s=this;o.toLowerCase().indexOf("http")==-1&&(o="https://"+o);p();this.open=function(n,t,i){if(v=="google"){this.openGoogle(n,t);return}jQuery(f).show();jQuery(".mapp-dir-saddr",f).val(n);jQuery(".mapp-dir-daddr",f).val(t);(i||typeof i=="undefined")&&(jQuery(".mapp-dir-get",f).focus(),jQuery(".mapp-dir-saddr",f).focus())};this.close=function(){jQuery(f).hide();e&&(e.setPanel(null),e.getMap()&&(e.setMap(null),h.showPois()))};this.getDirections=function(){h.closeInfoWindow();jQuery(".mapp-spinner",f).show();var n=jQuery(".mapp-dir-saddr",f),t=jQuery(".mapp-dir-daddr",f),i=jQuery(".mapp-dir-saddr-err",f),r=jQuery(".mapp-dir-daddr-err",f);c.geocodeField(n,i,function(n){c.geocodeField(t,r,function(t){n&&t?w(n,t,function(){jQuery(".mapp-spinner",f).hide();return}):jQuery(".mapp-spinner",f).hide()})})};this.printDirections=function(){var t,n=jQuery(".mapp-travelmode-on > span",f);t=n.hasClass("mapp-dir-walk")?"w":n.hasClass("mapp-dir-bike")?"b":n.hasClass("mapp-dir-transit")?"r":"d";this.openGoogle(jQuery(".mapp-dir-saddr",f).val(),jQuery(".mapp-dir-daddr",f).val(),t)};this.openGoogle=function(n,t,i){var r=o;r+="?saddr="+encodeURIComponent(n);r+="&daddr="+encodeURIComponent(t);i&&(r+="&dirflg="+i);window.open(r)}};mapp=window.mapp||{};mapp.Geocoder=function(n,t,i){function f(n,t){jQuery(n).removeClass("mapp-error");jQuery(t).hide()}function e(n,t,i){jQuery(n).addClass("mapp-error");jQuery(t).html(i);jQuery(t).show()}var o,u,s,c,h,r;o=i;c=t;h=n;s=h.getMap();r=this;this.geocode=function(n,t){typeof n=="string"&&n.substring(0,1)=="("&&(split=n.replace(/\(|\)/g,"").split(","),n=new google.maps.LatLng(split[0],split[1]));var i=n instanceof google.maps.LatLng?{location:n}:{address:n,region:o,bounds:s.getBounds()};u||(u=new google.maps.Geocoder);u.geocode(i,function(n,i){if(n){for(var r=0;r<n.length;r++)n[r].formatted_address==""&&n.splice(r,1);t(n[0],i)}else t(null,i)})};this.geolocate=function(n){if(!navigator||!navigator.geolocation)return null;navigator.geolocation.getCurrentPosition(function(t){n(t)},function(){n(null)},{timeout:1e4,enableHighAccuracy:!0,maximumAge:3e4})};this.stringToLatLng=function(n){var t=n.split(",",2),i=Number(t[0]),r=Number(t[1]);return isNaN(i)||isNaN(r)?!1:new google.maps.LatLng(i,r)};this.geocodeField=function(n,t,i){f(n,t);checkAddress(n,t,jQuery(n).val(),function(r){if(!r){e(n,t,mappl10n.no_address);i(null);return}if(r&&r.formatted_address){jQuery(n).val(r.formatted_address);i(r.formatted_address);return}i(r);return})};this.autocompleteField=function(n,t,i,u,o){jQuery(n).keypress(function(i){i.which==13&&(checkAddress(n,t,jQuery(n).val(),o),i.preventDefault())});jQuery(i).click(function(){return checkAddress(n,t,jQuery(n).val(),o),!1});jQuery(u).click(function(){return f(n,t),r.geolocate(function(i){if(i){var r="("+i.coords.latitude+", "+i.coords.longitude+")";jQuery(n).val("");checkAddress(n,t,r,o)}else e(n,t,mappl10n.no_geolocate);return}),!1})};checkAddress=function(n,t,i,u){if(f(n,t),i=jQuery.trim(i),i==""){u(null);return}var o=r.stringToLatLng(i);if(o){u(o);return}if(i.substring(0,4)=="http"){u(i);return}r.geocode(i,function(i,r){if(!i||r!=google.maps.GeocoderStatus.OK){e(n,t,mappl10n.no_address);u(null);return}u(i);return})}};mapp.Geocoder.parseAddress=function(n){return!n||n==""?{firstLine:"",secondLine:""}:(n.lastIndexOf(", USA")>0||n.lastIndexOf(", United States")>0)&&(n.lastIndexOf(", USA")>0&&(n=n.slice(0,n.lastIndexOf(", USA"))),n.lastIndexOf(", United States")>0&&(n=n.slice(0,n.lastIndexOf(", United States"))),n.indexOf(",")==n.lastIndexOf(","))?{firstLine:n,secondLine:""}:n.indexOf(",")==-1?{firstLine:n,secondLine:""}:{firstLine:n.slice(0,n.indexOf(",")),secondLine:n.slice(n.indexOf(", ")+2)}};mapp=window.mapp||{};mapp.Icons={};mapp.Icons.get=function(){return"https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png"};mapp.Icons.getUrl=function(){return"https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png"};mapp=window.mapp||{};mapp.InfoBox=function(){var u,f,n,i,t,r=this;this.setContent=function(n){u=n};this.onAdd=function(){n=jQuery("<div class='mapp-ib'><div class='mapp-ib-close'>X<\/div><\/div>");t=jQuery("<div class='mapp-ib-tip'><\/div>");typeof u=="string"?jQuery(n).append(u):jQuery(n).append(jQuery(u));jQuery("body").append(n);jQuery("body").append(t);jQuery(".mapp-ib-close",n).click(function(){r.close()});jQuery(window).resize(function(){r.close()})};this.draw=function(){var c=jQuery(n).is(":visible"),u=r.getProjection().fromLatLngToContainerPixel(i),f,o,s;if(u.x=parseInt(u.x),u.y=parseInt(u.y),f=jQuery(this.getMap().getDiv()),u.x>f.width()||u.x<0||u.y>f.height()||u.y<0){jQuery(n).hide();jQuery(t).hide();return}jQuery(n).show();jQuery(t).show();o=f.offset().left+u.x;s=f.offset().top+u.y-32;jQuery(t).offset({top:s-t.outerHeight()-2,left:o-parseInt(t.outerWidth()/2)});var e=o-parseInt(n.outerWidth()/2),l=s-n.outerHeight()-t.outerHeight(),h=jQuery(document).width();e+n.outerWidth()>h&&(e=Math.max(h-n.outerWidth(),o-n.outerWidth()+parseInt(t.outerWidth()/2)));e<0&&(e=0);jQuery(n).offset({top:l,left:e});c||google.maps.event.trigger(this,"domready")};this.onRemove=function(){jQuery(n).remove();jQuery(t).remove()};this.setPosition=function(n){i=n};this.open=function(n,t){f=n;t&&(i=typeof t.getPosition=="function"?t.getPosition():t.getBounds().getCenter());this.setMap(f);this.disableAutoPan&&n.getBounds().contains(i)||f.panTo(i);google.maps.event.addListenerOnce(n,"drag",function(){r.close()});google.maps.event.addListenerOnce(n,"click",function(){r.close()})};this.close=function(){google.maps.event.trigger(this,"closeclick");this.setMap(null)}};mapp=window.mapp||{};+function(n){mapp.lib={ajax:function(t){var r=this,u,i;if(n.extend({type:"GET",cache:!1,data:null,spinner:null,callback:n.noop},t),t.cache)for(typeof mapp.lib.ajax.cache=="undefined"&&(mapp.lib.ajax.cache=[]),u=JSON.stringify(t.data),i=0;i<mapp.lib.ajax.cache.length;i++)if(mapp.lib.ajax.cache[i].hash==u){t.callback(mapp.lib.ajax.cache[i].response);return}t.spinner&&mapp.lib.spinner(t.spinner,!0);n.ajax({type:t.type,cache:!1,url:mappl10n.options.ajaxurl,data:t.data,success:function(n,i,u){if(mapp.lib.spinner(t.spinner,!1),n.output){r.alert("AJAX Error\r\n"+n.output);return}if(n.status=="OK"){t.cache&&mapp.lib.ajax.cache.push({hash:JSON.stringify(t.data),response:n});t.callback&&t.callback(n,u);return}var f=typeof n=="object"?n.status:n;r.alert("AJAX ERROR\r\nResponse="+f+" TextStatus="+i+"\r\nResponseText="+u.responseText)},error:function(n,i,u){mapp.lib.spinner(t.spinner,!1);typeof u!="undefined"&&u!=""&&r.alert("AJAX ERROR\r\nTextStatus="+i+"\r\nError="+u+"\r\nResponseText="+n.responseText)}})},jqVersionCheck:function(t){if(typeof n=="undefined"||typeof t=="undefined")return!1;for(t=t.split("."),v=n.fn.jquery.split("."),i=0;i<t.length;i++){var r=parseInt(t[i]),u=typeof v[i]!="undefined"?parseInt(v[i]):0;if(u!=r)return u>r}return!0},alert:function(n){mappl10n.options.admin||mappl10n.debug?alert(n):window.console&&console.log(n)},spinner:function(t,i){return i=typeof i=="undefined"?t.hasClass("mapp-spinner"):i,i?(n(t).addClass("mapp-spinner"),n(t).prepend('<div class="mapp-spinner-overlay"><\/div><div class="mapp-spinner-icon"><\/div>')):(n(t).removeClass("mapp-spinner"),n(".mapp-spinner-overlay, .mapp-spinner-icon",t).remove()),t},scrollTo:function(n,t){if(n&&t&&n.length&&t.length){var r=n.scrollTop(),i=t.position().top,u=i+t.height();i<r?n.scrollTop(i):u>r&&n.scrollTop(u)}}};n("body").on("tabsactivate tabsshow",function(t,i){var r=i.newPanel?i.newPanel:i.panel;r&&n(".mapp-canvas",r).each(function(){var i=n(this).attr("id"),t=window[i];t.getResized()||(t.resize(),t.initCenter())})})}(jQuery);mapp=window.mapp||{};+function(n){mapp.Places=function(t,i){var u=this,r;(this.sel=n(t),this.opts=n.extend({gmap:null,types:[]},i),r=n('<div style="display:none">').appendTo("body"),this.placesService=new google.maps.places.PlacesService(r.get(0)),this.autocompleteService=new google.maps.places.AutocompleteService,this.sel.length)&&(this.autocomplete=new google.maps.places.Autocomplete(this.sel.get(0),{types:this.opts.types}),this.autocomplete.bindTo("bounds",this.opts.gmap),google.maps.event.addListener(this.autocomplete,"place_changed",function(){u.parse(this.getPlace())}))};mapp.Places.prototype={parse:function(t){var i,u,r=this;if(i=t&&t.name?n.trim(t.name):n.trim(t),this.error(!1),this.sel.blur(),!i)return this.error(!0);if(t&&t.geometry)return google.maps.event.trigger(r,"search",t);if(u=this.parseLatLng(t))return google.maps.event.trigger(r,"search",u);if(i=="geolocate")return this.geolocate();if(i.substring(0,4)=="http")return u=i=="kml"?"http://kml-samples.googlecode.com/svn/trunk/kml/Placemark/placemark.kml":i,google.maps.event.trigger(r,"search",u);this.autocompleteService.getPlacePredictions({input:i,types:this.opts.types,bounds:this.opts.gmap.getBounds()},function(n,t){if(t!="OK"||n==null||n.length==0)return r.error(!0);r.placesService.getDetails({placeId:n[0].place_id},function(n,t){if(t!="OK"||!n||!n.geometry)return r.error(!0);google.maps.event.trigger(r,"search",n)})})},parseLatLng:function(t){var i,r;return t instanceof google.maps.LatLng?i=t:t&&t.lat&&t.lng?i=new google.maps.LatLng(t.lat,t.lng):(name=t&&t.name?n.trim(t.name):n.trim(t),r=name.split(","),r.length!=2||isNaN(r[0])||isNaN(r[1])||(i=new google.maps.LatLng(r[0],r[1]))),i?{name:i.toUrlValue(),geometry:{location:i}}:null},geolocate:function(){var n=this;if(!navigator||!navigator.geolocation){alert(mappl10n.no_geolocate);return}navigator.geolocation.getCurrentPosition(function(t){var i=new google.maps.LatLng(t.coords.latitude,t.coords.longitude),r={name:i.toUrlValue(),geometry:{location:i}};n.set("");google.maps.event.trigger(n,"search",r)},function(){alert(mappl10n.no_geolocate)},{timeout:1e4,enableHighAccuracy:!0,maximumAge:3e4})},set:function(n){this.sel.val(n);this.error(!1)},get:function(){return n.trim(this.sel.val())},focus:function(){this.sel.focus()},error:function(n){this.sel.toggleClass("mapp-error",!!n);this.focus()}}}(jQuery);mapp=window.mapp||{};mapp.Poi=function(){this.address=null;this.body=null;this.html=null;this.iconid=null;this.map=null;this.overlay=null;this.postid=null;this.title="";this.url=null;this.type=null;this.viewport=null;for(var n in arguments[0])typeof arguments[0][n]!="undefined"&&(this[n]=arguments[0][n])};mapp.Poi.prototype={fromJSON:function(n){var u,f,i,o,t,r,s,e;this.address=n.correctedAddress;this.body=n.body;this.correctedAddress=n.correctedAddress;this.html=n.html;this.iconid=n.iconid;this.postid=n.postid;this.title=n.title;this.type=n.type;this.url=n.url;n.viewport&&n.viewport.sw&&n.viewport.ne&&(u=new google.maps.LatLng(n.viewport.sw.lat,n.viewport.sw.lng),f=new google.maps.LatLng(n.viewport.ne.lat,n.viewport.ne.lng),this.viewport=u.lat()==0&&u.lng()==0&&f.lat()==0&&f.lng()==0?null:new google.maps.LatLngBounds(u,f));i=[];o=[];switch(this.type){case"polygon":if(n.poly&&n.poly.paths)for(t=0;t<n.poly.paths.length;t++){for(i=[],r=0;r<n.poly.paths[t].length;r++)i.push(new google.maps.LatLng(n.poly.paths[t][r].lat,n.poly.paths[t][r].lng));o.push(new google.maps.MVCArray(i))}this.overlay=new google.maps.Polygon({paths:new google.maps.MVCArray(o)});this.setColors(n.poly);break;case"polyline":if(n.poly&&n.poly.path)for(t=0;t<n.poly.path.length;t++)i.push(new google.maps.LatLng(n.poly.path[t].lat,n.poly.path[t].lng));this.overlay=new google.maps.Polyline({path:new google.maps.MVCArray(i)});this.setColors(n.poly);break;case"circle":e=new google.maps.LatLng(n.point.lat,n.point.lng);this.overlay=new google.maps.Circle({center:e,radius:parseFloat(n.poly.radius)});this.setColors(n.poly);break;case"rectangle":this.overlay=new google.maps.Rectangle({bounds:this.viewport});this.setColors(n.poly);break;case"kml":s=n.kml&&n.kml.url?n.kml.url:"";this.overlay=new google.maps.KmlLayer(s,{preserveViewport:!0,suppressInfoWindows:!0});break;case"":default:e=new google.maps.LatLng(n.point.lat,n.point.lng);this.overlay=new google.maps.Marker({position:e})}},toJSON:function(){var n={address:this.address,body:this.body,correctedAddress:this.address,iconid:this.iconid,point:null,poly:null,title:this.title,type:this.type,viewport:null},r=this.getPosition(),t,i;if(n.point={lat:r.lat(),lng:r.lng()},t=this.viewport?this.viewport:this.getBounds(),t&&(n.viewport={sw:{lat:t.getSouthWest().lat(),lng:t.getSouthWest().lng()},ne:{lat:t.getNorthEast().lat(),lng:t.getNorthEast().lng()}}),this.type=="kml"&&(n.kml={url:this.overlay.getUrl()}),this.isPoly()){n.poly=this.getColors();switch(this.type){case"circle":n.poly.radius=this.overlay.getRadius();break;case"polyline":n.poly.path=[];this.overlay.getPath().forEach(function(t){n.poly.path.push({lat:t.lat(),lng:t.lng()})});break;case"polygon":n.poly.paths=[];this.overlay.getPaths().forEach(function(t){var i=[];t.forEach(function(n){i.push({lat:n.lat(),lng:n.lng()})});n.poly.paths.push(i)});break;case"rectangle":i=this.overlay.getBounds();n.viewport={sw:{lat:i.getSouthWest().lat(),lng:i.getSouthWest().lng()},ne:{lat:i.getNorthEast().lat(),lng:i.getNorthEast().lng()}}}}return n},setTooltip:function(n){this.map.getTooltips()&&(this.type||(n?this.overlay.setTitle(n):this.overlay.setTitle(jQuery("<div>").html(this.title).text())))},setMap:function(n){var t=this;if(google.maps.event.clearInstanceListeners(this.overlay),n==null){this.overlay.setMap(null);return}this.type=="kml"&&(google.maps.event.addListener(this.overlay,"defaultviewport_changed",function(){t.viewport=t.overlay.getDefaultViewport()}),google.maps.event.addListener(this.overlay,"status_changed",function(){var n=t.overlay.getStatus();n!="OK"&&mappl10n.ajaxErrors&&alert(mappl10n.kml_error+":"+n)}));this.map=n;this.overlay.setMap(n.getMap());this.setEditable(this.map.getEditable());this.setIcon(this.iconid);this.setTooltip();google.maps.event.addListener(this.overlay,"click",function(n){t.open(n)})},setEditable:function(n){var t=this;this.type!="kml"&&(this.overlay.setDraggable(n),this.isPoly()&&this.overlay.setEditable(n),google.maps.event.clearListeners(this.overlay,"rightclick"),google.maps.event.clearListeners(this.overlay,"dragstart"),n&&(google.maps.event.addListener(this.overlay,"dragstart",function(){t.viewport=null;t.map.closeInfoWindow()}),(this.type=="polygon"||this.type=="polyline")&&google.maps.event.addListener(this.overlay,"rightclick",function(n){n.vertex!=null&&t.overlay.getPath().getLength()>2&&t.overlay.getPath().removeAt(n.vertex)})))},getZIndex:function(){return this.type?this.overlay.zIndex:this.overlay.getZIndex()},setZIndex:function(n){this.type?this.overlay.zIndex=n:this.overlay.setZIndex(n)},setIcon:function(n){this.type||typeof mapp.Icons=="undefined"||(this.overlay.setIcon(null),this.overlay.setIcon(mapp.Icons.get(n)),this.iconid=n)},setVisible:function(n){typeof this.overlay.setVisible!="undefined"&&this.overlay.setVisible(n)},setColors:function(n){var i={};for(var t in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})n&&typeof n[t]!="undefined"&&(i[t]=n[t]);this.overlay.setOptions(i)},getColors:function(){var t={};for(var n in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})typeof this.overlay[n]!="undefined"&&(t[n]=this.overlay[n]);return t},center:function(n){var t=this.map.getMap(),i;if(!n){t.setCenter(this.getPosition());return}if(typeof n=="number"){t.setCenter(this.getPosition());t.setZoom(n);return}i=this.getBounds();i?(t.fitBounds(i),t.setCenter(this.getPosition())):(t.setCenter(this.getPosition()),t.setZoom(this.map.getPoiZoom()))},open:function(n){this.map.openPoi(this,n)},zoomIn:function(){var n=this.map.getMap(),r=n.getZoom(),t=this.getBounds(),i=Math.min(r+2,21);t&&n.fitBounds(t);i>n.getZoom()&&n.setZoom(i);n.setCenter(this.getPosition())},isPoly:function(){return jQuery.inArray(this.type,["polyline","polygon","circle","rectangle"])!=-1},getBounds:function(){var n;if(!this.map.getEditable()&&this.viewport)return this.viewport;switch(this.type){case"polyline":n=new google.maps.LatLngBounds;this.overlay.getPath().forEach(function(t){n.extend(t)});break;case"polygon":n=new google.maps.LatLngBounds;this.overlay.getPaths().forEach(function(t){t.forEach(function(t){n.extend(t)})});break;case"rectangle":case"circle":n=this.overlay.getBounds();break;case"kml":n=this.overlay.getDefaultViewport();n=n?n:this.viewport;break;default:return this.viewport?this.viewport:null}return n},getPosition:function(){if(this.type){var n=this.getBounds();return n?n.getCenter():new google.maps.LatLng(0,0)}return this.overlay.getPosition()},click:function(){google.maps.event.trigger(this.overlay,"click")}};+function(){mapp.load=function(){while(mapp.data.length){var n=mapp.data.pop(),t=new mapp.Map(n);window[n.name]=t;t.display()}}}(jQuery);typeof mapp.Media!="undefined"?window.mappEditor=new mapp.Media:mapp.load()
languages/{mappress-bg_BG.mo → mappress-google-maps-for-wordpress-bg_BG.mo} RENAMED
File without changes
languages/{mappress-bg_BG.po → mappress-google-maps-for-wordpress-bg_BG.po} RENAMED
File without changes
languages/{mappress-de_DE.mo → mappress-google-maps-for-wordpress-de_DE.mo} RENAMED
File without changes
languages/{mappress-de_DE.po → mappress-google-maps-for-wordpress-de_DE.po} RENAMED
File without changes
languages/{mappress-es_ES.mo → mappress-google-maps-for-wordpress-es_ES.mo} RENAMED
File without changes
languages/{mappress-es_ES.po → mappress-google-maps-for-wordpress-es_ES.po} RENAMED
File without changes
languages/{mappress-fi.mo → mappress-google-maps-for-wordpress-fi.mo} RENAMED
File without changes
languages/{mappress-fi.po → mappress-google-maps-for-wordpress-fi.po} RENAMED
File without changes
languages/{mappress-fr_FR.mo → mappress-google-maps-for-wordpress-fr_FR.mo} RENAMED
File without changes
languages/{mappress-fr_FR.po → mappress-google-maps-for-wordpress-fr_FR.po} RENAMED
File without changes
languages/{mappress-hr.mo → mappress-google-maps-for-wordpress-hr.mo} RENAMED
File without changes
languages/{mappress-hr.po → mappress-google-maps-for-wordpress-hr.po} RENAMED
File without changes
languages/{mappress-hu_HU.mo → mappress-google-maps-for-wordpress-hu_HU.mo} RENAMED
File without changes
languages/{mappress-hu_HU.po → mappress-google-maps-for-wordpress-hu_HU.po} RENAMED
File without changes
languages/{mappress-it_IT.mo → mappress-google-maps-for-wordpress-it_IT.mo} RENAMED
File without changes
languages/{mappress-it_IT.po → mappress-google-maps-for-wordpress-it_IT.po} RENAMED
File without changes
languages/{mappress-ja.mo → mappress-google-maps-for-wordpress-ja.mo} RENAMED
File without changes
languages/{mappress-ja.po → mappress-google-maps-for-wordpress-ja.po} RENAMED
File without changes
languages/{mappress-nl_NL.mo → mappress-google-maps-for-wordpress-nl_NL.mo} RENAMED
File without changes
languages/{mappress-nl_NL.po → mappress-google-maps-for-wordpress-nl_NL.po} RENAMED
File without changes
languages/{mappress-pl_PL.mo → mappress-google-maps-for-wordpress-pl_PL.mo} RENAMED
File without changes
languages/{mappress-pl_PL.po → mappress-google-maps-for-wordpress-pl_PL.po} RENAMED
File without changes
languages/{mappress-pt_BR.mo → mappress-google-maps-for-wordpress-pt_BR.mo} RENAMED
File without changes
languages/{mappress-pt_BR.po → mappress-google-maps-for-wordpress-pt_BR.po} RENAMED
File without changes
languages/{mappress-ru_RU.mo → mappress-google-maps-for-wordpress-ru_RU.mo} RENAMED
File without changes
languages/{mappress-ru_RU.po → mappress-google-maps-for-wordpress-ru_RU.po} RENAMED
File without changes
languages/mappress-google-maps-for-wordpress-sr_RS.mo ADDED
Binary file
languages/mappress-google-maps-for-wordpress-sr_RS.po ADDED
@@ -0,0 +1,1730 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # This file is put in the public domain.
3
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4
+ #
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: MapPress Easy Google Maps in italiano\n"
8
+ "Report-Msgid-Bugs-To: \n"
9
+ "POT-Creation-Date: 2014-01-26 13:33+0100\n"
10
+ "PO-Revision-Date: 2015-09-11 10:38+0100\n"
11
+ "Last-Translator: Borisa Djuraskovic <borisad@webhostinghub.com>\n"
12
+ "Language-Team: Gianni Diurno | gidibao.net & charmingpress.com\n"
13
+ "Language: it_IT\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Poedit-KeywordsList: __;_e;esc_attr__;esc_attr_e;esc_html__;esc_html_e\n"
18
+ "X-Poedit-Basepath: ../\n"
19
+ "X-Poedit-SourceCharset: utf-8\n"
20
+ "X-Generator: Poedit 1.7.4\n"
21
+ "X-Poedit-SearchPath-0: .\n"
22
+
23
+ #: mappress.php:122
24
+ msgid "Version"
25
+ msgstr "Verzija"
26
+
27
+ #: mappress.php:130 mappress_api.php:550 mappress_options.php:603
28
+ msgid "Documentation"
29
+ msgstr "Dokumentacija"
30
+
31
+ #: mappress.php:131
32
+ msgid "Support"
33
+ msgstr "Podrška"
34
+
35
+ #: mappress.php:132
36
+ msgid "Contact"
37
+ msgstr "Kontakt"
38
+
39
+ #: mappress.php:135
40
+ msgid "Upgrade to MapPress Pro"
41
+ msgstr "Nadogradnja na MapPress Pro"
42
+
43
+ #: mappress.php:334
44
+ msgid ""
45
+ "MapPress database tables are missing. Please deactivate the plugin and "
46
+ "activate it again to fix this."
47
+ msgstr ""
48
+ "Nedostaju tabele baze podataka MapPress-a. Molimo deaktivirajte plugin i "
49
+ "aktivirajte ga ponovo da biste ovo popravili."
50
+
51
+ #: mappress.php:339
52
+ msgid ""
53
+ "WARNING: MapPress now requires WordPress 3.2 or higher. Please upgrade "
54
+ "before using MapPress."
55
+ msgstr ""
56
+ "UPOZORENJE: MapPress sada zahteva WordPress 3.2 ili bolji. Molimo "
57
+ "nadogradite pre upotrebe MapPress-a."
58
+
59
+ #: mappress.php:344
60
+ msgid ""
61
+ "WARNING: MapPress is not compfatible with the WP-Geo plugin. Please "
62
+ "deactivate or uninstall WP-Geo before using MapPress."
63
+ msgstr ""
64
+ "UPOZORENJE: MapPress nije kompatibilan sa WP-Geo plugin-om. Molimo "
65
+ "deaktivirajte ili deinstalirajte WP-Geo pre upotrebe MapPress-a."
66
+
67
+ #: mappress.php:542 mappress_api.php:739 templates/map_directions.php:6
68
+ msgid "Bicycling"
69
+ msgstr "Biciklizam"
70
+
71
+ #: mappress.php:543
72
+ msgid "Bike"
73
+ msgstr "Bicikl"
74
+
75
+ #: mappress.php:544
76
+ msgid "One of the addresses could not be found."
77
+ msgstr "Jedna od adresi nije mogla biti pronađena."
78
+
79
+ #: mappress.php:545 mappress_api.php:662
80
+ msgid ""
81
+ "Google cannot return directions between those addresses. There is no route "
82
+ "between them or the routing information is not available."
83
+ msgstr ""
84
+ "Google ne može da vrati uputstva između tih adresa. Ne postoji ruta među "
85
+ "njima, niti su dostupne informacije o ruti."
86
+
87
+ #: mappress.php:546 mappress_api.php:663
88
+ msgid "Unknown error, unable to return directions. Status code = "
89
+ msgstr "Nepoznata greška, ne može da vrati uputstva. Kod statusa ="
90
+
91
+ #: mappress.php:547 mappress_api.php:667 mappress_options.php:103
92
+ #: mappress_poi.php:281 mappress_settings.php:130 pro/mappress_widget.php:108
93
+ msgid "Directions"
94
+ msgstr "Uputstva"
95
+
96
+ #: mappress.php:548
97
+ msgid "Error reading KML file"
98
+ msgstr "Greška u iščitavanju KML fajla"
99
+
100
+ #: mappress.php:549
101
+ msgid "Loading..."
102
+ msgstr "Učitavanje..."
103
+
104
+ #: mappress.php:550 mappress_api.php:665
105
+ msgid "No matching address"
106
+ msgstr "Nema adresa koje se poklapaju"
107
+
108
+ #: mappress.php:551
109
+ msgid "Unable to get your location"
110
+ msgstr "Ne može da pribavi vašu lokaciju"
111
+
112
+ #: mappress.php:552 mappress_api.php:685 mappress_settings.php:318
113
+ msgid "Traffic"
114
+ msgstr "Saobraćaj"
115
+
116
+ #: mappress.php:553
117
+ msgid "Transit"
118
+ msgstr "Tranzit"
119
+
120
+ #: mappress.php:554 mappress_api.php:684 mappress_poi.php:330
121
+ #: mappress_settings.php:313 mappress_settings.php:452
122
+ #: pro/mappress_widget.php:124
123
+ msgid "Zoom"
124
+ msgstr "Zoom"
125
+
126
+ #: mappress.php:559 mappress_api.php:563
127
+ msgid "Add"
128
+ msgstr "Dodavanje"
129
+
130
+ #: mappress.php:560
131
+ msgid "Click & drag to move"
132
+ msgstr "Kliknite & prevucite za pomeranje"
133
+
134
+ #: mappress.php:561
135
+ msgid "Click to change"
136
+ msgstr "Kliknite za izmenu"
137
+
138
+ #: mappress.php:562 mappress_api.php:671 mappress_api.php:679
139
+ #: mappress_map.php:440
140
+ msgid "Delete"
141
+ msgstr "Obrišite"
142
+
143
+ #: mappress.php:563
144
+ msgid "Delete this POI?"
145
+ msgstr "Obrisati ovaj POI?"
146
+
147
+ #: mappress.php:564 mappress_api.php:678
148
+ msgid "Delete this map?"
149
+ msgstr "Obrisati ovu mapu?"
150
+
151
+ #: mappress.php:565
152
+ msgid "Please save the map first"
153
+ msgstr "Molimo, prvo sačuvajte mapu"
154
+
155
+ #: mappress.php:566
156
+ msgid "Shape"
157
+ msgstr "Oblik"
158
+
159
+ #: mappress.php:567 mappress_api.php:660 mappress_map.php:53
160
+ msgid "Untitled"
161
+ msgstr "Bez naslova"
162
+
163
+ #: mappress_api.php:93
164
+ #, php-format
165
+ msgid "No geocoding response from Google: %s"
166
+ msgstr "Nema odgovora o geo-kodiranju od Google-a: %s"
167
+
168
+ #: mappress_api.php:106
169
+ #, php-format
170
+ msgid "Google cannot geocode address: %s, status: %s"
171
+ msgstr "Google ne može da geo-kodira adresu: %s, status: %s"
172
+
173
+ #: mappress_api.php:109
174
+ #, php-format
175
+ msgid "No geocoding result for address: %s"
176
+ msgstr "Nema rezultata geo-kodiranja za adresu: %s"
177
+
178
+ #: mappress_api.php:551
179
+ msgid "FAQ"
180
+ msgstr "FAQ"
181
+
182
+ #: mappress_api.php:552 mappress_options.php:604
183
+ msgid "Report a bug"
184
+ msgstr "Prijavite kvar"
185
+
186
+ #: mappress_api.php:567 templates/map_poi_list.php:5
187
+ msgid "Location"
188
+ msgstr "Lokacija"
189
+
190
+ #: mappress_api.php:582
191
+ msgid "Current Maps"
192
+ msgstr "Trenutne mape"
193
+
194
+ #: mappress_api.php:583 forms/map_media.php:12
195
+ msgid "New Map"
196
+ msgstr "Nova mapa"
197
+
198
+ #: mappress_api.php:592 mappress_api.php:659 forms/map_media.php:22
199
+ msgid "Map ID"
200
+ msgstr "Identifikacija mape"
201
+
202
+ #: mappress_api.php:595 mappress_api.php:676 pro/mappress_pro_settings.php:199
203
+ msgid "Title"
204
+ msgstr "Naslov"
205
+
206
+ #: mappress_api.php:608 mappress_api.php:669 forms/map_editor_infobox.php:45
207
+ #: forms/map_media.php:46
208
+ msgid "Save"
209
+ msgstr "Sačuvati"
210
+
211
+ #: mappress_api.php:609 mappress_options.php:290 mappress_options.php:291
212
+ #: mappress_settings.php:381 pro/mappress_widget.php:116
213
+ msgid "Center"
214
+ msgstr "Centar"
215
+
216
+ #: mappress_api.php:656
217
+ msgid "Maps in this post"
218
+ msgstr "Mape u ovom postu"
219
+
220
+ #: mappress_api.php:657
221
+ msgid "There are no maps yet for this post"
222
+ msgstr "Još nema mapa za ovaj post "
223
+
224
+ #: mappress_api.php:658
225
+ msgid "Create a new map"
226
+ msgstr "Kreirajte novu mapu"
227
+
228
+ #: mappress_api.php:661
229
+ msgid "The starting or ending address could not be found."
230
+ msgstr "Ne mogu se naći početna niti krajnja adresa."
231
+
232
+ #: mappress_api.php:664
233
+ msgid "Enter address"
234
+ msgstr "Unesite adresu"
235
+
236
+ #: mappress_api.php:666
237
+ msgid "Did you mean: "
238
+ msgstr "Da li ste mislili:"
239
+
240
+ #: mappress_api.php:668 mappress_map.php:438
241
+ msgid "Edit"
242
+ msgstr "Izmena"
243
+
244
+ #: mappress_api.php:670 forms/map_editor_infobox.php:46 forms/map_media.php:47
245
+ #: pro/mappress_icons.php:71
246
+ msgid "Cancel"
247
+ msgstr "Otkažite"
248
+
249
+ #: mappress_api.php:672
250
+ msgid "View"
251
+ msgstr "Pregledajte"
252
+
253
+ #: mappress_api.php:673
254
+ msgid "Back"
255
+ msgstr "Nazad"
256
+
257
+ #: mappress_api.php:674 mappress_map.php:439 forms/map_media.php:48
258
+ msgid "Insert into post"
259
+ msgstr "Ubacite u post"
260
+
261
+ #: mappress_api.php:675
262
+ msgid "Select a map"
263
+ msgstr "Selektujte mapu"
264
+
265
+ #: mappress_api.php:677
266
+ msgid "Delete this map marker?"
267
+ msgstr "Obrisati marker ove mape?"
268
+
269
+ #: mappress_api.php:680
270
+ msgid "Map saved"
271
+ msgstr "Mapa sačuvana"
272
+
273
+ #: mappress_api.php:681
274
+ msgid "Map deleted"
275
+ msgstr "Mapa izbrisana"
276
+
277
+ #: mappress_api.php:682
278
+ msgid "Error: AJAX failed! "
279
+ msgstr "Greška. AJAX nije uspeo!"
280
+
281
+ #: mappress_api.php:683
282
+ msgid "Click & drag to move this marker"
283
+ msgstr "Kliknite & prevucite da pomerite ovaj marker"
284
+
285
+ #: mappress_api.php:686
286
+ msgid "Standard icons"
287
+ msgstr "Standardne ikonice"
288
+
289
+ #: mappress_api.php:687
290
+ msgid "My icons"
291
+ msgstr "Moje ikonice"
292
+
293
+ #: mappress_api.php:737 templates/map_directions.php:3
294
+ msgid "By car"
295
+ msgstr "Kolima"
296
+
297
+ #: mappress_api.php:738 templates/map_directions.php:5
298
+ msgid "Walking"
299
+ msgstr "Peške"
300
+
301
+ #: mappress_api.php:745
302
+ msgid "Start"
303
+ msgstr "Početak"
304
+
305
+ #: mappress_api.php:752 templates/map_directions.php:16
306
+ msgid "Swap start and end"
307
+ msgstr "Zamenite početak i kraj "
308
+
309
+ #: mappress_api.php:758
310
+ msgid "End"
311
+ msgstr "Kraj"
312
+
313
+ #: mappress_api.php:767 templates/map_directions.php:29
314
+ msgid "Get Directions"
315
+ msgstr "Pribavite uputstva"
316
+
317
+ #: mappress_api.php:768
318
+ msgid "Print Directions"
319
+ msgstr "Odštampajte uputstva"
320
+
321
+ #: mappress_api.php:769 templates/map_directions.php:31
322
+ msgid "Close"
323
+ msgstr "Zatvorite"
324
+
325
+ #: mappress_map.php:118
326
+ msgid "Map not found"
327
+ msgstr "Mapa nije nađena"
328
+
329
+ #: mappress_map.php:479
330
+ msgid "Show map"
331
+ msgstr "Prikazati mapu"
332
+
333
+ #: mappress_map.php:491 mappress_settings.php:444 forms/map_editor.php:17
334
+ msgid "Center map"
335
+ msgstr "Centralna mapa"
336
+
337
+ #: mappress_map.php:500 mappress_settings.php:445
338
+ msgid "Reset map"
339
+ msgstr "Resetujte mapu"
340
+
341
+ #: mappress_map.php:509 mappress_settings.php:443
342
+ msgid "Bigger map"
343
+ msgstr "Veća mapa"
344
+
345
+ #: mappress_map.php:510
346
+ msgid "Smaller map"
347
+ msgstr "Manja mapa"
348
+
349
+ #: mappress_options.php:99 mappress_settings.php:127
350
+ msgid "Basic Settings"
351
+ msgstr "Osnovna podešavanja"
352
+
353
+ #: mappress_options.php:100 mappress_options.php:391
354
+ msgid "Show a sample map on this page"
355
+ msgstr "Prikazati mapu uzorak na ovoj stranici"
356
+
357
+ #: mappress_options.php:101 mappress_settings.php:129
358
+ msgid "Automatic map display"
359
+ msgstr "Automatski prikaz mape"
360
+
361
+ #: mappress_options.php:102 mappress_settings.php:128
362
+ msgid "Post types"
363
+ msgstr "Tipovi posta"
364
+
365
+ #: mappress_options.php:104
366
+ msgid "Marker list"
367
+ msgstr "Lista markera"
368
+
369
+ #: mappress_options.php:105 mappress_settings.php:311
370
+ msgid "Map types"
371
+ msgstr "Tipovi mapa"
372
+
373
+ #: mappress_options.php:106
374
+ msgid "Street View"
375
+ msgstr "Pregled ulica"
376
+
377
+ #: mappress_options.php:107 mappress_settings.php:135
378
+ msgid "Scroll wheel zoom"
379
+ msgstr "Zumiranje točkića za skrolovanje"
380
+
381
+ #: mappress_options.php:108 mappress_settings.php:134
382
+ msgid "Keyboard shortcuts"
383
+ msgstr "Prečice za tastaturu"
384
+
385
+ #: mappress_options.php:109
386
+ msgid "Open first marker"
387
+ msgstr "Otvorite prvi marker"
388
+
389
+ #: mappress_options.php:110
390
+ msgid "Show traffic button"
391
+ msgstr "Prikazati dugme za saobraćaj"
392
+
393
+ #: mappress_options.php:111 mappress_settings.php:148
394
+ msgid "Tooltips"
395
+ msgstr "Saveti za alatke"
396
+
397
+ #: mappress_options.php:112 mappress_settings.php:316
398
+ msgid "Overview map"
399
+ msgstr "Pregled mape"
400
+
401
+ #: mappress_options.php:114
402
+ msgid "CSS Settings"
403
+ msgstr "CSS podešavanja"
404
+
405
+ #: mappress_options.php:115 mappress_settings.php:141
406
+ msgid "Map alignment"
407
+ msgstr "Poravnanje mape"
408
+
409
+ #: mappress_options.php:116 mappress_settings.php:142
410
+ msgid "Map border"
411
+ msgstr "Ivica mape"
412
+
413
+ #: mappress_options.php:126 mappress_settings.php:158
414
+ msgid "Localization"
415
+ msgstr "Lokalizacija"
416
+
417
+ #: mappress_options.php:127 mappress_settings.php:159
418
+ msgid "Language"
419
+ msgstr "Jezik"
420
+
421
+ #: mappress_options.php:128 mappress_settings.php:160
422
+ msgid "Country"
423
+ msgstr "Zemlja"
424
+
425
+ #: mappress_options.php:129 mappress_settings.php:161
426
+ msgid "Directions server"
427
+ msgstr "Server za uputstva"
428
+
429
+ #: mappress_options.php:131
430
+ msgid "Templates"
431
+ msgstr "Templati"
432
+
433
+ #: mappress_options.php:132
434
+ msgid "Marker list template"
435
+ msgstr "Templat liste markera"
436
+
437
+ #: mappress_options.php:134
438
+ msgid "Custom Fields"
439
+ msgstr "Uobičajena Polja"
440
+
441
+ #: mappress_options.php:135
442
+ msgid "Custom fields"
443
+ msgstr "Uobičajena polja"
444
+
445
+ #: mappress_options.php:140
446
+ msgid "Micsellaneous"
447
+ msgstr "Mešano"
448
+
449
+ #: mappress_options.php:141 mappress_settings.php:165
450
+ msgid "Map sizes"
451
+ msgstr "Veličine mapa"
452
+
453
+ #: mappress_options.php:142 pro/mappress_pro_settings.php:33
454
+ msgid "Force resize"
455
+ msgstr "Prinudna promena veličine"
456
+
457
+ #: mappress_options.php:143
458
+ msgid "MapPress link"
459
+ msgstr "Link za MapPress"
460
+
461
+ #: mappress_options.php:188 mappress_settings.php:237
462
+ msgid "country code"
463
+ msgstr "poštanski broj zemlje"
464
+
465
+ #: mappress_options.php:190 mappress_settings.php:239
466
+ #, php-format
467
+ msgid "Enter a %s to use when searching (leave blank for USA)"
468
+ msgstr ""
469
+ "Unesite %s da biste koristili prilikom pretrage (ostavite prazno za SAD)"
470
+
471
+ #: mappress_options.php:197 mappress_settings.php:246
472
+ msgid "Enter a google server URL for directions/printing"
473
+ msgstr "Unesite URL Google servera za uputstva/štampanje"
474
+
475
+ #: mappress_options.php:203 mappress_settings.php:260
476
+ msgid "Enable zoom with the mouse scroll wheel"
477
+ msgstr "Omogućite zumiranje uz pomoć skrolovanja mišem"
478
+
479
+ #: mappress_options.php:208 mappress_settings.php:264
480
+ msgid "Enable keyboard panning and zooming"
481
+ msgstr "Omogućite pomeranje i zumiranje tastature"
482
+
483
+ #: mappress_options.php:213 mappress_settings.php:270
484
+ msgid "language"
485
+ msgstr "jezik"
486
+
487
+ #: mappress_options.php:215
488
+ #, php-format
489
+ msgid "Use a specific %s for map controls (defaults to browser language)"
490
+ msgstr ""
491
+ "Koristite određeni %s za kontrolu mapa (uobičajeno za jezik pretraživača)"
492
+
493
+ #: mappress_options.php:222
494
+ msgid ""
495
+ "Allow your readers to change the map type (street, satellite, or hybrid)"
496
+ msgstr ""
497
+ "Dopustite vašim čitaovima da izmene tip mape (ulične, satelitske ili "
498
+ "hibridne)"
499
+
500
+ #: mappress_options.php:227
501
+ msgid "Display the street view control \"peg man\""
502
+ msgstr "Prikažite kontrolu \"peg man\" pregleda ulica"
503
+
504
+ #: mappress_options.php:234 mappress_settings.php:342
505
+ msgid "Inline (in your blog)"
506
+ msgstr "U liniji (u vašem blogu)"
507
+
508
+ #: mappress_options.php:238 mappress_settings.php:343
509
+ #: pro/mappress_pro_settings.php:177 pro/mappress_widget.php:110
510
+ msgid "Google"
511
+ msgstr "Google"
512
+
513
+ #: mappress_options.php:242 mappress_settings.php:344
514
+ #: pro/mappress_widget.php:111
515
+ msgid "None"
516
+ msgstr "Ništa"
517
+
518
+ #: mappress_options.php:244
519
+ msgid "Select 'Google' if directions aren't displaying properly in your theme"
520
+ msgstr ""
521
+ "Odaberite ‘Google’ ukoliko se uputstva ne prikazuju ispravno na vašu temu "
522
+
523
+ #: mappress_options.php:250 mappress_options.php:444 mappress_options.php:451
524
+ #: mappress_options.php:458 mappress_options.php:465
525
+ #, php-format
526
+ msgid "This setting requires %s."
527
+ msgstr "Ovo podešavanje zahteva %s."
528
+
529
+ #: mappress_options.php:251
530
+ msgid "Show a list of markers under each map"
531
+ msgstr "Prikažite listu markera pod svakom mapom"
532
+
533
+ #: mappress_options.php:256
534
+ msgid "Automatically open the first marker when a map is displayed"
535
+ msgstr "Automatski otvorite prvi marker kada se mapa prikaže"
536
+
537
+ #: mappress_options.php:262
538
+ msgid "Show a button for real-time traffic conditions"
539
+ msgstr "Prikazati dugme za uslove saobraćaja u realnom vremenu"
540
+
541
+ #: mappress_options.php:265
542
+ msgid "Set traffic 'on' by default"
543
+ msgstr "Podesite saobraćaj na ‘uključeno’ kako je uobičajeno"
544
+
545
+ #: mappress_options.php:270
546
+ msgid "Show marker titles as a \"tooltip\" on mouse-over"
547
+ msgstr "Prikažite naslove markera kao \"tooltip\" na prelasku mišem"
548
+
549
+ #: mappress_options.php:275
550
+ msgid "Show an overview map control in the bottom-right corner of the main map"
551
+ msgstr "Prikazati pregled kontrole mape u donjem desnom uglu glavne mape"
552
+
553
+ #: mappress_options.php:279
554
+ msgid "Automatically open the overview map"
555
+ msgstr "Automatski otvoriti pregled mape"
556
+
557
+ #: mappress_options.php:286 mappress_settings.php:280
558
+ #: mappress_settings.php:286 mappress_settings.php:380
559
+ #: mappress_settings.php:489
560
+ msgid "Default"
561
+ msgstr "Uobičajeno"
562
+
563
+ #: mappress_options.php:295 mappress_options.php:296 mappress_settings.php:382
564
+ msgid "Left"
565
+ msgstr "Levo"
566
+
567
+ #: mappress_options.php:300 mappress_options.php:301 mappress_settings.php:383
568
+ msgid "Right"
569
+ msgstr "Desno"
570
+
571
+ #: mappress_options.php:303
572
+ #, php-format
573
+ msgid "Choose 'default' to override this with CSS class %s in your theme's %s"
574
+ msgstr ""
575
+ "Odaberite ‘default’(uobičajeno) da biste prešli preko ovoga sa CSS klasom %s "
576
+ "u %s vaše teme"
577
+
578
+ #: mappress_options.php:311 mappress_settings.php:395
579
+ msgid "solid"
580
+ msgstr "solidno"
581
+
582
+ #: mappress_options.php:312 mappress_settings.php:396
583
+ msgid "dashed"
584
+ msgstr "isprekidano"
585
+
586
+ #: mappress_options.php:313 mappress_settings.php:397
587
+ msgid "dotted"
588
+ msgstr "tačkasto"
589
+
590
+ #: mappress_options.php:314 mappress_settings.php:398
591
+ msgid "double"
592
+ msgstr "duplo"
593
+
594
+ #: mappress_options.php:315 mappress_settings.php:399
595
+ msgid "groove"
596
+ msgstr "žleb"
597
+
598
+ #: mappress_options.php:316 mappress_settings.php:400
599
+ msgid "inset"
600
+ msgstr "umetak"
601
+
602
+ #: mappress_options.php:317 mappress_settings.php:401
603
+ msgid "outset"
604
+ msgstr "polatzna tačka"
605
+
606
+ #: mappress_options.php:321 mappress_settings.php:308
607
+ #: mappress_settings.php:405
608
+ msgid "Style"
609
+ msgstr "Stil"
610
+
611
+ #: mappress_options.php:329 mappress_settings.php:413
612
+ #: mappress_settings.php:489
613
+ msgid "Width"
614
+ msgstr "Širina"
615
+
616
+ #: mappress_options.php:337 mappress_settings.php:419
617
+ msgid "Corner radius"
618
+ msgstr "Prečnik ugla"
619
+
620
+ #: mappress_options.php:341 mappress_settings.php:428
621
+ msgid "Color"
622
+ msgstr "Boja"
623
+
624
+ #: mappress_options.php:346
625
+ msgid "Shadow"
626
+ msgstr "Senka"
627
+
628
+ #: mappress_options.php:348
629
+ #, php-format
630
+ msgid "Choose -none- to override settings with CSS class %s in your theme's %s"
631
+ msgstr ""
632
+ "Odaberite -nijedno- da pređete preko podešavanja putem CSS klase %s u %s "
633
+ "vaše teme"
634
+
635
+ #: mappress_options.php:366
636
+ msgid "Show the user's location on the map"
637
+ msgstr "Prikazati lokaciju korisnika na mapi"
638
+
639
+ #: mappress_options.php:371
640
+ msgid "Open the user's marker when the map is displayed"
641
+ msgstr "Otvorite marker korisnika prilikom prikazivanja mape"
642
+
643
+ #: mappress_options.php:376
644
+ msgid "Center the map on the user's location"
645
+ msgstr "Centrirajte mapu na lokaciju korisnika"
646
+
647
+ #: mappress_options.php:398 mappress_settings.php:468
648
+ msgid "Top of post"
649
+ msgstr "Vrh posta"
650
+
651
+ #: mappress_options.php:402 mappress_settings.php:469
652
+ msgid "Bottom of post"
653
+ msgstr "Dno posta"
654
+
655
+ #: mappress_options.php:406 mappress_settings.php:470
656
+ msgid "No automatic display"
657
+ msgstr "Nema automatskog prikaza"
658
+
659
+ #: mappress_options.php:414
660
+ msgid "post types"
661
+ msgstr "tipovi postova"
662
+
663
+ #: mappress_options.php:416
664
+ #, php-format
665
+ msgid "Mark the %s where the MapPress Editor should be available"
666
+ msgstr "Markirajte %s gde bi MapPress Editor trebalo da je dostupan"
667
+
668
+ #: mappress_options.php:423
669
+ msgid "post"
670
+ msgstr "post"
671
+
672
+ #: mappress_options.php:425
673
+ msgid "page"
674
+ msgstr "stranica"
675
+
676
+ #: mappress_options.php:436
677
+ msgid "Permanently resize existing maps:"
678
+ msgstr "Trajno promenite veličinu postojećim mapama:"
679
+
680
+ #: mappress_options.php:438 pro/mappress_pro_settings.php:229
681
+ #, php-format
682
+ msgid "from %s to %s"
683
+ msgstr "da %s a %s"
684
+
685
+ #: mappress_options.php:439 pro/mappress_pro_settings.php:230
686
+ msgid "Force Resize"
687
+ msgstr "Prinudna promena veličine"
688
+
689
+ #: mappress_options.php:445
690
+ msgid "Set a template for the marker list"
691
+ msgstr "Podesite templat za listu markera"
692
+
693
+ #: mappress_options.php:452
694
+ msgid "Toggle the 'powered by' message"
695
+ msgstr "Priključite poruku ‘pokrenuto od’"
696
+
697
+ #: mappress_options.php:459
698
+ msgid "Automatically create maps from custom field data"
699
+ msgstr "Automatski kreirajte mape iz podataka uobičajenih polja"
700
+
701
+ #: mappress_options.php:466
702
+ msgid "Set custom map sizes"
703
+ msgstr "Podesite uobičajene veličine mapa"
704
+
705
+ #: mappress_options.php:472
706
+ msgid "simple GeoRSS"
707
+ msgstr "jednostavan GeoRSS"
708
+
709
+ #: mappress_options.php:476
710
+ #, php-format
711
+ msgid "Enable %s for your RSS feeds"
712
+ msgstr "Omogućite %s za vaše RSS snabdevanje"
713
+
714
+ #: mappress_options.php:492 mappress_options.php:501
715
+ msgid "No new items"
716
+ msgstr "Nema novih stavki"
717
+
718
+ #: mappress_options.php:510
719
+ msgid "Read More"
720
+ msgstr "Čitajte više"
721
+
722
+ #: mappress_options.php:511
723
+ msgid "Subscribe with RSS"
724
+ msgstr "Pretplatite se sa RSS-om"
725
+
726
+ #: mappress_options.php:520
727
+ msgid "5 Stars"
728
+ msgstr "5 zvezdica"
729
+
730
+ #: mappress_options.php:522
731
+ msgid "Please take a moment to support future development "
732
+ msgstr "Molimo, zastanite na trenutak da podržite budući razvoj"
733
+
734
+ #: mappress_options.php:523
735
+ #, php-format
736
+ msgid "* Rate it %s on WordPress.org"
737
+ msgstr "*Rangirajte ga %s na WordPress.org"
738
+
739
+ #: mappress_options.php:524
740
+ msgid "* Make a donation"
741
+ msgstr "*Dajte donaciju"
742
+
743
+ #: mappress_options.php:532 mappress_settings.php:513
744
+ msgid "Thanks for your support!"
745
+ msgstr "Hvala Vam na podršci!"
746
+
747
+ #: mappress_options.php:559 mappress_settings.php:540
748
+ msgid "MapPress"
749
+ msgstr "MapPress"
750
+
751
+ #: mappress_options.php:613 mappress_settings.php:590
752
+ msgid "Like this plugin?"
753
+ msgstr "Dopada vam se ovaj plugin?"
754
+
755
+ #: mappress_options.php:615
756
+ msgid "MapPress News"
757
+ msgstr "MapPress novosti"
758
+
759
+ #: mappress_options.php:618 mappress_settings.php:592
760
+ msgid "Sample Map"
761
+ msgstr "Mapa uzorak"
762
+
763
+ #: mappress_options.php:638 mappress_settings.php:611
764
+ msgid "Save Changes"
765
+ msgstr "Sačuvajte promene"
766
+
767
+ #: mappress_options.php:639 mappress_settings.php:612
768
+ msgid "Reset Defaults"
769
+ msgstr "Resetujte deafault-ove"
770
+
771
+ #: mappress_poi.php:246 mappress_settings.php:453
772
+ msgid "Directions to"
773
+ msgstr "Uputstva za"
774
+
775
+ #: mappress_poi.php:248 mappress_settings.php:454
776
+ msgid "Directions from"
777
+ msgstr "Uputstva od"
778
+
779
+ #: mappress_settings.php:132
780
+ msgid "Map Controls"
781
+ msgstr "Kontrole mapa"
782
+
783
+ #: mappress_settings.php:133
784
+ msgid "Draggable"
785
+ msgstr "Može se prevući"
786
+
787
+ #: mappress_settings.php:136
788
+ msgid "Map Types"
789
+ msgstr "Tipovi mapa"
790
+
791
+ #: mappress_settings.php:137
792
+ msgid "Map controls"
793
+ msgstr "Kontrole mapa"
794
+
795
+ #: mappress_settings.php:139
796
+ msgid "Map Settings"
797
+ msgstr "Podešavanja mapa"
798
+
799
+ #: mappress_settings.php:140
800
+ msgid "Map links"
801
+ msgstr "Linkovi za mape"
802
+
803
+ #: mappress_settings.php:143
804
+ msgid "Map border color"
805
+ msgstr "Boja ivice mape"
806
+
807
+ #: mappress_settings.php:144
808
+ msgid "Open first POI"
809
+ msgstr "Otvorite prvi POI"
810
+
811
+ #: mappress_settings.php:146
812
+ msgid "POI Settings"
813
+ msgstr "Podešavanja za PI"
814
+
815
+ #: mappress_settings.php:147
816
+ msgid "POI links"
817
+ msgstr "Linkovi za POI"
818
+
819
+ #: mappress_settings.php:149
820
+ msgid "Default zoom"
821
+ msgstr "Uobičajeni zum"
822
+
823
+ #: mappress_settings.php:152
824
+ msgid "Mashups"
825
+ msgstr "Mashup"
826
+
827
+ #: mappress_settings.php:153
828
+ msgid "Icons"
829
+ msgstr "Icone"
830
+
831
+ #: mappress_settings.php:154
832
+ msgid "Styled Maps"
833
+ msgstr "Stilizovane mape"
834
+
835
+ #: mappress_settings.php:155
836
+ msgid "Geocoding"
837
+ msgstr "Geo-kodiranje"
838
+
839
+ #: mappress_settings.php:162
840
+ msgid "Directions units"
841
+ msgstr "Jedinice uputstava"
842
+
843
+ #: mappress_settings.php:164
844
+ msgid "Miscellaneous"
845
+ msgstr "Mešano"
846
+
847
+ #: mappress_settings.php:166
848
+ msgid "Adaptive display"
849
+ msgstr "Adaptirajući prikaz"
850
+
851
+ #: mappress_settings.php:167
852
+ msgid "Turn off CSS"
853
+ msgstr "Isključite CSS"
854
+
855
+ #: mappress_settings.php:168
856
+ msgid "Load maps last"
857
+ msgstr "Mape učitajte poslednje"
858
+
859
+ #: mappress_settings.php:218
860
+ msgid "Use the settings below to automatically create maps from custom fields."
861
+ msgstr ""
862
+ "Koristite podešavanje ispod za automatsko kreiranje mapa iz uobičajenih "
863
+ "polja."
864
+
865
+ #: mappress_settings.php:224
866
+ msgid "Posts"
867
+ msgstr "Postovi"
868
+
869
+ #: mappress_settings.php:225
870
+ msgid "Pages"
871
+ msgstr "Stranice"
872
+
873
+ #: mappress_settings.php:251
874
+ msgid "(Default)"
875
+ msgstr "(Uobičajeno)"
876
+
877
+ #: mappress_settings.php:251
878
+ msgid "Metric (kilometers)"
879
+ msgstr "Metrički (kilometri)"
880
+
881
+ #: mappress_settings.php:251
882
+ msgid "Imperial (miles)"
883
+ msgstr "Imperijalno (milje)"
884
+
885
+ #: mappress_settings.php:256
886
+ msgid "Enable map dragging with the mouse"
887
+ msgstr "Omogućite prevlačenje mape pomoću miša"
888
+
889
+ #: mappress_settings.php:272
890
+ #, php-format
891
+ msgid "Use a specific %s for map controls and geocoding"
892
+ msgstr "Koristite specifične %s za kontrole mapa i geo-kodiranje"
893
+
894
+ #: mappress_settings.php:281
895
+ msgid "Horizontal"
896
+ msgstr "Horizontalno"
897
+
898
+ #: mappress_settings.php:282
899
+ msgid "Dropdown"
900
+ msgstr "Ispušteno"
901
+
902
+ #: mappress_settings.php:287
903
+ msgid "Small"
904
+ msgstr "Malo"
905
+
906
+ #: mappress_settings.php:288
907
+ msgid "Large"
908
+ msgstr "Veliko"
909
+
910
+ #: mappress_settings.php:289
911
+ msgid "Android"
912
+ msgstr "Android"
913
+
914
+ #: mappress_settings.php:300
915
+ msgid "Open initially"
916
+ msgstr "Prvobitno otvoreno"
917
+
918
+ #: mappress_settings.php:302 mappress_settings.php:304
919
+ #: mappress_settings.php:306
920
+ msgid "Checked initially"
921
+ msgstr "Prvobitno provereno"
922
+
923
+ #: mappress_settings.php:308
924
+ msgid "Control"
925
+ msgstr "Kontrola"
926
+
927
+ #: mappress_settings.php:308
928
+ msgid "Enable"
929
+ msgstr "Omogućiti"
930
+
931
+ #: mappress_settings.php:312
932
+ msgid "Pan"
933
+ msgstr "Pan"
934
+
935
+ #: mappress_settings.php:314
936
+ msgid "Street view"
937
+ msgstr "Pregled ulica"
938
+
939
+ #: mappress_settings.php:315
940
+ msgid "Scale"
941
+ msgstr "Skala"
942
+
943
+ #: mappress_settings.php:317
944
+ msgid "Public transit"
945
+ msgstr "Javni saobraćaj"
946
+
947
+ #: mappress_settings.php:319
948
+ msgid "Bike routes"
949
+ msgstr "Biciklističke rute"
950
+
951
+ #: mappress_settings.php:326
952
+ msgid "Road map"
953
+ msgstr "Mapa puteva"
954
+
955
+ #: mappress_settings.php:327 pro/mappress_widget.php:142
956
+ msgid "Satellite"
957
+ msgstr "Satelit"
958
+
959
+ #: mappress_settings.php:328 pro/mappress_widget.php:143
960
+ msgid "Terrain"
961
+ msgstr "Teren"
962
+
963
+ #: mappress_settings.php:329 pro/mappress_widget.php:141
964
+ msgid "Hybrid"
965
+ msgstr "Hibrid"
966
+
967
+ #: mappress_settings.php:351
968
+ msgid "Automatically open the first POI when a map is displayed"
969
+ msgstr "Automatski otvorite prvi POI prilikom prikazivanja mape"
970
+
971
+ #: mappress_settings.php:356 mappress_settings.php:365
972
+ msgid "Show control"
973
+ msgstr "Prikazati kontrolu"
974
+
975
+ #: mappress_settings.php:360 mappress_settings.php:369
976
+ msgid "Enabled by default"
977
+ msgstr "Omogućeno po default-u"
978
+
979
+ #: mappress_settings.php:373
980
+ msgid "Show POI titles as a \"tooltip\" on mouse-over"
981
+ msgstr "Prikazati naslove POI-a kao \"tooltip\" kod prevlačenja mišem"
982
+
983
+ #: mappress_settings.php:438
984
+ msgid "Display shadow"
985
+ msgstr "Prikazati senku"
986
+
987
+ #: mappress_settings.php:462
988
+ msgid "Default zoom for POIs entered by lat/lng"
989
+ msgstr "Uobičajeni zum za POI-e unesen na latinskom/engleskom"
990
+
991
+ #: mappress_settings.php:477
992
+ msgid "Recenter maps when window is resized"
993
+ msgstr "Ponovno centriranje mapa kada je promenjena veličina prozora"
994
+
995
+ #: mappress_settings.php:481
996
+ #, php-format
997
+ msgid "Don't load the %s stylesheet"
998
+ msgstr "Ne učitavajte %s stylesheet"
999
+
1000
+ #: mappress_settings.php:485
1001
+ msgid "Load maps in window 'load' event"
1002
+ msgstr "Učitajte mape u prozoru ‘učitaj’ događaj"
1003
+
1004
+ #: mappress_settings.php:489
1005
+ msgid "Height"
1006
+ msgstr "Visina"
1007
+
1008
+ #: mappress_settings.php:500
1009
+ msgid "Enter sizes in px or %"
1010
+ msgstr "Unesite veličine u pikselima ili %"
1011
+
1012
+ #: mappress_settings.php:510
1013
+ msgid "Rate it 5 Stars"
1014
+ msgstr "Rangirajte ga sa 5 zvezdica"
1015
+
1016
+ #: mappress_settings.php:512
1017
+ #, php-format
1018
+ msgid "%s on WordPress.org"
1019
+ msgstr "%s na WordPress.org"
1020
+
1021
+ #: mappress_settings.php:541
1022
+ msgid "Easy Google Maps"
1023
+ msgstr "Easy Google Maps"
1024
+
1025
+ #: mappress_updater.php:19
1026
+ msgid "Settings"
1027
+ msgstr "Podešavanja"
1028
+
1029
+ #: mappress_updater.php:41
1030
+ msgid "download it now"
1031
+ msgstr "Preuzmite sada"
1032
+
1033
+ #: mappress_updater.php:46
1034
+ #, php-format
1035
+ msgid "A PRO Version update is available for manual installation: %s"
1036
+ msgstr "Ažuriranje PRO verzije je dostupno za manuelnu instalaciju: %s "
1037
+
1038
+ #: forms/map_editor.php:2
1039
+ msgid "Add POI"
1040
+ msgstr "Add POI"
1041
+
1042
+ #: forms/map_editor.php:5 templates/map_directions.php:11
1043
+ msgid "My location"
1044
+ msgstr "Moja lokacija"
1045
+
1046
+ #: forms/map_editor.php:18
1047
+ msgid "Click map for lat/lng: "
1048
+ msgstr "Kliknite na mapu za latinski/engleski"
1049
+
1050
+ #: forms/map_editor_infobox.php:22
1051
+ msgid "Line: "
1052
+ msgstr "Linija:"
1053
+
1054
+ #: forms/map_editor_infobox.php:24
1055
+ msgid "Weight"
1056
+ msgstr "Težina"
1057
+
1058
+ #: forms/map_editor_infobox.php:25 forms/map_editor_infobox.php:31
1059
+ msgid "Opacity"
1060
+ msgstr "Neprozirnost"
1061
+
1062
+ #: forms/map_editor_infobox.php:29
1063
+ msgid "Fill: "
1064
+ msgstr "Popunite:"
1065
+
1066
+ #: forms/map_editor_infobox.php:40
1067
+ msgid "Visual"
1068
+ msgstr "Vizuelno"
1069
+
1070
+ #: forms/map_editor_infobox.php:40
1071
+ msgid "HTML"
1072
+ msgstr "HTML"
1073
+
1074
+ #: forms/map_media.php:11
1075
+ msgid "Maps for This Post"
1076
+ msgstr "Mape za ovaj post"
1077
+
1078
+ #: forms/map_media.php:27
1079
+ msgid "Map Title"
1080
+ msgstr "Naslov mape"
1081
+
1082
+ #: forms/map_media.php:32
1083
+ msgid "Size"
1084
+ msgstr "Veličina"
1085
+
1086
+ #: pro/mappress_geocoders.php:53
1087
+ msgid "No results, check that a geocoder is configured"
1088
+ msgstr "Nema rezultata, proverite da li je geo-koder konfigurisan"
1089
+
1090
+ #: pro/mappress_geocoders.php:85
1091
+ #, php-format
1092
+ msgid "Invalid status: %s, address: %s"
1093
+ msgstr "Nevažeći status: %s, adresa: %s"
1094
+
1095
+ #: pro/mappress_geocoders.php:94 pro/mappress_geocoders.php:158
1096
+ #, php-format
1097
+ msgid "No results for address: %s"
1098
+ msgstr "Nema rezultata za adresu: %s"
1099
+
1100
+ #: pro/mappress_geocoders.php:154
1101
+ #, php-format
1102
+ msgid "Error: %s %s"
1103
+ msgstr "Greška: %s %s"
1104
+
1105
+ #: pro/mappress_icons.php:72
1106
+ msgid "Use default icon"
1107
+ msgstr "Koristite uobičajenu ikonicu"
1108
+
1109
+ #: pro/mappress_pro.php:160
1110
+ msgid "Automatic"
1111
+ msgstr "Automatski"
1112
+
1113
+ #: pro/mappress_pro_settings.php:10
1114
+ msgid "POI list"
1115
+ msgstr "POI lista"
1116
+
1117
+ #: pro/mappress_pro_settings.php:11
1118
+ msgid "Use DataTables"
1119
+ msgstr "Koristite tabele sa podacima"
1120
+
1121
+ #: pro/mappress_pro_settings.php:13
1122
+ msgid "InfoWindow type"
1123
+ msgstr "Tip Info prozora"
1124
+
1125
+ #: pro/mappress_pro_settings.php:14
1126
+ msgid "InfoWindow panning"
1127
+ msgstr "“Panoramisanje” iInfo prozora"
1128
+
1129
+ #: pro/mappress_pro_settings.php:16
1130
+ msgid "Default icon"
1131
+ msgstr "Uobičajena ikonica"
1132
+
1133
+ #: pro/mappress_pro_settings.php:17
1134
+ msgid "Custom icons directory"
1135
+ msgstr "Direktorijum uobičajenih ikonica"
1136
+
1137
+ #: pro/mappress_pro_settings.php:19
1138
+ msgid "Mashup POI title"
1139
+ msgstr "Naslov mešavine POI-a"
1140
+
1141
+ #: pro/mappress_pro_settings.php:20
1142
+ msgid "Mashup POI body"
1143
+ msgstr "Telo mešavine POI-a"
1144
+
1145
+ #: pro/mappress_pro_settings.php:21
1146
+ msgid "Mashup POI click"
1147
+ msgstr "Klik mešavine POI-a"
1148
+
1149
+ #: pro/mappress_pro_settings.php:22
1150
+ msgid "Link title"
1151
+ msgstr "Naziv linka "
1152
+
1153
+ #: pro/mappress_pro_settings.php:23
1154
+ msgid "Mashup Thumbnails"
1155
+ msgstr "Sažete mešavine"
1156
+
1157
+ #: pro/mappress_pro_settings.php:24
1158
+ msgid "Thumbnail Size"
1159
+ msgstr "Veličina sažetih delova"
1160
+
1161
+ #: pro/mappress_pro_settings.php:26
1162
+ msgid "Styled maps"
1163
+ msgstr "Stilizovane mape"
1164
+
1165
+ #: pro/mappress_pro_settings.php:27
1166
+ msgid "Default style"
1167
+ msgstr "Uobičajeni stil"
1168
+
1169
+ #: pro/mappress_pro_settings.php:29
1170
+ msgid "Geocoder(s)"
1171
+ msgstr "Geo-koder(i)"
1172
+
1173
+ #: pro/mappress_pro_settings.php:30
1174
+ msgid "Geocoding fields"
1175
+ msgstr "Polja za geo-kodiranje"
1176
+
1177
+ #: pro/mappress_pro_settings.php:32
1178
+ msgid "API key (optional)"
1179
+ msgstr "API ključ (opciono)"
1180
+
1181
+ #: pro/mappress_pro_settings.php:75
1182
+ msgid "Show a list of POIs under each map"
1183
+ msgstr "Prikažite listu POI-a ispod svake mape"
1184
+
1185
+ #: pro/mappress_pro_settings.php:80
1186
+ #, php-format
1187
+ msgid "Show the POI list as a sortable %s"
1188
+ msgstr "Prikažite listu POI-a kao %s koji se može sortirati"
1189
+
1190
+ #: pro/mappress_pro_settings.php:84
1191
+ msgid "POI title"
1192
+ msgstr "Naziv POI-a"
1193
+
1194
+ #: pro/mappress_pro_settings.php:84
1195
+ msgid "Post title"
1196
+ msgstr "Naziv posta"
1197
+
1198
+ #: pro/mappress_pro_settings.php:89
1199
+ msgid "POI body"
1200
+ msgstr "Telo POI-a"
1201
+
1202
+ #: pro/mappress_pro_settings.php:89
1203
+ msgid "Address"
1204
+ msgstr "Adresa"
1205
+
1206
+ #: pro/mappress_pro_settings.php:89
1207
+ msgid "Post excerpt"
1208
+ msgstr "Prepis posta"
1209
+
1210
+ #: pro/mappress_pro_settings.php:94
1211
+ msgid "Link POI titles to the underlying post"
1212
+ msgstr "Povežite nazive POI-a za podvučeni post"
1213
+
1214
+ #: pro/mappress_pro_settings.php:98
1215
+ msgid "Open the POI"
1216
+ msgstr "Otvorite POI"
1217
+
1218
+ #: pro/mappress_pro_settings.php:98
1219
+ msgid "Go directly to the post"
1220
+ msgstr "Idite direktno na post"
1221
+
1222
+ #: pro/mappress_pro_settings.php:104
1223
+ msgid "Google InfoWindow"
1224
+ msgstr "Google Info prozor"
1225
+
1226
+ #: pro/mappress_pro_settings.php:105
1227
+ msgid "InfoBox (can be styled and extend outside the map)"
1228
+ msgstr "Info kutija (može se stilizovati i produžiti izvan mape)"
1229
+
1230
+ #: pro/mappress_pro_settings.php:111
1231
+ msgid "Disable map panning when infoWindow / infoBox is opened"
1232
+ msgstr ""
1233
+ "Onemogućite “panoramisanje” mape kada su Info prozor / Info kutija otvoreni"
1234
+
1235
+ #: pro/mappress_pro_settings.php:115
1236
+ msgid "Show featured image thumbnails in mashup POIs"
1237
+ msgstr "Prikažite istaknute sažete delove slika u mešavini POI-a"
1238
+
1239
+ #: pro/mappress_pro_settings.php:123
1240
+ msgid "Use existing size: "
1241
+ msgstr "Koristite postojeću veličinu:"
1242
+
1243
+ #: pro/mappress_pro_settings.php:126
1244
+ msgid "or resize to (px): "
1245
+ msgstr "ili promenite veličinu u (pikseli):"
1246
+
1247
+ #: pro/mappress_pro_settings.php:141
1248
+ msgid "styled maps"
1249
+ msgstr "stilizovane mape"
1250
+
1251
+ #: pro/mappress_pro_settings.php:142
1252
+ msgid "styled maps wizard"
1253
+ msgstr "“čarobnjak” stilizovanih mapa"
1254
+
1255
+ #: pro/mappress_pro_settings.php:144
1256
+ #, php-format
1257
+ msgid "Enter JSON for %s from Google's %s"
1258
+ msgstr "Unesite JSON za %s iz Google-ovog %s"
1259
+
1260
+ #: pro/mappress_pro_settings.php:153
1261
+ msgid "Style name"
1262
+ msgstr "Ime stila"
1263
+
1264
+ #: pro/mappress_pro_settings.php:167
1265
+ msgid "No styles have been defined yet"
1266
+ msgstr "Nijedan stil još nije definisan"
1267
+
1268
+ #: pro/mappress_pro_settings.php:178
1269
+ msgid "Nominatim"
1270
+ msgstr "Nominatim"
1271
+
1272
+ #: pro/mappress_pro_settings.php:190
1273
+ msgid "Address Line 1"
1274
+ msgstr "Linija adrese 1"
1275
+
1276
+ #: pro/mappress_pro_settings.php:191
1277
+ msgid "Address Line 2"
1278
+ msgstr "Linija adrese 2"
1279
+
1280
+ #: pro/mappress_pro_settings.php:192
1281
+ msgid "Address Line 3"
1282
+ msgstr "Linija adrese 3"
1283
+
1284
+ #: pro/mappress_pro_settings.php:193
1285
+ msgid "Address Line 4"
1286
+ msgstr "Linija adrese 4"
1287
+
1288
+ #: pro/mappress_pro_settings.php:194
1289
+ msgid "Address Line 5"
1290
+ msgstr "Linija adrese 5"
1291
+
1292
+ #: pro/mappress_pro_settings.php:195
1293
+ msgid "Address Line 6"
1294
+ msgstr "Linija adrese 6"
1295
+
1296
+ #: pro/mappress_pro_settings.php:196
1297
+ msgid "Latitude"
1298
+ msgstr "Geografska širina"
1299
+
1300
+ #: pro/mappress_pro_settings.php:197
1301
+ msgid "Longitude"
1302
+ msgstr "Geografska dužina"
1303
+
1304
+ #: pro/mappress_pro_settings.php:198
1305
+ msgid "Icon"
1306
+ msgstr "Icona"
1307
+
1308
+ #: pro/mappress_pro_settings.php:200
1309
+ msgid "Body"
1310
+ msgstr "Telo"
1311
+
1312
+ #: pro/mappress_pro_settings.php:201
1313
+ msgid "Map Zoom"
1314
+ msgstr "Zum mape"
1315
+
1316
+ #: pro/mappress_pro_settings.php:204 pro/mappress_widget.php:140
1317
+ msgid "Map"
1318
+ msgstr "Mapa"
1319
+
1320
+ #: pro/mappress_pro_settings.php:204
1321
+ msgid "Custom Field"
1322
+ msgstr "Uobičajeno polje"
1323
+
1324
+ #: pro/mappress_pro_settings.php:213
1325
+ msgid "Overwrite existing maps when upating"
1326
+ msgstr "Precrtajte postojeće mape prilikom ažuriranja"
1327
+
1328
+ #: pro/mappress_pro_settings.php:218
1329
+ msgid "usage tracking"
1330
+ msgstr "Trakiranje upotrebe"
1331
+
1332
+ #: pro/mappress_pro_settings.php:219
1333
+ #, php-format
1334
+ msgid "API keys is needed only for premium services or %s"
1335
+ msgstr "API ključevi su potrebni samo za premijum usluge ili %s"
1336
+
1337
+ #: pro/mappress_pro_settings.php:227
1338
+ msgid "Permanently resize existing maps"
1339
+ msgstr "Trajno promenite veličinu postojećih mapa"
1340
+
1341
+ #: pro/mappress_widget.php:78
1342
+ msgid "Widget title"
1343
+ msgstr "Naslov vidžeta"
1344
+
1345
+ #: pro/mappress_widget.php:83
1346
+ msgid "Map size"
1347
+ msgstr "Veličina mape"
1348
+
1349
+ #: pro/mappress_widget.php:89
1350
+ msgid "Show"
1351
+ msgstr "Prikazati"
1352
+
1353
+ #: pro/mappress_widget.php:90
1354
+ msgid "Current posts"
1355
+ msgstr "Trenutni postovi"
1356
+
1357
+ #: pro/mappress_widget.php:91
1358
+ msgid "Hide if empty"
1359
+ msgstr "Sakrijte ukoliko je prazno"
1360
+
1361
+ #: pro/mappress_widget.php:93
1362
+ msgid "All posts"
1363
+ msgstr "Svi postovi"
1364
+
1365
+ #: pro/mappress_widget.php:94
1366
+ msgid "Custom query"
1367
+ msgstr "Uobičajeno ispitivanje"
1368
+
1369
+ #: pro/mappress_widget.php:97
1370
+ msgid "Learn about queries"
1371
+ msgstr "Saznajte o ispitivanjima"
1372
+
1373
+ #: pro/mappress_widget.php:102
1374
+ msgid "Show POI list"
1375
+ msgstr "Prikažite POI listu"
1376
+
1377
+ #: pro/mappress_widget.php:104
1378
+ msgid "Link POIs to posts"
1379
+ msgstr "Povežite Poi-e sa postovima"
1380
+
1381
+ #: pro/mappress_widget.php:109
1382
+ msgid "Inline"
1383
+ msgstr "Inline"
1384
+
1385
+ #: pro/mappress_widget.php:137
1386
+ msgid "Map type"
1387
+ msgstr "Tip mape"
1388
+
1389
+ #: pro/mappress_widget.php:151
1390
+ msgid "Other Settings"
1391
+ msgstr "Druga podešavanja"
1392
+
1393
+ #: pro/mappress_widget.php:154
1394
+ msgid "Example: traffic=\"false\" maplinks=\"\""
1395
+ msgstr "Primer: saobraćaj=\"false\" linkovi mapa=\"\""
1396
+
1397
+ #: templates/map_directions.php:4
1398
+ msgid "Public Transit"
1399
+ msgstr "Javni saobraćaj"
1400
+
1401
+ #: templates/map_directions.php:30
1402
+ msgid "Print"
1403
+ msgstr "Štampanje"
1404
+
1405
+ #: templates/map_template.php:12
1406
+ msgid "Please enable javascript to view this map."
1407
+ msgstr "Molimo omogućite javascript radi pregleda ove mape"
1408
+
1409
+ #~ msgid "Internal error, map was missing. Your data has not been saved!"
1410
+ #~ msgstr ""
1411
+ #~ "Errore interno: la mappa é stata smarrita. I dati non sono stati salvati!"
1412
+
1413
+ #~ msgid "Internal error - unable to save map. Your data has not been saved!"
1414
+ #~ msgstr ""
1415
+ #~ "Errore interno - non é possibile salvare la mappa. I dati non sono stati "
1416
+ #~ "salvati!"
1417
+
1418
+ #~ msgid "Custom CSS"
1419
+ #~ msgstr "CSS personalizzato"
1420
+
1421
+ #~ msgid "Show a list of markers under each map."
1422
+ #~ msgstr "Mostra sotto ogni mappa una lista di luoghi"
1423
+
1424
+ #~ msgid "Mark the %s where you want to use MapPress"
1425
+ #~ msgstr "Indica il %s laddove desideri utilizzare MapPress"
1426
+
1427
+ #~ msgid "Take a moment to rate it %s on WordPress.org - or make a donation"
1428
+ #~ msgstr "Votalo %s su WordPress.org - oppure fai una donazione"
1429
+
1430
+ #~ msgid "Toggle lat/lng entry"
1431
+ #~ msgstr "Commuta a inserimento lat/lng"
1432
+
1433
+ #~ msgid "Lat/Lng"
1434
+ #~ msgstr "Lat/Lng"
1435
+
1436
+ #~ msgid "Medium"
1437
+ #~ msgstr "Media"
1438
+
1439
+ #~ msgid "Unable to parse input: %s"
1440
+ #~ msgstr "Non é stato possibile analizzare l'input: %s"
1441
+
1442
+ #~ msgid "Field for addresses"
1443
+ #~ msgstr "Campo per gli indirizzi"
1444
+
1445
+ #~ msgid "Field for errors"
1446
+ #~ msgstr "Campo per gli errori"
1447
+
1448
+ #~ msgid "Update map when address is changed by a program"
1449
+ #~ msgstr ""
1450
+ #~ "Aggiorna la mappa quando un indirizzo é stato modificato da un programma"
1451
+
1452
+ #~ msgid "Display powered by link"
1453
+ #~ msgstr "Attiva il link \"fornito da\"."
1454
+
1455
+ #~ msgid "Mappress Pro Site"
1456
+ #~ msgstr "Sito Mappress Pro"
1457
+
1458
+ #~ msgid "Show query"
1459
+ #~ msgstr "Mostra query"
1460
+
1461
+ #~ msgid "Marker title"
1462
+ #~ msgstr "Nome del marker"
1463
+
1464
+ #~ msgid "Link"
1465
+ #~ msgstr "Link"
1466
+
1467
+ #~ msgid "Marker body"
1468
+ #~ msgstr "Corpo del marker"
1469
+
1470
+ #~ msgid "Show list of markers"
1471
+ #~ msgstr "Mostra elenco marker"
1472
+
1473
+ #~ msgid "This setting requires %s. Show a list of markers under each map."
1474
+ #~ msgstr ""
1475
+ #~ "Questa impostazione richiede %s. Mostra una lista di marker sotto ogni "
1476
+ #~ "mappa."
1477
+
1478
+ #~ msgid "Donate"
1479
+ #~ msgstr "Donazioni"
1480
+
1481
+ #~ msgid "Marker title:"
1482
+ #~ msgstr "Nome del marker:"
1483
+
1484
+ #~ msgid "Marker body:"
1485
+ #~ msgstr "Corpo del marker:"
1486
+
1487
+ #, fuzzy
1488
+ #~ msgid "Directions:"
1489
+ #~ msgstr "Percorsi"
1490
+
1491
+ #, fuzzy
1492
+ #~ msgid "Marker list:"
1493
+ #~ msgstr "Lista marker"
1494
+
1495
+ #~ msgid "Location list"
1496
+ #~ msgstr "Lista luoghi"
1497
+
1498
+ #~ msgid " Include link"
1499
+ #~ msgstr " Includi link"
1500
+
1501
+ #~ msgid "Map custom field"
1502
+ #~ msgstr "Campo personalizzato mappa"
1503
+
1504
+ #~ msgid ""
1505
+ #~ " Include your own CSS. You must create a file named %s in the MapPress "
1506
+ #~ "%s sub-directory"
1507
+ #~ msgstr ""
1508
+ #~ " Includi CSS personalizzato. Crea un file a nome %s nella sotto-cartella "
1509
+ #~ "%s di MapPress"
1510
+
1511
+ #~ msgid "Map addresses from a %s : "
1512
+ #~ msgstr "Indirizzi mappa da un %s : "
1513
+
1514
+ #~ msgid "Categories"
1515
+ #~ msgstr "Categorie"
1516
+
1517
+ #~ msgid "Permanent link to"
1518
+ #~ msgstr "Permalink a"
1519
+
1520
+ #~ msgid "Archives"
1521
+ #~ msgstr "Archivi"
1522
+
1523
+ #~ msgid "Mappress Home Page"
1524
+ #~ msgstr " Home Page MapPress"
1525
+
1526
+ #~ msgid "Title:"
1527
+ #~ msgstr "Nome:"
1528
+
1529
+ #~ msgid "Zoom (1-19):"
1530
+ #~ msgstr "Zoom (1-19):"
1531
+
1532
+ #~ msgid "Used when only 1 marker is visible"
1533
+ #~ msgstr "Usato quando 1 solo marker é visibile"
1534
+
1535
+ #~ msgid "Google error: BAD REQUEST"
1536
+ #~ msgstr "Google - messaggio di errore: BAD REQUEST"
1537
+
1538
+ #~ msgid "Google internal error. Try again later."
1539
+ #~ msgstr "Google - errore interno. Riprova più tardi."
1540
+
1541
+ #~ msgid "The starting or ending address was missing."
1542
+ #~ msgstr "Manca l'indirizzo di partenza o arrivo."
1543
+
1544
+ #~ msgid ""
1545
+ #~ "Google cannot return those directions for legal or contractual reasons"
1546
+ #~ msgstr ""
1547
+ #~ "Google non può mostrare questi percorsi per ragioni contrattuali o legali"
1548
+
1549
+ #~ msgid "Invalid map API key"
1550
+ #~ msgstr "Chiave API non valida"
1551
+
1552
+ #~ msgid "Your key has issued too many queries in one day."
1553
+ #~ msgstr "La tua chiave ha inoltrato in un solo giorno troppe richieste."
1554
+
1555
+ #~ msgid ""
1556
+ #~ "Error: your browser does not seem to support the street view Flash player"
1557
+ #~ msgstr ""
1558
+ #~ "Errore: pare che il tuo browser non supporti lo street view Flash player"
1559
+
1560
+ #~ msgid "Sorry, no street view data is available for this location"
1561
+ #~ msgstr "nessuna visualizzazione stradale per questa località"
1562
+
1563
+ #~ msgid "Sorry, Google was unable to display the street view in your browser"
1564
+ #~ msgstr ""
1565
+ #~ "Google non é in grado di potere mostrare nel tuo browser la "
1566
+ #~ "visualizzazione stradale"
1567
+
1568
+ #~ msgid "Get directions"
1569
+ #~ msgstr "Ottieni i percorsi"
1570
+
1571
+ #~ msgid "to here"
1572
+ #~ msgstr "a qui"
1573
+
1574
+ #~ msgid "from here"
1575
+ #~ msgstr "da qui"
1576
+
1577
+ #~ msgid "Go"
1578
+ #~ msgstr "Vai"
1579
+
1580
+ #~ msgid "Please enter your API key. Need an API key? Get one "
1581
+ #~ msgstr "Inserisci la tua chiave API. Non hai una chiave API? Vai qui "
1582
+
1583
+ #~ msgid ""
1584
+ #~ "MapPress could not load google maps. Either your browser is incompatible "
1585
+ #~ "or your API key is invalid. Need an API key? Get one "
1586
+ #~ msgstr ""
1587
+ #~ "MapPress non può caricare le mappe di Google. Il problema potrebbe "
1588
+ #~ "dipendere dalla incompatibilità del tuo browser oppure da una chiave API "
1589
+ #~ "non valida. Non hai una chiave API? Vai "
1590
+
1591
+ #~ msgid "here"
1592
+ #~ msgstr "qui"
1593
+
1594
+ #~ msgid "That address is already on the map : "
1595
+ #~ msgstr "L'indirizzo é già presente nella mappa :"
1596
+
1597
+ #~ msgid "Please enter a location to map"
1598
+ #~ msgstr "Inserisci una località nella mappa"
1599
+
1600
+ #~ msgid "Press escape or click here to cancel: "
1601
+ #~ msgstr "Premi esci oppure clicca qui per cancellare:"
1602
+
1603
+ #~ msgid ""
1604
+ #~ "MapPress isn't ready yet. Please enter your Google Maps API Key on the "
1605
+ #~ msgstr ""
1606
+ #~ "MapPress non é ancora pronto. Inserisci la tua chiave API di Google Maps "
1607
+ #~ "nel "
1608
+
1609
+ #~ msgid "MapPress options screen."
1610
+ #~ msgstr "MapPress - opzioni schermo."
1611
+
1612
+ #~ msgid "Insert map shortcode in post &raquo;"
1613
+ #~ msgstr "Inserisci nell'articolo lo shortcode della mappa &raquo;"
1614
+
1615
+ #~ msgid "Street Address, city, state, country, or place"
1616
+ #~ msgstr "Indirizzo, città, stato, nazione o luogo"
1617
+
1618
+ #~ msgid "Preview"
1619
+ #~ msgstr "Anteprima"
1620
+
1621
+ #~ msgid "Click on a marker or use the links below to edit or delete markers."
1622
+ #~ msgstr ""
1623
+ #~ "Clicca su di un marker oppure utilizza i link qui sotto per modificare o "
1624
+ #~ "cancellare i marker."
1625
+
1626
+ #~ msgid "ACCESS DENIED: You don't have permission to do this."
1627
+ #~ msgstr ""
1628
+ #~ "ACCESSO NEGATO: non hai i permessi necessari per compiere questa "
1629
+ #~ "operazione."
1630
+
1631
+ #~ msgid "supported languages"
1632
+ #~ msgstr "lingue disponibili"
1633
+
1634
+ #~ msgid "MapPress Options"
1635
+ #~ msgstr "Opzioni MapPress"
1636
+
1637
+ #~ msgid ""
1638
+ #~ "I spend many hours working on MapPress. Please donate to keep me going!"
1639
+ #~ msgstr ""
1640
+ #~ "Ho dedicato molto tempo allo sviluppo di MapPress. Effettua una donazione!"
1641
+
1642
+ #~ msgid "Address format"
1643
+ #~ msgstr "Formato indirizzo"
1644
+
1645
+ #~ msgid "Exactly as entered"
1646
+ #~ msgstr "così come inserito"
1647
+
1648
+ #~ msgid "Corrected address"
1649
+ #~ msgstr "indirizzo corretto"
1650
+
1651
+ #~ msgid "Country code for searches"
1652
+ #~ msgstr "Codice paese (ricerche)"
1653
+
1654
+ #~ msgid ""
1655
+ #~ "Enter a country code to use as a default when searching for an address."
1656
+ #~ msgstr ""
1657
+ #~ "Inserisci il codice paese da utilizzare come predefinito durante la "
1658
+ #~ "ricerca di un indirizzo."
1659
+
1660
+ #~ msgid "Force Google to use a specific language for map controls."
1661
+ #~ msgstr ""
1662
+ #~ "Indica a Google l'utilizzo specifico di una lingua per i controlli della "
1663
+ #~ "mappa."
1664
+
1665
+ #~ msgid "Check to enable directions to/from map markers"
1666
+ #~ msgstr "Seleziona per attivare (marker della mappa) i percorsi da/a"
1667
+
1668
+ #~ msgid ""
1669
+ #~ "Check to show large map controls; uncheck for a small zoom control instead"
1670
+ #~ msgstr ""
1671
+ #~ "Seleziona per mostrare in esteso i controlli per la mappa; deseleziona "
1672
+ #~ "per il solo controllo sullo zoom "
1673
+
1674
+ #~ msgid "Check to enable the \"map types\" button on the map"
1675
+ #~ msgstr "Seleziona per attivare sulla mappa il pulsante \"tipi di mappa\""
1676
+
1677
+ #~ msgid "Initial map type"
1678
+ #~ msgstr "Tipo di mappa all'avvio"
1679
+
1680
+ #~ msgid "Choose the map type to use when the map is first displayed"
1681
+ #~ msgstr ""
1682
+ #~ "Seleziona quale tipologia di mappa mostrare alla visualizzazione di "
1683
+ #~ "partenza"
1684
+
1685
+ #~ msgid "(click the icon to choose)"
1686
+ #~ msgstr "(clicca sulla icona per scegliere)"
1687
+
1688
+ #~ msgid ""
1689
+ #~ "The starting or ending address could not be found. Please check that the "
1690
+ #~ "address is correct and completely entered."
1691
+ #~ msgstr ""
1692
+ #~ "Non é stato possibile trovare l'indirizzo di partenza o arrivo. Verifica "
1693
+ #~ "che l'indirizzo sia valido nonché sia stato inserito correttamente."
1694
+
1695
+ #~ msgid "(leave blank for default)"
1696
+ #~ msgstr "(lascia in bianco per le predefinite)"
1697
+
1698
+ #~ msgid "1 - zoomed out"
1699
+ #~ msgstr "1 - riduci zoom"
1700
+
1701
+ #~ msgid "20 - zoomed in"
1702
+ #~ msgstr "20 - aumenta zoom"
1703
+
1704
+ #~ msgid "Map width"
1705
+ #~ msgstr "Larghezza mappa"
1706
+
1707
+ #~ msgid "Enter a value in pixels (default is 400)"
1708
+ #~ msgstr "Inserisci un valore in pixel (predefinito a 400)"
1709
+
1710
+ #~ msgid "Enter a value in pixels (default is 300)"
1711
+ #~ msgstr "Inserisci un valore in pixel (predefinito a 300)"
1712
+
1713
+ #~ msgid "Advanced Settings"
1714
+ #~ msgstr "Impostazioni avanzate"
1715
+
1716
+ #~ msgid ""
1717
+ #~ "Check to show the \"GoogleBar\" search box for local business listings."
1718
+ #~ msgstr ""
1719
+ #~ "Seleziona per mostrare la casella di ricerca \"GoogleBar\" per l'elenco "
1720
+ #~ "delle attività commerciali locali."
1721
+
1722
+ #~ msgid ""
1723
+ #~ "Automatically center/zoom map when saved (uncheck to display map exactly "
1724
+ #~ "as shown below)"
1725
+ #~ msgstr ""
1726
+ #~ "Centratura/Zoom in automatico al salvataggio della mappa (deseleziona per "
1727
+ #~ "mostrare la mappa esattamente come qui sotto)"
1728
+
1729
+ #~ msgid "Center/zoom now"
1730
+ #~ msgstr "Centratura/zoom"
languages/{mappress-zh_CN.mo → mappress-google-maps-for-wordpress-zh_CN.mo} RENAMED
File without changes
languages/{mappress-zh_CN.po → mappress-google-maps-for-wordpress-zh_CN.po} RENAMED
File without changes
languages/{mappress-zh_TW.mo → mappress-google-maps-for-wordpress-zh_TW.mo} RENAMED
File without changes
languages/{mappress-zh_TW.po → mappress-google-maps-for-wordpress-zh_TW.po} RENAMED
File without changes
languages/{mappress.mo → mappress-google-maps-for-wordpress.mo} RENAMED
Binary file
languages/{mappress.po → mappress-google-maps-for-wordpress.po} RENAMED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-04-30 14:40-0800\n"
6
- "PO-Revision-Date: 2015-04-30 14:40-0800\n"
7
  "Last-Translator: Plugin Author <donotreply@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -13,130 +13,131 @@ msgstr ""
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SearchPath-0: ..\n"
15
 
16
- #: ../mappress.php:119
 
17
  msgid "Version"
18
- msgstr "Version"
19
 
20
- #: ../mappress.php:127
21
  msgid "Documentation"
22
- msgstr "Documentation"
23
 
24
- #: ../mappress.php:128
25
  msgid "Support"
26
- msgstr "Support"
27
 
28
- #: ../mappress.php:131
29
  msgid "Upgrade to MapPress Pro"
30
  msgstr ""
31
 
32
- #: ../mappress.php:333
33
  msgid "MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this."
34
  msgstr ""
35
 
36
- #: ../mappress.php:338
37
  msgid "WARNING: MapPress now requires WordPress 3.2 or higher. Please upgrade before using MapPress."
38
  msgstr ""
39
 
40
- #: ../mappress.php:343
41
  msgid "WARNING: MapPress is not compfatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress."
42
  msgstr ""
43
 
44
- #: ../mappress.php:554
45
  msgid "Bicycling"
46
  msgstr ""
47
 
48
- #: ../mappress.php:555
49
  msgid "Bike"
50
  msgstr ""
51
 
52
- #: ../mappress.php:556
53
  msgid "One of the addresses could not be found."
54
  msgstr ""
55
 
56
- #: ../mappress.php:557
57
  msgid "Google cannot return directions between those addresses. There is no route between them or the routing information is not available."
58
  msgstr ""
59
 
60
- #: ../mappress.php:558
61
  msgid "Unknown error, unable to return directions. Status code = "
62
  msgstr ""
63
 
64
- #: ../mappress.php:559
65
- #: ../mappress_poi.php:244
66
- #: ../mappress_settings.php:131
67
  #: ../pro/mappress_widget.php:106
68
  msgid "Directions"
69
  msgstr ""
70
 
71
- #: ../mappress.php:560
72
  msgid "Error reading KML file"
73
  msgstr ""
74
 
75
- #: ../mappress.php:561
76
  msgid "Loading..."
77
  msgstr ""
78
 
79
- #: ../mappress.php:562
80
  msgid "No matching address"
81
  msgstr ""
82
 
83
- #: ../mappress.php:563
84
  msgid "Unable to get your location"
85
  msgstr ""
86
 
87
- #: ../mappress.php:564
88
- #: ../mappress_settings.php:316
89
  msgid "Traffic"
90
  msgstr ""
91
 
92
- #: ../mappress.php:565
93
  msgid "Transit"
94
  msgstr ""
95
 
96
- #: ../mappress.php:566
97
- #: ../mappress_poi.php:293
98
- #: ../mappress_settings.php:311
99
- #: ../mappress_settings.php:399
100
  #: ../pro/mappress_widget.php:122
101
  msgid "Zoom"
102
  msgstr ""
103
 
104
- #: ../mappress.php:571
105
  #: ../mappress_controls.php:156
106
  msgid "Add"
107
  msgstr ""
108
 
109
- #: ../mappress.php:572
110
  msgid "Click & drag to move"
111
  msgstr ""
112
 
113
- #: ../mappress.php:573
114
  msgid "Click to change"
115
  msgstr ""
116
 
117
- #: ../mappress.php:574
118
  #: ../mappress_controls.php:141
119
- #: ../mappress_map.php:467
120
  msgid "Delete"
121
  msgstr ""
122
 
123
- #: ../mappress.php:575
124
  msgid "Delete this POI?"
125
  msgstr ""
126
 
127
- #: ../mappress.php:576
128
  msgid "Delete this map?"
129
  msgstr ""
130
 
131
- #: ../mappress.php:577
132
  msgid "Please save the map first"
133
  msgstr ""
134
 
135
- #: ../mappress.php:578
136
  msgid "Shape"
137
  msgstr ""
138
 
139
- #: ../mappress.php:579
140
  msgid "Untitled"
141
  msgstr ""
142
 
@@ -155,441 +156,445 @@ msgstr ""
155
  msgid "Map not found"
156
  msgstr ""
157
 
158
- #: ../mappress_map.php:465
159
  msgid "Edit"
160
  msgstr ""
161
 
162
- #: ../mappress_map.php:466
163
  #: ../forms/map_media.php:48
164
  msgid "Insert into post"
165
  msgstr ""
166
 
167
- #: ../mappress_map.php:492
168
  msgid "Show map"
169
  msgstr ""
170
 
171
- #: ../mappress_map.php:504
172
- #: ../mappress_settings.php:391
173
  #: ../forms/map_editor.php:25
174
  msgid "Center map"
175
  msgstr ""
176
 
177
- #: ../mappress_map.php:513
178
- #: ../mappress_settings.php:392
179
  msgid "Reset map"
180
  msgstr ""
181
 
182
- #: ../mappress_map.php:522
183
- #: ../mappress_settings.php:390
184
  msgid "Bigger map"
185
  msgstr ""
186
 
187
- #: ../mappress_map.php:523
188
  msgid "Smaller map"
189
  msgstr ""
190
 
191
- #: ../mappress_poi.php:209
192
- #: ../mappress_settings.php:400
193
  msgid "Directions to"
194
  msgstr ""
195
 
196
- #: ../mappress_poi.php:211
197
- #: ../mappress_settings.php:401
198
  msgid "Directions from"
199
  msgstr ""
200
 
201
- #: ../mappress_settings.php:128
202
  msgid "Basic Settings"
203
  msgstr ""
204
 
205
- #: ../mappress_settings.php:129
206
  msgid "Post types"
207
  msgstr ""
208
 
209
- #: ../mappress_settings.php:130
210
  msgid "Automatic map display"
211
  msgstr ""
212
 
213
- #: ../mappress_settings.php:133
214
  msgid "Map Controls"
215
  msgstr ""
216
 
217
- #: ../mappress_settings.php:134
218
  msgid "Draggable"
219
  msgstr ""
220
 
221
- #: ../mappress_settings.php:135
222
  msgid "Keyboard shortcuts"
223
  msgstr ""
224
 
225
- #: ../mappress_settings.php:136
226
  msgid "Scroll wheel zoom"
227
  msgstr ""
228
 
229
- #: ../mappress_settings.php:137
230
  msgid "Map Types"
231
  msgstr ""
232
 
233
- #: ../mappress_settings.php:138
234
  msgid "Map controls"
235
  msgstr ""
236
 
237
- #: ../mappress_settings.php:140
238
  msgid "Map Settings"
239
  msgstr ""
240
 
241
- #: ../mappress_settings.php:141
242
  msgid "Map links"
243
  msgstr ""
244
 
245
- #: ../mappress_settings.php:142
246
  msgid "Map alignment"
247
  msgstr ""
248
 
249
- #: ../mappress_settings.php:143
250
  msgid "Open first POI"
251
  msgstr ""
252
 
253
- #: ../mappress_settings.php:145
254
  msgid "POI Settings"
255
  msgstr ""
256
 
257
- #: ../mappress_settings.php:146
258
  msgid "POI links"
259
  msgstr ""
260
 
261
- #: ../mappress_settings.php:147
262
  msgid "Tooltips"
263
  msgstr ""
264
 
265
- #: ../mappress_settings.php:148
266
  msgid "Default zoom"
267
  msgstr ""
268
 
269
- #: ../mappress_settings.php:151
270
  msgid "Mashups"
271
  msgstr ""
272
 
273
- #: ../mappress_settings.php:152
274
  msgid "Icons"
275
  msgstr ""
276
 
277
- #: ../mappress_settings.php:153
278
  msgid "Styled Maps"
279
  msgstr ""
280
 
281
- #: ../mappress_settings.php:154
282
  msgid "Geocoding"
283
  msgstr ""
284
 
285
- #: ../mappress_settings.php:157
286
  msgid "Localization"
287
  msgstr ""
288
 
289
- #: ../mappress_settings.php:158
290
  msgid "Language"
291
  msgstr ""
292
 
293
- #: ../mappress_settings.php:159
294
  msgid "Country"
295
  msgstr ""
296
 
297
- #: ../mappress_settings.php:160
298
  msgid "Directions server"
299
  msgstr ""
300
 
301
- #: ../mappress_settings.php:161
302
  msgid "Directions units"
303
  msgstr ""
304
 
305
- #: ../mappress_settings.php:163
306
  msgid "Miscellaneous"
307
  msgstr ""
308
 
309
- #: ../mappress_settings.php:164
310
  msgid "Map sizes"
311
  msgstr ""
312
 
313
- #: ../mappress_settings.php:165
 
 
 
 
314
  msgid "Scripts"
315
  msgstr ""
316
 
317
- #: ../mappress_settings.php:166
318
  msgid "CSS"
319
  msgstr ""
320
 
321
- #: ../mappress_settings.php:216
322
  msgid "Use the settings below to automatically create maps from custom fields."
323
  msgstr ""
324
 
325
- #: ../mappress_settings.php:222
 
 
 
 
326
  msgid "Posts"
327
  msgstr ""
328
 
329
- #: ../mappress_settings.php:223
330
  msgid "Pages"
331
  msgstr ""
332
 
333
- #: ../mappress_settings.php:235
334
  msgid "country code"
335
  msgstr ""
336
 
337
- #: ../mappress_settings.php:237
338
  #, php-format
339
  msgid "Enter a %s to use when searching (leave blank for USA)"
340
  msgstr ""
341
 
342
- #: ../mappress_settings.php:244
343
  msgid "Enter a google server URL for directions/printing"
344
  msgstr ""
345
 
346
- #: ../mappress_settings.php:249
347
  msgid "(Default)"
348
  msgstr ""
349
 
350
- #: ../mappress_settings.php:249
351
  msgid "Metric (kilometers)"
352
  msgstr ""
353
 
354
- #: ../mappress_settings.php:249
355
  msgid "Imperial (miles)"
356
  msgstr ""
357
 
358
- #: ../mappress_settings.php:254
359
  msgid "Enable map dragging with the mouse"
360
  msgstr ""
361
 
362
- #: ../mappress_settings.php:258
363
  msgid "Enable zoom with the mouse scroll wheel"
364
  msgstr ""
365
 
366
- #: ../mappress_settings.php:262
367
  msgid "Enable keyboard panning and zooming"
368
  msgstr ""
369
 
370
- #: ../mappress_settings.php:268
371
  msgid "language"
372
  msgstr ""
373
 
374
- #: ../mappress_settings.php:270
375
  #, php-format
376
  msgid "Use a specific %s for map controls and geocoding"
377
  msgstr ""
378
 
379
- #: ../mappress_settings.php:278
380
  #: ../mappress_settings.php:284
381
- #: ../mappress_settings.php:378
382
- #: ../mappress_settings.php:432
 
383
  msgid "Default"
384
  msgstr ""
385
 
386
- #: ../mappress_settings.php:279
387
  msgid "Horizontal"
388
  msgstr ""
389
 
390
- #: ../mappress_settings.php:280
391
  msgid "Dropdown"
392
  msgstr ""
393
 
394
- #: ../mappress_settings.php:285
395
  msgid "Small"
396
  msgstr ""
397
 
398
- #: ../mappress_settings.php:286
399
  msgid "Large"
400
  msgstr ""
401
 
402
- #: ../mappress_settings.php:287
403
  msgid "Android"
404
  msgstr ""
405
 
406
- #: ../mappress_settings.php:298
407
  msgid "Open initially"
408
  msgstr ""
409
 
410
- #: ../mappress_settings.php:300
411
- #: ../mappress_settings.php:302
412
- #: ../mappress_settings.php:304
413
  msgid "Checked initially"
414
  msgstr ""
415
 
416
- #: ../mappress_settings.php:306
417
  msgid "Control"
418
  msgstr ""
419
 
420
- #: ../mappress_settings.php:306
421
  msgid "Enable"
422
  msgstr ""
423
 
424
- #: ../mappress_settings.php:306
425
  msgid "Style"
426
  msgstr ""
427
 
428
- #: ../mappress_settings.php:309
429
  msgid "Map types"
430
  msgstr ""
431
 
432
- #: ../mappress_settings.php:310
433
  msgid "Pan"
434
  msgstr ""
435
 
436
- #: ../mappress_settings.php:312
437
  msgid "Street view"
438
  msgstr ""
439
 
440
- #: ../mappress_settings.php:313
441
  msgid "Scale"
442
  msgstr ""
443
 
444
- #: ../mappress_settings.php:314
445
  msgid "Overview map"
446
  msgstr ""
447
 
448
- #: ../mappress_settings.php:315
449
  msgid "Public transit"
450
  msgstr ""
451
 
452
- #: ../mappress_settings.php:317
453
  msgid "Bike routes"
454
  msgstr ""
455
 
456
- #: ../mappress_settings.php:324
457
  msgid "Road map"
458
  msgstr ""
459
 
460
- #: ../mappress_settings.php:325
461
  #: ../pro/mappress_widget.php:140
462
  msgid "Satellite"
463
  msgstr ""
464
 
465
- #: ../mappress_settings.php:326
466
  #: ../pro/mappress_widget.php:141
467
  msgid "Terrain"
468
  msgstr ""
469
 
470
- #: ../mappress_settings.php:327
471
  #: ../pro/mappress_widget.php:139
472
  msgid "Hybrid"
473
  msgstr ""
474
 
475
- #: ../mappress_settings.php:340
476
  #: ../pro/mappress_pro_settings.php:260
477
  #: ../pro/mappress_widget.php:108
478
  msgid "Google"
479
  msgstr ""
480
 
481
- #: ../mappress_settings.php:341
482
  #: ../pro/mappress_widget.php:107
483
  msgid "Inline"
484
  msgstr ""
485
 
486
- #: ../mappress_settings.php:342
487
  #: ../pro/mappress_widget.php:109
488
  msgid "None"
489
  msgstr ""
490
 
491
- #: ../mappress_settings.php:349
492
  msgid "Automatically open the first POI when a map is displayed"
493
  msgstr ""
494
 
495
- #: ../mappress_settings.php:354
496
- #: ../mappress_settings.php:363
497
  msgid "Show control"
498
  msgstr ""
499
 
500
- #: ../mappress_settings.php:358
501
- #: ../mappress_settings.php:367
502
  msgid "Enabled by default"
503
  msgstr ""
504
 
505
- #: ../mappress_settings.php:371
506
  msgid "Show POI titles as a \"tooltip\" on mouse-over"
507
  msgstr ""
508
 
509
- #: ../mappress_settings.php:379
510
  #: ../pro/mappress_widget.php:114
511
  msgid "Center"
512
  msgstr ""
513
 
514
- #: ../mappress_settings.php:380
515
  msgid "Left"
516
  msgstr ""
517
 
518
- #: ../mappress_settings.php:381
519
  msgid "Right"
520
  msgstr ""
521
 
522
- #: ../mappress_settings.php:409
523
  msgid "Default zoom for POIs entered by lat/lng"
524
  msgstr ""
525
 
526
- #: ../mappress_settings.php:415
527
  msgid "Top of post"
528
  msgstr ""
529
 
530
- #: ../mappress_settings.php:416
531
  msgid "Bottom of post"
532
  msgstr ""
533
 
534
- #: ../mappress_settings.php:417
535
  msgid "No automatic display"
536
  msgstr ""
537
 
538
- #: ../mappress_settings.php:424
539
  #, php-format
540
  msgid "Load %s"
541
  msgstr ""
542
 
543
- #: ../mappress_settings.php:428
544
  msgid "Output scripts in footer"
545
  msgstr ""
546
 
547
- #: ../mappress_settings.php:432
548
  msgid "Width"
549
  msgstr ""
550
 
551
- #: ../mappress_settings.php:432
552
  msgid "Height"
553
  msgstr ""
554
 
555
- #: ../mappress_settings.php:443
556
  msgid "Enter sizes in px or %"
557
  msgstr ""
558
 
559
- #: ../mappress_settings.php:453
560
  msgid "Rate it 5 Stars"
561
  msgstr ""
562
 
563
- #: ../mappress_settings.php:455
564
  #, php-format
565
  msgid "%s on WordPress.org"
566
  msgstr ""
567
 
568
- #: ../mappress_settings.php:456
569
  msgid "Thanks for your support!"
570
  msgstr ""
571
 
572
- #: ../mappress_settings.php:483
573
- msgid "MapPress"
574
- msgstr ""
575
-
576
- #: ../mappress_settings.php:484
577
  msgid "Easy Google Maps"
578
  msgstr ""
579
 
580
- #: ../mappress_settings.php:533
581
  msgid "Like this plugin?"
582
  msgstr ""
583
 
584
- #: ../mappress_settings.php:535
585
  msgid "Sample Map"
586
  msgstr ""
587
 
588
- #: ../mappress_settings.php:554
589
  msgid "Save Changes"
590
  msgstr ""
591
 
592
- #: ../mappress_settings.php:555
593
  msgid "Reset Defaults"
594
  msgstr ""
595
 
@@ -668,22 +673,22 @@ msgstr ""
668
  msgid "Size"
669
  msgstr ""
670
 
671
- #: ../pro/mappress_geocoders.php:53
672
  msgid "No results, check that a geocoder is configured"
673
  msgstr ""
674
 
675
- #: ../pro/mappress_geocoders.php:86
676
  #, php-format
677
  msgid "Invalid status: %s, address: %s"
678
  msgstr ""
679
 
680
- #: ../pro/mappress_geocoders.php:95
681
- #: ../pro/mappress_geocoders.php:159
682
  #, php-format
683
  msgid "No results for address: %s"
684
  msgstr ""
685
 
686
- #: ../pro/mappress_geocoders.php:155
687
  #, php-format
688
  msgid "Error: %s %s"
689
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-09-21 18:02-0800\n"
6
+ "PO-Revision-Date: 2015-09-21 18:03-0800\n"
7
  "Last-Translator: Plugin Author <donotreply@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SearchPath-0: ..\n"
15
 
16
+ #: ../mappress.php:121
17
+ #: ../mappress_map.php:513
18
  msgid "Version"
19
+ msgstr ""
20
 
21
+ #: ../mappress.php:129
22
  msgid "Documentation"
23
+ msgstr ""
24
 
25
+ #: ../mappress.php:130
26
  msgid "Support"
27
+ msgstr ""
28
 
29
+ #: ../mappress.php:133
30
  msgid "Upgrade to MapPress Pro"
31
  msgstr ""
32
 
33
+ #: ../mappress.php:337
34
  msgid "MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this."
35
  msgstr ""
36
 
37
+ #: ../mappress.php:342
38
  msgid "WARNING: MapPress now requires WordPress 3.2 or higher. Please upgrade before using MapPress."
39
  msgstr ""
40
 
41
+ #: ../mappress.php:347
42
  msgid "WARNING: MapPress is not compfatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress."
43
  msgstr ""
44
 
45
+ #: ../mappress.php:556
46
  msgid "Bicycling"
47
  msgstr ""
48
 
49
+ #: ../mappress.php:557
50
  msgid "Bike"
51
  msgstr ""
52
 
53
+ #: ../mappress.php:558
54
  msgid "One of the addresses could not be found."
55
  msgstr ""
56
 
57
+ #: ../mappress.php:559
58
  msgid "Google cannot return directions between those addresses. There is no route between them or the routing information is not available."
59
  msgstr ""
60
 
61
+ #: ../mappress.php:560
62
  msgid "Unknown error, unable to return directions. Status code = "
63
  msgstr ""
64
 
65
+ #: ../mappress.php:561
66
+ #: ../mappress_poi.php:232
67
+ #: ../mappress_settings.php:132
68
  #: ../pro/mappress_widget.php:106
69
  msgid "Directions"
70
  msgstr ""
71
 
72
+ #: ../mappress.php:562
73
  msgid "Error reading KML file"
74
  msgstr ""
75
 
76
+ #: ../mappress.php:563
77
  msgid "Loading..."
78
  msgstr ""
79
 
80
+ #: ../mappress.php:564
81
  msgid "No matching address"
82
  msgstr ""
83
 
84
+ #: ../mappress.php:565
85
  msgid "Unable to get your location"
86
  msgstr ""
87
 
88
+ #: ../mappress.php:566
89
+ #: ../mappress_settings.php:322
90
  msgid "Traffic"
91
  msgstr ""
92
 
93
+ #: ../mappress.php:567
94
  msgid "Transit"
95
  msgstr ""
96
 
97
+ #: ../mappress.php:568
98
+ #: ../mappress_poi.php:281
99
+ #: ../mappress_settings.php:317
100
+ #: ../mappress_settings.php:405
101
  #: ../pro/mappress_widget.php:122
102
  msgid "Zoom"
103
  msgstr ""
104
 
105
+ #: ../mappress.php:573
106
  #: ../mappress_controls.php:156
107
  msgid "Add"
108
  msgstr ""
109
 
110
+ #: ../mappress.php:574
111
  msgid "Click & drag to move"
112
  msgstr ""
113
 
114
+ #: ../mappress.php:575
115
  msgid "Click to change"
116
  msgstr ""
117
 
118
+ #: ../mappress.php:576
119
  #: ../mappress_controls.php:141
120
+ #: ../mappress_map.php:473
121
  msgid "Delete"
122
  msgstr ""
123
 
124
+ #: ../mappress.php:577
125
  msgid "Delete this POI?"
126
  msgstr ""
127
 
128
+ #: ../mappress.php:578
129
  msgid "Delete this map?"
130
  msgstr ""
131
 
132
+ #: ../mappress.php:579
133
  msgid "Please save the map first"
134
  msgstr ""
135
 
136
+ #: ../mappress.php:580
137
  msgid "Shape"
138
  msgstr ""
139
 
140
+ #: ../mappress.php:581
141
  msgid "Untitled"
142
  msgstr ""
143
 
156
  msgid "Map not found"
157
  msgstr ""
158
 
159
+ #: ../mappress_map.php:471
160
  msgid "Edit"
161
  msgstr ""
162
 
163
+ #: ../mappress_map.php:472
164
  #: ../forms/map_media.php:48
165
  msgid "Insert into post"
166
  msgstr ""
167
 
168
+ #: ../mappress_map.php:498
169
  msgid "Show map"
170
  msgstr ""
171
 
172
+ #: ../mappress_map.php:510
173
+ #: ../mappress_settings.php:397
174
  #: ../forms/map_editor.php:25
175
  msgid "Center map"
176
  msgstr ""
177
 
178
+ #: ../mappress_map.php:520
179
+ #: ../mappress_settings.php:398
180
  msgid "Reset map"
181
  msgstr ""
182
 
183
+ #: ../mappress_map.php:529
184
+ #: ../mappress_settings.php:396
185
  msgid "Bigger map"
186
  msgstr ""
187
 
188
+ #: ../mappress_map.php:530
189
  msgid "Smaller map"
190
  msgstr ""
191
 
192
+ #: ../mappress_poi.php:197
193
+ #: ../mappress_settings.php:406
194
  msgid "Directions to"
195
  msgstr ""
196
 
197
+ #: ../mappress_poi.php:199
198
+ #: ../mappress_settings.php:407
199
  msgid "Directions from"
200
  msgstr ""
201
 
202
+ #: ../mappress_settings.php:129
203
  msgid "Basic Settings"
204
  msgstr ""
205
 
206
+ #: ../mappress_settings.php:130
207
  msgid "Post types"
208
  msgstr ""
209
 
210
+ #: ../mappress_settings.php:131
211
  msgid "Automatic map display"
212
  msgstr ""
213
 
214
+ #: ../mappress_settings.php:134
215
  msgid "Map Controls"
216
  msgstr ""
217
 
218
+ #: ../mappress_settings.php:135
219
  msgid "Draggable"
220
  msgstr ""
221
 
222
+ #: ../mappress_settings.php:136
223
  msgid "Keyboard shortcuts"
224
  msgstr ""
225
 
226
+ #: ../mappress_settings.php:137
227
  msgid "Scroll wheel zoom"
228
  msgstr ""
229
 
230
+ #: ../mappress_settings.php:138
231
  msgid "Map Types"
232
  msgstr ""
233
 
234
+ #: ../mappress_settings.php:139
235
  msgid "Map controls"
236
  msgstr ""
237
 
238
+ #: ../mappress_settings.php:141
239
  msgid "Map Settings"
240
  msgstr ""
241
 
242
+ #: ../mappress_settings.php:142
243
  msgid "Map links"
244
  msgstr ""
245
 
246
+ #: ../mappress_settings.php:143
247
  msgid "Map alignment"
248
  msgstr ""
249
 
250
+ #: ../mappress_settings.php:144
251
  msgid "Open first POI"
252
  msgstr ""
253
 
254
+ #: ../mappress_settings.php:146
255
  msgid "POI Settings"
256
  msgstr ""
257
 
258
+ #: ../mappress_settings.php:147
259
  msgid "POI links"
260
  msgstr ""
261
 
262
+ #: ../mappress_settings.php:148
263
  msgid "Tooltips"
264
  msgstr ""
265
 
266
+ #: ../mappress_settings.php:149
267
  msgid "Default zoom"
268
  msgstr ""
269
 
270
+ #: ../mappress_settings.php:152
271
  msgid "Mashups"
272
  msgstr ""
273
 
274
+ #: ../mappress_settings.php:153
275
  msgid "Icons"
276
  msgstr ""
277
 
278
+ #: ../mappress_settings.php:154
279
  msgid "Styled Maps"
280
  msgstr ""
281
 
282
+ #: ../mappress_settings.php:155
283
  msgid "Geocoding"
284
  msgstr ""
285
 
286
+ #: ../mappress_settings.php:158
287
  msgid "Localization"
288
  msgstr ""
289
 
290
+ #: ../mappress_settings.php:159
291
  msgid "Language"
292
  msgstr ""
293
 
294
+ #: ../mappress_settings.php:160
295
  msgid "Country"
296
  msgstr ""
297
 
298
+ #: ../mappress_settings.php:161
299
  msgid "Directions server"
300
  msgstr ""
301
 
302
+ #: ../mappress_settings.php:162
303
  msgid "Directions units"
304
  msgstr ""
305
 
306
+ #: ../mappress_settings.php:164
307
  msgid "Miscellaneous"
308
  msgstr ""
309
 
310
+ #: ../mappress_settings.php:165
311
  msgid "Map sizes"
312
  msgstr ""
313
 
314
+ #: ../mappress_settings.php:166
315
+ msgid "Adaptive display"
316
+ msgstr ""
317
+
318
+ #: ../mappress_settings.php:167
319
  msgid "Scripts"
320
  msgstr ""
321
 
322
+ #: ../mappress_settings.php:168
323
  msgid "CSS"
324
  msgstr ""
325
 
326
+ #: ../mappress_settings.php:218
327
  msgid "Use the settings below to automatically create maps from custom fields."
328
  msgstr ""
329
 
330
+ #: ../mappress_settings.php:223
331
+ msgid "Recenter maps when window is resized"
332
+ msgstr ""
333
+
334
+ #: ../mappress_settings.php:228
335
  msgid "Posts"
336
  msgstr ""
337
 
338
+ #: ../mappress_settings.php:229
339
  msgid "Pages"
340
  msgstr ""
341
 
342
+ #: ../mappress_settings.php:241
343
  msgid "country code"
344
  msgstr ""
345
 
346
+ #: ../mappress_settings.php:243
347
  #, php-format
348
  msgid "Enter a %s to use when searching (leave blank for USA)"
349
  msgstr ""
350
 
351
+ #: ../mappress_settings.php:250
352
  msgid "Enter a google server URL for directions/printing"
353
  msgstr ""
354
 
355
+ #: ../mappress_settings.php:255
356
  msgid "(Default)"
357
  msgstr ""
358
 
359
+ #: ../mappress_settings.php:255
360
  msgid "Metric (kilometers)"
361
  msgstr ""
362
 
363
+ #: ../mappress_settings.php:255
364
  msgid "Imperial (miles)"
365
  msgstr ""
366
 
367
+ #: ../mappress_settings.php:260
368
  msgid "Enable map dragging with the mouse"
369
  msgstr ""
370
 
371
+ #: ../mappress_settings.php:264
372
  msgid "Enable zoom with the mouse scroll wheel"
373
  msgstr ""
374
 
375
+ #: ../mappress_settings.php:268
376
  msgid "Enable keyboard panning and zooming"
377
  msgstr ""
378
 
379
+ #: ../mappress_settings.php:274
380
  msgid "language"
381
  msgstr ""
382
 
383
+ #: ../mappress_settings.php:276
384
  #, php-format
385
  msgid "Use a specific %s for map controls and geocoding"
386
  msgstr ""
387
 
 
388
  #: ../mappress_settings.php:284
389
+ #: ../mappress_settings.php:290
390
+ #: ../mappress_settings.php:384
391
+ #: ../mappress_settings.php:438
392
  msgid "Default"
393
  msgstr ""
394
 
395
+ #: ../mappress_settings.php:285
396
  msgid "Horizontal"
397
  msgstr ""
398
 
399
+ #: ../mappress_settings.php:286
400
  msgid "Dropdown"
401
  msgstr ""
402
 
403
+ #: ../mappress_settings.php:291
404
  msgid "Small"
405
  msgstr ""
406
 
407
+ #: ../mappress_settings.php:292
408
  msgid "Large"
409
  msgstr ""
410
 
411
+ #: ../mappress_settings.php:293
412
  msgid "Android"
413
  msgstr ""
414
 
415
+ #: ../mappress_settings.php:304
416
  msgid "Open initially"
417
  msgstr ""
418
 
419
+ #: ../mappress_settings.php:306
420
+ #: ../mappress_settings.php:308
421
+ #: ../mappress_settings.php:310
422
  msgid "Checked initially"
423
  msgstr ""
424
 
425
+ #: ../mappress_settings.php:312
426
  msgid "Control"
427
  msgstr ""
428
 
429
+ #: ../mappress_settings.php:312
430
  msgid "Enable"
431
  msgstr ""
432
 
433
+ #: ../mappress_settings.php:312
434
  msgid "Style"
435
  msgstr ""
436
 
437
+ #: ../mappress_settings.php:315
438
  msgid "Map types"
439
  msgstr ""
440
 
441
+ #: ../mappress_settings.php:316
442
  msgid "Pan"
443
  msgstr ""
444
 
445
+ #: ../mappress_settings.php:318
446
  msgid "Street view"
447
  msgstr ""
448
 
449
+ #: ../mappress_settings.php:319
450
  msgid "Scale"
451
  msgstr ""
452
 
453
+ #: ../mappress_settings.php:320
454
  msgid "Overview map"
455
  msgstr ""
456
 
457
+ #: ../mappress_settings.php:321
458
  msgid "Public transit"
459
  msgstr ""
460
 
461
+ #: ../mappress_settings.php:323
462
  msgid "Bike routes"
463
  msgstr ""
464
 
465
+ #: ../mappress_settings.php:330
466
  msgid "Road map"
467
  msgstr ""
468
 
469
+ #: ../mappress_settings.php:331
470
  #: ../pro/mappress_widget.php:140
471
  msgid "Satellite"
472
  msgstr ""
473
 
474
+ #: ../mappress_settings.php:332
475
  #: ../pro/mappress_widget.php:141
476
  msgid "Terrain"
477
  msgstr ""
478
 
479
+ #: ../mappress_settings.php:333
480
  #: ../pro/mappress_widget.php:139
481
  msgid "Hybrid"
482
  msgstr ""
483
 
484
+ #: ../mappress_settings.php:346
485
  #: ../pro/mappress_pro_settings.php:260
486
  #: ../pro/mappress_widget.php:108
487
  msgid "Google"
488
  msgstr ""
489
 
490
+ #: ../mappress_settings.php:347
491
  #: ../pro/mappress_widget.php:107
492
  msgid "Inline"
493
  msgstr ""
494
 
495
+ #: ../mappress_settings.php:348
496
  #: ../pro/mappress_widget.php:109
497
  msgid "None"
498
  msgstr ""
499
 
500
+ #: ../mappress_settings.php:355
501
  msgid "Automatically open the first POI when a map is displayed"
502
  msgstr ""
503
 
504
+ #: ../mappress_settings.php:360
505
+ #: ../mappress_settings.php:369
506
  msgid "Show control"
507
  msgstr ""
508
 
509
+ #: ../mappress_settings.php:364
510
+ #: ../mappress_settings.php:373
511
  msgid "Enabled by default"
512
  msgstr ""
513
 
514
+ #: ../mappress_settings.php:377
515
  msgid "Show POI titles as a \"tooltip\" on mouse-over"
516
  msgstr ""
517
 
518
+ #: ../mappress_settings.php:385
519
  #: ../pro/mappress_widget.php:114
520
  msgid "Center"
521
  msgstr ""
522
 
523
+ #: ../mappress_settings.php:386
524
  msgid "Left"
525
  msgstr ""
526
 
527
+ #: ../mappress_settings.php:387
528
  msgid "Right"
529
  msgstr ""
530
 
531
+ #: ../mappress_settings.php:415
532
  msgid "Default zoom for POIs entered by lat/lng"
533
  msgstr ""
534
 
535
+ #: ../mappress_settings.php:421
536
  msgid "Top of post"
537
  msgstr ""
538
 
539
+ #: ../mappress_settings.php:422
540
  msgid "Bottom of post"
541
  msgstr ""
542
 
543
+ #: ../mappress_settings.php:423
544
  msgid "No automatic display"
545
  msgstr ""
546
 
547
+ #: ../mappress_settings.php:430
548
  #, php-format
549
  msgid "Load %s"
550
  msgstr ""
551
 
552
+ #: ../mappress_settings.php:434
553
  msgid "Output scripts in footer"
554
  msgstr ""
555
 
556
+ #: ../mappress_settings.php:438
557
  msgid "Width"
558
  msgstr ""
559
 
560
+ #: ../mappress_settings.php:438
561
  msgid "Height"
562
  msgstr ""
563
 
564
+ #: ../mappress_settings.php:449
565
  msgid "Enter sizes in px or %"
566
  msgstr ""
567
 
568
+ #: ../mappress_settings.php:459
569
  msgid "Rate it 5 Stars"
570
  msgstr ""
571
 
572
+ #: ../mappress_settings.php:461
573
  #, php-format
574
  msgid "%s on WordPress.org"
575
  msgstr ""
576
 
577
+ #: ../mappress_settings.php:462
578
  msgid "Thanks for your support!"
579
  msgstr ""
580
 
581
+ #: ../mappress_settings.php:490
 
 
 
 
582
  msgid "Easy Google Maps"
583
  msgstr ""
584
 
585
+ #: ../mappress_settings.php:539
586
  msgid "Like this plugin?"
587
  msgstr ""
588
 
589
+ #: ../mappress_settings.php:541
590
  msgid "Sample Map"
591
  msgstr ""
592
 
593
+ #: ../mappress_settings.php:560
594
  msgid "Save Changes"
595
  msgstr ""
596
 
597
+ #: ../mappress_settings.php:561
598
  msgid "Reset Defaults"
599
  msgstr ""
600
 
673
  msgid "Size"
674
  msgstr ""
675
 
676
+ #: ../pro/mappress_geocoders.php:44
677
  msgid "No results, check that a geocoder is configured"
678
  msgstr ""
679
 
680
+ #: ../pro/mappress_geocoders.php:78
681
  #, php-format
682
  msgid "Invalid status: %s, address: %s"
683
  msgstr ""
684
 
685
+ #: ../pro/mappress_geocoders.php:87
686
+ #: ../pro/mappress_geocoders.php:152
687
  #, php-format
688
  msgid "No results for address: %s"
689
  msgstr ""
690
 
691
+ #: ../pro/mappress_geocoders.php:148
692
  #, php-format
693
  msgid "Error: %s %s"
694
  msgstr ""
languages/mappress-google-maps-for-wordpress.pot ADDED
@@ -0,0 +1,998 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.43.8\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
+ "POT-Creation-Date: 2016-06-27 23:10:21+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
+
15
+ #: forms/map_editor.php:5
16
+ msgid "Add POI"
17
+ msgstr ""
18
+
19
+ #: forms/map_editor.php:11 templates/map_directions.php:11
20
+ msgid "My location"
21
+ msgstr ""
22
+
23
+ #: forms/map_editor.php:25 mappress_map.php:520 mappress_settings.php:398
24
+ msgid "Center map"
25
+ msgstr ""
26
+
27
+ #: forms/map_editor.php:26
28
+ msgid "Click map for lat/lng: "
29
+ msgstr ""
30
+
31
+ #: forms/map_editor_infobox.php:20
32
+ msgid "Color"
33
+ msgstr ""
34
+
35
+ #: forms/map_editor_infobox.php:22 forms/map_editor_infobox.php:23
36
+ msgid "Opacity"
37
+ msgstr ""
38
+
39
+ #: forms/map_editor_infobox.php:24
40
+ msgid "Line"
41
+ msgstr ""
42
+
43
+ #: forms/map_editor_infobox.php:25
44
+ msgid "Weight"
45
+ msgstr ""
46
+
47
+ #: forms/map_editor_infobox.php:33
48
+ msgid "Visual"
49
+ msgstr ""
50
+
51
+ #: forms/map_editor_infobox.php:33
52
+ msgid "HTML"
53
+ msgstr ""
54
+
55
+ #: forms/map_editor_infobox.php:38 forms/map_media.php:46
56
+ 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
+
64
+ #: forms/map_media.php:11
65
+ msgid "Maps for This Post"
66
+ msgstr ""
67
+
68
+ #: forms/map_media.php:12
69
+ msgid "New Map"
70
+ msgstr ""
71
+
72
+ #: forms/map_media.php:22
73
+ msgid "Map ID"
74
+ msgstr ""
75
+
76
+ #: forms/map_media.php:27
77
+ msgid "Map Title"
78
+ msgstr ""
79
+
80
+ #: forms/map_media.php:32
81
+ msgid "Size"
82
+ msgstr ""
83
+
84
+ #: forms/map_media.php:48 mappress_map.php:482
85
+ msgid "Insert into post"
86
+ msgstr ""
87
+
88
+ #: mappress.php:118
89
+ msgid "Version"
90
+ msgstr ""
91
+
92
+ #: mappress.php:126
93
+ msgid "Documentation"
94
+ msgstr ""
95
+
96
+ #: mappress.php:127
97
+ msgid "Support"
98
+ msgstr ""
99
+
100
+ #: mappress.php:130
101
+ msgid "Upgrade to MapPress Pro"
102
+ msgstr ""
103
+
104
+ #: mappress.php:336
105
+ msgid "MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this."
106
+ msgstr ""
107
+
108
+ #: mappress.php:341
109
+ msgid "WARNING: MapPress now requires WordPress 3.2 or higher. Please upgrade before using MapPress."
110
+ msgstr ""
111
+
112
+ #: mappress.php:346
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:356
117
+ msgid "API Key"
118
+ msgstr ""
119
+
120
+ #: mappress.php:357
121
+ msgid "MapPress Settings"
122
+ msgstr ""
123
+
124
+ #: mappress.php:527 templates/map_directions.php:6
125
+ msgid "Bicycling"
126
+ msgstr ""
127
+
128
+ #: mappress.php:528
129
+ msgid "Bike"
130
+ msgstr ""
131
+
132
+ #: mappress.php:529
133
+ msgid "One of the addresses could not be found."
134
+ msgstr ""
135
+
136
+ #: mappress.php:530
137
+ msgid "Google cannot return directions between those addresses. There is no route between them or the routing information is not available."
138
+ msgstr ""
139
+
140
+ #: mappress.php:531
141
+ msgid "Unknown error, unable to return directions. Status code = "
142
+ msgstr ""
143
+
144
+ #: mappress.php:532 mappress_poi.php:232 mappress_settings.php:134
145
+ #: pro/mappress_widget.php:106
146
+ msgid "Directions"
147
+ msgstr ""
148
+
149
+ #: mappress.php:533
150
+ msgid "Error reading KML file"
151
+ msgstr ""
152
+
153
+ #: mappress.php:534
154
+ msgid "Loading..."
155
+ msgstr ""
156
+
157
+ #: mappress.php:535
158
+ msgid "No matching address"
159
+ msgstr ""
160
+
161
+ #: mappress.php:536
162
+ msgid "Unable to get your location"
163
+ msgstr ""
164
+
165
+ #: mappress.php:537 mappress_settings.php:323
166
+ msgid "Traffic"
167
+ msgstr ""
168
+
169
+ #: mappress.php:538
170
+ msgid "Transit"
171
+ msgstr ""
172
+
173
+ #: mappress.php:539 mappress_poi.php:281 mappress_settings.php:318
174
+ #: mappress_settings.php:406 pro/mappress_widget.php:122
175
+ msgid "Zoom"
176
+ msgstr ""
177
+
178
+ #: mappress.php:544 mappress_controls.php:156
179
+ msgid "Add"
180
+ msgstr ""
181
+
182
+ #: mappress.php:545
183
+ msgid "Click & drag to move"
184
+ msgstr ""
185
+
186
+ #: mappress.php:546
187
+ msgid "Click to change"
188
+ msgstr ""
189
+
190
+ #: mappress.php:547 mappress_controls.php:141 mappress_map.php:483
191
+ msgid "Delete"
192
+ msgstr ""
193
+
194
+ #: mappress.php:548
195
+ msgid "Delete this POI?"
196
+ msgstr ""
197
+
198
+ #: mappress.php:549
199
+ msgid "Delete this map?"
200
+ msgstr ""
201
+
202
+ #: mappress.php:550
203
+ msgid "Please save the map first"
204
+ msgstr ""
205
+
206
+ #: mappress.php:551
207
+ msgid "Shape"
208
+ msgstr ""
209
+
210
+ #: mappress.php:552
211
+ msgid "Untitled"
212
+ msgstr ""
213
+
214
+ #: mappress_controls.php:203
215
+ msgid "New"
216
+ msgstr ""
217
+
218
+ #: mappress_map.php:115
219
+ msgid "Map not found"
220
+ msgstr ""
221
+
222
+ #: mappress_map.php:481
223
+ msgid "Edit"
224
+ msgstr ""
225
+
226
+ #: mappress_map.php:508
227
+ msgid "Show map"
228
+ msgstr ""
229
+
230
+ #: mappress_map.php:529 mappress_settings.php:399
231
+ msgid "Reset map"
232
+ msgstr ""
233
+
234
+ #: mappress_map.php:538 mappress_settings.php:397
235
+ msgid "Bigger map"
236
+ msgstr ""
237
+
238
+ #: mappress_map.php:539
239
+ msgid "Smaller map"
240
+ msgstr ""
241
+
242
+ #: mappress_poi.php:197 mappress_settings.php:407
243
+ msgid "Directions to"
244
+ msgstr ""
245
+
246
+ #: mappress_poi.php:199 mappress_settings.php:408
247
+ msgid "Directions from"
248
+ msgstr ""
249
+
250
+ #: mappress_settings.php:131
251
+ msgid "Basic Settings"
252
+ msgstr ""
253
+
254
+ #: mappress_settings.php:132
255
+ msgid "Post types"
256
+ msgstr ""
257
+
258
+ #: mappress_settings.php:133
259
+ msgid "Automatic map display"
260
+ msgstr ""
261
+
262
+ #: mappress_settings.php:136
263
+ msgid "Map Controls"
264
+ msgstr ""
265
+
266
+ #: mappress_settings.php:137
267
+ msgid "Draggable"
268
+ msgstr ""
269
+
270
+ #: mappress_settings.php:138
271
+ msgid "Keyboard shortcuts"
272
+ msgstr ""
273
+
274
+ #: mappress_settings.php:139
275
+ msgid "Scroll wheel zoom"
276
+ msgstr ""
277
+
278
+ #: mappress_settings.php:140
279
+ msgid "Map Types"
280
+ msgstr ""
281
+
282
+ #: mappress_settings.php:141
283
+ msgid "Map controls"
284
+ msgstr ""
285
+
286
+ #: mappress_settings.php:143
287
+ msgid "Map Settings"
288
+ msgstr ""
289
+
290
+ #: mappress_settings.php:144
291
+ msgid "Map links"
292
+ msgstr ""
293
+
294
+ #: mappress_settings.php:145
295
+ msgid "Map alignment"
296
+ msgstr ""
297
+
298
+ #: mappress_settings.php:146
299
+ msgid "Open first POI"
300
+ msgstr ""
301
+
302
+ #: mappress_settings.php:148
303
+ msgid "POI Settings"
304
+ msgstr ""
305
+
306
+ #: mappress_settings.php:149
307
+ msgid "POI links"
308
+ msgstr ""
309
+
310
+ #: mappress_settings.php:150
311
+ msgid "Tooltips"
312
+ msgstr ""
313
+
314
+ #: mappress_settings.php:151
315
+ msgid "Default zoom"
316
+ msgstr ""
317
+
318
+ #: mappress_settings.php:154
319
+ msgid "Mashups"
320
+ msgstr ""
321
+
322
+ #: mappress_settings.php:155
323
+ msgid "Icons"
324
+ msgstr ""
325
+
326
+ #: mappress_settings.php:156
327
+ msgid "Styled Maps"
328
+ msgstr ""
329
+
330
+ #: mappress_settings.php:157
331
+ msgid "Geocoding"
332
+ msgstr ""
333
+
334
+ #: mappress_settings.php:160
335
+ msgid "Localization"
336
+ msgstr ""
337
+
338
+ #: mappress_settings.php:161
339
+ msgid "Language"
340
+ msgstr ""
341
+
342
+ #: mappress_settings.php:162
343
+ msgid "Country"
344
+ msgstr ""
345
+
346
+ #: mappress_settings.php:163
347
+ msgid "Directions server"
348
+ msgstr ""
349
+
350
+ #: mappress_settings.php:164
351
+ msgid "Directions units"
352
+ msgstr ""
353
+
354
+ #: mappress_settings.php:166
355
+ msgid "Miscellaneous"
356
+ msgstr ""
357
+
358
+ #: mappress_settings.php:167
359
+ msgid "Google API key"
360
+ msgstr ""
361
+
362
+ #: mappress_settings.php:168
363
+ msgid "Map sizes"
364
+ msgstr ""
365
+
366
+ #: mappress_settings.php:169
367
+ msgid "Adaptive display"
368
+ msgstr ""
369
+
370
+ #: mappress_settings.php:170
371
+ msgid "CSS"
372
+ msgstr ""
373
+
374
+ #: mappress_settings.php:220
375
+ msgid "Use the settings below to automatically create maps from custom fields."
376
+ msgstr ""
377
+
378
+ #: mappress_settings.php:225
379
+ msgid "Recenter maps when window is resized"
380
+ msgstr ""
381
+
382
+ #: mappress_settings.php:230
383
+ msgid "more info"
384
+ msgstr ""
385
+
386
+ #: mappress_settings.php:231
387
+ msgid "A Google Maps API key is required for public servers %s"
388
+ msgstr ""
389
+
390
+ #: mappress_settings.php:242
391
+ msgid "country code"
392
+ msgstr ""
393
+
394
+ #: mappress_settings.php:244
395
+ msgid "Enter a %s to use when searching (leave blank for USA)"
396
+ msgstr ""
397
+
398
+ #: mappress_settings.php:251
399
+ msgid "Enter a google server URL for directions/printing"
400
+ msgstr ""
401
+
402
+ #: mappress_settings.php:256
403
+ msgid "(Default)"
404
+ msgstr ""
405
+
406
+ #: mappress_settings.php:256
407
+ msgid "Metric (kilometers)"
408
+ msgstr ""
409
+
410
+ #: mappress_settings.php:256
411
+ msgid "Imperial (miles)"
412
+ msgstr ""
413
+
414
+ #: mappress_settings.php:261
415
+ msgid "Enable map dragging with the mouse"
416
+ msgstr ""
417
+
418
+ #: mappress_settings.php:265
419
+ msgid "Enable zoom with the mouse scroll wheel"
420
+ msgstr ""
421
+
422
+ #: mappress_settings.php:269
423
+ msgid "Enable keyboard panning and zooming"
424
+ msgstr ""
425
+
426
+ #: mappress_settings.php:275
427
+ msgid "language"
428
+ msgstr ""
429
+
430
+ #: mappress_settings.php:277
431
+ msgid "Use a specific %s for map controls and geocoding"
432
+ msgstr ""
433
+
434
+ #: mappress_settings.php:285 mappress_settings.php:291
435
+ #: mappress_settings.php:385 mappress_settings.php:435
436
+ msgid "Default"
437
+ msgstr ""
438
+
439
+ #: mappress_settings.php:286
440
+ msgid "Horizontal"
441
+ msgstr ""
442
+
443
+ #: mappress_settings.php:287
444
+ msgid "Dropdown"
445
+ msgstr ""
446
+
447
+ #: mappress_settings.php:292
448
+ msgid "Small"
449
+ msgstr ""
450
+
451
+ #: mappress_settings.php:293
452
+ msgid "Large"
453
+ msgstr ""
454
+
455
+ #: mappress_settings.php:294
456
+ msgid "Android"
457
+ msgstr ""
458
+
459
+ #: mappress_settings.php:305
460
+ msgid "Open initially"
461
+ msgstr ""
462
+
463
+ #: mappress_settings.php:307 mappress_settings.php:309
464
+ #: mappress_settings.php:311
465
+ msgid "Checked initially"
466
+ msgstr ""
467
+
468
+ #: mappress_settings.php:313
469
+ msgid "Control"
470
+ msgstr ""
471
+
472
+ #: mappress_settings.php:313
473
+ msgid "Enable"
474
+ msgstr ""
475
+
476
+ #: mappress_settings.php:313
477
+ msgid "Style"
478
+ msgstr ""
479
+
480
+ #: mappress_settings.php:316
481
+ msgid "Map types"
482
+ msgstr ""
483
+
484
+ #: mappress_settings.php:317
485
+ msgid "Pan"
486
+ msgstr ""
487
+
488
+ #: mappress_settings.php:319
489
+ msgid "Street view"
490
+ msgstr ""
491
+
492
+ #: mappress_settings.php:320
493
+ msgid "Scale"
494
+ msgstr ""
495
+
496
+ #: mappress_settings.php:321
497
+ msgid "Overview map"
498
+ msgstr ""
499
+
500
+ #: mappress_settings.php:322
501
+ msgid "Public transit"
502
+ msgstr ""
503
+
504
+ #: mappress_settings.php:324
505
+ msgid "Bike routes"
506
+ msgstr ""
507
+
508
+ #: mappress_settings.php:331
509
+ msgid "Road map"
510
+ msgstr ""
511
+
512
+ #: mappress_settings.php:332 pro/mappress_widget.php:140
513
+ msgid "Satellite"
514
+ msgstr ""
515
+
516
+ #: mappress_settings.php:333 pro/mappress_widget.php:141
517
+ msgid "Terrain"
518
+ msgstr ""
519
+
520
+ #: mappress_settings.php:334 pro/mappress_widget.php:139
521
+ msgid "Hybrid"
522
+ msgstr ""
523
+
524
+ #: mappress_settings.php:347 pro/mappress_pro_settings.php:259
525
+ #: pro/mappress_widget.php:108
526
+ msgid "Google"
527
+ msgstr ""
528
+
529
+ #: mappress_settings.php:348 pro/mappress_widget.php:107
530
+ msgid "Inline"
531
+ msgstr ""
532
+
533
+ #: mappress_settings.php:349 pro/mappress_widget.php:109
534
+ msgid "None"
535
+ msgstr ""
536
+
537
+ #: mappress_settings.php:356
538
+ msgid "Automatically open the first POI when a map is displayed"
539
+ msgstr ""
540
+
541
+ #: mappress_settings.php:361 mappress_settings.php:370
542
+ msgid "Show control"
543
+ msgstr ""
544
+
545
+ #: mappress_settings.php:365 mappress_settings.php:374
546
+ msgid "Enabled by default"
547
+ msgstr ""
548
+
549
+ #: mappress_settings.php:378
550
+ msgid "Show POI titles as a \"tooltip\" on mouse-over"
551
+ msgstr ""
552
+
553
+ #: mappress_settings.php:386 pro/mappress_widget.php:114
554
+ msgid "Center"
555
+ msgstr ""
556
+
557
+ #: mappress_settings.php:387
558
+ msgid "Left"
559
+ msgstr ""
560
+
561
+ #: mappress_settings.php:388
562
+ msgid "Right"
563
+ msgstr ""
564
+
565
+ #: mappress_settings.php:416
566
+ msgid "Default zoom for POIs entered by lat/lng"
567
+ msgstr ""
568
+
569
+ #: mappress_settings.php:422
570
+ msgid "Top of post"
571
+ msgstr ""
572
+
573
+ #: mappress_settings.php:423
574
+ msgid "Bottom of post"
575
+ msgstr ""
576
+
577
+ #: mappress_settings.php:424
578
+ msgid "No automatic display"
579
+ msgstr ""
580
+
581
+ #: mappress_settings.php:431
582
+ msgid "Load %s"
583
+ msgstr ""
584
+
585
+ #: mappress_settings.php:435
586
+ msgid "Width"
587
+ msgstr ""
588
+
589
+ #: mappress_settings.php:435
590
+ msgid "Height"
591
+ msgstr ""
592
+
593
+ #: mappress_settings.php:446
594
+ msgid "Enter sizes in px or %"
595
+ msgstr ""
596
+
597
+ #: mappress_settings.php:456
598
+ msgid "Rate it 5 Stars"
599
+ msgstr ""
600
+
601
+ #: mappress_settings.php:458
602
+ msgid "%s on WordPress.org"
603
+ msgstr ""
604
+
605
+ #: mappress_settings.php:459
606
+ msgid "Thanks for your support!"
607
+ msgstr ""
608
+
609
+ #: mappress_settings.php:487
610
+ msgid "Easy Google Maps"
611
+ msgstr ""
612
+
613
+ #: mappress_settings.php:536
614
+ msgid "Like this plugin?"
615
+ msgstr ""
616
+
617
+ #: mappress_settings.php:538
618
+ msgid "Sample Map"
619
+ msgstr ""
620
+
621
+ #: mappress_settings.php:557
622
+ msgid "Save Changes"
623
+ msgstr ""
624
+
625
+ #: mappress_settings.php:558
626
+ msgid "Reset Defaults"
627
+ msgstr ""
628
+
629
+ #: mappress_updater.php:19
630
+ msgid "Settings"
631
+ msgstr ""
632
+
633
+ #: mappress_updater.php:41
634
+ msgid "download it now"
635
+ msgstr ""
636
+
637
+ #: mappress_updater.php:46
638
+ msgid "A PRO Version update is available for manual installation: %s"
639
+ msgstr ""
640
+
641
+ #: pro/mappress_geocoders.php:44
642
+ msgid "No results, check that a geocoder is configured"
643
+ msgstr ""
644
+
645
+ #: pro/mappress_geocoders.php:81
646
+ msgid "Invalid status: %s, address: %s"
647
+ msgstr ""
648
+
649
+ #: pro/mappress_geocoders.php:90 pro/mappress_geocoders.php:155
650
+ msgid "No results for address: %s"
651
+ msgstr ""
652
+
653
+ #: pro/mappress_geocoders.php:151
654
+ msgid "Error: %s %s"
655
+ msgstr ""
656
+
657
+ #: pro/mappress_icons.php:52
658
+ msgid "Use default icon"
659
+ msgstr ""
660
+
661
+ #: pro/mappress_pro.php:162
662
+ msgid "Automatic"
663
+ msgstr ""
664
+
665
+ #: pro/mappress_pro_settings.php:14
666
+ msgid "POI list"
667
+ msgstr ""
668
+
669
+ #: pro/mappress_pro_settings.php:15
670
+ msgid "InfoWindow type"
671
+ msgstr ""
672
+
673
+ #: pro/mappress_pro_settings.php:17
674
+ msgid "Default icon"
675
+ msgstr ""
676
+
677
+ #: pro/mappress_pro_settings.php:18
678
+ msgid "Custom icons directory"
679
+ msgstr ""
680
+
681
+ #: pro/mappress_pro_settings.php:19
682
+ msgid "Icon scaling"
683
+ msgstr ""
684
+
685
+ #: pro/mappress_pro_settings.php:21
686
+ msgid "Mashup POI title"
687
+ msgstr ""
688
+
689
+ #: pro/mappress_pro_settings.php:22
690
+ msgid "Mashup POI body"
691
+ msgstr ""
692
+
693
+ #: pro/mappress_pro_settings.php:23
694
+ msgid "Mashup POI click"
695
+ msgstr ""
696
+
697
+ #: pro/mappress_pro_settings.php:24
698
+ msgid "Link title"
699
+ msgstr ""
700
+
701
+ #: pro/mappress_pro_settings.php:25
702
+ msgid "Mashup Thumbnails"
703
+ msgstr ""
704
+
705
+ #: pro/mappress_pro_settings.php:26
706
+ msgid "Thumbnail Size"
707
+ msgstr ""
708
+
709
+ #: pro/mappress_pro_settings.php:27
710
+ msgid "Automatic icons"
711
+ msgstr ""
712
+
713
+ #: pro/mappress_pro_settings.php:29
714
+ msgid "Styled maps"
715
+ msgstr ""
716
+
717
+ #: pro/mappress_pro_settings.php:30
718
+ msgid "Default style"
719
+ msgstr ""
720
+
721
+ #: pro/mappress_pro_settings.php:32
722
+ msgid "Geocoder(s)"
723
+ msgstr ""
724
+
725
+ #: pro/mappress_pro_settings.php:33
726
+ msgid "Geocoding fields"
727
+ msgstr ""
728
+
729
+ #: pro/mappress_pro_settings.php:35
730
+ msgid "Force resize"
731
+ msgstr ""
732
+
733
+ #: pro/mappress_pro_settings.php:131
734
+ msgid "Post type"
735
+ msgstr ""
736
+
737
+ #: pro/mappress_pro_settings.php:148
738
+ msgid "Key"
739
+ msgstr ""
740
+
741
+ #: pro/mappress_pro_settings.php:148
742
+ msgid "Value"
743
+ msgstr ""
744
+
745
+ #: pro/mappress_pro_settings.php:148 pro/mappress_pro_settings.php:280
746
+ msgid "Icon"
747
+ msgstr ""
748
+
749
+ #: pro/mappress_pro_settings.php:153
750
+ msgid "Show a list of POIs under each map"
751
+ msgstr ""
752
+
753
+ #: pro/mappress_pro_settings.php:158
754
+ msgid "Show the POI list as a sortable %s"
755
+ msgstr ""
756
+
757
+ #: pro/mappress_pro_settings.php:162
758
+ msgid "POI title"
759
+ msgstr ""
760
+
761
+ #: pro/mappress_pro_settings.php:162
762
+ msgid "Post title"
763
+ msgstr ""
764
+
765
+ #: pro/mappress_pro_settings.php:167
766
+ msgid "POI body"
767
+ msgstr ""
768
+
769
+ #: pro/mappress_pro_settings.php:167
770
+ msgid "Address"
771
+ msgstr ""
772
+
773
+ #: pro/mappress_pro_settings.php:167
774
+ msgid "Post excerpt"
775
+ msgstr ""
776
+
777
+ #: pro/mappress_pro_settings.php:172
778
+ msgid "Link POI titles to the underlying post"
779
+ msgstr ""
780
+
781
+ #: pro/mappress_pro_settings.php:176
782
+ msgid "Open the POI"
783
+ msgstr ""
784
+
785
+ #: pro/mappress_pro_settings.php:176
786
+ msgid "Go directly to the post"
787
+ msgstr ""
788
+
789
+ #: pro/mappress_pro_settings.php:191
790
+ msgid "Google InfoWindow"
791
+ msgstr ""
792
+
793
+ #: pro/mappress_pro_settings.php:192
794
+ msgid "InfoBox"
795
+ msgstr ""
796
+
797
+ #: pro/mappress_pro_settings.php:198
798
+ msgid "Show featured image thumbnails in mashup POIs"
799
+ msgstr ""
800
+
801
+ #: pro/mappress_pro_settings.php:206
802
+ msgid "Use existing size: "
803
+ msgstr ""
804
+
805
+ #: pro/mappress_pro_settings.php:209
806
+ msgid "or resize to (px): "
807
+ msgstr ""
808
+
809
+ #: pro/mappress_pro_settings.php:223
810
+ msgid "styled maps"
811
+ msgstr ""
812
+
813
+ #: pro/mappress_pro_settings.php:224
814
+ msgid "styled maps wizard"
815
+ msgstr ""
816
+
817
+ #: pro/mappress_pro_settings.php:226
818
+ msgid "Enter JSON for %s from Google's %s"
819
+ msgstr ""
820
+
821
+ #: pro/mappress_pro_settings.php:235
822
+ msgid "Style name"
823
+ msgstr ""
824
+
825
+ #: pro/mappress_pro_settings.php:249
826
+ msgid "No styles have been defined yet"
827
+ msgstr ""
828
+
829
+ #: pro/mappress_pro_settings.php:260
830
+ msgid "Nominatim"
831
+ msgstr ""
832
+
833
+ #: pro/mappress_pro_settings.php:272
834
+ msgid "Address Line 1"
835
+ msgstr ""
836
+
837
+ #: pro/mappress_pro_settings.php:273
838
+ msgid "Address Line 2"
839
+ msgstr ""
840
+
841
+ #: pro/mappress_pro_settings.php:274
842
+ msgid "Address Line 3"
843
+ msgstr ""
844
+
845
+ #: pro/mappress_pro_settings.php:275
846
+ msgid "Address Line 4"
847
+ msgstr ""
848
+
849
+ #: pro/mappress_pro_settings.php:276
850
+ msgid "Address Line 5"
851
+ msgstr ""
852
+
853
+ #: pro/mappress_pro_settings.php:277
854
+ msgid "Address Line 6"
855
+ msgstr ""
856
+
857
+ #: pro/mappress_pro_settings.php:278
858
+ msgid "Latitude"
859
+ msgstr ""
860
+
861
+ #: pro/mappress_pro_settings.php:279
862
+ msgid "Longitude"
863
+ msgstr ""
864
+
865
+ #: pro/mappress_pro_settings.php:281
866
+ msgid "Title"
867
+ msgstr ""
868
+
869
+ #: pro/mappress_pro_settings.php:282
870
+ msgid "Body"
871
+ msgstr ""
872
+
873
+ #: pro/mappress_pro_settings.php:283
874
+ msgid "Map Zoom"
875
+ msgstr ""
876
+
877
+ #: pro/mappress_pro_settings.php:286 pro/mappress_widget.php:138
878
+ msgid "Map"
879
+ msgstr ""
880
+
881
+ #: pro/mappress_pro_settings.php:286
882
+ msgid "Custom Field"
883
+ msgstr ""
884
+
885
+ #: pro/mappress_pro_settings.php:295
886
+ msgid "Overwrite existing maps when updating"
887
+ msgstr ""
888
+
889
+ #: pro/mappress_pro_settings.php:303
890
+ msgid "Permanently resize existing maps"
891
+ msgstr ""
892
+
893
+ #: pro/mappress_pro_settings.php:305
894
+ msgid "from %s to %s"
895
+ msgstr ""
896
+
897
+ #: pro/mappress_pro_settings.php:306
898
+ msgid "Force Resize"
899
+ msgstr ""
900
+
901
+ #: pro/mappress_widget.php:76
902
+ msgid "Widget title"
903
+ msgstr ""
904
+
905
+ #: pro/mappress_widget.php:81
906
+ msgid "Map size"
907
+ msgstr ""
908
+
909
+ #: pro/mappress_widget.php:87
910
+ msgid "Show"
911
+ msgstr ""
912
+
913
+ #: pro/mappress_widget.php:88
914
+ msgid "Current posts"
915
+ msgstr ""
916
+
917
+ #: pro/mappress_widget.php:89
918
+ msgid "Hide if empty"
919
+ msgstr ""
920
+
921
+ #: pro/mappress_widget.php:91
922
+ msgid "All posts"
923
+ msgstr ""
924
+
925
+ #: pro/mappress_widget.php:92
926
+ msgid "Custom query"
927
+ msgstr ""
928
+
929
+ #: pro/mappress_widget.php:95
930
+ msgid "Learn about queries"
931
+ msgstr ""
932
+
933
+ #: pro/mappress_widget.php:100
934
+ msgid "Show POI list"
935
+ msgstr ""
936
+
937
+ #: pro/mappress_widget.php:102
938
+ msgid "Link POIs to posts"
939
+ msgstr ""
940
+
941
+ #: pro/mappress_widget.php:135
942
+ msgid "Map type"
943
+ msgstr ""
944
+
945
+ #: pro/mappress_widget.php:149
946
+ msgid "Other Settings"
947
+ msgstr ""
948
+
949
+ #: pro/mappress_widget.php:152
950
+ msgid "Example: traffic=\"false\" maplinks=\"\""
951
+ msgstr ""
952
+
953
+ #: templates/map_directions.php:3
954
+ msgid "By car"
955
+ msgstr ""
956
+
957
+ #: templates/map_directions.php:4
958
+ msgid "Public Transit"
959
+ msgstr ""
960
+
961
+ #: templates/map_directions.php:5
962
+ msgid "Walking"
963
+ msgstr ""
964
+
965
+ #: templates/map_directions.php:16
966
+ msgid "Swap start and end"
967
+ msgstr ""
968
+
969
+ #: templates/map_directions.php:29
970
+ msgid "Get Directions"
971
+ msgstr ""
972
+
973
+ #: templates/map_directions.php:30
974
+ msgid "Print"
975
+ msgstr ""
976
+
977
+ #: templates/map_directions.php:31
978
+ msgid "Close"
979
+ msgstr ""
980
+ #. Plugin Name of the plugin/theme
981
+ msgid "MapPress Easy Google Maps"
982
+ msgstr ""
983
+
984
+ #. Plugin URI of the plugin/theme
985
+ msgid "http://www.wphostreviews.com/mappress"
986
+ msgstr ""
987
+
988
+ #. Description of the plugin/theme
989
+ msgid "MapPress makes it easy to insert Google Maps in WordPress posts and pages."
990
+ msgstr ""
991
+
992
+ #. Author of the plugin/theme
993
+ msgid "Chris Richardson"
994
+ msgstr ""
995
+
996
+ #. Author URI of the plugin/theme
997
+ msgid "http://www.wphostreviews.com/mappress"
998
+ msgstr ""
languages/texts.php ADDED
@@ -0,0 +1,247 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ __("Add POI");
3
+ __("My location");
4
+ __("Center map");
5
+ __("Click map for lat/lng: ");
6
+ __("Color");
7
+ __("Opacity");
8
+ __("Line");
9
+ __("Weight");
10
+ __("Visual");
11
+ __("HTML");
12
+ __("Save");
13
+ __("Cancel");
14
+ __("Maps for This Post");
15
+ __("New Map");
16
+ __("Map ID");
17
+ __("Map Title");
18
+ __("Size");
19
+ __("Insert into post");
20
+ __("Version");
21
+ __("Documentation");
22
+ __("Support");
23
+ __("Upgrade to MapPress Pro");
24
+ __("MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this.");
25
+ __("WARNING: MapPress now requires WordPress 3.2 or higher. Please upgrade before using MapPress.");
26
+ __("WARNING: MapPress is not compfatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress.");
27
+ __("API Key");
28
+ __("MapPress Settings");
29
+ __("Bicycling");
30
+ __("Bike");
31
+ __("One of the addresses could not be found.");
32
+ __("Google cannot return directions between those addresses. There is no route between them or the routing information is not available.");
33
+ __("Unknown error, unable to return directions. Status code = ");
34
+ __("Directions");
35
+ __("Error reading KML file");
36
+ __("Loading...");
37
+ __("No matching address");
38
+ __("Unable to get your location");
39
+ __("Traffic");
40
+ __("Transit");
41
+ __("Zoom");
42
+ __("Add");
43
+ __("Click & drag to move");
44
+ __("Click to change");
45
+ __("Delete");
46
+ __("Delete this POI?");
47
+ __("Delete this map?");
48
+ __("Please save the map first");
49
+ __("Shape");
50
+ __("Untitled");
51
+ __("New");
52
+ __("Map not found");
53
+ __("Edit");
54
+ __("Show map");
55
+ __("Reset map");
56
+ __("Bigger map");
57
+ __("Smaller map");
58
+ __("Directions to");
59
+ __("Directions from");
60
+ __("Basic Settings");
61
+ __("Post types");
62
+ __("Automatic map display");
63
+ __("Map Controls");
64
+ __("Draggable");
65
+ __("Keyboard shortcuts");
66
+ __("Scroll wheel zoom");
67
+ __("Map Types");
68
+ __("Map controls");
69
+ __("Map Settings");
70
+ __("Map links");
71
+ __("Map alignment");
72
+ __("Open first POI");
73
+ __("POI Settings");
74
+ __("POI links");
75
+ __("Tooltips");
76
+ __("Default zoom");
77
+ __("Mashups");
78
+ __("Icons");
79
+ __("Styled Maps");
80
+ __("Geocoding");
81
+ __("Localization");
82
+ __("Language");
83
+ __("Country");
84
+ __("Directions server");
85
+ __("Directions units");
86
+ __("Miscellaneous");
87
+ __("Google API key");
88
+ __("Map sizes");
89
+ __("Adaptive display");
90
+ __("CSS");
91
+ __("Use the settings below to automatically create maps from custom fields.");
92
+ __("Recenter maps when window is resized");
93
+ __("more info");
94
+ __("A Google Maps API key is required for public servers %s");
95
+ __("country code");
96
+ __("Enter a %s to use when searching (leave blank for USA)");
97
+ __("Enter a google server URL for directions/printing");
98
+ __("(Default)");
99
+ __("Metric (kilometers)");
100
+ __("Imperial (miles)");
101
+ __("Enable map dragging with the mouse");
102
+ __("Enable zoom with the mouse scroll wheel");
103
+ __("Enable keyboard panning and zooming");
104
+ __("language");
105
+ __("Use a specific %s for map controls and geocoding");
106
+ __("Default");
107
+ __("Horizontal");
108
+ __("Dropdown");
109
+ __("Small");
110
+ __("Large");
111
+ __("Android");
112
+ __("Open initially");
113
+ __("Checked initially");
114
+ __("Control");
115
+ __("Enable");
116
+ __("Style");
117
+ __("Map types");
118
+ __("Pan");
119
+ __("Street view");
120
+ __("Scale");
121
+ __("Overview map");
122
+ __("Public transit");
123
+ __("Bike routes");
124
+ __("Road map");
125
+ __("Satellite");
126
+ __("Terrain");
127
+ __("Hybrid");
128
+ __("Google");
129
+ __("Inline");
130
+ __("None");
131
+ __("Automatically open the first POI when a map is displayed");
132
+ __("Show control");
133
+ __("Enabled by default");
134
+ __("Show POI titles as a \"tooltip\" on mouse-over");
135
+ __("Center");
136
+ __("Left");
137
+ __("Right");
138
+ __("Default zoom for POIs entered by lat/lng");
139
+ __("Top of post");
140
+ __("Bottom of post");
141
+ __("No automatic display");
142
+ __("Load %s");
143
+ __("Width");
144
+ __("Height");
145
+ __("Enter sizes in px or %");
146
+ __("Rate it 5 Stars");
147
+ __("%s on WordPress.org");
148
+ __("Thanks for your support!");
149
+ __("Easy Google Maps");
150
+ __("Like this plugin?");
151
+ __("Sample Map");
152
+ __("Save Changes");
153
+ __("Reset Defaults");
154
+ __("Settings");
155
+ __("download it now");
156
+ __("A PRO Version update is available for manual installation: %s");
157
+ __("No results, check that a geocoder is configured");
158
+ __("Invalid status: %s, address: %s");
159
+ __("No results for address: %s");
160
+ __("Error: %s %s");
161
+ __("Use default icon");
162
+ __("Automatic");
163
+ __("POI list");
164
+ __("InfoWindow type");
165
+ __("Default icon");
166
+ __("Custom icons directory");
167
+ __("Icon scaling");
168
+ __("Mashup POI title");
169
+ __("Mashup POI body");
170
+ __("Mashup POI click");
171
+ __("Link title");
172
+ __("Mashup Thumbnails");
173
+ __("Thumbnail Size");
174
+ __("Automatic icons");
175
+ __("Styled maps");
176
+ __("Default style");
177
+ __("Geocoder(s)");
178
+ __("Geocoding fields");
179
+ __("Force resize");
180
+ __("Post type");
181
+ __("Key");
182
+ __("Value");
183
+ __("Icon");
184
+ __("Show a list of POIs under each map");
185
+ __("Show the POI list as a sortable %s");
186
+ __("POI title");
187
+ __("Post title");
188
+ __("POI body");
189
+ __("Address");
190
+ __("Post excerpt");
191
+ __("Link POI titles to the underlying post");
192
+ __("Open the POI");
193
+ __("Go directly to the post");
194
+ __("Google InfoWindow");
195
+ __("InfoBox");
196
+ __("Show featured image thumbnails in mashup POIs");
197
+ __("Use existing size: ");
198
+ __("or resize to (px): ");
199
+ __("styled maps");
200
+ __("styled maps wizard");
201
+ __("Enter JSON for %s from Google's %s");
202
+ __("Style name");
203
+ __("No styles have been defined yet");
204
+ __("Nominatim");
205
+ __("Address Line 1");
206
+ __("Address Line 2");
207
+ __("Address Line 3");
208
+ __("Address Line 4");
209
+ __("Address Line 5");
210
+ __("Address Line 6");
211
+ __("Latitude");
212
+ __("Longitude");
213
+ __("Title");
214
+ __("Body");
215
+ __("Map Zoom");
216
+ __("Map");
217
+ __("Custom Field");
218
+ __("Overwrite existing maps when updating");
219
+ __("Permanently resize existing maps");
220
+ __("from %s to %s");
221
+ __("Force Resize");
222
+ __("Widget title");
223
+ __("Map size");
224
+ __("Show");
225
+ __("Current posts");
226
+ __("Hide if empty");
227
+ __("All posts");
228
+ __("Custom query");
229
+ __("Learn about queries");
230
+ __("Show POI list");
231
+ __("Link POIs to posts");
232
+ __("Map type");
233
+ __("Other Settings");
234
+ __("Example: traffic=\"false\" maplinks=\"\"");
235
+ __("By car");
236
+ __("Public Transit");
237
+ __("Walking");
238
+ __("Swap start and end");
239
+ __("Get Directions");
240
+ __("Print");
241
+ __("Close");
242
+ __("MapPress Easy Google Maps");
243
+ __("http://www.wphostreviews.com/mappress");
244
+ __("MapPress makes it easy to insert Google Maps in WordPress posts and pages.");
245
+ __("Chris Richardson");
246
+ __("http://www.wphostreviews.com/mappress");
247
+ ?>
mappress.php CHANGED
@@ -4,8 +4,9 @@ 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.43.4
8
  Author: Chris Richardson
 
9
  Thanks to all the translators and to Matthias Stasiak for his wonderful icons (http://code.google.com/p/google-maps-icons/)
10
  */
11
 
@@ -31,7 +32,7 @@ if (file_exists(dirname( __FILE__ ) . '/pro/mappress_pro.php')) {
31
  include_once dirname( __FILE__ ) . '/pro/mappress_widget.php';
32
  }
33
  class Mappress {
34
- const VERSION = '2.43.4';
35
 
36
  static
37
  $baseurl,
@@ -62,6 +63,7 @@ class Mappress {
62
 
63
  add_action('admin_menu', array($this, 'admin_menu'));
64
  add_action('init', array($this, 'init'));
 
65
 
66
  add_shortcode('mappress', array($this, 'shortcode_map'));
67
  add_action('admin_notices', array($this, 'admin_notices'));
@@ -72,17 +74,14 @@ class Mappress {
72
  // Filter to automatically add maps to post/page content
73
  add_filter('the_content', array($this, 'the_content'), 2);
74
 
 
 
 
 
75
  // Scripts and stylesheets
76
  add_action('wp_enqueue_scripts', array($this, 'wp_enqueue_scripts'));
77
  add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));
78
 
79
- // Frontend: output map in footer or header
80
- if (self::$options->footer)
81
- add_action('wp_print_footer_scripts', array($this, 'print_maps'));
82
-
83
- // Admin: output in footer only
84
- add_action('admin_print_footer_scripts', array($this, 'print_maps'));
85
-
86
  // Slow heartbeat
87
  if (self::$debug)
88
  add_filter( 'heartbeat_settings', array($this, 'heartbeat_settings'));
@@ -93,30 +92,30 @@ class Mappress {
93
  return $settings;
94
  }
95
 
96
- // mp_errors -> PHP errors
97
- // mp_remote -> use remote js
98
- // mp_debug -> add debug info
99
  function debugging() {
100
  global $wpdb;
101
  $posts_table = $wpdb->prefix . 'mappress_posts';
102
 
103
- self::$debug = (isset($_GET['mp_debug'])) ? true : ( defined('MAPPRESS_DEBUG') && MAPPRESS_DEBUG );
 
 
 
 
 
 
 
 
104
 
105
- if (isset($_GET['mp_errors'])) {
106
  error_reporting(E_ALL);
107
  ini_set('error_reporting', E_ALL);
108
  ini_set('display_errors','On');
109
  $wpdb->show_errors();
110
  }
111
-
112
- if (isset($_GET['mp_info'])) {
113
- echo "<b>Plugin version</b> " . $this->get_version_string();
114
- die();
115
- }
116
  }
117
 
118
  static function get_version_string() {
119
- $version = __('Version', 'mappress') . ":" . self::VERSION;
120
  if (class_exists('Mappress_Pro'))
121
  $version .= " PRO";
122
  return $version;
@@ -124,17 +123,17 @@ class Mappress {
124
 
125
  static function get_support_links() {
126
  echo self::get_version_string();
127
- echo " | <a target='_blank' href='http://wphostreviews.com/mappress/mappress-documentation'>" . __('Documentation', 'mappress') . "</a>";
128
- echo " | <a target='_blank' href='http://wphostreviews.com/chris-contact'>" . __('Support', 'mappress') . "</a>";
129
 
130
  if (!class_exists('Mappress_Pro'))
131
- echo "<a class='button button-primary' style='margin-left: 20px' href='http://wphostreviews.com/mappress' target='_blank'>" . __('Upgrade to MapPress Pro', 'mappress') . "</a>";
132
  }
133
 
134
  static function ajax_response($status, $data=null) {
135
  $output = trim(ob_get_clean()); // Ignore whitespace, any other output is an error
136
  header( "Content-Type: application/json" );
137
- $response = json_encode(array('status' => $status, 'data' => $data, 'output' => $output));
138
  die ($response);
139
  }
140
 
@@ -174,7 +173,8 @@ class Mappress {
174
  return $content;
175
 
176
  // Don't add the shortcode for feeds or admin screens
177
- if (is_feed() || is_admin())
 
178
  return $content;
179
 
180
  // No shortcode if post is password protected
@@ -218,7 +218,8 @@ class Mappress {
218
  return;
219
 
220
  // Try to protect against calls to do_shortcode() in the post editor...
221
- if (is_admin())
 
222
  return;
223
 
224
  $atts = $this->scrub_atts($atts);
@@ -241,6 +242,10 @@ class Mappress {
241
  return $map->display($atts);
242
  }
243
 
 
 
 
 
244
  /**
245
  * Scripts & styles for frontend
246
  * CSS is loaded from: child theme, theme, or plugin directory
@@ -260,10 +265,6 @@ class Mappress {
260
  if (isset($file))
261
  wp_enqueue_style('mappress-custom', $file, array('mappress'), self::VERSION);
262
  }
263
-
264
- // Load scripts in header
265
- if (!self::$options->footer)
266
- $this->load();
267
  }
268
 
269
  // Scripts & styles for admin
@@ -288,6 +289,11 @@ class Mappress {
288
  }
289
  }
290
 
 
 
 
 
 
291
  /**
292
  * There are several WP bugs that prevent correct activation in multisitie:
293
  * http://core.trac.wordpress.org/ticket/14170
@@ -297,15 +303,13 @@ class Mappress {
297
  *
298
  */
299
  function init() {
300
- // Load text domain
301
- load_plugin_textdomain('mappress', false, dirname(self::$basename) . '/languages');
302
-
303
  // Register hooks and create database tables
304
  Mappress_Map::register();
305
 
306
  // Register static classes
307
  if (class_exists('Mappress_Pro')) {
308
  Mappress_Icons::register();
 
309
  Mappress_Query::register();
310
  }
311
 
@@ -329,19 +333,48 @@ class Mappress {
329
  $exists = $wpdb->get_var("show tables like '$map_table'");
330
 
331
  if (!$exists) {
332
- echo sprintf($error, __("MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this.", 'mappress'));
333
  return;
334
  }
335
 
336
  if (get_bloginfo('version') < "3.2") {
337
- echo sprintf($error, __("WARNING: MapPress now requires WordPress 3.2 or higher. Please upgrade before using MapPress.", 'mappress'));
338
  return;
339
  }
340
 
341
  if (class_exists('WPGeo')) {
342
- echo sprintf($error, __("WARNING: MapPress is not compfatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress.", 'mappress'));
343
  return;
344
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
345
  }
346
 
347
  /**
@@ -396,6 +429,14 @@ class Mappress {
396
  if (isset($atts['maplinks']))
397
  $atts['maplinks'] = explode(',', $atts['maplinks']);
398
 
 
 
 
 
 
 
 
 
399
  return $atts;
400
  }
401
 
@@ -434,95 +475,33 @@ class Mappress {
434
  * @param mixed $script
435
  */
436
  static function script($script) {
437
- // Workaround for Nextgen and Better WordPress Minify plugins, which reverse sequence of wp_enqueue_scripts and wp_print_footer_scripts output
438
- $script = "jQuery(document).ready(function () { \r\n$script\r\n });";
439
  return "\r\n<script type='text/javascript'>\r\n{$script}\r\n</script>\r\n";
440
  }
441
 
442
- function enqueue_map($map = null) {
443
- // Output map immediately if scripts loaded in header
444
- if ($map && !self::$options->footer && !is_admin())
445
- return $this->get_map($map);
446
-
447
- // Load scripts and enqueue map
448
- $this->load();
449
- $this->queue[$map->name] = $map;
450
- }
451
-
452
- function enqueue_editor() {
453
- $this->load('editor');
454
- $this->queue['editor'] = true;
455
- }
456
-
457
- function print_maps() {
458
- // If queue is empty there's nothing to do
459
- if (empty($this->queue))
460
- return;
461
-
462
- echo "\r\n<!-- MapPress Easy Google Maps " . self::get_version_string() . " (http://www.wphostreviews.com/mappress) -->\r\n";
463
-
464
- if (isset($this->queue['editor'])) {
465
- $script = "window.mappEditor = new mapp.Media();";
466
- echo Mappress::script($script);
467
- return;
468
- }
469
-
470
- foreach ($this->queue as $map)
471
- echo $this->get_map($map);
472
-
473
- $this->queue = array();
474
- }
475
-
476
- /**
477
- * Print a single map
478
- *
479
- * @param mixed $map
480
- */
481
- function get_map($map) {
482
- // For static maps prepare the pois immediately
483
- if (empty($map->query))
484
- $map->prepare();
485
-
486
- $script = "var mapdata = " . json_encode($map) . ";\r\n"
487
- . "window.$map->name = new mapp.Map(mapdata); \r\n"
488
- . "$map->name.display(); ";
489
-
490
- $html = Mappress::script($script);
491
-
492
- if ($map->options->directions == 'inline') {
493
- $html .= "<div id='{$map->name}_directions_' style='display:none'>";
494
- $html .= $this->get_template($map->options->templateDirections, array('map' => $map));
495
- $html .= "</div>";
496
- }
497
- return $html;
498
- }
499
-
500
  function load($type = null) {
501
  static $loaded;
502
 
503
  if ($loaded)
504
  return;
505
-
506
  $loaded = true;
507
 
508
  $version = self::VERSION;
509
- $footer = self::$options->footer;
 
 
510
  $apikey = (!empty(self::$options->apiKey)) ? "&key=" . self::$options->apiKey : '';
511
  $libstring = ($type == 'editor') ? '&libraries=places,drawing' : '&libraries=places';
512
 
513
  // Directories
514
- $remote = (isset($_REQUEST['mp_remote'])) ? true : false;
515
- $min = (self::$debug || $remote) ? "" : ".min";
516
- $js = (self::$debug) ? self::$baseurl . '/src' : self::$baseurl . '/js';
517
- $js = ($remote) ? 'http://localhost/dev/wp-content/plugins/mappress-google-maps-for-wordpress/src' : $js;
518
 
519
  // Get language for WPML or qTranslate, or use options setting
520
- $language = (self::$options->language) ? self::$options->language : '';
521
- $language = (defined('ICL_LANGUAGE_CODE')) ? ICL_LANGUAGE_CODE : $language;
522
- $language = (function_exists('qtrans_getLanguage')) ? qtrans_getLanguage() : '';
523
  $language = ($language) ? "&language=$language" : '';
524
 
525
- wp_enqueue_script("mappress-gmaps", "https://maps.googleapis.com/maps/api/js?sensor=true{$language}{$libstring}{$apikey}", null, null, $footer);
526
 
527
  if ($type == 'editor')
528
  wp_enqueue_script('mappress_editor', $js . "/mappress_editor$min.js", array('jquery', 'jquery-ui-position', 'jquery-ui-slider'), $version);
@@ -530,17 +509,12 @@ class Mappress {
530
  if ($type == 'settings')
531
  wp_enqueue_script('mappress_settings', $js . "/mappress_settings$min.js", array('postbox', 'jquery', 'jquery-ui-core', 'jquery-ui-position'));
532
 
533
- if (!$type && self::$options->dataTables) {
534
- wp_enqueue_script('mappress_datatables', self::$baseurl . "/pro/DataTables/media/js/jquery.dataTables$min.js", array('jquery'), $version, $footer);
535
- wp_enqueue_style('mappress-datatables', self::$baseurl . "/pro/DataTables/media/css/jquery.dataTables.css", null, '1.9.1');
536
- }
537
-
538
  if ($min) {
539
- wp_enqueue_script('mappress', $js . "/mappress.min.js", array('jquery'), $version, $footer);
540
  } else {
541
- wp_enqueue_script('mappress', $js . "/mappress.js", array('jquery'), $version, $footer);
542
- foreach(array('directions', 'geocoding', 'icons', 'infobox', 'lib', 'poi', 'widgets') as $script)
543
- wp_enqueue_script($script, $js . "/mappress_{$script}.js", null, $version, $footer);
544
  }
545
 
546
  wp_localize_script('mappress', 'mappl10n', $this->l10n());
@@ -550,32 +524,32 @@ class Mappress {
550
  global $post;
551
 
552
  $l10n = array(
553
- 'bicycling' => __('Bicycling', 'mappress'),
554
- 'bike' => __('Bike', 'mappress'),
555
- 'dir_not_found' => __('One of the addresses could not be found.', 'mappress'),
556
- 'dir_zero_results' => __('Google cannot return directions between those addresses. There is no route between them or the routing information is not available.', 'mappress'),
557
- 'dir_default' => __('Unknown error, unable to return directions. Status code = ', 'mappress'),
558
- 'directions' => __('Directions', 'mappress'),
559
- 'kml_error' => __('Error reading KML file', 'mappress'),
560
- 'loading' => __('Loading...', 'mappress'),
561
- 'no_address' => __('No matching address', 'mappress'),
562
- 'no_geolocate' => __('Unable to get your location', 'mappress'),
563
- 'traffic' => __('Traffic', 'mappress'),
564
- 'transit' => __('Transit', 'mappress'),
565
- 'zoom' => __('Zoom', 'mappress')
566
  );
567
 
568
  if (is_admin()) {
569
  $l10n = array_merge($l10n, array(
570
- 'add' => __('Add', 'mappress'),
571
- 'click_and_drag' => __('Click & drag to move', 'mappress'),
572
- 'click_to_change' => __('Click to change', 'mappress'),
573
- 'del' => __('Delete', 'mappress'),
574
- 'delete_prompt' => __('Delete this POI?', 'mappress'),
575
- 'delete_map_prompt' => __('Delete this map?', 'mappress'),
576
- 'save_first' => __('Please save the map first', 'mappress'),
577
- 'shape' => __('Shape', 'mappress'),
578
- 'untitled' => __('Untitled', 'mappress')
579
  ));
580
  }
581
 
@@ -585,13 +559,14 @@ class Mappress {
585
  'admin' => current_user_can('administrator'),
586
  'debug' => Mappress::$debug,
587
  'iconsUrl' => (class_exists('Mappress_Icons')) ? Mappress_Icons::$icons_url : null,
 
588
  'postid' => ($post) ? $post->ID : null,
589
  'siteUrl' => site_url(),
590
  'standardIconsUrl' => (class_exists('Mappress_Icons')) ? Mappress_Icons::$standard_icons_url : null
591
  );
592
 
593
  // Settings
594
- $options = array('country', 'defaultIcon', 'directionsServer', 'directionsUnits', 'iconScale', 'language', 'poiZoom', 'styles', 'tooltips');
595
  foreach($options as $option)
596
  $l10n['options'][$option] = self::$options->$option;
597
 
@@ -607,11 +582,11 @@ class Mappress {
607
  *
608
  */
609
  static function get_language() {
610
- // For WPML (wpml.org): set the selected language if it wasn't specified in the options screen
611
  if (defined('ICL_LANGUAGE_CODE'))
612
  return ICL_LANGUAGE_CODE;
613
 
614
- // For qTranslate, pick up current language from that
615
  if (function_exists('qtrans_getLanguage'))
616
  return qtrans_getLanguage();
617
 
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.43.8
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/)
11
  */
12
 
32
  include_once dirname( __FILE__ ) . '/pro/mappress_widget.php';
33
  }
34
  class Mappress {
35
+ const VERSION = '2.43.8';
36
 
37
  static
38
  $baseurl,
63
 
64
  add_action('admin_menu', array($this, 'admin_menu'));
65
  add_action('init', array($this, 'init'));
66
+ add_action('plugins_loaded', array($this, 'plugins_loaded'));
67
 
68
  add_shortcode('mappress', array($this, 'shortcode_map'));
69
  add_action('admin_notices', array($this, 'admin_notices'));
74
  // Filter to automatically add maps to post/page content
75
  add_filter('the_content', array($this, 'the_content'), 2);
76
 
77
+ // Namespace
78
+ add_action('wp_head', array($this, 'wp_head'));
79
+ add_action('admin_head', array($this, 'wp_head'));
80
+
81
  // Scripts and stylesheets
82
  add_action('wp_enqueue_scripts', array($this, 'wp_enqueue_scripts'));
83
  add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));
84
 
 
 
 
 
 
 
 
85
  // Slow heartbeat
86
  if (self::$debug)
87
  add_filter( 'heartbeat_settings', array($this, 'heartbeat_settings'));
92
  return $settings;
93
  }
94
 
 
 
 
95
  function debugging() {
96
  global $wpdb;
97
  $posts_table = $wpdb->prefix . 'mappress_posts';
98
 
99
+ if (isset($_GET['mp_info'])) {
100
+ echo "<b>Plugin version</b> " . $this->get_version_string();
101
+ die();
102
+ }
103
+
104
+ if (isset($_REQUEST['mp_debug']))
105
+ self::$debug = max(1, (int) $_REQUEST['mp_debug']);
106
+ else if (defined('MAPPRESS_DEBUG'))
107
+ self::$debug = MAPPRESS_DEBUG;
108
 
109
+ if (self::$debug) {
110
  error_reporting(E_ALL);
111
  ini_set('error_reporting', E_ALL);
112
  ini_set('display_errors','On');
113
  $wpdb->show_errors();
114
  }
 
 
 
 
 
115
  }
116
 
117
  static function get_version_string() {
118
+ $version = __('Version', 'mappress-google-maps-for-wordpress') . ":" . self::VERSION;
119
  if (class_exists('Mappress_Pro'))
120
  $version .= " PRO";
121
  return $version;
123
 
124
  static function get_support_links() {
125
  echo self::get_version_string();
126
+ echo " | <a target='_blank' href='http://wphostreviews.com/mappress/mappress-documentation'>" . __('Documentation', 'mappress-google-maps-for-wordpress') . "</a>";
127
+ echo " | <a target='_blank' href='http://wphostreviews.com/chris-contact'>" . __('Support', 'mappress-google-maps-for-wordpress') . "</a>";
128
 
129
  if (!class_exists('Mappress_Pro'))
130
+ echo "<a class='button button-primary' style='margin-left: 20px' href='http://wphostreviews.com/mappress' target='_blank'>" . __('Upgrade to MapPress Pro', 'mappress-google-maps-for-wordpress') . "</a>";
131
  }
132
 
133
  static function ajax_response($status, $data=null) {
134
  $output = trim(ob_get_clean()); // Ignore whitespace, any other output is an error
135
  header( "Content-Type: application/json" );
136
+ $response = json_encode(array('status' => $status, 'output' => $output, 'data' => $data));
137
  die ($response);
138
  }
139
 
173
  return $content;
174
 
175
  // Don't add the shortcode for feeds or admin screens
176
+ $ajax = defined('DOING_AJAX') && DOING_AJAX;
177
+ if (!$ajax && (is_feed() || is_admin()) )
178
  return $content;
179
 
180
  // No shortcode if post is password protected
218
  return;
219
 
220
  // Try to protect against calls to do_shortcode() in the post editor...
221
+ $ajax = defined('DOING_AJAX') && DOING_AJAX;
222
+ if (is_admin() && !$ajax)
223
  return;
224
 
225
  $atts = $this->scrub_atts($atts);
242
  return $map->display($atts);
243
  }
244
 
245
+ function wp_head() {
246
+ echo "<script type='text/javascript'>mapp = {data : []};</script>\r\n";
247
+ }
248
+
249
  /**
250
  * Scripts & styles for frontend
251
  * CSS is loaded from: child theme, theme, or plugin directory
265
  if (isset($file))
266
  wp_enqueue_style('mappress-custom', $file, array('mappress'), self::VERSION);
267
  }
 
 
 
 
268
  }
269
 
270
  // Scripts & styles for admin
289
  }
290
  }
291
 
292
+ function plugins_loaded() {
293
+ load_plugin_textdomain('mappress-google-maps-for-wordpress', false, dirname(self::$basename) . '/languages');
294
+ }
295
+
296
+
297
  /**
298
  * There are several WP bugs that prevent correct activation in multisitie:
299
  * http://core.trac.wordpress.org/ticket/14170
303
  *
304
  */
305
  function init() {
 
 
 
306
  // Register hooks and create database tables
307
  Mappress_Map::register();
308
 
309
  // Register static classes
310
  if (class_exists('Mappress_Pro')) {
311
  Mappress_Icons::register();
312
+ Mappress_Pro_Settings::register();
313
  Mappress_Query::register();
314
  }
315
 
333
  $exists = $wpdb->get_var("show tables like '$map_table'");
334
 
335
  if (!$exists) {
336
+ echo sprintf($error, __("MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this.", 'mappress-google-maps-for-wordpress'));
337
  return;
338
  }
339
 
340
  if (get_bloginfo('version') < "3.2") {
341
+ echo sprintf($error, __("WARNING: MapPress now requires WordPress 3.2 or higher. Please upgrade before using MapPress.", 'mappress-google-maps-for-wordpress'));
342
  return;
343
  }
344
 
345
  if (class_exists('WPGeo')) {
346
+ echo sprintf($error, __("WARNING: MapPress is not compfatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress.", 'mappress-google-maps-for-wordpress'));
347
  return;
348
  }
349
+
350
+ // Dismissable notices
351
+ $notices = array();
352
+ $dismissed = get_option('mappress-dismissed');
353
+
354
+ // API Keys
355
+ if (!self::$options->apiKey) {
356
+ $apiurl = sprintf("<a href='%s' target='_blank'>%s</a>", 'https://developers.google.com/maps/pricing-and-plans/standard-plan-2016-update', __('API Key', 'mappress-google-maps-for-wordpress'));
357
+ $settings = sprintf("<a href='%s'>%s</a>", admin_url('admin.php?page=mappress'), __('MapPress Settings', 'mappress-google-maps-for-wordpress'));
358
+ $notices['apikey'] = sprintf("Google Maps requires an %s on public sites. Please update your %s", $apiurl, $settings);
359
+ }
360
+
361
+ foreach($notices as $notice => $msg) {
362
+ if (is_array($dismissed) && in_array($notice, $dismissed))
363
+ continue;
364
+ echo "<div class='notice error is-dismissible'><p>$msg</p></div>";
365
+ }
366
+ }
367
+
368
+ static function dismiss($notice) {
369
+ $dismissed = get_option('mappress-dismissed');
370
+ $dismissed = (is_array($dismissed)) ? $dismissed : array();
371
+ $dismissed[$key] = true;
372
+ }
373
+
374
+ // Can be removed
375
+ static function is_local() {
376
+ $local = in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'));
377
+ return $local;
378
  }
379
 
380
  /**
429
  if (isset($atts['maplinks']))
430
  $atts['maplinks'] = explode(',', $atts['maplinks']);
431
 
432
+ // Search = 'post', replace with post's location
433
+ if (isset($atts['search']) && $atts['search'] == 'post') {
434
+ global $post;
435
+ $maps = Mappress_Map::get_list($post->ID);
436
+ $map = ($maps) ? Mappress_Map::get($maps[0]) : null;
437
+ $atts['search'] = ($map && $map->pois) ? $map->pois[0]->point : null;
438
+ }
439
+
440
  return $atts;
441
  }
442
 
475
  * @param mixed $script
476
  */
477
  static function script($script) {
478
+ $script = (is_array($script)) ? implode("\r\n", $script) : $script;
 
479
  return "\r\n<script type='text/javascript'>\r\n{$script}\r\n</script>\r\n";
480
  }
481
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
482
  function load($type = null) {
483
  static $loaded;
484
 
485
  if ($loaded)
486
  return;
 
487
  $loaded = true;
488
 
489
  $version = self::VERSION;
490
+ $dev = (defined('MAPPRESS_DEV')) ? MAPPRESS_DEV : isset($_REQUEST['mp_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
497
+ $min = ($dev) ? "" : ".min";
498
+ $js = ($dev) ? "http://localhost/$dev/wp-content/plugins/mappress-google-maps-for-wordpress/src" : self::$baseurl . '/js';
 
 
499
 
500
  // Get language for WPML or qTranslate, or use options setting
501
+ $language = $this->get_language();
 
 
502
  $language = ($language) ? "&language=$language" : '';
503
 
504
+ wp_enqueue_script("mappress-gmaps", "https://maps.googleapis.com/maps/api/js?{$apiversion}{$language}{$libstring}{$apikey}", null, null, true);
505
 
506
  if ($type == 'editor')
507
  wp_enqueue_script('mappress_editor', $js . "/mappress_editor$min.js", array('jquery', 'jquery-ui-position', 'jquery-ui-slider'), $version);
509
  if ($type == 'settings')
510
  wp_enqueue_script('mappress_settings', $js . "/mappress_settings$min.js", array('postbox', 'jquery', 'jquery-ui-core', 'jquery-ui-position'));
511
 
 
 
 
 
 
512
  if ($min) {
513
+ wp_enqueue_script('mappress', $js . "/mappress.min.js", array('jquery'), $version, true);
514
  } else {
515
+ wp_enqueue_script('mappress', $js . "/mappress.js", array('jquery'), $version, true);
516
+ foreach(array('directions', 'geocoding', 'icons', 'infobox', 'lib', 'places', 'poi', 'widgets', 'loader') as $script)
517
+ wp_enqueue_script($script, $js . "/mappress_{$script}.js", null, $version, true);
518
  }
519
 
520
  wp_localize_script('mappress', 'mappl10n', $this->l10n());
524
  global $post;
525
 
526
  $l10n = array(
527
+ 'bicycling' => __('Bicycling', 'mappress-google-maps-for-wordpress'),
528
+ 'bike' => __('Bike', 'mappress-google-maps-for-wordpress'),
529
+ 'dir_not_found' => __('One of the addresses could not be found.', 'mappress-google-maps-for-wordpress'),
530
+ 'dir_zero_results' => __('Google cannot return directions between those addresses. There is no route between them or the routing information is not available.', 'mappress-google-maps-for-wordpress'),
531
+ 'dir_default' => __('Unknown error, unable to return directions. Status code = ', 'mappress-google-maps-for-wordpress'),
532
+ 'directions' => __('Directions', 'mappress-google-maps-for-wordpress'),
533
+ 'kml_error' => __('Error reading KML file', 'mappress-google-maps-for-wordpress'),
534
+ 'loading' => __('Loading...', 'mappress-google-maps-for-wordpress'),
535
+ 'no_address' => __('No matching address', 'mappress-google-maps-for-wordpress'),
536
+ 'no_geolocate' => __('Unable to get your location', 'mappress-google-maps-for-wordpress'),
537
+ 'traffic' => __('Traffic', 'mappress-google-maps-for-wordpress'),
538
+ 'transit' => __('Transit', 'mappress-google-maps-for-wordpress'),
539
+ 'zoom' => __('Zoom', 'mappress-google-maps-for-wordpress')
540
  );
541
 
542
  if (is_admin()) {
543
  $l10n = array_merge($l10n, array(
544
+ 'add' => __('Add', 'mappress-google-maps-for-wordpress'),
545
+ 'click_and_drag' => __('Click & drag to move', 'mappress-google-maps-for-wordpress'),
546
+ 'click_to_change' => __('Click to change', 'mappress-google-maps-for-wordpress'),
547
+ 'del' => __('Delete', 'mappress-google-maps-for-wordpress'),
548
+ 'delete_prompt' => __('Delete this POI?', 'mappress-google-maps-for-wordpress'),
549
+ 'delete_map_prompt' => __('Delete this map?', 'mappress-google-maps-for-wordpress'),
550
+ 'save_first' => __('Please save the map first', 'mappress-google-maps-for-wordpress'),
551
+ 'shape' => __('Shape', 'mappress-google-maps-for-wordpress'),
552
+ 'untitled' => __('Untitled', 'mappress-google-maps-for-wordpress')
553
  ));
554
  }
555
 
559
  'admin' => current_user_can('administrator'),
560
  'debug' => Mappress::$debug,
561
  'iconsUrl' => (class_exists('Mappress_Icons')) ? Mappress_Icons::$icons_url : null,
562
+ 'language' => $this->get_language(),
563
  'postid' => ($post) ? $post->ID : null,
564
  'siteUrl' => site_url(),
565
  'standardIconsUrl' => (class_exists('Mappress_Icons')) ? Mappress_Icons::$standard_icons_url : null
566
  );
567
 
568
  // Settings
569
+ $options = array('country', 'defaultIcon', 'directionsServer', 'directionsUnits', 'iconScale', 'poiZoom', 'styles', 'tooltips');
570
  foreach($options as $option)
571
  $l10n['options'][$option] = self::$options->$option;
572
 
582
  *
583
  */
584
  static function get_language() {
585
+ // WPML
586
  if (defined('ICL_LANGUAGE_CODE'))
587
  return ICL_LANGUAGE_CODE;
588
 
589
+ // qTranslate
590
  if (function_exists('qtrans_getLanguage'))
591
  return qtrans_getLanguage();
592
 
mappress_controls.php CHANGED
@@ -138,7 +138,7 @@ class Mappress_Controls {
138
  // Add delete and sort columns
139
  $headers[] = '';
140
  foreach($rows as $i => $row)
141
- $rows[$i][] = "<span data-mapp-action='remove' title='" . __('Delete', 'mappress') . "'>X</span>";
142
 
143
  // Last row is the template
144
  $lastrow = count($rows) - 1;
@@ -146,14 +146,14 @@ class Mappress_Controls {
146
  unset($rows[$lastrow]);
147
 
148
  // Hide table if empty
149
- if ($lastrow <= 1)
150
  $args['style'] = 'display:none';
151
 
152
  // Generate table
153
  $html .= self::table($headers, $rows, $args);
154
 
155
  // Add new row button
156
- $html .= "<button type='button' class='button' data-mapp-action='add'>" . __('Add', 'mappress') . "</button>";
157
 
158
  // Add template
159
  $html .= "<script type='text/template'><tr>";
@@ -200,9 +200,9 @@ class Mappress_Controls {
200
  // Pseudo-combobox
201
  static function combobox($name, $data, $selected = '', $args = '') {
202
  $html = Mappress_Controls::select($name, $data, $selected, $args);
203
- $html .= " <a class='mapp-combo-new' href='#'>" . __('New', 'mappress') . "</a>";
204
  $html .= Mappress_Controls::input($name, '', array('style' => 'display:none', 'disabled' => true));
205
- $html .= " <a class='mapp-combo-cancel' href='#' style='display:none'>" . __('Cancel') . "</a>";
206
  return "<div class='mapp-combobox'>$html</div>";
207
  }
208
 
@@ -224,6 +224,36 @@ class Mappress_Controls {
224
  $html = "<input type='hidden' data-mapp-iconpicker name='$name' value='$value' $atts />";
225
  return $html;
226
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  }
228
 
229
  /**
138
  // Add delete and sort columns
139
  $headers[] = '';
140
  foreach($rows as $i => $row)
141
+ $rows[$i][] = "<span data-mapp-action='remove' title='" . __('Delete', 'mappress-google-maps-for-wordpress') . "'>X</span>";
142
 
143
  // Last row is the template
144
  $lastrow = count($rows) - 1;
146
  unset($rows[$lastrow]);
147
 
148
  // Hide table if empty
149
+ if ($lastrow < 1)
150
  $args['style'] = 'display:none';
151
 
152
  // Generate table
153
  $html .= self::table($headers, $rows, $args);
154
 
155
  // Add new row button
156
+ $html .= "<button type='button' class='button' data-mapp-action='add'>" . __('Add', 'mappress-google-maps-for-wordpress') . "</button>";
157
 
158
  // Add template
159
  $html .= "<script type='text/template'><tr>";
200
  // Pseudo-combobox
201
  static function combobox($name, $data, $selected = '', $args = '') {
202
  $html = Mappress_Controls::select($name, $data, $selected, $args);
203
+ $html .= " <a class='mapp-combo-new' href='#'>" . __('New', 'mappress-google-maps-for-wordpress') . "</a>";
204
  $html .= Mappress_Controls::input($name, '', array('style' => 'display:none', 'disabled' => true));
205
+ $html .= " <a class='mapp-combo-cancel' href='#' style='display:none'>" . __('Cancel', 'mappress-google-maps-for-wordpress') . "</a>";
206
  return "<div class='mapp-combobox'>$html</div>";
207
  }
208
 
224
  $html = "<input type='hidden' data-mapp-iconpicker name='$name' value='$value' $atts />";
225
  return $html;
226
  }
227
+
228
+ static function get_post_types() {
229
+ $results = array();
230
+ $post_types = get_post_types(array('show_ui' => true), 'objects');
231
+ unset($post_types['attachment']);
232
+ foreach($post_types as $type => $obj)
233
+ $results[$type] = $obj->label;
234
+ return $results;
235
+ }
236
+
237
+ static function get_taxonomies() {
238
+ $results = array();
239
+ $tax_objs = get_taxonomies(array('public' => true), 'objects');
240
+ unset($tax_objs['post_format']);
241
+ foreach($tax_objs as $tax_obj)
242
+ $results[$tax_obj->name] = $tax_obj->label;
243
+ return $results;
244
+ }
245
+
246
+ static function get_terms($taxonomy) {
247
+ $results = array();
248
+ $terms = get_terms($taxonomy, array('hide_empty' => false));
249
+ if (is_array($terms)) {
250
+ $walker = new Mappress_Walker();
251
+ $walk = $walker->walk($terms, 0, array('indent' => true));
252
+ if (is_array($walk))
253
+ $results = $walk;
254
+ }
255
+ return $results;
256
+ }
257
  }
258
 
259
  /**
mappress_map.php CHANGED
@@ -97,8 +97,8 @@ class Mappress_Map extends Mappress_Obj {
97
 
98
  static function meta_box($post) {
99
  global $mappress;
100
- $mappress->enqueue_editor();
101
  require(Mappress::$basedir . '/forms/map_media.php');
 
102
  }
103
 
104
  static function ajax_create() {
@@ -112,7 +112,7 @@ class Mappress_Map extends Mappress_Obj {
112
  $mapid = (isset($_GET['mapid'])) ? $_GET['mapid'] : null;
113
  $map = ($mapid) ? self::get($mapid) : null;
114
  if (!$map)
115
- Mappress::ajax_response(__('Map not found', 'mappress'));
116
  else
117
  Mappress::ajax_response('OK', array('map' => $map));
118
  }
@@ -139,28 +139,17 @@ class Mappress_Map extends Mappress_Obj {
139
  }
140
 
141
  /**
142
- * Returns ALL maps
143
  *
144
- * @return mixed false if failure, array of maps if success
145
  *
146
  */
147
- static function get_list() {
148
  global $wpdb;
149
- $maps_table = $wpdb->prefix . 'mappress_maps';
150
- $results = $wpdb->get_results("SELECT * FROM $maps_table");
151
-
152
- if ($results === false)
153
- return false;
154
-
155
- // Fix up mapid
156
- foreach ($results as $result) {
157
- $mapdata = (array) unserialize($result->obj);
158
- $map = new Mappress_Map($mapdata);
159
- $map->mapid = $result->mapid;
160
- $maps[] = $map;
161
- }
162
-
163
- return $maps;
164
  }
165
 
166
  function save($postid) {
@@ -360,8 +349,30 @@ class Mappress_Map extends Mappress_Obj {
360
  else
361
  $html = $mappress->get_template('map_layout', array('map' => $this));
362
 
363
- // Enqueue or output map
364
- $html .= $mappress->enqueue_map($this);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
365
  return $html;
366
  }
367
 
@@ -387,6 +398,9 @@ class Mappress_Map extends Mappress_Obj {
387
  foreach($this->pois as $poi)
388
  $poi->set_html();
389
 
 
 
 
390
  // Last chance to alter map before display
391
  do_action('mappress_map_display', $this);
392
  }
@@ -395,28 +409,32 @@ class Mappress_Map extends Mappress_Obj {
395
  * Autoicons
396
  */
397
  function autoicons() {
398
- // Nothing to do if there are no POIs
399
- if (!count($this->pois))
400
- return;
401
 
402
- // Currently only taxonomies are supported
403
- foreach ((array) Mappress::$options->autoicons as $autoicon) {
404
- $autoicon = (object) wp_parse_args($autoicon, array('key' => null, 'value' => null, 'iconid' => null));
405
- $term = get_term_by('slug', $autoicon->value, $autoicon->key);
406
- if (!is_object($term))
407
- continue;
408
 
409
- $objects = get_objects_in_term($term->term_id, $autoicon->key);
 
 
 
 
 
 
410
 
411
- // Error, e.g. invalid taxonomy
412
- if (!is_array($objects))
413
- continue;
 
 
 
414
 
415
- $objects = array_flip($objects);
 
416
  foreach($this->pois as &$poi) {
417
- if (array_key_exists($poi->postid, $objects)) {
418
- $poi->iconid = $autoicon->iconid;
419
- }
420
  }
421
  }
422
 
@@ -460,9 +478,9 @@ class Mappress_Map extends Mappress_Obj {
460
  $maps = self::get_post_map_list($postid);
461
 
462
  $actions = "<div class='mapp-m-actions'>"
463
- . "<a href='#' class='mapp-maplist-edit'>" . __('Edit', 'mappress') . "</a> | "
464
- . "<a href='#' class='mapp-maplist-insert'>" . __('Insert into post', 'mappress') . "</a> | "
465
- . "<a href='#' class='mapp-maplist-delete'>" . __('Delete', 'mappress') . "</a>"
466
  . "</div>";
467
 
468
  $html = "<table class='mapp-m-map-list'>";
@@ -487,7 +505,7 @@ class Mappress_Map extends Mappress_Obj {
487
 
488
  function get_show_link($args = '') {
489
  extract(wp_parse_args($args, array(
490
- 'text' => __('Show map', 'mappress')
491
  )));
492
 
493
  if (!$this->options->hidden)
@@ -499,7 +517,7 @@ class Mappress_Map extends Mappress_Obj {
499
 
500
  function get_center_link($args = '') {
501
  extract(wp_parse_args($args, array(
502
- 'text' => __('Center map', 'mappress')
503
  )));
504
 
505
  $click = "{$this->name}.autoCenter(true); return false;";
@@ -508,7 +526,7 @@ class Mappress_Map extends Mappress_Obj {
508
 
509
  function get_reset_link($args = '') {
510
  extract(wp_parse_args($args, array(
511
- 'text' => __('Reset map', 'mappress')
512
  )));
513
 
514
  $click = "{$this->name}.reset(); return false;";
@@ -517,8 +535,8 @@ class Mappress_Map extends Mappress_Obj {
517
 
518
  function get_bigger_link($args = '') {
519
  extract(wp_parse_args($args, array(
520
- 'big_text' => "&raquo;&nbsp;" . __('Bigger map', 'mappress'),
521
- 'small_text' => "&laquo;&nbsp;" . __('Smaller map', 'mappress')
522
  )));
523
 
524
  $click = "{$this->name}.bigger(this, \"$big_text\", \"$small_text\"); return false;";
97
 
98
  static function meta_box($post) {
99
  global $mappress;
 
100
  require(Mappress::$basedir . '/forms/map_media.php');
101
+ $mappress->load('editor');
102
  }
103
 
104
  static function ajax_create() {
112
  $mapid = (isset($_GET['mapid'])) ? $_GET['mapid'] : null;
113
  $map = ($mapid) ? self::get($mapid) : null;
114
  if (!$map)
115
+ Mappress::ajax_response(__('Map not found', 'mappress-google-maps-for-wordpress'));
116
  else
117
  Mappress::ajax_response('OK', array('map' => $map));
118
  }
139
  }
140
 
141
  /**
142
+ * Get list of mapids for a post or all maps
143
  *
144
+ * @return array of mapids | empty array
145
  *
146
  */
147
+ static function get_list($postid = null) {
148
  global $wpdb;
149
+ $posts_table = $wpdb->prefix . 'mappress_posts';
150
+ $sql = ($postid) ? $wpdb->prepare("SELECT mapid FROM $posts_table WHERE postid = %d", $postid) : "SELECT mapid FROM $posts_table";
151
+ $result = $wpdb->get_col($sql);
152
+ return (is_array($result)) ? $result : array();
 
 
 
 
 
 
 
 
 
 
 
153
  }
154
 
155
  function save($postid) {
349
  else
350
  $html = $mappress->get_template('map_layout', array('map' => $this));
351
 
352
+ // Output map
353
+ $mappress->load();
354
+
355
+ // For static maps: prepare the pois
356
+ if (empty($this->query))
357
+ $this->prepare();
358
+
359
+ $html .= Mappress::script(array(
360
+ "mapp.data.push( " . json_encode($this) . " );",
361
+ "if (typeof mapp.load != 'undefined') { mapp.load(); };"
362
+ ));
363
+
364
+ if ($this->options->directions == 'inline') {
365
+ $html .= "<div id='{$this->name}_directions_' style='display:none'>";
366
+ $html .= $mappress->get_template($this->options->templateDirections, array('map' => $this));
367
+ $html .= "</div>";
368
+ }
369
+
370
+ // For static maps: print the poi list
371
+ if (empty($this->query) && $this->options->poiList) {
372
+ $html .= "<div id='{$this->name}_poi_list_' style='display:none'>";
373
+ $html .= $mappress->get_template($this->options->templatePoiList, array('map' => $this));
374
+ $html .= "</div>";
375
+ }
376
  return $html;
377
  }
378
 
398
  foreach($this->pois as $poi)
399
  $poi->set_html();
400
 
401
+ // Autoicons
402
+ $this->autoicons();
403
+
404
  // Last chance to alter map before display
405
  do_action('mappress_map_display', $this);
406
  }
409
  * Autoicons
410
  */
411
  function autoicons() {
412
+ global $post;
 
 
413
 
414
+ foreach ((array) Mappress::$options->autoicons as $rule) {
415
+ $rule = (object) wp_parse_args($rule, array('key' => null, 'value' => null, 'iconid' => null));
 
 
 
 
416
 
417
+ if ($rule->key == 'post_type') {
418
+ $wpq = new WP_Query(array('post_type' => $rule->value, 'fields' => 'ids', 'posts_per_page' => -1));
419
+ $postids = $wpq->posts;
420
+ } else {
421
+ $term = get_term_by('slug', $rule->value, $rule->key);
422
+ if (!is_object($term))
423
+ continue;
424
 
425
+ $objects = get_objects_in_term($term->term_id, $rule->key);
426
+ if (!is_array($objects))
427
+ continue;
428
+
429
+ $postids = array_keys(array_flip($objects));
430
+ }
431
 
432
+ // Now check each post ID to see if it's in the list of postids
433
+ $current_post = ($post) ? $post->ID : null;
434
  foreach($this->pois as &$poi) {
435
+ $postid = ($poi->postid) ? $poi->postid : $current_post;
436
+ if (in_array($postid, $postids))
437
+ $poi->iconid = $rule->iconid;
438
  }
439
  }
440
 
478
  $maps = self::get_post_map_list($postid);
479
 
480
  $actions = "<div class='mapp-m-actions'>"
481
+ . "<a href='#' class='mapp-maplist-edit'>" . __('Edit', 'mappress-google-maps-for-wordpress') . "</a> | "
482
+ . "<a href='#' class='mapp-maplist-insert'>" . __('Insert into post', 'mappress-google-maps-for-wordpress') . "</a> | "
483
+ . "<a href='#' class='mapp-maplist-delete'>" . __('Delete', 'mappress-google-maps-for-wordpress') . "</a>"
484
  . "</div>";
485
 
486
  $html = "<table class='mapp-m-map-list'>";
505
 
506
  function get_show_link($args = '') {
507
  extract(wp_parse_args($args, array(
508
+ 'text' => __('Show map', 'mappress-google-maps-for-wordpress')
509
  )));
510
 
511
  if (!$this->options->hidden)
517
 
518
  function get_center_link($args = '') {
519
  extract(wp_parse_args($args, array(
520
+ 'text' => __('Center map', 'mappress-google-maps-for-wordpress')
521
  )));
522
 
523
  $click = "{$this->name}.autoCenter(true); return false;";
526
 
527
  function get_reset_link($args = '') {
528
  extract(wp_parse_args($args, array(
529
+ 'text' => __('Reset map', 'mappress-google-maps-for-wordpress')
530
  )));
531
 
532
  $click = "{$this->name}.reset(); return false;";
535
 
536
  function get_bigger_link($args = '') {
537
  extract(wp_parse_args($args, array(
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
  )));
541
 
542
  $click = "{$this->name}.bigger(this, \"$big_text\", \"$small_text\"); return false;";
mappress_poi.php CHANGED
@@ -41,7 +41,7 @@ class Mappress_Poi extends Mappress_Obj {
41
  */
42
  function geocode($auto=true) {
43
  if (!class_exists('Mappress_Pro'))
44
- return new WP_Error('geocode', 'MapPress Pro required for geocoding', 'mappress');
45
 
46
  // If point has a lat/lng then no geocoding
47
  if (!empty($this->point['lat']) && !empty($this->point['lng'])) {
@@ -94,7 +94,7 @@ class Mappress_Poi extends Mappress_Obj {
94
  $map = $this->map();
95
 
96
  // Set title
97
- if ($map->options->mashupTitle = 'post' && $this->postid) {
98
  $post = get_post($this->postid);
99
  $this->title = $post->post_title;
100
  }
@@ -102,10 +102,12 @@ class Mappress_Poi extends Mappress_Obj {
102
  $style = ($this->postid) ? $map->options->mashupBody : 'poi';
103
 
104
  // Set body
105
- if ($map->options->mashupBody == 'post' && $this->postid)
106
- $this->body = $this->get_post_excerpt();
107
- else if ($map->options->mashupBody == 'address')
108
- $this->body = $this->get_address();
 
 
109
 
110
  // Set URL
111
  if ($this->postid && ($map->options->mashupClick == 'post' || $map->options->mashupLink))
@@ -192,9 +194,9 @@ class Mappress_Poi extends Mappress_Obj {
192
  // Directions (not available for shapes, kml)
193
  if (empty($this->type)) {
194
  if (in_array('directions_to', $links) && $map->options->directions != 'none')
195
- $a[] = $this->get_directions_link(array('to' => $this, 'text' => __('Directions to', 'mappress')));
196
  if (in_array('directions_from', $links) && $map->options->directions != 'none')
197
- $a[] = $this->get_directions_link(array('from' => $this, 'to' => '', 'text' => __('Directions from', 'mappress')));
198
  }
199
 
200
  // Zoom isn't available in poi list by default
@@ -227,7 +229,7 @@ class Mappress_Poi extends Mappress_Obj {
227
  'from' => $map->options->from,
228
  'to' => $map->options->to,
229
  'focus' => true,
230
- 'text' => __('Directions', 'mappress')
231
  )));
232
 
233
  // Convert objects to indexes, quote strings
@@ -276,7 +278,7 @@ class Mappress_Poi extends Mappress_Obj {
276
  function get_zoom_link ($args = '') {
277
  $map = $this->map();
278
  extract(wp_parse_args($args, array(
279
- 'text' => __('Zoom', 'mappress'),
280
  )));
281
 
282
  $i = array_search($this, $map->pois);
@@ -296,10 +298,11 @@ class Mappress_Poi extends Mappress_Obj {
296
  if (!$this->postid || !$map->options->thumbs)
297
  return '';
298
 
299
- if (isset($args['size']))
300
- $size = $args['size'];
301
- else
302
- $size = ($map->options->thumbSize) ? $map->options->thumbSize : array($map->options->thumbWidth, $map->options->thumbHeight);
 
303
 
304
  $html = get_the_post_thumbnail($this->postid, $size, $args);
305
 
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'])) {
94
  $map = $this->map();
95
 
96
  // Set title
97
+ if ($map->options->mashupTitle == 'post' && $this->postid) {
98
  $post = get_post($this->postid);
99
  $this->title = $post->post_title;
100
  }
102
  $style = ($this->postid) ? $map->options->mashupBody : 'poi';
103
 
104
  // Set body
105
+ if ($this->postid) {
106
+ if ($map->options->mashupBody == 'post')
107
+ $this->body = $this->get_post_excerpt();
108
+ else if ($map->options->mashupBody == 'address')
109
+ $this->body = $this->get_address();
110
+ }
111
 
112
  // Set URL
113
  if ($this->postid && ($map->options->mashupClick == 'post' || $map->options->mashupLink))
194
  // Directions (not available for shapes, kml)
195
  if (empty($this->type)) {
196
  if (in_array('directions_to', $links) && $map->options->directions != 'none')
197
+ $a[] = $this->get_directions_link(array('to' => $this, 'text' => __('Directions to', 'mappress-google-maps-for-wordpress')));
198
  if (in_array('directions_from', $links) && $map->options->directions != 'none')
199
+ $a[] = $this->get_directions_link(array('from' => $this, 'to' => '', 'text' => __('Directions from', 'mappress-google-maps-for-wordpress')));
200
  }
201
 
202
  // Zoom isn't available in poi list by default
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
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);
298
  if (!$this->postid || !$map->options->thumbs)
299
  return '';
300
 
301
+ $args = ($args) ? $args : array();
302
+ $size = ($map->options->thumbSize) ? $map->options->thumbSize : null;
303
+
304
+ if ($map->options->thumbWidth && $map->options->thumbHeight)
305
+ $args['style'] = "width: {$map->options->thumbWidth}px; height : {$map->options->thumbHeight}px;";
306
 
307
  $html = get_the_post_thumbnail($this->postid, $size, $args);
308
 
mappress_settings.php CHANGED
@@ -14,11 +14,11 @@ class Mappress_Options extends Mappress_Obj {
14
  $connect, // Connect the pois: null | 'line'
15
  $country,
16
  $css = true,
17
- $dataTables = false, // true | false | settings (defaults are: array('bFilter' => false, 'bPaginate' => false))
18
  $defaultIcon,
19
  $directions = 'google', // inline | google | none
20
  $directionsServer = 'https://maps.google.com',
21
  $directionsUnits = '',
 
22
  $draggable = true,
23
  $editable = false,
24
  $footer = true,
@@ -65,9 +65,11 @@ class Mappress_Options extends Mappress_Obj {
65
  $poiList = false,
66
  $poiZoom = 15, // Default zoom level for pois without a viewport (e.g. lat/lng pois)
67
  $postTypes = array('post', 'page'),
 
68
  $rotateControl = true,
69
  $scaleControl = false,
70
  $scrollwheel = false,
 
71
  $size = 1, // Index of default map size
72
  $sizes = array(array('width' => 300, 'height' => 300), array('width' => 425, 'height' => 350), array('width' => 640, 'height' => 480)),
73
  $sort = true, // set false to disable initial sort and use saved order
@@ -126,46 +128,46 @@ class Mappress_Settings {
126
  function admin_init() {
127
  register_setting('mappress', 'mappress_options', array($this, 'set_options'));
128
 
129
- add_settings_section('basic_settings', __('Basic Settings', 'mappress'), array($this, 'section_settings'), 'mappress');
130
- add_settings_field('postTypes', __('Post types', 'mappress'), array($this, 'set_post_types'), 'mappress', 'basic_settings');
131
- add_settings_field('autodisplay', __('Automatic map display', 'mappress'), array($this, 'set_autodisplay'), 'mappress', 'basic_settings');
132
- add_settings_field('directions', __('Directions', 'mappress'), array($this, 'set_directions'), 'mappress', 'basic_settings');
133
 
134
- add_settings_section('controls_settings', __('Map Controls', 'mappress'), array($this, 'section_settings'), 'mappress');
135
- add_settings_field('draggable', __('Draggable', 'mappress'), array($this, 'set_draggable'), 'mappress', 'controls_settings');
136
- add_settings_field('keyboard', __('Keyboard shortcuts', 'mappress'), array($this, 'set_keyboard_shortcuts'), 'mappress', 'controls_settings');
137
- add_settings_field('scrollwheel', __('Scroll wheel zoom', 'mappress'), array($this, 'set_scrollwheel'), 'mappress', 'controls_settings');
138
- add_settings_field('mapTypeIds', __('Map Types', 'mappress'), array($this, 'set_map_type_ids'), 'mappress', 'controls_settings');
139
- add_settings_field('mapControls', __('Map controls', 'mappress'), array($this, 'set_map_controls'), 'mappress', 'controls_settings');
140
 
141
- add_settings_section('appearance_settings', __('Map Settings', 'mappress'), array($this, 'section_settings'), 'mappress');
142
- add_settings_field('mapLinks', __('Map links', 'mappress'), array($this, 'set_map_links'), 'mappress', 'appearance_settings');
143
- add_settings_field('alignment', __('Map alignment', 'mappress'), array($this, 'set_alignment'), 'mappress', 'appearance_settings');
144
- add_settings_field('initialOpenInfo', __('Open first POI', 'mappress'), array($this, 'set_initial_open_info'), 'mappress', 'appearance_settings');
145
 
146
- add_settings_section('poi_settings', __('POI Settings', 'mappress'), array($this, 'section_settings'), 'mappress');
147
- add_settings_field('poiLinks', __('POI links', 'mappress'), array($this, 'set_poi_links'), 'mappress', 'poi_settings');
148
- add_settings_field('tooltips', __('Tooltips', 'mappress'), array($this, 'set_tooltips'), 'mappress', 'poi_settings');
149
- add_settings_field('poi_zoom', __('Default zoom', 'mappress'), array($this, 'set_poi_zoom'), 'mappress', 'poi_settings');
150
 
151
  if (class_exists('Mappress_Pro')) {
152
- add_settings_section('mashup_settings', __('Mashups', 'mappress'), array($this, 'section_settings'), 'mappress');
153
- add_settings_section('icons_settings', __('Icons', 'mappress'), array($this, 'section_settings'), 'mappress');
154
- add_settings_section('styled_maps_settings', __('Styled Maps', 'mappress'), array($this, 'section_settings'), 'mappress');
155
- add_settings_section('geocoding_settings', __('Geocoding', 'mappress'), array($this, 'geocoding_section'), 'mappress');
156
  }
157
 
158
- add_settings_section('localization_settings', __('Localization', 'mappress'), array($this, 'section_settings'), 'mappress');
159
- add_settings_field('language', __('Language', 'mappress'), array($this, 'set_language'), 'mappress', 'localization_settings');
160
- add_settings_field('country', __('Country', 'mappress'), array($this, 'set_country'), 'mappress', 'localization_settings');
161
- add_settings_field('directionsServer', __('Directions server', 'mappress'), array($this, 'set_directions_server'), 'mappress', 'localization_settings');
162
- add_settings_field('directionsUnits', __('Directions units', 'mappress'), array($this, 'set_directions_units'), 'mappress', 'localization_settings');
163
 
164
- add_settings_section('misc_settings', __('Miscellaneous', 'mappress'), array($this, 'section_settings'), 'mappress');
165
- add_settings_field('sizes', __('Map sizes', 'mappress'), array($this, 'set_sizes'), 'mappress', 'misc_settings');
166
- add_settings_field('adaptive', __('Adaptive display', 'mappress'), array($this, 'set_adaptive'), 'mappress', 'misc_settings');
167
- add_settings_field('footer', __('Scripts', 'mappress'), array($this, 'set_footer'), 'mappress', 'misc_settings');
168
- add_settings_field('css', __('CSS', 'mappress'), array($this, 'set_css'), 'mappress', 'misc_settings');
169
  }
170
 
171
  function set_options($input) {
@@ -215,65 +217,64 @@ class Mappress_Settings {
215
 
216
  function geocoding_section() {
217
  echo "<p>";
218
- echo __("Use the settings below to automatically create maps from custom fields.");
219
  echo "</p>";
220
  }
221
 
222
  function set_adaptive() {
223
- echo self::checkbox($this->options->adaptive, 'mappress_options[adaptive]', __("Recenter maps when window is resized", 'mappress'));
224
  }
225
 
226
- function set_post_types() {
227
- $labels = array(
228
- 'post' => __('Posts', 'mappress'),
229
- 'page' => __('Pages', 'mappress'),
230
- );
231
 
232
- $custom_post_types = get_post_types(array('show_ui' => true, '_builtin' => false), 'objects');
233
- foreach ($custom_post_types as $name => $type)
234
- $labels[$name] = $type->label;
235
- echo self::checkbox_list($this->options->postTypes, 'mappress_options[postTypes][]', $labels);
236
  return;
237
  }
238
 
239
  function set_country() {
240
  $country = $this->options->country;
241
- $cctld_link = '<a style="vertical-align:text-bottom" target="_blank" href="http://en.wikipedia.org/wiki/CcTLD#List_of_ccTLDs">' . __("country code", 'mappress') . '</a>';
242
 
243
- printf(__('Enter a %s to use when searching (leave blank for USA)', 'mappress'), $cctld_link);
244
  echo ": <input type='text' size='2' name='mappress_options[country]' value='$country' />";
245
  }
246
 
247
  function set_directions_server() {
248
  $directions_server = $this->options->directionsServer;
249
 
250
- echo __('Enter a google server URL for directions/printing', 'mappress');
251
  echo ": <input type='text' size='20' name='mappress_options[directionsServer]' value='$directions_server' />";
252
  }
253
 
254
  function set_directions_units() {
255
- $units = array('' => __('(Default)', 'mappress'), 0 => __('Metric (kilometers)', 'mappress'), 1 => __('Imperial (miles)', 'mappress'));
256
  echo self::dropdown($units, $this->options->directionsUnits, 'mappress_options[directionsUnits]');
257
  }
258
 
259
  function set_draggable() {
260
- echo self::checkbox($this->options->draggable, 'mappress_options[draggable]', __('Enable map dragging with the mouse', 'mappress'));
261
  }
262
 
263
  function set_scrollwheel() {
264
- echo self::checkbox($this->options->scrollwheel, 'mappress_options[scrollwheel]', __('Enable zoom with the mouse scroll wheel', 'mappress'));
265
  }
266
 
267
  function set_keyboard_shortcuts() {
268
- echo self::checkbox($this->options->keyboardShortcuts, 'mappress_options[keyboardShortcuts]', __('Enable keyboard panning and zooming', 'mappress'));
269
  }
270
 
271
  function set_language() {
272
  $language = $this->options->language;
273
 
274
- $lang_link = '<a style="vertical-align:text-bottom" target="_blank" href="http://code.google.com/apis/maps/faq.html#languagesupport">' . __("language", 'mappress') . '</a>';
275
 
276
- printf(__('Use a specific %s for map controls and geocoding', 'mappress'), $lang_link);
277
  echo ": <input type='text' size='2' name='mappress_options[language]' value='$language' />";
278
 
279
  }
@@ -281,16 +282,16 @@ class Mappress_Settings {
281
  function set_map_controls() {
282
 
283
  $map_type_styles = array(
284
- '0' => __('Default', 'mappress'),
285
- '1' => __('Horizontal', 'mappress'),
286
- '2' => __('Dropdown', 'mappress')
287
  );
288
 
289
  $zoom_styles = array(
290
- '0' => __('Default', 'mappress'),
291
- '1' => __('Small', 'mappress'),
292
- '2' => __('Large', 'mappress'),
293
- '4' => __('Android', 'mappress')
294
  );
295
 
296
  $map_type_control = self::checkbox($this->options->mapTypeControl, 'mappress_options[mapTypeControl]');
@@ -301,36 +302,36 @@ class Mappress_Settings {
301
  $streetview_control = self::checkbox($this->options->streetViewControl, 'mappress_options[streetViewControl]');
302
  $scale_control = self::checkbox($this->options->scaleControl, 'mappress_options[scaleControl]');
303
  $overview_map_control = self::checkbox($this->options->overviewMapControl, 'mappress_options[overviewMapControl]');
304
- $overview_map_control_opened = self::checkbox($this->options->overviewMapControlOpened, 'mappress_options[overviewMapControlOpened]', __('Open initially', 'mappress'));
305
  $transit = self::checkbox($this->options->transit, 'mappress_options[transit]');
306
- $initial_transit = self::checkbox($this->options->initialTransit, 'mappress_options[initialTransit]', __('Checked initially', 'mappress'));
307
  $traffic = self::checkbox($this->options->traffic, 'mappress_options[traffic]');
308
- $initial_traffic = self::checkbox($this->options->initialTraffic, 'mappress_options[initialTraffic]', __('Checked initially', 'mappress'));
309
  $bicycling = self::checkbox($this->options->bicycling, 'mappress_options[bicycling]');
310
- $initial_bicycling = self::checkbox($this->options->initialBicycling, 'mappress_options[initialBicycling]', __('Checked initially', 'mappress'));
311
 
312
- $headers = array(__('Control', 'mappress'), __('Enable'), __('Style', 'mappress'));
313
  $rows = array();
314
  $rows = array(
315
- array(__('Map types', 'mappress'), $map_type_control, $map_type_control_style ),
316
- array(__('Pan', 'mappress'), $pan_control, '' ),
317
- array(__('Zoom', 'mappress'), $zoom_control, $zoom_control_style ),
318
- array(__('Street view', 'mappress'), $streetview_control, '' ),
319
- array(__('Scale', 'mappress'), $scale_control, '' ),
320
- array(__('Overview map', 'mappress'), $overview_map_control, $overview_map_control_opened ),
321
- array(__('Public transit', 'mappress'), $transit, $initial_transit ),
322
- array(__('Traffic', 'mappress'), $traffic, $initial_traffic ),
323
- array(__('Bike routes', 'mappress'), $bicycling, $initial_bicycling ),
324
  );
325
  echo self::table($headers, $rows);
326
  }
327
 
328
  function set_map_type_ids() {
329
  $labels = array(
330
- 'roadmap' => __('Road map', 'mappress'),
331
- 'satellite' => __('Satellite', 'mappress'),
332
- 'terrain' => __('Terrain', 'mappress'),
333
- 'hybrid' => __('Hybrid', 'mappress'),
334
  );
335
 
336
  foreach ($this->options->styles as $name => $json)
@@ -343,48 +344,48 @@ class Mappress_Settings {
343
  $directions = $this->options->directions;
344
 
345
  $directions_types = array(
346
- 'google' => __('Google', 'mappress'),
347
- 'inline' => __('Inline', 'mappress'),
348
- 'none' => __('None', 'mappress')
349
  );
350
 
351
  echo self::radio($directions_types, $directions, 'mappress_options[directions]');
352
  }
353
 
354
  function set_initial_open_info() {
355
- echo self::checkbox($this->options->initialOpenInfo, 'mappress_options[initialOpenInfo]', __('Automatically open the first POI when a map is displayed', 'mappress'));
356
  }
357
 
358
  function set_bicycling() {
359
  echo self::checkbox($this->options->bicycling, 'mappress_options[bicycling]');
360
- _e('Show control', 'mappress');
361
 
362
  echo "&nbsp;&nbsp;";
363
  echo self::checkbox($this->options->initialBicycling, 'mappress_options[initialBicycling]');
364
- _e ('Enabled by default', 'mappress');
365
  }
366
 
367
  function set_traffic() {
368
  echo self::checkbox($this->options->traffic, 'mappress_options[traffic]');
369
- _e('Show control', 'mappress');
370
 
371
  echo "&nbsp;&nbsp;";
372
  echo self::checkbox($this->options->initialTraffic, 'mappress_options[initialTraffic]');
373
- _e ('Enabled by default', 'mappress');
374
  }
375
 
376
  function set_tooltips() {
377
- echo self::checkbox($this->options->tooltips, 'mappress_options[tooltips]', __('Show POI titles as a "tooltip" on mouse-over', 'mappress'));
378
  }
379
 
380
  function set_alignment() {
381
  $image = "<img src='" . Mappress::$baseurl . "/images/%s' style='vertical-align:middle' />";
382
 
383
  $alignments = array(
384
- '' => __('Default', 'mappress'),
385
- 'center' => sprintf($image, 'justify_center.png') . __('Center', 'mappress'),
386
- 'left' => sprintf($image, 'justify_left.png') . __('Left', 'mappress'),
387
- 'right' => sprintf($image, 'justify_right.png') . __('Right', 'mappress')
388
  );
389
 
390
  echo self::radio($alignments, $this->options->alignment, 'mappress_options[alignment]');
@@ -393,18 +394,18 @@ class Mappress_Settings {
393
 
394
  function set_map_links() {
395
  $labels = array(
396
- 'bigger' => __('Bigger map', 'mappress'),
397
- 'center' => __('Center map', 'mappress'),
398
- 'reset' => __('Reset map', 'mappress')
399
  );
400
  echo self::checkbox_list($this->options->mapLinks, 'mappress_options[mapLinks][]', $labels);
401
  }
402
 
403
  function set_poi_links() {
404
  $labels = array(
405
- 'zoom' => __('Zoom', 'mappress'),
406
- 'directions_to' => __('Directions to', 'mappress'),
407
- 'directions_from' => __('Directions from', 'mappress')
408
  );
409
  echo self::checkbox_list($this->options->poiLinks, 'mappress_options[poiLinks][]', $labels);
410
  }
@@ -412,30 +413,26 @@ class Mappress_Settings {
412
  function set_poi_zoom() {
413
  for ($i = 1; $i <= 17; $i++)
414
  $zooms[$i] = $i;
415
- echo __("Default zoom for POIs entered by lat/lng", 'mappress') . ": ";
416
  echo self::dropdown($zooms, $this->options->poiZoom, 'mappress_options[poiZoom]');
417
  }
418
 
419
  function set_autodisplay() {
420
  $autos = array(
421
- 'top' => __('Top of post', 'mappress'),
422
- 'bottom' => __('Bottom of post', 'mappress'),
423
- 'none' => __('No automatic display', 'mappress')
424
  );
425
 
426
  echo self::radio($autos, $this->options->autodisplay, "mappress_options[autodisplay]");
427
  }
428
 
429
  function set_css() {
430
- echo self::checkbox($this->options->css, 'mappress_options[css]', sprintf(__("Load %s", 'mappress'), '<code>mappress.css</code>'));
431
- }
432
-
433
- function set_footer() {
434
- echo self::checkbox($this->options->footer, 'mappress_options[footer]', __('Output scripts in footer', 'mapress'));
435
  }
436
 
437
  function set_sizes() {
438
- $headers = array(__('Default', 'mappress'), __('Width', 'mappress'), __('Height', 'mappress'));
439
  $rows = array();
440
 
441
  foreach($this->options->sizes as $i => $size) {
@@ -446,7 +443,7 @@ class Mappress_Settings {
446
  "<input type='text' size='3' name='mappress_options[sizes][$i][height]' value='{$size['height']}' />"
447
  );
448
  }
449
- echo __('Enter sizes in px or %', 'mappress') . ": <br/>";
450
  echo self::table($headers, $rows);
451
  }
452
 
@@ -456,10 +453,10 @@ class Mappress_Settings {
456
  *
457
  */
458
  function metabox_like() {
459
- $rate_link = "<a href='http://wordpress.org/extend/plugins/mappress-easy-google-maps'>" . __('Rate it 5 Stars', 'mappress') . "</a>";
460
  echo "<ul>";
461
- echo "<li>" . sprintf(__('%s on WordPress.org', 'mappress'), $rate_link) . "</li>";
462
- echo "<li>" . __('Thanks for your support!', 'mappress') . "</li>";
463
  echo "</ul>";
464
  }
465
 
@@ -486,8 +483,8 @@ class Mappress_Settings {
486
 
487
  function metabox_demo($object, $metabox) {
488
  $poi = new Mappress_Poi(array(
489
- "title" => sprintf("<a href='http://www.wphostreviews.com/mappress'>%s</a>", __("MapPress", 'mappress')),
490
- "body" => __("Easy Google Maps", 'mappress'),
491
  "point" => array('lat' => 37.370157, 'lng' => -119.333496)
492
  ));
493
  $pois = array($poi);
@@ -536,9 +533,9 @@ class Mappress_Settings {
536
  <?php
537
  // Output sidebar metaboxes
538
  if (!class_exists('Mappress_Pro'))
539
- add_meta_box('metabox_like', __('Like this plugin?', 'mappress'), array($this, 'metabox_like'), 'mappress_sidebar', 'side', 'core');
540
 
541
- add_meta_box('metabox_demo', __('Sample Map', 'mappress'), array($this, 'metabox_demo'), 'mappress_sidebar', 'side', 'core');
542
  do_meta_boxes('mappress_sidebar', 'side', null);
543
  ?>
544
  </div>
@@ -557,8 +554,8 @@ class Mappress_Settings {
557
  ?>
558
  <br/>
559
 
560
- <input name='submit' type='submit' class='button-primary' value='<?php _e("Save Changes", 'mappress'); ?>' />
561
- <input name='reset_defaults' type='submit' class='button' value='<?php _e("Reset Defaults", 'mappress'); ?>' />
562
  </form>
563
  </div>
564
  </div>
14
  $connect, // Connect the pois: null | 'line'
15
  $country,
16
  $css = true,
 
17
  $defaultIcon,
18
  $directions = 'google', // inline | google | none
19
  $directionsServer = 'https://maps.google.com',
20
  $directionsUnits = '',
21
+ $dismissed = array(),
22
  $draggable = true,
23
  $editable = false,
24
  $footer = true,
65
  $poiList = false,
66
  $poiZoom = 15, // Default zoom level for pois without a viewport (e.g. lat/lng pois)
67
  $postTypes = array('post', 'page'),
68
+ $radius = 15,
69
  $rotateControl = true,
70
  $scaleControl = false,
71
  $scrollwheel = false,
72
+ $search,
73
  $size = 1, // Index of default map size
74
  $sizes = array(array('width' => 300, 'height' => 300), array('width' => 425, 'height' => 350), array('width' => 640, 'height' => 480)),
75
  $sort = true, // set false to disable initial sort and use saved order
128
  function admin_init() {
129
  register_setting('mappress', 'mappress_options', array($this, 'set_options'));
130
 
131
+ add_settings_section('basic_settings', __('Basic Settings', 'mappress-google-maps-for-wordpress'), array($this, 'section_settings'), 'mappress');
132
+ add_settings_field('postTypes', __('Post types', 'mappress-google-maps-for-wordpress'), array($this, 'set_post_types'), 'mappress', 'basic_settings');
133
+ add_settings_field('autodisplay', __('Automatic map display', 'mappress-google-maps-for-wordpress'), array($this, 'set_autodisplay'), 'mappress', 'basic_settings');
134
+ add_settings_field('directions', __('Directions', 'mappress-google-maps-for-wordpress'), array($this, 'set_directions'), 'mappress', 'basic_settings');
135
 
136
+ add_settings_section('controls_settings', __('Map Controls', 'mappress-google-maps-for-wordpress'), array($this, 'section_settings'), 'mappress');
137
+ add_settings_field('draggable', __('Draggable', 'mappress-google-maps-for-wordpress'), array($this, 'set_draggable'), 'mappress', 'controls_settings');
138
+ add_settings_field('keyboard', __('Keyboard shortcuts', 'mappress-google-maps-for-wordpress'), array($this, 'set_keyboard_shortcuts'), 'mappress', 'controls_settings');
139
+ add_settings_field('scrollwheel', __('Scroll wheel zoom', 'mappress-google-maps-for-wordpress'), array($this, 'set_scrollwheel'), 'mappress', 'controls_settings');
140
+ add_settings_field('mapTypeIds', __('Map Types', 'mappress-google-maps-for-wordpress'), array($this, 'set_map_type_ids'), 'mappress', 'controls_settings');
141
+ add_settings_field('mapControls', __('Map controls', 'mappress-google-maps-for-wordpress'), array($this, 'set_map_controls'), 'mappress', 'controls_settings');
142
 
143
+ add_settings_section('appearance_settings', __('Map Settings', 'mappress-google-maps-for-wordpress'), array($this, 'section_settings'), 'mappress');
144
+ add_settings_field('mapLinks', __('Map links', 'mappress-google-maps-for-wordpress'), array($this, 'set_map_links'), 'mappress', 'appearance_settings');
145
+ add_settings_field('alignment', __('Map alignment', 'mappress-google-maps-for-wordpress'), array($this, 'set_alignment'), 'mappress', 'appearance_settings');
146
+ add_settings_field('initialOpenInfo', __('Open first POI', 'mappress-google-maps-for-wordpress'), array($this, 'set_initial_open_info'), 'mappress', 'appearance_settings');
147
 
148
+ add_settings_section('poi_settings', __('POI Settings', 'mappress-google-maps-for-wordpress'), array($this, 'section_settings'), 'mappress');
149
+ add_settings_field('poiLinks', __('POI links', 'mappress-google-maps-for-wordpress'), array($this, 'set_poi_links'), 'mappress', 'poi_settings');
150
+ add_settings_field('tooltips', __('Tooltips', 'mappress-google-maps-for-wordpress'), array($this, 'set_tooltips'), 'mappress', 'poi_settings');
151
+ add_settings_field('poi_zoom', __('Default zoom', 'mappress-google-maps-for-wordpress'), array($this, 'set_poi_zoom'), 'mappress', 'poi_settings');
152
 
153
  if (class_exists('Mappress_Pro')) {
154
+ add_settings_section('mashup_settings', __('Mashups', 'mappress-google-maps-for-wordpress'), array($this, 'section_settings'), 'mappress');
155
+ add_settings_section('icons_settings', __('Icons', 'mappress-google-maps-for-wordpress'), array($this, 'section_settings'), 'mappress');
156
+ add_settings_section('styled_maps_settings', __('Styled Maps', 'mappress-google-maps-for-wordpress'), array($this, 'section_settings'), 'mappress');
157
+ add_settings_section('geocoding_settings', __('Geocoding', 'mappress-google-maps-for-wordpress'), array($this, 'geocoding_section'), 'mappress');
158
  }
159
 
160
+ add_settings_section('localization_settings', __('Localization', 'mappress-google-maps-for-wordpress'), array($this, 'section_settings'), 'mappress');
161
+ add_settings_field('language', __('Language', 'mappress-google-maps-for-wordpress'), array($this, 'set_language'), 'mappress', 'localization_settings');
162
+ add_settings_field('country', __('Country', 'mappress-google-maps-for-wordpress'), array($this, 'set_country'), 'mappress', 'localization_settings');
163
+ add_settings_field('directionsServer', __('Directions server', 'mappress-google-maps-for-wordpress'), array($this, 'set_directions_server'), 'mappress', 'localization_settings');
164
+ add_settings_field('directionsUnits', __('Directions units', 'mappress-google-maps-for-wordpress'), array($this, 'set_directions_units'), 'mappress', 'localization_settings');
165
 
166
+ add_settings_section('misc_settings', __('Miscellaneous', 'mappress-google-maps-for-wordpress'), array($this, 'section_settings'), 'mappress');
167
+ add_settings_field('api_key', __('Google API key', 'mappress-google-maps-for-wordpress'), array($this, 'set_api_key'), 'mappress', 'misc_settings');
168
+ add_settings_field('sizes', __('Map sizes', 'mappress-google-maps-for-wordpress'), array($this, 'set_sizes'), 'mappress', 'misc_settings');
169
+ add_settings_field('adaptive', __('Adaptive display', 'mappress-google-maps-for-wordpress'), array($this, 'set_adaptive'), 'mappress', 'misc_settings');
170
+ add_settings_field('css', __('CSS', 'mappress-google-maps-for-wordpress'), array($this, 'set_css'), 'mappress', 'misc_settings');
171
  }
172
 
173
  function set_options($input) {
217
 
218
  function geocoding_section() {
219
  echo "<p>";
220
+ echo __("Use the settings below to automatically create maps from custom fields.", 'mappress-google-maps-for-wordpress');
221
  echo "</p>";
222
  }
223
 
224
  function set_adaptive() {
225
+ echo self::checkbox($this->options->adaptive, 'mappress_options[adaptive]', __("Recenter maps when window is resized", 'mappress-google-maps-for-wordpress'));
226
  }
227
 
228
+ function set_api_key() {
229
+ echo "<input type='text' size='50' name='mappress_options[apiKey]' value='{$this->options->apiKey}' />";
230
+ $helpurl = "<a href='http://wphostreviews.com/mappress-faq' target='_blank'>" . __('more info', 'mappress-google-maps-for-wordpress') . "</a>";
231
+ echo "<br/><i>" . sprintf(__("A Google Maps API key is required for public servers %s", 'mappress-google-maps-for-wordpress'), $helpurl) . "</i>";
232
+ }
233
 
234
+ function set_post_types() {
235
+ $post_types = Mappress_Controls::get_Post_types();
236
+ echo self::checkbox_list($this->options->postTypes, 'mappress_options[postTypes][]', $post_types);
 
237
  return;
238
  }
239
 
240
  function set_country() {
241
  $country = $this->options->country;
242
+ $cctld_link = '<a style="vertical-align:text-bottom" target="_blank" href="http://en.wikipedia.org/wiki/CcTLD#List_of_ccTLDs">' . __("country code", 'mappress-google-maps-for-wordpress') . '</a>';
243
 
244
+ printf(__('Enter a %s to use when searching (leave blank for USA)', 'mappress-google-maps-for-wordpress'), $cctld_link);
245
  echo ": <input type='text' size='2' name='mappress_options[country]' value='$country' />";
246
  }
247
 
248
  function set_directions_server() {
249
  $directions_server = $this->options->directionsServer;
250
 
251
+ echo __('Enter a google server URL for directions/printing', 'mappress-google-maps-for-wordpress');
252
  echo ": <input type='text' size='20' name='mappress_options[directionsServer]' value='$directions_server' />";
253
  }
254
 
255
  function set_directions_units() {
256
+ $units = array('' => __('(Default)', 'mappress-google-maps-for-wordpress'), 0 => __('Metric (kilometers)', 'mappress-google-maps-for-wordpress'), 1 => __('Imperial (miles)', 'mappress-google-maps-for-wordpress'));
257
  echo self::dropdown($units, $this->options->directionsUnits, 'mappress_options[directionsUnits]');
258
  }
259
 
260
  function set_draggable() {
261
+ echo self::checkbox($this->options->draggable, 'mappress_options[draggable]', __('Enable map dragging with the mouse', 'mappress-google-maps-for-wordpress'));
262
  }
263
 
264
  function set_scrollwheel() {
265
+ echo self::checkbox($this->options->scrollwheel, 'mappress_options[scrollwheel]', __('Enable zoom with the mouse scroll wheel', 'mappress-google-maps-for-wordpress'));
266
  }
267
 
268
  function set_keyboard_shortcuts() {
269
+ echo self::checkbox($this->options->keyboardShortcuts, 'mappress_options[keyboardShortcuts]', __('Enable keyboard panning and zooming', 'mappress-google-maps-for-wordpress'));
270
  }
271
 
272
  function set_language() {
273
  $language = $this->options->language;
274
 
275
+ $lang_link = '<a style="vertical-align:text-bottom" target="_blank" href="http://code.google.com/apis/maps/faq.html#languagesupport">' . __("language", 'mappress-google-maps-for-wordpress') . '</a>';
276
 
277
+ printf(__('Use a specific %s for map controls and geocoding', 'mappress-google-maps-for-wordpress'), $lang_link);
278
  echo ": <input type='text' size='2' name='mappress_options[language]' value='$language' />";
279
 
280
  }
282
  function set_map_controls() {
283
 
284
  $map_type_styles = array(
285
+ '0' => __('Default', 'mappress-google-maps-for-wordpress'),
286
+ '1' => __('Horizontal', 'mappress-google-maps-for-wordpress'),
287
+ '2' => __('Dropdown', 'mappress-google-maps-for-wordpress')
288
  );
289
 
290
  $zoom_styles = array(
291
+ '0' => __('Default', 'mappress-google-maps-for-wordpress'),
292
+ '1' => __('Small', 'mappress-google-maps-for-wordpress'),
293
+ '2' => __('Large', 'mappress-google-maps-for-wordpress'),
294
+ '4' => __('Android', 'mappress-google-maps-for-wordpress')
295
  );
296
 
297
  $map_type_control = self::checkbox($this->options->mapTypeControl, 'mappress_options[mapTypeControl]');
302
  $streetview_control = self::checkbox($this->options->streetViewControl, 'mappress_options[streetViewControl]');
303
  $scale_control = self::checkbox($this->options->scaleControl, 'mappress_options[scaleControl]');
304
  $overview_map_control = self::checkbox($this->options->overviewMapControl, 'mappress_options[overviewMapControl]');
305
+ $overview_map_control_opened = self::checkbox($this->options->overviewMapControlOpened, 'mappress_options[overviewMapControlOpened]', __('Open initially', 'mappress-google-maps-for-wordpress'));
306
  $transit = self::checkbox($this->options->transit, 'mappress_options[transit]');
307
+ $initial_transit = self::checkbox($this->options->initialTransit, 'mappress_options[initialTransit]', __('Checked initially', 'mappress-google-maps-for-wordpress'));
308
  $traffic = self::checkbox($this->options->traffic, 'mappress_options[traffic]');
309
+ $initial_traffic = self::checkbox($this->options->initialTraffic, 'mappress_options[initialTraffic]', __('Checked initially', 'mappress-google-maps-for-wordpress'));
310
  $bicycling = self::checkbox($this->options->bicycling, 'mappress_options[bicycling]');
311
+ $initial_bicycling = self::checkbox($this->options->initialBicycling, 'mappress_options[initialBicycling]', __('Checked initially', 'mappress-google-maps-for-wordpress'));
312
 
313
+ $headers = array(__('Control', 'mappress-google-maps-for-wordpress'), __('Enable', 'mappress-google-maps-for-wordpress'), __('Style', 'mappress-google-maps-for-wordpress'));
314
  $rows = array();
315
  $rows = array(
316
+ array(__('Map types', 'mappress-google-maps-for-wordpress'), $map_type_control, $map_type_control_style ),
317
+ array(__('Pan', 'mappress-google-maps-for-wordpress'), $pan_control, '' ),
318
+ array(__('Zoom', 'mappress-google-maps-for-wordpress'), $zoom_control, $zoom_control_style ),
319
+ array(__('Street view', 'mappress-google-maps-for-wordpress'), $streetview_control, '' ),
320
+ array(__('Scale', 'mappress-google-maps-for-wordpress'), $scale_control, '' ),
321
+ array(__('Overview map', 'mappress-google-maps-for-wordpress'), $overview_map_control, $overview_map_control_opened ),
322
+ array(__('Public transit', 'mappress-google-maps-for-wordpress'), $transit, $initial_transit ),
323
+ array(__('Traffic', 'mappress-google-maps-for-wordpress'), $traffic, $initial_traffic ),
324
+ array(__('Bike routes', 'mappress-google-maps-for-wordpress'), $bicycling, $initial_bicycling ),
325
  );
326
  echo self::table($headers, $rows);
327
  }
328
 
329
  function set_map_type_ids() {
330
  $labels = array(
331
+ 'roadmap' => __('Road map', 'mappress-google-maps-for-wordpress'),
332
+ 'satellite' => __('Satellite', 'mappress-google-maps-for-wordpress'),
333
+ 'terrain' => __('Terrain', 'mappress-google-maps-for-wordpress'),
334
+ 'hybrid' => __('Hybrid', 'mappress-google-maps-for-wordpress'),
335
  );
336
 
337
  foreach ($this->options->styles as $name => $json)
344
  $directions = $this->options->directions;
345
 
346
  $directions_types = array(
347
+ 'google' => __('Google', 'mappress-google-maps-for-wordpress'),
348
+ 'inline' => __('Inline', 'mappress-google-maps-for-wordpress'),
349
+ 'none' => __('None', 'mappress-google-maps-for-wordpress')
350
  );
351
 
352
  echo self::radio($directions_types, $directions, 'mappress_options[directions]');
353
  }
354
 
355
  function set_initial_open_info() {
356
+ echo self::checkbox($this->options->initialOpenInfo, 'mappress_options[initialOpenInfo]', __('Automatically open the first POI when a map is displayed', 'mappress-google-maps-for-wordpress'));
357
  }
358
 
359
  function set_bicycling() {
360
  echo self::checkbox($this->options->bicycling, 'mappress_options[bicycling]');
361
+ _e('Show control', 'mappress-google-maps-for-wordpress');
362
 
363
  echo "&nbsp;&nbsp;";
364
  echo self::checkbox($this->options->initialBicycling, 'mappress_options[initialBicycling]');
365
+ _e ('Enabled by default', 'mappress-google-maps-for-wordpress');
366
  }
367
 
368
  function set_traffic() {
369
  echo self::checkbox($this->options->traffic, 'mappress_options[traffic]');
370
+ _e('Show control', 'mappress-google-maps-for-wordpress');
371
 
372
  echo "&nbsp;&nbsp;";
373
  echo self::checkbox($this->options->initialTraffic, 'mappress_options[initialTraffic]');
374
+ _e ('Enabled by default', 'mappress-google-maps-for-wordpress');
375
  }
376
 
377
  function set_tooltips() {
378
+ echo self::checkbox($this->options->tooltips, 'mappress_options[tooltips]', __('Show POI titles as a "tooltip" on mouse-over', 'mappress-google-maps-for-wordpress'));
379
  }
380
 
381
  function set_alignment() {
382
  $image = "<img src='" . Mappress::$baseurl . "/images/%s' style='vertical-align:middle' />";
383
 
384
  $alignments = array(
385
+ '' => __('Default', 'mappress-google-maps-for-wordpress'),
386
+ 'center' => sprintf($image, 'justify_center.png') . __('Center', 'mappress-google-maps-for-wordpress'),
387
+ 'left' => sprintf($image, 'justify_left.png') . __('Left', 'mappress-google-maps-for-wordpress'),
388
+ 'right' => sprintf($image, 'justify_right.png') . __('Right', 'mappress-google-maps-for-wordpress')
389
  );
390
 
391
  echo self::radio($alignments, $this->options->alignment, 'mappress_options[alignment]');
394
 
395
  function set_map_links() {
396
  $labels = array(
397
+ 'bigger' => __('Bigger map', 'mappress-google-maps-for-wordpress'),
398
+ 'center' => __('Center map', 'mappress-google-maps-for-wordpress'),
399
+ 'reset' => __('Reset map', 'mappress-google-maps-for-wordpress')
400
  );
401
  echo self::checkbox_list($this->options->mapLinks, 'mappress_options[mapLinks][]', $labels);
402
  }
403
 
404
  function set_poi_links() {
405
  $labels = array(
406
+ 'zoom' => __('Zoom', 'mappress-google-maps-for-wordpress'),
407
+ 'directions_to' => __('Directions to', 'mappress-google-maps-for-wordpress'),
408
+ 'directions_from' => __('Directions from', 'mappress-google-maps-for-wordpress')
409
  );
410
  echo self::checkbox_list($this->options->poiLinks, 'mappress_options[poiLinks][]', $labels);
411
  }
413
  function set_poi_zoom() {
414
  for ($i = 1; $i <= 17; $i++)
415
  $zooms[$i] = $i;
416
+ echo __("Default zoom for POIs entered by lat/lng", 'mappress-google-maps-for-wordpress') . ": ";
417
  echo self::dropdown($zooms, $this->options->poiZoom, 'mappress_options[poiZoom]');
418
  }
419
 
420
  function set_autodisplay() {
421
  $autos = array(
422
+ 'top' => __('Top of post', 'mappress-google-maps-for-wordpress'),
423
+ 'bottom' => __('Bottom of post', 'mappress-google-maps-for-wordpress'),
424
+ 'none' => __('No automatic display', 'mappress-google-maps-for-wordpress')
425
  );
426
 
427
  echo self::radio($autos, $this->options->autodisplay, "mappress_options[autodisplay]");
428
  }
429
 
430
  function set_css() {
431
+ echo self::checkbox($this->options->css, 'mappress_options[css]', sprintf(__("Load %s", 'mappress-google-maps-for-wordpress'), '<code>mappress.css</code>'));
 
 
 
 
432
  }
433
 
434
  function set_sizes() {
435
+ $headers = array(__('Default', 'mappress-google-maps-for-wordpress'), __('Width', 'mappress-google-maps-for-wordpress'), __('Height', 'mappress-google-maps-for-wordpress'));
436
  $rows = array();
437
 
438
  foreach($this->options->sizes as $i => $size) {
443
  "<input type='text' size='3' name='mappress_options[sizes][$i][height]' value='{$size['height']}' />"
444
  );
445
  }
446
+ echo __('Enter sizes in px or %', 'mappress-google-maps-for-wordpress') . ": <br/>";
447
  echo self::table($headers, $rows);
448
  }
449
 
453
  *
454
  */
455
  function metabox_like() {
456
+ $rate_link = "<a href='http://wordpress.org/extend/plugins/mappress-easy-google-maps'>" . __('Rate it 5 Stars', 'mappress-google-maps-for-wordpress') . "</a>";
457
  echo "<ul>";
458
+ echo "<li>" . sprintf(__('%s on WordPress.org', 'mappress-google-maps-for-wordpress'), $rate_link) . "</li>";
459
+ echo "<li>" . __('Thanks for your support!', 'mappress-google-maps-for-wordpress') . "</li>";
460
  echo "</ul>";
461
  }
462
 
483
 
484
  function metabox_demo($object, $metabox) {
485
  $poi = new Mappress_Poi(array(
486
+ "title" => "<a href='http://www.wphostreviews.com/mappress'>MapPress</a>",
487
+ "body" => __("Easy Google Maps", 'mappress-google-maps-for-wordpress'),
488
  "point" => array('lat' => 37.370157, 'lng' => -119.333496)
489
  ));
490
  $pois = array($poi);
533
  <?php
534
  // Output sidebar metaboxes
535
  if (!class_exists('Mappress_Pro'))
536
+ add_meta_box('metabox_like', __('Like this plugin?', 'mappress-google-maps-for-wordpress'), array($this, 'metabox_like'), 'mappress_sidebar', 'side', 'core');
537
 
538
+ add_meta_box('metabox_demo', __('Sample Map', 'mappress-google-maps-for-wordpress'), array($this, 'metabox_demo'), 'mappress_sidebar', 'side', 'core');
539
  do_meta_boxes('mappress_sidebar', 'side', null);
540
  ?>
541
  </div>
554
  ?>
555
  <br/>
556
 
557
+ <input name='submit' type='submit' class='button-primary' value='<?php _e("Save Changes", 'mappress-google-maps-for-wordpress'); ?>' />
558
+ <input name='reset_defaults' type='submit' class='button' value='<?php _e("Reset Defaults", 'mappress-google-maps-for-wordpress'); ?>' />
559
  </form>
560
  </div>
561
  </div>
mappress_updater.php CHANGED
@@ -16,7 +16,7 @@ class Mappress_Updater {
16
  }
17
 
18
  function plugin_action_links($links, $file) {
19
- $settings_link = "<a href='" . admin_url("options-general.php?page={$this->plugin_name}") . "'>" . __('Settings') . "</a>";
20
  array_unshift( $links, $settings_link );
21
  return $links;
22
  }
@@ -38,12 +38,12 @@ class Mappress_Updater {
38
  }
39
 
40
  function after_plugin_row_pro($value) {
41
- $pro_link = "<a href='$this->pro_url'>" . __('download it now', 'mappress') . "</a>";
42
 
43
  echo '<tr class="plugin-update-tr">'
44
  . '<td colspan="3" class="plugin-update">'
45
  . '<div class="update-message">'
46
- . sprintf(__("A PRO Version update is available for manual installation: %s", 'mappress'), $pro_link)
47
  . '</div>'
48
  . '</td></tr>';
49
  }
16
  }
17
 
18
  function plugin_action_links($links, $file) {
19
+ $settings_link = "<a href='" . admin_url("options-general.php?page={$this->plugin_name}") . "'>" . __('Settings', 'mappress-google-maps-for-wordpress') . "</a>";
20
  array_unshift( $links, $settings_link );
21
  return $links;
22
  }
38
  }
39
 
40
  function after_plugin_row_pro($value) {
41
+ $pro_link = "<a href='$this->pro_url'>" . __('download it now', 'mappress-google-maps-for-wordpress') . "</a>";
42
 
43
  echo '<tr class="plugin-update-tr">'
44
  . '<td colspan="3" class="plugin-update">'
45
  . '<div class="update-message">'
46
+ . sprintf(__("A PRO Version update is available for manual installation: %s", 'mappress-google-maps-for-wordpress'), $pro_link)
47
  . '</div>'
48
  . '</td></tr>';
49
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: chrisvrichardson
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4339298
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.3
7
- Stable tag: 2.43.4
8
 
9
  MapPress is the most popular and easiest way to create great-looking Google Maps and driving directions in your blog.
10
 
@@ -64,6 +64,7 @@ Please [Contact me](http://wphostreviews.com/chris-contact) if you'd like to pro
64
  * Hungarian
65
  * Italian
66
  * Russian
 
67
  * Simplified Chinese
68
  * Spanish
69
  * Swedish
@@ -94,6 +95,33 @@ See full [installation intructions and Documentation](http://www.wphostreviews.c
94
 
95
  == Changelog ==
96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  2.43.4
98
  =
99
  * Added: check for jQuery version
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4339298
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.43.8
8
 
9
  MapPress is the most popular and easiest way to create great-looking Google Maps and driving directions in your blog.
10
 
64
  * Hungarian
65
  * Italian
66
  * Russian
67
+ * Serbian - Ogi of firstsiteguide.com
68
  * Simplified Chinese
69
  * Spanish
70
  * Swedish
95
 
96
  == Changelog ==
97
 
98
+ 2.43.8
99
+ =
100
+ * Added: API key checks updated to support Google policy change on 6/22/2016
101
+ * Added: automatic icons can now be set by post type as well as by taxonomy
102
+ * Changed: KML/KMZ overlays and polygons are no longer included in mashup results
103
+ * Changed: map can now display in AJAX calls from other plugins (infinite scrollers, etc.)
104
+ * Changed: new map loader for compatibility with plugins/themes that cause jQuery .ready errors
105
+ * Changed: text domain changed for compatibility with WordPress language packs
106
+ * Changed: support for translate.wordpress.org - language (.mo/.po) files renamed with new plugin slug for language packs
107
+ * Changed: datatables support has been removed
108
+ * Changed: widget now uses WP 4.3 constructor / anonymous function
109
+ * Fixed: a Google API change broke 'my location' in directions and map editor
110
+
111
+ 2.43.7
112
+ * Fixed: mashups ignoring mashupTitle="poi" and always showing post title (since 2.43.4)
113
+
114
+ 2.43.6
115
+ =
116
+ * Added: language support for mashup queries
117
+ * Fixed: mashups with query="all" or "current" returned no results from 2.43.2
118
+ * Fixed: AJAX error when adding autoicons
119
+ * Fixed: thumbnail size is output as a style for better infobox sizing
120
+
121
+ 2.43.5
122
+ =
123
+ * Changed: restored 'adaptive' setting
124
+
125
  2.43.4
126
  =
127
  * Added: check for jQuery version
templates/map_directions.php CHANGED
@@ -1,19 +1,19 @@
1
  <form action='#'>
2
  <div>
3
- <a href='#' class='mapp-travelmode mapp-travelmode-on' title='<?php esc_html_e('By car', 'mappress'); ?>'><span class='mapp-dir-icon mapp-dir-car'></span></a>
4
- <a href='#' class='mapp-travelmode' title='<?php esc_html_e('Public Transit', 'mappress'); ?>'><span class='mapp-dir-icon mapp-dir-transit'></span></a>
5
- <a href='#' class='mapp-travelmode' title='<?php esc_html_e('Walking', 'mappress'); ?>'><span class='mapp-dir-icon mapp-dir-walk'></span></a>
6
- <a href='#' class='mapp-travelmode' title='<?php esc_html_e('Bicycling', 'mappress'); ?>'><span class='mapp-dir-icon mapp-dir-bike'></span></a>
7
  </div>
8
 
9
 
10
  <div class='mapp-route'>
11
- <a href='#' class='mapp-myloc'><?php _e('My location', 'mappress'); ?></a>
12
 
13
  <div>
14
  <span class='mapp-dir-icon mapp-dir-a'></span>
15
  <input class='mapp-dir-saddr' tabindex='1'/>
16
- <a href='#' class='mapp-dir-swap'><span class='mapp-dir-icon mapp-dir-arrows' title='<?php _e ('Swap start and end', 'mappress'); ?>'></span></a>
17
 
18
  </div>
19
  <div class='mapp-dir-saddr-err'></div>
@@ -26,9 +26,9 @@
26
  </div>
27
 
28
  <div style='margin-top: 10px;'>
29
- <input type='submit' class='mapp-dir-get' value='<?php esc_html_e('Get Directions', 'mappress'); ?>'/>
30
- <a href='#' class='mapp-dir-print'><?php _e('Print', 'mappress'); ?></a>
31
- &nbsp;<a href='#' class='mapp-dir-close'><?php _e('Close', 'mappress'); ?></a>
32
  <span class='mapp-spinner' style='display:none'></span>
33
  </div>
34
  </form>
1
  <form action='#'>
2
  <div>
3
+ <a href='#' class='mapp-travelmode mapp-travelmode-on' title='<?php esc_html_e('By car', 'mappress-google-maps-for-wordpress'); ?>'><span class='mapp-dir-icon mapp-dir-car'></span></a>
4
+ <a href='#' class='mapp-travelmode' title='<?php esc_html_e('Public Transit', 'mappress-google-maps-for-wordpress'); ?>'><span class='mapp-dir-icon mapp-dir-transit'></span></a>
5
+ <a href='#' class='mapp-travelmode' title='<?php esc_html_e('Walking', 'mappress-google-maps-for-wordpress'); ?>'><span class='mapp-dir-icon mapp-dir-walk'></span></a>
6
+ <a href='#' class='mapp-travelmode' title='<?php esc_html_e('Bicycling', 'mappress-google-maps-for-wordpress'); ?>'><span class='mapp-dir-icon mapp-dir-bike'></span></a>
7
  </div>
8
 
9
 
10
  <div class='mapp-route'>
11
+ <a href='#' class='mapp-myloc'><?php _e('My location', 'mappress-google-maps-for-wordpress'); ?></a>
12
 
13
  <div>
14
  <span class='mapp-dir-icon mapp-dir-a'></span>
15
  <input class='mapp-dir-saddr' tabindex='1'/>
16
+ <a href='#' class='mapp-dir-swap'><span class='mapp-dir-icon mapp-dir-arrows' title='<?php _e ('Swap start and end', 'mappress-google-maps-for-wordpress'); ?>'></span></a>
17
 
18
  </div>
19
  <div class='mapp-dir-saddr-err'></div>
26
  </div>
27
 
28
  <div style='margin-top: 10px;'>
29
+ <input type='submit' class='mapp-dir-get' value='<?php esc_html_e('Get Directions', 'mappress-google-maps-for-wordpress'); ?>'/>
30
+ <a href='#' class='mapp-dir-print'><?php _e('Print', 'mappress-google-maps-for-wordpress'); ?></a>
31
+ &nbsp;<a href='#' class='mapp-dir-close'><?php _e('Close', 'mappress-google-maps-for-wordpress'); ?></a>
32
  <span class='mapp-spinner' style='display:none'></span>
33
  </div>
34
  </form>
templates/map_poi_list.php CHANGED
@@ -1,10 +1,4 @@
1
  <table style='width:100%'>
2
- <thead>
3
- <tr>
4
- <th></th>
5
- <th><?php _e('Location', 'mappress');?></th>
6
- </tr>
7
- </thead>
8
  <tbody>
9
  <?php foreach($map->pois as $poi) : ?>
10
  <?php if ($poi->type == 'kml') continue; ?>
1
  <table style='width:100%'>
 
 
 
 
 
 
2
  <tbody>
3
  <?php foreach($map->pois as $poi) : ?>
4
  <?php if ($poi->type == 'kml') continue; ?>