{include file="overall_header.html"} {foreach from=$BLOCKS_ORDER item=__BLOCK name=indexblocks} {if $__BLOCK == 'recent'}
{section name=nr loop=$LIKES_RECENT} {/section}
{/if} {if $__BLOCK == 'popular'}
{section name=nr loop=$LIKES_POPULAR} {/section}
{/if} {if $__BLOCK == 'random'}
{section name=nr loop=$LIKES_RANDOM} {/section}
{/if} {if $__BLOCK == 'trending'}
{section name=nr loop=$LIKES_TRENDING} {/section}
{/if} {if $smarty.foreach.indexblocks.index == 0} {$AD_INDEX1} {/if} {if $smarty.foreach.indexblocks.index == 1} {$AD_INDEX2} {/if} {if $smarty.foreach.indexblocks.index == 2} {$AD_INDEX3} {/if} {/foreach} {include file="overall_footer.html"}