Adding dates to the detail page.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 7 Mar 2017 13:42:11 +0000 (08:42 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 7 Mar 2017 13:42:11 +0000 (08:42 -0500)
If the event has recurring dates.

views/front/events/detail.html

index 9d4a601..42ad590 100644 (file)
                         <div class="small-12 medium-{if $event.locations || $event.use_member_location.value || $event.other_ref_dest}7{else}12{/if} column">
                             <div id="glm-event-detail-dates">
                                 <div>
-                                    <strong>{$event.dates}</strong>
+                                    {if $event.recurrences.0.recurring.value}
+                                    <div style="width: 100%; height:auto;display:inline-block;clear:both;">
+                                        {foreach $event.times as $time}
+                                            {if $time.start_time.timestamp >= date('U')}
+                                                <div style="font-size: 12px;display: block;width:72px;height: 25px;float:left;background-color:grey; border: solid black 1px; border-radius: 5px;margin:2px;padding: 1px 2px;">{$time.start_time.timestamp|date_format:"%m/%d/%Y"}</div>
+                                            {/if}
+                                        {/foreach}
+                                    </div>
+                                    {else}
+                                        <strong>{$event.dates}</strong>
+                                    {/if}
                                     {if $event.recurDays}<span>{$event.recurDays}</span>{/if}
                                     {if $expired} <span style="color:red;">(Expired)</span>{/if}
                                 </div>