<% set url = $config.db_cgi_url %> <% set show_thumbnail = '' %> <%if Link_Type eq 'photo' and Image1_thumbnail %> <% set show_thumbnail = "$url/jump.cgi?ID=$ID&v=Image1_thumbnail" %> <%elseif Link_Type eq 'video' and Thumbnail_Path %> <% set show_thumbnail = "$url/jump.cgi?ID=$ID&v=Thumbnail_Path" %> <%elseif Link_Type eq 'video' and Thumbnail_URL and Thumbnail_URL ne 'http://' %> <% set show_thumbnail = $Thumbnail_URL %> <%endif%> <%rewrite_detail_url%>
<% if show_thumbnail %>
<%endif%>

<%if detailed_url and isValidated eq 'Yes'%><%elsif URL ne 'http://' and isValidated eq 'Yes'%><%endif%><%if highlight%><%Links::Tools::highlight($Title, $query)%><%else%><%Title%><%endif%><%if isValidated eq 'Yes'%><%if detailed_url or URL ne 'http://'%><%endif%><%endif%> <%if search_results_categories.$ID %>(<% search_results_categories.$ID %>)<%endif%> <%if isNew%>new<%endif%> <%if isChanged%>updated<%endif%> <%if isPopular%>popular<%endif%> <%~if paymentsEnabled%> <%if isUnpaid%>unpaid<%endif%> <%if isExpired%>expired<%endif%> <%if isFree%>free<%endif%> <%~endif%>

<%if URL ne 'http://'%>

<%if isValidated eq 'Yes'%><%endif%><%if highlight%><%set equery = escape_html $query%><%set eURL = escape_html $URL%><%Links::Tools::highlight($eURL, $equery)%><%else%><%escape_html URL%><%endif%><%if isValidated eq 'Yes'%><%endif%>

<%endif%>

<%~if Votes%> <%~set intRating = $Rating i/ 1%> " alt="<%intRating%> out of 10 stars" title="<%intRating%> out of 10 stars" /> (<%Votes%> vote<%if Votes != 1%>s<%endif%>) <%~endif%> <%~if paymentsEnabled and ExpiryDateFormatted and wasPaid%> <%if isNotify or isExpired%><%endif%><%if isExpired%>Expired on:<%else%>Expiry date:<%endif%> <%ExpiryDateFormatted%><%if isNotify or isExpired%><%endif%> <%~endif%>

<%if Description%><% set desc = shorten_it($Description,200) %>
<%if highlight%><%Links::Tools::highlight($desc, $query)%><%else%><%desc%><%endif%>
<%endif%> <%if show_thumbnail%>
<%endif%>