From eba3df29be046ed4c6ca72b64d13d1d9350eaa1c Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 24 Apr 2019 14:20:02 -0400 Subject: [PATCH] Updating front end Use first then last name and place CGCS next to name. Use only the organization section (not contact info) Add Spouse custom field to the bottom of phone and website section. --- .../views/front/contacts/list.html | 60 +++++++++---------- 1 file changed, 28 insertions(+), 32 deletions(-) diff --git a/glm-member-db-contacts/views/front/contacts/list.html b/glm-member-db-contacts/views/front/contacts/list.html index 7383be1..1edf980 100644 --- a/glm-member-db-contacts/views/front/contacts/list.html +++ b/glm-member-db-contacts/views/front/contacts/list.html @@ -79,14 +79,14 @@ and open the template in the editor.
- {if $contact.image} + {if $contact.image && $settings.enable_profile_image}
{else}
{/if}

- {$contact.lname}, {$contact.fname} + {$contact.fname} {$contact.lname}{if $cgcs == 'Yes'}, CGCS{/if}

@@ -106,40 +106,27 @@ and open the template in the editor. {$contact_mobile_phone=""} {$contact_office_phone=""} {$cgcs = apply_filters( 'glm_custom_fields', 'CGCS?', $contact.id )} - {if $contact.contact_publish.value == true } - {$contact_fname=$contact.fname} - {$contact_lname=$contact.lname} - {$contact_addr1=$contact.addr1} - {$contact_addr2=$contact.addr2} - {$contact_city=$contact.city} - {$contact_state=$contact.state} - {$contact_zip=$contact.zip} - {$contact_phone=$contact.home_phone} - {$contact_mobile_phone=$contact.home_phone} - {$contact_email=$contact.alt_email} - {else if $contact.business_publish.value == true} - {$contact_fname=$contact.business_fname} - {$contact_lname=$contact.business_lname} - {$contact_addr1=$contact.business_addr1} - {$contact_addr2=$contact.business_addr2} - {$contact_city=$contact.business_city} - {$contact_state=$contact.business_state} - {$contact_zip=$contact.business_zip} - {$contact_phone=$contact.business_phone} - {$contact_office_phone=$contact.office_phone} - {$contact_mobile_phone=$contact.business_mobile} - {$contact_fax=$contact.fax} - {$contact_email=$contact.business_email} - {$contact_url=$contact.url} - {$contact_org=$contact.org} - {$contact_title=$contact.title} - {/if} + {$contact_fname=$contact.business_fname} + {$contact_lname=$contact.business_lname} + {$contact_addr1=$contact.business_addr1} + {$contact_addr2=$contact.business_addr2} + {$contact_city=$contact.business_city} + {$contact_state=$contact.business_state} + {$contact_zip=$contact.business_zip} + {$contact_phone=$contact.business_phone} + {$contact_office_phone=$contact.office_phone} + {$contact_mobile_phone=$contact.business_mobile} + {$contact_fax=$contact.fax} + {$contact_email=$contact.business_email} + {$contact_url=$contact.url} + {$contact_org=$contact.org} + {$contact_title=$contact.title} {if $contact.business_publish.value == true && $contact.contact_publish.value != true}
{if $contact_title}
- {$contact_title}{if $cgcs == 'Yes'}, CGCS{/if} + {$contact_title}
{/if} @@ -233,10 +220,19 @@ and open the template in the editor.
{/if} + {$spouse = apply_filters( 'glm_custom_fields', 'Spouse', $contact.id )} + {if $spouse} +
+ Spouse + + {$spouse} + +
+ {/if}
- {if $contact.image} + {if $contact.image && $settings.enable_profile_image}
-- 2.17.1