{$required_fields=$userquery->load_signup_fields()|@array_filter} {$cutom_fields=$userquery->custom_signup_fields} {if $mode == 'signup_success'}
{if $udetails.usr_status !='Ok'} {lang code='signup_success_usr_ok'} {else} {lang code='signup_success_usr_emailverify' assign='signupsuccessusremailverify'} {link name='login' assign='login_link'} {$signupsuccessusremailverify|sprintf:$login_link} {/if}
{else} {$mode = $smarty.get.mode}
{if $mode == 'login'}

## {lang code="login"}

{*{lang code="Username"}*}
{*{lang code="Password"}*}
{lang code="remember_me"}
{lang code='user_forgot_username'} - {lang code='user_forgot_message'} {if function_exists('show_all_btns')}
or login with
{ANCHOR place="show_all_btns"}
{/if}

## {lang code='get_your_account'}

{lang code='create_account_msg'}

{lang code='get_your_account'}
{else}
{if $allow_registeration} {$allow_registeration} {else}

## Signup!

{foreach from=$required_fields item=field} {if $field.type!='checkbox' && $field.type!='radiobutton'} {$field.class='form-control'} {/if}
{*{$field.title}*} {if $field.type=='radiobutton'} {$field.label_class="radio-inline"} {$field.sep=" "} {/if} {if $field.type=='checkbox'} {$field.label_class="checkbox-inline"} {$field.sep=" "} {/if} {if $field.hint_before} {$field.hint_before} {/if} {ANCHOR place=$field.anchor_before} {$formObj->createField($field,false, true)} {ANCHOR place=$field.anchor_after} {if $field.hint_after} {$field.hint_after} {/if}
{/foreach} {foreach from=$custom_field item=field}
{*{$field.title}*} {if $field.type=='radiobutton'} {$field.label_class="radio-inline"} {$field.sep=" "} {/if} {if $field.type=='checkbox'} {$field.label_class="checkbox-inline"} {$field.sep=" "} {/if} {if $field.hint_before} {$field.hint_before} {/if} {ANCHOR place=$field.anchor_before} {$formObj->createField($field)} {ANCHOR place=$field.anchor_after} {if $field.hint_after} {$field.hint_after} {/if}
{/foreach} {$captcha = get_captcha()} {if $captcha} {if $captcha.show_field} {*Verification Code*} {load_captcha captcha=$captcha load=field field_params = ' id="verification_code" '} {/if}
{load_captcha captcha=$captcha load=function}
{/if}
{sprintf(lang(user_i_agree_to_the),$cbpage->get_page_link(3),$cbpage->get_page_link(2))}
{ANCHOR place="the_form"}
{ANCHOR place='signup_form'} {if function_exists('show_all_btns')}
or login with
{ANCHOR place="show_all_btns"}
{/if} {/if}
{/if}
{/if}