{include file="header.html"}
{section name=x loop=$categories} {if $categories[x].index_view eq 1}

{$categories[x].category}

{if $categories[x].id|news_in_category:$theme_home_category_news_number neq 0} {foreach name=x from=$categories[x].id|news_in_category:$theme_home_category_news_number key=id item=news} {if $smarty.foreach.x.first}
{$news.thumbnail|article_thumbnail:$news.source_id:"max-width":$theme_allow_lazyload}
{$news.title|html_decode}
{else} {/if} {/foreach} {/if}
{if $smarty.section.x.first}
{$content_ad}
{/if} {/if} {/section}
{include file="sidebar.html"}
{include file="footer.html"}