48 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<% 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%><div id="l<%ID%>" class="linklisting" >
 | 
						|
  <% if show_thumbnail %>
 | 
						|
     <div class="linkleft">
 | 
						|
        <a href="<%detailed_url%>"><img src="<%show_thumbnail%>" height="80" width="100" ></a>
 | 
						|
    </div>
 | 
						|
    <div class="linkright">
 | 
						|
  <%endif%>
 | 
						|
 | 
						|
  <h4 class="linktitle">
 | 
						|
    <%if detailed_url and isValidated eq 'Yes'%><a href="<%detailed_url%>"><%elsif URL ne 'http://' and isValidated eq 'Yes'%><a href="<%config.db_cgi_url%>/jump.cgi?ID=<%ID%>"><%endif%><%if highlight%><%Links::Tools::highlight($Title, $query)%><%else%><%Title%><%endif%><%if isValidated eq 'Yes'%><%if detailed_url or URL ne 'http://'%></a><%endif%><%endif%>
 | 
						|
    <%if search_results_categories.$ID %>(<% search_results_categories.$ID %>)<%endif%>
 | 
						|
    <%if isNew%><span class="new-item"><span>new</span></span><%endif%>
 | 
						|
    <%if isChanged%><span class="updated-item"><span>updated</span></span><%endif%>
 | 
						|
    <%if isPopular%><span class="popular-item"><span>popular</span></span><%endif%>
 | 
						|
  <%~if paymentsEnabled%>
 | 
						|
    <%if isUnpaid%><span class="unpaid-item"><span>unpaid</span></span><%endif%>
 | 
						|
    <%if isExpired%><span class="expired-item"><span>expired</span></span><%endif%>
 | 
						|
    <%if isFree%><span class="free-item"><span>free</span></span><%endif%>
 | 
						|
  <%~endif%>
 | 
						|
  </h4>
 | 
						|
  <%if URL ne 'http://'%><p class="linkurl"><%if isValidated eq 'Yes'%><a href="<%config.db_cgi_url%>/jump.cgi?ID=<%ID%>"><%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'%></a><%endif%></p><%endif%>
 | 
						|
 | 
						|
  <p class="linkrating">
 | 
						|
  <%~if Votes%>
 | 
						|
    <%~set intRating = $Rating i/ 1%>
 | 
						|
    <img src="<%Links::Utils::image_url("stars-10-${intRating}.gif")%>" 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%><span class="linkexpired"><%endif%><%if isExpired%>Expired on:<%else%>Expiry date:<%endif%> <%ExpiryDateFormatted%><%if isNotify or isExpired%></span><%endif%>
 | 
						|
  <%~endif%>
 | 
						|
  </p>
 | 
						|
 | 
						|
  <%if Description%><% set desc = shorten_it($Description,200) %><div class="linkdescription" ><%if highlight%><%Links::Tools::highlight($desc, $query)%><%else%><%desc%><%endif%></div><%endif%>
 | 
						|
 | 
						|
  <%if show_thumbnail%>
 | 
						|
  </div>
 | 
						|
  <%endif%>
 | 
						|
</div>
 |