{foreach name=y from=$theme_sections_ids key=ids item=k}

{$k.id|category_title}

{foreach name=x from=$k.id|news_in_category:$theme_sections_items_number key=id item=h} {if $smarty.foreach.x.first}
{$h.thumbnail|first_image:$h.feed_id:150:100} {$h.title|html_decode}

{$h.details|html_decode|strip_tags|truncate:200}

{else} {/if} {/foreach}
{/foreach}