Google Maps CP - Version 1.0.41

Version Description

  • Fixes a conflict with third-party plugins.
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Google Maps CP
Version 1.0.41
Comparing to
See all releases

Code changes from version 1.0.39 to 1.0.41

Files changed (4) hide show
  1. codepeople-post-map.php +1 -1
  2. js/cpm.js +11 -2
  3. readme.txt +9 -1
  4. styles/cpm-styles.css +1 -0
codepeople-post-map.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Google Maps CP
4
  Text Domain: codepeople-post-map
5
- Version: 1.0.39
6
  Author: CodePeople
7
  Author URI: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
8
  Plugin URI: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
2
  /*
3
  Plugin Name: Google Maps CP
4
  Text Domain: codepeople-post-map
5
+ Version: 1.0.41
6
  Author: CodePeople
7
  Author URI: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
8
  Plugin URI: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
js/cpm.js CHANGED
@@ -391,5 +391,14 @@ function CodePeoplePostMapPublic()
391
  });
392
  }
393
 
394
- if( typeof jQuery == 'undefined' ) setTimeout( function(){ CodePeoplePostMapPublic() }, 1000 );
395
- else CodePeoplePostMapPublic();
 
 
 
 
 
 
 
 
 
391
  });
392
  }
393
 
394
+ window.addEventListener("load", function(event){
395
+ function CodePeoplePostMapRun()
396
+ {
397
+ if(!('BorlabsCookie' in window) || window.BorlabsCookie.checkCookieConsent('googlemaps'))
398
+ setTimeout(CodePeoplePostMapPublic,300);
399
+ }
400
+
401
+ CodePeoplePostMapRun();
402
+ document.addEventListener('borlabs-cookie-code-unblocked-after-consent', function(){CodePeoplePostMapRun();});
403
+
404
+ });
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: codepeople
3
  Donate link: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
4
  Tags:google maps,maps,marker,gmap,places,shortcode,map,categories,post map,point,location,address,images,geocoder,google,shape,list,grouping,cluster,infowindow,route,pin,streetview,post,posts,pages,widget,image,exif tag,plugin,sidebar,stylize,admin
5
  Requires at least: 3.0.5
6
- Tested up to: 5.8
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -636,6 +636,14 @@ Now the most important part create the shape's area. To create the shape's area
636
 
637
  == Changelog ==
638
 
 
 
 
 
 
 
 
 
639
  = 1.0.39 =
640
 
641
  * Includes three new filters, cmp-point, cpm-point-infowindow-template, and cpm-point-infowindow, to edit the attributes of the point, modify the infowindows template, and edit the generated infowindows, respectively.
3
  Donate link: http://wordpress.dwbooster.com/content-tools/codepeople-post-map
4
  Tags:google maps,maps,marker,gmap,places,shortcode,map,categories,post map,point,location,address,images,geocoder,google,shape,list,grouping,cluster,infowindow,route,pin,streetview,post,posts,pages,widget,image,exif tag,plugin,sidebar,stylize,admin
5
  Requires at least: 3.0.5
6
+ Tested up to: 5.9
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
636
 
637
  == Changelog ==
638
 
639
+ = 1.0.41 =
640
+
641
+ * Fixes a conflict with third-party plugins.
642
+
643
+ = 1.0.40 =
644
+
645
+ * Implements the integration with Borlabs Cookie to block Google Maps until the cookies are accepted.
646
+
647
  = 1.0.39 =
648
 
649
  * Includes three new filters, cmp-point, cpm-point-infowindow-template, and cpm-point-infowindow, to edit the attributes of the point, modify the infowindows template, and edit the generated infowindows, respectively.
styles/cpm-styles.css CHANGED
@@ -7,6 +7,7 @@
7
 
8
  body .content .cpm-map img, .cpm-map img{ max-width: none !important; height: auto !important; background: none !important;border:0 !important;margin:0;padding:0;}
9
  .cpm-map *{box-sizing:content-box;-moz-box-sizing:content-box;}
 
10
  .cpm-mapicon { width:20px; height:34px; cursor:pointer;background:url(../images/icons/marker.png) no-repeat 0 0; }
11
  .cpm-infowindow {margin:0; padding:0px; min-height:80px; font-size:11px; clear:both;}
12
  .cpm-infowindow .cpm-content {width:100%; color:black; padding:10px; box-sizing: border-box;}
7
 
8
  body .content .cpm-map img, .cpm-map img{ max-width: none !important; height: auto !important; background: none !important;border:0 !important;margin:0;padding:0;}
9
  .cpm-map *{box-sizing:content-box;-moz-box-sizing:content-box;}
10
+ .cpm-map .cpm-map-container+.cpm-map-container{display: none !important;}
11
  .cpm-mapicon { width:20px; height:34px; cursor:pointer;background:url(../images/icons/marker.png) no-repeat 0 0; }
12
  .cpm-infowindow {margin:0; padding:0px; min-height:80px; font-size:11px; clear:both;}
13
  .cpm-infowindow .cpm-content {width:100%; color:black; padding:10px; box-sizing: border-box;}