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