Update regen for event message template
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 28 Dec 2023 05:15:42 +0000 (18:15 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 28 Dec 2023 05:15:42 +0000 (18:15 +1300)
sql/civicrm_generated.mysql

index 924d77ea0c2c8c6f8c114f690ca2c09a7986cbf3..24c3489f7cd2994ad1ced34ec38451ec8faccbbc 100644 (file)
@@ -5348,8 +5348,8 @@ INSERT INTO `civicrm_msg_template` (`id`, `msg_title`, `msg_subject`, `msg_text`
  (28,'Additional Payment Receipt or Refund Notification','{if {financial_trxn.total_amount|raw} < 0}{ts}Refund Notification{/ts}{else}{ts}Payment Receipt{/ts}{/if}{if {event.title|boolean}} - {event.title}{/if} - {contact.display_name}\n','','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=emptyBlockStyle}style=\"padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;\"{/capture}\n{capture assign=emptyBlockValueStyle}style=\"padding: 10px; border-bottom: 1px solid #999;\"{/capture}\n\n <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n  <!-- BEGIN HEADER -->\n  <!-- You can add table row(s) here with logo or other header elements -->\n  <!-- END HEADER -->\n\n  <!-- BEGIN CONTENT -->\n  <tr>\n    <td>\n      {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n      {if {financial_trxn.total_amount|raw} < 0}\n        <p>{ts}A refund has been issued based on changes in your registration selections.{/ts}</p>\n      {else}\n        <p>{ts}Below you will find a receipt for this payment.{/ts}</p>\n        {if !{contribution.balance_amount|boolean}}\n          <p>{ts}Thank you for completing this contribution.{/ts}</p>\n        {/if}\n      {/if}\n    </td>\n  </tr>\n  <tr>\n   <td>\n    <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n      {if {financial_trxn.total_amount|raw} < 0}\n      <tr>\n        <th {$headerStyle}>{ts}Refund Details{/ts}</th>\n      </tr>\n      <tr>\n        <td {$labelStyle}>\n        {ts}This Refund Amount{/ts}\n        </td>\n        <td {$valueStyle}>\n          {financial_trxn.total_amount}\n        </td>\n      </tr>\n    {else}\n      <tr>\n        <th {$headerStyle}>{ts}Payment Details{/ts}</th>\n      </tr>\n      <tr>\n        <td {$labelStyle}>\n        {ts}This Payment Amount{/ts}\n        </td>\n        <td {$valueStyle}>\n        {financial_trxn.total_amount}\n        </td>\n      </tr>\n    {/if}\n    {if {financial_trxn.trxn_date|boolean}}\n      <tr>\n        <td {$labelStyle}>\n        {ts}Transaction Date{/ts}\n        </td>\n        <td {$valueStyle}>\n         {financial_trxn.trxn_date}\n        </td>\n      </tr>\n    {/if}\n    {if {financial_trxn.trxn_id|boolean}}\n      <tr>\n        <td {$labelStyle}>\n        {ts}Transaction #{/ts}\n        </td>\n        <td {$valueStyle}>\n          {financial_trxn.trxn_id}\n        </td>\n      </tr>\n    {/if}\n    {if {financial_trxn.payment_instrument_id|boolean}}\n      <tr>\n        <td {$labelStyle}>\n        {ts}Paid By{/ts}\n        </td>\n        <td {$valueStyle}>\n          {financial_trxn.payment_instrument_id:label}\n        </td>\n      </tr>\n    {/if}\n    {if {financial_trxn.check_number|boolean}}\n      <tr>\n        <td {$labelStyle}>\n        {ts}Check Number{/ts}\n        </td>\n        <td {$valueStyle}>\n          {financial_trxn.check_number}\n        </td>\n      </tr>\n    {/if}\n\n  <tr>\n    <th {$headerStyle}>{ts}Contribution Details{/ts}</th>\n  </tr>\n  {if {contribution.total_amount|boolean}}\n  <tr>\n    <td {$labelStyle}>\n      {ts}Total Fee{/ts}\n    </td>\n    <td {$valueStyle}>\n      {contribution.total_amount}\n    </td>\n  </tr>\n  {/if}\n  {if {contribution.paid_amount|boolean}}\n  <tr>\n    <td {$labelStyle}>\n      {ts}Total Paid{/ts}\n    </td>\n    <td {$valueStyle}>\n      {contribution.paid_amount}\n    </td>\n  </tr>\n  {/if}\n  {if {contribution.balance_amount|boolean}}\n  <tr>\n    <td {$labelStyle}>\n      {ts}Balance Owed{/ts}\n    </td>\n    <td {$valueStyle}>\n      {contribution.balance_amount}\n    </td>\n  </tr>\n  {/if}\n  </table>\n\n  </td>\n  </tr>\n    <tr>\n      <td>\n  <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n    {if {contribution.address_id.display|boolean}}\n        <tr>\n          <th {$headerStyle}>\n              {ts}Billing Name and Address{/ts}\n          </th>\n        </tr>\n        <tr>\n          <td colspan=\"2\" {$valueStyle}>\n              {contribution.address_id.name}<br/>\n              {contribution.address_id.display}\n          </td>\n        </tr>\n      {/if}\n    {if {financial_trxn.pan_truncation|boolean}}\n      <tr>\n        <th {$headerStyle}>\n          {ts}Credit Card Information{/ts}\n        </th>\n      </tr>\n      <tr>\n        <td colspan=\"2\" {$valueStyle}>\n          {financial_trxn.card_type_id:label}<br />\n          ************{financial_trxn.pan_truncation}<br />\n        </td>\n      </tr>\n    {/if}\n    {if {event.id|boolean}}\n      <tr>\n        <th {$headerStyle}>\n          {ts}Event Information and Location{/ts}\n        </th>\n      </tr>\n      <tr>\n        <td colspan=\"2\" {$valueStyle}>\n          {event.event_title}<br />\n          {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date}{/if}{/if}\n        </td>\n      </tr>\n\n      {if {participant.role_id|boolean}}\n      <tr>\n        <td {$labelStyle}>\n          {ts}Participant Role{/ts}\n        </td>\n        <td {$valueStyle}>\n         {participant.role_id:label}\n        </td>\n      </tr>\n      {/if}\n\n      {if {event.is_show_location|boolean}}\n            <tr>\n              <td colspan=\"2\" {$valueStyle}>\n                  {event.location}\n              </td>\n            </tr>\n          {/if}\n          {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n            <tr>\n              <td colspan=\"2\" {$labelStyle}>\n                  {ts}Event Contacts:{/ts}\n              </td>\n            </tr>\n\n             {if {event.loc_block_id.phone_id.phone|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {if {event.loc_block_id.phone_id.phone_type_id|boolean}}\n                      {event.loc_block_id.phone_id.phone_type_id:label}\n                  {else}\n                      {ts}Phone{/ts}\n                  {/if}\n              </td>\n              <td {$valueStyle}>\n                  {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n              </td>\n            </tr>\n          {/if}\n             {if {event.loc_block_id.phone_2_id.phone|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}\n                      {event.loc_block_id.phone_2_id.phone_type_id:label}\n                  {else}\n                      {ts}Phone{/ts}\n                  {/if}\n              </td>\n              <td {$valueStyle}>\n                  {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n              </td>\n            </tr>\n          {/if}\n\n              {if {event.loc_block_id.email_id.email|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {ts}Email{/ts}\n              </td>\n              <td {$valueStyle}>\n                  {event.loc_block_id.email_id.email}\n              </td>\n            </tr>\n          {/if}\n\n              {if {event.loc_block_id.email_2_id.email|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                      {ts}Email{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                      {event.loc_block_id.email_2_id.email}\n                  </td>\n                </tr>\n              {/if}\n            {/if}\n\n          {/if}\n        </table>\n      </td>\n    </tr>\n  </table>\n </body>\n</html>\n',1,827,'payment_or_refund_notification',0,1,0,NULL),
  (29,'Events - Registration Confirmation and Receipt (off-line)','{ts}Event Confirmation{/ts} - {event.title} - {contact.display_name}\n','','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n  <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=tdfirstStyle}style=\"width: 180px; padding-bottom: 15px;\"{/capture}\n{capture assign=tdStyle}style=\"width: 100px;\"{/capture}\n{capture assign=participantTotalStyle}style=\"margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;\"{/capture}\n\n<table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n  <!-- BEGIN HEADER -->\n  <!-- You can add table row(s) here with logo or other header elements -->\n  <!-- END HEADER -->\n\n  <!-- BEGIN CONTENT -->\n\n  <tr>\n   <td>\n    {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n    {if $userText}\n     <p>{$userText}</p>\n    {/if}\n\n    {if !empty($isOnWaitlist)}\n      <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>\n      <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p>\n    {elseif !empty($isRequireApproval)}\n      <p>{ts}Your registration has been submitted.{/ts}</p>\n      <p>{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}</p>\n    {elseif {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean}}\n     <p>{event.pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}\n    {/if}\n\n   </td>\n  </tr>\n  <tr>\n   <td>\n    <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n     <tr>\n      <th {$headerStyle}>\n       {ts}Event Information and Location{/ts}\n      </th>\n     </tr>\n     <tr>\n      <td colspan=\"2\" {$valueStyle}>\n       {event.title}<br />\n       {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date}{/if}{/if}\n      </td>\n     </tr>\n\n     {if \"{participant.role_id:label}\" neq \'Attendee\'}\n      <tr>\n       <td {$labelStyle}>\n        {ts}Participant Role{/ts}\n       </td>\n       <td {$valueStyle}>\n         {participant.role_id:label}\n       </td>\n      </tr>\n     {/if}\n\n     {if {event.is_show_location|boolean}}\n      <tr>\n       <td colspan=\"2\" {$valueStyle}>\n         {event.location}\n       </td>\n      </tr>\n     {/if}\n\n     {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n       <tr>\n         <td colspan=\"2\" {$labelStyle}>\n           {ts}Event Contacts:{/ts}\n         </td>\n       </tr>\n\n       {if {event.loc_block_id.phone_id.phone|boolean}}\n         <tr>\n           <td {$labelStyle}>\n             {if {event.loc_block_id.phone_id.phone_type_id|boolean}}\n               {event.loc_block_id.phone_id.phone_type_id:label}\n             {else}\n               {ts}Phone{/ts}\n             {/if}\n           </td>\n         <td {$valueStyle}>\n          {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n         </td>\n        </tr>\n       {/if}\n       {if {event.loc_block_id.phone_2_id.phone|boolean}}\n         <tr>\n           <td {$labelStyle}>\n             {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}\n               {event.loc_block_id.phone_2_id.phone_type_id:label}\n             {else}\n               {ts}Phone{/ts}\n             {/if}\n           </td>\n           <td {$valueStyle}>\n             {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n           </td>\n         </tr>\n       {/if}\n\n       {if {event.loc_block_id.email_id.email|boolean}}\n        <tr>\n         <td {$labelStyle}>\n          {ts}Email{/ts}\n         </td>\n         <td {$valueStyle}>\n           {event.loc_block_id.email_id.email}\n         </td>\n        </tr>\n       {/if}\n\n       {if {event.loc_block_id.email_2_id.email|boolean}}\n         <tr>\n           <td {$labelStyle}>\n             {ts}Email{/ts}\n           </td>\n           <td {$valueStyle}>\n               {event.loc_block_id.email_2_id.email}\n           </td>\n         </tr>\n       {/if}\n     {/if}\n\n     {if {event.is_public|boolean} and {event.is_show_calendar_links|boolean}}\n      <tr>\n       <td colspan=\"2\" {$valueStyle}>\n        {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n        <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n       </td>\n      </tr>\n      <tr>\n       <td colspan=\"2\" {$valueStyle}>\n        {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n         <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n       </td>\n      </tr>\n     {/if}\n\n     {if {contact.email_primary.email|boolean}}\n      <tr>\n       <th {$headerStyle}>\n        {ts}Registered Email{/ts}\n       </th>\n      </tr>\n      <tr>\n       <td colspan=\"2\" {$valueStyle}>\n         {contact.email_primary.email}\n       </td>\n      </tr>\n     {/if}\n\n\n     {if {event.is_monetary|boolean}}\n      <tr>\n        <th {$headerStyle}>\n            {event.fee_label}\n        </th>\n      </tr>\n        {if $isShowLineItems}\n          {foreach from=$participants key=index item=currentParticipant}\n            {if $isPrimary || {participant.id} === $currentParticipant.id}\n              {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *}\n                <tr>\n                  <td colspan=\"2\" {$labelStyle}>\n                    {$currentParticipant.contact.display_name}\n                  </td>\n                </tr>\n              {/if}\n              <tr>\n                <td colspan=\"2\" {$valueStyle}>\n                  <table>\n                    <tr>\n                      <th>{ts}Item{/ts}</th>\n                      <th>{ts}Qty{/ts}</th>\n                      <th>{ts}Each{/ts}</th>\n                      {if $isShowTax && {contribution.tax_amount|boolean}}\n                        <th>{ts}Subtotal{/ts}</th>\n                        <th>{ts}Tax Rate{/ts}</th>\n                        <th>{ts}Tax Amount{/ts}</th>\n                      {/if}\n                      <th>{ts}Total{/ts}</th>\n                        {if $isShowParticipantCount}\n                          <th>{ts}Total Participants{/ts}</th>\n                        {/if}\n                    </tr>\n                    {foreach from=$currentParticipant.line_items item=line}\n                      <tr>\n                        <td {$tdfirstStyle}>{$line.title}</td>\n                        <td {$tdStyle} align=\"middle\">{$line.qty}</td>\n                        <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td>\n                          {if $isShowTax && {contribution.tax_amount|boolean}}\n                            <td>{$line.line_total|crmMoney:$currency}</td>\n                            {if $line.tax_rate || $line.tax_amount != \"\"}\n                              <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n                              <td>{$line.tax_amount|crmMoney:$currency}</td>\n                            {else}\n                              <td></td>\n                              <td></td>\n                            {/if}\n                          {/if}\n                        <td {$tdStyle}>\n                            {$line.line_total_inclusive|crmMoney:$currency}\n                        </td>\n                        {if $isShowParticipantCount}\n                          <td {$tdStyle}>{$line.participant_count}</td>\n                        {/if}\n                      </tr>\n                    {/foreach}\n                    {if $isShowTax && $isPrimary && ($participants|@count > 1)}\n                      <tr {$participantTotalStyle}>\n                        <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td>\n                        <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td>\n                        <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td>\n                        <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td>\n                      </tr>\n                    {/if}\n                  </table>\n                </td>\n              </tr>\n            {/if}\n          {/foreach}\n        {/if}\n        {if !$isShowLineItems}\n          {foreach from=$participants key=index item=currentParticipant}\n            {if $isPrimary || {participant.id} === $currentParticipant.id}\n              {foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n                <tr>\n                  <td {$valueStyle}>\n                    {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if}\n                  </td>\n                  <td {$valueStyle}>\n                    {$currentLineItem.line_total|crmMoney:$currency}\n                  </td>\n                </tr>\n              {/foreach}\n            {/if}\n          {/foreach}\n       {/if}\n        {if $isShowTax && {contribution.tax_amount|boolean}}\n          <tr>\n            <td {$labelStyle}>\n                {ts}Amount Before Tax:{/ts}\n            </td>\n            <td {$valueStyle}>\n                {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n            </td>\n          </tr>\n          {if !$isPrimary}\n            {* Use the participant specific tax rate breakdown *}\n            {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}\n          {/if}\n          {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n            <tr>\n              <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n              <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n            </tr>\n          {/foreach}\n        {/if}\n        {if $isShowTax && {contribution.tax_amount|boolean}}\n          <tr>\n            <td {$labelStyle}>\n              {ts}Total Tax Amount{/ts}\n            </td>\n            <td {$valueStyle}>\n              {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n            </td>\n          </tr>\n        {/if}\n        {if $isPrimary}\n          <tr>\n            <td {$labelStyle}>\n              {ts}Total Amount{/ts}\n            </td>\n            <td {$valueStyle}>\n              {contribution.total_amount}\n            </td>\n          </tr>\n          {if {contribution.balance_amount|boolean} && {contribution.paid_amount|boolean}}\n            <tr>\n              <td {$labelStyle}>{ts}Total Paid{/ts}</td>\n              <td {$valueStyle}>\n                {contribution.paid_amount|crmMoney}\n              </td>\n            </tr>\n            <tr>\n              <td {$labelStyle}>{ts}Balance{/ts}</td>\n              <td {$valueStyle}>{contribution.balance_amount}</td>\n            </tr>\n          {/if}\n          {if $isShowParticipantCount}\n            <tr>\n              <td {$labelStyle}>{ts}Total Participants{/ts}</td>\n              <td {$valueStyle}>{$line.participant_count}</td>\n            </tr>\n          {/if}\n          {if {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean} && {event.pay_later_receipt|boolean}}\n            <tr>\n              <td colspan=\"2\" {$labelStyle}>\n                {event.pay_later_receipt}\n              </td>\n            </tr>\n          {/if}\n\n          {if {participant.register_date|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                {ts}Registration Date{/ts}\n              </td>\n              <td {$valueStyle}>\n                {participant.register_date}\n              </td>\n            </tr>\n          {/if}\n\n          {if {contribution.receive_date|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {ts}Transaction Date{/ts}\n              </td>\n              <td {$valueStyle}>\n                {contribution.receive_date}\n              </td>\n            </tr>\n          {/if}\n\n          {if {contribution.financial_type_id|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {ts}Financial Type{/ts}\n              </td>\n              <td {$valueStyle}>\n                {contribution.financial_type_id:label}\n              </td>\n            </tr>\n          {/if}\n\n          {if {contribution.trxn_id|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {ts}Transaction #{/ts}\n              </td>\n              <td {$valueStyle}>\n                {contribution.trxn_id}\n              </td>\n            </tr>\n          {/if}\n\n          {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {ts}Paid By{/ts}\n              </td>\n              <td {$valueStyle}>\n                  {contribution.payment_instrument_id:label}\n              </td>\n            </tr>\n          {/if}\n\n          {if {contribution.check_number|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {ts}Check Number{/ts}\n              </td>\n              <td {$valueStyle}>\n                {contribution.check_number}\n              </td>\n            </tr>\n          {/if}\n\n          {if {contribution.address_id.display|boolean}}\n            <tr>\n              <th {$headerStyle}>\n                {ts}Billing Name and Address{/ts}\n              </th>\n            </tr>\n            <tr>\n              <td colspan=\"2\" {$valueStyle}>\n                {contribution.address_id.name}<br/>\n                {contribution.address_id.display}\n              </td>\n            </tr>\n          {/if}\n\n          {if !empty($credit_card_type)}\n            <tr>\n              <th {$headerStyle}>\n                {ts}Credit Card Information{/ts}\n              </th>\n            </tr>\n            <tr>\n              <td colspan=\"2\" {$valueStyle}>\n                {$credit_card_type}<br/>\n                {$credit_card_number}<br/>\n              </td>\n            </tr>\n          {/if}\n        {/if}\n     {/if} {* End of conditional section for Paid events *}\n\n     {if !empty($customGroup)}\n      {foreach from=$customGroup item=value key=customName}\n       <tr>\n        <th {$headerStyle}>\n         {$customName}\n        </th>\n       </tr>\n       {foreach from=$value item=v key=n}\n        <tr>\n         <td {$labelStyle}>\n          {$n}\n         </td>\n         <td {$valueStyle}>\n          {$v}\n         </td>\n        </tr>\n       {/foreach}\n      {/foreach}\n     {/if}\n\n    </table>\n   </td>\n  </tr>\n\n </table>\n\n</body>\n</html>\n',1,828,'event_offline_receipt',1,0,0,NULL),
  (30,'Events - Registration Confirmation and Receipt (off-line)','{ts}Event Confirmation{/ts} - {event.title} - {contact.display_name}\n','','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n  <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=tdfirstStyle}style=\"width: 180px; padding-bottom: 15px;\"{/capture}\n{capture assign=tdStyle}style=\"width: 100px;\"{/capture}\n{capture assign=participantTotalStyle}style=\"margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;\"{/capture}\n\n<table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n  <!-- BEGIN HEADER -->\n  <!-- You can add table row(s) here with logo or other header elements -->\n  <!-- END HEADER -->\n\n  <!-- BEGIN CONTENT -->\n\n  <tr>\n   <td>\n    {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n\n    {if $userText}\n     <p>{$userText}</p>\n    {/if}\n\n    {if !empty($isOnWaitlist)}\n      <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>\n      <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p>\n    {elseif !empty($isRequireApproval)}\n      <p>{ts}Your registration has been submitted.{/ts}</p>\n      <p>{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}</p>\n    {elseif {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean}}\n     <p>{event.pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}\n    {/if}\n\n   </td>\n  </tr>\n  <tr>\n   <td>\n    <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n     <tr>\n      <th {$headerStyle}>\n       {ts}Event Information and Location{/ts}\n      </th>\n     </tr>\n     <tr>\n      <td colspan=\"2\" {$valueStyle}>\n       {event.title}<br />\n       {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date}{/if}{/if}\n      </td>\n     </tr>\n\n     {if \"{participant.role_id:label}\" neq \'Attendee\'}\n      <tr>\n       <td {$labelStyle}>\n        {ts}Participant Role{/ts}\n       </td>\n       <td {$valueStyle}>\n         {participant.role_id:label}\n       </td>\n      </tr>\n     {/if}\n\n     {if {event.is_show_location|boolean}}\n      <tr>\n       <td colspan=\"2\" {$valueStyle}>\n         {event.location}\n       </td>\n      </tr>\n     {/if}\n\n     {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n       <tr>\n         <td colspan=\"2\" {$labelStyle}>\n           {ts}Event Contacts:{/ts}\n         </td>\n       </tr>\n\n       {if {event.loc_block_id.phone_id.phone|boolean}}\n         <tr>\n           <td {$labelStyle}>\n             {if {event.loc_block_id.phone_id.phone_type_id|boolean}}\n               {event.loc_block_id.phone_id.phone_type_id:label}\n             {else}\n               {ts}Phone{/ts}\n             {/if}\n           </td>\n         <td {$valueStyle}>\n          {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n         </td>\n        </tr>\n       {/if}\n       {if {event.loc_block_id.phone_2_id.phone|boolean}}\n         <tr>\n           <td {$labelStyle}>\n             {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}\n               {event.loc_block_id.phone_2_id.phone_type_id:label}\n             {else}\n               {ts}Phone{/ts}\n             {/if}\n           </td>\n           <td {$valueStyle}>\n             {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n           </td>\n         </tr>\n       {/if}\n\n       {if {event.loc_block_id.email_id.email|boolean}}\n        <tr>\n         <td {$labelStyle}>\n          {ts}Email{/ts}\n         </td>\n         <td {$valueStyle}>\n           {event.loc_block_id.email_id.email}\n         </td>\n        </tr>\n       {/if}\n\n       {if {event.loc_block_id.email_2_id.email|boolean}}\n         <tr>\n           <td {$labelStyle}>\n             {ts}Email{/ts}\n           </td>\n           <td {$valueStyle}>\n               {event.loc_block_id.email_2_id.email}\n           </td>\n         </tr>\n       {/if}\n     {/if}\n\n     {if {event.is_public|boolean} and {event.is_show_calendar_links|boolean}}\n      <tr>\n       <td colspan=\"2\" {$valueStyle}>\n        {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n        <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n       </td>\n      </tr>\n      <tr>\n       <td colspan=\"2\" {$valueStyle}>\n        {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n         <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n       </td>\n      </tr>\n     {/if}\n\n     {if {contact.email_primary.email|boolean}}\n      <tr>\n       <th {$headerStyle}>\n        {ts}Registered Email{/ts}\n       </th>\n      </tr>\n      <tr>\n       <td colspan=\"2\" {$valueStyle}>\n         {contact.email_primary.email}\n       </td>\n      </tr>\n     {/if}\n\n\n     {if {event.is_monetary|boolean}}\n      <tr>\n        <th {$headerStyle}>\n            {event.fee_label}\n        </th>\n      </tr>\n        {if $isShowLineItems}\n          {foreach from=$participants key=index item=currentParticipant}\n            {if $isPrimary || {participant.id} === $currentParticipant.id}\n              {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *}\n                <tr>\n                  <td colspan=\"2\" {$labelStyle}>\n                    {$currentParticipant.contact.display_name}\n                  </td>\n                </tr>\n              {/if}\n              <tr>\n                <td colspan=\"2\" {$valueStyle}>\n                  <table>\n                    <tr>\n                      <th>{ts}Item{/ts}</th>\n                      <th>{ts}Qty{/ts}</th>\n                      <th>{ts}Each{/ts}</th>\n                      {if $isShowTax && {contribution.tax_amount|boolean}}\n                        <th>{ts}Subtotal{/ts}</th>\n                        <th>{ts}Tax Rate{/ts}</th>\n                        <th>{ts}Tax Amount{/ts}</th>\n                      {/if}\n                      <th>{ts}Total{/ts}</th>\n                        {if $isShowParticipantCount}\n                          <th>{ts}Total Participants{/ts}</th>\n                        {/if}\n                    </tr>\n                    {foreach from=$currentParticipant.line_items item=line}\n                      <tr>\n                        <td {$tdfirstStyle}>{$line.title}</td>\n                        <td {$tdStyle} align=\"middle\">{$line.qty}</td>\n                        <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td>\n                          {if $isShowTax && {contribution.tax_amount|boolean}}\n                            <td>{$line.line_total|crmMoney:$currency}</td>\n                            {if $line.tax_rate || $line.tax_amount != \"\"}\n                              <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n                              <td>{$line.tax_amount|crmMoney:$currency}</td>\n                            {else}\n                              <td></td>\n                              <td></td>\n                            {/if}\n                          {/if}\n                        <td {$tdStyle}>\n                            {$line.line_total_inclusive|crmMoney:$currency}\n                        </td>\n                        {if $isShowParticipantCount}\n                          <td {$tdStyle}>{$line.participant_count}</td>\n                        {/if}\n                      </tr>\n                    {/foreach}\n                    {if $isShowTax && $isPrimary && ($participants|@count > 1)}\n                      <tr {$participantTotalStyle}>\n                        <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td>\n                        <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td>\n                        <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td>\n                        <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td>\n                      </tr>\n                    {/if}\n                  </table>\n                </td>\n              </tr>\n            {/if}\n          {/foreach}\n        {/if}\n        {if !$isShowLineItems}\n          {foreach from=$participants key=index item=currentParticipant}\n            {if $isPrimary || {participant.id} === $currentParticipant.id}\n              {foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n                <tr>\n                  <td {$valueStyle}>\n                    {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if}\n                  </td>\n                  <td {$valueStyle}>\n                    {$currentLineItem.line_total|crmMoney:$currency}\n                  </td>\n                </tr>\n              {/foreach}\n            {/if}\n          {/foreach}\n       {/if}\n        {if $isShowTax && {contribution.tax_amount|boolean}}\n          <tr>\n            <td {$labelStyle}>\n                {ts}Amount Before Tax:{/ts}\n            </td>\n            <td {$valueStyle}>\n                {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n            </td>\n          </tr>\n          {if !$isPrimary}\n            {* Use the participant specific tax rate breakdown *}\n            {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}\n          {/if}\n          {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n            <tr>\n              <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n              <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n            </tr>\n          {/foreach}\n        {/if}\n        {if $isShowTax && {contribution.tax_amount|boolean}}\n          <tr>\n            <td {$labelStyle}>\n              {ts}Total Tax Amount{/ts}\n            </td>\n            <td {$valueStyle}>\n              {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n            </td>\n          </tr>\n        {/if}\n        {if $isPrimary}\n          <tr>\n            <td {$labelStyle}>\n              {ts}Total Amount{/ts}\n            </td>\n            <td {$valueStyle}>\n              {contribution.total_amount}\n            </td>\n          </tr>\n          {if {contribution.balance_amount|boolean} && {contribution.paid_amount|boolean}}\n            <tr>\n              <td {$labelStyle}>{ts}Total Paid{/ts}</td>\n              <td {$valueStyle}>\n                {contribution.paid_amount|crmMoney}\n              </td>\n            </tr>\n            <tr>\n              <td {$labelStyle}>{ts}Balance{/ts}</td>\n              <td {$valueStyle}>{contribution.balance_amount}</td>\n            </tr>\n          {/if}\n          {if $isShowParticipantCount}\n            <tr>\n              <td {$labelStyle}>{ts}Total Participants{/ts}</td>\n              <td {$valueStyle}>{$line.participant_count}</td>\n            </tr>\n          {/if}\n          {if {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean} && {event.pay_later_receipt|boolean}}\n            <tr>\n              <td colspan=\"2\" {$labelStyle}>\n                {event.pay_later_receipt}\n              </td>\n            </tr>\n          {/if}\n\n          {if {participant.register_date|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                {ts}Registration Date{/ts}\n              </td>\n              <td {$valueStyle}>\n                {participant.register_date}\n              </td>\n            </tr>\n          {/if}\n\n          {if {contribution.receive_date|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {ts}Transaction Date{/ts}\n              </td>\n              <td {$valueStyle}>\n                {contribution.receive_date}\n              </td>\n            </tr>\n          {/if}\n\n          {if {contribution.financial_type_id|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {ts}Financial Type{/ts}\n              </td>\n              <td {$valueStyle}>\n                {contribution.financial_type_id:label}\n              </td>\n            </tr>\n          {/if}\n\n          {if {contribution.trxn_id|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {ts}Transaction #{/ts}\n              </td>\n              <td {$valueStyle}>\n                {contribution.trxn_id}\n              </td>\n            </tr>\n          {/if}\n\n          {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {ts}Paid By{/ts}\n              </td>\n              <td {$valueStyle}>\n                  {contribution.payment_instrument_id:label}\n              </td>\n            </tr>\n          {/if}\n\n          {if {contribution.check_number|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {ts}Check Number{/ts}\n              </td>\n              <td {$valueStyle}>\n                {contribution.check_number}\n              </td>\n            </tr>\n          {/if}\n\n          {if {contribution.address_id.display|boolean}}\n            <tr>\n              <th {$headerStyle}>\n                {ts}Billing Name and Address{/ts}\n              </th>\n            </tr>\n            <tr>\n              <td colspan=\"2\" {$valueStyle}>\n                {contribution.address_id.name}<br/>\n                {contribution.address_id.display}\n              </td>\n            </tr>\n          {/if}\n\n          {if !empty($credit_card_type)}\n            <tr>\n              <th {$headerStyle}>\n                {ts}Credit Card Information{/ts}\n              </th>\n            </tr>\n            <tr>\n              <td colspan=\"2\" {$valueStyle}>\n                {$credit_card_type}<br/>\n                {$credit_card_number}<br/>\n              </td>\n            </tr>\n          {/if}\n        {/if}\n     {/if} {* End of conditional section for Paid events *}\n\n     {if !empty($customGroup)}\n      {foreach from=$customGroup item=value key=customName}\n       <tr>\n        <th {$headerStyle}>\n         {$customName}\n        </th>\n       </tr>\n       {foreach from=$value item=v key=n}\n        <tr>\n         <td {$labelStyle}>\n          {$n}\n         </td>\n         <td {$valueStyle}>\n          {$v}\n         </td>\n        </tr>\n       {/foreach}\n      {/foreach}\n     {/if}\n\n    </table>\n   </td>\n  </tr>\n\n </table>\n\n</body>\n</html>\n',1,828,'event_offline_receipt',0,1,0,NULL),
- (31,'Events - Registration Confirmation and Receipt (on-line)','{if !empty($isOnWaitlist)}{ts}Wait List Confirmation{/ts}{elseif !empty($isRequireApproval)}{ts}Registration Request Confirmation{/ts}{else}{ts}Registration Confirmation{/ts}{/if} - {event.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n{$event.confirm_email_text}\n\n{else}\n  {ts}Thank you for your registration.{/ts}\n  {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}\n  {else}{if !empty($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}\n  {/if}\n{/if}\n\n{if !empty($isOnWaitlist)}\n===============================================================================\n\n{ts}You have been added to the WAIT LIST for this event.{/ts}\n\n{if $isPrimary}\n{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}\n{/if}\n===============================================================================\n\n{elseif !empty($isRequireApproval)}\n===============================================================================\n\n{ts}Your registration has been submitted.{/ts}\n\n{if $isPrimary}\n{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}\n\n{/if}\n===============================================================================\n\n{elseif $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}}\n\n\n===============================================================================\n\n{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}\n===============================================================================\n\n{/if}\n\n\n===============================================================================\n\n{ts}Event Information and Location{/ts}\n\n===============================================================================\n\n{event.title}\n{event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:\"%A\"} {$event.event_end_date|crmDate}{/if}{/if}\n\n{if \"{participant.role_id:label}\" neq \'Attendee\'}\n{ts}Participant Role{/ts}: {participant.role_id:label}\n{/if}\n\n{if !empty($isShowLocation)}\n{event.location}\n{/if}{*End of isShowLocation condition*}\n\n{if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n\n{ts}Event Contacts:{/ts}\n{if {event.loc_block_id.phone_id.phone|boolean}}\n  {if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n{/if}\n{if {event.loc_block_id.email_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_id.email}\n{/if}\n{if {event.loc_block_id.email_2_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_2_id.email}{/if}\n{/if}\n{if {event.is_public|boolean} and {event.is_show_calendar_links|boolean}}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if !empty($payer.name)}\nYou were registered by: {$payer.name}\n{/if}\n{if {event.is_monetary|boolean} and empty($isRequireApproval)} {* This section for Paid events only.*}\n\n===============================================================================\n\n{event.fee_label}\n===============================================================================\n\n{if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}\n\n{if $value neq \'skip\'}\n{if $isPrimary}\n{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}\n{ts 1=$priceset+1}Participant %1{/ts} {if !empty($part.$priceset)}{$part.$priceset.info}{/if}\n\n{/if}\n{/if}\n----------------------------------------------------------------------------------------------------------------\n\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:\"%10s\"}{/if}\n----------------------------------------------------------------------------------------------------------------\n\n{foreach from=$value item=line}\n{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:$currency|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.line_total|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"}  {$line.tax_rate|string_format:\"%.2f\"} %  {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else}                  {/if}  {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"}{if !empty($ts_participant_count)}{$ts_participant_count|string_format:\"%10s\"}{/if}\n{/foreach}\n----------------------------------------------------------------------------------------------------------------\n{if !empty($individual)}{ts}Participant Total{/ts} {$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%29s\"} {$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%33s\"} {$individual.$priceset.totalAmtWithTax|crmMoney:$currency|string_format:\"%12s\"}{/if}\n{/if}\n{\"\"|string_format:\"%120s\"}\n{/foreach}\n{\"\"|string_format:\"%120s\"}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n{if !$isPrimary}{* Use the participant specific tax rate breakdown *}{assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}{/if}\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}   {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n{/if}\n{/if}\n\n{if !$isShowLineItems}\n{foreach from=$participants key=index item=currentParticipant}\n{if $isPrimary || {participant.id} === $currentParticipant.id}\n{foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n{$currentLineItem.label} {if $isPrimary} - {$currentParticipant.contact.display_name}{/if} - {$currentLineItem.line_total|crmMoney:$currency}\n{/foreach}\n{/if}\n{/foreach}\n{/if}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n{/if}\n{if $isPrimary}\n\n{ts}Total Amount{/ts}: {if !empty($totalAmount)}{$totalAmount|crmMoney:$currency}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n\n{if !empty($pricesetFieldsCount)}\n      {assign var=\"count\" value= 0}\n      {foreach from=$lineItem item=pcount}\n      {assign var=\"lineItemCount\" value=0}\n      {if $pcount neq \'skip\'}\n        {foreach from=$pcount item=p_count}\n        {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n        {/foreach}\n      {if $lineItemCount < 1}\n        {assign var=\"lineItemCount\" value=1}\n      {/if}\n      {assign var=\"count\" value=$count+$lineItemCount}\n      {/if}\n      {/foreach}\n\n{ts}Total Participants{/ts}: {$count}\n{/if}\n\n{if {participant.register_date|boolean}}\n{ts}Registration Date{/ts}: {participant.register_date}\n{/if}\n{if {contribution.receive_date|boolean}}\n{ts}Transaction Date{/ts}: {contribution.receive_date}\n{/if}\n{if !empty($financialTypeName)}\n{ts}Financial Type{/ts}: {$financialTypeName}\n{/if}\n{if !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n{/if}\n{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{/if}\n{if !empty($checkNumber)}\n{ts}Check Number{/ts}: {$checkNumber}\n{/if}\n{if {contribution.address_id.display|boolean}}\n\n===============================================================================\n\n{ts}Billing Name and Address{/ts}\n\n===============================================================================\n\n{contribution.address_id.name}\n{contribution.address_id.display}\n{/if}\n\n{if !empty($credit_card_type)}\n===============================================================================\n\n{ts}Credit Card Information{/ts}\n\n===============================================================================\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n{/if} {* End of conditional section for Paid events *}\n\n{if !empty($customPre)}\n{foreach from=$customPre item=customPr key=i}\n===============================================================================\n\n{$customPre_grouptitle.$i}\n===============================================================================\n\n{foreach from=$customPr item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($customPost)}\n{foreach from=$customPost item=customPos key=j}\n===============================================================================\n\n{$customPost_grouptitle.$j}\n===============================================================================\n\n{foreach from=$customPos item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n{if !empty($customProfile)}\n\n{foreach from=$customProfile.profile item=eachParticipant key=participantID}\n===============================================================================\n\n{ts 1=$participantID+2}Participant Information - Participant %1{/ts}\n\n===============================================================================\n\n{foreach from=$eachParticipant item=eachProfile key=pid}\n------------------------------------------------------------------------------\n\n{$customProfile.title.$pid}\n------------------------------------------------------------------------------\n\n{foreach from=$eachProfile item=val key=field}\n{foreach from=$val item=v key=f}\n{$field}: {$v}\n{/foreach}\n{/foreach}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($event.allow_selfcancelxfer)}\n{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}\n   {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid={participant.id}&{contact.checksum}\"  h=0 a=1 fe=1}{/capture}\n{ts}Transfer or cancel your registration:{/ts} {$selfService}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n  <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=tdfirstStyle}style=\"width: 180px; padding-bottom: 15px;\"{/capture}\n{capture assign=tdStyle}style=\"width: 100px;\"{/capture}\n{capture assign=participantTotalStyle}style=\"margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;\"{/capture}\n\n<table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n  <!-- BEGIN HEADER -->\n  <!-- You can add table row(s) here with logo or other header elements -->\n  <!-- END HEADER -->\n\n  <!-- BEGIN CONTENT -->\n  <tr>\n    <td>\n      {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n      {if {event.confirm_email_text|boolean} AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n        <p>{event.confirm_email_text}</p>\n      {else}\n        <p>{ts}Thank you for your registration.{/ts}\n            {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to<strong> %1</strong>.{/ts}\n            {else}\n              {if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to<strong>waitlisted</strong>.{/ts}\n              {else}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts}\n              {/if}\n            {/if}\n        </p>\n      {/if}\n\n      {if !empty($isOnWaitlist)}\n          <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>\n            {if $isPrimary}\n              <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p>\n            {/if}\n        {elseif !empty($isRequireApproval)}\n          <p>{ts}Your registration has been submitted.{/ts}</p>\n            {if $isPrimary}\n              <p>{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}</p>\n            {/if}\n        {elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)}\n          <p>{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}</p>\n        {/if}\n    </td>\n  </tr>\n  <tr>\n    <td>\n      <table style=\"width:100%; max-width:700px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n        <tr>\n          <th {$headerStyle}>\n            {ts}Event Information and Location{/ts}\n          </th>\n        </tr>\n        <tr>\n          <td colspan=\"2\" {$valueStyle}>\n            {event.title}<br/>\n            {event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date|crmDate:\"%A\"} {event.end_date|crmDate}{/if}{/if}\n          </td>\n        </tr>\n\n        {if \"{participant.role_id:label}\" neq \'Attendee\'}\n          <tr>\n            <td {$labelStyle}>\n              {ts}Participant Role{/ts}\n            </td>\n            <td {$valueStyle}>\n              {participant.role_id:label}\n            </td>\n          </tr>\n        {/if}\n\n        {if !empty($isShowLocation)}\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {event.location}\n            </td>\n          </tr>\n        {/if}\n\n        {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n          <tr>\n            <td colspan=\"2\" {$labelStyle}>\n              {ts}Event Contacts:{/ts}\n            </td>\n          </tr>\n\n          {if {event.loc_block_id.phone_id.phone|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {if {event.loc_block_id.phone_id.phone_type_id|boolean}}\n                      {event.loc_block_id.phone_id.phone_type_id:label}\n                  {else}\n                      {ts}Phone{/ts}\n                  {/if}\n              </td>\n              <td {$valueStyle}>\n                  {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n              </td>\n            </tr>\n          {/if}\n          {if {event.loc_block_id.phone_2_id.phone|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}\n                      {event.loc_block_id.phone_2_id.phone_type_id:label}\n                  {else}\n                      {ts}Phone{/ts}\n                  {/if}\n              </td>\n              <td {$valueStyle}>\n                  {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n              </td>\n            </tr>\n          {/if}\n          {if {event.loc_block_id.email_id.email|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                {ts}Email{/ts}\n              </td>\n              <td {$valueStyle}>\n                {event.loc_block_id.email_id.email}\n              </td>\n            </tr>\n          {/if}\n          {if {event.loc_block_id.email_2_id.email|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                {ts}Email{/ts}\n              </td>\n              <td {$valueStyle}>\n                {event.loc_block_id.email_2_id.email}\n              </td>\n            </tr>\n          {/if}\n        {/if}\n\n        {if {event.is_public|boolean} and {event.is_show_calendar_links|boolean}}\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n              <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n            </td>\n          </tr>\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n              <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n            </td>\n          </tr>\n        {/if}\n\n        {if {event.is_share|boolean}}\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {capture assign=eventUrl}{crmURL p=\'civicrm/event/info\' q=\"id={event.id}&reset=1\" a=true fe=1 h=1}{/capture}\n              {include file=\"CRM/common/SocialNetwork.tpl\" emailMode=true url=$eventUrl pageURL=$eventUrl title=\'{event.title}\'}\n            </td>\n          </tr>\n        {/if}\n        {if !empty($payer.name)}\n          <tr>\n            <th {$headerStyle}>\n              {ts}You were registered by:{/ts}\n            </th>\n          </tr>\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {$payer.name}\n            </td>\n          </tr>\n        {/if}\n        {if {event.is_monetary|boolean} and empty($isRequireApproval)}\n          <tr>\n            <th {$headerStyle}>\n              {event.fee_label}\n            </th>\n          </tr>\n            {if $isShowLineItems}\n              {foreach from=$participants key=index item=currentParticipant}\n                {if $isPrimary || {participant.id} === $currentParticipant.id}\n                  {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *}\n                    <tr>\n                      <td colspan=\"2\" {$labelStyle}>\n                        {$currentParticipant.contact.display_name}\n                      </td>\n                    </tr>\n                  {/if}\n                  <tr>\n                    <td colspan=\"2\" {$valueStyle}>\n                      <table>\n                        <tr>\n                          <th>{ts}Item{/ts}</th>\n                          <th>{ts}Qty{/ts}</th>\n                          <th>{ts}Each{/ts}</th>\n                          {if $isShowTax && {contribution.tax_amount|boolean}}\n                              <th>{ts}Subtotal{/ts}</th>\n                              <th>{ts}Tax Rate{/ts}</th>\n                              <th>{ts}Tax Amount{/ts}</th>\n                            {/if}\n                          <th>{ts}Total{/ts}</th>\n                          {if !empty($pricesetFieldsCount)}\n                            <th>{ts}Total Participants{/ts}</th>\n                          {/if}\n                        </tr>\n                        {foreach from=$currentParticipant.line_items item=line}\n                          <tr>\n                            <td {$tdfirstStyle}>{$line.title}</td>\n                            <td {$tdStyle} align=\"middle\">{$line.qty}</td>\n                            <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td>\n                            {if $isShowTax && {contribution.tax_amount|boolean}}\n                              <td>{$line.line_total|crmMoney:$currency}</td>\n                              {if $line.tax_rate || $line.tax_amount != \"\"}\n                                <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n                                <td>{$line.tax_amount|crmMoney:$currency}</td>\n                              {else}\n                                <td></td>\n                                <td></td>\n                              {/if}\n                            {/if}\n                            <td {$tdStyle}>\n                              {$line.line_total_inclusive|crmMoney:$currency}\n                            </td>\n                            {if !empty($pricesetFieldsCount)}\n                              <td {$tdStyle}>{$line.participant_count}</td>\n                            {/if}\n                          </tr>\n                        {/foreach}\n                        {if $isShowTax && $isPrimary && ($participants|@count > 1)}\n                          <tr {$participantTotalStyle}>\n                            <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td>\n                            <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td>\n                            <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td>\n                            <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td>\n                          </tr>\n                        {/if}\n                      </table>\n                    </td>\n                  </tr>\n                {/if}\n              {/foreach}\n            {/if}\n            {if !$isShowLineItems}\n              {foreach from=$participants key=index item=currentParticipant}\n                {if $isPrimary || {participant.id} === $currentParticipant.id}\n                  {foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n                  <tr>\n                    <td {$valueStyle}>\n                      {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if}\n                    </td>\n                    <td {$valueStyle}>\n                      {$currentLineItem.line_total|crmMoney:$currency}\n                    </td>\n                  </tr>\n                  {/foreach}\n                {/if}\n              {/foreach}\n            {/if}\n            {if $isShowTax && {contribution.tax_amount|boolean}}\n              <tr>\n                <td {$labelStyle}>\n                  {ts}Amount Before Tax:{/ts}\n                </td>\n                <td {$valueStyle}>\n                  {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n                </td>\n              </tr>\n              {if !$isPrimary}\n                {* Use the participant specific tax rate breakdown *}\n                {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}\n              {/if}\n              {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n                <tr>\n                  <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n                  <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n                </tr>\n              {/foreach}\n              <tr>\n                <td {$labelStyle}>\n                    {ts}Total Tax Amount{/ts}\n                </td>\n                <td {$valueStyle}>\n                    {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n                </td>\n              </tr>\n            {/if}\n            {if $isPrimary}\n              <tr>\n                <td {$labelStyle}>\n                  {ts}Total Amount{/ts}\n                </td>\n                <td {$valueStyle}>\n                  {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n                </td>\n              </tr>\n              {if !empty($pricesetFieldsCount)}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Total Participants{/ts}</td>\n                  <td {$valueStyle}>\n                    {assign var=\"count\" value= 0}\n                    {foreach from=$lineItem item=pcount}\n                      {assign var=\"lineItemCount\" value=0}\n                      {if $pcount neq \'skip\'}\n                        {foreach from=$pcount item=p_count}\n                          {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n                        {/foreach}\n                        {if $lineItemCount < 1}\n                          {assign var=\"lineItemCount\" value=1}\n                        {/if}\n                        {assign var=\"count\" value=$count+$lineItemCount}\n                      {/if}\n                    {/foreach}\n                    {$count}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {participant.register_date|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Registration Date{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {participant.register_date}\n                  </td>\n                </tr>\n              {/if}\n\n              {if !empty($receive_date)}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Transaction Date{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {$receive_date|crmDate}\n                  </td>\n                </tr>\n              {/if}\n\n              {if !empty($financialTypeName)}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Financial Type{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {$financialTypeName}\n                  </td>\n                </tr>\n              {/if}\n\n              {if !empty($trxn_id)}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Transaction #{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {$trxn_id}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Paid By{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {contribution.payment_instrument_id:label}\n                  </td>\n                </tr>\n              {/if}\n\n              {if !empty($checkNumber)}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Check Number{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {$checkNumber}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.address_id.display|boolean}}\n                <tr>\n                  <th {$headerStyle}>\n                    {ts}Billing Name and Address{/ts}\n                  </th>\n                </tr>\n                <tr>\n                  <td colspan=\"2\" {$valueStyle}>\n                    {contribution.address_id.name}<br/>\n                    {contribution.address_id.display}\n                  </td>\n                </tr>\n              {/if}\n\n              {if !empty($credit_card_type)}\n                <tr>\n                  <th {$headerStyle}>\n                    {ts}Credit Card Information{/ts}\n                  </th>\n                </tr>\n                <tr>\n                  <td colspan=\"2\" {$valueStyle}>\n                    {$credit_card_type}<br/>\n                    {$credit_card_number}<br/>\n                    {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n                  </td>\n                </tr>\n              {/if}\n            {/if}\n\n          {/if} {* End of conditional section for Paid events *}\n\n        {if !empty($customPre)}\n          {foreach from=$customPre item=customPr key=i}\n            <tr>\n              <th {$headerStyle}>{$customPre_grouptitle.$i}</th>\n            </tr>\n            {foreach from=$customPr item=customValue key=customName}\n              <tr>\n                <td {$labelStyle}>{$customName}</td>\n                <td {$valueStyle}>{$customValue}</td>\n              </tr>\n            {/foreach}\n          {/foreach}\n        {/if}\n\n        {if !empty($customPost)}\n          {foreach from=$customPost item=customPos key=j}\n            <tr>\n              <th {$headerStyle}>{$customPost_grouptitle.$j}</th>\n            </tr>\n            {foreach from=$customPos item=customValue key=customName}\n              <tr>\n                <td {$labelStyle}>{$customName}</td>\n                <td {$valueStyle}>{$customValue}</td>\n              </tr>\n            {/foreach}\n          {/foreach}\n        {/if}\n\n        {if !empty($customProfile)}\n          {foreach from=$customProfile.profile item=eachParticipant key=participantID}\n            <tr>\n              <th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th>\n            </tr>\n            {foreach from=$eachParticipant item=eachProfile key=pid}\n              <tr>\n                <th {$headerStyle}>{$customProfile.title.$pid}</th>\n              </tr>\n              {foreach from=$eachProfile item=val key=field}\n                <tr>\n                  {foreach from=$val item=v key=f}\n                    <td {$labelStyle}>{$field}</td>\n                    <td {$valueStyle}>{$v}</td>\n                  {/foreach}\n                </tr>\n              {/foreach}\n            {/foreach}\n          {/foreach}\n        {/if}\n\n      </table>\n      {if !empty($event.allow_selfcancelxfer)}\n        <tr>\n          <td colspan=\"2\" {$valueStyle}>\n            {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}<br/>\n            {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid={participant.id}&{contact.checksum}\"  h=0 a=1 fe=1}{/capture}\n            <a href=\"{$selfService}\">{ts}Click here to transfer or cancel your registration.{/ts}</a>\n          </td>\n        </tr>\n      {/if}\n </table>\n\n</body>\n</html>\n',1,829,'event_online_receipt',1,0,0,NULL),
- (32,'Events - Registration Confirmation and Receipt (on-line)','{if !empty($isOnWaitlist)}{ts}Wait List Confirmation{/ts}{elseif !empty($isRequireApproval)}{ts}Registration Request Confirmation{/ts}{else}{ts}Registration Confirmation{/ts}{/if} - {event.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n{$event.confirm_email_text}\n\n{else}\n  {ts}Thank you for your registration.{/ts}\n  {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}\n  {else}{if !empty($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}\n  {/if}\n{/if}\n\n{if !empty($isOnWaitlist)}\n===============================================================================\n\n{ts}You have been added to the WAIT LIST for this event.{/ts}\n\n{if $isPrimary}\n{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}\n{/if}\n===============================================================================\n\n{elseif !empty($isRequireApproval)}\n===============================================================================\n\n{ts}Your registration has been submitted.{/ts}\n\n{if $isPrimary}\n{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}\n\n{/if}\n===============================================================================\n\n{elseif $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}}\n\n\n===============================================================================\n\n{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}\n===============================================================================\n\n{/if}\n\n\n===============================================================================\n\n{ts}Event Information and Location{/ts}\n\n===============================================================================\n\n{event.title}\n{event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:\"%A\"} {$event.event_end_date|crmDate}{/if}{/if}\n\n{if \"{participant.role_id:label}\" neq \'Attendee\'}\n{ts}Participant Role{/ts}: {participant.role_id:label}\n{/if}\n\n{if !empty($isShowLocation)}\n{event.location}\n{/if}{*End of isShowLocation condition*}\n\n{if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n\n{ts}Event Contacts:{/ts}\n{if {event.loc_block_id.phone_id.phone|boolean}}\n  {if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n{/if}\n{if {event.loc_block_id.email_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_id.email}\n{/if}\n{if {event.loc_block_id.email_2_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_2_id.email}{/if}\n{/if}\n{if {event.is_public|boolean} and {event.is_show_calendar_links|boolean}}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if !empty($payer.name)}\nYou were registered by: {$payer.name}\n{/if}\n{if {event.is_monetary|boolean} and empty($isRequireApproval)} {* This section for Paid events only.*}\n\n===============================================================================\n\n{event.fee_label}\n===============================================================================\n\n{if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}\n\n{if $value neq \'skip\'}\n{if $isPrimary}\n{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}\n{ts 1=$priceset+1}Participant %1{/ts} {if !empty($part.$priceset)}{$part.$priceset.info}{/if}\n\n{/if}\n{/if}\n----------------------------------------------------------------------------------------------------------------\n\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:\"%10s\"}{/if}\n----------------------------------------------------------------------------------------------------------------\n\n{foreach from=$value item=line}\n{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:$currency|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.line_total|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"}  {$line.tax_rate|string_format:\"%.2f\"} %  {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else}                  {/if}  {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"}{if !empty($ts_participant_count)}{$ts_participant_count|string_format:\"%10s\"}{/if}\n{/foreach}\n----------------------------------------------------------------------------------------------------------------\n{if !empty($individual)}{ts}Participant Total{/ts} {$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%29s\"} {$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%33s\"} {$individual.$priceset.totalAmtWithTax|crmMoney:$currency|string_format:\"%12s\"}{/if}\n{/if}\n{\"\"|string_format:\"%120s\"}\n{/foreach}\n{\"\"|string_format:\"%120s\"}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n{if !$isPrimary}{* Use the participant specific tax rate breakdown *}{assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}{/if}\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}   {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n{/if}\n{/if}\n\n{if !$isShowLineItems}\n{foreach from=$participants key=index item=currentParticipant}\n{if $isPrimary || {participant.id} === $currentParticipant.id}\n{foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n{$currentLineItem.label} {if $isPrimary} - {$currentParticipant.contact.display_name}{/if} - {$currentLineItem.line_total|crmMoney:$currency}\n{/foreach}\n{/if}\n{/foreach}\n{/if}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n{/if}\n{if $isPrimary}\n\n{ts}Total Amount{/ts}: {if !empty($totalAmount)}{$totalAmount|crmMoney:$currency}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n\n{if !empty($pricesetFieldsCount)}\n      {assign var=\"count\" value= 0}\n      {foreach from=$lineItem item=pcount}\n      {assign var=\"lineItemCount\" value=0}\n      {if $pcount neq \'skip\'}\n        {foreach from=$pcount item=p_count}\n        {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n        {/foreach}\n      {if $lineItemCount < 1}\n        {assign var=\"lineItemCount\" value=1}\n      {/if}\n      {assign var=\"count\" value=$count+$lineItemCount}\n      {/if}\n      {/foreach}\n\n{ts}Total Participants{/ts}: {$count}\n{/if}\n\n{if {participant.register_date|boolean}}\n{ts}Registration Date{/ts}: {participant.register_date}\n{/if}\n{if {contribution.receive_date|boolean}}\n{ts}Transaction Date{/ts}: {contribution.receive_date}\n{/if}\n{if !empty($financialTypeName)}\n{ts}Financial Type{/ts}: {$financialTypeName}\n{/if}\n{if !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n{/if}\n{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{/if}\n{if !empty($checkNumber)}\n{ts}Check Number{/ts}: {$checkNumber}\n{/if}\n{if {contribution.address_id.display|boolean}}\n\n===============================================================================\n\n{ts}Billing Name and Address{/ts}\n\n===============================================================================\n\n{contribution.address_id.name}\n{contribution.address_id.display}\n{/if}\n\n{if !empty($credit_card_type)}\n===============================================================================\n\n{ts}Credit Card Information{/ts}\n\n===============================================================================\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n{/if} {* End of conditional section for Paid events *}\n\n{if !empty($customPre)}\n{foreach from=$customPre item=customPr key=i}\n===============================================================================\n\n{$customPre_grouptitle.$i}\n===============================================================================\n\n{foreach from=$customPr item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($customPost)}\n{foreach from=$customPost item=customPos key=j}\n===============================================================================\n\n{$customPost_grouptitle.$j}\n===============================================================================\n\n{foreach from=$customPos item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n{if !empty($customProfile)}\n\n{foreach from=$customProfile.profile item=eachParticipant key=participantID}\n===============================================================================\n\n{ts 1=$participantID+2}Participant Information - Participant %1{/ts}\n\n===============================================================================\n\n{foreach from=$eachParticipant item=eachProfile key=pid}\n------------------------------------------------------------------------------\n\n{$customProfile.title.$pid}\n------------------------------------------------------------------------------\n\n{foreach from=$eachProfile item=val key=field}\n{foreach from=$val item=v key=f}\n{$field}: {$v}\n{/foreach}\n{/foreach}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($event.allow_selfcancelxfer)}\n{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}\n   {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid={participant.id}&{contact.checksum}\"  h=0 a=1 fe=1}{/capture}\n{ts}Transfer or cancel your registration:{/ts} {$selfService}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n  <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=tdfirstStyle}style=\"width: 180px; padding-bottom: 15px;\"{/capture}\n{capture assign=tdStyle}style=\"width: 100px;\"{/capture}\n{capture assign=participantTotalStyle}style=\"margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;\"{/capture}\n\n<table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n  <!-- BEGIN HEADER -->\n  <!-- You can add table row(s) here with logo or other header elements -->\n  <!-- END HEADER -->\n\n  <!-- BEGIN CONTENT -->\n  <tr>\n    <td>\n      {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n      {if {event.confirm_email_text|boolean} AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n        <p>{event.confirm_email_text}</p>\n      {else}\n        <p>{ts}Thank you for your registration.{/ts}\n            {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to<strong> %1</strong>.{/ts}\n            {else}\n              {if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to<strong>waitlisted</strong>.{/ts}\n              {else}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts}\n              {/if}\n            {/if}\n        </p>\n      {/if}\n\n      {if !empty($isOnWaitlist)}\n          <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>\n            {if $isPrimary}\n              <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p>\n            {/if}\n        {elseif !empty($isRequireApproval)}\n          <p>{ts}Your registration has been submitted.{/ts}</p>\n            {if $isPrimary}\n              <p>{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}</p>\n            {/if}\n        {elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)}\n          <p>{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}</p>\n        {/if}\n    </td>\n  </tr>\n  <tr>\n    <td>\n      <table style=\"width:100%; max-width:700px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n        <tr>\n          <th {$headerStyle}>\n            {ts}Event Information and Location{/ts}\n          </th>\n        </tr>\n        <tr>\n          <td colspan=\"2\" {$valueStyle}>\n            {event.title}<br/>\n            {event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date|crmDate:\"%A\"} {event.end_date|crmDate}{/if}{/if}\n          </td>\n        </tr>\n\n        {if \"{participant.role_id:label}\" neq \'Attendee\'}\n          <tr>\n            <td {$labelStyle}>\n              {ts}Participant Role{/ts}\n            </td>\n            <td {$valueStyle}>\n              {participant.role_id:label}\n            </td>\n          </tr>\n        {/if}\n\n        {if !empty($isShowLocation)}\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {event.location}\n            </td>\n          </tr>\n        {/if}\n\n        {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n          <tr>\n            <td colspan=\"2\" {$labelStyle}>\n              {ts}Event Contacts:{/ts}\n            </td>\n          </tr>\n\n          {if {event.loc_block_id.phone_id.phone|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {if {event.loc_block_id.phone_id.phone_type_id|boolean}}\n                      {event.loc_block_id.phone_id.phone_type_id:label}\n                  {else}\n                      {ts}Phone{/ts}\n                  {/if}\n              </td>\n              <td {$valueStyle}>\n                  {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n              </td>\n            </tr>\n          {/if}\n          {if {event.loc_block_id.phone_2_id.phone|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}\n                      {event.loc_block_id.phone_2_id.phone_type_id:label}\n                  {else}\n                      {ts}Phone{/ts}\n                  {/if}\n              </td>\n              <td {$valueStyle}>\n                  {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n              </td>\n            </tr>\n          {/if}\n          {if {event.loc_block_id.email_id.email|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                {ts}Email{/ts}\n              </td>\n              <td {$valueStyle}>\n                {event.loc_block_id.email_id.email}\n              </td>\n            </tr>\n          {/if}\n          {if {event.loc_block_id.email_2_id.email|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                {ts}Email{/ts}\n              </td>\n              <td {$valueStyle}>\n                {event.loc_block_id.email_2_id.email}\n              </td>\n            </tr>\n          {/if}\n        {/if}\n\n        {if {event.is_public|boolean} and {event.is_show_calendar_links|boolean}}\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n              <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n            </td>\n          </tr>\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n              <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n            </td>\n          </tr>\n        {/if}\n\n        {if {event.is_share|boolean}}\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {capture assign=eventUrl}{crmURL p=\'civicrm/event/info\' q=\"id={event.id}&reset=1\" a=true fe=1 h=1}{/capture}\n              {include file=\"CRM/common/SocialNetwork.tpl\" emailMode=true url=$eventUrl pageURL=$eventUrl title=\'{event.title}\'}\n            </td>\n          </tr>\n        {/if}\n        {if !empty($payer.name)}\n          <tr>\n            <th {$headerStyle}>\n              {ts}You were registered by:{/ts}\n            </th>\n          </tr>\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {$payer.name}\n            </td>\n          </tr>\n        {/if}\n        {if {event.is_monetary|boolean} and empty($isRequireApproval)}\n          <tr>\n            <th {$headerStyle}>\n              {event.fee_label}\n            </th>\n          </tr>\n            {if $isShowLineItems}\n              {foreach from=$participants key=index item=currentParticipant}\n                {if $isPrimary || {participant.id} === $currentParticipant.id}\n                  {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *}\n                    <tr>\n                      <td colspan=\"2\" {$labelStyle}>\n                        {$currentParticipant.contact.display_name}\n                      </td>\n                    </tr>\n                  {/if}\n                  <tr>\n                    <td colspan=\"2\" {$valueStyle}>\n                      <table>\n                        <tr>\n                          <th>{ts}Item{/ts}</th>\n                          <th>{ts}Qty{/ts}</th>\n                          <th>{ts}Each{/ts}</th>\n                          {if $isShowTax && {contribution.tax_amount|boolean}}\n                              <th>{ts}Subtotal{/ts}</th>\n                              <th>{ts}Tax Rate{/ts}</th>\n                              <th>{ts}Tax Amount{/ts}</th>\n                            {/if}\n                          <th>{ts}Total{/ts}</th>\n                          {if !empty($pricesetFieldsCount)}\n                            <th>{ts}Total Participants{/ts}</th>\n                          {/if}\n                        </tr>\n                        {foreach from=$currentParticipant.line_items item=line}\n                          <tr>\n                            <td {$tdfirstStyle}>{$line.title}</td>\n                            <td {$tdStyle} align=\"middle\">{$line.qty}</td>\n                            <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td>\n                            {if $isShowTax && {contribution.tax_amount|boolean}}\n                              <td>{$line.line_total|crmMoney:$currency}</td>\n                              {if $line.tax_rate || $line.tax_amount != \"\"}\n                                <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n                                <td>{$line.tax_amount|crmMoney:$currency}</td>\n                              {else}\n                                <td></td>\n                                <td></td>\n                              {/if}\n                            {/if}\n                            <td {$tdStyle}>\n                              {$line.line_total_inclusive|crmMoney:$currency}\n                            </td>\n                            {if !empty($pricesetFieldsCount)}\n                              <td {$tdStyle}>{$line.participant_count}</td>\n                            {/if}\n                          </tr>\n                        {/foreach}\n                        {if $isShowTax && $isPrimary && ($participants|@count > 1)}\n                          <tr {$participantTotalStyle}>\n                            <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td>\n                            <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td>\n                            <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td>\n                            <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td>\n                          </tr>\n                        {/if}\n                      </table>\n                    </td>\n                  </tr>\n                {/if}\n              {/foreach}\n            {/if}\n            {if !$isShowLineItems}\n              {foreach from=$participants key=index item=currentParticipant}\n                {if $isPrimary || {participant.id} === $currentParticipant.id}\n                  {foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n                  <tr>\n                    <td {$valueStyle}>\n                      {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if}\n                    </td>\n                    <td {$valueStyle}>\n                      {$currentLineItem.line_total|crmMoney:$currency}\n                    </td>\n                  </tr>\n                  {/foreach}\n                {/if}\n              {/foreach}\n            {/if}\n            {if $isShowTax && {contribution.tax_amount|boolean}}\n              <tr>\n                <td {$labelStyle}>\n                  {ts}Amount Before Tax:{/ts}\n                </td>\n                <td {$valueStyle}>\n                  {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n                </td>\n              </tr>\n              {if !$isPrimary}\n                {* Use the participant specific tax rate breakdown *}\n                {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}\n              {/if}\n              {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n                <tr>\n                  <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n                  <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n                </tr>\n              {/foreach}\n              <tr>\n                <td {$labelStyle}>\n                    {ts}Total Tax Amount{/ts}\n                </td>\n                <td {$valueStyle}>\n                    {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n                </td>\n              </tr>\n            {/if}\n            {if $isPrimary}\n              <tr>\n                <td {$labelStyle}>\n                  {ts}Total Amount{/ts}\n                </td>\n                <td {$valueStyle}>\n                  {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n                </td>\n              </tr>\n              {if !empty($pricesetFieldsCount)}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Total Participants{/ts}</td>\n                  <td {$valueStyle}>\n                    {assign var=\"count\" value= 0}\n                    {foreach from=$lineItem item=pcount}\n                      {assign var=\"lineItemCount\" value=0}\n                      {if $pcount neq \'skip\'}\n                        {foreach from=$pcount item=p_count}\n                          {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n                        {/foreach}\n                        {if $lineItemCount < 1}\n                          {assign var=\"lineItemCount\" value=1}\n                        {/if}\n                        {assign var=\"count\" value=$count+$lineItemCount}\n                      {/if}\n                    {/foreach}\n                    {$count}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {participant.register_date|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Registration Date{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {participant.register_date}\n                  </td>\n                </tr>\n              {/if}\n\n              {if !empty($receive_date)}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Transaction Date{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {$receive_date|crmDate}\n                  </td>\n                </tr>\n              {/if}\n\n              {if !empty($financialTypeName)}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Financial Type{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {$financialTypeName}\n                  </td>\n                </tr>\n              {/if}\n\n              {if !empty($trxn_id)}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Transaction #{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {$trxn_id}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Paid By{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {contribution.payment_instrument_id:label}\n                  </td>\n                </tr>\n              {/if}\n\n              {if !empty($checkNumber)}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Check Number{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {$checkNumber}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.address_id.display|boolean}}\n                <tr>\n                  <th {$headerStyle}>\n                    {ts}Billing Name and Address{/ts}\n                  </th>\n                </tr>\n                <tr>\n                  <td colspan=\"2\" {$valueStyle}>\n                    {contribution.address_id.name}<br/>\n                    {contribution.address_id.display}\n                  </td>\n                </tr>\n              {/if}\n\n              {if !empty($credit_card_type)}\n                <tr>\n                  <th {$headerStyle}>\n                    {ts}Credit Card Information{/ts}\n                  </th>\n                </tr>\n                <tr>\n                  <td colspan=\"2\" {$valueStyle}>\n                    {$credit_card_type}<br/>\n                    {$credit_card_number}<br/>\n                    {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n                  </td>\n                </tr>\n              {/if}\n            {/if}\n\n          {/if} {* End of conditional section for Paid events *}\n\n        {if !empty($customPre)}\n          {foreach from=$customPre item=customPr key=i}\n            <tr>\n              <th {$headerStyle}>{$customPre_grouptitle.$i}</th>\n            </tr>\n            {foreach from=$customPr item=customValue key=customName}\n              <tr>\n                <td {$labelStyle}>{$customName}</td>\n                <td {$valueStyle}>{$customValue}</td>\n              </tr>\n            {/foreach}\n          {/foreach}\n        {/if}\n\n        {if !empty($customPost)}\n          {foreach from=$customPost item=customPos key=j}\n            <tr>\n              <th {$headerStyle}>{$customPost_grouptitle.$j}</th>\n            </tr>\n            {foreach from=$customPos item=customValue key=customName}\n              <tr>\n                <td {$labelStyle}>{$customName}</td>\n                <td {$valueStyle}>{$customValue}</td>\n              </tr>\n            {/foreach}\n          {/foreach}\n        {/if}\n\n        {if !empty($customProfile)}\n          {foreach from=$customProfile.profile item=eachParticipant key=participantID}\n            <tr>\n              <th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th>\n            </tr>\n            {foreach from=$eachParticipant item=eachProfile key=pid}\n              <tr>\n                <th {$headerStyle}>{$customProfile.title.$pid}</th>\n              </tr>\n              {foreach from=$eachProfile item=val key=field}\n                <tr>\n                  {foreach from=$val item=v key=f}\n                    <td {$labelStyle}>{$field}</td>\n                    <td {$valueStyle}>{$v}</td>\n                  {/foreach}\n                </tr>\n              {/foreach}\n            {/foreach}\n          {/foreach}\n        {/if}\n\n      </table>\n      {if !empty($event.allow_selfcancelxfer)}\n        <tr>\n          <td colspan=\"2\" {$valueStyle}>\n            {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}<br/>\n            {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid={participant.id}&{contact.checksum}\"  h=0 a=1 fe=1}{/capture}\n            <a href=\"{$selfService}\">{ts}Click here to transfer or cancel your registration.{/ts}</a>\n          </td>\n        </tr>\n      {/if}\n </table>\n\n</body>\n</html>\n',1,829,'event_online_receipt',0,1,0,NULL),
+ (31,'Events - Registration Confirmation and Receipt (on-line)','{if !empty($isOnWaitlist)}{ts}Wait List Confirmation{/ts}{elseif !empty($isRequireApproval)}{ts}Registration Request Confirmation{/ts}{else}{ts}Registration Confirmation{/ts}{/if} - {event.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n{$event.confirm_email_text}\n\n{else}\n  {ts}Thank you for your registration.{/ts}\n  {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}\n  {else}{if !empty($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}\n  {/if}\n{/if}\n\n{if !empty($isOnWaitlist)}\n===============================================================================\n\n{ts}You have been added to the WAIT LIST for this event.{/ts}\n\n{if $isPrimary}\n{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}\n{/if}\n===============================================================================\n\n{elseif !empty($isRequireApproval)}\n===============================================================================\n\n{ts}Your registration has been submitted.{/ts}\n\n{if $isPrimary}\n{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}\n\n{/if}\n===============================================================================\n\n{elseif $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}}\n\n\n===============================================================================\n\n{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}\n===============================================================================\n\n{/if}\n\n\n===============================================================================\n\n{ts}Event Information and Location{/ts}\n\n===============================================================================\n\n{event.title}\n{event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:\"%A\"} {$event.event_end_date|crmDate}{/if}{/if}\n\n{if \"{participant.role_id:label}\" neq \'Attendee\'}\n{ts}Participant Role{/ts}: {participant.role_id:label}\n{/if}\n\n{if !empty($isShowLocation)}\n{event.location}\n{/if}{*End of isShowLocation condition*}\n\n{if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n\n{ts}Event Contacts:{/ts}\n{if {event.loc_block_id.phone_id.phone|boolean}}\n  {if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n{/if}\n{if {event.loc_block_id.email_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_id.email}\n{/if}\n{if {event.loc_block_id.email_2_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_2_id.email}{/if}\n{/if}\n{if {event.is_public|boolean} and {event.is_show_calendar_links|boolean}}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if !empty($payer.name)}\nYou were registered by: {$payer.name}\n{/if}\n{if {event.is_monetary|boolean} and empty($isRequireApproval)} {* This section for Paid events only.*}\n\n===============================================================================\n\n{event.fee_label}\n===============================================================================\n\n{if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}\n\n{if $value neq \'skip\'}\n{if $isPrimary}\n{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}\n{ts 1=$priceset+1}Participant %1{/ts} {if !empty($part.$priceset)}{$part.$priceset.info}{/if}\n\n{/if}\n{/if}\n----------------------------------------------------------------------------------------------------------------\n\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:\"%10s\"}{/if}\n----------------------------------------------------------------------------------------------------------------\n\n{foreach from=$value item=line}\n{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:$currency|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.line_total|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"}  {$line.tax_rate|string_format:\"%.2f\"} %  {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else}                  {/if}  {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"}{if !empty($ts_participant_count)}{$ts_participant_count|string_format:\"%10s\"}{/if}\n{/foreach}\n----------------------------------------------------------------------------------------------------------------\n{if !empty($individual)}{ts}Participant Total{/ts} {$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%29s\"} {$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%33s\"} {$individual.$priceset.totalAmtWithTax|crmMoney:$currency|string_format:\"%12s\"}{/if}\n{/if}\n{\"\"|string_format:\"%120s\"}\n{/foreach}\n{\"\"|string_format:\"%120s\"}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n{if !$isPrimary}{* Use the participant specific tax rate breakdown *}{assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}{/if}\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}   {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n{/if}\n{/if}\n\n{if !$isShowLineItems}\n{foreach from=$participants key=index item=currentParticipant}\n{if $isPrimary || {participant.id} === $currentParticipant.id}\n{foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n{$currentLineItem.label} {if $isPrimary} - {$currentParticipant.contact.display_name}{/if} - {$currentLineItem.line_total|crmMoney:$currency}\n{/foreach}\n{/if}\n{/foreach}\n{/if}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n{/if}\n{if $isPrimary}\n\n{ts}Total Amount{/ts}: {if !empty($totalAmount)}{$totalAmount|crmMoney:$currency}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n\n{if !empty($pricesetFieldsCount)}\n      {assign var=\"count\" value= 0}\n      {foreach from=$lineItem item=pcount}\n      {assign var=\"lineItemCount\" value=0}\n      {if $pcount neq \'skip\'}\n        {foreach from=$pcount item=p_count}\n        {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n        {/foreach}\n      {if $lineItemCount < 1}\n        {assign var=\"lineItemCount\" value=1}\n      {/if}\n      {assign var=\"count\" value=$count+$lineItemCount}\n      {/if}\n      {/foreach}\n\n{ts}Total Participants{/ts}: {$count}\n{/if}\n\n{if {participant.register_date|boolean}}\n{ts}Registration Date{/ts}: {participant.register_date}\n{/if}\n{if {contribution.receive_date|boolean}}\n{ts}Transaction Date{/ts}: {contribution.receive_date}\n{/if}\n{if !empty($financialTypeName)}\n{ts}Financial Type{/ts}: {$financialTypeName}\n{/if}\n{if !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n{/if}\n{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{/if}\n{if !empty($checkNumber)}\n{ts}Check Number{/ts}: {$checkNumber}\n{/if}\n{if {contribution.address_id.display|boolean}}\n\n===============================================================================\n\n{ts}Billing Name and Address{/ts}\n\n===============================================================================\n\n{contribution.address_id.name}\n{contribution.address_id.display}\n{/if}\n\n{if !empty($credit_card_type)}\n===============================================================================\n\n{ts}Credit Card Information{/ts}\n\n===============================================================================\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n{/if} {* End of conditional section for Paid events *}\n\n{if !empty($customPre)}\n{foreach from=$customPre item=customPr key=i}\n===============================================================================\n\n{$customPre_grouptitle.$i}\n===============================================================================\n\n{foreach from=$customPr item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($customPost)}\n{foreach from=$customPost item=customPos key=j}\n===============================================================================\n\n{$customPost_grouptitle.$j}\n===============================================================================\n\n{foreach from=$customPos item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n{if !empty($customProfile)}\n\n{foreach from=$customProfile.profile item=eachParticipant key=participantID}\n===============================================================================\n\n{ts 1=$participantID+2}Participant Information - Participant %1{/ts}\n\n===============================================================================\n\n{foreach from=$eachParticipant item=eachProfile key=pid}\n------------------------------------------------------------------------------\n\n{$customProfile.title.$pid}\n------------------------------------------------------------------------------\n\n{foreach from=$eachProfile item=val key=field}\n{foreach from=$val item=v key=f}\n{$field}: {$v}\n{/foreach}\n{/foreach}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($event.allow_selfcancelxfer)}\n{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}\n   {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid={participant.id}&{contact.checksum}\"  h=0 a=1 fe=1}{/capture}\n{ts}Transfer or cancel your registration:{/ts} {$selfService}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n  <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=tdfirstStyle}style=\"width: 180px; padding-bottom: 15px;\"{/capture}\n{capture assign=tdStyle}style=\"width: 100px;\"{/capture}\n{capture assign=participantTotalStyle}style=\"margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;\"{/capture}\n\n<table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n  <!-- BEGIN HEADER -->\n  <!-- You can add table row(s) here with logo or other header elements -->\n  <!-- END HEADER -->\n\n  <!-- BEGIN CONTENT -->\n  <tr>\n    <td>\n      {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n      {if {event.confirm_email_text|boolean} AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n        <p>{event.confirm_email_text}</p>\n      {else}\n        <p>{ts}Thank you for your registration.{/ts}\n            {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to<strong> %1</strong>.{/ts}\n            {else}\n              {if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to<strong>waitlisted</strong>.{/ts}\n              {else}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts}\n              {/if}\n            {/if}\n        </p>\n      {/if}\n\n      {if !empty($isOnWaitlist)}\n          <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>\n            {if $isPrimary}\n              <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p>\n            {/if}\n        {elseif !empty($isRequireApproval)}\n          <p>{ts}Your registration has been submitted.{/ts}</p>\n          {if $isPrimary}\n            <p>{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}</p>\n          {/if}\n        {elseif {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean} && $isPrimary}\n          <p>{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}</p>\n        {/if}\n    </td>\n  </tr>\n  <tr>\n    <td>\n      <table style=\"width:100%; max-width:700px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n        <tr>\n          <th {$headerStyle}>\n            {ts}Event Information and Location{/ts}\n          </th>\n        </tr>\n        <tr>\n          <td colspan=\"2\" {$valueStyle}>\n            {event.title}<br/>\n            {event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date|crmDate:\"%A\"} {event.end_date|crmDate}{/if}{/if}\n          </td>\n        </tr>\n\n        {if \"{participant.role_id:label}\" neq \'Attendee\'}\n          <tr>\n            <td {$labelStyle}>\n              {ts}Participant Role{/ts}\n            </td>\n            <td {$valueStyle}>\n              {participant.role_id:label}\n            </td>\n          </tr>\n        {/if}\n\n        {if {event.is_show_location|boolean}}\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {event.location}\n            </td>\n          </tr>\n        {/if}\n\n        {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n          <tr>\n            <td colspan=\"2\" {$labelStyle}>\n              {ts}Event Contacts:{/ts}\n            </td>\n          </tr>\n\n          {if {event.loc_block_id.phone_id.phone|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {if {event.loc_block_id.phone_id.phone_type_id|boolean}}\n                      {event.loc_block_id.phone_id.phone_type_id:label}\n                  {else}\n                      {ts}Phone{/ts}\n                  {/if}\n              </td>\n              <td {$valueStyle}>\n                  {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n              </td>\n            </tr>\n          {/if}\n          {if {event.loc_block_id.phone_2_id.phone|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}\n                      {event.loc_block_id.phone_2_id.phone_type_id:label}\n                  {else}\n                      {ts}Phone{/ts}\n                  {/if}\n              </td>\n              <td {$valueStyle}>\n                  {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n              </td>\n            </tr>\n          {/if}\n          {if {event.loc_block_id.email_id.email|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                {ts}Email{/ts}\n              </td>\n              <td {$valueStyle}>\n                {event.loc_block_id.email_id.email}\n              </td>\n            </tr>\n          {/if}\n          {if {event.loc_block_id.email_2_id.email|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                {ts}Email{/ts}\n              </td>\n              <td {$valueStyle}>\n                {event.loc_block_id.email_2_id.email}\n              </td>\n            </tr>\n          {/if}\n        {/if}\n\n        {if {event.is_public|boolean} and {event.is_show_calendar_links|boolean}}\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n              <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n            </td>\n          </tr>\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n              <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n            </td>\n          </tr>\n        {/if}\n\n        {if {event.is_share|boolean}}\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {capture assign=eventUrl}{crmURL p=\'civicrm/event/info\' q=\"id={event.id}&reset=1\" a=true fe=1 h=1}{/capture}\n              {include file=\"CRM/common/SocialNetwork.tpl\" emailMode=true url=$eventUrl pageURL=$eventUrl title=\'{event.title}\'}\n            </td>\n          </tr>\n        {/if}\n        {if !empty($payer.name)}\n          <tr>\n            <th {$headerStyle}>\n              {ts}You were registered by:{/ts}\n            </th>\n          </tr>\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {$payer.name}\n            </td>\n          </tr>\n        {/if}\n        {if {event.is_monetary|boolean} and empty($isRequireApproval)}\n          <tr>\n            <th {$headerStyle}>\n              {event.fee_label}\n            </th>\n          </tr>\n            {if $isShowLineItems}\n              {foreach from=$participants key=index item=currentParticipant}\n                {if $isPrimary || {participant.id} === $currentParticipant.id}\n                  {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *}\n                    <tr>\n                      <td colspan=\"2\" {$labelStyle}>\n                        {$currentParticipant.contact.display_name}\n                      </td>\n                    </tr>\n                  {/if}\n                  <tr>\n                    <td colspan=\"2\" {$valueStyle}>\n                      <table>\n                        <tr>\n                          <th>{ts}Item{/ts}</th>\n                          <th>{ts}Qty{/ts}</th>\n                          <th>{ts}Each{/ts}</th>\n                          {if $isShowTax && {contribution.tax_amount|boolean}}\n                              <th>{ts}Subtotal{/ts}</th>\n                              <th>{ts}Tax Rate{/ts}</th>\n                              <th>{ts}Tax Amount{/ts}</th>\n                            {/if}\n                          <th>{ts}Total{/ts}</th>\n                          {if !empty($pricesetFieldsCount)}\n                            <th>{ts}Total Participants{/ts}</th>\n                          {/if}\n                        </tr>\n                        {foreach from=$currentParticipant.line_items item=line}\n                          <tr>\n                            <td {$tdfirstStyle}>{$line.title}</td>\n                            <td {$tdStyle} align=\"middle\">{$line.qty}</td>\n                            <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td>\n                            {if $isShowTax && {contribution.tax_amount|boolean}}\n                              <td>{$line.line_total|crmMoney:$currency}</td>\n                              {if $line.tax_rate || $line.tax_amount != \"\"}\n                                <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n                                <td>{$line.tax_amount|crmMoney:$currency}</td>\n                              {else}\n                                <td></td>\n                                <td></td>\n                              {/if}\n                            {/if}\n                            <td {$tdStyle}>\n                              {$line.line_total_inclusive|crmMoney:$currency}\n                            </td>\n                            {if !empty($pricesetFieldsCount)}\n                              <td {$tdStyle}>{$line.participant_count}</td>\n                            {/if}\n                          </tr>\n                        {/foreach}\n                        {if $isShowTax && $isPrimary && ($participants|@count > 1)}\n                          <tr {$participantTotalStyle}>\n                            <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td>\n                            <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td>\n                            <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td>\n                            <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td>\n                          </tr>\n                        {/if}\n                      </table>\n                    </td>\n                  </tr>\n                {/if}\n              {/foreach}\n            {/if}\n            {if !$isShowLineItems}\n              {foreach from=$participants key=index item=currentParticipant}\n                {if $isPrimary || {participant.id} === $currentParticipant.id}\n                  {foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n                  <tr>\n                    <td {$valueStyle}>\n                      {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if}\n                    </td>\n                    <td {$valueStyle}>\n                      {$currentLineItem.line_total|crmMoney:$currency}\n                    </td>\n                  </tr>\n                  {/foreach}\n                {/if}\n              {/foreach}\n            {/if}\n            {if $isShowTax && {contribution.tax_amount|boolean}}\n              <tr>\n                <td {$labelStyle}>\n                  {ts}Amount Before Tax:{/ts}\n                </td>\n                <td {$valueStyle}>\n                  {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n                </td>\n              </tr>\n              {if !$isPrimary}\n                {* Use the participant specific tax rate breakdown *}\n                {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}\n              {/if}\n              {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n                <tr>\n                  <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n                  <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n                </tr>\n              {/foreach}\n              <tr>\n                <td {$labelStyle}>\n                    {ts}Total Tax Amount{/ts}\n                </td>\n                <td {$valueStyle}>\n                    {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n                </td>\n              </tr>\n            {/if}\n            {if $isPrimary}\n              <tr>\n                <td {$labelStyle}>\n                  {ts}Total Amount{/ts}\n                </td>\n                <td {$valueStyle}>\n                  {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n                </td>\n              </tr>\n              {if !empty($pricesetFieldsCount)}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Total Participants{/ts}</td>\n                  <td {$valueStyle}>\n                    {assign var=\"count\" value= 0}\n                    {foreach from=$lineItem item=pcount}\n                      {assign var=\"lineItemCount\" value=0}\n                      {if $pcount neq \'skip\'}\n                        {foreach from=$pcount item=p_count}\n                          {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n                        {/foreach}\n                        {if $lineItemCount < 1}\n                          {assign var=\"lineItemCount\" value=1}\n                        {/if}\n                        {assign var=\"count\" value=$count+$lineItemCount}\n                      {/if}\n                    {/foreach}\n                    {$count}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {participant.register_date|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Registration Date{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {participant.register_date}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.receive_date|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Transaction Date{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {contribution.receive_date}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.financial_type_id|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Financial Type{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {contribution.financial_type_id:label}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.trxn_id|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Transaction #{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {contribution.trxn_id|boolean}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Paid By{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {contribution.payment_instrument_id:label}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.check_number|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Check Number{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {contribution.check_number}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.address_id.display|boolean}}\n                <tr>\n                  <th {$headerStyle}>\n                    {ts}Billing Name and Address{/ts}\n                  </th>\n                </tr>\n                <tr>\n                  <td colspan=\"2\" {$valueStyle}>\n                    {contribution.address_id.name}<br/>\n                    {contribution.address_id.display}\n                  </td>\n                </tr>\n              {/if}\n\n              {if !empty($credit_card_type)}\n                <tr>\n                  <th {$headerStyle}>\n                    {ts}Credit Card Information{/ts}\n                  </th>\n                </tr>\n                <tr>\n                  <td colspan=\"2\" {$valueStyle}>\n                    {$credit_card_type}<br/>\n                    {$credit_card_number}<br/>\n                    {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n                  </td>\n                </tr>\n              {/if}\n            {/if}\n\n          {/if} {* End of conditional section for Paid events *}\n\n        {if !empty($customPre)}\n          {foreach from=$customPre item=customPr key=i}\n            <tr>\n              <th {$headerStyle}>{$customPre_grouptitle.$i}</th>\n            </tr>\n            {foreach from=$customPr item=customValue key=customName}\n              <tr>\n                <td {$labelStyle}>{$customName}</td>\n                <td {$valueStyle}>{$customValue}</td>\n              </tr>\n            {/foreach}\n          {/foreach}\n        {/if}\n\n        {if !empty($customPost)}\n          {foreach from=$customPost item=customPos key=j}\n            <tr>\n              <th {$headerStyle}>{$customPost_grouptitle.$j}</th>\n            </tr>\n            {foreach from=$customPos item=customValue key=customName}\n              <tr>\n                <td {$labelStyle}>{$customName}</td>\n                <td {$valueStyle}>{$customValue}</td>\n              </tr>\n            {/foreach}\n          {/foreach}\n        {/if}\n\n        {if !empty($customProfile)}\n          {foreach from=$customProfile.profile item=eachParticipant key=participantID}\n            <tr>\n              <th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th>\n            </tr>\n            {foreach from=$eachParticipant item=eachProfile key=pid}\n              <tr>\n                <th {$headerStyle}>{$customProfile.title.$pid}</th>\n              </tr>\n              {foreach from=$eachProfile item=val key=field}\n                <tr>\n                  {foreach from=$val item=v key=f}\n                    <td {$labelStyle}>{$field}</td>\n                    <td {$valueStyle}>{$v}</td>\n                  {/foreach}\n                </tr>\n              {/foreach}\n            {/foreach}\n          {/foreach}\n        {/if}\n\n      </table>\n      {if {event.allow_selfcancelxfer|boolean}}\n        <tr>\n          <td colspan=\"2\" {$valueStyle}>\n            {capture assign=selfservice_preposition}{if {event.selfcancelxfer_time} > 0}{ts}before{/ts}{else}{ts}after{/ts}{/if}{/capture}\n            {ts 1={event.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}\n            {if {contribution.paid_amount|boolean}}{ts}Cancellations are not refundable.{/ts}{/if}<br/>\n            {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid={participant.id}&{contact.checksum}\"  h=0 a=1 fe=1}{/capture}\n            <a href=\"{$selfService}\">{ts}Click here to transfer or cancel your registration.{/ts}</a>\n          </td>\n        </tr>\n      {/if}\n </table>\n\n</body>\n</html>\n',1,829,'event_online_receipt',1,0,0,NULL),
+ (32,'Events - Registration Confirmation and Receipt (on-line)','{if !empty($isOnWaitlist)}{ts}Wait List Confirmation{/ts}{elseif !empty($isRequireApproval)}{ts}Registration Request Confirmation{/ts}{else}{ts}Registration Confirmation{/ts}{/if} - {event.title} - {contact.display_name}\n','{assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}{$greeting},{/if}\n{if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n{$event.confirm_email_text}\n\n{else}\n  {ts}Thank you for your registration.{/ts}\n  {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}\n  {else}{if !empty($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}\n  {/if}\n{/if}\n\n{if !empty($isOnWaitlist)}\n===============================================================================\n\n{ts}You have been added to the WAIT LIST for this event.{/ts}\n\n{if $isPrimary}\n{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}\n{/if}\n===============================================================================\n\n{elseif !empty($isRequireApproval)}\n===============================================================================\n\n{ts}Your registration has been submitted.{/ts}\n\n{if $isPrimary}\n{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}\n\n{/if}\n===============================================================================\n\n{elseif $isPrimary && {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}}\n\n\n===============================================================================\n\n{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}\n===============================================================================\n\n{/if}\n\n\n===============================================================================\n\n{ts}Event Information and Location{/ts}\n\n===============================================================================\n\n{event.title}\n{event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if $event.event_end_date|crmDate:\"%Y%m%d\" == $event.event_start_date|crmDate:\"%Y%m%d\"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:\"%A\"} {$event.event_end_date|crmDate}{/if}{/if}\n\n{if \"{participant.role_id:label}\" neq \'Attendee\'}\n{ts}Participant Role{/ts}: {participant.role_id:label}\n{/if}\n\n{if !empty($isShowLocation)}\n{event.location}\n{/if}{*End of isShowLocation condition*}\n\n{if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n\n{ts}Event Contacts:{/ts}\n{if {event.loc_block_id.phone_id.phone|boolean}}\n  {if {event.loc_block_id.phone_id.phone_type_id|boolean}}{event.loc_block_id.phone_id.phone_type_id:label}{else}{ts}Phone{/ts}{/if} {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}} {ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n{/if}\n{if {event.loc_block_id.email_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_id.email}\n{/if}\n{if {event.loc_block_id.email_2_id.email|boolean}}\n{ts}Email {/ts}{event.loc_block_id.email_2_id.email}{/if}\n{/if}\n{if {event.is_public|boolean} and {event.is_show_calendar_links|boolean}}\n{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}\n{capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n{ts}Add event to Google Calendar{/ts} {$gCalendar}\n{/if}\n\n{if !empty($payer.name)}\nYou were registered by: {$payer.name}\n{/if}\n{if {event.is_monetary|boolean} and empty($isRequireApproval)} {* This section for Paid events only.*}\n\n===============================================================================\n\n{event.fee_label}\n===============================================================================\n\n{if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}\n\n{if $value neq \'skip\'}\n{if $isPrimary}\n{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}\n{ts 1=$priceset+1}Participant %1{/ts} {if !empty($part.$priceset)}{$part.$priceset.info}{/if}\n\n{/if}\n{/if}\n----------------------------------------------------------------------------------------------------------------\n\n{capture assign=ts_item}{ts}Item{/ts}{/capture}\n{capture assign=ts_qty}{ts}Qty{/ts}{/capture}\n{capture assign=ts_each}{ts}Each{/ts}{/capture}\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}\n{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}\n{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}\n{/if}\n{capture assign=ts_total}{ts}Total{/ts}{/capture}\n{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}\n{$ts_item|string_format:\"%-30s\"} {$ts_qty|string_format:\"%5s\"} {$ts_each|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$ts_subtotal|string_format:\"%10s\"} {$ts_taxRate|string_format:\"%10s\"} {$ts_taxAmount|string_format:\"%10s\"} {/if} {$ts_total|string_format:\"%10s\"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:\"%10s\"}{/if}\n----------------------------------------------------------------------------------------------------------------\n\n{foreach from=$value item=line}\n{if !empty($pricesetFieldsCount)}{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}\n{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:\"...\"|string_format:\"%-30s\"} {$line.qty|string_format:\"%5s\"} {$line.unit_price|crmMoney:$currency|string_format:\"%10s\"} {if $isShowTax && {contribution.tax_amount|boolean}} {$line.line_total|crmMoney:$currency|string_format:\"%10s\"} {if $line.tax_rate || $line.tax_amount != \"\"}  {$line.tax_rate|string_format:\"%.2f\"} %  {$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"} {else}                  {/if}  {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:\"%10s\"}{if !empty($ts_participant_count)}{$ts_participant_count|string_format:\"%10s\"}{/if}\n{/foreach}\n----------------------------------------------------------------------------------------------------------------\n{if !empty($individual)}{ts}Participant Total{/ts} {$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%29s\"} {$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:\"%33s\"} {$individual.$priceset.totalAmtWithTax|crmMoney:$currency|string_format:\"%12s\"}{/if}\n{/if}\n{\"\"|string_format:\"%120s\"}\n{/foreach}\n{\"\"|string_format:\"%120s\"}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Amount before Tax:{/ts} {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n{if !$isPrimary}{* Use the participant specific tax rate breakdown *}{assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}{/if}\n{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}   {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}\n{/foreach}\n{/if}\n{/if}\n\n{if !$isShowLineItems}\n{foreach from=$participants key=index item=currentParticipant}\n{if $isPrimary || {participant.id} === $currentParticipant.id}\n{foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n{$currentLineItem.label} {if $isPrimary} - {$currentParticipant.contact.display_name}{/if} - {$currentLineItem.line_total|crmMoney:$currency}\n{/foreach}\n{/if}\n{/foreach}\n{/if}\n\n{if $isShowTax && {contribution.tax_amount|boolean}}\n{ts}Total Tax Amount{/ts}: {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n{/if}\n{if $isPrimary}\n\n{ts}Total Amount{/ts}: {if !empty($totalAmount)}{$totalAmount|crmMoney:$currency}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n\n{if !empty($pricesetFieldsCount)}\n      {assign var=\"count\" value= 0}\n      {foreach from=$lineItem item=pcount}\n      {assign var=\"lineItemCount\" value=0}\n      {if $pcount neq \'skip\'}\n        {foreach from=$pcount item=p_count}\n        {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n        {/foreach}\n      {if $lineItemCount < 1}\n        {assign var=\"lineItemCount\" value=1}\n      {/if}\n      {assign var=\"count\" value=$count+$lineItemCount}\n      {/if}\n      {/foreach}\n\n{ts}Total Participants{/ts}: {$count}\n{/if}\n\n{if {participant.register_date|boolean}}\n{ts}Registration Date{/ts}: {participant.register_date}\n{/if}\n{if {contribution.receive_date|boolean}}\n{ts}Transaction Date{/ts}: {contribution.receive_date}\n{/if}\n{if !empty($financialTypeName)}\n{ts}Financial Type{/ts}: {$financialTypeName}\n{/if}\n{if !empty($trxn_id)}\n{ts}Transaction #{/ts}: {$trxn_id}\n{/if}\n{if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}\n{/if}\n{if !empty($checkNumber)}\n{ts}Check Number{/ts}: {$checkNumber}\n{/if}\n{if {contribution.address_id.display|boolean}}\n\n===============================================================================\n\n{ts}Billing Name and Address{/ts}\n\n===============================================================================\n\n{contribution.address_id.name}\n{contribution.address_id.display}\n{/if}\n\n{if !empty($credit_card_type)}\n===============================================================================\n\n{ts}Credit Card Information{/ts}\n\n===============================================================================\n\n{$credit_card_type}\n{$credit_card_number}\n{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n{/if}\n{/if}\n{/if} {* End of conditional section for Paid events *}\n\n{if !empty($customPre)}\n{foreach from=$customPre item=customPr key=i}\n===============================================================================\n\n{$customPre_grouptitle.$i}\n===============================================================================\n\n{foreach from=$customPr item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($customPost)}\n{foreach from=$customPost item=customPos key=j}\n===============================================================================\n\n{$customPost_grouptitle.$j}\n===============================================================================\n\n{foreach from=$customPos item=customValue key=customName}\n {$customName}: {$customValue}\n{/foreach}\n{/foreach}\n{/if}\n{if !empty($customProfile)}\n\n{foreach from=$customProfile.profile item=eachParticipant key=participantID}\n===============================================================================\n\n{ts 1=$participantID+2}Participant Information - Participant %1{/ts}\n\n===============================================================================\n\n{foreach from=$eachParticipant item=eachProfile key=pid}\n------------------------------------------------------------------------------\n\n{$customProfile.title.$pid}\n------------------------------------------------------------------------------\n\n{foreach from=$eachProfile item=val key=field}\n{foreach from=$val item=v key=f}\n{$field}: {$v}\n{/foreach}\n{/foreach}\n{/foreach}\n{/foreach}\n{/if}\n\n{if !empty($event.allow_selfcancelxfer)}\n{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}\n   {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid={participant.id}&{contact.checksum}\"  h=0 a=1 fe=1}{/capture}\n{ts}Transfer or cancel your registration:{/ts} {$selfService}\n{/if}\n','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n  <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n{capture assign=tdfirstStyle}style=\"width: 180px; padding-bottom: 15px;\"{/capture}\n{capture assign=tdStyle}style=\"width: 100px;\"{/capture}\n{capture assign=participantTotalStyle}style=\"margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;\"{/capture}\n\n<table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n  <!-- BEGIN HEADER -->\n  <!-- You can add table row(s) here with logo or other header elements -->\n  <!-- END HEADER -->\n\n  <!-- BEGIN CONTENT -->\n  <tr>\n    <td>\n      {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n      {if {event.confirm_email_text|boolean} AND (empty($isOnWaitlist) AND empty($isRequireApproval))}\n        <p>{event.confirm_email_text}</p>\n      {else}\n        <p>{ts}Thank you for your registration.{/ts}\n            {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to<strong> %1</strong>.{/ts}\n            {else}\n              {if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to<strong>waitlisted</strong>.{/ts}\n              {else}{ts}This is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts}\n              {/if}\n            {/if}\n        </p>\n      {/if}\n\n      {if !empty($isOnWaitlist)}\n          <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>\n            {if $isPrimary}\n              <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p>\n            {/if}\n        {elseif !empty($isRequireApproval)}\n          <p>{ts}Your registration has been submitted.{/ts}</p>\n          {if $isPrimary}\n            <p>{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}</p>\n          {/if}\n        {elseif {contribution.is_pay_later|boolean} && {contribution.balance_amount|boolean} && $isPrimary}\n          <p>{if {event.pay_later_receipt|boolean}}{event.pay_later_receipt}{/if}</p>\n        {/if}\n    </td>\n  </tr>\n  <tr>\n    <td>\n      <table style=\"width:100%; max-width:700px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;\">\n        <tr>\n          <th {$headerStyle}>\n            {ts}Event Information and Location{/ts}\n          </th>\n        </tr>\n        <tr>\n          <td colspan=\"2\" {$valueStyle}>\n            {event.title}<br/>\n            {event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date|crmDate:\"%A\"} {event.end_date|crmDate}{/if}{/if}\n          </td>\n        </tr>\n\n        {if \"{participant.role_id:label}\" neq \'Attendee\'}\n          <tr>\n            <td {$labelStyle}>\n              {ts}Participant Role{/ts}\n            </td>\n            <td {$valueStyle}>\n              {participant.role_id:label}\n            </td>\n          </tr>\n        {/if}\n\n        {if {event.is_show_location|boolean}}\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {event.location}\n            </td>\n          </tr>\n        {/if}\n\n        {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n          <tr>\n            <td colspan=\"2\" {$labelStyle}>\n              {ts}Event Contacts:{/ts}\n            </td>\n          </tr>\n\n          {if {event.loc_block_id.phone_id.phone|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {if {event.loc_block_id.phone_id.phone_type_id|boolean}}\n                      {event.loc_block_id.phone_id.phone_type_id:label}\n                  {else}\n                      {ts}Phone{/ts}\n                  {/if}\n              </td>\n              <td {$valueStyle}>\n                  {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n              </td>\n            </tr>\n          {/if}\n          {if {event.loc_block_id.phone_2_id.phone|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                  {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}\n                      {event.loc_block_id.phone_2_id.phone_type_id:label}\n                  {else}\n                      {ts}Phone{/ts}\n                  {/if}\n              </td>\n              <td {$valueStyle}>\n                  {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n              </td>\n            </tr>\n          {/if}\n          {if {event.loc_block_id.email_id.email|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                {ts}Email{/ts}\n              </td>\n              <td {$valueStyle}>\n                {event.loc_block_id.email_id.email}\n              </td>\n            </tr>\n          {/if}\n          {if {event.loc_block_id.email_2_id.email|boolean}}\n            <tr>\n              <td {$labelStyle}>\n                {ts}Email{/ts}\n              </td>\n              <td {$valueStyle}>\n                {event.loc_block_id.email_2_id.email}\n              </td>\n            </tr>\n          {/if}\n        {/if}\n\n        {if {event.is_public|boolean} and {event.is_show_calendar_links|boolean}}\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q=\"reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n              <a href=\"{$icalFeed}\">{ts}Download iCalendar entry for this event.{/ts}</a>\n            </td>\n          </tr>\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {capture assign=gCalendar}{crmURL p=\'civicrm/event/ical\' q=\"gCalendar=1&reset=1&id={event.id}\" h=0 a=1 fe=1}{/capture}\n              <a href=\"{$gCalendar}\">{ts}Add event to Google Calendar{/ts}</a>\n            </td>\n          </tr>\n        {/if}\n\n        {if {event.is_share|boolean}}\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {capture assign=eventUrl}{crmURL p=\'civicrm/event/info\' q=\"id={event.id}&reset=1\" a=true fe=1 h=1}{/capture}\n              {include file=\"CRM/common/SocialNetwork.tpl\" emailMode=true url=$eventUrl pageURL=$eventUrl title=\'{event.title}\'}\n            </td>\n          </tr>\n        {/if}\n        {if !empty($payer.name)}\n          <tr>\n            <th {$headerStyle}>\n              {ts}You were registered by:{/ts}\n            </th>\n          </tr>\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n              {$payer.name}\n            </td>\n          </tr>\n        {/if}\n        {if {event.is_monetary|boolean} and empty($isRequireApproval)}\n          <tr>\n            <th {$headerStyle}>\n              {event.fee_label}\n            </th>\n          </tr>\n            {if $isShowLineItems}\n              {foreach from=$participants key=index item=currentParticipant}\n                {if $isPrimary || {participant.id} === $currentParticipant.id}\n                  {if $isPrimary && ($participants|@count > 1)} {* Header for multi participant registration cases. *}\n                    <tr>\n                      <td colspan=\"2\" {$labelStyle}>\n                        {$currentParticipant.contact.display_name}\n                      </td>\n                    </tr>\n                  {/if}\n                  <tr>\n                    <td colspan=\"2\" {$valueStyle}>\n                      <table>\n                        <tr>\n                          <th>{ts}Item{/ts}</th>\n                          <th>{ts}Qty{/ts}</th>\n                          <th>{ts}Each{/ts}</th>\n                          {if $isShowTax && {contribution.tax_amount|boolean}}\n                              <th>{ts}Subtotal{/ts}</th>\n                              <th>{ts}Tax Rate{/ts}</th>\n                              <th>{ts}Tax Amount{/ts}</th>\n                            {/if}\n                          <th>{ts}Total{/ts}</th>\n                          {if !empty($pricesetFieldsCount)}\n                            <th>{ts}Total Participants{/ts}</th>\n                          {/if}\n                        </tr>\n                        {foreach from=$currentParticipant.line_items item=line}\n                          <tr>\n                            <td {$tdfirstStyle}>{$line.title}</td>\n                            <td {$tdStyle} align=\"middle\">{$line.qty}</td>\n                            <td {$tdStyle}>{$line.unit_price|crmMoney:$currency}</td>\n                            {if $isShowTax && {contribution.tax_amount|boolean}}\n                              <td>{$line.line_total|crmMoney:$currency}</td>\n                              {if $line.tax_rate || $line.tax_amount != \"\"}\n                                <td>{$line.tax_rate|string_format:\"%.2f\"}%</td>\n                                <td>{$line.tax_amount|crmMoney:$currency}</td>\n                              {else}\n                                <td></td>\n                                <td></td>\n                              {/if}\n                            {/if}\n                            <td {$tdStyle}>\n                              {$line.line_total_inclusive|crmMoney:$currency}\n                            </td>\n                            {if !empty($pricesetFieldsCount)}\n                              <td {$tdStyle}>{$line.participant_count}</td>\n                            {/if}\n                          </tr>\n                        {/foreach}\n                        {if $isShowTax && $isPrimary && ($participants|@count > 1)}\n                          <tr {$participantTotalStyle}>\n                            <td colspan=3>{ts 1=$currentParticipant.contact.display_name}Total for %1{/ts}</td>\n                            <td colspan=2>{$currentParticipant.totals.total_amount_exclusive|crmMoney}</td>\n                            <td colspan=1>{$currentParticipant.totals.tax_amount|crmMoney}</td>\n                            <td colspan=2>{$currentParticipant.totals.total_amount_inclusive|crmMoney}</td>\n                          </tr>\n                        {/if}\n                      </table>\n                    </td>\n                  </tr>\n                {/if}\n              {/foreach}\n            {/if}\n            {if !$isShowLineItems}\n              {foreach from=$participants key=index item=currentParticipant}\n                {if $isPrimary || {participant.id} === $currentParticipant.id}\n                  {foreach from=$currentParticipant.line_items key=index item=currentLineItem}\n                  <tr>\n                    <td {$valueStyle}>\n                      {$currentLineItem.label}{if $isPrimary && ($participants|@count > 1)} - {$currentParticipant.contact.display_name}{/if}\n                    </td>\n                    <td {$valueStyle}>\n                      {$currentLineItem.line_total|crmMoney:$currency}\n                    </td>\n                  </tr>\n                  {/foreach}\n                {/if}\n              {/foreach}\n            {/if}\n            {if $isShowTax && {contribution.tax_amount|boolean}}\n              <tr>\n                <td {$labelStyle}>\n                  {ts}Amount Before Tax:{/ts}\n                </td>\n                <td {$valueStyle}>\n                  {if $isPrimary}{contribution.tax_exclusive_amount}{else}{$participant.totals.total_amount_exclusive|crmMoney}{/if}\n                </td>\n              </tr>\n              {if !$isPrimary}\n                {* Use the participant specific tax rate breakdown *}\n                {assign var=taxRateBreakdown value=$participant.tax_rate_breakdown}\n              {/if}\n              {foreach from=$taxRateBreakdown item=taxDetail key=taxRate}\n                <tr>\n                  <td {$labelStyle}>{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if}</td>\n                  <td {$valueStyle}>{$taxDetail.amount|crmMoney:\'{contribution.currency}\'}</td>\n                </tr>\n              {/foreach}\n              <tr>\n                <td {$labelStyle}>\n                    {ts}Total Tax Amount{/ts}\n                </td>\n                <td {$valueStyle}>\n                    {if $isPrimary}{contribution.tax_amount}{else}{$participant.totals.tax_amount|crmMoney}{/if}\n                </td>\n              </tr>\n            {/if}\n            {if $isPrimary}\n              <tr>\n                <td {$labelStyle}>\n                  {ts}Total Amount{/ts}\n                </td>\n                <td {$valueStyle}>\n                  {contribution.total_amount} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}\n                </td>\n              </tr>\n              {if !empty($pricesetFieldsCount)}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Total Participants{/ts}</td>\n                  <td {$valueStyle}>\n                    {assign var=\"count\" value= 0}\n                    {foreach from=$lineItem item=pcount}\n                      {assign var=\"lineItemCount\" value=0}\n                      {if $pcount neq \'skip\'}\n                        {foreach from=$pcount item=p_count}\n                          {assign var=\"lineItemCount\" value=$lineItemCount+$p_count.participant_count}\n                        {/foreach}\n                        {if $lineItemCount < 1}\n                          {assign var=\"lineItemCount\" value=1}\n                        {/if}\n                        {assign var=\"count\" value=$count+$lineItemCount}\n                      {/if}\n                    {/foreach}\n                    {$count}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {participant.register_date|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Registration Date{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {participant.register_date}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.receive_date|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Transaction Date{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {contribution.receive_date}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.financial_type_id|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Financial Type{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {contribution.financial_type_id:label}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.trxn_id|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Transaction #{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {contribution.trxn_id|boolean}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.payment_instrument_id|boolean} && {contribution.paid_amount|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Paid By{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {contribution.payment_instrument_id:label}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.check_number|boolean}}\n                <tr>\n                  <td {$labelStyle}>\n                    {ts}Check Number{/ts}\n                  </td>\n                  <td {$valueStyle}>\n                    {contribution.check_number}\n                  </td>\n                </tr>\n              {/if}\n\n              {if {contribution.address_id.display|boolean}}\n                <tr>\n                  <th {$headerStyle}>\n                    {ts}Billing Name and Address{/ts}\n                  </th>\n                </tr>\n                <tr>\n                  <td colspan=\"2\" {$valueStyle}>\n                    {contribution.address_id.name}<br/>\n                    {contribution.address_id.display}\n                  </td>\n                </tr>\n              {/if}\n\n              {if !empty($credit_card_type)}\n                <tr>\n                  <th {$headerStyle}>\n                    {ts}Credit Card Information{/ts}\n                  </th>\n                </tr>\n                <tr>\n                  <td colspan=\"2\" {$valueStyle}>\n                    {$credit_card_type}<br/>\n                    {$credit_card_number}<br/>\n                    {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}\n                  </td>\n                </tr>\n              {/if}\n            {/if}\n\n          {/if} {* End of conditional section for Paid events *}\n\n        {if !empty($customPre)}\n          {foreach from=$customPre item=customPr key=i}\n            <tr>\n              <th {$headerStyle}>{$customPre_grouptitle.$i}</th>\n            </tr>\n            {foreach from=$customPr item=customValue key=customName}\n              <tr>\n                <td {$labelStyle}>{$customName}</td>\n                <td {$valueStyle}>{$customValue}</td>\n              </tr>\n            {/foreach}\n          {/foreach}\n        {/if}\n\n        {if !empty($customPost)}\n          {foreach from=$customPost item=customPos key=j}\n            <tr>\n              <th {$headerStyle}>{$customPost_grouptitle.$j}</th>\n            </tr>\n            {foreach from=$customPos item=customValue key=customName}\n              <tr>\n                <td {$labelStyle}>{$customName}</td>\n                <td {$valueStyle}>{$customValue}</td>\n              </tr>\n            {/foreach}\n          {/foreach}\n        {/if}\n\n        {if !empty($customProfile)}\n          {foreach from=$customProfile.profile item=eachParticipant key=participantID}\n            <tr>\n              <th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th>\n            </tr>\n            {foreach from=$eachParticipant item=eachProfile key=pid}\n              <tr>\n                <th {$headerStyle}>{$customProfile.title.$pid}</th>\n              </tr>\n              {foreach from=$eachProfile item=val key=field}\n                <tr>\n                  {foreach from=$val item=v key=f}\n                    <td {$labelStyle}>{$field}</td>\n                    <td {$valueStyle}>{$v}</td>\n                  {/foreach}\n                </tr>\n              {/foreach}\n            {/foreach}\n          {/foreach}\n        {/if}\n\n      </table>\n      {if {event.allow_selfcancelxfer|boolean}}\n        <tr>\n          <td colspan=\"2\" {$valueStyle}>\n            {capture assign=selfservice_preposition}{if {event.selfcancelxfer_time} > 0}{ts}before{/ts}{else}{ts}after{/ts}{/if}{/capture}\n            {ts 1={event.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}\n            {if {contribution.paid_amount|boolean}}{ts}Cancellations are not refundable.{/ts}{/if}<br/>\n            {capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q=\"reset=1&pid={participant.id}&{contact.checksum}\"  h=0 a=1 fe=1}{/capture}\n            <a href=\"{$selfService}\">{ts}Click here to transfer or cancel your registration.{/ts}</a>\n          </td>\n        </tr>\n      {/if}\n </table>\n\n</body>\n</html>\n',1,829,'event_online_receipt',0,1,0,NULL),
  (33,'Events - Receipt only','Receipt for {if $events_in_cart} Event Registration{/if} - {contact.display_name}\n','','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n  <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n    <title></title>\n  </head>\n  <body>\n    {capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n    {capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n    {capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n    {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n    {if $is_pay_later}\n      <p>\n        This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.\n      </p>\n    {else}\n      <p>\n        This is being sent to you as a {if !empty($is_refund)}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.\n      </p>\n    {/if}\n\n    {if $is_pay_later}\n      <p>{$pay_later_receipt}</p>\n    {/if}\n\n    <p>Your order number is #{$transaction_id}. {if !empty($line_items) && empty($is_refund)} Information about the workshops will be sent separately to each participant.{/if}\n  Here\'s a summary of your transaction placed on {$transaction_date|crmDate:\"%D %I:%M %p %Z\"}:</p>\n\n{if $billing_name}\n  <table class=\"billing-info\">\n      <tr>\n    <th style=\"text-align: left;\">\n      {ts}Billing Name and Address{/ts}\n    </th>\n      </tr>\n      <tr>\n    <td>\n      {$billing_name}<br />\n      {$billing_street_address}<br />\n      {$billing_city}, {$billing_state} {$billing_postal_code}<br/>\n      <br/>\n      {$email}\n    </td>\n    </tr>\n    </table>\n{/if}\n{if $credit_card_type}\n  <p>&nbsp;</p>\n  <table class=\"billing-info\">\n      <tr>\n    <th style=\"text-align: left;\">\n      {ts}Credit Card Information{/ts}\n    </th>\n      </tr>\n      <tr>\n    <td>\n      {$credit_card_type}<br />\n      {$credit_card_number}<br />\n      {ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}\n    </td>\n    </tr>\n    </table>\n{/if}\n{if !empty($source)}\n    <p>&nbsp;</p>\n    {$source}\n{/if}\n    <p>&nbsp;</p>\n    <table width=\"700\">\n      <thead>\n    <tr>\n{if $line_items}\n      <th style=\"text-align: left;\">\n      Event\n      </th>\n      <th style=\"text-align: left;\">\n      Participants\n      </th>\n{/if}\n      <th style=\"text-align: left;\">\n      Price\n      </th>\n      <th style=\"text-align: left;\">\n      Total\n      </th>\n    </tr>\n    </thead>\n      <tbody>\n  {foreach from=$line_items item=line_item}\n  <tr>\n    <td style=\"width: 220px\">\n      {$line_item.event->title} ({$line_item.event->start_date|crmDate:\"%D\"})<br />\n      {if $line_item.event->is_show_location}\n        {$line_item.location.address.1.display|nl2br}\n      {/if}{*End of isShowLocation condition*}<br /><br />\n      {$line_item.event->start_date|crmDate:\"%D %I:%M %p\"} - {$line_item.event->end_date|crmDate:\"%I:%M %p\"}\n    </td>\n    <td style=\"width: 180px\">\n    {$line_item.num_participants}\n      {if $line_item.num_participants > 0}\n      <div class=\"participants\" style=\"padding-left: 10px;\">\n        {foreach from=$line_item.participants item=participant}\n        {$participant.display_name}<br />\n        {/foreach}\n      </div>\n      {/if}\n      {if $line_item.num_waiting_participants > 0}\n      Waitlisted:<br/>\n      <div class=\"participants\" style=\"padding-left: 10px;\">\n        {foreach from=$line_item.waiting_participants item=participant}\n        {$participant.display_name}<br />\n        {/foreach}\n      </div>\n      {/if}\n    </td>\n    <td style=\"width: 100px\">\n      {$line_item.cost|crmMoney:$currency|string_format:\"%10s\"}\n    </td>\n    <td style=\"width: 100px\">\n      &nbsp;{$line_item.amount|crmMoney:$currency|string_format:\"%10s\"}\n    </td>\n  </tr>\n  {/foreach}\n      </tbody>\n      <tfoot>\n  {if $discounts}\n  <tr>\n    <td>\n    </td>\n    <td>\n    </td>\n    <td>\n      Subtotal:\n    </td>\n    <td>\n      &nbsp;{$sub_total|crmMoney:$currency|string_format:\"%10s\"}\n    </td>\n  </tr>\n  {foreach from=$discounts key=myId item=i}\n  <tr>\n    <td>\n      {$i.title}\n    </td>\n    <td>\n    </td>\n    <td>\n    </td>\n    <td>\n      -{$i.amount}\n    </td>\n  </tr>\n  {/foreach}\n  {/if}\n  <tr>\n{if $line_items}\n    <td>\n    </td>\n    <td>\n    </td>\n{/if}\n    <td>\n      <strong>Total:</strong>\n    </td>\n    <td>\n      <strong>&nbsp;{$total|crmMoney:$currency|string_format:\"%10s\"}</strong>\n    </td>\n  </tr>\n      </tfoot>\n    </table>\n\n    If you have questions about the status of your registration or purchase please feel free to contact us.\n  </body>\n</html>\n',1,830,'event_registration_receipt',1,0,0,NULL),
  (34,'Events - Receipt only','Receipt for {if $events_in_cart} Event Registration{/if} - {contact.display_name}\n','','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n  <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n    <title></title>\n  </head>\n  <body>\n    {capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n    {capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n    {capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n    {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n    {if $is_pay_later}\n      <p>\n        This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.\n      </p>\n    {else}\n      <p>\n        This is being sent to you as a {if !empty($is_refund)}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.\n      </p>\n    {/if}\n\n    {if $is_pay_later}\n      <p>{$pay_later_receipt}</p>\n    {/if}\n\n    <p>Your order number is #{$transaction_id}. {if !empty($line_items) && empty($is_refund)} Information about the workshops will be sent separately to each participant.{/if}\n  Here\'s a summary of your transaction placed on {$transaction_date|crmDate:\"%D %I:%M %p %Z\"}:</p>\n\n{if $billing_name}\n  <table class=\"billing-info\">\n      <tr>\n    <th style=\"text-align: left;\">\n      {ts}Billing Name and Address{/ts}\n    </th>\n      </tr>\n      <tr>\n    <td>\n      {$billing_name}<br />\n      {$billing_street_address}<br />\n      {$billing_city}, {$billing_state} {$billing_postal_code}<br/>\n      <br/>\n      {$email}\n    </td>\n    </tr>\n    </table>\n{/if}\n{if $credit_card_type}\n  <p>&nbsp;</p>\n  <table class=\"billing-info\">\n      <tr>\n    <th style=\"text-align: left;\">\n      {ts}Credit Card Information{/ts}\n    </th>\n      </tr>\n      <tr>\n    <td>\n      {$credit_card_type}<br />\n      {$credit_card_number}<br />\n      {ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}\n    </td>\n    </tr>\n    </table>\n{/if}\n{if !empty($source)}\n    <p>&nbsp;</p>\n    {$source}\n{/if}\n    <p>&nbsp;</p>\n    <table width=\"700\">\n      <thead>\n    <tr>\n{if $line_items}\n      <th style=\"text-align: left;\">\n      Event\n      </th>\n      <th style=\"text-align: left;\">\n      Participants\n      </th>\n{/if}\n      <th style=\"text-align: left;\">\n      Price\n      </th>\n      <th style=\"text-align: left;\">\n      Total\n      </th>\n    </tr>\n    </thead>\n      <tbody>\n  {foreach from=$line_items item=line_item}\n  <tr>\n    <td style=\"width: 220px\">\n      {$line_item.event->title} ({$line_item.event->start_date|crmDate:\"%D\"})<br />\n      {if $line_item.event->is_show_location}\n        {$line_item.location.address.1.display|nl2br}\n      {/if}{*End of isShowLocation condition*}<br /><br />\n      {$line_item.event->start_date|crmDate:\"%D %I:%M %p\"} - {$line_item.event->end_date|crmDate:\"%I:%M %p\"}\n    </td>\n    <td style=\"width: 180px\">\n    {$line_item.num_participants}\n      {if $line_item.num_participants > 0}\n      <div class=\"participants\" style=\"padding-left: 10px;\">\n        {foreach from=$line_item.participants item=participant}\n        {$participant.display_name}<br />\n        {/foreach}\n      </div>\n      {/if}\n      {if $line_item.num_waiting_participants > 0}\n      Waitlisted:<br/>\n      <div class=\"participants\" style=\"padding-left: 10px;\">\n        {foreach from=$line_item.waiting_participants item=participant}\n        {$participant.display_name}<br />\n        {/foreach}\n      </div>\n      {/if}\n    </td>\n    <td style=\"width: 100px\">\n      {$line_item.cost|crmMoney:$currency|string_format:\"%10s\"}\n    </td>\n    <td style=\"width: 100px\">\n      &nbsp;{$line_item.amount|crmMoney:$currency|string_format:\"%10s\"}\n    </td>\n  </tr>\n  {/foreach}\n      </tbody>\n      <tfoot>\n  {if $discounts}\n  <tr>\n    <td>\n    </td>\n    <td>\n    </td>\n    <td>\n      Subtotal:\n    </td>\n    <td>\n      &nbsp;{$sub_total|crmMoney:$currency|string_format:\"%10s\"}\n    </td>\n  </tr>\n  {foreach from=$discounts key=myId item=i}\n  <tr>\n    <td>\n      {$i.title}\n    </td>\n    <td>\n    </td>\n    <td>\n    </td>\n    <td>\n      -{$i.amount}\n    </td>\n  </tr>\n  {/foreach}\n  {/if}\n  <tr>\n{if $line_items}\n    <td>\n    </td>\n    <td>\n    </td>\n{/if}\n    <td>\n      <strong>Total:</strong>\n    </td>\n    <td>\n      <strong>&nbsp;{$total|crmMoney:$currency|string_format:\"%10s\"}</strong>\n    </td>\n  </tr>\n      </tfoot>\n    </table>\n\n    If you have questions about the status of your registration or purchase please feel free to contact us.\n  </body>\n</html>\n',1,830,'event_registration_receipt',0,1,0,NULL),
  (35,'Events - Registration Cancellation Notice','{ts 1=\"{event.title}\"}Event Registration Cancelled for %1{/ts} - {contact.display_name}\n','','<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title></title>\n</head>\n<body>\n\n{capture assign=headerStyle}colspan=\"2\" style=\"text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;\"{/capture}\n{capture assign=labelStyle}style=\"padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;\"{/capture}\n{capture assign=valueStyle}style=\"padding: 4px; border-bottom: 1px solid #999;\"{/capture}\n\n  <table id=\"crm-event_receipt\" style=\"font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;\">\n\n  <!-- BEGIN HEADER -->\n  <!-- You can add table row(s) here with logo or other header elements -->\n  <!-- END HEADER -->\n\n  <!-- BEGIN CONTENT -->\n\n  <tr>\n   <td>\n    {assign var=\"greeting\" value=\"{contact.email_greeting_display}\"}{if $greeting}<p>{$greeting},</p>{/if}\n    <p>{ts}Your Event Registration has been cancelled.{/ts}</p>\n   </td>\n  </tr>\n  <tr>\n   <td>\n    <table style=\"border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;\">\n     <tr>\n      <th {$headerStyle}>\n       {ts}Event Information and Location{/ts}\n      </th>\n     </tr>\n     <tr>\n      <td colspan=\"2\" {$valueStyle}>\n       {event.title}<br />\n       {event.start_date|crmDate:\"%A\"} {event.start_date|crmDate}{if {event.end_date|boolean}}-{if \'{event.end_date|crmDate:\"%Y%m%d\"}\' === \'{event.start_date|crmDate:\"%Y%m%d\"}\'}{event.end_date|crmDate:\"Time\"}{else}{event.end_date|crmDate:\"%A\"} {event.end_date|crmDate}{/if}{/if}\n      </td>\n     </tr>\n     <tr>\n      <td {$labelStyle}>\n       {ts}Participant Role{/ts}:\n      </td>\n      <td {$valueStyle}>\n       {participant.role_id:label}\n      </td>\n     </tr>\n\n    {if !empty($isShowLocation)}\n          <tr>\n            <td colspan=\"2\" {$valueStyle}>\n                {event.location}\n            </td>\n          </tr>\n        {/if}\n\n    {if {event.loc_block_id.phone_id.phone|boolean} || {event.loc_block_id.email_id.email|boolean}}\n          <tr>\n            <td colspan=\"2\" {$labelStyle}>\n                {ts}Event Contacts:{/ts}\n            </td>\n          </tr>\n\n            {if {event.loc_block_id.phone_id.phone|boolean}}\n              <tr>\n                <td {$labelStyle}>\n                    {if {event.loc_block_id.phone_id.phone_type_id|boolean}}\n                        {event.loc_block_id.phone_id.phone_type_id:label}\n                    {else}\n                        {ts}Phone{/ts}\n                    {/if}\n                </td>\n                <td {$valueStyle}>\n                    {event.loc_block_id.phone_id.phone} {if {event.loc_block_id.phone_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_id.phone_ext}{/if}\n                </td>\n              </tr>\n            {/if}\n            {if {event.loc_block_id.phone_2_id.phone|boolean}}\n              <tr>\n                <td {$labelStyle}>\n                    {if {event.loc_block_id.phone_2_id.phone_type_id|boolean}}\n                        {event.loc_block_id.phone_2_id.phone_type_id:label}\n                    {else}\n                        {ts}Phone{/ts}\n                    {/if}\n                </td>\n                <td {$valueStyle}>\n                    {event.loc_block_id.phone_2_id.phone} {if {event.loc_block_id.phone_2_id.phone_ext|boolean}}&nbsp;{ts}ext.{/ts} {event.loc_block_id.phone_2_id.phone_ext}{/if}\n                </td>\n              </tr>\n            {/if}\n            {if {event.loc_block_id.email_id.email|boolean}}\n              <tr>\n                <td {$labelStyle}>\n                    {ts}Email{/ts}\n                </td>\n                <td {$valueStyle}>\n                    {event.loc_block_id.email_id.email}\n                </td>\n              </tr>\n            {/if}\n            {if {event.loc_block_id.email_2_id.email|boolean}}\n              <tr>\n                <td {$labelStyle}>\n                    {ts}Email{/ts}\n                </td>\n                <td {$valueStyle}>\n                    {event.loc_block_id.email_2_id.email}\n                </td>\n              </tr>\n            {/if}\n        {/if}\n\n    {if \'{contact.email}\'}\n      <tr>\n       <th {$headerStyle}>\n        {ts}Registered Email{/ts}\n       </th>\n      </tr>\n      <tr>\n       <td colspan=\"2\" {$valueStyle}>\n        {contact.email}\n       </td>\n      </tr>\n     {/if}\n\n     {if !empty(\'{participant.register_date}\')}\n      <tr>\n       <td {$labelStyle}>\n        {ts}Registration Date{/ts}\n       </td>\n       <td {$valueStyle}>\n        {participant.register_date}\n       </td>\n      </tr>\n     {/if}\n\n    </table>\n   </td>\n  </tr>\n\n  <tr>\n   <td>\n    <p>{ts 1=\'{domain.phone}\' 2=\'{domain.email}\'}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>\n   </td>\n  </tr>\n\n </table>\n\n</body>\n</html>\n',1,831,'participant_cancelled',1,0,0,NULL),