26 lines
1.1 KiB
HTML
26 lines
1.1 KiB
HTML
<%~set latest_links = Plugins::UI::fetch_links(category => $ID, max_hits => 3)%>
|
|
<%~if latest_links.length%>
|
|
<div class="cat-view grid">
|
|
<div class="thumb col-1-2">
|
|
<%~if latest_links.length and $latest_links.0.thumbnail_url%>
|
|
<a href="<%latest_links.0.detailed_url%>"><img class="img-responsive" width="300" height="166" src="<%latest_links.0.thumbnail_url.medium%>"/></a>
|
|
<%~else%>
|
|
<img src="<%config.build_static_url%>/images/default_300x166.png" width="300" height="166" class="img-responsive" />
|
|
<%~endif%>
|
|
</div>
|
|
<div class="detail col-1-2">
|
|
<a class="label label-category" href="<%URL%>"><%escape_html Name%></a>
|
|
<%~if latest_links.length%>
|
|
<ul class="liststyle">
|
|
<%~loop latest_links%>
|
|
<li><a href="<%detailed_url%>"><%escape_html Title%></a> <span class="post-meta light-grey"><%Plugins::UI::friendly_date($Add_Date, $Timestmp)%></span><%if isNew%> <span class="new">New</span><%endif%></li>
|
|
<%~endloop%>
|
|
</ul>
|
|
<%~endif%>
|
|
<div class="more col-1-1 right">
|
|
<a href="<%URL%>" class="btn btn-more">More</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<%~endif%>
|