<logic:variable as="event" value="[? \Components\Marketing\Events::get(\Components\Marketing\Events\Attendees::getColumn($event_attendee_id, 'event_id')) ?]" />
<logic:variable as="attendee" value="[? \Components\Marketing\Events\Attendees::get($event_attendee_id) ?]" />
<p>Dear <personalisation:firstname /></p>
<p>You have successfully registered for event <em>[? $event['event_title'] ?]</em></p>
<p>
Event date: [? \Components\Marketing\Events::renderEventDate($event) ?]
</p>
<logic:if test="$event['event_location_id']">
<logic:variable as="location" value="[? \Components\Marketing\Events\Locations::get($event['event_location_id']) ?]" />
<logic:if test="$location">
<p>
Location:
[? $location['event_location_description'] ?]<br />
[? $location['event_location_room_description'] ?]
</p>
</logic:if>
</logic:if>
<logic:if test="($attendee && $event['event_attendance_via_qrcode'])">
<logic:variable as="qr_content" value="event_id:[? $event['event_id'] ?],event_attendee_id:[? $attendee['event_attendee_id'] ?],contact_id:[? $attendee['contact_id'] ?]" />
<p style="text-align: center;">
Present this QR code at the event to check in.<br /><br />
<img src="https://[? \Components\Settings\Domains::getPrimary() ?]/_public/Framework/Multimedia/QRCodes/image.php?qr_content=[? $qr_content ?]&qr_encrypt=1&qr_size=4" alt="QR Code Check In" width="160" height="160" />
</p>
</logic:if>
<logic:parse text="[? $event['event_description'] ?]" />
<p>Add information or offers here...</p>
<logic:variable as="event" value="[? \Components\Marketing\Events::get(\Components\Marketing\Events\Attendees::getColumn($event_attendee_id, 'event_id')) ?]" />
<logic:variable as="attendee" value="[? \Components\Marketing\Events\Attendees::get($event_attendee_id) ?]" />
<p>Dear <personalisation:firstname /></p>
<p>You have successfully registered for event <em>[? $event['event_title'] ?]</em></p>
<p>
Event date: [? \Components\Marketing\Events::renderEventDate($event) ?]
</p>
<logic:if test="$event['event_location_id']">
<logic:variable as="location" value="[? \Components\Marketing\Events\Locations::get($event['event_location_id']) ?]" />
<logic:if test="$location">
<p>
Location:
[? $location['event_location_description'] ?]<br />
[? $location['event_location_room_description'] ?]
</p>
</logic:if>
</logic:if>
<logic:if test="($attendee && $event['event_attendance_via_qrcode'])">
<logic:variable as="qr_content" value="event_id:[? $event['event_id'] ?],event_attendee_id:[? $attendee['event_attendee_id'] ?],contact_id:[? $attendee['contact_id'] ?]" />
<p style="text-align: center;">
Present this QR code at the event to check in.<br /><br />
<img src="https://[? \Components\Settings\Domains::getPrimary() ?]/_public/Framework/Multimedia/QRCodes/image.php?qr_content=[? $qr_content ?]&qr_encrypt=1&qr_size=4" alt="QR Code Check In" width="160" height="160" />
</p>
</logic:if>
<logic:parse text="[? $event['event_description'] ?]" />
<p>Add information or offers here...</p>