<html>
<head>
  <title>{site_name} Newsletter</title>
  <style type="text/css">
  body {
  font-family: georgia, times new roman, times, serif;
  color: black;
  background: lemonchiffon;
  margin: 10px 50px 10px 50px;
  }
  .date,.footer {
  font-family: verdana,arial,helvetica,sans-serif;
  font-size: 11px;
  color: gray;
  }
  .date {
  margin-bottom: 20px;
  }
  .thumbnail {
  float: left;
  margin-right: 5px;
  width: 120px;
  height: 120px;
  text-align: center;
  border: 1px gray solid;
  padding: 8px;
  }
  .safe {
  clear: both;
  margin-bottom: 10px;
  }
  h2 {
  margin-top: 20px;
  border-top: 1px gray solid;
  clear: both;
  color: gray;
  }
  p {
  line-height: 150%;
  }
  a {
  color: darkslateblue;
  text-decoration: none;
  }
  a:hover {
  color: lightslateblue;
  }
  </style>
</head>
<body>
{!if defined(logo)
'<img src="{site_url}/{logo}" alt="{site_name}" border="0"/>'
'<h1>{site_name} Newsletter</h1>'
!}
<p>
<a href="{site_url}">{site_url}</a><br/>
<i>This newsletter is emailed every {report_days} day(s).
Unsubscribe information is at the end of this page.</i>
</p>

<h2>Upcoming Events</h2>
{BEGIN:upcoming_events report_days}
<p><b>{!date '{site_date_format}' '{event_begin}'!}</b><br/>
<a href="{site_url}/document.php?id={doc_id}">{doc_title}</a><br/>
{doc_body}</p>
{END:upcoming_events}

<h2>New Users</h2>
{BEGIN:users_today report_days}
<p><a href="{site_url}/user.php?id={user_user_id}"><b>{user_user_name}</b></a><br/>
from {user_user_country_name}<br/>
<i>{user_user_description}</i></p>
{END:users_today}

<h2>New Documents</h2>
{BEGIN:documents_today report_days}
<div class="safe">
{!if '"{doc_type}"=="Image"'
    '<div class="thumbnail"><a href="{site_url}/document.php?id={doc_id}">
    <img src="{site_url}/{doc_file_100}" alt="" border="0"/></a></div>'
!}
<p><a href="{site_url}/document.php?id={doc_id}"><i>{doc_title}</i></a>
({doc_type_display})<br/>
by <a href="{site_url}/user.php?id={doc_user_id}">{doc_user_name}</a></p>
</div>
{END:documents_today}

<h2>New Folders</h2>
{BEGIN:folders_today report_days}
<p><a href="{site_url}/folder.php?id={folder_id}">{folder_name_display}</a>
{!if '{folder_public}+0' '(Public)'!}
<br/>
by <a href="{site_url}/user.php?id={folder_user_id}">{folder_user_name}</a><br/>
{folder_body}</p>
{END:folders_today}

<p><i>This report is provided as a free service to members of {site_name}.
If you no longer wish to receive this report, point your browser to
<a href="{site_url}">{site_url}</a> and modify your Preferences.</i></p>
<p>Copyright &copy;{!date 'Y'!}, {site_name}. All rights reserved.</p>
</body>
</html>