From: Steve Sutton Date: Wed, 13 Jun 2018 16:58:05 +0000 (-0400) Subject: Updating the member list view file for no profile flag in profiles. X-Git-Tag: v1.0.27^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=b574c1e4bd5c1d5dad426931d4adb7f65c959f1a;p=WP-Themes%2Fwmta.git Updating the member list view file for no profile flag in profiles. New flag in member profile for no profile page. Which turns off linking to the profile page on front. --- diff --git a/glm-member-db/views/front/members/list.html b/glm-member-db/views/front/members/list.html index 5ffa399..4688e14 100644 --- a/glm-member-db/views/front/members/list.html +++ b/glm-member-db/views/front/members/list.html @@ -136,7 +136,7 @@ {/if}
- {if $settings.list_map_show_detaillink} + {if $settings.list_map_show_detaillink && !$m.has_no_profile} {$m.member_name} {else} {$m.member_name} @@ -152,7 +152,7 @@ {if $m.city}{$m.city}{if $m.state}, {/if}{/if}{if $m.state}{$m.state}{/if}{if $m.zip} {$m.zip}{/if} {/if} {if $m.country && $settings.list_map_show_country} -
{$m.country} + {$m.country} {/if}

{/if} {*list_map_show_address*} @@ -216,14 +216,12 @@
@@ -336,7 +322,7 @@ {apply_filters('glm-member-db-front-members-list-memberInfoTop', '', $member.member_pointer)}

- {if $settings.list_show_detail_link} + {if $settings.list_show_detail_link && !$member.has_no_profile.value} {$member.member} {else} {$member.member} @@ -571,6 +557,7 @@ //} {if $mapItems} + var markers = []; {foreach $mapItems as $m} {if $m.lat != 0 && $m.lon != 0} @@ -580,7 +567,7 @@ position: new google.maps.LatLng({$m.lat}, {$m.lon}), draggable: false, animation: google.maps.Animation.DROP, - title: '{$m.member|escape}', + title: '{$m.member_name|escape:quotes}', descr: $('#map_info_' + {$m.id}).html(), memberID: {$m.member} }); @@ -593,12 +580,24 @@ infowindow.open(map,this); }); + markers.push(marker); + // Extend the map bounds to include this marker bounds.extend(marker.position); {/if} {/foreach} + {if $settings.use_cluster_markers} + var markerCluster = new MarkerClusterer(map, markers, + { + imagePath: '{$baseUrl}/js/googleMapsMarkerClusterer/images/m', + gridSize: 30, + maxZoom: 14, + minimunClusterSize: 3 + }); + {/if} + // Fit map to bounds of all markers map.fitBounds(bounds); diff --git a/style.css b/style.css index 6bf1b43..61f6799 100644 --- a/style.css +++ b/style.css @@ -4,7 +4,7 @@ Theme URI: http://underscores.me/ Author: Underscores.me Author URI: http://underscores.me/ Description: Description -Version: 1.0.26 +Version: 1.0.27 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: wmta