| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) { exit;} // Exit if accessed directly ?> |
| 2 |
<?php |
| 3 |
/** @var string $title @var string $description @var array $formFields @var array $hiddenFields @var string $button_label */ |
| 4 |
$fluentCommunityTitle = $title ?? ''; |
| 5 |
$fluentCommunityDescription = $description ?? ''; |
| 6 |
$fluentCommunityFormFields = $formFields ?? []; |
| 7 |
$fluentCommunityHiddenFields = $hiddenFields ?? []; |
| 8 |
$fluentCommunityButtonLabel = $button_label ?? ''; |
| 9 |
?> |
| 10 |
<div id="fcom_user_onboard_wrap" class="fcom_user_onboard"> |
| 11 |
<?php do_action('fluent_community/before_auth_form_header', 'signup'); ?> |
| 12 |
<div class="fcom_onboard_header"> |
| 13 |
<div class="fcom_onboard_header_title"> |
| 14 |
<h2> |
| 15 |
<?php echo esc_html($fluentCommunityTitle); ?> |
| 16 |
</h2> |
| 17 |
<p><?php echo wp_kses_post($fluentCommunityDescription); ?></p> |
| 18 |
</div> |
| 19 |
</div> |
| 20 |
<div class="fcom_onboard_body"> |
| 21 |
<div class="fcom_onboard_form"> |
| 22 |
|
| 23 |
<?php do_action('fluent_community/before_registration_form'); ?> |
| 24 |
|
| 25 |
<form method="post" id="fcom_user_registration_form"> |
| 26 |
<div class="fcom_form_main_fields"> |
| 27 |
<?php (new \FluentCommunity\App\Services\FormBuilder($fluentCommunityFormFields))->render(); ?> |
| 28 |
<?php |
| 29 |
foreach ($fluentCommunityHiddenFields as $fluentCommunityName => $fluentCommunityValue) { |
| 30 |
echo "<input type='hidden' name='".esc_attr($fluentCommunityName)."' value='".esc_attr($fluentCommunityValue)."'>"; |
| 31 |
} |
| 32 |
?> |
| 33 |
<div class="fcom_form-group"> |
| 34 |
<div class="fcom_form_input"> |
| 35 |
<button type="submit" class="fcom_btn fcom_btn_primary has_svg_loader fcom_btn_submit"> |
| 36 |
<svg version="1.1" class="fls_loading_svg" x="0px" y="0px" width="40px" height="20px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve"> |
| 37 |
<path fill="currentColor" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"> |
| 38 |
<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite"/> |
| 39 |
</path> |
| 40 |
</svg> |
| 41 |
<span> |
| 42 |
<?php echo esc_html($fluentCommunityButtonLabel); ?> |
| 43 |
</span> |
| 44 |
</button> |
| 45 |
</div> |
| 46 |
</div> |
| 47 |
</div> |
| 48 |
</form> |
| 49 |
|
| 50 |
<?php if(!empty($loginUrl)): ?> |
| 51 |
<div class="fcom_spaced_divider"> |
| 52 |
<?php esc_html_e('Already have an account?', 'fluent-community'); ?> |
| 53 |
<a href="<?php echo esc_url($loginUrl); ?>"> |
| 54 |
<?php esc_html_e('Login', 'fluent-community'); ?> |
| 55 |
</a> |
| 56 |
</div> |
| 57 |
<?php endif; ?> |
| 58 |
|
| 59 |
<?php do_action('fluent_community/after_registration_form'); ?> |
| 60 |
</div> |
| 61 |
</div> |
| 62 |
</div> |
| 63 |
|