%~set widgets_loop = Plugins::UI::fetch_widgets('subcategory', $ID)%> <%~set widget_start = 1%> <%~set widget_end = 3%> <%~if paging.current_page == 1 or not $paging%> <%~set adsize = '300x600'%> <%include include_ad.html%> <%Name%> <%~if $category_loop.length%> <%~set split = Links::Utils::column_split($category_loop.length, 2)%> Sections <%~loop category_loop%> <%~if Number_of_Links%> <%~set splitmod = $row_num % $split%> <%~if row_num == 1 or splitmod == 1 or split == 1%><%endif%> <%Name%> <%~if row_num == $category_loop.length or splitmod == 0%><%endif%> <%~endif%> <%~endloop%> <%~endif%> <%~set max_hits = 3%> <%~if category_loop.length > 4%><%set max_hits = 1%><%endif%> <%~set featured_articles_loop = Plugins::UI::fetch_links(ids => $Featured_Links, max_hits => $max_hits)%> <%~if not featured_articles_loop.length%> <%~init array featured_articles_loop%> <%~set index = 0%> <%~loop links_loop%> <%if row_num > $max_hits%><%lastloop%><%endif%> <%~set featured_articles_loop.$index = $loop_value%> <%~set index += 1%> <%~endloop%> <%~endif%> <%~if featured_articles_loop.length%> <%~if not Featured_Links%><%set skip_top_three = 1%><%endif%> <%~if max_hits == 1%><%~set show_ad = 1%><%else%><%set show_ad = 3%><%endif%> <%~set get_thumbnail_url = 1%> <%include include_featured_articles.html%> <%~endif%>