<?xml version="1.0" encoding="UTF-8"?>
<emails><template><template_app>nexus</template_app><template_name>staffReplyPending</template_name><template_content_html><![CDATA[{$email->language->addToStack("your_reply_is_pending", FALSE)}<br />
<br />
<a href='{expression="\IPS\Settings::i()->base_url"}applications/nexus/interface/email/sendDiscard.php?id={$message->id}&key={expression="md5( $message->item()->email_key . $message->date )"}&send=1' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: #417ba3; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("send_it", FALSE)}</a>
<a href='{expression="\IPS\Settings::i()->base_url"}applications/nexus/interface/email/sendDiscard.php?id={$message->id}&key={expression="md5( $message->item()->email_key . $message->date )"}&send=0' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: #417ba3; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("discard_it", FALSE)}</a>
<br />
<br />
<table width='100%' cellpadding='15' cellspacing='0' border='0' style='background: #f5f5f5'>
<tr>
<td dir='{dir}'>
{$email->parseTextForEmail( $newMessage->content(), $email->language )|raw}
</td>
</tr>
</table>
<br />
<a href='{$message->item()->acpUrl()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("view_support_request", FALSE)}</a><br />
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$message, $newMessage, $email</template_data><template_content_plaintext><![CDATA[{$email->language->addToStack("your_reply_is_pending", FALSE)}
---
{$email->language->addToStack("send_it", FALSE)}: {expression="\IPS\Settings::i()->base_url"}applications/nexus/interface/email/sendDiscard.php?id={$message->id}&key={expression="md5( $message->item()->email_key . $message->date )"}&send=1
{$email->language->addToStack("discard_it", FALSE)} {expression="\IPS\Settings::i()->base_url"}applications/nexus/interface/email/sendDiscard.php?id={$message->id}&key={expression="md5( $message->item()->email_key . $message->date )"}&send=0
---
{expression="\IPS\Email::buildPlaintextBody( $newMessage->content() )"}
---
{$email->language->addToStack("view_support_request", FALSE)}: {$message->item()->acpUrl()}
-- {setting="board_name"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>newInvoice</template_name><template_content_html><![CDATA[
{$email->language->get('email_new_invoice')}
<br /><br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br /><br />
<h3 style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 24px; font-weight: 500; color: #333333; line-height: 21px; margin: 0 0 5px 0">
{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}
</h3>
<p style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; line-height: 24px; margin: 0">
{{if $invoice->po}}
<strong>{$email->language->get('invoice_po_number')}: {$invoice->po}</strong><br />
{{endif}}
</p>
{{$updateCard = false;}}
{{if $transactions = $invoice->transactions() and count( $transactions )}}
{{foreach $transactions as $transaction}}
{{if $transaction->status !== $transaction::STATUS_PAID}}
<p style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<strong style='color: #a52638'>
{expression="sprintf( $email->language->get('email_payment_unsuccessful'), $transaction->method->_title )"}
</strong>
</p>
{{$updateCard = true;}}
{{endif}}
{{endforeach}}
{{else}}
<br>
{{endif}}
<a href='{$invoice->url()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->get('email_view_order')}</a>
{{if $updateCard}}
<a href='{url="app=nexus&module=clients&controller=cards" seoTemplate="clientscards" base="front"}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->get('email_update_payment')}</a>
{{endif}}
{{if $invoice->status === \IPS\nexus\Invoice::STATUS_PENDING}}
<a href='{$invoice->checkoutUrl()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->get('order_pay_now')}</a>
<span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; line-height: 32px">{expression="sprintf( $email->language->get('email_invoice_outstanding'), $invoice->amountToPay()->toString( $email->language ) )"}</span>
{{endif}}
<br />
<br />
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' colspan="5" style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->get("order_details")}</strong>
</td>
</tr>
<tr bgcolor="#f9f9f9">
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" colspan="2">
<strong>{$email->language->addToStack('invoice_item', FALSE)}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" align='right'>
<strong>{$email->language->get('total')}</strong>
</td>
</tr>
{{foreach $summary['items'] as $k => $item}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' width='100' valign='top' class='hidePhone' style='width: 0; max-height: 0; overflow: hidden; float: left;'>
{{if $image = $item->image()}}
<img src='{$image->url}' width='100' style='border: 0; vertical-align: middle;'>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<span style="color: #8d8d8d">{$item->quantity} x</span> {$item->name}
{{if ( $item instanceof \IPS\nexus\Invoice\Item\Renewal ) AND \IPS\nexus\Purchase::load( $item->id )->expire}}
<span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">
({$email->language->addToStack('ps_expire', FALSE)}: {expression="\IPS\nexus\Purchase::load( $item->id )->expire->localeDate( $invoice->member )"})
</span>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{{if count( $item->details )}}
{{foreach $item->details as $k => $v}}
{$email->language->addToStack('nexus_pfield_' . $k, FALSE)}: {expression="\IPS\nexus\Package\CustomField::load( $k )->displayValue( $v )" raw="true"}<br>
{{endforeach}}
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$item->linePrice()->toString( $email->language )}</strong>
{{if $item->quantity > 1}}
<br><span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">{$item->price} {$email->language->get("each_short")}</span>
{{endif}}
</td>
</tr>
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<strong>{$email->language->get('subtotal')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$summary['subtotal']->toString( $email->language )}</strong>
</td>
</tr>
{{foreach $summary['shipping'] as $shipping}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$shipping->name}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$shipping->linePrice()->toString( $email->language )}</strong>
</td>
</tr>
{{endforeach}}
{{foreach $summary['tax'] as $tax}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$tax['name']} ({expression="$tax['rate']*100"}%)
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$tax['amount']}</strong>
</td>
</tr>
{{endforeach}}
{{if $transactions = $invoice->transactions() and count( $transactions )}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; line-height: 21px">
<strong>{$email->language->get('total')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; line-height: 21px" align='right'>
<strong>{$summary['total']->toString( $email->language )}</strong>
</td>
</tr>
{{foreach $transactions as $transaction}}
{{if $transaction->status === $transaction::STATUS_PAID}}
<tr>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; line-height: 21px">
<strong>{$email->language->get('email_paid_by')} {{if $transaction->method}}{$transaction->method->_title}{{else}}{$email->language->get('account_credit')}{{endif}}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; line-height: 21px" align='right'>
<strong style="font-size: 1.5em">{$transaction->amount}</strong>
</td>
</tr>
{{endif}}
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px">
<strong>{$email->language->get('total_to_pay')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px" align='right'>
<strong>{$invoice->amountToPay()->toString( $email->language )}</strong>
</td>
</tr>
{{else}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px">
<strong>{$email->language->get('total')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px" align='right'>
<strong>{$summary['total']->toString( $email->language )}</strong>
</td>
</tr>
{{endif}}
</table>
<br />
<br />
<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff" class='responsive_table'>
<tr>
<td dir='{dir}' width="{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}48%{{else}}100%{{endif}}" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->get("billing_address")}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{{if $invoice->billaddress}}{$invoice->billaddress->toString('<br />')|raw}{{endif}}
</td>
</tr>
</table>
</td>
{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}
<td dir='{dir}' width="4%"><img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''></td>
<td dir='{dir}' width="48%" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->get("shipping_address")}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{$invoice->shipaddress->toString('<br />')|raw}
</td>
</tr>
</table>
</td>
{{endif}}
</tr>
</table>]]></template_content_html><template_data>$invoice, $summary, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->get('email_new_invoice')}
-- {setting="board_name"}
{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}
=====
{{if $invoice->po}}{$email->language->get('invoice_po_number')}: {$invoice->po}{{endif}}
{{$updateCard = false;}}
{{if $transactions = $invoice->transactions() and count( $transactions )}}{{foreach $transactions as $transaction}}{{if $transaction->status !== $transaction::STATUS_PAID}}{expression="sprintf( $email->language->get('email_payment_unsuccessful'), $transaction->method->_title )"}{{$updateCard = true;}}{{endif}}{{endforeach}}{{endif}}
{$email->language->get('email_view_order')}: {$invoice->url()}
{{if $updateCard}}{$email->language->get('email_update_payment')}: {url="app=nexus&module=clients&controller=cards" seoTemplate="clientscards" base="front"}{{endif}}
{{if $invoice->status === \IPS\nexus\Invoice::STATUS_PENDING}}{$email->language->get('order_pay_now')}: {$invoice->checkoutUrl()} ({expression="sprintf( $email->language->get('email_invoice_outstanding'), $invoice->amountToPay()->toString( $email->language ) )"}){{endif}}
{$email->language->get("order_details")}
=====
{{foreach $summary['items'] as $k => $item}}
{$item->quantity} x</span> {$item->name} [{$item->price} {$email->language->get("each_short")}] ({$item->linePrice()->toString( $email->language )})
{{endforeach}}
---
{$email->language->get('subtotal')}: {$summary['subtotal']->toString( $email->language )}
{{if count( $summary['shipping'] )}}
---
{{foreach $summary['shipping'] as $shipping}}
{$shipping->name}: {$shipping->linePrice()->toString( $email->language )}
{{endforeach}}
{{endif}}
{{if count( $summary['tax'] )}}
---
{{foreach $summary['tax'] as $tax}}
{$tax['name']} ({expression="$tax['rate']*100"}%): {$tax['amount']}
{{endforeach}}
{{endif}}
---
{$email->language->get('total')}: {$summary['total']->toString( $email->language )}
{{if $transactions = $invoice->transactions() and count( $transactions )}}{{foreach $transactions as $transaction}}{{if $transaction->status === $transaction::STATUS_PAID}}
{$email->language->get('email_paid_by')} {{if $transaction->method}}{$transaction->method->_title}{{else}}{$email->language->get('account_credit')}{{endif}}: {$transaction->amount}
{{endif}}{{endforeach}}{$email->language->get('total_to_pay')}: {$invoice->amountToPay()->toString( $email->language )}
{{endif}}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>invoiceWarning</template_name><template_content_html><![CDATA[
{$email->language->get('email_expire_warning')}
<br /><br />
{{if $billingAgreement}}
{$email->language->get('email_expire_warning_billing_agreement')}
<br /><br />
<a href='{$billingAgreement->url()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: #417ba3; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("view_billing_agreement", FALSE)}</a>
{{elseif count( $cards ) and $credit and $credit->amount->isGreaterThanZero()}}
{expression="sprintf( $email->language->get('email_expire_warning_card_and_credit'), $credit->toString( $email->language ) )"}
{{elseif count( $cards )}}
{$email->language->get('email_expire_warning_card')}
{{else}}
{expression="sprintf( $email->language->get('email_expire_warning_credit'), $credit->toString( $email->language ) )"}
{{endif}}
<br /><br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br />
<br />
{{if count( $cards )}}
<table cellpadding="10" cellspacing="0" border="0" width="100%" bgcolor='#f9f9f9'>
<tr>
<td dir='{dir}' colspan="4" style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->get('email_card_on_file')}</strong>
</td>
</tr>
{{foreach $cards as $card}}
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$email->language->get('card_type')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='left'>
{{if $card->card->type}}{$email->language->get('card_type_' . $card->card->type)}{{else}}{$email->language->get('card_type_generic')}{{endif}} {expression="sprintf( $email->language->get('email_ending_in'), $card->card->lastFour )"}
</td>
{{if !is_null( $card->card->expMonth ) AND !is_null( $card->card->expYear )}}
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$email->language->get('card_expires')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='left'>
{$card->card->expMonth}/{$card->card->expYear}
</td>
{{endif}}
</tr>
{{endforeach}}
<tr bgcolor="#f0f0f0">
<td dir='{dir}' width='100' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
</td>
<td dir='{dir}' colspan="3" style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='left'>
<a href='{url="app=nexus&module=clients&controller=cards" seoTemplate="clientscards" base="front"}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->get('email_update_payment')}</a>
</td>
</tr>
</table>
<br /><br />
{{endif}}
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' colspan="5" style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->get("email_expiring_soon")}</strong>
</td>
</tr>
<tr bgcolor="#f9f9f9">
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
</td>
<td dir='{dir}'> </td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" colspan="2">
<strong>{$email->language->addToStack('invoice_item', FALSE)}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" align='right'>
<strong>{$email->language->get('email_renewal_cost')}</strong>
</td>
</tr>
{{foreach $summary['items'] as $k => $item}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' width='100' valign='top' class='hidePhone' style='width: 0; max-height: 0; overflow: hidden; float: left;'>
{{if $image = $item->image()}}
<img src='{$image->url}' width='100' style='border: 0; vertical-align: middle;'>
{{endif}}
</td>
<td dir='{dir}' width='30' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px; color: #8d8d8d" align='right' valign='top'>
<span style="color: #8d8d8d">{$item->quantity} x</span>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$item->name}
{{if $item instanceof \IPS\nexus\Invoice\Item\Renewal}}
<br>
<span style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px;">
{$email->language->addToStack('ps_expire', FALSE)}: {expression="\IPS\nexus\Purchase::load( $item->id )->expire->localeDate( $invoice->member )"}
</span>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{{if count( $item->details )}}
{{foreach $item->details as $k => $v}}
{lang="nexus_pfield_{$k}"}: {expression="\IPS\nexus\Package\CustomField::load( $k )->displayValue( $v )" raw="true"}<br>
{{endforeach}}
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$item->linePrice()->toString( $email->language )}</strong>
</td>
</tr>
{{endforeach}}
</table>]]></template_content_html><template_data>$cards, $credit, $billingAgreement, $invoice, $summary, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->get('email_expire_warning')|raw}
{{if $billingAgreement}}{$email->language->get('email_expire_warning_billing_agreement')}{{elseif count( $cards ) and $credit and $credit->amount->isGreaterThanZero()}}{expression="sprintf( $email->language->get('email_expire_warning_card_and_credit'), $credit->toString( $email->language ) )"}{{elseif count( $cards )}}{$email->language->get('email_expire_warning_card')}{{else}}{expression="sprintf( $email->language->get('email_expire_warning_credit'), $credit->toString( $email->language ) )"}{{endif}}
-- {setting="board_name"}
{{if count( $cards )}}
{$email->language->get('email_card_on_file')}
=====
{{foreach $cards as $card}}{$email->language->get('card_type')}: {{if $card->card->type}}{$email->language->get('card_type_' . $card->card->type)}{{else}}{$email->language->get('card_type_generic')}{{endif}} {expression="sprintf( $email->language->get('email_ending_in'), $card->card->lastFour )"}
{{if !is_null( $card->card->expMonth ) AND !is_null( $card->card->expYear )}}
{$email->language->get('card_expires')}: {$card->card->expMonth}/{$card->card->expYear}
{{endif}}
{{endforeach}}
{$email->language->get('email_update_payment')}: {url="app=nexus&module=clients&controller=cards" seoTemplate="clientscards" base="front"}
{{endif}}
{$email->language->get("email_expiring_soon")}
=====
{{foreach $summary['items'] as $k => $item}}{$item->quantity} x</span> {$item->name} ({$item->linePrice()->toString( $email->language )})
{$email->language->addToStack('ps_expire', FALSE)}: {expression="\IPS\nexus\Purchase::load( $item->id )->expire->localeDate( $invoice->member )"}
---
{{endforeach}}
]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>monitoring_reset</template_name><template_content_html><![CDATA[
{expression="$email->language->addToStack( 'monitor_email_intro', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}
<br />
<br />
<table width='100%' cellpadding='15' cellspacing='0' border='0' style='color: #556b45;'>
<tr>
<td dir='{dir}'>
<strong>{expression="$email->language->addToStack( 'monitor_email_reset_done', FALSE, array( 'sprintf' => array( $server->hostname, $by ) ) )"}</strong>
</td>
</tr>
</table>
<br /><br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$server, $encoded, $by, $email</template_data><template_content_plaintext><![CDATA[
{expression="$email->language->addToStack( 'monitor_email_intro', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}
{expression="$email->language->addToStack( 'monitor_email_reset_done', FALSE, array( 'sprintf' => array( $server->hostname, $by ) ) )"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>monitoring_eom</template_name><template_content_html><![CDATA[
{expression="$email->language->addToStack( 'monitor_email_intro', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}
<br />
<br />
<table width='100%' cellpadding='15' cellspacing='0' border='0' style='color: #b52b38;'>
<tr>
<td dir='{dir}'>
<strong>{expression="$email->language->addToStack( 'monitor_email_eom', FALSE, array( 'sprintf' => array( $rule->url ) ) )"}</strong>
</td>
</tr>
</table>
<br />
<br /><br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$rule, $email</template_data><template_content_plaintext><![CDATA[
{expression="$email->language->addToStack( 'monitor_email_intro', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}
{expression="$email->language->addToStack( 'monitor_email_eom', FALSE, array( 'sprintf' => array( $rule->url ) ) )"}
]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>invoiceMarkedPaid</template_name><template_content_html><![CDATA[
{$email->language->get('email_invoice_paid')} {{if $invoice->hasPhysicalItems()}}{$email->language->get('email_invoice_shipping')}{{endif}}
<br /><br />
<h3 style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 24px; font-weight: 500; color: #333333; line-height: 21px; margin: 0 0 5px 0">
{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}
</h3>
<p style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; line-height: 24px; margin: 0">
{{if $invoice->po}}
<strong>{$email->language->get('invoice_po_number')}: {$invoice->po}</strong><br />
{{endif}}
</p>
<br />
<a href='{$invoice->url()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->get('email_view_order')}</a>
<br />
<br />
<br />
<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff" class='responsive_table'>
<tr>
<td dir='{dir}' width="{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}48%{{else}}100%{{endif}}" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->get("billing_address")}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{{if $invoice->billaddress}}{$invoice->billaddress->toString('<br />')|raw}{{endif}}
</td>
</tr>
</table>
</td>
{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}
<td dir='{dir}' width="4%"><img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''></td>
<td dir='{dir}' width="48%" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->get("shipping_address")}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{$invoice->shipaddress->toString('<br />')|raw}
</td>
</tr>
</table>
</td>
{{endif}}
</tr>
</table>
<br />
<br />
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' colspan="5" style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->get("order_details")}</strong>
</td>
</tr>
<tr bgcolor="#f9f9f9">
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" colspan="2">
<strong>{$email->language->addToStack('invoice_item', FALSE)}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" align='right'>
<strong>{$email->language->get('total')}</strong>
</td>
</tr>
{{foreach $summary['items'] as $k => $item}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' width='100' valign='top' class='hidePhone' style='width: 0; max-height: 0; overflow: hidden; float: left;'>
{{if $image = $item->image()}}
<img src='{$image->url}' width='100' style='border: 0; vertical-align: middle;'>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<span style="color: #8d8d8d">{$item->quantity} x</span> {$item->name}
{{if $item instanceof \IPS\nexus\Invoice\Item\Renewal and $purchase = \IPS\nexus\Purchase::load( $item->id ) and $expire = $purchase->expire}}
<span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">
({$email->language->addToStack('ps_expire', FALSE)}: {expression="$expire->localeDate( $invoice->member )"})
</span>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{{if count( $item->details )}}
{{foreach $item->details as $k => $v}}
{lang="nexus_pfield_{$k}"}: {expression="\IPS\nexus\Package\CustomField::load( $k )->displayValue( $v )" raw="true"}<br>
{{endforeach}}
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$item->linePrice()->toString( $email->language )}</strong>
{{if $item->quantity > 1}}
<br><span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">{$item->price} {$email->language->get("each_short")}</span>
{{endif}}
</td>
</tr>
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<strong>{$email->language->get('subtotal')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$summary['subtotal']->toString( $email->language )}</strong>
</td>
</tr>
{{foreach $summary['shipping'] as $shipping}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$shipping->name}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$shipping->linePrice()->toString( $email->language )}</strong>
</td>
</tr>
{{endforeach}}
{{foreach $summary['tax'] as $tax}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$tax['name']} ({expression="$tax['rate']*100"}%)
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$tax['amount']}</strong>
</td>
</tr>
{{endforeach}}
{{if $transactions = $invoice->transactions() and count( $transactions )}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; line-height: 21px">
<strong>{$email->language->get('total')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; line-height: 21px" align='right'>
<strong>{$summary['total']->toString( $email->language )}</strong>
</td>
</tr>
{{foreach $transactions as $transaction}}
{{if $transaction->status === $transaction::STATUS_PAID}}
<tr>
<td dir='{dir}' colspan='2' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; line-height: 21px">
<strong>{$email->language->get('email_paid_by')} {{if $transaction->method}}{$transaction->method->_title}{{else}}{$email->language->get('account_credit')}{{endif}}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; line-height: 21px" align='right'>
<strong style="font-size: 1.5em">{$transaction->amount}</strong>
</td>
</tr>
{{endif}}
{{endforeach}}
{{else}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px">
<strong>{$email->language->get('total')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px" align='right'>
<strong>{$summary['total']->toString( $email->language )}</strong>
</td>
</tr>
{{endif}}
</table>
<!-- Signature -->
<br /><br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$invoice, $summary, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->get('email_invoice_paid')} {{if $invoice->hasPhysicalItems()}}{$email->language->get('email_invoice_shipping')}{{endif}}
-- {setting="board_name"}
{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}
=====
{{if $invoice->po}}{$email->language->get('invoice_po_number')}: {$invoice->po}{{endif}}
{$email->language->get('email_view_order')}: {$invoice->url()}
{$email->language->get("order_details")}
=====
{{foreach $summary['items'] as $k => $item}}
{$item->quantity} x</span> {$item->name} [{$item->price} {$email->language->get("each_short")}] ({$item->linePrice()->toString( $email->language )})
{{endforeach}}
---
{$email->language->get('subtotal')}: {$summary['subtotal']->toString( $email->language )}
{{if count( $summary['shipping'] )}}
---
{{foreach $summary['shipping'] as $shipping}}
{$shipping->name}: {$shipping->linePrice()->toString( $email->language )}
{{endforeach}}
{{endif}}
{{if count( $summary['tax'] )}}
---
{{foreach $summary['tax'] as $tax}}
{$tax['name']} ({expression="$tax['rate']*100"}%): {$tax['amount']}
{{endforeach}}
{{endif}}
---
{$email->language->get('total')}: {$summary['total']->toString( $email->language )}
{{if $transactions = $invoice->transactions() and count( $transactions )}}{{foreach $transactions as $transaction}}{{if $transaction->status === $transaction::STATUS_PAID}}
{$email->language->get('email_paid_by')} {{if $transaction->method}}{$transaction->method->_title}{{else}}{$email->language->get('account_credit')}{{endif}}: {$transaction->amount}
{{endif}}{{endforeach}}
{{endif}}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>unsubscribeStaffNotify</template_name><template_content_html><![CDATA[<tr>
<td dir='{dir}' valign="top"><img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''></td>
<td dir='{dir}' valign='middle' align='center' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 12px; line-height: 18px; padding-left: 10px;">
{$email->language->addToStack("unsubscribe_blurb", FALSE)} <a href="{url="app=nexus&module=support&controller=requests&do=notifications" base="admin"}" style='color: #4a8aca; text-decoration: none; display: inline-block'>{$email->language->addToStack( 'manage_notification_settings', FALSE )}</a>.
<br />
</td>
</tr>]]></template_content_html><template_data>$member, $email</template_data><template_content_plaintext><![CDATA[{$email->language->addToStack("manage_notification_settings", FALSE)} {$email->language->addToStack( 'adjust_digest_prefs', FALSE )}: {url="app=nexus&module=support&controller=requests&do=notifications" base="admin"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>transactionGatewayPending</template_name><template_content_html><![CDATA[<br />
{$email->language->addToStack("email_gateway_pending", FALSE)}
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br />
<br />
<h3 style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 24px; font-weight: 500; color: #333333; line-height: 21px; margin: 0">
{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}
</h3>
<br />
<a href='{$invoice->url()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("email_view_order", FALSE)}</a>
<br />
<br />
<br />
<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff" class='responsive_table'>
<tr>
<td dir='{dir}' width="{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}48%{{else}}100%{{endif}}" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("billing_address", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{{if $invoice->billaddress}}{$invoice->billaddress->toString('<br />')|raw}{{endif}}
</td>
</tr>
</table>
</td>
{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}
<td dir='{dir}' width="4%"><img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''></td>
<td dir='{dir}' width="48%" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("shipping_address", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{$invoice->shipaddress->toString('<br />')|raw}
</td>
</tr>
</table>
</td>
{{endif}}
</tr>
</table>
<br />
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("payment_details", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f9f9f9">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("status", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> {$email->language->addToStack("transaction_title_pending", FALSE)}</td>
</tr>
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("email_payment_method", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> {{if $transaction->method}}{$transaction->method->_title}{{else}}{$email->language->addToStack("account_credit", FALSE)}{{endif}}</td>
</tr>
{{if $transaction->gw_id}}
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("email_transaction_id", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> {$transaction->gw_id}</td>
</tr>
{{endif}}
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("date", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> {$transaction->date}</td>
</tr>
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("amount", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> {$transaction->amount}</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' colspan="5" style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("order_details", FALSE)}</strong>
</td>
</tr>
<tr bgcolor="#f9f9f9">
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" colspan="2">
<strong>{$email->language->addToStack('invoice_item', FALSE)}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" align='right'>
<strong>{$email->language->get('total')}</strong>
</td>
</tr>
{{foreach $invoiceSummary['items'] as $k => $item}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' width='100' valign='top' class='hidePhone' style='width: 0; max-height: 0; overflow: hidden; float: left;'>
{{if $image = $item->image()}}
<img src='{$image->url}' width='100' style='border: 0; vertical-align: middle;'>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<span style="color: #8d8d8d">{$item->quantity} x</span> {$item->name}
{{if $item instanceof \IPS\nexus\Invoice\Item\Renewal AND $purchase = $item->getPurchase() AND $purchase->expire}}
<span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">
({$email->language->addToStack('ps_expire', FALSE)}: {expression="$purchase->expire->localeDate( $invoice->member )"})
</span>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{{if count( $item->details )}}
{{foreach $item->details as $k => $v}}
{lang="nexus_pfield_{$k}"}: {expression="\IPS\nexus\Package\CustomField::load( $k )->displayValue( $v )" raw="true"}<br>
{{endforeach}}
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$item->linePrice()->toString( $email->language )}</strong>
{{if $item->quantity > 1}}
<br><span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">{$email->language->addToStack("each_short", FALSE, array( 'sprintf' => array( $item->price ) ) )}</span>
{{endif}}
</td>
</tr>
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<strong>{$email->language->get('subtotal')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$invoiceSummary['subtotal']->toString( $email->language )}</strong>
</td>
</tr>
{{foreach $invoiceSummary['shipping'] as $shipping}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$shipping->name}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$shipping->linePrice()->toString( $email->language )}</strong>
</td>
</tr>
{{endforeach}}
{{foreach $invoiceSummary['tax'] as $tax}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$tax['name']} ({expression="$tax['rate']*100"}%)
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$tax['amount']}</strong>
</td>
</tr>
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px">
<strong>{$email->language->get('total')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px" align='right'>
<strong>{$invoiceSummary['total']->toString( $email->language )}</strong>
</td>
</tr>
</table>]]></template_content_html><template_data>$transaction, $invoice, $invoiceSummary, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->addToStack("email_gateway_pending_plain", FALSE)}
— {setting="board_name"}
-----
**{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}**
{$email->language->addToStack("email_view_order", FALSE)}: {$invoice->url()}
{$email->language->addToStack("billing_address", FALSE)}
===
{$invoice->member->cm_name}
{{if $invoice->billaddress}}{$invoice->billaddress->toString('\n')|raw}{{endif}}
{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}
{$email->language->addToStack("shipping_address", FALSE)}
===
{$invoice->member->cm_name}
{$invoice->shipaddress->toString('\n')|raw}
{{endif}}
{$email->language->addToStack("payment_details", FALSE)}
===
{$email->language->addToStack("status", FALSE)}: {$email->language->addToStack("transaction_title_pending", FALSE)}
{$email->language->addToStack("email_payment_method", FALSE)}: {{if $transaction->method}}{$transaction->method->_title}{{else}}{$email->language->addToStack("account_credit", FALSE)}{{endif}}
{$email->language->addToStack("email_transaction_id", FALSE)}: {$transaction->gw_id}
{$email->language->addToStack("date", FALSE)}: {$transaction->date}
{$email->language->addToStack("amount", FALSE)}: {$transaction->amount}
{$email->language->addToStack("order_details", FALSE)}
===
{{foreach $invoiceSummary['items'] as $k => $item}}
{$item->quantity} x</span> {$item->name} [{$email->language->addToStack("each_short", FALSE, array( 'sprintf' => array( $item->price ) ) )}] ({$item->linePrice()->toString( $email->language )})
{{endforeach}}
---
{$email->language->get('subtotal')}: {$invoiceSummary['subtotal']->toString( $email->language )}
{{if count( $invoiceSummary['shipping'] )}}
---
{{foreach $invoiceSummary['shipping'] as $shipping}}
{$shipping->name}: {$shipping->linePrice()->toString( $email->language )}
{{endforeach}}
{{endif}}
{{if count( $invoiceSummary['tax'] )}}
---
{{foreach $invoiceSummary['tax'] as $tax}}
{$tax['name']} ({expression="$tax['rate']*100"}%): {$tax['amount']}
{{endforeach}}
{{endif}}
---
{$email->language->get('total')}: {$invoiceSummary['total']->toString( $email->language )}
-- {setting="board_name"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>staffNotifyNew</template_name><template_content_html><![CDATA[{{if $request->member == $firstMessage->member and $request->email == $firstMessage->email}}
{$email->language->addToStack("staffnotify_new_header", FALSE, array( 'sprintf' => array( $request->supportAuthor()->name() ) ) )}<br />
{{else}}
{$email->language->addToStack("staffnotify_new_header_on_behalf", FALSE, array( 'sprintf' => array( $firstMessage->member ? $firstMessage->author()->cm_name : $firstMessage->email, $request->supportAuthor()->name() ) ) )}<br />
{{endif}}
<br />
<table width='100%' cellpadding='15' cellspacing='0' border='0' style='background: #f5f5f5'>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5;">
<h2 style='margin: 0; font-size: 19px; font-weight: 500'>#{$request->id} {$request->title}</h2>
{$email->parseTextForEmail( $request->content(), $email->language )|raw}
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px; color: #8d8d8d">
{$email->language->addToStack("department", FALSE)}: {$email->language->addToStack("nexus_department_".$request->department->_id, FALSE)} · {$email->language->addToStack("r_severity", FALSE)}: {$email->language->addToStack("nexus_severity_".$request->severity->_id, FALSE)}
</td>
</tr>
</table>
<br />
<a href='{$request->acpUrl()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("view_support_request", FALSE)}</a> {$email->language->addToStack("or_you_can_reply", FALSE)}
<br />
<br />
<strong style="font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; color: #a52638">{$email->language->addToStack("staffnotify_note_warning", FALSE)}</strong>
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br />
<div style="font-size: 0px; line-height: 0px; color:#ffffff !important;">{$email->language->addToStack("support_reply_email_id", FALSE, array( 'sprintf' => array( '[SR' . $request->id . '.' . $request->email_key . '.' . $request->comments( 1, NULL, 'date', 'asc', NULL, FALSE )->id . ']' ) ) )}</div>]]></template_content_html><template_data>$request, $firstMessage, $email</template_data><template_content_plaintext><![CDATA[
{{if $request->member == $firstMessage->member and $request->email == $firstMessage->email}}{$email->language->addToStack("staffnotify_new_header", FALSE, array( 'sprintf' => array( $request->supportAuthor()->name() ) ) )}{{else}}{$email->language->addToStack("staffnotify_new_header_on_behalf", FALSE, array( 'sprintf' => array( $firstMessage->member ? $firstMessage->author()->cm_name : $firstMessage->email, $request->supportAuthor()->name() ) ) )}{{endif}}
-----
{$email->language->addToStack("r_id", FALSE)}: {$request->id}
{$email->language->addToStack("r_title", FALSE)}: {$request->title}
{$email->language->addToStack("department", FALSE)}: {$email->language->addToStack("nexus_department_".$request->department->_id)}
{$email->language->addToStack("r_severity", FALSE)}: {$email->language->addToStack("nexus_severity_".$request->severity->_id)}
-----
{expression="\IPS\Email::buildPlaintextBody( $request->content() )"}
-----
{$email->language->addToStack("view_support_request", FALSE)}: {$request->acpUrl()}
{$email->language->addToStack("or_you_can_reply", FALSE)}
-- {setting="board_name"}
{$email->language->addToStack("support_reply_email_id", FALSE, array( 'sprintf' => array( '[SR' . $request->id . '.' . $request->email_key . '.' . $request->comments( 1, NULL, 'date', 'asc', NULL, FALSE )->id . ']' ) ) )}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>staffNotifyNote</template_name><template_content_html><![CDATA[{$email->language->addToStack("staffnotify_note_header", FALSE, array( 'sprintf' => array( $message->author()->name ) ) )}<br />
<br />
<table width='100%' cellpadding='15' cellspacing='0' border='0' bgcolor="#f6f0e4" style="border: 3px solid #ecdcb9;">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5;">
<h2 style='margin: 0; font-size: 19px; font-weight: 500; color: #977b3e !important'>#{$message->item()->id} {$message->item()->title}</h2>
{$email->parseTextForEmail( $message->content(), $email->language )|raw}
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px; color: #8d8d8d">
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
<tr>
<td dir='{dir}' width='120' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px;"><strong>{$email->language->addToStack("status", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px;">{$email->language->addToStack("nexus_status_".$message->item()->status->_id."_admin", FALSE)}</td>
</tr>
<tr>
<td dir='{dir}' width='120' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px;"><strong>{$email->language->addToStack("department", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px;">{$email->language->addToStack("nexus_department_".$message->item()->department->_id, FALSE)}</td>
</tr>
<tr>
<td dir='{dir}' width='120' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px;"><strong>{$email->language->addToStack("r_severity", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px;">{$email->language->addToStack("nexus_severity_".$message->item()->severity->_id, FALSE)}</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<a href='{$message->item()->acpUrl()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("view_support_request", FALSE)}</a> {$email->language->addToStack("or_you_can_reply", FALSE)}
<br /><br />
<strong style="font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; color: #a52638">{$email->language->addToStack("staffnotify_note_warning", FALSE)}</strong>
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br />
<div style="font-size: 0px; line-height: 0px; color:#ffffff !important;">{$email->language->addToStack("support_reply_email_id", FALSE, array( 'sprintf' => array( '[SR' . $message->item()->id . '.' . $message->item()->email_key . '.' . $message->id . ']' ) ) )}</div>]]></template_content_html><template_data>$message, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->addToStack("staffnotify_note_header", FALSE, array( 'sprintf' => array( $message->author()->name ) ) )}
-----
{$email->language->addToStack("r_id", FALSE)}: {$message->item()->id}
{$email->language->addToStack("r_title", FALSE)}: {$message->item()->title}
{$email->language->addToStack("status", FALSE)}: {$email->language->addToStack("nexus_status_".$message->item()->status->_id."_admin", FALSE)}
{$email->language->addToStack("department", FALSE)}: {$email->language->addToStack("nexus_department_".$message->item()->department->_id, FALSE)}
{$email->language->addToStack("r_severity", FALSE)}: {$email->language->addToStack("nexus_severity_".$message->item()->severity->_id, FALSE)}
-----
{expression="\IPS\Email::buildPlaintextBody( $message->content() )"}
-----
{$email->language->addToStack("view_support_request", FALSE)}: {$message->item()->acpUrl()}
{$email->language->addToStack("or_you_can_reply", FALSE)}
**!! {$email->language->addToStack("staffnotify_note_warning", FALSE)} !!**
-- {setting="board_name"}
{$email->language->addToStack("support_reply_email_id", FALSE, array( 'sprintf' => array( '[SR' . $message->item()->id . '.' . $message->item()->email_key . '.' . $message->id . ']' ) ) )}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>staffAssignedReminder</template_name><template_content_html><![CDATA[{$email->language->addToStack("you_have_assigned_support_requests", FALSE)}<br />
<br />
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
{{foreach $requests as $request}}
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5;">
<a href="{$request->acpUrl()}" style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 17px; text-decoration: none;"><strong>{$request->title}</strong></a> <span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 12px">#{$request->id}</span>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px">
<strong>{$email->language->addToStack("email_timeelapsed", FALSE)}:</strong> {expression="\IPS\DateTime::formatInterval( \IPS\DateTime::ts( time() )->diff( \IPS\DateTime::ts( $request->mapped('date') ) ), 2, $email->language )"}
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px; color: #8d8d8d;">
<strong>{$email->language->addToStack("status", FALSE)}:</strong> {$email->language->addToStack("nexus_status_".$request->status->_id."_admin", FALSE)} <strong>{$email->language->addToStack("department", FALSE)}:</strong> {$email->language->addToStack("nexus_department_".$request->department->_id, FALSE)} <strong>{$email->language->addToStack("r_severity", FALSE)}:</strong> {$email->language->addToStack("nexus_severity_".$request->severity->_id, FALSE)}
<br /><br />
</td>
</tr>
{{endforeach}}
</table>
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$requests, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->addToStack("you_have_assigned_support_requests", FALSE)}
-----
{{foreach $requests as $request}}
{$request->title} #{$request->id} ({$request->acpUrl()})
{$email->language->addToStack("status", FALSE)}: {$email->language->addToStack("nexus_status_".$request->status->_id."_admin", FALSE)} {$email->language->addToStack("department", FALSE)}: {$email->language->addToStack("nexus_department_".$request->department->_id, FALSE)} {$email->language->addToStack("r_severity", FALSE)}: {$email->language->addToStack("nexus_severity_".$request->severity->_id, FALSE)}
{{endforeach}}
-- {setting="board_name"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>payoutComplete</template_name><template_content_html><![CDATA[
{$email->language->addToStack("email_payout_message", FALSE, array( 'sprintf' => array( $payout->amount, $payout->date, $payout->gateway ) ) )}
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$payout, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->addToStack("email_payout_message", FALSE, array( 'sprintf' => array( $payout->amount, $payout->date, $payout->gateway ) ) )}
-- {setting="board_name"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>transactionApproved</template_name><template_content_html><![CDATA[
{$email->language->addToStack("email_thanks_for_order", FALSE, array( 'sprintf' => array( \IPS\Settings::i()->board_name ) ) )}
{{if $invoice->hasPhysicalItems()}}
<br />
{$email->language->addToStack("email_shipping_note", FALSE, array( 'pluralize' => array( count( $invoiceSummary['items'] ) ) ) )}
{{endif}}
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br />
<br />
<h3 style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 24px; font-weight: 500; color: #333333; line-height: 21px; margin: 0">
{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}
</h3>
<br />
<a href='{$invoice->url()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("email_view_order", FALSE)}</a>
<br />
<br />
<br />
<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff" class='responsive_table'>
<tr>
<td dir='{dir}' width="{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}48%{{else}}100%{{endif}}" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("billing_address", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{{if $invoice->billaddress}}{$invoice->billaddress->toString('<br />')|raw}{{endif}}
</td>
</tr>
</table>
</td>
{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}
<td dir='{dir}' width="4%"><img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''></td>
<td dir='{dir}' width="48%" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("shipping_address", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{$invoice->shipaddress->toString('<br />')|raw}
</td>
</tr>
</table>
</td>
{{endif}}
</tr>
</table>
<br />
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("payment_details", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f9f9f9">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("t_status", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> ✓ {$email->language->addToStack("tstatus_okay", FALSE)}</td>
</tr>
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("email_payment_method", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> {{if $transaction->method}}{$transaction->method->_title}{{else}}{$email->language->addToStack("account_credit", FALSE)}{{endif}}</td>
</tr>
{{if $transaction->gw_id}}
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("email_transaction_id", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> {$transaction->gw_id}</td>
</tr>
{{endif}}
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("t_date", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> {$transaction->date}</td>
</tr>
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("t_amount", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> {$transaction->amount}</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' colspan="5" style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("order_details", FALSE)}</strong>
</td>
</tr>
<tr bgcolor="#f9f9f9">
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" colspan="2">
<strong>{$email->language->addToStack('invoice_item', FALSE)}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" align='right'>
<strong>{$email->language->get('total')}</strong>
</td>
</tr>
{{foreach $invoiceSummary['items'] as $k => $item}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' width='100' valign='top' class='hidePhone' style='width: 0; max-height: 0; overflow: hidden; float: left;'>
{{if $image = $item->image()}}
<img src='{$image->url}' width='100' style='border: 0; vertical-align: middle;'>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<span style="color: #8d8d8d">{$item->quantity} x</span> {$item->name}
{{if $item instanceof \IPS\nexus\Invoice\Item\Renewal AND $purchase = $item->getPurchase() AND $purchase->expire}}
<span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">
({$email->language->addToStack('ps_expire', FALSE)}: {expression="$purchase->expire->localeDate( $invoice->member )"})
</span>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{{if count( $item->details )}}
{{foreach $item->details as $k => $v}}
{lang="nexus_pfield_{$k}"}: {expression="\IPS\nexus\Package\CustomField::load( $k )->displayValue( $v )" raw="true"}<br>
{{endforeach}}
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$item->linePrice()->toString( $email->language )}</strong>
{{if $item->quantity > 1}}
<br><span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">{$email->language->addToStack("each_short", FALSE, array( 'sprintf' => array( $item->price ) ) )}</span>
{{endif}}
</td>
</tr>
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<strong>{$email->language->get('subtotal')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$invoiceSummary['subtotal']->toString( $email->language )}</strong>
</td>
</tr>
{{foreach $invoiceSummary['shipping'] as $shipping}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$shipping->name}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$shipping->linePrice()->toString( $email->language )}</strong>
</td>
</tr>
{{endforeach}}
{{foreach $invoiceSummary['tax'] as $tax}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$tax['name']} ({expression="$tax['rate']*100"}%)
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$tax['amount']}</strong>
</td>
</tr>
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px">
<strong>{$email->language->get('total')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px" align='right'>
<strong>{$invoiceSummary['total']->toString( $email->language )}</strong>
</td>
</tr>
</table>]]></template_content_html><template_data>$transaction, $invoice, $invoiceSummary, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->addToStack("email_thanks_for_order", FALSE, array( 'sprintf' => array( \IPS\Settings::i()->board_name ) ) )}
{{if $invoice->hasPhysicalItems()}}{$email->language->addToStack("email_shipping_note", FALSE, array( 'pluralize' => array( count( $invoiceSummary['items'] ) ) ) )}{{endif}}
— {setting="board_name"}
-----
**{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}**
{$email->language->addToStack("email_view_order", FALSE)}: {$invoice->url()}
{$email->language->addToStack("billing_address", FALSE)}
===
{$invoice->member->cm_name}
{{if $invoice->billaddress}}{$invoice->billaddress->toString('\n')|raw}{{endif}}
{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}
{$email->language->addToStack("shipping_address", FALSE)}
===
{$invoice->member->cm_name}
{$invoice->shipaddress->toString('\n')|raw}
{{endif}}
{$email->language->addToStack("payment_details", FALSE)}
===
{$email->language->addToStack("status", FALSE)}: {$email->language->addToStack("tstatus_okay", FALSE)}
{$email->language->addToStack("email_payment_method", FALSE)}: {{if $transaction->method}}{$transaction->method->_title}{{else}}{$email->language->addToStack("account_credit", FALSE)}{{endif}}
{$email->language->addToStack("email_transaction_id", FALSE)}: {$transaction->gw_id}
{$email->language->addToStack("date", FALSE)}: {$transaction->date}
{$email->language->addToStack("amount", FALSE)}: {$transaction->amount}
{$email->language->addToStack("order_details", FALSE)}
===
{{foreach $invoiceSummary['items'] as $k => $item}}
{$item->quantity} x</span> {$item->name} [{$email->language->addToStack("each_short", FALSE, array( 'sprintf' => array( $item->price ) ) )}] ({$item->linePrice()->toString( $email->language )})
{{endforeach}}
---
{$email->language->get('subtotal')}: {$invoiceSummary['subtotal']->toString( $email->language )}
{{if count( $invoiceSummary['shipping'] )}}
---
{{foreach $invoiceSummary['shipping'] as $shipping}}
{$shipping->name}: {$shipping->linePrice()->toString( $email->language )}
{{endforeach}}
{{endif}}
{{if count( $invoiceSummary['tax'] )}}
---
{{foreach $invoiceSummary['tax'] as $tax}}
{$tax['name']} ({expression="$tax['rate']*100"}%): {$tax['amount']}
{{endforeach}}
{{endif}}
---
{$email->language->get('total')}: {$invoiceSummary['total']->toString( $email->language )}
-- {setting="board_name"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>replyRequestLocked</template_name><template_content_html><![CDATA[
{$email->language->addToStack("support_bounced")}<br /><br />
{{if $request->department->email}}
{{if $member->member_id}}
{$email->language->addToStack("support_bounced_member", FALSE, array( 'sprintf' => $request->department->email))}<br /><br />
<a href='{url="app=nexus&module=support&controller=home&do=create" seoTemplate="support_create" base="front"}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("support_bounced_link", FALSE)}</a>
{{else}}
{$email->language->addToStack("support_bounced_guest", FALSE, array( 'sprintf' => $request->department->email))}
{{endif}}
{{elseif $member->member_id}}
<a href='{url="app=nexus&module=support&controller=home&do=create" seoTemplate="support_create" base="front"}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("support_bounced_link", FALSE)}</a>
{{endif}}
<br /><br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$request, $member, $email</template_data><template_content_plaintext><![CDATA[{$email->language->addToStack("support_bounced")}
{{if $request->department->email}}
{{if $member->member_id}}
{$email->language->addToStack("support_bounced_member", FALSE, array( 'sprintf' => $request->department->email))}
{$email->language->addToStack("support_bounced_link", FALSE)}: {url="app=nexus&module=support&controller=home&do=create" seoTemplate="support_create" base="front"}
{{else}}
{$email->language->addToStack("support_bounced_guest", FALSE, array( 'sprintf' => $request->department->email))}
{{endif}}
{{elseif $member->member_id}}
{$email->language->addToStack("support_bounced_link", FALSE)}: {url="app=nexus&module=support&controller=home&do=create" seoTemplate="support_create" base="front"}
{{endif}}
-- {setting="board_name"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>monitoring_panic</template_name><template_content_html><![CDATA[
{expression="$email->language->addToStack( 'monitor_email_intro', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}
<br />
<br />
<table width='100%' cellpadding='15' cellspacing='0' border='0' style='color: #b52b38;'>
<tr>
<td dir='{dir}'>
<strong>{expression="$email->language->addToStack( 'monitor_email_offline_panic', FALSE, array( 'sprintf' => $server->hostname ) )"}</strong>
</td>
</tr>
</table>
<br />
<a href='{setting="base_url"}applications/nexus/interface/monitoring/respond.php?a=a&server={$server->id}&by={$encoded}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{expression="$email->language->addToStack( 'monitor_email_acknowledge', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}</a>
<a href='{setting="base_url"}applications/nexus/interface/monitoring/respond.php?a=r&server={$server->id}&by={$encoded}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{expression="$email->language->addToStack( 'monitor_email_reset', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}</a>
<br /><br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$server, $encoded, $email</template_data><template_content_plaintext><![CDATA[
{expression="$email->language->addToStack( 'monitor_email_intro', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}
{expression="$email->language->addToStack( 'monitor_email_offline_panic', FALSE, array( 'sprintf' => $server->hostname ) )"}
{$email->language->addToStack('monitor_email_acknowledge', FALSE)}: {setting="base_url"}applications/nexus/interface/monitoring/respond.php?a=a&server={$server->id}&by={$encoded}
{$email->language->addToStack('monitor_email_reset', FALSE)}: {setting="base_url"}applications/nexus/interface/monitoring/respond.php?a=r&server={$server->id}&by={$encoded}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>staffNotifyReply</template_name><template_content_html><![CDATA[{{if $message->member or !$message->email}}
{$email->language->addToStack("staffnotify_reply_header", FALSE, array( 'sprintf' => array( $message->author()->name ) ) )}<br />
{{else}}
{$email->language->addToStack("staffnotify_reply_header", FALSE, array( 'sprintf' => array( $message->email ) ) )}<br />
{{endif}}
<br />
<table width='100%' cellpadding='15' cellspacing='0' border='0' bgcolor="#f5f5f5">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5;">
<h2 style='margin: 0; font-size: 19px; font-weight: 500'>#{$message->item()->id} {$message->item()->title}</h2>
{$email->parseTextForEmail( $message->content(), $email->language )|raw}
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px; color: #8d8d8d">
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
<tr>
<td dir='{dir}' width='120' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px;"><strong>{$email->language->addToStack("status", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px;">{$email->language->addToStack("nexus_status_".$message->item()->status->_id."_admin", FALSE)}</td>
</tr>
<tr>
<td dir='{dir}' width='120' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px;"><strong>{$email->language->addToStack("department", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px;">{$email->language->addToStack("nexus_department_".$message->item()->department->_id, FALSE)}</td>
</tr>
<tr>
<td dir='{dir}' width='120' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px;"><strong>{$email->language->addToStack("r_severity", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 1.5; font-size: 13px;">{$email->language->addToStack("nexus_severity_".$message->item()->severity->_id, FALSE)}</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<a href='{$message->item()->acpUrl()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("view_support_request", FALSE)}</a> {$email->language->addToStack("or_you_can_reply", FALSE)}
<br />
<br />
<strong style="font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; color: #a52638">{$email->language->addToStack("staffnotify_note_warning", FALSE)}</strong>
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br />
<div style="font-size: 0px; line-height: 0px; color:#ffffff !important;">{$email->language->addToStack("support_reply_email_id", FALSE, array( 'sprintf' => array( '[SR' . $message->item()->id . '.' . $message->item()->email_key . '.' . $message->id . ']' ) ) )}</div>]]></template_content_html><template_data>$message, $email</template_data><template_content_plaintext><![CDATA[
{{if $message->member or !$message->email}}
{$email->language->addToStack("staffnotify_reply_header", FALSE, array( 'sprintf' => array( $message->author()->name ) ) )}
{{else}}
{$email->language->addToStack("staffnotify_reply_header", FALSE, array( 'sprintf' => array( $message->email ) ) )}
{{endif}}
-----
{$email->language->addToStack("r_id", FALSE)}: {$message->item()->id}
{$email->language->addToStack("r_title", FALSE)}: {$message->item()->title}
{$email->language->addToStack("department", FALSE)}: {$email->language->addToStack("nexus_department_".$message->item()->department->_id, FALSE)}
{$email->language->addToStack("r_severity", FALSE)}: {$email->language->addToStack("nexus_severity_".$message->item()->severity->_id, FALSE)}
-----
{expression="\IPS\Email::buildPlaintextBody( $message->content() )"}
-----
{$email->language->addToStack("view_support_request", FALSE)}: {$message->item()->acpUrl()}
{$email->language->addToStack("or_you_can_reply", FALSE)}
-- {setting="board_name"}
{$email->language->addToStack("support_reply_email_id", FALSE, array( 'sprintf' => array( '[SR' . $message->item()->id . '.' . $message->item()->email_key . '.' . $message->id . ']' ) ) )}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>transactionHeld</template_name><template_content_html><![CDATA[<br />
{$email->language->addToStack("email_held_approval", FALSE)}
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br />
<br />
<h3 style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 24px; font-weight: 500; color: #333333; line-height: 21px; margin: 0">
{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}
</h3>
<br />
<a href='{$invoice->url()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("email_view_order", FALSE)}</a>
<br />
<br />
<br />
<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff" class='responsive_table'>
<tr>
<td dir='{dir}' width="{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}48%{{else}}100%{{endif}}" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("billing_address", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{{if $invoice->billaddress}}{$invoice->billaddress->toString('<br />')|raw}{{endif}}
</td>
</tr>
</table>
</td>
{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}
<td dir='{dir}' width="4%"><img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''></td>
<td dir='{dir}' width="48%" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("shipping_address", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{$invoice->shipaddress->toString('<br />')|raw}
</td>
</tr>
</table>
</td>
{{endif}}
</tr>
</table>
<br />
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("payment_details", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f9f9f9">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("status", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> {$email->language->addToStack("tstatus_hold_set", FALSE)}</td>
</tr>
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("email_payment_method", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> {{if $transaction->method}}{$transaction->method->_title}{{else}}{$email->language->addToStack("account_credit", FALSE)}{{endif}}</td>
</tr>
{{if $transaction->gw_id}}
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("email_transaction_id", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> {$transaction->gw_id}</td>
</tr>
{{endif}}
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("date", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> {$transaction->date}</td>
</tr>
<tr>
<td dir='{dir}' width="150" align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"><strong>{$email->language->addToStack("amount", FALSE)}</strong></td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px"> {$transaction->amount}</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' colspan="5" style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("order_details", FALSE)}</strong>
</td>
</tr>
<tr bgcolor="#f9f9f9">
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" colspan="2">
<strong>{$email->language->addToStack('invoice_item', FALSE)}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" align='right'>
<strong>{$email->language->get('total')}</strong>
</td>
</tr>
{{foreach $invoiceSummary['items'] as $k => $item}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' width='100' valign='top' class='hidePhone' style='width: 0; max-height: 0; overflow: hidden; float: left;'>
{{if $image = $item->image()}}
<img src='{$image->url}' width='100' style='border: 0; vertical-align: middle;'>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<span style="color: #8d8d8d">{$item->quantity} x</span> {$item->name}
{{if $item instanceof \IPS\nexus\Invoice\Item\Renewal AND $purchase = $item->getPurchase() AND $purchase->expire}}
<span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">
({$email->language->addToStack('ps_expire', FALSE)}: {expression="$purchase->expire->localeDate( $invoice->member )"})
</span>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{{if count( $item->details )}}
{{foreach $item->details as $k => $v}}
{lang="nexus_pfield_{$k}"}: {expression="\IPS\nexus\Package\CustomField::load( $k )->displayValue( $v )" raw="true"}<br>
{{endforeach}}
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$item->linePrice()->toString( $email->language )}</strong>
{{if $item->quantity > 1}}
<br><span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">{$email->language->addToStack("each_short", FALSE, array( 'sprintf' => array( $item->price ) ) )}</span>
{{endif}}
</td>
</tr>
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<strong>{$email->language->get('subtotal')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$invoiceSummary['subtotal']->toString( $email->language )}</strong>
</td>
</tr>
{{foreach $invoiceSummary['shipping'] as $shipping}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$shipping->name}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$shipping->linePrice()->toString( $email->language )}</strong>
</td>
</tr>
{{endforeach}}
{{foreach $invoiceSummary['tax'] as $tax}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$tax['name']} ({expression="$tax['rate']*100"}%)
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$tax['amount']}</strong>
</td>
</tr>
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px">
<strong>{$email->language->get('total')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px" align='right'>
<strong>{$invoiceSummary['total']->toString( $email->language )}</strong>
</td>
</tr>
</table>]]></template_content_html><template_data>$transaction, $invoice, $invoiceSummary, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->addToStack("email_held_approval_plain", FALSE)}
— {setting="board_name"}
-----
**{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}**
{$email->language->addToStack("email_view_order", FALSE)}: {$invoice->url()}
{$email->language->addToStack("billing_address", FALSE)}
===
{$invoice->member->cm_name}
{{if $invoice->billaddress}}{$invoice->billaddress->toString('\n')|raw}{{endif}}
{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}
{$email->language->addToStack("shipping_address", FALSE)}
===
{$invoice->member->cm_name}
{$invoice->shipaddress->toString('\n')|raw}
{{endif}}
{$email->language->addToStack("payment_details", FALSE)}
===
{$email->language->addToStack("status", FALSE)}: {$email->language->addToStack("tstatus_hold_set", FALSE)}
{$email->language->addToStack("email_payment_method", FALSE)}: {{if $transaction->method}}{$transaction->method->_title}{{else}}{$email->language->addToStack("account_credit", FALSE)}{{endif}}
{$email->language->addToStack("email_transaction_id", FALSE)}: {$transaction->gw_id}
{$email->language->addToStack("date", FALSE)}: {$transaction->date}
{$email->language->addToStack("amount", FALSE)}: {$transaction->amount}
{$email->language->addToStack("order_details", FALSE)}
===
{{foreach $invoiceSummary['items'] as $k => $item}}
{$item->quantity} x</span> {$item->name} [{$email->language->addToStack("each_short", FALSE, array( 'sprintf' => array( $item->price ) ) )}] ({$item->linePrice()->toString( $email->language )})
{{endforeach}}
---
{$email->language->get('subtotal')}: {$invoiceSummary['subtotal']->toString( $email->language )}
{{if count( $invoiceSummary['shipping'] )}}
---
{{foreach $invoiceSummary['shipping'] as $shipping}}
{$shipping->name}: {$shipping->linePrice()->toString( $email->language )}
{{endforeach}}
{{endif}}
{{if count( $invoiceSummary['tax'] )}}
---
{{foreach $invoiceSummary['tax'] as $tax}}
{$tax['name']} ({expression="$tax['rate']*100"}%): {$tax['amount']}
{{endforeach}}
{{endif}}
---
{$email->language->get('total')}: {$invoiceSummary['total']->toString( $email->language )}
-- {setting="board_name"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>hostingError</template_name><template_content_html><![CDATA[{expression="$email->language->addToStack( 'hosting_error_email_intro', FALSE )"}
<br />
<br />
<table width='100%' cellpadding='15' cellspacing='0' border='0' style='background: #b52b38; color: #fff;'>
<tr>
<td dir='{dir}'>
<strong>{$server->hostname}</strong>
</td>
</tr>
<tr>
<td dir='{dir}'>
{{if $email->language->checkKeyExists( 'hosting_ex_' . $message )}}{$email->language->addToStack( 'hosting_ex_' . $message, FALSE )}{{else}}{$message}{{endif}}
</td>
</tr>
</table>
<br />
<a href='{$url}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{expression="$email->language->addToStack( 'menu__nexus_hosting_errors', FALSE )"}</a>
<br /><br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$server, $message, $url, $email</template_data><template_content_plaintext><![CDATA[
{expression="$email->language->addToStack( 'hosting_error_email_intro', FALSE )"}
{$server->hostname}: {{if $email->language->checkKeyExists( 'hosting_ex_' . $message )}}{$email->language->addToStack( 'hosting_ex_' . $message, FALSE )}{{else}}{$message}{{endif}}
{expression="$email->language->addToStack( 'menu__nexus_hosting_errors', FALSE )"}: {$url}
-- {setting="board_name"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>transactionWaiting</template_name><template_content_html><![CDATA[
{$email->language->addToStack("email_transaction_waiting", FALSE, array( 'sprintf' => array( \IPS\Settings::i()->board_name ) ) )}
<br />
<br />
{$transaction->method->manualPaymentInstructions( $transaction, 'html' )|raw}
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br />
<br />
<h3 style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 24px; font-weight: 500; color: #333333; line-height: 21px; margin: 0">
{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}
</h3>
<a href='{$invoice->url()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("email_view_order", FALSE)}</a>
<br />
<br />
<br />
<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff" class='responsive_table'>
<tr>
<td dir='{dir}' width="{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}48%{{else}}100%{{endif}}" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("billing_address", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{{if $invoice->billaddress}}{$invoice->billaddress->toString('<br />')|raw}{{endif}}
</td>
</tr>
</table>
</td>
{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}
<td dir='{dir}' width="4%"><img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''></td>
<td dir='{dir}' width="48%" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("shipping_address", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{$invoice->shipaddress->toString('<br />')|raw}
</td>
</tr>
</table>
</td>
{{endif}}
</tr>
</table>
<br />
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' colspan="5" style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("order_details", FALSE)}</strong>
</td>
</tr>
<tr bgcolor="#f9f9f9">
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" colspan="2">
<strong>{$email->language->addToStack('invoice_item', FALSE)}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" align='right'>
<strong>{$email->language->get('total')}</strong>
</td>
</tr>
{{foreach $invoiceSummary['items'] as $k => $item}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' width='100' valign='top' class='hidePhone' style='width: 0; max-height: 0; overflow: hidden; float: left;'>
{{if $image = $item->image()}}
<img src='{$image->url}' width='100' style='border: 0; vertical-align: middle;'>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<span style="color: #8d8d8d">{$item->quantity} x</span> {$item->name}
{{if $item instanceof \IPS\nexus\Invoice\Item\Renewal AND $purchase = $item->getPurchase() AND $purchase->expire}}
<span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">
({$email->language->addToStack('ps_expire', FALSE)}: {expression="$purchase->expire->localeDate( $invoice->member )"})
</span>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{{if count( $item->details )}}
{{foreach $item->details as $k => $v}}
{lang="nexus_pfield_{$k}"}: {expression="\IPS\nexus\Package\CustomField::load( $k )->displayValue( $v )" raw="true"}<br>
{{endforeach}}
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$item->linePrice()->toString( $email->language )}</strong>
{{if $item->quantity > 1}}
<br><span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">{$email->language->addToStack("each_short", FALSE, array( 'sprintf' => array( $item->price ) ) )}</span>
{{endif}}
</td>
</tr>
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<strong>{$email->language->get('subtotal')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$invoiceSummary['subtotal']->toString( $email->language )}</strong>
</td>
</tr>
{{foreach $invoiceSummary['shipping'] as $shipping}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$shipping->name}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$shipping->linePrice()->toString( $email->language )}</strong>
</td>
</tr>
{{endforeach}}
{{foreach $invoiceSummary['tax'] as $tax}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$tax['name']} ({expression="$tax['rate']*100"}%)
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$tax['amount']}</strong>
</td>
</tr>
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px">
<strong>{$email->language->get('total')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px" align='right'>
<strong>{$invoiceSummary['total']->toString( $email->language )}</strong>
</td>
</tr>
</table>]]></template_content_html><template_data>$transaction, $invoice, $invoiceSummary, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->addToStack("email_transaction_waiting", FALSE, array( 'sprintf' => array( \IPS\Settings::i()->board_name ) ) )}
{$transaction->method->manualPaymentInstructions( $transaction, 'plaintext' )}
— {setting="board_name"}
-----
**{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}**
{$email->language->addToStack("email_view_order", FALSE)}: {$invoice->url()}
{$email->language->addToStack("billing_address", FALSE)}
===
{$invoice->member->cm_name}
{{if $invoice->billaddress}}{$invoice->billaddress->toString('\n')|raw}{{endif}}
{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}
{$email->language->addToStack("shipping_address", FALSE)}
===
{$invoice->member->cm_name}
{$invoice->shipaddress->toString('\n')|raw}
{{endif}}
{$email->language->addToStack("order_details", FALSE)}
===
{{foreach $invoiceSummary['items'] as $k => $item}}
{$item->quantity} x</span> {$item->name} [{$email->language->addToStack("each_short", FALSE, array( 'sprintf' => array( $item->price ) ) )}] ({$item->linePrice()->toString( $email->language )})
{{endforeach}}
---
{$email->language->get('subtotal')}: {$invoiceSummary['subtotal']->toString( $email->language )}
{{if count( $invoiceSummary['shipping'] )}}
---
{{foreach $invoiceSummary['shipping'] as $shipping}}
{$shipping->name}: {$shipping->linePrice()->toString( $email->language )}
{{endforeach}}
{{endif}}
{{if count( $invoiceSummary['tax'] )}}
---
{{foreach $invoiceSummary['tax'] as $tax}}
{$tax['name']} ({expression="$tax['rate']*100"}%): {$tax['amount']}
{{endforeach}}
{{endif}}
---
{$email->language->get('total')}: {$invoiceSummary['total']->toString( $email->language )}
-- {setting="board_name"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>transactionFailed</template_name><template_content_html><![CDATA[
{$email->language->addToStack("email_transaction_failed", FALSE)}
<br />
<br />
<table cellpadding="10" cellspacing="0" border="0" bgcolor="#f9f9f9" align="center">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" width="100%">
<a href='{$invoice->checkoutUrl()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; background: {setting="email_color"}; line-height: 38px; padding: 0 40px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("email_pay_now", FALSE)}</a>
</td>
</tr>
</table>
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br />
<br />
<h3 style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 24px; font-weight: 500; color: #333333; line-height: 21px; margin: 0">
{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}
</h3>
<a href='{$invoice->url()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("email_view_order", FALSE)}</a>
<br />
<br />
<br />
<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff" class='responsive_table'>
<tr>
<td dir='{dir}' width="{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}48%{{else}}100%{{endif}}" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("billing_address", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{{if $invoice->billaddress}}{$invoice->billaddress->toString('<br />')|raw}{{endif}}
</td>
</tr>
</table>
</td>
{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}
<td dir='{dir}' width="4%"><img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''></td>
<td dir='{dir}' width="48%" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("shipping_address", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{$invoice->shipaddress->toString('<br />')|raw}
</td>
</tr>
</table>
</td>
{{endif}}
</tr>
</table>
<br />
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' colspan="5" style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("order_details", FALSE)}</strong>
</td>
</tr>
<tr bgcolor="#f9f9f9">
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" colspan="2">
<strong>{$email->language->addToStack('invoice_item', FALSE)}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" align='right'>
<strong>{$email->language->get('total')}</strong>
</td>
</tr>
{{foreach $invoiceSummary['items'] as $k => $item}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' width='100' valign='top' class='hidePhone' style='width: 0; max-height: 0; overflow: hidden; float: left;'>
{{if $image = $item->image()}}
<img src='{$image->url}' width='100' style='border: 0; vertical-align: middle;'>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<span style="color: #8d8d8d">{$item->quantity} x</span> {$item->name}
{{if $item instanceof \IPS\nexus\Invoice\Item\Renewal AND $purchase = $item->getPurchase() AND $purchase->expire}}
<span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">
({$email->language->addToStack('ps_expire', FALSE)}: {expression="$purchase->expire->localeDate( $invoice->member )"})
</span>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{{if count( $item->details )}}
{{foreach $item->details as $k => $v}}
{lang="nexus_pfield_{$k}"}: {expression="\IPS\nexus\Package\CustomField::load( $k )->displayValue( $v )" raw="true"}<br>
{{endforeach}}
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$item->linePrice()->toString( $email->language )}</strong>
{{if $item->quantity > 1}}
<br><span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">{$email->language->addToStack("each_short", FALSE, array( 'sprintf' => array( $item->price ) ) )}</span>
{{endif}}
</td>
</tr>
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<strong>{$email->language->get('subtotal')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$invoiceSummary['subtotal']->toString( $email->language )}</strong>
</td>
</tr>
{{foreach $invoiceSummary['shipping'] as $shipping}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$shipping->name}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$shipping->linePrice()->toString( $email->language )}</strong>
</td>
</tr>
{{endforeach}}
{{foreach $invoiceSummary['tax'] as $tax}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$tax['name']} ({expression="$tax['rate']*100"}%)
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$tax['amount']}</strong>
</td>
</tr>
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px">
<strong>{$email->language->get('total')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px" align='right'>
<strong>{$invoiceSummary['total']->toString( $email->language )}</strong>
</td>
</tr>
</table>]]></template_content_html><template_data>$transaction, $invoice, $invoiceSummary, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->addToStack("email_transaction_failed", FALSE)}
{$email->language->addToStack("email_pay_now", FALSE)}: {$invoice->checkoutUrl()}
— {setting="board_name"}
-----
**{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}**
{$email->language->addToStack("email_view_order", FALSE)}: {$invoice->url()}
{$email->language->addToStack("billing_address", FALSE)}
===
{$invoice->member->cm_name}
{{if $invoice->billaddress}}{$invoice->billaddress->toString('\n')|raw}{{endif}}
{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}
{$email->language->addToStack("shipping_address", FALSE)}
===
{$invoice->member->cm_name}
{$invoice->shipaddress->toString('\n')|raw}
{{endif}}
{$email->language->addToStack("order_details", FALSE)}
===
{{foreach $invoiceSummary['items'] as $k => $item}}
{$item->quantity} x</span> {$item->name} [{$email->language->addToStack("each_short", FALSE, array( 'sprintf' => array( $item->price ) ) )}] ({$item->linePrice()->toString( $email->language )})
{{endforeach}}
---
{$email->language->get('subtotal')}: {$invoiceSummary['subtotal']->toString( $email->language )}
{{if count( $invoiceSummary['shipping'] )}}
---
{{foreach $invoiceSummary['shipping'] as $shipping}}
{$shipping->name}: {$shipping->linePrice()->toString( $email->language )}
{{endforeach}}
{{endif}}
{{if count( $invoiceSummary['tax'] )}}
---
{{foreach $invoiceSummary['tax'] as $tax}}
{$tax['name']} ({expression="$tax['rate']*100"}%): {$tax['amount']}
{{endforeach}}
{{endif}}
---
{$email->language->get('total')}: {$invoiceSummary['total']->toString( $email->language )}
-- {setting="board_name"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>commissionRevoked</template_name><template_content_html><![CDATA[
{{if $item}}
{$email->language->addToStack("email_commission_rev_product", FALSE, array( 'sprintf' => array( $item->name, $commission ) ) )}
{{else}}
{$email->language->addToStack("email_commission_rev_no_product", FALSE, array( 'sprintf' => array( $commission ) ) )}
{{endif}}
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$invoice, $item, $commission, $email</template_data><template_content_plaintext><![CDATA[
{{if $item}}{$email->language->addToStack("email_commission_rev_product_plain", FALSE, array( 'sprintf' => array( $item->name, $commission ) ) )}{{else}}{$email->language->addToStack("email_commission_rev_no_product_plain", FALSE, array( 'sprintf' => array( $commission ) ) )}{{endif}}
-- {setting="board_name"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>transactionRefunded</template_name><template_content_html><![CDATA[
{$email->language->addToStack("email_transaction_refunded", FALSE)}
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br />
<br />
<h3 style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 24px; font-weight: 500; color: #333333; line-height: 21px; margin: 0">
{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}
</h3>
<a href='{$invoice->url()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 14px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("email_view_order", FALSE)}</a>
<br />
<br />
<br />
<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff" class='responsive_table'>
<tr>
<td dir='{dir}' width="{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}48%{{else}}100%{{endif}}" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("billing_address", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{{if $invoice->billaddress}}{$invoice->billaddress->toString('<br />')|raw}{{endif}}
</td>
</tr>
</table>
</td>
{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}
<td dir='{dir}' width="4%"><img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''></td>
<td dir='{dir}' width="48%" class='responsive_fullwidth' bgcolor="#f9f9f9">
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("shipping_address", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$invoice->member->cm_name}<br />
{$invoice->shipaddress->toString('<br />')|raw}
</td>
</tr>
</table>
</td>
{{endif}}
</tr>
</table>
<br />
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' colspan="5" style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("order_details", FALSE)}</strong>
</td>
</tr>
<tr bgcolor="#f9f9f9">
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" colspan="2">
<strong>{$email->language->addToStack('invoice_item', FALSE)}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px; color: #333333; line-height: 21px" align='right'>
<strong>{$email->language->get('total')}</strong>
</td>
</tr>
{{foreach $invoiceSummary['items'] as $k => $item}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' width='100' valign='top' class='hidePhone' style='width: 0; max-height: 0; overflow: hidden; float: left;'>
{{if $image = $item->image()}}
<img src='{$image->url}' width='100' style='border: 0; vertical-align: middle;'>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<span style="color: #8d8d8d">{$item->quantity} x</span> {$item->name}
{{if ( $item instanceof \IPS\nexus\Invoice\Item\Renewal ) AND $purchase = $item->getPurchase() AND $purchase->expire}}
<span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">
({$email->language->addToStack('ps_expire', FALSE)}: {expression="$purchase->expire->localeDate( $invoice->member )"})
</span>
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{{if count( $item->details )}}
{{foreach $item->details as $k => $v}}
{lang="nexus_pfield_{$k}"}: {expression="\IPS\nexus\Package\CustomField::load( $k )->displayValue( $v )" raw="true"}<br>
{{endforeach}}
{{endif}}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$item->linePrice()->toString( $email->language )}</strong>
{{if $item->quantity > 1}}
<br><span style="color: #8d8d8d; font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px;">{$email->language->addToStack("each_short", FALSE, array( 'sprintf' => array( $item->price ) ) )}</span>
{{endif}}
</td>
</tr>
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<strong>{$email->language->get('subtotal')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$invoiceSummary['subtotal']->toString( $email->language )}</strong>
</td>
</tr>
{{foreach $invoiceSummary['shipping'] as $shipping}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$shipping->name}
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$shipping->linePrice()->toString( $email->language )}</strong>
</td>
</tr>
{{endforeach}}
{{foreach $invoiceSummary['tax'] as $tax}}
<tr style='border-top: 1px solid #f5f5f5'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
{$tax['name']} ({expression="$tax['rate']*100"}%)
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" align='right'>
<strong>{$tax['amount']}</strong>
</td>
</tr>
{{endforeach}}
<tr style='border-top: 1px solid #dddddd'>
<td dir='{dir}' colspan='3' align='right' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px">
<strong>{$email->language->get('total')}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 17px; color: #cd3816; line-height: 21px" align='right'>
<strong>{$invoiceSummary['total']->toString( $email->language )}</strong>
</td>
</tr>
</table>]]></template_content_html><template_data>$transaction, $invoice, $invoiceSummary, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->addToStack("email_transaction_refunded", FALSE)}
— {setting="board_name"}
-----
**{expression="sprintf( $email->language->get('order_number'), $invoice->id )"}**
{$email->language->addToStack("email_view_order", FALSE)}: {$invoice->url()}
{$email->language->addToStack("billing_address", FALSE)}
===
{$invoice->member->cm_name}
{{if $invoice->billaddress}}{$invoice->billaddress->toString('\n')|raw}{{endif}}
{{if $invoice->hasPhysicalItems() and $invoice->shipaddress}}
{$email->language->addToStack("shipping_address", FALSE)}
===
{$invoice->member->cm_name}
{$invoice->shipaddress->toString('\n')|raw}
{{endif}}
{$email->language->addToStack("order_details", FALSE)}
===
{{foreach $invoiceSummary['items'] as $k => $item}}
{$item->quantity} x</span> {$item->name} [{$email->language->addToStack("each_short", FALSE, array( 'sprintf' => array( $item->price ) ) )}] ({$item->linePrice()->toString( $email->language )})
{{endforeach}}
---
{$email->language->get('subtotal')}: {$invoiceSummary['subtotal']->toString( $email->language )}
{{if count( $invoiceSummary['shipping'] )}}
---
{{foreach $invoiceSummary['shipping'] as $shipping}}
{$shipping->name}: {$shipping->linePrice()->toString( $email->language )}
{{endforeach}}
{{endif}}
{{if count( $invoiceSummary['tax'] )}}
---
{{foreach $invoiceSummary['tax'] as $tax}}
{$tax['name']} ({expression="$tax['rate']*100"}%): {$tax['amount']}
{{endforeach}}
{{endif}}
---
{$email->language->get('total')}: {$invoiceSummary['total']->toString( $email->language )}
-- {setting="board_name"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>monitoring_acknowledged</template_name><template_content_html><![CDATA[
{expression="$email->language->addToStack( 'monitor_email_intro', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}
<br />
<br />
<table width='100%' cellpadding='15' cellspacing='0' border='0' style='color: #5e707d;'>
<tr>
<td dir='{dir}'>
<strong>{expression="$email->language->addToStack( 'monitor_email_acknowledged', FALSE, array( 'sprintf' => array( $server->hostname, $by ) ) )"}</strong>
</td>
</tr>
</table>
<br />
<a href='{setting="base_url"}applications/nexus/interface/monitoring/respond.php?a=r&server={$server->id}&by={$encoded}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{expression="$email->language->addToStack('monitor_email_reset', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}</a>
<br /><br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$server, $encoded, $by, $email</template_data><template_content_plaintext><![CDATA[
{expression="$email->language->addToStack( 'monitor_email_intro', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}
{expression="$email->language->addToStack( 'monitor_email_acknowledged', FALSE, array( 'sprintf' => array( $server->hostname, $by ) ) )"}
{$email->language->addToStack('monitor_email_reset', FALSE)}: {setting="base_url"}applications/nexus/interface/monitoring/respond.php?a=r&server={$server->id}&by={$encoded}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>staffReply</template_name><template_content_html><![CDATA[{$email->language->addToStack( $message->item()->replies == 1 ? "staffcreate_header" : "staffreply_header", FALSE, array( 'sprintf' => array( $message->author()->name ) ) )}<br />
<br />
<table width='100%' cellpadding='15' cellspacing='0' border='0' style='background: #f5f5f5'>
<tr>
<td dir='{dir}'>
<h2 style='margin: 0; font-size: 19px; font-weight: 500'>{{if $message->item()->replies > 1}}Re: {{endif}}{$message->item()->title}</h2>
{$email->parseTextForEmail( $message->content(), $email->language )|raw}
</td>
</tr>
</table>
<br />
{{if $message->item()->member}}
<a href='{$message->item()->url()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: #417ba3; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("view_support_request", FALSE)}</a>
<br />
{{endif}}
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br />
<div style="font-size: 0px; line-height: 0px; color:#ffffff !important;">{$email->language->addToStack("support_reply_email_id", FALSE, array( 'sprintf' => array( '[SR' . $message->item()->id . '.' . $message->item()->email_key . ']' ) ) )}</div>]]></template_content_html><template_data>$message, $email</template_data><template_content_plaintext><![CDATA[{$email->language->addToStack( $message->item()->replies == 1 ? "staffcreate_header" : "staffreply_header", FALSE, array( 'sprintf' => array( $message->author()->name ) ) )}
-----
{expression="\IPS\Email::buildPlaintextBody( $message->content() )"}
-----
{{if $message->item()->member}}
{$email->language->addToStack("view_support_request", FALSE)}: {$message->item()->url()}
{$email->language->addToStack("or_you_can_reply", FALSE)}
{{endif}}
-- {setting="board_name"}
{$email->language->addToStack("support_reply_email_id", FALSE, array( 'sprintf' => array( '[SR' . $message->item()->id . '.' . $message->item()->email_key . ']' ) ) )}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>commissionEarned</template_name><template_content_html><![CDATA[
{{if $item}}
{$email->language->addToStack("email_commission_product", FALSE, array( 'sprintf' => array( $item->name, $commission ) ) )}
{{else}}
{$email->language->addToStack("email_commission_no_product", FALSE, array( 'sprintf' => array( $commission ) ) )}
{{endif}}
{{if \IPS\Settings::i()->nexus_payout}}
{$email->language->addToStack("email_commission_info_payout", FALSE)}
{{else}}
{$email->language->addToStack("email_commission_info_no_payout", FALSE)}
{{endif}}
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$invoice, $item, $commission, $email</template_data><template_content_plaintext><![CDATA[
{{if $item}}{$email->language->addToStack("email_commission_product_plain", FALSE, array( 'sprintf' => array( $item->name, $commission ) ) )}{{else}}{$email->language->addToStack("email_commission_no_product_plain", FALSE, array( 'sprintf' => array( $commission ) ) )}{{endif}}{{if \IPS\Settings::i()->nexus_payout}}{$email->language->addToStack("email_commission_info_payout", FALSE)}{{else}}{$email->language->addToStack("email_commission_info_no_payout", FALSE)}{{endif}}
-- {setting="board_name"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>emailConfirmation</template_name><template_content_html><![CDATA[<br />
{$email->language->addToStack("support_confirm_header", FALSE)}<br />
<br />
{{if $request->member}}
<a href='{$request->url()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: #417ba3; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("view_support_request", FALSE)}</a>
<br />
{{endif}}
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br />
<div style="font-size: 0px; line-height: 0px; color:#ffffff !important;">{$email->language->addToStack("support_reply_email_id", FALSE, array( 'sprintf' => array( '[SR' . $request->id . '.' . $request->email_key . ']' ) ) )}</div>]]></template_content_html><template_data>$request, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->addToStack("support_confirm_header", FALSE)}
{{if $request->member}}
{$email->language->addToStack("view_support_request", FALSE)}: {$request->url()}
{{endif}}
{$email->language->addToStack("support_reply_email_id", FALSE, array( 'sprintf' => array( '[SR' . $request->id . '.' . $request->email_key . ']' ) ) )}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>autoresolveWarning</template_name><template_content_html><![CDATA[{$email->language->addToStack("autoresolve_header", FALSE, array( 'sprintf' => array( $request->title ) ) )}<br />
<br />
{$email->language->addToStack("autoresolve_desc", FALSE, array( 'sprintf' => array( $resolveDay ) ) )}<br />
<br />
<br />
{{if $request->member}}
<a href='{$request->url()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: #417ba3; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("view_support_request", FALSE)}</a>
<br />
{{endif}}
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br />
<div style="font-size: 0px; line-height: 0px; color:#ffffff !important;">{$email->language->addToStack("support_reply_email_id", FALSE, array( 'sprintf' => array( '[SR' . $request->id . '.' . $request->email_key . ']' ) ) )}</div>]]></template_content_html><template_data>$request, $resolveDay, $email</template_data><template_content_plaintext><![CDATA[{$email->language->addToStack("autoresolve_header", FALSE, array( 'sprintf' => array( $request->title ) ) )}
{$email->language->addToStack("autoresolve_desc", FALSE, array( 'sprintf' => array( $resolveDay ) ) )}
{{if $request->member}}
{$email->language->addToStack("view_support_request", FALSE)}: {$request->url()}
{$email->language->addToStack("or_you_can_reply", FALSE)}
{{endif}}
{$email->language->addToStack("support_reply_email_id", FALSE, array( 'sprintf' => array( '[SR' . $request->id . '.' . $request->email_key . ']' ) ) )}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>shipment</template_name><template_content_html><![CDATA[
{$email->language->addToStack("email_shipment_done", FALSE, array( 'sprintf' => array( $shipment->invoice->id ) ) )}
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br /><br />
{{$data = $shipment->data;}}
<table width='100%' cellpadding='15' cellspacing='0' border='0' bgcolor='#f9f9f9'>
<tr>
<td dir='{dir}' width='50%' style="font-family: 'Helvetica Neue', helvetica, sans-serif;" valign='top'>
<strong>{$data['cm_first_name']} {$data['cm_last_name']}</strong><br>
{$shipment->address()->toString('<br>')|raw}
</td>
<td dir='{dir}' width='50%' style="font-family: 'Helvetica Neue', helvetica, sans-serif;" valign='top'>
<strong>{$email->language->addToStack("email_shipping_method", FALSE)}</strong><br>
{$email->language->addToStack( $shipment->method->_titleLanguageKey, FALSE )}
{{if $shipment->tracknumber}}
<br><br>
<strong>{$email->language->addToStack("email_tracking_number", FALSE)}</strong><br>
{$shipment->tracknumber}
{{endif}}
</td>
</tr>
{{if $shipment->trackingUrl()}}
<tr>
<td dir='{dir}' colspan='2' bgcolor='#f0f0f0'>
<a href='{$shipment->trackingUrl()}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 13px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{$email->language->addToStack("order_track_delivery", FALSE)}</a>
</td>
</tr>
{{endif}}
</table>
<br>
<table cellpadding="10" cellspacing="0" border="0" width="100%">
<tr>
<td dir='{dir}' colspan="5" style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("email_items_in_shipment", FALSE)}</strong>
</td>
</tr>
{{foreach $shipment->items as $item}}
<tr style="border-top: 1px solid #f5f5f5">
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px">
<span style="color: #8d8d8d">{$item['quantity']} x</span> {$item['name']}
{{if count( $item['details'] )}}
{{foreach $item['details'] as $k => $v}}
<br>
<span style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 13px">
<strong>{$email->language->addToStack("nexus_pfield_" . $k, FALSE)}: </strong> {$v}
</span>
{{endforeach}}
{{endif}}
</td>
</tr>
{{endforeach}}
</table>]]></template_content_html><template_data>$shipment, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->addToStack("email_shipment_done", FALSE, array( 'sprintf' => array( $shipment->invoice->id ) ) )}
-- {setting="board_name"}
====={{$data = $shipment->data;}}
{$email->language->addToStack("email_shipping_to", FALSE)}:
{$data['cm_first_name']} {$data['cm_last_name']}
{$shipment->address()->toString("\n")|raw}
{$email->language->addToStack("email_shipping_method", FALSE)}: {$shipment->method->_title}
{{if $shipment->tracknumber}}
{$email->language->addToStack("email_tracking_number", FALSE)}: {$shipment->tracknumber}
{{endif}}
{{if $shipment->trackingUrl()}}{$email->language->addToStack("order_track_delivery", FALSE)}: {$shipment->trackingUrl()}{{endif}}
]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>purchaseNotify</template_name><template_content_html><![CDATA[
{$email->language->addToStack("email_purchase_notify", FALSE, array( 'sprintf' => array( $purchase->member->acpUrl(), $purchase->member->cm_name, $purchase->acpUrl(), $purchase->name ) ) )}
<br />
<br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>
<br /><br />
<table cellpadding="10" cellspacing="0" border="0" width="100%" bgcolor="#f9f9f9">
<tr>
<td dir='{dir}' colspan="2" style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; color: #333333; line-height: 21px" bgcolor="#f0f0f0">
<strong>{$email->language->addToStack("email_purchase_information", FALSE)}</strong>
</td>
</tr>
<tr>
<td dir='{dir}' width='200' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 14px; color: #333333; line-height: 21px" align='right'>
<strong>{$email->language->addToStack("email_invoice_number", FALSE)}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 14px; color: #333333; line-height: 21px" align="left">
{$invoice->id}
</td>
</tr>
<tr>
<td dir='{dir}' width='200' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 14px; color: #333333; line-height: 21px" align='right'>
<strong>{$email->language->addToStack("email_purchase_date", FALSE)}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 14px; color: #333333; line-height: 21px" align="left">
{$invoice->date->localeDate( $email->language )}
</td>
</tr>
<tr>
<td dir='{dir}' width='200' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 14px; color: #333333; line-height: 21px" align='right'>
<strong>{$email->language->addToStack("email_order_total", FALSE)}</strong>
</td>
<td dir='{dir}' style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 14px; color: #333333; line-height: 21px" align="left">
{$invoice->total->toString( $email->language )}
</td>
</tr>
</table>]]></template_content_html><template_data>$purchase, $invoice, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->addToStack("email_purchase_notify_plain", FALSE, array( 'sprintf' => array( $purchase->member->cm_name, $purchase->name ) ) )}
-- {setting="board_name"}
=====
{$email->language->addToStack("email_purchase_information", FALSE)}
{$email->language->addToStack("email_invoice_number", FALSE)}: {$invoice->id}
{$email->language->addToStack("email_purchase_date", FALSE)}: {$invoice->date->localeDate( $email->language )}
{$email->language->addToStack("email_order_total", FALSE)}: {$invoice->total->toString( $email->language )}
]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>monitoring_offline</template_name><template_content_html><![CDATA[
{expression="$email->language->addToStack( 'monitor_email_intro', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}
<br />
<br />
<table width='100%' cellpadding='15' cellspacing='0' border='0' style='color: #b52b38;'>
<tr>
<td dir='{dir}'>
<strong>{expression="$email->language->addToStack( 'monitor_email_offline', FALSE, array( 'sprintf' => $server->hostname ) )"}</strong>
</td>
</tr>
</table>
<br />
<a href='{setting="base_url"}applications/nexus/interface/monitoring/respond.php?a=a&server={$server->id}&by={$encoded}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{expression="$email->language->addToStack( 'monitor_email_acknowledge', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}</a>
<a href='{setting="base_url"}applications/nexus/interface/monitoring/respond.php?a=r&server={$server->id}&by={$encoded}' style="color: #ffffff; font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; background: {setting="email_color"}; line-height: 32px; padding: 0 10px; display: inline-block; border-radius: 3px;">{expression="$email->language->addToStack( 'monitor_email_reset', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}</a>
<br /><br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$server, $encoded, $email</template_data><template_content_plaintext><![CDATA[
{expression="$email->language->addToStack( 'monitor_email_intro', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}
{expression="$email->language->addToStack('monitor_email_offline', FALSE, array( 'sprintf' => $server->hostname ) )"}
{$email->language->addToStack('monitor_email_acknowledge', FALSE)}: {setting="base_url"}applications/nexus/interface/monitoring/respond.php?a=a&server={$server->id}&by={$encoded}
{$email->language->addToStack('monitor_email_reset', FALSE)}: {setting="base_url"}applications/nexus/interface/monitoring/respond.php?a=r&server={$server->id}&by={$encoded}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>giftVoucher</template_name><template_content_html><![CDATA[
{$email->language->addToStack("youve_got_a_giftcard", FALSE)}
<br />
<br />
<style type='text/css'>
.cGiftCard tr:first-child td:first-child {
-moz-border-radius-topleft:10px;
-webkit-border-top-left-radius:10px;
border-top-left-radius:10px
}
.cGiftCard tr:first-child td:last-child {
-moz-border-radius-topright:10px;
-webkit-border-top-right-radius:10px;
border-top-right-radius:10px
}
.cGiftCard tr:last-child td:first-child {
-moz-border-radius-bottomleft:10px;
-webkit-border-bottom-left-radius:10px;
border-bottom-left-radius:10px
}
.cGiftCard tr:last-child td:last-child {
-moz-border-radius-bottomright:10px;
-webkit-border-bottom-right-radius:10px;
border-bottom-right-radius:10px
}
</style>
<table width='100%' cellpadding='20' cellspacing='0' align='center' bgcolor='#fafafa'>
<tr>
<td dir='{dir}'>
<table width='400' cellpadding='0' cellspacing='0' align='center' class='cGiftCard' bgcolor='#f0f0f0' style='line-height: 1'>
<tr height='15'>
<td dir='{dir}' width='15' height='15' bgcolor='{$color}'>
<img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''>
</td>
<td dir='{dir}' width='370' height='15' bgcolor='{$color}' colspan='2'>
<img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''>
</td>
<td dir='{dir}' width='15' height='15' bgcolor='{$color}'>
<img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''>
</td>
</tr>
<tr>
<td dir='{dir}' width='15' bgcolor='{$color}'>
<img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''>
</td>
<td dir='{dir}' width='135' height='90' bgcolor='{$color}'>
<img src='{setting="base_url"}applications/core/interface/email/gift.png' width='99' height='99'>
</td>
<td dir='{dir}' width='235' bgcolor='{$color}' valign='top' align='right'>
<h2 style='font-size: 20px; font-weight: 400; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #ffffff !important; color: rgba(255,255,255,0.6) !important; margin: 0; padding: 15px 0 0 0;'>{setting="board_name"}</h2>
</td>
<td dir='{dir}' width='15' bgcolor='{$color}'>
<img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''>
</td>
</tr>
<tr>
<td dir='{dir}' width='15' bgcolor='{$color}'>
<img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''>
</td>
<td dir='{dir}' width='135' bgcolor='{$color}' valign='bottom'>
<a href='{url="app=nexus&module=store&controller=gifts&do=redeem" base="front"}' style='background-color: rgba(51,51,51,0.8); color: #ffffff; display: block; padding: 10px 20px; font-weight: 500; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.8; border-radius: 3px; text-align: center; text-decoration: none'>{$email->language->addToStack("email_redeem", FALSE)}</a>
<span style='color: #ffffff; color: rgba(255,255,255,0.6); margin-top: 5px; display: block; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px'>
{$code}
</span>
</td>
<td dir='{dir}' width='235' bgcolor='{$color}' valign='bottom' align='right'>
<span style='font-size: 32px; color: #ffffff !important; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;'>{$email->language->addToStack("email_gift_card", FALSE)}</span><br>
<span style='font-size: 52px; font-weight: 300; color: #ffffff !important; color: rgba(255,255,255,0.8) !important; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.3'>{$amount}</span>
</td>
<td dir='{dir}' width='15' bgcolor='{$color}'>
<img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''>
</td>
</tr>
<tr height='15'>
<td dir='{dir}' width='15' height='15' bgcolor='{$color}'>
<img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''>
</td>
<td dir='{dir}' width='370' height='15' bgcolor='{$color}' colspan='2'>
<img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''>
</td>
<td dir='{dir}' width='15' height='15' bgcolor='{$color}'>
<img src='{setting="base_url"}applications/core/interface/email/spacer.png' width='1' height='1' alt=''>
</td>
</tr>
</table>
<table width='400' cellpadding='15' cellspacing='0' align='center' bgcolor='#f0f0f0'>
<tr>
<td dir='{dir}'>
<strong style='font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; color: #222222'>{$email->language->addToStack("email_giftcard_to", FALSE, array( 'sprintf' => array( $name ) ) )},</strong>
<p style='font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; color: #222222'>
{$message}
</p>
<em style='font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; color: #222222'>{$email->language->addToStack("email_giftcard_from", FALSE, array( 'sprintf' => array( $sender ) ) )}</em>
</td>
</table>
</td>
</tr>
</table>
<br />
{$email->language->addToStack("email_redeem_blurb", FALSE, array( 'sprintf' => array( $code, $amount ) ) )}
<br /><br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$name, $amount, $code, $message, $sender, $color, $email</template_data><template_content_plaintext><![CDATA[
{$email->language->addToStack("youve_got_a_giftcard", FALSE)}
{$email->language->addToStack("email_gift_amount", FALSE)}: {$amount}
{$email->language->addToStack("email_gift_code", FALSE)}: {$code}
======
{$email->language->addToStack("email_giftcard_to", FALSE, array( 'sprintf' => array( $name ) ) )},
{$message}
{$email->language->addToStack("email_giftcard_from", FALSE, array( 'sprintf' => array( $sender ) ) )}
======
{$email->language->addToStack("email_redeem_blurb_plain", FALSE, array( 'sprintf' => array( $amount ) ) )}
-- {setting="board_name"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>monitoring_online</template_name><template_content_html><![CDATA[
{expression="$email->language->addToStack( 'monitor_email_intro', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}
<br />
<br />
<table width='100%' cellpadding='15' cellspacing='0' border='0' style='color: #556b45;'>
<tr>
<td dir='{dir}'>
<strong>{expression="$email->language->addToStack( 'monitor_email_online', FALSE, array( 'sprintf' => $server->hostname ) )"}</strong>
</td>
</tr>
</table>
<br /><br />
<em style='color: #8c8c8c'>— {setting="board_name"}</em>]]></template_content_html><template_data>$server, $encoded, $email</template_data><template_content_plaintext><![CDATA[
{expression="$email->language->addToStack( 'monitor_email_intro', FALSE, array( 'sprintf' => \IPS\Settings::i()->board_name ) )"}
{expression="$email->language->addToStack( 'monitor_email_online', FALSE, array( 'sprintf' => $server->hostname ) )"}]]></template_content_plaintext><template_pinned>0</template_pinned></template><template><template_app>nexus</template_app><template_name>staffReplyNoChrome</template_name><template_content_html><![CDATA[{$email->parseTextForEmail( $message->content(), $email->language )|raw}
<div style="font-size: 0px; line-height: 0px; color:#ffffff !important;">{$email->language->addToStack("support_reply_email_id", FALSE, array( 'sprintf' => array( '[SR' . $message->item()->id . '.' . $message->item()->email_key . ']' ) ) )}</div>]]></template_content_html><template_data>$message, $email</template_data><template_content_plaintext><![CDATA[{expression="\IPS\Email::buildPlaintextBody( $message->content() )"}
-----
-- {setting="board_name"}
{$email->language->addToStack("support_reply_email_id", FALSE, array( 'sprintf' => array( '[SR' . $message->item()->id . '.' . $message->item()->email_key . ']' ) ) )}]]></template_content_plaintext><template_pinned>0</template_pinned></template></emails>