{foreach item=article from=$articles name=story} {if ($article->hasThumb())}

{$article->getTitle()}

{$article->getShortBody()}

{else}

{$article->getTitle()}

{$article->getShortBody()}

{/if} {if (!$smarty.foreach.story.last)}
{/if} {/foreach}