{if $_config.text_before}

{$_config.text_before}

{/if} {if !$smarty.foreach.foo_child.last}{/if} {/foreach}