From: Steve Sutton Date: Tue, 15 May 2018 20:25:15 +0000 (-0400) Subject: Update the member directory X-Git-Tag: v1.0.13^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=7de7a7e37fce6c3945d15c5f1ce4a3f7a13f75c1;p=WP-Themes%2Fmigcsa.git Update the member directory Adding the custom fields phone fax and using company and position --- 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}