From 7de7a7e37fce6c3945d15c5f1ce4a3f7a13f75c1 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 15 May 2018 16:25:15 -0400 Subject: [PATCH] Update the member directory Adding the custom fields phone fax and using company and position --- .../views/front/contacts/list.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/glm-member-db-contacts/views/front/contacts/list.html b/glm-member-db-contacts/views/front/contacts/list.html index b36b7c4..6c30c60 100644 --- a/glm-member-db-contacts/views/front/contacts/list.html +++ b/glm-member-db-contacts/views/front/contacts/list.html @@ -126,11 +126,10 @@ and open the template in the editor.
- {if $contact.office_phone}
Work: {$contact.office_phone}
{/if} - {if $contact.home_phone}
Home: {$contact.home_phone}
{/if} - {if $contact.mobile_phone}
Mobile: {$contact.mobile_phone}
{/if} - {if $contact.alt_phone}
Alternate: {$contact.alt_phone}
{/if} - {if $contact.fax}
Fax: {$contact.fax}
{/if} + {$phone = apply_filters( 'glm_custom_fields', 'Phone on Website', $contact.id )} + {if $phone}
Phone: {$phone}
{/if} + {$fax = apply_filters( 'glm_custom_fields', 'Fax on Website', $contact.id )} + {if $fax}
Fax: {$fax}
{/if} {$email = apply_filters( 'glm_custom_fields', 'Email on Website', $contact.id )} {if $email}
Email: {$email}
{/if} @@ -138,8 +137,10 @@ and open the template in the editor. {if $contact.url}{/if}
- {if $contact.org}
Organization: {$contact.org}
{/if} - {if $contact.descr}
Position & Responsibilities: {$contact.descr}
{/if} + {$company = apply_filters( 'glm_custom_fields', 'Company Position', $contact.id )} + {if $company}
Company Name: {$company}
{/if} + {$position = apply_filters( 'glm_custom_fields', 'Company Name', $contact.id )} + {if $position}
Company Position: {$position}
{/if}
-- 2.17.1