mailto on list & 'county' word added
authorLaury GvR <laury@gaslightmedia.com>
Fri, 13 Jan 2017 15:51:20 +0000 (10:51 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 13 Jan 2017 15:51:20 +0000 (10:51 -0500)
Added mailto to the email link on contact list. Added the word
'county' to the end of county display on contact list.

models/front/contacts/list.php
views/front/contacts/list.html

index 17f1544..7fc8898 100644 (file)
@@ -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 "<pre>" . print_r($countyList, true) . "</pre>";
             $haveCounties = true;
         }
 //        
index 16789c8..2a3a216 100644 (file)
@@ -39,7 +39,6 @@ and open the template in the editor.
             </div>
         </div>
         
-        
         <br clear="all">
 
         <p><b>Total found:</b> {$numbContacts}&nbsp;&nbsp;</p>
@@ -49,7 +48,6 @@ and open the template in the editor.
             <input type="Submit" name="pageSelect" value="Next {$limit} Contacts" class="button button-secondary glm-button"{if !$nextStart} disabled{/if}>
         {/if}    
 
-
         {if $haveContacts}
             {foreach $contactsList as $contact}
             <div class="glm-member-list-container glm-member-container small-12 columns">
@@ -58,9 +56,7 @@ and open the template in the editor.
                         <h4 class="glm-member-title">
                             {$contact.lname}, {$contact.fname}
                         </h4>
-
                         <div class="row glm-contact-info">
-                            
                             <div class="small-6 columns">
                                 {if $contact.title}<div class="glm-contact-info-title">{$contact.title}</div>{/if}
                                 {if $contact.ref_type.name}
@@ -78,45 +74,14 @@ and open the template in the editor.
                                     {if $contact.state.name}<span class="glm-contact-info-state">{$contact.state.name}</span>{/if}
                                     {if $contact.zip}<span class="glm-contact-info-zip">{$contact.zip}</span>{/if}
                                 </div>{/if}
-                                {if $contact.county}<div class="glm-contact-info-county">{$contact.county}</div>{/if}
+                                {if $contact.county}<div class="glm-contact-info-county">{$contact.county} county</div>{/if}
                             </div>
                             <div class="small-6 columns">
                                 {if $contact.office_phone}<div class="glm-contact-info-phone">{$contact.office_phone}</div>{/if}
                                 {if $contact.fax}<div class="glm-contact-info-fax">{$contact.fax}</div>{/if}
-                                {if $contact.email}<div class="glm-contact-info-email">Email: {$contact.email}</div>{/if}
-                            </div>
-                            
-<!--//                        title                   phone
-//                            MEMBER                  fax
-//                            Address: Rd              Email: email(linked)
-//                            Address: City, St ZIP
-//                            county County-->
-
-                            
+                                {if $contact.email}<div class="glm-contact-info-email">Email: <a href="mailto:{$contact.email}" target="_top">{$contact.email}</a></div>{/if}
+                            </div>   
                         </div>
-<!--                            <div class="glm-shrink">Active: {$contact.active.name}</div>-->
-<!--                            <div class="glm-shrink">Primary: {if $contact.primary_contact.value}Yes{/if}</div>
-                            {if $contact.contact_type.name}<div>Type: {$contact.contact_type.name}</div>{/if}
-                            {if $contact.access.name}<div class="glm-shrink">Access: {$contact.access.name}</div>{/if}
-                            {if $contact.username}<div class="glm-nowrap">User: {$contact.username}</div>{/if}-->
-                            
-
-                            <div class="glm-member-list-address-wrapper">
-                                <!-- 
-                                addr1
-                                addr2
-                                city
-                                state.value
-                                zip
-                                country.name
-                                phone
-                                toll_free
-                                region
-                                member_pointer
-                                term_webcam_cap
-
-                                -->
-                            </div>
                     </div>
                 </div>
             </div>
@@ -129,15 +94,7 @@ and open the template in the editor.
             <input type="Submit" name="pageSelect" value="Next {$limit} Contacts" class="button button-secondary glm-button"{if !$nextStart} disabled{/if}>
         {/if}
     </form>
-<!-- Start Member List Copy -->
-
-
-<!-- End Member List Copy -->
-
-
-
-
-          
+     
     <script type="text/javascript">
         jQuery(document).ready(function($) {