From: Laury GvR Date: Thu, 7 Jun 2018 20:23:59 +0000 (-0400) Subject: markup adjustments to contact list X-Git-Tag: v1.0.0^2~11 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=4e3f2f2339ace15849019bbd27302454d9ee8347;p=WP-Themes%2Fharborpointassociation2018.git markup adjustments to contact list Cottage #-sign added. Summer/winter address more selective about whether to show up (will now even if only state is filled in, for example). Fixed some br tag placement --- diff --git a/glm-member-db-contacts/views/front/contacts/list.html b/glm-member-db-contacts/views/front/contacts/list.html index 1e4a9e6..e341142 100644 --- a/glm-member-db-contacts/views/front/contacts/list.html +++ b/glm-member-db-contacts/views/front/contacts/list.html @@ -84,10 +84,11 @@ and open the template in the editor. {if apply_filters('glm_custom_fields', 'cottage', $contact.id)}
- Cottage:  + Cottage #:  {apply_filters('glm_custom_fields', 'cottage', $contact.id)}
{/if} + {if $contact.addr1 || $contact.addr2 || $contact.city.name || $contact.state.name || $contact.zip}
Summer Address:
{if $contact.addr1}{$contact.addr1}
{/if} @@ -95,14 +96,21 @@ and open the template in the editor. {if $contact.city.name}{$contact.city.name},{/if} {if $contact.state.name}{$contact.state.name}{/if} {if $contact.zip}{$contact.zip}{/if} - {if $contact.office_phone}
Summer Phone: {$contact.office_phone}{/if} - {if $contact.fax}
{$contact.fax}
{/if}
- - {if apply_filters('glm_custom_fields', 'winter address', $contact.id)} + {/if} + {if $contact.office_phone}Summer Phone: {$contact.office_phone}{/if} + {if $contact.fax}{$contact.fax}{/if} + {if apply_filters('glm_custom_fields', 'winter address', $contact.id) + || apply_filters('glm_custom_fields', 'winter address 2', $contact.id) + || apply_filters('glm_custom_fields', 'winter city', $contact.id) + || apply_filters('glm_custom_fields', 'winter state', $contact.id) + || apply_filters('glm_custom_fields', 'winter zip', $contact.id) + }
Winter Address: 
- {apply_filters('glm_custom_fields', 'winter address', $contact.id)}
+ {if apply_filters('glm_custom_fields', 'winter address', $contact.id)} + {apply_filters('glm_custom_fields', 'winter address', $contact.id)}
+ {/if} {if apply_filters('glm_custom_fields', 'winter address 2', $contact.id)} {apply_filters('glm_custom_fields', 'winter address', $contact.id)}
{/if}