{foreach from=$hook_info key=arrkey item=element}
{if $arrkey eq $smarty.get.name}
{include file=$element['TemplatePath']}
{/if}
{/foreach}
{/if}
{if ! isset($no_visible_elements) or $no_visible_elements eq "FALSE"}