{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}

Dear {contact.display_name},

{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}

{$event.confirm_email_text|htmlize}

{else}

Thank you for your participation. This letter is a confirmation that your registration has been received and your status has been updated to {if $isOnWaitlist}waitlisted{else}registered{/if} for the following:

{/if}

{if $isOnWaitlist}

{ts}You have been added to the WAIT LIST for this event.{/ts}

{if $isPrimary}

{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}

{/if} {elseif $isRequireApproval}

{ts}Your registration has been submitted.{/ts}

{if $isPrimary}

{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}

{/if} {elseif $is_pay_later && !$isAmountzero}

{$pay_later_receipt}

{* FIXME: this might be text rather than HTML *} {else}

{ts}Please print this confirmation for your records.{/ts}

{/if}
{if $conference_sessions} {/if} {if $event.participant_role neq 'Attendee' and $defaultRole} {/if} {if $isShowLocation} {/if} {if $location.phone.1.phone || $location.email.1.email} {foreach from=$location.phone item=phone} {if $phone.phone} {/if} {/foreach} {foreach from=$location.email item=eventEmail} {if $eventEmail.email} {/if} {/foreach} {/if} {if $event.is_share} {/if} {if $payer.name} {/if} {if $event.is_monetary} {if $lineItem} {foreach from=$lineItem item=value key=priceset} {if $value neq 'skip'} {if $isPrimary} {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *} {/if} {/if} {/if} {/foreach} {/if} {if $amounts && !$lineItem} {foreach from=$amounts item=amnt key=level} {/foreach} {/if} {if $isPrimary} {if $pricesetFieldsCount } {/if} {if $register_date} {/if} {if $receive_date} {/if} {if $contributionTypeName} {/if} {if $trxn_id} {/if} {if $paidBy} {/if} {if $checkNumber} {/if} {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} {/if} {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} {/if} {/if} {/if} {* End of conditional section for Paid events *} {if $customPre} {foreach from=$customPre item=customPr key=i} {foreach from=$customPr item=customValue key=customName} {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} {/if} {/foreach} {/foreach} {/if} {if $customPost} {foreach from=$customPost item=customPos key=j} {foreach from=$customPos item=customValue key=customName} {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} {/if} {/foreach} {/foreach} {/if} {if $customProfile} {foreach from=$customProfile.profile item=eachParticipant key=participantID} {foreach from=$eachParticipant item=eachProfile key=pid} {foreach from=$eachProfile item=val key=field} {foreach from=$val item=v key=f} {/foreach} {/foreach} {/foreach} {/foreach} {/if} {if $customGroup} {foreach from=$customGroup item=value key=customName} {foreach from=$value item=v key=n} {/foreach} {/foreach} {/if}
{ts}Event Information and Location{/ts}
{$event.event_title}
{$event.event_start_date|date_format:"%A"} {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|date_format:"%A"} {$event.event_end_date|crmDate}{/if}{/if}
{ts}Your schedule:{/ts}
{assign var='group_by_day' value='NA'} {foreach from=$conference_sessions item=session} {if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"} {assign var='group_by_day' value=$session.start_date} {$group_by_day|date_format:"%m/%d/%Y"}
{/if} {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}
{if $session.location}    {$session.location}
{/if} {/foreach}
{ts}Participant Role{/ts} {$event.participant_role}
{if $location.address.1.name} {$location.address.1.name}
{/if} {if $location.address.1.street_address} {$location.address.1.street_address}
{/if} {if $location.address.1.supplemental_address_1} {$location.address.1.supplemental_address_1}
{/if} {if $location.address.1.supplemental_address_2} {$location.address.1.supplemental_address_2}
{/if} {if $location.address.1.city} {$location.address.1.city}, {$location.address.1.state_province} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}
{/if}
{ts}Event Contacts:{/ts}
{if $phone.phone_type} {$phone.phone_type_display} {else} {ts}Phone{/ts} {/if} {$phone.phone}
{ts}Email{/ts} {$eventEmail.email}
{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} {ts}Download iCalendar File{/ts}
{capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&reset=1" a=true fe=1 h=1}{/capture} {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl title=$event.title pageURL=$eventUrl}
{ts}You were registered by:{/ts}
{$payer.name}
{$event.fee_label}
{ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *} {if $pricesetFieldsCount }{/if} {foreach from=$value item=line} {if $pricesetFieldsCount } {/if} {/foreach}
{ts}Item{/ts} {ts}Qty{/ts} {ts}Each{/ts} {ts}Total{/ts}{ts}Total Participants{/ts}
{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}
{$line.description|truncate:30:"..."}
{/if}
{$line.qty} {$line.unit_price|crmMoney} {$line.line_total|crmMoney} {$line.participant_count}
{$amnt.amount|crmMoney} {$amnt.label}
{ts}Total Amount{/ts} {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
{ts}Total Participants{/ts} {assign var="count" value= 0} {foreach from=$lineItem item=pcount} {assign var="lineItemCount" value=0} {if $pcount neq 'skip'} {foreach from=$pcount item=p_count} {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} {/foreach} {if $lineItemCount < 1 } {assign var="lineItemCount" value=1} {/if} {assign var="count" value=$count+$lineItemCount} {/if} {/foreach} {$count}
{ts}Registration Date{/ts} {$register_date|crmDate}
{ts}Transaction Date{/ts} {$receive_date|crmDate}
{ts}Financial Type{/ts} {$contributionTypeName}
{ts}Transaction #{/ts} {$trxn_id}
{ts}Paid By{/ts} {$paidBy}
{ts}Check Number{/ts} {$checkNumber}
{ts}Billing Name and Address{/ts}
{$billingName}
{$address|nl2br}
{ts}Credit Card Information{/ts}
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
{$customPre_grouptitle.$i}
{$customName} {$customValue}
{$customPost_grouptitle.$j}
{$customName} {$customValue}
{ts 1=$participantID+2}Participant %1{/ts}
{$customProfile.title.$pid}
{$field} {$v}
{$customName}
{$n} {$v}