adding contact info to the event detail page
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 12 Jul 2017 15:47:18 +0000 (11:47 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 12 Jul 2017 15:47:18 +0000 (11:47 -0400)
adding a check for event contact info data before displaying the contact info section. uncommenting
the contact info on the detail page in the theme template file for event detail

glm-member-db-events/views/front/events/detail.html

index 7e9238f..b331bb5 100644 (file)
                             <div id="glm-event-detail-registrations"><a target="_blank" href="{$event.registration_url}"><strong>Registration</strong></a></div>
                             {/if}
 
-<!--
+                           {if $event.contact_name || $event.url || $event.contact_email || $event.contact_phone || $event.file1}
                             <div id="glm-event-detail-contact"><strong>Contact & More Info</strong><br>
                                 {if $event.url}<a href="{$event.url}" target="_blank">{$event.url}</a><br>{/if}
                                 {if $event.contact_name}Contact: {$event.contact_name}<br>{/if}
                                     <a href="{$filePathUrl}{$event.file3}">{if $event.file3_descr}{$event.file3_descr}{else}{$event.file3}{/if}</a>
                                 </div>
                             {/if}
-                            </div>
--->{if $event.locations}
+                        </div>
+                          {/if}
+                           {if $event.locations}
                             <div class="event-google-map small-10 small-centered medium-5 medium-uncentered columns">
                                 {if $event.locations.lat && $event.locations.address}
                                     <div id="eventDetailMap">