Merge pull request #2658 from JKingsnorth/CRM-14340
[civicrm-core.git] / xml / templates / message_templates / event_online_receipt_text.tpl
index f7cc098a5c73697115af990b55554435de0ec476..10847d8fe80b5bd785627463a3f485c4c46c9a6e 100644 (file)
@@ -4,7 +4,7 @@ Dear {contact.display_name},
 {$event.confirm_email_text}
 
 {else}
-Thank you for your participation.  This letter is a confirmation that your registration has been received and your status has been updated to {if $participant_status}$participant_status{else}{if $isOnWaitlist}waitlisted{else}registered{/if}{/if} for the following:
+Thank you for your participation.  This letter is a confirmation that your registration has been received and your status has been updated to {if $participant_status}{$participant_status}{else}{if $isOnWaitlist}waitlisted{else}registered{/if}{/if}.
 
 {/if}
 
@@ -105,8 +105,10 @@ registration process.{/ts}
 {ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
 {/if}
 
+{if $event.is_public} 
 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
 {ts}Download iCalendar File:{/ts} {$icalFeed}
+{/if}
 
 {if $payer.name}
 You were registered by: {$payer.name}