From b4734e6f417596019d53b85f19be81085da7b7fd Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 11 Oct 2018 15:07:11 -0400 Subject: [PATCH] Update detail page to remove target to open new tab custom view file. --- .../views/front/events/detail.html | 279 ++++++++++++++++++ style.css | 2 +- 2 files changed, 280 insertions(+), 1 deletion(-) create mode 100755 glm-member-db-events/views/front/events/detail.html diff --git a/glm-member-db-events/views/front/events/detail.html b/glm-member-db-events/views/front/events/detail.html new file mode 100755 index 0000000..11d60a4 --- /dev/null +++ b/glm-member-db-events/views/front/events/detail.html @@ -0,0 +1,279 @@ +
+ Back To Search +
+
+
+ {include file='front/events/searchForm.html'} +
+
+
+ {if $event} +
+
+ + Share +
+
+

{$event.name}

+
+ {if $event.image} +
+ +
+ {/if} +
+
+ {if $event.locations} +
+ {if $event.locations.lat && $event.locations.address} +
+
map...
+
Loading...
+
+
+
+
+ + + + +
+ {/if} +
+ {elseif $event.member && ($event.use_member_location.value || $event.other_ref_dest) } +
+ {if $event.member.lat} +
+
map...
+
Loading...
+
+
+
+
+ + + + +
+ {/if} +
+ {/if} +
+
+ {$lastDate = ''} + {foreach $event.recurrences as $rec} + + {$eDate = $rec.from_date.timestamp|date_format:"%A, %B %e, %Y"} + {if $eDate != $lastDate} + {$lastDate = $eDate} +
+ + + {if $event.recurrences.0.recurring.value == 1} Occurring {/if} + + {$eDate} + {if $rec.from_date.date != $rec.to_date.date} + - {$rec.to_date.timestamp|date_format:"%B %e, %Y"} + {else if $rec.specific_dates} + - {$rec.specific_dates|@end|date_format:"%B %e, %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} + {if !$event.all_day} +
+ + + {if $rec.start_time.time == $rec.end_time.time || $rec.start_time_only.value} + {$rec.start_time.time|strtotime|date_format:"%l:%M %P"} + {else} + {$rec.start_time.time|strtotime|date_format:"%l:%M %P"} - {$rec.end_time.time|strtotime|date_format:"%l:%M %P"} + {/if} + {if $rec.name && $rec.name != 'Imported' && $rec.name != 'Imported Event Schedule' } + {$rec.name} + {/if} + {if $expired} (Expired) {/if} + +
+ {else} + {if $rec.name && $rec.name != 'Imported' && $rec.name != 'Imported Event Schedule' } + {$rec.name} + {/if} + + {if $expired} (Expired) {/if} + {/if} + {/foreach} +
+ {if $event.hide_address.name == 'No'} + {if !$event.use_member_location.value && ($event.locations.name || $event.locations.address)} +
+ {if $event.locations.name}{$event.locations.name}
{/if} + {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} {apply_filters('glm_associate_phone_filter', $event.locations.phone)} {/if} +
+ {elseif $event.use_member_location.value || $event.other_ref_dest} +
+ {if $event.member.member} {$event.member.member}
{/if} + {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} + {/if} + {if $event.cost && !$event.free.value} +
Cost: {$event.cost}
+ {/if} + {if $event.free.value} +
Cost: FREE
+ {/if} + {if $event.ticket_url} + + {/if} + {if $event.registration_url} + + {/if} + +
Contact & More Info
+ {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: + {apply_filters('glm_associate_phone_filter', $event.contact_phone)} +
+ {/if} + {if $event.file1} + + {/if} + {if $event.file2} + + {/if} + {if $event.file3} + + {/if} +
+
+
+
+
+ {$event.descr} +
+
+
+
+ {else} +
Sorry, No results.
+ {/if} +
+ + diff --git a/style.css b/style.css index 02b279b..5ad7376 100644 --- a/style.css +++ b/style.css @@ -3,5 +3,5 @@ Theme Name: Char-EM ISD Author: Gaslight Media Author URI: http://www.gaslightmedia.com Description: A theme for Char EM ISD -Version: 1.0.5 +Version: 1.0.6 */ -- 2.17.1