Pecuria! Pecuria! I was hoping you'd see my post!
The list template is:
Code: Select all
<div>
<h2 style="text-align:center; text-transform:uppercase;font-size:20px;color:#98a677;">{if $day > 0}{$day} {/if}{$month_names[$month]} {$year}</h2>
<div style="border-bottom: 2px solid #f0f0f0; padding:8px">
{if isset($navigation)}
{if isset($navigation.prev)}<a style="font-size:11px;text-transform:uppercase;float: left;text-decoration:none" href="{$navigation.prev}">{$lang.prev}</a>{/if}
<span style="padding-left:25px;color: #e11831;font-size:11px;text-transform:uppercase;"><a style="color:#60553d;text-decoration:none" href="index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=1&mb064creturnid=103&page=103
">Jan</a> | <a style="color:#60553d;text-decoration:none" href="index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=2&mb064creturnid=103&page=103
">Feb</a> | <a style="color:#60553d;text-decoration:none" href="index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=3&mb064creturnid=103&page=103
">March</a> | <a style="color:#60553d;text-decoration:none" href="index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=4&mb064creturnid=103&page=103
">Apr</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=5&mb064creturnid=103&page=103
">May</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=6&mb064creturnid=103&page=103
">Jun</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=7&mb064creturnid=103&page=103
">Jul</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=8&mb064creturnid=103&page=103
">Aug</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=9&mb064creturnid=103&page=103
">Sep</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=10&mb064creturnid=103&page=103
">Oct</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=11&mb064creturnid=103&page=103
">Nov</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=12&mb064creturnid=103&page=103
">Dec</a></span>
{if isset($navigation.next)}<a style="color: #685e47;font-size:11px;text-transform:uppercase;float: right;padding-top:0px;margin-top:0px;text-decoration:none" href="{$navigation.next}">{$lang.next}</a></span>{/if}
{/if}
</div>
<p style="padding-top:20px"> </p>
{if !empty($events)}
{foreach from=$events key=key item=event}
<div>
<h2><a style="color: #a6b483;font-size:21px;text-decoration:none" href="{$event.url}">{$event.event_title}</a></h2>
{assign var=month_number value=$event.event_date_start|date_format:"%m"}
{assign var=end_month_number value=$event.event_date_end|date_format:"%m"}
{if $event.event_date_start == $event.event_date_end || $event.event_date_end == 0}
<span style="color:#666633;font-weight:bold">{$lang.date}:</span> {$event.event_date_start|date_format:"%a %e %b %G"}<br/>
{else}
{if $event.event_date_start|date_format:"%a %e %b %G" == $event.event_date_end|date_format:"%a %e %b %G"}
<span style="color:#666633;font-weight:bold">{$lang.date}: </span>{$event.event_date_start|date_format:"%a %e %b %G"} <br> <span style="color:#666633;font-weight:bold">Time:</span> {$event.event_date_start|date_format:"%H:%M%P"} - {$event.event_date_end|date_format:"%H:%M%P"}<br/>
{else}
<span style="color:#666633;font-weight:bold">{$lang.date}:</span> {$event.event_date_start|date_format:"%a %e %b %G"} to {$event.event_date_end|date_format:"%a %e %b %G"}<br> <span style="color:#666633;font-weight:bold">Time:</span> {$event.event_date_start|date_format:"%H:%M%P"} {$lang.to} {$event.event_date_end|date_format:"%H:%M%P"} <br/>
{/if}
{/if}
{if $event.event_summary !="" && ($detail != 1 || ($event.event_details =="" || $event.event_details == "<br />"))}
<div class="description" style="padding-top:10px">{$event.event_summary}</div>
{/if}
{* optionally display detail information
{if $event.event_details !="" && $event.event_details != "<br />"}
<div class="calendar-details"><span class="calendar-details-title">{$lang.details}: </span>{$event.event_details}</div>
{/if}
*}
<p style="margin-top:12px">
<a style="text-decoration:none;color:#98a677" href="{$event.url}">more details »</a></p>
</div>
<div style="border-bottom: 1px dashed #e11831;padding-bottom:10px;"> </div>
{/foreach}
{else}
<div style="border-top: 1px dashed #e11831;padding-bottom:7px;margin-top:17px"> </div>
<p><em>There are currently no events.</em></p>
<div style="border-bottom: 1px dashed #e11831;padding-bottom:7px;"> </div>
{/if}
<div style="border-top: 2px solid #f0f0f0; padding:8px;margin-top:30px">
{if isset($navigation)}
{if isset($navigation.prev)}<a style="font-size:11px;text-transform:uppercase;float: left;text-decoration:none" href="{$navigation.prev}">{$lang.prev}</a>{/if}
<span style="padding-left:25px;color: #e11831;font-size:11px;text-transform:uppercase;"><a style="color:#60553d;text-decoration:none" href="index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=1&mb064creturnid=103&page=103
">Jan</a> | <a style="color:#60553d;text-decoration:none" href="index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=2&mb064creturnid=103&page=103
">Feb</a> | <a style="color:#60553d;text-decoration:none" href="index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=3&mb064creturnid=103&page=103
">March</a> | <a style="color:#60553d;text-decoration:none" href="index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=4&mb064creturnid=103&page=103
">Apr</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=5&mb064creturnid=103&page=103
">May</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=6&mb064creturnid=103&page=103
">Jun</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=7&mb064creturnid=103&page=103
">Jul</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=8&mb064creturnid=103&page=103
">Aug</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=9&mb064creturnid=103&page=103
">Sep</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=10&mb064creturnid=103&page=103
">Oct</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=11&mb064creturnid=103&page=103
">Nov</a> | <a style="color:#60553d;text-decoration:none" href="http://www.stjohnscathedral.com.au/index.php?mact=CGCalendar,mb064c,default,1&mb064cdisplay=list&mb064ceventtemplate=event&mb064clisttemplate=list&mb064cuse_session=&mb064cyear={$year}&mb064cmonth=12&mb064creturnid=103&page=103
">Dec</a></span>
{if isset($navigation.next)}<a style="color: #685e47;font-size:11px;text-transform:uppercase;float: right;padding-top:0px;margin-top:0px;text-decoration:none" href="{$navigation.next}">{$lang.next}</a></span>{/if}
{/if}
</div>
<P></p>
<P></p>
{if $return_url != ""}
<div class="calendar-returnlink" style="clear:both;padding-top:25px">{$return_url}</div>
{/if}
</div>
and the event display template is:
Code: Select all
<h2 style="font-size:23px;margin-top:20px">{$event.event_title}</h2>
{assign var=month_number value=$event.event_date_start|date_format:"%m"}
{assign var=end_month_number value=$event.event_date_end|date_format:"%m"}
{if $event.event_date_start == $event.event_date_end || $event.event_date_end == 0}
<span style="color:#666633;font-weight:bold">{$lang.date}:</span> {$event.event_date_start|date_format:"%a %e %b %G"}<br/>
{else}
{if $event.event_date_start|date_format:"%a %e %b %G" == $event.event_date_end|date_format:"%a %e %b %G"}
<span style="color:#666633;font-weight:bold">{$lang.date}: </span>{$event.event_date_start|date_format:"%a %e %b %G"} <br> <span style="color:#666633;font-weight:bold">Time:</span> {$event.event_date_start|date_format:"%H:%M%P"} - {$event.event_date_end|date_format:"%H:%M%P"}<br/>
{else}
<span style="color:#666633;font-weight:bold">{$lang.date}:</span> {$event.event_date_start|date_format:"%a %e %b %G"} to {$event.event_date_end|date_format:"%a %e %b %G"}<br> <span style="color:#666633;font-weight:bold">Time:</span> {$event.event_date_start|date_format:"%H:%M%P"} {$lang.to} {$event.event_date_end|date_format:"%H:%M%P"} <br/>
{/if}
{/if}
{if $event.event_summary !="" && $event.event_details ==""}
<div class="firstpara" style="padding-top:20px">{$event.event_summary}</div>
{/if}
{if $event.event_summary !="" && $event.event_summary != "<br />"}
<div class="firstpara" style="padding-top:20px">{eval var=$event.event_summary}</div>
{/if}
{if $event.event_details !="" && $event.event_details != "<br />"}
<div class="description" style="padding-top:20px">{eval var=$event.event_details}</div>
{/if}
<div class="calendar-returnlink;padding-top:25px">{$return_link}</div>
What I was hoping to achieve was something like this:
Code: Select all
{if $event.event_category !=""}
<strong>Category:</strong> {$event.event_category}</div>
{/if}
But there is no event category var and I am not good at code.
Ideally, I would like it to have an if clause so that if the event is private and closed to the public, e.g. the category is 'Ambassador Members' or 'Staff' then the output would add the sentence '(private event, by invitation only)', e.g.
Category: Staff (private event, by invitation only)
or
Category: Ambassador Members (private event, by invitation only)
But if the category is a public event like 'Music' or 'Fundraising' then there would be no additional sentence and the output would be:
Category: Music
or
Category: Fundraising
I hope that makes sense??