firebase-authentication
/
admin
/
partials
/
config
/
class-mo-firebase-authentication-advsettings.php
class-mo-firebase-authentication-advsettings.php
5 years ago
class-mo-firebase-authentication-config.php
5 years ago
class-mo-firebase-authentication-hooks.php
5 years ago
class-mo-firebase-authentication-licensing_plans.php
5 years ago
class-mo-firebase-authentication-loginsettings.php
5 years ago
class-mo-firebase-authentication-advsettings.php
110 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | class Mo_Firebase_Authentication_Admin_AdvSettings { |
| 5 | |
| 6 | public static function mo_firebase_authentication_advsettings() { |
| 7 | ?> |
| 8 | <div class="row"> |
| 9 | <div class="col-md-12"> |
| 10 | <div class="mo_firebase_auth_card" style="width:100%"> |
| 11 | <form name="integration_form" id="mo_firebase_auth_integration" method="post"> |
| 12 | <input type="hidden" name="option" value="mo_firebase_auth_integration"> |
| 13 | <div style="display: inline-block;"><h3 style="margin: 10px 0;">Sync WordPress and Firebase users </h3></div> <small style="color: #FF0000"><a href="admin.php?page=mo_firebase_authentication&tab=licensing_plans">[PREMIUM]</a></small><br> |
| 14 | |
| 15 | <div style="display:inline-block; margin-top: 10px;"><label class="mo_firebase_auth_switch"> |
| 16 | <input value="1" name="mo_enable_firebase_auto_register" type="checkbox" id="mo_enable_firebase_auto_register" disabled> |
| 17 | <span class="mo_firebase_auth_slider round"></span> |
| 18 | <input type="hidden" name="option" value=""> |
| 19 | </label> |
| 20 | <strong style="font-weight: 600; vertical-align: top; ">Auto register users into Firebase</strong></div> |
| 21 | <br> |
| 22 | <p>Enabling this option will create new user in Firebase project when a end user registers in WordPress site.</p> |
| 23 | </form> |
| 24 | </div> |
| 25 | </div> |
| 26 | </div> |
| 27 | <div class="row"> |
| 28 | <div class="col-md-12"> |
| 29 | <div class="mo_firebase_auth_card" style="width:100%"> |
| 30 | <form name="integration_form" id="mo_firebase_auth_integration" method="post" style="margin-bottom: 10px;"> |
| 31 | |
| 32 | <input type="hidden" name="option" value="mo_firebase_auth_integration" style="margin-top: 0px; margin-bottom: 0px;"> |
| 33 | <div style="display: inline-block;"><h3 style="margin: 15px 0;">Login & Registeration Form Integration</h3></div> <small style="color: #FF0000"><a href="admin.php?page=mo_firebase_authentication&tab=licensing_plans">[PREMIUM]</a></small> |
| 34 | <table class="mo_settings_table" style="width: 95%;"> |
| 35 | <tr><td>Select below if you want to allow users to login using firebase credentials with third party or custom login/registration page.</td></tr> |
| 36 | <tr><td></td></tr><tr><td></td></tr> |
| 37 | <tr><td> |
| 38 | <input type="checkbox" name = "mo_firebase_auth_woocommerce_intigration" id = "mo_firebase_auth_woocommerce_intigration" value= "1" onclick="mo_firebase_auth_manageWCDiv();" disabled> |
| 39 | <img src="<?php echo dirname(plugin_dir_url( __FILE__ ));?>/../images/woocommerce-circle.png" width="50px"> WooCommerce |
| 40 | </td></tr><tr><td> |
| 41 | <input type="checkbox" name = "mo_firebase_auth_buddypress_intigration"value="1" disabled> |
| 42 | <img src="<?php echo dirname(plugin_dir_url( __FILE__ ));?>/../images/buddypress.png" width="50px"> BuddyPress |
| 43 | </td></tr> |
| 44 | </table> |
| 45 | <input type="submit" style="text-align:center; font-size: 14px; font-weight: 400; margin-top: 10px;" class="btn btn-primary" name="integration_settings" value=" Save Settings" id = "mo_auth_integration_save_settings_button" disabled><br> |
| 46 | </form> |
| 47 | </div> |
| 48 | </div> |
| 49 | </div> |
| 50 | <div class="row"> |
| 51 | <div class="col-md-12"> |
| 52 | <div class="mo_firebase_auth_card" style="width:100%"> |
| 53 | <form name="integration_form" id="mo_firebase_auth_integration" method="post" style="margin-bottom: 10px;"> |
| 54 | |
| 55 | <input type="hidden" name="option" value="mo_firebase_auth_integration"> |
| 56 | <div style="display: inline-block;"><h3 style="margin: 10px 0;">Firebase Authentication methods</h3></div> <small style="color: #FF0000"> <a href="admin.php?page=mo_firebase_authentication&tab=licensing_plans">[ENTERPRISE]</a></small> |
| 57 | <table class="mo_settings_table"><tr><td> |
| 58 | <p>Select Firebase Social login methods to Login into your site. </p></td></tr> |
| 59 | <!-- <input type="radio" id="emailPassword" value="emailPassword" disabled> |
| 60 | <label for="male">Email and Password</label><br> --> |
| 61 | <tr><td> |
| 62 | <input type="checkbox" id="google" value="google" disabled> |
| 63 | <label for="female">Google</label><br></td></tr> |
| 64 | <tr><td> |
| 65 | <input type="checkbox" id="facebook" value="facebook" disabled> |
| 66 | <label for="other">Facebook</label><br> |
| 67 | </td></tr> |
| 68 | <tr><td> |
| 69 | <input type="checkbox" id="github" value="github" disabled> |
| 70 | <label for="other">GitHub</label><br> |
| 71 | </td></tr> |
| 72 | <tr><td><input type="checkbox" id="twitter" value="twitter" disabled> |
| 73 | <label for="other">Twitter</label><br> |
| 74 | </td></tr> |
| 75 | <tr><td> |
| 76 | <input type="checkbox" id="microsoft" value="microsoft" disabled> |
| 77 | <label for="other">Microsoft</label><br></td></tr> |
| 78 | <tr><td> |
| 79 | <input type="checkbox" id="yahoo" value="yahoo" disabled> |
| 80 | <label for="other">Yahoo</label><br> |
| 81 | </td></tr> |
| 82 | <tr><td> |
| 83 | <input type="checkbox" id="apple" value="apple" disabled> |
| 84 | <label for="other">Apple</label><br> |
| 85 | </td></tr> |
| 86 | <tr><td> </td></tr> |
| 87 | <tr><td> |
| 88 | <input type="checkbox" id="show_on_login_page" value="1" disabled> |
| 89 | <label for="other">Show Login button on WP login page</label><br> |
| 90 | </td></tr> |
| 91 | </table> |
| 92 | <br> |
| 93 | <input type="submit" style="text-align:center; font-size: 14px; font-weight: 400;"class="btn btn-primary" name="authentication_settings" value=" Save Settings" id = "mo_auth_authentication_save_settings_button" disabled><br> |
| 94 | </form> |
| 95 | </div> |
| 96 | </div> |
| 97 | </div> |
| 98 | <div class="row"> |
| 99 | <div class="col-md-12"> |
| 100 | <div class="mo_firebase_auth_card" style="width:100%"> |
| 101 | <div style="display: inline-block;"><h3 style="margin: 10px 0;">Phone Authentication method support</h3></div> <small style="color: #FF0000"> <a href="admin.php?page=mo_firebase_authentication&tab=licensing_plans">[ENTERPRISE]</a></small> |
| 102 | <p> |
| 103 | Using the Firebase Phone authentication method you can send One Time Passcodes for Phone Verification.<br>[For the Phone Authentication method (OTP verification), additional cost required to customize the login flow according to your forms and requirements] |
| 104 | </p> |
| 105 | </div> |
| 106 | </div> |
| 107 | </div> |
| 108 | <?php |
| 109 | } |
| 110 | } |