{foreach from=$fields_array item=v name=custom}
{if $v.type!="depending" && $v.type!="terms" && ($v.type!="password" || !isset($edit) || !$edit)}
{if $v.info_message} {/if}{$v.name}{if $v.required==1} *{/if}
{/if} {* {if $v.type!="depending" && $v.type!="checkbox_group" && $v.type!="terms" && $v.type!="radio_group" && in_array($v.type, $default_fields_types) && ($v.type!="password" || !isset($edit) || !$edit)}
{$v.name}{if $v.required==1}*{/if}
{/if} *} {if $v.type=="password" && (!isset($edit) || !$edit)} {/if} {if $v.type=="textbox" || $v.type=="url" || $v.type=="email" || $v.type=="user_email" || $v.type=="username" || $v.type=="phone" || $v.type=="whatsapp"} {if $v.prefix!=""} {$v.prefix} {/if} {if ($v.type=="phone" || $v.type=="whatsapp") && $v.ext1==1}{/if} {if $v.postfix!=""} {$v.postfix} {/if} {if $v.type=="textbox"} {if $v.is_numeric} {/if} {if $v.validation_type=="numeric"} {/if} {/if} {/if} {if $v.type=="file" || $v.type=="image"} {if $v.prefix!=""} {$v.prefix} {/if} {if $v.postfix!=""} {$v.postfix} {/if} {if isset($tmp[$v.caption]) && $tmp[$v.caption]} {if $v.type=="file"}{/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] && $tmp[$v.caption]!="all" && !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"}
{foreach from=$v.elements_array item=t name=rad} {if $smarty.foreach.rad.index!=0 && $smarty.foreach.rad.index%3==2}{/if} {/foreach}
  {if $v.prefix!=""} {$v.prefix} {/if} {$t} {if $v.postfix!=""} {$v.postfix} {/if}
{/if} {if $v.type=="checkbox"} {/if} {if $v.type=="checkbox_group"} {foreach from=$v.extra_elements_array item=t name=check} {if $smarty.foreach.check.index!=0 && $smarty.foreach.check.index%3==2}{/if} {/foreach}
  {if $v.prefix!=""} {$v.prefix} {/if} {$t.name} {if $v.postfix!=""} {$v.postfix} {/if}
{/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 !in_array($v.type, $default_fields_types) && in_array($v.type, $modules_array)} {include file="modules/`$v.type`/form.html"} {/if} {if $v.type!='depending' && $v.type!='price'} {if $v.type=="password" && ( !isset($edit) || !$edit)}
{$lng.users.repeat_password} *
{/if} {elseif $v.type=='price' && $ads_settings.enable_price} {* -------- price_extra ---------- *} {if in_array("price_extra", $modules_array) && (isset($pe_settings[$fieldset]) || isset($pe_settings[0]))} {if isset($pe_settings[$fieldset])} {include file="modules/price_extra/custom_fields_form.html"} {else} {include file="modules/price_extra/custom_fields_form.html" fieldset=0} {/if} {else} {if $currencies|@count>1} {else} {$currencies[0].currency} {/if} {/if} {* end if price extra *} {* ---------- if auctions enabled ------------ *} {if $ads_settings.enable_auctions}
0}checked{/if} /> {$lng.listings.enable_auction}  0 && $tmp.auction.starting_price_nc}value="{$tmp.auction.starting_price_nc}"{/if} /> 
{/if} {* ---------- end if auctions enabled ------------ *} {elseif $v.type=='depending'}
{if $v.info_message}{/if}{$v.depending.name1}{if $v.depending.required1==1} *{/if}
{if $v.other_val} {if isset($tmp[$v.depending.caption1]) && $tmp[$v.depending.caption1] && !in_array($tmp[$v.depending.caption1], $v.depending.elements)}   {else} {/if} {/if}
{* end right_form *}
{* end clearfix *}
{if $v.info_message}{/if}{$v.depending.name2}{if $v.depending.required2==1} *{/if}
{if $v.other_val} {/if}
{* end right_form *} {if $v.depending.no>=3}
{* end clearfix *}
{if $v.info_message}{/if}{$v.depending.name3}{if $v.depending.required3==1} *{/if}
{if $v.other_val} {/if}
{* end right_form *} {/if} {if $v.depending.no>=4}
{* end clearfix *}
{if $v.info_message}{/if}{$v.depending.name4}{if $v.depending.required4==1} *{/if}
{if $v.other_val} {/if}
{* end right_form *} {/if} {if $v.depending.no>=5}
{* end clearfix *}
{if $v.info_message}{/if}{$v.depending.name5}{if $v.depending.required5==1} *{/if}
{if $v.other_val} {/if}
{* end right_form *} {/if} {/if} {* end else if depending *} {if $v.type!="depending" && ($v.type!="password" || !isset($edit) || !$edit)}
{* end right_form *} {/if}
{* end clearfix *} {/foreach}