| 1 |
<?php |
| 2 |
namespace ABlocks\CreatePage; |
| 3 |
|
| 4 |
use ABlocks\CreatePage\Page\Common; |
| 5 |
|
| 6 |
if ( ! defined( 'ABSPATH' ) ) { |
| 7 |
exit; // Exit if accessed directly. |
| 8 |
} |
| 9 |
|
| 10 |
class ForgetPasswordPage extends Common { |
| 11 |
|
| 12 |
|
| 13 |
protected string $page_type = 'forget_password'; |
| 14 |
protected ?string $settings_field = 'forget_password_page'; |
| 15 |
|
| 16 |
protected string $slug = 'forget_password'; |
| 17 |
protected string $title = 'Forget password'; |
| 18 |
protected string $content; |
| 19 |
public function __construct() { |
| 20 |
$this->content = $this->build_content(); |
| 21 |
} |
| 22 |
private function build_content(): string { |
| 23 |
ob_start(); |
| 24 |
?> |
| 25 |
<!-- wp:ablocks/form-builder {"block_id":"84896dd6-c2a9-478c-a11e-cfd5e2c3ba0d","variationSelected":false,"postId":787,"formType":"forget_password","formActions":"","childDetails":[{"name":"email","inputType":"Email"}],"buttonText":"Forget Password","mapEmailOptions":[{"label":"None","value":"default"},{"label":"Email","value":"email"}],"mapOtherOptions":[{"label":"EMAIL","value":"email"},{"label":"None","value":"default"}]} --> |
| 26 |
<div class="ablocks-block ablocks-block-84896dd6-c2a9-478c-a11e-cfd5e2c3ba0d ablocks-block--form-builder"><div class="ablocks-block-container"><form id="ablocks-form-builder-84896dd6-c2a9-478c-a11e-cfd5e2c3ba0d" class="ablocks-form-builder" method="post"><input type="hidden" name="security" value=""/><input type="hidden" name="action" value="ablocks/form_builder_forget_password_handler"/><input type="hidden" name="current_post_id" value="787"/><input type="hidden" name="block_id" value="84896dd6-c2a9-478c-a11e-cfd5e2c3ba0d"/><!-- wp:ablocks/form-input {"block_id":"7afd891a-b136-463e-82d1-c0741dda7e40","label":"Email","formType":"forget_password","name":"email","placeholder":"Email","inputType":"Email","nameChangeable":false} --> |
| 27 |
<div data-required="true" class="ablocks-block ablocks-block-7afd891a-b136-463e-82d1-c0741dda7e40 ablocks-block--form-input ablocks-form-builder__field"><label class="ablocks-form-builder__label ablocks-form-builder__label--required " for="7afd891a-b136-463e-82d1-c0741dda7e40">Email</label><input class="ablocks-form-builder__input false" placeholder="Email" name="email" id="7afd891a-b136-463e-82d1-c0741dda7e40" type="email"/><div class="ablocks-block-error-wrap"><div class="ablocks-block-error-msg">This field is required</div></div></div> |
| 28 |
<!-- /wp:ablocks/form-input --><button class="ablocks-form-builder__submit-button ablocks-form-builder__submit-button--full-width" type="submit">Forget Password</button></form><div class="ablocks-block--form-builder__feedback-message"></div></div></div> |
| 29 |
<!-- /wp:ablocks/form-builder --> |
| 30 |
<?php |
| 31 |
return ob_get_clean(); |
| 32 |
} |
| 33 |
} |
| 34 |
|