{strip}
<table><tr>{* show page rank *}
{if $smarty.const.SHOW_PAGERANK}
   <td>
      {include file="pagerank.tpl" pr=$link.PAGERANK}
   </td>
{/if}
<td>   {if !empty($link.URL)}<a class="link" id="id_{$link.ID}" href="{$link.URL|escape|trim}" title="{$link.TITLE|escape|trim}"

   {* nofollow *}

   {if $link.NOFOLLOW or ($link.RECPR_VALID eq 0 and ($smarty.const.RECPR_NOFOLLOW eq 2 or ($smarty.const.RECPR_NOFOLLOW eq 1 and $link.RECPR_REQUIRED eq 1)))} rel="nofollow"{/if}

   {if $smarty.const.ENABLE_BLANK} target="_blank"{/if}>{/if}<span  id="edittitle_{$link.ID}" class="link">{$link.TITLE|escape|trim}</span>{if !empty($link.URL)}</a>

   {/if}	
 <!-- 
 <span  id="edittitle_{$link.ID}" class="link">{$link.TITLE|escape|trim}  </span>
  -->
 <br/>  

   {if !empty ($search) or !empty ($uid)}
      <p>{l}Category{/l}: <a href="{$smarty.const.DOC_ROOT}/{$link.CATEGORY_URL|escape|trim}" title="{$link.CATEGORY_TITLE|escape|trim}">{$link.CATEGORY_TITLE|escape|trim}</a></p>
   {/if}

   <p id="description{$link.ID}">
      <span id="editdescrip_{$link.ID}">{if !empty($link.DESCRIPTION)}{$link.DESCRIPTION|trim}{else}[{l}No Description{/l}]{/if}</span> -&nbsp;<a class="readMore" href="{if !$smarty.const.ENABLE_REWRITE}
                                                {$smarty.const.DOC_ROOT}/detail.php?id={$link.ID}
                                             {else}
                                                {$smarty.const.DOC_ROOT}/{$link.SEO_URL}{/if}" title="{l}Read more about{/l}: {$link.TITLE|escape|trim}">{l}Read&nbsp;more{/l}</a>

                                 {if ($smarty.const.REQUIRE_REGISTERED_USER == 1 || $smarty.const.REQUIRE_REGISTERED_USER_ARTICLE == 1) and !empty ($regular_user_details) and ($regular_user_details.ID == $link.OWNER_ID)}
                                    ,&nbsp;<a class="readMore" href="{$smarty.const.DOC_ROOT}/submit.php?linkid={$link.ID}" title="{l}Edit or Remove your link{/l}">{l}Review{/l}</a>
                                 {/if}
   </p>
   {$link.URL|escape|trim}
</td>
</tr>
<tr>
    <td colspan="2">{if $smarty.const.LINK_RATING_DISPLAY == 'image'}
    <div class="link_rating" style="width:400px;">
        {if $link.RATING >0 }
        {section name=foo loop=$link.RATING/$link.VOTES}
            <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/tiny_star.gif">      
        {/section}
        {if intval($link.RATING/$link.VOTES) < $link.RATING/$link.VOTES}
            <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/tiny_star_half.gif">
        {/if}
        {else}
        <span class="review" style="float: left; padding-bottom: 3px;padding-left: 3px;">not rated yet</span>
        {/if}
    {/if}
        <span class="review">({if $link.COMMENT_COUNT !=''}{$link.COMMENT_COUNT}{else}0{/if} Reviews. Rating: {$link.RATING/$link.VOTES|truncate:4:""} Total Votes: {$link.VOTES})</span>
        
        <div style="clear: both;"></div>
   </div>
   </td>
</tr>

<tr>
    <td colspan="2">
    {if $link.rights.editLink eq 1}
    
    <a href="{$smarty.const.DOC_ROOT}/inplace_editlink.php?ID={$link.ID}&TB_iframe=true&height=400&width=600" onclick="return showThickbox(this);" class="thickbox">
      <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/edit.gif" width="14" height="14" style="border: none;" alt="edit link"/>
    </a>
   {/if}
   {if $link.rights.delLink eq 1}
   <a href="{$smarty.const.DOC_ROOT}/inplace_editlink.php?ID={$link.ID}&mode=del&TB_iframe=true&height=100&width=250"  class="thickbox"  onclick="{literal}question = confirm('Are you sure you want to delete this link?');if (question !='0'){return showThickbox(this);} else return false;{/literal}">
        <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/delete.gif" width="14" height="14" style="border: none;" alt="delete link"/>
   </a>
    {/if}
    {if ($link.STATUS<2) && $link.rights.editLink eq 1}
    <a href="{$smarty.const.DOC_ROOT}/inplace_editlink.php?ID={$link.ID}&mode=active&TB_iframe=true&height=100&width=250"  class="thickbox"  onclick="{literal}question = confirm('Are you sure you want to make this link active?');if (question !='0'){return showThickbox(this);} else return false;{/literal}">
        <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/active.gif" width="14" height="14" style="border: none;" alt="category is inactive" class="float_tiny"/>
    </a>
    {/if}
    {if $link.rights.editLink eq 1 || $link.rights.delLink eq 1}
    {if $link.has_payment > 0}
    <div class="float_tiny" style="color: green; font-weight: bold">$</div>
    {/if}
    {/if}
    </td>
</tr>




</table>
{/strip}