From: Laury GvR Date: Fri, 13 Jan 2017 15:51:20 +0000 (-0500) Subject: mailto on list & 'county' word added X-Git-Tag: v1.0.19^2~13 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=f0a30ef16f954812aa6ae74a36f3d5c0b21fe18f;p=WP-Plugins%2Fglm-member-db-contacts.git mailto on list & 'county' word added Added mailto to the email link on contact list. Added the word 'county' to the end of county display on contact list. --- diff --git a/models/front/contacts/list.php b/models/front/contacts/list.php index 17f1544..7fc8898 100644 --- a/models/front/contacts/list.php +++ b/models/front/contacts/list.php @@ -304,7 +304,6 @@ class GlmMembersFront_contacts_list extends GlmDataContacts // Get a list of counties $countyList = $this->wpdb->get_col("SELECT DISTINCT county FROM ".GLM_MEMBERS_CONTACTS_PLUGIN_DB_PREFIX . "contacts WHERE active = true;"); if ($countyList[0]) { - echo "
" . print_r($countyList, true) . "
"; $haveCounties = true; } // diff --git a/views/front/contacts/list.html b/views/front/contacts/list.html index 16789c8..2a3a216 100644 --- a/views/front/contacts/list.html +++ b/views/front/contacts/list.html @@ -39,7 +39,6 @@ and open the template in the editor. -

Total found: {$numbContacts}  

@@ -49,7 +48,6 @@ and open the template in the editor. {/if} - {if $haveContacts} {foreach $contactsList as $contact}
@@ -58,9 +56,7 @@ and open the template in the editor.

{$contact.lname}, {$contact.fname}

-
-
{if $contact.title}
{$contact.title}
{/if} {if $contact.ref_type.name} @@ -78,45 +74,14 @@ and open the template in the editor. {if $contact.state.name}{$contact.state.name}{/if} {if $contact.zip}{$contact.zip}{/if}
{/if} - {if $contact.county}
{$contact.county}
{/if} + {if $contact.county}
{$contact.county} county
{/if}
{if $contact.office_phone}
{$contact.office_phone}
{/if} {if $contact.fax}
{$contact.fax}
{/if} - {if $contact.email}
Email: {$contact.email}
{/if} -
- - - - + {if $contact.email}{/if} +
- - - - -
- -
@@ -129,15 +94,7 @@ and open the template in the editor. {/if} - - - - - - - - - +