{foreach from=$fields_array item=v name=custom} {if (!isset($edit) || !$edit || $v.editable) && (!isset($edit) || !$edit || $v.type!="terms")}
{/if}{$v.name}{if $v.required==1} *{/if}
{/if}
{if $v.type=="image"}
{/if}
{/if}
{/if}
{if $v.type=="textarea"}
{if $v.prefix!=""} {$v.prefix} {/if}
{if $v.postfix!=""} {$v.postfix} {/if}
{/if}
{if $v.type=="htmlarea"}
{if $v.prefix!=""} {$v.prefix} {/if}
{if $v.postfix!=""} {$v.postfix} {/if}
{/if}
{if $v.type=="menu"}
{if $v.prefix!=""} {$v.prefix} {/if}
{if $v.postfix!=""} {$v.postfix} {/if}
{if $v.other_val}
{if isset($tmp[$v.caption]) && $tmp[$v.caption] && !in_array($tmp[$v.caption], $v.elements_array)}
{else}
{/if}
{/if}
{/if}
{if $v.type=="multiselect"}
{/if}
{if $v.type=="radio"}
{foreach from=$v.elements_array item=t}
{if $v.prefix!=""} {$v.prefix} {/if}
{$t}
{if $v.postfix!=""} {$v.postfix} {/if}
{/foreach}
{/if}
{if $v.type=="radio_group"}
{/if}
{if $v.type=="checkbox"}
{/if}
{if $v.type=="checkbox_group"}
{/if}
{if $v.type=="date" }
{include file="data/date.html"}
{if $v.prefix!=""} {$v.prefix} {/if}
{if $v.postfix!=""} {$v.postfix} {/if}
{/if}
{if $v.type=="youtube"}
{if $v.prefix!=""} {$v.prefix} {/if}
{if $v.postfix!=""} {$v.postfix} {/if}
{/if}
{if $v.type=="google_maps" }
{/if}
{if $v.type=="terms" && (!isset($edit) || !$edit) }
{/if}
{if !in_array($v.type, $default_fields_types)}
{include file="modules/`$v.type`/form.html"}
{/if}
{assign var=uc_array value=["textbox", "textarea", "htmlarea", "menu", "url", "email", "phone", "date"]}
{if $type=="user" && in_array($v.type, $uc_array) && $v.public==2} {* user choice for public *}
{capture name=some_content assign=pub_field}pb_{$v.caption}{/capture}
{$lng.listings.make_public}
{elseif $v.type!='depending' && $v.type!='price'}
{if $v.type=="password" && (!isset($edit) || !$edit)}
{/if}{$v.depending.name1}{if $v.depending.required1==1} *{/if}
{/if}{$v.depending.name2}{if $v.depending.required2==1} *{/if}
{/if}{$v.depending.name3}{if $v.depending.required3==1} *{/if}
{/if}{$v.depending.name4}{if $v.depending.required4==1} *{/if}