firebase-authentication
/
admin
/
partials
/
config
/
class-mo-firebase-authentication-admin-advsettings.php
class-mo-firebase-authentication-admin-advsettings.php
3 days ago
class-mo-firebase-authentication-admin-config.php
3 days ago
class-mo-firebase-authentication-admin-licensing-plans.php
3 days ago
class-mo-firebase-authentication-admin-loginsettings.php
3 days ago
class-mo-firebase-authentication-admin-advsettings.php
126 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Firebase Authentication plugin |
| 4 | * |
| 5 | * @package firebase-authentication |
| 6 | * @author miniOrange <info@miniorange.com> |
| 7 | */ |
| 8 | |
| 9 | /** |
| 10 | * Undocumented class |
| 11 | */ |
| 12 | class Mo_Firebase_Authentication_Admin_AdvSettings { |
| 13 | /** |
| 14 | * Undocumented function |
| 15 | * |
| 16 | * @return void |
| 17 | */ |
| 18 | public static function mo_firebase_authentication_advsettings() { |
| 19 | ?> |
| 20 | <div class="row"> |
| 21 | <div class="col-md-12"> |
| 22 | <div class="mo_firebase_auth_card" style="width:100%"> |
| 23 | <form name="integration_form" id="mo_firebase_auth_integration" method="post"> |
| 24 | <input type="hidden" name="option" value="mo_firebase_auth_integration"> |
| 25 | <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> |
| 26 | <div style="display:inline-block; margin-top: 10px;"><label class="mo_firebase_auth_switch"> |
| 27 | <input value="1" name="mo_enable_firebase_auto_register" type="checkbox" id="mo_enable_firebase_auto_register" disabled> |
| 28 | <span class="mo_firebase_auth_slider round"></span> |
| 29 | <input type="hidden" name="option" value=""> |
| 30 | </label> |
| 31 | <strong style="font-weight: 600; vertical-align: top; ">Auto register users into Firebase</strong></div> |
| 32 | <br> |
| 33 | <p>Enabling this option will create a new user in the Firebase project with an email address and password when an end-user registers into the WordPress site via Woocommerce/BuddyPress registration form.</p> |
| 34 | <input type="checkbox" disabled id="mo_firebase_sendemail_verification" name="mo_firebase_sendemail_verification" value="1"> |
| 35 | <label for="mo_firebase_sendemail_verification" style="font-size: 15px">Send verification email after registration</label><br> |
| 36 | <input type="checkbox" disabled id="mo_firebase_map_display_name" name="mo_firebase_map_display_name" value="1"> |
| 37 | <label for="mo_firebase_map_display_name" style="font-size: 15px">Map WordPress username to firebase display name</label><br> |
| 38 | <input type="checkbox" disabled id="mo_firebase_hide_password_field" name="mo_firebase_hide_password_field" value="1"> |
| 39 | <label for="mo_firebase_hide_password_field" style="font-size: 15px">Hide change password field in WooCommerce and WordPress user admin dashboard </label><br> |
| 40 | <input type="checkbox" disabled id="mo_firebase_sync_existing_user" name="mo_firebase_sync_existing_user" value="1"> |
| 41 | <label for="mo_firebase_sync_existing_user" style="font-size: 15px">Sync existing user</label> |
| 42 | <div class="mo-firebase-auth-tooltip"><i class="fa fa-info-circle" aria-hidden="true"></i><div class="mo-firebase-auth-tooltip-text mo-tt-right">Whenever non-Firebase users log into your site, this checkbox will synchronize the user in Firebase.</div> </div> |
| 43 | <br><br> |
| 44 | </form> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |
| 48 | <div class="row"> |
| 49 | <div class="col-md-12"> |
| 50 | <div class="mo_firebase_auth_card" style="width:100%"> |
| 51 | <form name="integration_form" id="mo_firebase_auth_integration" method="post" style="margin-bottom: 10px;"> |
| 52 | <input type="hidden" name="option" value="mo_firebase_auth_integration" style="margin-top: 0px; margin-bottom: 0px;"> |
| 53 | <div style="display: inline-block;"><h3 style="margin: 15px 0;">Login & Registration Form Integration</h3></div> <small style="color: #FF0000"><a href="admin.php?page=mo_firebase_authentication&tab=licensing_plans">[PREMIUM]</a></small> |
| 54 | <span style="float: right; font-size: 14px; margin-top: 10px;"><a href="https://plugins.miniorange.com/firebase-woocommerce-integration" target="_blank" rel="noopener" class="mo_firebase_setup_guide_style" style="text-decoration: none;"> Know more</a></span> |
| 55 | <table class="mo_settings_table" style="width: 95%;"> |
| 56 | <tr><td>Select below if you want to allow users to login using firebase credentials with WooCommerce or BuddyPress.</td></tr> |
| 57 | <tr><td></td></tr><tr><td></td></tr> |
| 58 | <tr><td> |
| 59 | <input type="checkbox" name = "mo_firebase_auth_woocommerce_intigration" id = "mo_firebase_auth_woocommerce_intigration" value= "1" onclick="mo_firebase_auth_manageWCDiv();" disabled> |
| 60 | <img src="<?php echo esc_url( MO_FIREBASE_AUTHENTICATION_URL . 'admin/images/woocommerce-circle.png' ); ?>" width="50px"> WooCommerce |
| 61 | </td></tr><tr><td> |
| 62 | <input type="checkbox" name = "mo_firebase_auth_buddypress_intigration"value="1" disabled> |
| 63 | <img src="<?php echo esc_url( MO_FIREBASE_AUTHENTICATION_URL . 'admin/images/buddypress.png' ); ?>" width="50px"> BuddyPress |
| 64 | </td></tr> |
| 65 | </table> |
| 66 | <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> |
| 67 | </form> |
| 68 | </div> |
| 69 | </div> |
| 70 | </div> |
| 71 | <div class="row"> |
| 72 | <div class="col-md-12"> |
| 73 | <div class="mo_firebase_auth_card" style="width:100%"> |
| 74 | <form name="integration_form" id="mo_firebase_auth_integration" method="post" style="margin-bottom: 10px;"> |
| 75 | <input type="hidden" name="option" value="mo_firebase_auth_integration"> |
| 76 | <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> |
| 77 | <span style="float: right; font-size: 14px; margin-top: 10px;"><a href="https://plugins.miniorange.com/firebase-social-login-integration-for-wordpress" target="_blank" rel="noopener" class="mo_firebase_setup_guide_style" style="text-decoration: none;"> Know more</a></span> |
| 78 | <table class="mo_settings_table"><tr><td> |
| 79 | <p>Select Firebase Social login methods to Login into your site. </p></td></tr> |
| 80 | <!-- <input type="radio" id="emailPassword" value="emailPassword" disabled> |
| 81 | <label for="male">Email and Password</label><br> --> |
| 82 | <tr><td> |
| 83 | <input type="checkbox" id="google" value="google" disabled> |
| 84 | <label for="female">Google</label><br></td></tr> |
| 85 | <tr><td> |
| 86 | <input type="checkbox" id="facebook" value="facebook" disabled> |
| 87 | <label for="other">Facebook</label><br> |
| 88 | </td></tr> |
| 89 | <tr><td> |
| 90 | <input type="checkbox" id="github" value="github" disabled> |
| 91 | <label for="other">GitHub</label><br> |
| 92 | </td></tr> |
| 93 | <tr><td><input type="checkbox" id="twitter" value="twitter" disabled> |
| 94 | <label for="other">Twitter</label><br> |
| 95 | </td></tr> |
| 96 | <tr><td> |
| 97 | <input type="checkbox" id="microsoft" value="microsoft" disabled> |
| 98 | <label for="other">Microsoft</label><br></td></tr> |
| 99 | <tr><td> |
| 100 | <input type="checkbox" id="yahoo" value="yahoo" disabled> |
| 101 | <label for="other">Yahoo</label><br> |
| 102 | </td></tr> |
| 103 | <tr><td> |
| 104 | <input type="checkbox" id="apple" value="apple" disabled> |
| 105 | <label for="other">Apple</label><br> |
| 106 | </td></tr> |
| 107 | <tr><td> </td></tr> |
| 108 | <tr><td> |
| 109 | <input type="checkbox" id="show_on_login_page" value="1" disabled> |
| 110 | <label for="other">Show Login button on WP login page</label><br> |
| 111 | </td></tr> |
| 112 | <tr><td> |
| 113 | <input type="checkbox" id="show_on_login_page" value="1" disabled> |
| 114 | <label for="other">Show Login button on WooCommerce My Account Page</label><br> |
| 115 | </td></tr> |
| 116 | </table> |
| 117 | <br> |
| 118 | <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> |
| 119 | </form> |
| 120 | </div> |
| 121 | </div> |
| 122 | </div> |
| 123 | <?php |
| 124 | } |
| 125 | } |
| 126 |