From 6e62de599b35cb1fbdc996b16f9dbfcc522af4cf Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 13 Mar 2017 16:13:10 -0400 Subject: [PATCH] Update from glm event templates Bringing in changes. --- .../views/front/events/detail.html | 54 +++++++++++++++---- 1 file changed, 45 insertions(+), 9 deletions(-) diff --git a/glm-member-db-events/views/front/events/detail.html b/glm-member-db-events/views/front/events/detail.html index 7e0d8a9..64610bb 100644 --- a/glm-member-db-events/views/front/events/detail.html +++ b/glm-member-db-events/views/front/events/detail.html @@ -59,14 +59,45 @@ {/if}
-
{$event.dates}{if $expired} (Expired){/if}
+ {foreach $event.recurrences as $rec} +
+ {if !$event.all_day} - {if $event.starting_date|date_format:"%l:%M %P" == $event.ending_date|date_format:"%l:%M %P"} - {$event.starting_date|date_format:"%l:%M %P"} + {if $rec.start_time.time == $rec.end_time.time} + {$rec.start_time.time} {else} - {$event.starting_date|date_format:"%l:%M %P"} - {$event.ending_date|date_format:"%l:%M %P"} + {$rec.start_time.time} - {$rec.end_time.time} {/if} {/if} + + {if $rec.name && $rec.name != 'Imported'} + {$rec.name} + {/if} + ( Occurring + {$rec.from_date.timestamp|date_format:"%m/%d/%Y"} + {if $rec.from_date.date != $rec.to_date.date} + - {$rec.to_date.timestamp|date_format:"%m/%d/%Y"} + {else if $rec.specific_dates} + - {$rec.specific_dates|@end|date_format:"%m/%d/%Y"} + {/if} + + {if $rec.day_of_week.names|@count < 7 && $rec.day_of_week.names|@count > 0 } + + on + {foreach $rec.day_of_week.names as $day} + {if $day == "Thursday"} + {$day|substr:0:4} + {else} + {$day|substr:0:3} + {/if} + {/foreach} + + + {/if} + ) + {if $expired} (Expired) {/if} +
+ {/foreach}
{if $event.hide_address.name == 'No'} {if !$event.use_member_location.value && ($event.locations.name || $event.locations.address)} @@ -75,7 +106,7 @@ {if $event.locations.address} {$event.locations.address}
{/if} {if $event.locations.city.name}{$event.locations.city.name}{/if}{if $event.locations.state.value}, {$event.locations.state.value} {/if} {if $event.locations.zip} {$event.locations.zip} {/if} - {if $event.locations.phone} {$event.locations.phone} {/if} + {if $event.locations.phone} {apply_filters('glm_associate_phone_filter', $event.locations.phone)} {/if}
{elseif $event.use_member_location.value || $event.other_ref_dest}
@@ -83,7 +114,7 @@ {if $event.member.addr1} {$event.member.addr1}
{/if} {if $event.member.city}{$event.member.city}{/if}{if $event.member.state.value}, {$event.member.state.value}{/if} {if $event.member.zip} {$event.member.zip} {/if} - {if $event.member.phone} {$event.member.phone} {/if} + {if $event.member.phone} {apply_filters('glm_associate_phone_filter', $event.member.phone)} {/if}
{/if} {/if} @@ -101,7 +132,12 @@ {if $event.url}{$event.url}
{/if} {if $event.contact_name}Contact: {$event.contact_name}
{/if} {if $event.contact_email}Email: {$event.contact_email}
{/if} - {if $event.contact_phone}Phone: {$event.contact_phone}
{/if} + {if $event.contact_phone} + + Phone: + {apply_filters('glm_associate_phone_filter', $event.contact_phone)} +
+ {/if} {if $event.file1}
File: {if $event.file1_descr}{$event.file1_descr}{else}{$event.file1}{/if} @@ -138,8 +174,8 @@ // Replace the phone separation character with whatever is set in the management {if $settings.phone_infix} - var processedPhone = $('.glm-event-detail-contact-phone .glm-field-value').text().trim().replace(/[^a-zA-Z0-9 ]/g, '{$settings.phone_infix}'); - $('.glm-event-detail-contact-phone .glm-field-value').text(processedPhone); + //var processedPhone = $('.glm-event-detail-contact-phone .glm-field-value').text().trim().replace(/[^a-zA-Z0-9 ]/g, '{$settings.phone_infix}'); + //$('.glm-event-detail-contact-phone .glm-field-value').text(processedPhone); {/if} }); -- 2.17.1