3
If you look at
https://xoops.org/modules/news/
we have something similar, i.e. a banner after three news items.
BitC3r0 has done it by overwriting the
news_index.html template this way:
<{assign var="i" value=0}>
<{foreach item=story from=$wox_posts}>
<{include file="db:news_item.html" story=$story}>
<{if $i==2 || $i==9}>
<div class="wox_news_banner"><{$xoops_banner}></div>
<{/if}>
<{assign var="i" value=$i+1}>
<{/foreach}>
I hope, it will give you an idea...