<style>
h1
{
text-align: center;
}
/* Grey bar dividing sections. */
td.divider
{
background-color: #d2d2d2;
}
table.divider
{
margin: 10px;
}
/* Container for content in each section. */
td.section
{
padding: 10px;
}
td.section.noBg
{
background-color: none;
}
table.section
{
border: 1px solid #d2d2d2;
border-top: 0px;
}
/* Hero section */
td.hero
{
background-color: #F1F1F1;
}
</style>
<!-- Full entities from the database. Note that we allow the full arrAttendee
and arrContact to be passed through, for testing. -->
<ss:logic:variable as="arrAttendee" value="[? \Components\Marketing\Events\Attendees::get($iAttendeeId) ?]" />
<ss:logic:variable as="arrContact" value="[? ($arrTestingContact) ? $arrTestingContact : (\Components\Customers\Contacts::current()) ?]" />
<ss:logic:variable as="arrEvent" value="[? ($arrTestingEvent) ? $arrTestingEvent : (\Components\Marketing\Events::get($arrAttendee['event_id'])) ?]" />
<ss:logic:variable as="arrReminderConfig" value="[? (\Components\Marketing\Events\Reminders::getConfig($iReminderId)) ?]" />
<!-- Common-use variables for convenience -->
<ss:logic:if test="!$bNoGuestsFilter">
<ss:logic:variable as="arrGuests" value="[? ($arrAttendee) ? (\Components\Marketing\Events\Attendees::getAll(
[
'filter' => [
['event_attendee_parent_attendee_id', '=', $arrAttendee['event_attendee_id']]
],
'joins' => [
['customers_contacts', 'contact_id']
]
]
)) : ([]) ?]" />
</ss:logic:if>
<ss:logic:variable as="reminderType" value="[? $arrReminderConfig['strType'] ?]" />
<ss:logic:variable as="customDescription" value="[? ($arrReminderConfig['strDescriptionFrom'] == 'custom') ? $arrReminderConfig['strCustomDescription'] : null ?]" />
<ss:logic:variable as="contactName" value="[? \Components\Customers\Contacts::renderName($arrContact) ?]" />
<ss:logic:variable as="eventName" value="[? $arrEvent['event_title'] ?]" />
<ss:logic:variable as="startTime" value="[? \Components\Marketing\Events::renderTime($arrEvent, $arrEvent['event_start_datetime']) ?]" />
<ss:logic:variable as="endTime" value="[? \Components\Marketing\Events::renderTime($arrEvent, $arrEvent['event_end_datetime']) ?]" />
<ss:logic:variable as="eventTimezone" value="[? $arrEvent['event_timezone'] ?]" />
<ss:logic:variable as="locationAddress" value="[? \Components\Marketing\Events\Locations::getColumn($arrEvent['event_location_id'], 'event_location_description') ?]" />
<ss:logic:variable as="locationDescription" value="[? \Components\Marketing\Events\Locations::getColumn($arrEvent['event_location_id'], 'event_location_room_description') ?]" />
<ss:logic:variable as="description" value="[? $arrEvent['event_description'] ?]" />
<!-- Spacing -->
<table width="90%" align="center" cellspacing="0" cellpadding="0"><tr><td height="20"></td></tr></table>
<!-- Hero Section -->
<table align="center" cellpadding="0" cellspacing="0" width="90%">
<tr>
<td class="section hero" style="padding: 20px 10px 20px 10px;" align="center" >
<!-- Contact -->
<p style="text-align: center; font-style: italic;">
<strong>[? $contactName ?]</strong>
<ss:logic:if test="$arrGuests && count($arrGuests)">
and Guests:<br />
<ss:data:repeater datasource="$arrGuests" as="arrGuest">
<ss:logic:variable as="guestName" value="[? \Components\Customers\Contacts::renderName($arrGuest) ?]" />
[? $guestName ?]<br />
</ss:data:repeater>
</ss:logic:if>
</p>
<!-- Greeting -->
<h1 style="text-align: center;">
<ss:logic:if test="$reminderType == 'attend_reminder'">
A Friendly Reminder
</ss:logic:if>
<ss:logic:else test="$reminderType == 'rsvp_reminder'">
You're Invited - Please RSVP
</ss:logic:else>
<ss:logic:else>
You're Confirmed
</ss:logic:else>
</h1>
<!-- Title -->
<h3 style="text-align: center;">
<ss:logic:if test="$reminderType == 'attend_reminder'">
You're registered to attend
</ss:logic:if>
<a href="/community/event-rsvp/?event_id=[? $arrEvent['event_id'] ?]">
[? $eventName ?]
</a>
</h3>
<!-- When -->
<p style="text-align: center;">
Starts [? $startTime ?] (<i>[? $eventTimezone ?] time</i>),<br />
Concludes [? $endTime ?].<br />
<a href="/community/event-rsvp/get_ical/?event_id=[? $arrEvent['event_id'] ?]">Add to Calendar</a>
</p>
<!-- Where -->
<ss:logic:if test="!$bDisableMap && ($locationAddress || $locationDescription)">
<p style="text-align:center;">
[? $locationAddress ?] <br />
[? $locationDescription ?] <br />
</p>
</ss:logic:if>
<!-- Link -->
<ss:logic:if test="$reminderType == 'rsvp_reminder'">
<!-- spacing -->
<table width="90%" align="center" cellspacing="0" cellpadding="0"><tr><td height="20"></td></tr></table>
<table align="center" cellpadding="0" cellspacing="0" width="90%">
<tr>
<td class="section" style="text-align: center; font-size: 20px">
<ss:templates:button href="/community/event-rsvp/?event_id=[? $arrEvent['event_id'] ?]" variant="Classic" bgcolor="#242424" color="#fff" borderRadius="0">RSVP</ss:templates:button>
</td>
</tr>
</table>
</ss:logic:if>
<ss:logic:if test="($arrAttendee && $arrEvent['event_attendance_via_qrcode'])">
<ss:logic:variable as="qr_content" value="event_id:[? $arrEvent['event_id'] ?],event_attendee_id:[? $arrAttendee['event_attendee_id'] ?],contact_id:[? $arrAttendee['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" style="image-rendering: pixelated;" />
</p>
</ss:logic:if>
</td>
</tr>
</table>
<!-- Description (if set and not equal to default CK Editor value) -->
<ss:logic:if test="$description && $description != '<p>&#8203;</p>'">
<!-- spacing -->
<table width="90%" align="center" cellspacing="0" cellpadding="0"><tr><td height="20"></td></tr></table>
<table align="center" cellpadding="0" cellspacing="0" width="80%">
<tr>
<td class="section noBg">
<ss:logic:if test="$customDescription !== null">
[? $customDescription ?]
</ss:logic:if>
<ss:logic:else>
[? $description ?]
</ss:logic:else>
</td>
</tr>
</table>
</ss:logic:if>
<!-- Show Map -->
<ss:logic:if test="!$bDisableMap && ($locationAddress || $locationDescription)">
<!-- spacing -->
<table width="90%" align="center" cellspacing="0" cellpadding="0"><tr><td height="20"></td></tr></table>
<table align="center" cellpadding="0" cellspacing="0" width="80%">
<tr>
<td class="section" style="text-align: center">
<ss:logic:if test="$locationAddress">
<div style="width:450px; margin:0px auto 5px auto;">
<a href="[? 'https://maps.google.com/?q=' + preg_replace('/\s+/', '+', $locationAddress + ' ' + $locationDescription) ?]">
<ss:thirdparty:googlemap static="true" width="450">
<ss:thirdparty:googlemapmarker address="[? $locationAddress + ' ' + $locationDescription ?]" />
</ss:thirdparty:googlemap>
</a>
</div>
</ss:logic:if>
[? $locationAddress ?] <br />
[? $locationDescription ?] <br />
</td>
</tr>
</table>
</ss:logic:if>
<!-- spacing -->
<table width="90%" align="center" cellspacing="0" cellpadding="0"><tr><td height="20"></td></tr></table>
|