MapPress Easy Google Maps - Version 2.84.8

Version Description

  • Fixed: complianz not working
Download this release

Release Info

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

Code changes from version 2.84.7 to 2.84.8

languages/mappress-google-maps-for-wordpress.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the MapPress Maps for WordPress plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: MapPress Maps for WordPress 2.84.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-10-21T20:09:37+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
 
2
  # This file is distributed under the same license as the MapPress Maps for WordPress plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: MapPress Maps for WordPress 2.84.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-10-25T19:16:52+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
 
mappress.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.mappresspro.com
5
  Author URI: https://www.mappresspro.com
6
  Pro Update URI: https://www.mappresspro.com
7
  Description: MapPress makes it easy to add Google and Leaflet Maps to WordPress
8
- Version: 2.84.7
9
  Author: Chris Richardson
10
  Text Domain: mappress-google-maps-for-wordpress
11
  Thanks to all the translators and to Scott DeJonge for his wonderful icons
@@ -41,7 +41,7 @@ if (is_dir(dirname( __FILE__ ) . '/pro')) {
41
  }
42
 
43
  class Mappress {
44
- const VERSION = '2.84.7';
45
 
46
  static
47
  $api,
5
  Author URI: https://www.mappresspro.com
6
  Pro Update URI: https://www.mappresspro.com
7
  Description: MapPress makes it easy to add Google and Leaflet Maps to WordPress
8
+ Version: 2.84.8
9
  Author: Chris Richardson
10
  Text Domain: mappress-google-maps-for-wordpress
11
  Thanks to all the translators and to Scott DeJonge for his wonderful icons
41
  }
42
 
43
  class Mappress {
44
+ const VERSION = '2.84.8';
45
 
46
  static
47
  $api,
mappress_compliance.php CHANGED
@@ -2,7 +2,7 @@
2
  class Mappress_Compliance {
3
 
4
  static function register() {
5
- if (Mappress::is_plugin_active('complianz'))
6
  self::complianz();
7
  }
8
 
@@ -11,13 +11,14 @@ class Mappress_Compliance {
11
  define('CMPLZ_GOOGLE_MAPS_INTEGRATION_ACTIVE', true);
12
 
13
  add_filter('cmplz_known_script_tags', array(__CLASS__, 'cmplz_script'));
14
- add_filter('cmplz_detected_services', array(__CLASS__, 'cmplz_detected_services'));
 
15
  add_filter('cmplz_whitelisted_script_tags', array(__CLASS__, 'cmplz_whitelist'));
16
- add_action('cmplz_banner_css', array(__CLASS__, 'cmplz_css'));
17
  }
18
 
19
  static function cmplz_script( $tags ) {
20
  if (Mappress::$options->iframes) {
 
21
  $tags[] = array(
22
  'name' => 'mappress iframes',
23
  'urls' => array(
@@ -26,48 +27,43 @@ class Mappress_Compliance {
26
  'category' => 'marketing',
27
  'iframe' => 1,
28
  );
29
- } else {
 
 
 
30
  $tags[] = array(
31
  'name' => 'mappress',
32
  'category' => 'marketing',
33
  'urls' => array(
34
- 'mappress-google-maps-for-wordpress/build/index_mappress',
35
  'maps.googleapis.com',
36
  ),
37
  'enable_placeholder' => 1,
38
  'placeholder' => 'google-maps',
39
  'placeholder_class' => 'mapp-wrapper',
40
- 'enable_dependency' => 1,
41
- 'dependency' => [
42
- 'maps.googleapis.com' => 'index_mappress.js',
43
- ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  );
45
  }
46
  return $tags;
47
  }
48
 
49
- // Add custom CSS - moved to mappress.css
50
- static function cmplz_css() {
51
- return;
52
- ?>
53
- .mapp-layout > .cmplz-placeholder-element {
54
- height: auto !important;
55
- }
56
- .mapp-layout.mapp-has-iframe iframe,
57
- .mapp-layout.mapp-has-iframe div.cmplz-blocked-content-container,
58
- .mapp-layout.mapp-has-iframe [data-placeholder_class_index] {
59
- border: none;
60
- height: 100%;
61
- max-height: none !important; /* 2021 restricts */
62
- overflow: hidden;
63
- position: absolute;
64
- top: 0; left: 0; bottom: 0; right: 0;
65
- width: 100%;
66
- z-index: 1;
67
- }
68
- <?php
69
- }
70
-
71
  // Add services to the list of detected items, so it will get set as default, and will be added to the notice about it
72
  static function cmplz_services( $services ) {
73
  if ( ! in_array( 'google-maps', $services ) )
2
  class Mappress_Compliance {
3
 
4
  static function register() {
5
+ if (Mappress::is_plugin_active('complianz') || defined('cmplz_premium') )
6
  self::complianz();
7
  }
8
 
11
  define('CMPLZ_GOOGLE_MAPS_INTEGRATION_ACTIVE', true);
12
 
13
  add_filter('cmplz_known_script_tags', array(__CLASS__, 'cmplz_script'));
14
+
15
+ add_filter('cmplz_detected_services', array(__CLASS__, 'cmplz_services'));
16
  add_filter('cmplz_whitelisted_script_tags', array(__CLASS__, 'cmplz_whitelist'));
 
17
  }
18
 
19
  static function cmplz_script( $tags ) {
20
  if (Mappress::$options->iframes) {
21
+ // Iframes
22
  $tags[] = array(
23
  'name' => 'mappress iframes',
24
  'urls' => array(
27
  'category' => 'marketing',
28
  'iframe' => 1,
29
  );
30
+ }
31
+
32
+ else if (Mappress::$options->engine == 'google') {
33
+ // Google
34
  $tags[] = array(
35
  'name' => 'mappress',
36
  'category' => 'marketing',
37
  'urls' => array(
38
+ 'build/index_mappress',
39
  'maps.googleapis.com',
40
  ),
41
  'enable_placeholder' => 1,
42
  'placeholder' => 'google-maps',
43
  'placeholder_class' => 'mapp-wrapper',
44
+ 'enable_dependency' => true,
45
+ 'dependency' => ['maps.googleapis.com' => 'index_mappress.js']
46
+ );
47
+ } else {
48
+ // Leaflet
49
+ $tags[] = array(
50
+ 'name' => 'mappress',
51
+ 'category' => 'marketing',
52
+ 'urls' => array(
53
+ 'build/index_mappress',
54
+ 'leaflet.js',
55
+ 'leaflet-omnivore.min.js'
56
+ ),
57
+ 'enable_placeholder' => 1,
58
+ 'placeholder' => 'google-maps',
59
+ 'placeholder_class' => 'mapp-wrapper',
60
+ 'enable_dependency' => true,
61
+ 'dependency' => ['leaflet.js' => 'index_mappress.js']
62
  );
63
  }
64
  return $tags;
65
  }
66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  // Add services to the list of detected items, so it will get set as default, and will be added to the notice about it
68
  static function cmplz_services( $services ) {
69
  if ( ! in_array( 'google-maps', $services ) )
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: maps, google maps, map, map markers, google map, leaflet maps, leaflet map
5
  Requires at least: 5.3
6
  Requires PHP: 5.6
7
  Tested up to: 6.1
8
- Stable tag: 2.84.7
9
 
10
  == Description ==
11
  MapPress is the easiest way to add beautiful interactive Google and Leaflet maps to WordPress.
@@ -89,6 +89,9 @@ Please see the plugin documentation pages:
89
 
90
  == Changelog ==
91
 
 
 
 
92
  = 2.84.7 =
93
  * Fixed: patch in 2.84.6 caused geocoding to fail when adding markers and opening popups
94
  * Fixed: JavaScript not executing inside popup templates
5
  Requires at least: 5.3
6
  Requires PHP: 5.6
7
  Tested up to: 6.1
8
+ Stable tag: 2.84.8
9
 
10
  == Description ==
11
  MapPress is the easiest way to add beautiful interactive Google and Leaflet maps to WordPress.
89
 
90
  == Changelog ==
91
 
92
+ = 2.84.8 =
93
+ * Fixed: complianz not working
94
+
95
  = 2.84.7 =
96
  * Fixed: patch in 2.84.6 caused geocoding to fail when adding markers and opening popups
97
  * Fixed: JavaScript not executing inside popup templates