60 lines
3.2 KiB
HTML
60 lines
3.2 KiB
HTML
|
<%~rewrite_detail_url%>
|
||
|
<%~if list_view eq 'latest'%>
|
||
|
<div class="list-view withcategory">
|
||
|
<div class="thumb">
|
||
|
<%~if thumbnail_url%>
|
||
|
<a href="<%detailed_url%>"><img src="<%thumbnail_url.small%>" width="107" height="80" /></a>
|
||
|
<%else%>
|
||
|
<img src="<%config.build_static_url%>/images/default_107x80.png" width="107" height="80" />
|
||
|
<%~endif%>
|
||
|
</div>
|
||
|
<div class="detail">
|
||
|
<div class="list-category"><a href="<%URL%>" class="label label-category"><%escape_html Name%></a></div>
|
||
|
<h3><a href="<%detailed_url%>"><%escape_html Title%></a><%if Link_Type eq 'video'%><i class="sprite-video"></i><%elsif Link_Type eq 'photo'%><i class="sprite-gallery"></i><%endif%></h3>
|
||
|
</div>
|
||
|
</div>
|
||
|
<%~elsif list_view eq 'featured'%>
|
||
|
<div class="featured-content col-6-12">
|
||
|
<a href="<%detailed_url%>" class="detailed-url no-underline<%if Link_Type eq 'video'%> video-thumb<%endif%>" title="<%escape_html Title%>">
|
||
|
<%~if thumbnail_url%>
|
||
|
<div class="crop-2"><img src="<%thumbnail_url.large || $thumbnail_url.medium%>" alt="<%escape_html Title%>" class="img-responsive" /></div>
|
||
|
<%~else%>
|
||
|
<img src="<%config.build_static_url%>/images/default_300x166.png" width="300" height="166" class="img-responsive" />
|
||
|
<%~endif%>
|
||
|
<%~if Link_Type eq 'video'%><i class="sprite-video-play"></i><%endif%>
|
||
|
</a>
|
||
|
<%~if show_category%>
|
||
|
<div class="featured-category"><a href="<%URL%>" class="label label-category"><%escape_html Name%></a></div>
|
||
|
<%~endif%>
|
||
|
<h3><a href="<%detailed_url%>"><%escape_html Title%></a><%if Link_Type eq 'video'%> <i class="sprite-video"></i><%elsif $Link_Type eq 'photo'%><a href="<%Plugins::UI::slideshow_url($detailed_url)%>"><i class="sprite-gallery"></i></a><%endif%></h3>
|
||
|
<div class="excerpt briefy">
|
||
|
<a href="<%detailed_url%>" class="no-underline" title="Read more">
|
||
|
<span class="post-meta light-grey"><% set desc = shorten_it($Description, 110) %><%desc%>
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<%if row_index == 2%><div class="clearall"></div><%endif%>
|
||
|
<%~else%>
|
||
|
<div class="list-view <%if list_view eq 'column'%>col-6-12<%else%>archive<%endif%><%if show_category%> withcategory<%endif%>">
|
||
|
<div class="thumb">
|
||
|
<%~if thumbnail_url%>
|
||
|
<img src="<%thumbnail_url.small%>" width="107" height="80" />
|
||
|
<%~else%>
|
||
|
<img width="107" height="80" src="<%config.build_static_url%>/images/default_107x80.png" />
|
||
|
<%~endif%>
|
||
|
</div>
|
||
|
<div class="detail<%if show_category%> cat-content<%endif%>">
|
||
|
<%~if show_category%><div class="list-category"><a href="<%URL%>" class="label label-category"><%escape_html Name%></a></div><%endif%>
|
||
|
<h3><a href="<%detailed_url%>"><%escape_html Title%></a><%if Link_Type eq 'video'%><i class="sprite-video"></i><%elsif Link_Type eq 'photo'%><i class="sprite-gallery"></i><%endif%></h3>
|
||
|
<%~if list_view ne 'column'%>
|
||
|
<div class="excerpts">
|
||
|
<span class="post-meta light-grey">
|
||
|
<%if Description%><% set desc = shorten_it($Description, 200) %><%if highlight%><%Links::Tools::highlight($desc, $query)%><%else%><%desc%><%endif%><%endif%>
|
||
|
</div>
|
||
|
<%~else%>
|
||
|
<span class="post-meta light-grey"></span>
|
||
|
<%~endif%>
|
||
|
</div>
|
||
|
</div>
|
||
|
<%~endif%>
|