<p class="info">
This {doc_type_display} will be active from
{!date '{site_date_format} {site_time_format}' '{notice_begin_date}'!}
through {!date '{site_date_format} {site_time_format}' '{notice_end_date}'!}
{!if defined(ad_url) '<br/>Click-through count: {ad_clicks:%d}'!}
</p>
<div class="ad" style="width:200px;">
  <div class="adtitle">{doc_title}</div>
  <div class="adbody">{doc_body}</div>
  {!if defined(ad_url)
  '<div class="adurl">{ad_url_link}</div>'
  !}
  <div class="adowner"><a href="{site_path}/user.php?id={doc_user_id}">{doc_user_name}</a></div>
</div>
{template:edit}