From 17d74f84383a41c58850579cf3031e458fd1da99 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 8 Aug 2018 15:20:21 -0400 Subject: [PATCH] Update for new filters for fields plugin. New filter for the updates to custom fields plugin. --- .../views/front/contacts/list.html | 52 +++++++++++-------- 1 file changed, 29 insertions(+), 23 deletions(-) diff --git a/glm-member-db-contacts/views/front/contacts/list.html b/glm-member-db-contacts/views/front/contacts/list.html index f0d3fd7..19bb22b 100644 --- a/glm-member-db-contacts/views/front/contacts/list.html +++ b/glm-member-db-contacts/views/front/contacts/list.html @@ -230,13 +230,13 @@ and open the template in the editor. {/if} - {if $contact.country} + {if $contact.country.name}
Country - {$contact.country} + {$contact.country.name}
{/if} @@ -337,17 +337,17 @@ and open the template in the editor. {/if} - {if $contact.business_city} + {if $contact.business_city.name}
City - {$contact.business_city} + {$contact.business_city.name}
{/if} - {if $contact.business_state} + {if $contact.business_state.name}
State @@ -367,13 +367,13 @@ and open the template in the editor.
{/if} - {if $contact.business_country} + {if $contact.business_country.name}
Country - {$contact.business_country} + {$contact.business_country.name}
{/if} @@ -429,23 +429,29 @@ and open the template in the editor. {/if} - + {/if}
-

Custom Information

+

+ {apply_filters('get_glm_custom_field_tab_name', 'Custom Fields')} +

- {$customFields = apply_filters('get_glm_custom_fields','glm-member-db',$contact.id)} - - {if !empty($customFields[0].field_data)} - {foreach $customFields as $field} - {if $field.field_data} -
-
- {$field.field_name} - {$field.field_data} -
- -
+ {$customFieldGroups = apply_filters('get_glm_custom_grouped_fields','glm-member-db-contacts',$contact.id)} + + {if $customFieldGroups} + {foreach $customFieldGroups as $customFields} + {if !empty($customFields[0].field_data)} + {foreach $customFields as $field} + {if $field.field_data} +
+
+ {$field.field_name} + {$field.field_data} +
+ +
+ {/if} + {/foreach} {/if} {/foreach} {/if} @@ -486,7 +492,7 @@ and open the template in the editor. } else { $(this).text("Hide full profile"); } - myProfile.toggleClass("expanded"); + myProfile.toggleClass("expanded"); }); $('.hide-contact-full-profile').on('click', function() { $(this).parent().toggleClass("expanded"); @@ -494,4 +500,4 @@ and open the template in the editor. }); }); - \ No newline at end of file + -- 2.17.1