From 249e1205e35ad20ad6b461c784d75b22e1ac6ff0 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 10 Aug 2018 05:55:35 -0400 Subject: [PATCH] Updating address section remove labels and put contact info stuff in top and not combine the other fields. --- .../views/front/contacts/list.html | 81 +++++++++++-------- 1 file changed, 49 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 a3743ae..5de1efb 100644 --- a/glm-member-db-contacts/views/front/contacts/list.html +++ b/glm-member-db-contacts/views/front/contacts/list.html @@ -88,6 +88,11 @@ and open the template in the editor.

{$contact.lname}, {$contact.fname} + {$cgsc = apply_filters( 'glm_custom_fields', 'CGCS', $contact.id )} + {if $cgsc == 'Yes'} + , CGSC + {/if} +

{$contact_fname=""} @@ -134,6 +139,33 @@ and open the template in the editor. {$contact_org=$contact.org} {$contact_title=$contact.title} {/if} + {if $contact.business_publish.value == true && $contact.contact_publish.value != true} +
+ {if $contact.org} +
+ {$contact.org} +
+ {/if} + {if $contact_title} +
+ {$contact_title} +
+ {/if} +
+ {else if $contact.contact_publish.value == true} +
+ {if $contact.mailing_address_type} +
+ {$contact.mailing_address_type} +
+ {/if} + {if $contact.mailto_label} +
+ {$contact.mailto_label} +
+ {/if} +
+ {/if}
{if $contact.primary_contact.value == true} @@ -143,7 +175,14 @@ and open the template in the editor. {if $contact_with_subs["id"] == $contact.id && "subs"|array_key_exists:$contact_with_subs} {foreach $contact_with_subs["subs"] as $contact_sub} -
{$contact_sub["title"]}{$contact_sub["fname"]} {$contact_sub["lname"]}
+
+ + {$contact_sub["title"]}{$contact_sub["fname"]} {$contact_sub["lname"]} + {$cgcs = apply_filters( 'glm_custom_fields', 'CGCS', $contact.id )} + {$contact.id} + {$cgcs|var_dump} + +
{/foreach} {/if} {/foreach} @@ -179,7 +218,7 @@ and open the template in the editor. {$contact_email}
{/if} - + {if $contact_url}
Website @@ -189,20 +228,6 @@ and open the template in the editor.
{/if}
-
- {if $contact.org} -
- Company Name - {$contact_org} -
- {/if} - {if $contact_title} -
- Company Position - {$contact_title} -
- {/if} -
{if $contact.image} @@ -215,9 +240,9 @@ and open the template in the editor.
See full profile
- - -
+ + +
{if $contact.business_publish.value == true && $contact.contact_publish.value == true}
@@ -225,29 +250,21 @@ and open the template in the editor.
{if $contact.business_fname}
- - First Name - - {$contact.business_fname} + {$contact.business_lname} + {if $contact.business_lname}, {$contact.business_fname} {/if}
{/if} - {if $contact.business_lname} + {if $contact.org}
- - Last Name - - {$contact.business_lname} + {$contact.org}
{/if} {if $contact.title}
- - Title - {$contact.title} @@ -297,7 +314,7 @@ and open the template in the editor.
{/if} - + {if $customFieldGroups}

-- 2.17.1