From: Laury GvR Date: Wed, 8 Aug 2018 19:56:34 +0000 (-0400) Subject: Fixed display of top fields in contact list view X-Git-Tag: v1.0.19^2~29 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=1937b92f8236c7bae74473e8b912744e03254123;p=WP-Themes%2Fmigcsa.git Fixed display of top fields in contact list view --- diff --git a/glm-member-db-contacts/views/front/contacts/list.html b/glm-member-db-contacts/views/front/contacts/list.html index 19bb22b..40b2acf 100644 --- a/glm-member-db-contacts/views/front/contacts/list.html +++ b/glm-member-db-contacts/views/front/contacts/list.html @@ -92,7 +92,6 @@ and open the template in the editor.
{if $contact.primary_contact.value == true} - {if $contact.title}
{$contact.title}
{/if} {if $contacts_with_subs !== false} {foreach $contacts_with_subs as $contact_with_subs} @@ -127,20 +126,29 @@ and open the template in the editor.
{$phone = apply_filters( 'glm_custom_fields', 'Phone on Website', $contact.id )} - {if $phone}
Phone: {$phone}
{/if} + {if $phone}
Phone {$phone}
{/if} {$fax = apply_filters( 'glm_custom_fields', 'Fax on Website', $contact.id )} - {if $fax}
Fax: {$fax}
{/if} + {if $fax}
Fax {$fax}
{/if} {$email = apply_filters( 'glm_custom_fields', 'Email on Website', $contact.id )} - {if $email}
Email: {$email}
{/if} - {if $contact.alt_email}{/if} - {if $contact.url}{/if} + {if $email}
Email {$email}
{/if} + {if $contact.alt_email}{/if} + {if $contact.url}{/if}
- {$company = apply_filters( 'glm_custom_fields', 'Company Name', $contact.id )} - {if $company}
Company Name: {$company}
{/if}a - {$position = apply_filters( 'glm_custom_fields', 'Company Position', $contact.id )} - {if $position}
Company Position: {$position}
{/if} + + {if $contact.org + }
+ Company Name + {$contact.org} +
+ {/if} + {if $contact.title} +
+ Company Position + {$contact.title} +
+ {/if}
@@ -275,7 +283,7 @@ and open the template in the editor. {/if} {if $contact.business_publish.value == true}
-

Organization/Company Information

+

Organization / Company Information

{if $contact.org}
@@ -432,26 +440,20 @@ and open the template in the editor. {/if}
-

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

+

{ get_option("glm_field_contact_tab_name")'}>

- {$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} + {$customFields = apply_filters('get_glm_custom_fields','glm-member-db-contacts',$contact.id)} + + {if !empty($customFields[0].field_data)} + {foreach $customFields as $field} + {if $field.field_data} +
+
+ {$field.field_name} + {$field.field_data} +
+ +
{/if} {/foreach} {/if}