{function renderName value=''} {if !empty($info.original_name)} {$value} {else} {$value|escape} {/if} {/function} {if $info.type == 'hidden'} {elseif $info.type == 'input'} {if !empty($info.description)}
{$info.description}
{/if} {elseif $info.type == 'textarea'} {if !empty($info.description)}{$info.description}
{/if} {elseif $info.type == 'select'}{$info.description}
{/if} {elseif $info.type == 'radio'} {foreach $info.items as $_k => $_v} {if !is_array($_v)} {$_v = ['name' => $_v]} {/if} {/foreach} {elseif $info.type == 'checkbox'} {if isset($info.items)} {foreach $info.items as $_k => $_v} {if !is_array($_v)} {$_v = ['name' => $_v]} {/if} {/foreach} {else} {/if} {if !empty($info.description)} {$info.description} {/if} {elseif $info.type == 'radio_select'}