<!doctype html>
<html>

  <head>
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>{$template_subject}</title>
    {include file='emails/__email_styles.tpl'}
  </head>

  <body>
    <span class="preheader">{$template_subject}</span>
    <table role="presentation" border="0" cellpadding="0" cellspacing="0" class="body">
      <tr>
        <td>&nbsp;</td>
        <td class="container">

          <div class="email-header">
            <a href="{$system['system_url']}">
              {if $system['system_logo']}
              <img src="{$system['system_uploads']}/{$system['system_logo']}" alt="{__($system['system_title'])}">
              {else}
              <span class="site-name">{__($system['system_title'])}</span>
              {/if}
            </a>
          </div>

          <div class="content">
            <table role="presentation" class="main">
              <tr>
                <td class="header-bar">&nbsp;</td>
              </tr>
              <tr>
                <td class="wrapper">
                  <table role="presentation" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td>
                        <h1>{__("You've Been Invited!")}</h1>
                        <p>{__("Hi")},</p>
                        <p><span class="highlight">{$user->_data['user_fullname']}</span> {__("has invited you to join")} <strong>{__($system['system_title'])}</strong> — {__("a place to connect, share, and engage with people around you.")}</p>
                        <p>{__("Click the button below to create your free account and connect with")} {$user->_data['user_fullname']}.</p>

                        <table role="presentation" border="0" cellpadding="0" cellspacing="0" class="btn btn-primary">
                          <tbody>
                            <tr>
                              <td align="left">
                                <table role="presentation" border="0" cellpadding="0" cellspacing="0">
                                  <tbody>
                                    <tr>
                                      <td><a href="{$system['system_url']}/signup?ref={$user->_data['user_name']}&invitation_code={$code}" target="_blank">{__("Join Now")}</a></td>
                                    </tr>
                                  </tbody>
                                </table>
                              </td>
                            </tr>
                          </tbody>
                        </table>

                        <hr>

                        <p style="font-size:12px;color:#999999;">{__("Or copy and paste this link into your browser:")} <a href="{$system['system_url']}/signup?ref={$user->_data['user_name']}&invitation_code={$code}">{$system['system_url']}/signup</a></p>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>

            <div class="footer">
              <table role="presentation" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td class="content-block">
                    <p>&copy; {$smarty.now|date_format:"%Y"} <a href="{$system['system_url']}">{__($system['system_title'])}</a>. {__("All rights reserved.")}</p>
                    <p>{__("You received this invitation from")} {$user->_data['user_fullname']} {__("on")} <a href="{$system['system_url']}">{__($system['system_title'])}</a>.</p>
                  </td>
                </tr>
              </table>
            </div>

          </div>
        </td>
        <td>&nbsp;</td>
      </tr>
    </table>
  </body>

</html>