{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} {capture assign=tdfirstStyle}style="width: 180px; padding-bottom: 15px;"{/capture} {capture assign=tdStyle}style="width: 100px;"{/capture} {capture assign=participantTotal}style="margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;"{/capture} {/if}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}

{$greeting},

{/if} {if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}

{$event.confirm_email_text|htmlize}

{else}

{ts}Thank you for your registration.{/ts} {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to %1.{/ts} {else}{if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to waitlisted.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to registered.{/ts}{/if}{/if}

{/if}

{if !empty($isOnWaitlist)}

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

{if !empty($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 !empty($isRequireApproval)}

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

{if !empty($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 !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)}

{if isset($pay_later_receipt)}{$pay_later_receipt}{/if}

{* FIXME: this might be text rather than HTML *} {/if}
{if $conference_sessions} {/if} {if !empty($event.participant_role) and $event.participant_role neq 'Attendee' and !empty($defaultRole)} {/if} {if !empty($isShowLocation)} {/if} {if !empty($location.phone.1.phone) || !empty($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 !empty($event.is_public)} {/if} {if !empty($event.is_share)} {/if} {if !empty($payer.name)} {/if} {if !empty($event.is_monetary) and empty($isRequireApproval)} {if !empty($lineItem)} {foreach from=$lineItem item=value key=priceset} {if $value neq 'skip'} {if !empty($isPrimary)} {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *} {/if} {/if} {/if} {/foreach} {if !empty($dataArray)} {if isset($totalAmount) and isset($totalTaxAmount)} {/if} {foreach from=$dataArray item=value key=priceset} {if $priceset || $priceset == 0} {else} {/if} {/foreach} {/if} {/if} {if !empty($amounts) && empty($lineItem)} {foreach from=$amounts item=amnt key=level} {/foreach} {/if} {if isset($totalTaxAmount)} {/if} {if !empty($isPrimary)} {if !empty($pricesetFieldsCount) } {/if} {if $register_date} {/if} {if !empty($receive_date)} {/if} {if !empty($financialTypeName)} {/if} {if !empty($trxn_id)} {/if} {if !empty($paidBy)} {/if} {if !empty($checkNumber)} {/if} {if !empty($billingName)} {/if} {if !empty($credit_card_type)} {/if} {/if} {/if} {* End of conditional section for Paid events *} {if !empty($customPre)} {foreach from=$customPre item=customPr key=i} {foreach from=$customPr item=customValue key=customName} {if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)} {/if} {/foreach} {/foreach} {/if} {if !empty($customPost)} {foreach from=$customPost item=customPos key=j} {foreach from=$customPos item=customValue key=customName} {if (!empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)} {/if} {/foreach} {/foreach} {/if} {if !empty($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}
{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} {$event.event_tz}
{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}
{$location.address.1.display|nl2br}
{ts}Event Contacts:{/ts}
{if $phone.phone_type} {$phone.phone_type_display} {else} {ts}Phone{/ts} {/if} {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
{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}
{if !empty($event.fee_label)}{$event.fee_label}{/if}
{ts 1=$priceset+1}Participant %1{/ts} {if !empty($part.$priceset)}{$part.$priceset.info}{/if}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *} {if !empty($dataArray)} {/if} {if !empty($pricesetFieldsCount) }{/if} {foreach from=$value item=line} {if !empty($dataArray)} {if $line.tax_rate || $line.tax_amount != ""} {else} {/if} {/if} {if !empty($pricesetFieldsCount) } {/if} {/foreach} {if !empty($individual)} {/if}
{ts}Item{/ts} {ts}Qty{/ts} {ts}Each{/ts}{ts}SubTotal{/ts} {ts}Tax Rate{/ts} {ts}Tax Amount{/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:$currency} {$line.unit_price*$line.qty|crmMoney} {$line.tax_rate|string_format:"%.2f"}% {$line.tax_amount|crmMoney} {$line.line_total+$line.tax_amount|crmMoney:$currency} {$line.participant_count}
{ts}Participant Total{/ts} {$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney} {$individual.$priceset.totalTaxAmt|crmMoney} {$individual.$priceset.totalAmtWithTax|crmMoney}
{ts} Amount Before Tax: {/ts} {$totalAmount-$totalTaxAmount|crmMoney}
 {$taxTerm} {$priceset|string_format:"%.2f"}%  {$value|crmMoney:$currency} {ts}No{/ts} {$taxTerm}  {$value|crmMoney:$currency}
{$amnt.amount|crmMoney:$currency} {$amnt.label}
{ts}Total Tax Amount{/ts} {$totalTaxAmount|crmMoney:$currency}
{ts}Total Amount{/ts} {if !empty($totalAmount)}{$totalAmount|crmMoney:$currency}{/if} {if !empty($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} {$financialTypeName}
{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}
{if !empty($event.allow_selfcancelxfer) }
{ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}
{capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture} {ts}Click here to transfer or cancel your registration.{/ts}