firebase-authentication
/
admin
/
partials
/
config
/
class-mo-firebase-authentication-loginsettings.php
class-mo-firebase-authentication-advsettings.php
4 years ago
class-mo-firebase-authentication-config.php
4 years ago
class-mo-firebase-authentication-hooks.php
4 years ago
class-mo-firebase-authentication-licensing_plans.php
4 years ago
class-mo-firebase-authentication-loginsettings.php
4 years ago
class-mo-firebase-authentication-loginsettings.php
64 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | class Mo_Firebase_Authentication_Admin_LoginSettings { |
| 5 | |
| 6 | public static function mo_firebase_authentication_loginsettings() { |
| 7 | ?> |
| 8 | <div class="row"> |
| 9 | <div class="col-md-12"> |
| 10 | <div class="mo_firebase_auth_card" style="width:100%"> |
| 11 | <div style="display: inline-block;"><h3 style="margin: 10px 0;">Sign in options </h3></div> <small style="color: #FF0000"><a href="admin.php?page=mo_firebase_authentication&tab=licensing_plans">[ENTERPRISE]</a></small><br> |
| 12 | <strong style="font-weight: 600; vertical-align: top; ">Option 1: Place different social login buttons on WordPress default Login Form</strong> |
| 13 | <ol> |
| 14 | <p>1. Go to the Advanced Settings tab.<br> |
| 15 | 2. Select <b>"Show Login button on WP login page"</b>.</p> |
| 16 | </ol> |
| 17 | <strong style="font-weight: 600; vertical-align: top; ">Option 2: Use a Shortcode for login</strong> |
| 18 | <ol> |
| 19 | <p>1. Place shortcode <b>[mo_firebase_auth_login]</b> in WordPress pages or posts where you want to give social login option to your users.<br> |
| 20 | 2. Place shortcode <b>[mo_firebase_auth_display_login_form]</b> to add Firebase Login form on WordPress pages.<br> |
| 21 | 3. Place shortcode <b>[mo_firebase_auth_display_registration_form]</b> to add Firebase Registration form on WordPress pages.</p> |
| 22 | </ol> |
| 23 | </div> |
| 24 | </div> |
| 25 | </div> |
| 26 | |
| 27 | <div class="row"> |
| 28 | <div class="col-md-12"> |
| 29 | <div class="mo_firebase_auth_card" style="width:100%"> |
| 30 | <div style="display: inline-block;"><h3 style="margin: 10px 0;">Advanced Sign in options</h3></div> <small style="color: #FF0000"><a href="admin.php?page=mo_firebase_authentication&tab=licensing_plans">[PREMIUM]</a></small><br> |
| 31 | <form name="f" method="post" action=""> |
| 32 | <?php wp_nonce_field('mo_firebase_auth_sign_in_option_form','mo_firebase_auth_sign_in_option_field'); ?> |
| 33 | <input type="hidden" name="option" value="mo_firebase_authentication_sign_in_option" /> |
| 34 | <div class="row"> |
| 35 | <div class="col-md-6"> |
| 36 | <p style="margin-bottom: 3px"><b>Custom redirect URL after login </b></p> |
| 37 | <p>(Keep blank in case you want users to redirect to page from where SSO originated)</p> |
| 38 | </div> |
| 39 | <div class="col-md-6"> |
| 40 | <input name="custom_after_login_url" value="" pattern="https?://.+" title="Include https://" placeholder="https://" style="width:80%; font-size: 14px;" type="url" disabled=""> |
| 41 | </div> |
| 42 | </div> |
| 43 | <div class="row"> |
| 44 | <div class="col-md-6"> |
| 45 | <p style="margin-bottom: 3px"><b>Custom redirect URL after logout </b></p> |
| 46 | </div> |
| 47 | <div class="col-md-6"> |
| 48 | <input name="custom_after_logout_url" value="" pattern="https?://.+" title="Include https://" placeholder="https://" style="width:80%; font-size: 14px;" type="url" disabled=""> |
| 49 | </div> |
| 50 | </div> |
| 51 | <br> |
| 52 | <div class="row"> |
| 53 | <div class="col-md-12"> |
| 54 | <input type="submit" style="text-align:center; font-size: 14px; font-weight: 400;" class="btn btn-primary" name="custom_login_settings" value=" Save Settings" id = "mo_firebase_auth_custom_login_url_save_settings_button" disabled><br> |
| 55 | </div> |
| 56 | </div> |
| 57 | <br> |
| 58 | </form> |
| 59 | </div> |
| 60 | </div> |
| 61 | </div> |
| 62 | <?php |
| 63 | } |
| 64 | } |