{$include_css = $include_css|default:false} {$include_js = $include_js|default:false} {$class_id = 'wa-signup-form-wrapper'} {$wrapper_id = uniqid($class_id)} {* PREPARE CLASS STRING FOR WRAPPER *} {$_classes = [$class_id]} {if $is_onetime_password_auth_type} {$_classes[] = 'wa-is-onetime-password-auth-type'} {/if} {if $is_need_confirm} {$_classes[] = 'wa-is-need-confirm'} {/if} {$_classes = $_classes|join:" "} {$_timeout = intval($timeout|default:0)} {if $_timeout <= 0}{$_timeout = 60}{/if} {$_locale = [ 'required' => _ws('Field is required'), 'onetime_password_required' => _ws('Enter a confirmation code to complete signup'), 'confirmation_code_required' => _ws('Enter a confirmation code to complete signup'), 'captcha_required' => _ws('Captcha is required'), 'sent_by_email' => _ws('(sent by email)'), 'sent_by_sms' => _ws('(sent in SMS)') ]} {* If you need to load css, but don't need js, we will load css here. If js also need to be loaded, then we will do it asynchronously below. *} {if $include_css && !$include_js} {/if}