firebase-authentication
/
admin
/
partials
/
support
/
class-mo-firebase-authentication-admin-demo.php
class-mo-firebase-authentication-admin-demo.php
2 years ago
class-mo-firebase-authentication-admin-support.php
2 years ago
class-mo-firebase-authentication-admin-demo.php
104 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Firebase Authentication Demo Request |
| 4 | * |
| 5 | * @package firebase-authentication |
| 6 | */ |
| 7 | |
| 8 | /** |
| 9 | * Class to implement demo request |
| 10 | */ |
| 11 | class Mo_Firebase_Authentication_Admin_Demo { |
| 12 | |
| 13 | /** |
| 14 | * Caller to demo request form |
| 15 | * |
| 16 | * @return void |
| 17 | */ |
| 18 | public static function mo_firebase_authentication_handle_demo() { |
| 19 | self::demo_request(); |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * Display demo request form |
| 24 | * |
| 25 | * @return void |
| 26 | */ |
| 27 | public static function demo_request() { |
| 28 | |
| 29 | ?> |
| 30 | <div class="row"> |
| 31 | <div class="col-md-12"> |
| 32 | <div class="mo_firebase_auth_card" style="width:100%"> |
| 33 | <h3><?php esc_html_e( 'Request for Demo', 'firebase-authentication' ); ?></h3><hr> |
| 34 | <p> |
| 35 | <?php esc_html_e( "Interested in testing out the paid features before purchasing? Let us know the plan you're considering, and we'll set up a demo for you.", 'firebase-authentication' ); ?></p> |
| 36 | <form method="post" action=""> |
| 37 | <input type="hidden" name="option" value="mo_fb_demo_request_form" /> |
| 38 | <?php wp_nonce_field( 'mo_fb_demo_request_form', 'mo_fb_demo_request_field' ); ?> |
| 39 | <div class="row"> |
| 40 | <div class="col-md-1"></div> |
| 41 | <div class="col-md-3"> |
| 42 | <p style="margin-bottom: 3px"><strong><p style="display:inline;color:red;">*</p>Email ID: </strong></p> |
| 43 | </div> |
| 44 | <div class="col-md-6"> |
| 45 | <input required type="email" name="mo_auto_create_demosite_email" placeholder="We will use this email to setup the demo for you"style="width:80%; font-size: 14px;" value=""> |
| 46 | </div> |
| 47 | </div> |
| 48 | <div class="row"> |
| 49 | <div class="col-md-1"></div> |
| 50 | <div class="col-md-3"> |
| 51 | <p style="margin-bottom: 3px"><strong><p style="display:inline;color:red;">*</p>Request a demo for: </strong></p> |
| 52 | </div> |
| 53 | <div class="col-md-6"> |
| 54 | <select required name="mo_auto_create_demosite_demo_plan"id="mo_fb_demo_plan" style="width:80%; font-size: 14px;" > |
| 55 | <option disabled selected>------------------ Select ------------------</option> |
| 56 | <option value="miniorange-firebase-authentication-enterprise@22.0.3">WP Firebase Authentication Enterprise Plan</option> |
| 57 | <option value="miniorange-firebase-authentication-premium@12.0.3">WP Firebase Authentication Premium Plan</option> |
| 58 | <option value="Not Sure">Not Sure</option> |
| 59 | </select> |
| 60 | </div> |
| 61 | </div> |
| 62 | <div class="row"> |
| 63 | <div class="col-md-1"></div> |
| 64 | <div class="col-md-3"> |
| 65 | <p style="margin-bottom: 3px"><strong><p style="display:inline;color:red;">*</p>Usecase: </strong></p> |
| 66 | </div> |
| 67 | <div class="col-md-6"> |
| 68 | <textarea type="text" minlength="15" name="mo_auto_create_demosite_usecase" rows="4"placeholder="Example: WooCommerce Integration, WP Login with Firebase credentials for my Mobile App users, Firebase social login for my WordPress, etc" style="width:80%; font-size: 14px;" required value=""></textarea> |
| 69 | </div> |
| 70 | </div><br> |
| 71 | <div class="row"> |
| 72 | <div class="col-md-1"></div> |
| 73 | <div class="col-md-8" style="background-color: #e5f4ff;border-radius: 10px;padding: 13px 18px;"><br> |
| 74 | <input value="true" name="mo_auto_create_demosite_firestore_integrator_check" type="checkbox" id="mo_auto_create_demosite_firestore_integrator_check" checked> |
| 75 | <div style="display:inline"> |
| 76 | <div style="display:inline-block;padding:0px 10px 10px 0px"> |
| 77 | <strong>Enable Firestore Integrator Addon on Demo Site</strong> |
| 78 | </div> |
| 79 | <p> |
| 80 | Our new launched solution helps you sync WordPress data to Cloud Firestore Collections. |
| 81 | <br><br><strong>Note:</strong> You have to select a plan in the above 'Request a demo for' field as this addon works along with the Firebase Authentication plugin. |
| 82 | </p> |
| 83 | </div> |
| 84 | </div> |
| 85 | </div> |
| 86 | <br> |
| 87 | <div class="row"> |
| 88 | <div class="col-md-1"></div> |
| 89 | <div class="col-md-3"></div> |
| 90 | <div class="col-md-6"> |
| 91 | <input type="submit" style="text-align:center; font-size: 14px; font-weight: 400;" class="button button-primary button-large" name="submit" value="Submit Demo Request" ><br> |
| 92 | </div> |
| 93 | </div> |
| 94 | <br> |
| 95 | </form> |
| 96 | </div> |
| 97 | </div> |
| 98 | </div> |
| 99 | <?php |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | |
| 104 |