Created
February 9, 2012 15:11
-
-
Save watsonbox/1780596 to your computer and use it in GitHub Desktop.
Example of how email templates are parameterised
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- // Begin Module: Standard Content \\ --> | |
<table border="0" cellpadding="20" cellspacing="0" width="100%"> | |
<tr> | |
<td valign="top"> | |
<div mc:edit="std_content00"> | |
<h1 class="h1">{{ subject }}</h1> | |
<p>Hi {{ email.user['user_fb_name'] }},</p> | |
{% if email.reward['reward_image'] %} | |
<p>Image: <img src="{{ email.reward['reward_image'] | fanzy_image_url }}"></p> | |
{% endif %} | |
<p>Title: '{{ email.reward['reward_title'] }}'</p> | |
<p>Description: '{{ email.reward['reward_description'] | strip_html }}'</p> | |
<p>Start date: {{ email.reward['reward_start'] | fanzy_time }}</p> | |
<p>End date: {{ email.reward['reward_end'] | fanzy_time }}</p> | |
<p>Redemption end date: {{ email.reward['reward_redemption'] | fanzy_time }}</p> | |
{% if email.badge %} | |
<p>Reward is for badge {{ email.badge['badge_name'] }}</p> | |
{% endif %} | |
<p>Unlocked count: {{ email.unlocked }}</p> | |
<p>Unique clickers count: {{ email.unique_clickers }}</p> | |
</div> | |
</td> | |
</tr> | |
</table> | |
<!-- // End Module: Standard Content \\ --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment