Updating the member list view file.
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 13 Jun 2018 17:48:23 +0000 (13:48 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 13 Jun 2018 17:48:23 +0000 (13:48 -0400)
Needed changes for new member profile flag has_no_profile.

glm-member-db/views/front/members/list.html
style.css

index 235cb2e..3db21ce 100644 (file)
@@ -152,15 +152,6 @@ Search Terms:
     {apply_filters('glm-member-db-front-members-list-listHeaderTop', '')}
 
 
-<!-- <div id="glm-member-list-terms">{$terms.term_member_plur_cap} found: {$membersFound}<br></div>-->
- {if $settings.list_show_list && !$blankStart}
-<!--    {if $settings.list_header_text}
-        <h3 class="glm-member-db-list-header-title">{$settings.list_header_text}</h3>
-    {else}
-        <h3 class="glm-member-db-list-header-title">List of {$terms.term_member_plur_cap}</h3>
-    {/if}-->
-    {if $haveMembers}
-
      <!-- Member information displayed in map bubbles -->
         {foreach $mapItems as $m}
             <div id="map_info_{$m.id}" class="glm-hidden">
@@ -171,7 +162,7 @@ Search Terms:
                     </div>
                 {/if}
                 <div class="glm-map-member-name">
-                    {if $settings.list_map_show_detaillink}
+                    {if $settings.list_map_show_detaillink && !$m.has_no_profile}
                         <a href="{$siteBaseUrl}{$settings.canonical_member_page}/{$m.member_slug}/{if $settings.enable_multiple_profiles}{$m.id}/{/if}">{$m.member_name}</a>
                     {else}
                         {$m.member_name}
@@ -187,7 +178,7 @@ Search Terms:
                             {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}
-                            <br>{$m.country}
+                            {$m.country}
                         {/if}
                     </p>
                 {/if} {*list_map_show_address*}
@@ -240,6 +231,17 @@ Search Terms:
             </div> <!-- End of information displayed in map bubbles -->
         {/foreach}
 
+ {if $settings.list_show_list && !$blankStart}
+    {if $settings.list_header_text}
+        <h3 class="glm-member-db-list-header-title">{$settings.list_header_text}</h3>
+    {else}
+        <h3 class="glm-member-db-list-header-title">List of {$terms.term_member_plur_cap}</h3>
+    {/if}
+    {if $haveMembers}
+
+
+        <div id="glm-member-list-terms">{$terms.term_member_plur_cap} found: {$membersFound}<br></div>
+
         {apply_filters('glm-member-db-front-members-list-listHeaderBottom', '')}
 
      <!-- Member information displayed in list -->
@@ -285,7 +287,7 @@ Search Terms:
 
                         </h4>
 
-                    {if $settings.list_show_detail_link}
+                    {if $settings.list_show_detail_link && !$member.has_no_profile.value}
                     <a class="glm-member-list-image-wrapper" href="{$siteBaseUrl}{$settings.canonical_member_page}/{$member.member_slug}/">
                     {/if}
 
@@ -420,7 +422,7 @@ Search Terms:
  <!-- Member name, address, and basic information -->
                     {apply_filters('glm-member-db-front-members-list-memberInfoTop', '', $member.member_pointer)}
                     <h4 class="glm-member-title">
-                        {if $settings.list_show_detail_link}
+                        {if $settings.list_show_detail_link && !$member.has_no_profile.value}
                             <a href="{$siteBaseUrl}{$settings.canonical_member_page}/{$member.member_slug}/{if $settings.enable_multiple_profiles}{$member.id}/{/if}?expanded=images">{$member.member}</a>
                         {else}
                             {$member.member}
@@ -696,7 +698,9 @@ Search Terms:
                             //});
                         //}
 
-                {if $haveMembers}
+
+                {if $mapItems}
+                    var markers = [];
                     {foreach $mapItems as $m}
                       {if $m.lat != 0 && $m.lon != 0}
 
@@ -706,7 +710,7 @@ Search Terms:
                             position: new google.maps.LatLng({$m.lat}, {$m.lon}),
                             draggable: false,
                             animation: google.maps.Animation.DROP,
-                            title: '{$m.name|escape:'quotes'}',
+                            title: '{$m.member_name|escape:quotes}',
                             descr: $('#map_info_' + {$m.id}).html(),
                             memberID: {$m.member}
                         });
@@ -719,12 +723,24 @@ Search Terms:
                             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);
 
index 82d682d..3a764b3 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: MichiganTrailMaps
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for MichiganTrailMaps
-Version: 1.0.13
+Version: 1.0.14
 */