1. {*********************************************************
  2. * Copyright (c) 2009 PHPLDTemplates.com
  3. * Theme Author: http://www.PHPLDTemplates.com
  4. * Theme URL: http://www.phpldtemplates.com/2009/07/free-phpld-template-roaring-red/
  5. *
  6. * Report bug: Please email contact @ PHPLDTemplates.com
  7. * License: Free, provided user keeps the footer links intake. Not to be resold.
  8. * More free phpld templates are available at http://www.PHPLDTemplates.com
  9. *
  10. **********************************************************}
  11. {strip}
  12. <tr>
  13. <td>
  14. <img src="http://images.thumbshots.com/image.aspx?cid=0HWfj%2fGGyjE%3d&v=1&w=120&url={$link.URL|escape|trim}" border="1" alt="Preview by Thumbshots.com" />
  15. <script type="text/javascript">
  16. stw_pagepix('{if $smarty.const.ENABLE_DISPLAYURL and $link.DISPLAYURL ne ''}{$link.DISPLAYURL|escape}{else}{$link.URL|escape}{/if}', '[KEY]', 'sm', 0);
  17. </script>
  18. <div class="linkdesc">
  19. <div class="listheading">
  20. {if $edit_link}
  21. <span id="T_{$link.ID}">{$link.TITLE|escape|trim}</span>
  22. {if !empty($link.URL)}
  23. &nbsp;&nbsp;
  24. <a class="link" id="id_{$link.ID}" href="{$link.URL|escape|trim}" title="{$link.TITLE|escape|trim}"
  25. {if $link.NOFOLLOW} rel="nofollow"{/if}
  26. target="_blank">
  27. <span class="link"><img src="{$smarty.const.DOC_ROOT}/images/external_link.png" alt="{$link.TITLE|escape|trim}" border="0"/></span>
  28. </a>
  29. {/if}
  30. {else}
  31. {if !empty($link.AFFURL)}
  32. <a id="id_{$link.ID}" href="{$smarty.const.DOC_ROOT}/go.php?id={$link.ID}" title="{$link.TITLE|escape|trim}"
  33. {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}
  34. {if $smarty.const.ENABLE_BLANK} target="_blank"{/if}>
  35. {$link.TITLE|escape|trim}
  36. </a>
  37. {else} {if !empty($link.URL)}
  38. <a id="id_{$link.ID}" href="{$link.URL|escape|trim}" title="{$link.TITLE|escape|trim}"
  39. {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}
  40. {if $smarty.const.ENABLE_BLANK} target="_blank"{/if}>{/if}
  41. {$link.TITLE|escape|trim}
  42. {if !empty($link.URL)}</a>{/if}
  43. {/if}
  44. {if $smarty.const.SHOW_PAGERANK}
  45. {include file="pagerank.tpl" pr=$link.PAGERANK}
  46. {/if}
  47. </div>
  48. {if !empty ($search) or !empty ($uid)}
  49. <br />{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>
  50. {/if}
  51. </div>
  52. {if $link.URL}
  53. {if $edit_link}
  54. <span class="link" id="U_{$link.ID}" style="color: #3E81B4;">{$link.URL|escape|trim}</span>
  55. {else}
  56. {if !empty($link.AFFURL)}
  57. <span class="link">{$link.URL|escape|trim}</span>
  58. {else}
  59. <span class="link">{$link.URL|escape|trim}</span>
  60. {/if}
  61. {/if}
  62. {/if}
  63. {/if}
  64. {if $link.DESCRIPTION}
  65. <p id="description{$link.ID}">
  66. <span id="editdescrip_{$link.ID}">{if !empty($link.DESCRIPTION)}{$link.DESCRIPTION|trim}{else}[{l}No Description{/l}]{/if}</span>
  67. </p>
  68. {/if}
  69. {if $link.rights.editLink eq 1 || $link.rights.delLink eq 1 || (($link.STATUS<2) && $link.rights.editLink eq 1) }
  70. <div class="frontend_actions">
  71. {if $link.rights.editLink eq 1}
  72. <a href="{$smarty.const.DOC_ROOT}/inplace_editlink.php?ID={$link.ID}" target="blank">
  73. <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/edit.gif" width="14" height="14" style="border: none;" alt="edit link" class="float_tiny" />
  74. </a>
  75. &nbsp;
  76. {/if}
  77. {if $link.rights.delLink eq 1}
  78. <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}">
  79. <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/delete.gif" width="14" height="14" style="border: none;" alt="delete link" class="float_tiny" />
  80. </a>
  81. {/if}
  82. {if ($link.STATUS<2) && $link.rights.editLink eq 1}
  83. <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}">
  84. <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" />
  85. </a>
  86. {/if}
  87. {if $link.rights.editLink eq 1 || $link.rights.delLink eq 1}
  88. {if $link.has_payment > 0}
  89. <div class="float_tiny" style="color: green; font-weight: bold">$</div>
  90. {/if}
  91. {/if}
  92. </div>
  93. {/if}
  94. </td>
  95. </tr>
  96. <tr>
  97. <td>
  98. <div class="link_rating">
  99. {if $ratings_on == 1}
  100. {if $smarty.const.LINK_RATING_DISPLAY == 'image'}
  101. {if $link.RATING >0 }
  102. {section name=foo loop=$link.RATING/$link.VOTES}
  103. <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/tiny_star.gif">
  104. {/section}
  105. {if intval($link.RATING/$link.VOTES) < $link.RATING/$link.VOTES}
  106. <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/tiny_star_half.gif">
  107. {/if}
  108. {else}
  109. <a 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}Rate This Website{/l}: {$link.TITLE|escape|trim}"><img style="float:left;border:0px;" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/ratethisbutton.gif"></a>
  110. {/if}
  111. {/if}
  112. {/if}
  113. <div class="review">
  114. {if $comments_on == 1}{if $link.COMMENT_COUNT !=''}{$link.COMMENT_COUNT}{else}0{/if} Reviews.{/if}{if $ratings_on == 1} Rating: {$link.RATING/$link.VOTES|truncate:4:""} Total Votes: {if !$link.VOTES}0{else}{$link.VOTES}{/if}{/if}
  115. &nbsp;<a class="readMore" href="{if !$smarty.const.ENABLE_REWRITE}
  116. {$smarty.const.DOC_ROOT}/detail.php?id={$link.ID}
  117. {else}
  118. {$smarty.const.DOC_ROOT}/{$link.SEO_URL}{/if}" title="{l}Read more about{/l}: {$link.TITLE|escape|trim}">{l}Read&nbsp;more{/l}</a></div>
  119. </div>
  120. </td>
  121. </tr>
  122. {if !$smarty.foreach.links.last}<tr><td colspan="2"><hr /></td></tr>{/if}
  123. {/strip}
  124. {if $edit_link}
  125. {literal}
  126. <script type="text/javascript">
  127. new Ajax.InPlaceEditor({/literal}'T_{$link.ID}', '{$smarty.const.DOC_ROOT}/admin/frontend_edit_link.php?a=T_{$link.ID}',{literal} {savingText:{/literal}'<img src="{$smarty.const.DOC_ROOT}/images/indicator.gif" />',{literal} size:30});
  128. </script>
  129. {/literal}
  130. {/if}