diff --git a/crouton.php b/crouton.php index 078e31a..a7c870f 100644 --- a/crouton.php +++ b/crouton.php @@ -5,7 +5,7 @@ Description: A tabbed based display for showing meeting information. Author: bmlt-enabled Author URI: https://bmlt.app -Version: 3.18.3 +Version: 3.18.4 */ /* Disallow direct access to the plugin file */ if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { diff --git a/croutonjs/src/js/crouton-core.js b/croutonjs/src/js/crouton-core.js index fc89038..67d1168 100644 --- a/croutonjs/src/js/crouton-core.js +++ b/croutonjs/src/js/crouton-core.js @@ -1335,7 +1335,10 @@ Crouton.prototype.render = function(doMeetingMap = false) { jQuery("#bmlt-map").removeClass("hide"); } if (self.config['map_page'] && !doMeetingMap) { - croutonMap.initialize('byfield_embeddedMapPage', self.meetingData); + if (self.meetingData.filter(m => m.venue_type != 2).length==0) { + jQuery('#filterButton_embeddedMapPage').addClass('hide'); + } + else croutonMap.initialize('byfield_embeddedMapPage', self.meetingData); } if (self.config['refresh_map']) { croutonMap.refreshMeetings(self.meetingData, true, true); diff --git a/readme.txt b/readme.txt index 3e77e94..f4e6c14 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: na, meeting list, meeting finder, maps, recovery, addiction, webservant, b Requires at least: 4.0 Required PHP: 8.0 Tested up to: 6.4.2 -Stable tag: 3.18.3 +Stable tag: 3.18.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html crouton implements a Tabbed UI for BMLT. @@ -36,6 +36,9 @@ https://demo.bmlt.app/crouton == Changelog == += 3.18.4 = +* Do not embed map page when list contains only online meetings (fix for bug #460). + = 3.18.3 = * Added min_zoom and max_zoom to the shortcode. * Changed default template to bring up meeting details rather than going directly to google.