{if $fields['type'] == 'image' && !empty($fields['loc'])}
{elseif $fields['type'] == 'image'}
{$fields['tixing']}
{/if}