Commit | Line | Data |
---|---|---|
6834bea3 MW |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | Copyright CiviCRM LLC. All rights reserved. | | |
4 | | | | |
5 | | This work is published under the GNU AGPLv3 license with some | | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
8 | +--------------------------------------------------------------------+ | |
9 | *} | |
10 | {* Displays current and upcoming public Events Listing as an HTML page. *} | |
11 | {include file="CRM/common/jsortable.tpl"} | |
12 | <div class="crm-section crm-event-list"> | |
b8f2a197 MW |
13 | {crmRegion name="crm-event-list-pre"} |
14 | {/crmRegion} | |
6834bea3 MW |
15 | |
16 | <table id="options" class="display"> | |
17 | <thead> | |
18 | <tr> | |
19 | <th>{ts}Event{/ts}</th> | |
20 | <th></th> | |
21 | <th>{ts}When{/ts}</th> | |
22 | <th>{ts}Location{/ts}</th> | |
23 | <th>{ts}Category{/ts}</th> | |
24 | <th>{ts}Email{/ts}</th> | |
25 | {if $registration_links}<th>{ts}Register{/ts}</th>{/if} | |
26 | </tr> | |
27 | </thead> | |
28 | {foreach from=$events key=uid item=event} | |
9c7f8660 | 29 | <tr class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}"> |
6834bea3 | 30 | <td><a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$event.event_id`"}" title="{ts}read more{/ts}"><strong>{$event.title}</strong></a></td> |
78d60cf0 | 31 | <td>{if $event.summary}{$event.summary|purify} (<a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$event.event_id`"}" title="{ts}details...{/ts}">{ts}read more{/ts}...</a>){else} {/if}</td> |
6834bea3 MW |
32 | <td class="nowrap" data-order="{$event.start_date|crmDate:'%Y-%m-%d'}"> |
33 | {if $event.start_date}{$event.start_date|crmDate}{if $event.end_date}<br /><em>{ts}through{/ts}</em><br />{strip} | |
34 | {* Only show end time if end date = start date *} | |
35 | {if $event.end_date|date_format:"%Y%m%d" == $event.start_date|date_format:"%Y%m%d"} | |
36 | {$event.end_date|crmDate:0:1} | |
37 | {else} | |
38 | {$event.end_date|crmDate} | |
39 | {/if}{/strip}{/if} | |
40 | {else}{ts}(not available){/ts}{/if} | |
41 | </td> | |
42 | <td>{if $event.is_show_location EQ 1 AND $event.location}{$event.location}{else}{ts}(not available){/ts}{/if}</td> | |
43 | <td>{if $event.event_type}{$event.event_type}{else} {/if}</td> | |
44 | <td>{if $event.contact_email}<a href="mailto:{$event.contact_email}">{$event.contact_email}</a>{else} {/if}</td> | |
45 | {if $registration_links}<td><a href="{$event.registration_link}">{$event.registration_link_text}</a></td>{/if} | |
46 | </tr> | |
47 | {/foreach} | |
48 | </table> | |
b8f2a197 MW |
49 | |
50 | {crmRegion name="crm-event-list-post"} | |
51 | {/crmRegion} | |
6834bea3 | 52 | </div> |