64 lines
5.2 KiB
XML
64 lines
5.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<emails><template><template_app>forums</template_app><template_name>digests__comment</template_name><template_content_html><![CDATA[<tr style='border-bottom: 1px solid #eeeeee'>
|
|
<td dir='{dir}' width='40' align='center' valign='top' class=' '>
|
|
<img src='{$comment->author()->photo}' width='32' height='32' style='border: 1px solid #000; vertical-align: middle;'>
|
|
</td>
|
|
<td dir='{dir}' align='left'>
|
|
<p style='font-family: "Helvetica Neue", helvetica, sans-serif; margin: 0; font-size: 13px; font-weight: bold'>
|
|
{{if $comment->item()->isQuestion()}}
|
|
{$email->language->addToStack("x_answered_a_question", FALSE, array( 'sprintf' => array( $comment->author()->name ) ) )}
|
|
{{else}}
|
|
{$email->language->addToStack("x_replied_to_a_topic", FALSE, array( 'sprintf' => array( $comment->author()->name ) ) )}
|
|
{{endif}}
|
|
</p>
|
|
<h2 style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 15px; font-weight: 500 !important; margin: 0;">
|
|
<a href='{$comment->item()->url()}' style='text-decoration: none;'>{$comment->item()->mapped('title')}</a>
|
|
</h2>
|
|
<div style='font-family: "Helvetica Neue", helvetica, sans-serif; line-height: 22px; margin-top: 5px; margin-bottom: 5px; border-left: 3px solid #8c8c8c; padding-left: 15px; font-size: 14px; margin-left: 15px'>
|
|
{$email->parseTextForEmail( $comment->content() )|raw}
|
|
</div>
|
|
</td>
|
|
</tr>]]></template_content_html><template_data>$comment, $email</template_data><template_content_plaintext><![CDATA[{{if $comment->item()->isQuestion()}}{$email->language->addToStack("x_answered_a_question", FALSE, array( 'sprintf' => array( $comment->author()->name ) ) )}{{else}}{$email->language->addToStack("x_replied_to_a_topic", FALSE, array( 'sprintf' => array( $comment->author()->name ) ) )}{{endif}}: {$comment->item()->mapped('title')} ({$comment->url()})
|
|
]]></template_content_plaintext></template><template><template_app>forums</template_app><template_name>digests__item</template_name><template_content_html><![CDATA[<tr style='border-bottom: 1px solid #eeeeee'>
|
|
<td dir='{dir}' width='40' align='center' valign='top' class=' '>
|
|
<img src='{$topic->author()->photo}' width='32' height='32' style='border: 1px solid #000; vertical-align: middle;'>
|
|
</td>
|
|
<td dir='{dir}' align='left'>
|
|
<p style='font-family: "Helvetica Neue", helvetica, sans-serif; margin: 0; font-size: 13px; font-weight: bold'>
|
|
{{if $topic->isQuestion()}}
|
|
{$email->language->addToStack("x_asked_new_question", FALSE, array( 'sprintf' => array( $topic->author()->name, $topic->container()->_title ) ) )}
|
|
{{else}}
|
|
{$email->language->addToStack("x_created_topic_in", FALSE, array( 'sprintf' => array( $topic->author()->name, $topic->container()->_title ) ) )}
|
|
{{endif}}
|
|
</p>
|
|
<h2 style="font-family: 'Helvetica Neue', helvetica, sans-serif; font-size: 20px; font-weight: 500 !important; margin: 0;">
|
|
<a href='{$topic->url()}' style='text-decoration: none;'>{$topic->title}</a>
|
|
{{if $topic->mapped('featured')}} <span style='color: #68a72f; font-weight: bold; font-size: 12px; text-transform: uppercase;'>{$email->language->addToStack("featured", FALSE)}</span>{{endif}}
|
|
</h2>
|
|
<div style="font-family: 'Helvetica Neue', helvetica, sans-serif; line-height: 22px; margin-top: 10px; margin-bottom: 10px;">
|
|
{$email->parseTextForEmail( $topic->content() )|raw}
|
|
</div>
|
|
<p style="font-family: 'Helvetica Neue', helvetica, sans-serif; margin: 0; font-size: 13px;">
|
|
|
|
{{if $topic->isQuestion()}}
|
|
<strong style="font-family: 'Helvetica Neue', helvetica, sans-serif; text-decoration: none; font-size: 12px; color: #4a7c20; display: inline-block;">✓ {$email->language->addToStack("answered", FALSE)}</strong>
|
|
{{endif}}
|
|
|
|
{{if $topic->container()->forum_allow_rating}}
|
|
{{foreach range( 1, 5 ) as $i}}{{if $i <= $topic->averageRating()}}<img src='{resource="email/rating_on.png" location="interface" app="core"}' width='14' height='13' style='vertical-align: middle; margin-right: 2px'>{{else}}<img src='{resource="email/rating_off.png" location="interface" app="core"}' width='14' height='13' style='vertical-align: middle; margin-right: 2px'>{{endif}}{{endforeach}}
|
|
|
|
{{endif}}
|
|
|
|
<strong>
|
|
<img src='{resource="email/comment.png" location="interface" app="core"}' width='13' height='12' style='vertical-align: middle'>
|
|
{{if $topic->isQuestion()}}
|
|
{$email->language->addToStack("answers_number", FALSE, array( 'pluralize' => array( ( $topic->posts ) ? $topic->posts - 1 : 0 ) ) )}
|
|
{{else}}
|
|
{$email->language->addToStack("replies_number", FALSE, array( 'pluralize' => array( ( $topic->posts ) ? $topic->posts - 1 : 0 ) ) )}
|
|
{{endif}}
|
|
</strong>
|
|
</p>
|
|
</td>
|
|
</tr>]]></template_content_html><template_data>$topic, $email</template_data><template_content_plaintext><![CDATA[{{if $topic->isQuestion()}}{$email->language->addToStack("x_created_topic_in", FALSE, array( 'sprintf' => array( $topic->author()->name, $topic->container()->_title ) ) )}{{else}}{$email->language->addToStack("x_asked_new_question", FALSE, array( 'sprintf' => array( $topic->author()->name, $topic->container()->_title ) ) )}{{endif}}: {$topic->title} ({$topic->url()})
|
|
]]></template_content_plaintext></template></emails>
|