discourse-legacysite-perl/site/articles/include_featured_articles.html

19 lines
604 B
HTML
Raw Normal View History

2024-06-17 12:24:05 +00:00
<div class="featured-wrapper">
<%~set list_view = 'featured'%>
<%~set row_index = 0%>
<%~loop featured_articles_loop%>
<%~if skip_first%><%if row_num == 1%><%nextloop%><%endif%><%elsif row_num > 3%><%lastloop%><%endif%>
<%if get_thumbnail_url%>
<%~set thumbnail_url = Plugins::UI::fetch_thumbnail($loop_value)%>
<%~endif%>
<%~if row_num == $show_ad%>
<div class="featured-content col-6-12">
<%~set adsize = '300x250'%>
<%~include include_ad.html%>
</div>
<%~endif%>
<%~set row_index += 1%>
<%include link.html%>
<%~endloop%>
</div>