<{include file="db:`$mydirname`_header.html"}>
<div style="text-align:center;padding:20px 0;">

  <h1 style="border-bottom:2px solid #CCC;"><{$link.title}></h1>

  <{if $link.adult}>
    <div style="color:red;"><{$smarty.const._MD_VISIT_ATTENTION_MSG}></div>
    <img src="<{$myurl}>/images/warning128.gif" /><br />
  <{/if}>

  <{if $link.url}>
    <{if $link.capture}>
      <img src="<{$cache_url}>/<{$link.lid}>.jpg" width="128" height="128" />
    <{elseif $screenshotservice}>
      <img src="<{$screenshotservice}><{$link.url}>" width="128" height="128" />
    <{/if}>
  <{/if}>

  <div style="margin:4px 0 20px 0;">
    <{if $link.url=="" && $link.murl}>
      <img src="<{$myurl}>/images/mobileonly128.gif" /><br />
    <{/if}>
    <{if $mobile_flag == 'ok_mobile'}>
      <div style="color:red;">
        <{$smarty.const._MD_VISIT_MIBILEONLY_MSG}>
      </div>
    <{/if}>
  </div>

  <a href="<{my_make_uri option=$uri_options mydirname=$mydirname controller=visit method=$mobile_flag p_key1=lid p_val1=$link.lid}>" style="border:1px solid red;padding:10px;color:red;" target="_blank">
    <{if $mobile_flag == 'ok_mobile'}><{$link.murl}><{elseif $link.url}><{$link.url}><{else}><{$link.murl}><{/if}>
  </a>

</div>
<{include file="db:`$mydirname`_footer.html"}>
