From: Anthony Talarico Date: Thu, 14 Dec 2017 20:09:04 +0000 (-0500) Subject: adding location data and cleaning up the list view, adding year only they are differe... X-Git-Tag: v1.0.0^2~213 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=5d7fea9e68923e18cb2d69153e7906941864e1cf;p=WP-Plugins%2Fglm-member-db-registrations.git adding location data and cleaning up the list view, adding year only they are different in list view --- diff --git a/views/front/registrations/list.html b/views/front/registrations/list.html index 35da1c4..9b1df37 100644 --- a/views/front/registrations/list.html +++ b/views/front/registrations/list.html @@ -25,7 +25,8 @@ {$lastDate = ''} {foreach $event.recurrences as $rec} - {$eDate = $rec.from_date.timestamp|date_format:"%A, %B %e, %Y"} + {$eDate = $rec.from_date.timestamp|date_format:"%B %e"} + {if $eDate != $lastDate} {$lastDate = $eDate}
@@ -34,11 +35,21 @@ {$eDate} {if $rec.from_date.date != $rec.to_date.date} - - {$rec.to_date.timestamp|date_format:"%B %e, %Y"} + {if $rec.from_date.timestamp|date_format:"%Y" != $rec.to_date.date.timestamp|date_format:"%Y"} + - {$rec.to_date.timestamp|date_format:"%B %e"}, + {else} + - {$rec.to_date.timestamp|date_format:"%B %e"} + {/if} {else if $rec.specific_dates} - - {$rec.specific_dates|@end|date_format:"%B %e, %Y"} + {if $rec.from_date.timestamp|date_format:"%Y" != $rec.specific_dates|@end|date_format:"%Y"} + - {$rec.specific_dates|@end|date_format:"%B %e"}, + {else} + - {$rec.specific_dates|@end|date_format:"%B %e"} + {/if} + {else} + , {/if} - + {$rec.from_date.timestamp|date_format:"%Y"} {if $rec.day_of_week.names|@count < 7 && $rec.day_of_week.names|@count > 0 } on diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index 1657da0..b40bad9 100644 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -9,6 +9,13 @@ Logout {/literal} + +{assign var=first value = $regEvent.reg_time|@key} +{assign var=first_date value = $regEvent.reg_time.$first.start_datetime} +{assign var=last value = $regEvent.reg_time|@end} +{assign var=last_date value = $last.end_datetime} +{assign var=time_specific value = $regEvent.time_specific.value} + {* Template for the regEvent *}{literal}