firebase-authentication
/
admin
/
partials
/
config
/
class-mo-firebase-authentication-licensing_plans.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-licensing_plans.php
93 lines
| 1 | <?php |
| 2 | |
| 3 | class Mo_Firebase_Authentication_Admin_Licensing_Plans { |
| 4 | |
| 5 | public static function mo_firebase_authentication_licensing_plans(){ |
| 6 | ?> |
| 7 | <!-- Important JSForms --> |
| 8 | <input type="hidden" value="<?php echo mo_firebase_authentication_is_customer_registered();?>" id="mo_customer_registered"> |
| 9 | <form style="display:none;" id="loginform" |
| 10 | action="<?php echo get_option( 'host_name' ) . '/moas/login'; ?>" |
| 11 | target="_blank" method="post"> |
| 12 | <input type="email" name="username" value="<?php echo get_option( 'mo_firebase_authentication_admin_email' ); ?>"/> |
| 13 | <input type="text" name="redirectUrl" |
| 14 | value="<?php echo get_option( 'host_name' ) . '/moas/initializepayment'; ?>"/> |
| 15 | <input type="text" name="requestOrigin" id="requestOrigin"/> |
| 16 | </form> |
| 17 | <form style="display:none;" id="viewlicensekeys" |
| 18 | action="<?php echo get_option( 'host_name' ) . '/moas/login'; ?>" |
| 19 | target="_blank" method="post"> |
| 20 | <input type="email" name="username" value="<?php echo get_option( 'mo_firebase_authentication_admin_email' ); ?>"/> |
| 21 | <input type="text" name="redirectUrl" |
| 22 | value="<?php echo get_option( 'host_name' ) . '/moas/viewlicensekeys'; ?>"/> |
| 23 | </form> |
| 24 | <!-- End Important JSForms --> |
| 25 | <div class="row"> |
| 26 | <div class="col-1 moct-align-center"> |
| 27 | </div> |
| 28 | <div class="col-5 moct-align-center"> |
| 29 | <div class="moc-licensing-plan card-body"> |
| 30 | <div class="moc-licensing-plan-header"> |
| 31 | <div class="moc-licensing-plan-name"><h2>Premium</h2></div> |
| 32 | </div><br> |
| 33 | <div class="moc-licensing-plan-price"><sup>$</sup>149<sup>*</sup></div> |
| 34 | <!-- <a class="btn btn-block btn-info text-uppercase moc-lp-buy-btn" href="mailto:info@xecurify.com" target="_blank">Contact Us</a> --> |
| 35 | <button class="btn btn-block btn-info text-uppercase moc-lp-buy-btn" onclick="upgradeform('wp_oauth_firebase_authentication_premium_plan')">Buy Now</button> |
| 36 | <br> |
| 37 | <div class="moc-licensing-plan-feature-list"> |
| 38 | <ul> |
| 39 | <li>✅ Allow login with Firebase and WordPress</li> |
| 40 | <li>✅ Advanced Attribute mapping</li> |
| 41 | <li>✅ Auto register users in Firebase as well as WordPress</li> |
| 42 | <li>✅ Login & Registeration Form Integration (WooCommerce, BuddyPress)</li> |
| 43 | <li>✅ Custom redirect URL after Login and Logout</li> |
| 44 | </ul> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |
| 48 | <div class="col-5 moct-align-center"> |
| 49 | <div class="moc-licensing-plan card-body"> |
| 50 | <div class="moc-licensing-plan-header"> |
| 51 | <div class="moc-licensing-plan-name"><h2>Enterprise</h2></div> |
| 52 | </div><br> |
| 53 | <div class="moc-licensing-plan-price"><sup>$</sup>249<sup>*</sup></div> |
| 54 | <!-- <a class="btn btn-block btn-purple text-uppercase moc-lp-buy-btn" href="mailto:info@xecurify.com" target="_blank">Contact Us</a> --> |
| 55 | <button class="btn btn-block btn-purple text-uppercase moc-lp-buy-btn" onclick="upgradeform('wp_oauth_firebase_authentication_enterprise_plan')">Buy Now</button> |
| 56 | <br> |
| 57 | <div class="moc-licensing-plan-feature-list"> |
| 58 | <ul> |
| 59 | <li>✅ Allow login with Firebase and WordPress</li> |
| 60 | <li>✅ Advanced Attribute mapping</li> |
| 61 | <li>✅ Auto register users in Firebase as well as WordPress</li> |
| 62 | <li>✅ Login & Registeration Form Integration (WooCommerce, BuddyPress)</li> |
| 63 | <li>✅ Custom redirect URL after Login and Logout</li> |
| 64 | <li>✅ Shortcode to add Firebase Login Form</li> |
| 65 | <li>✅ Firebase Authentication methods <br>Google, Facebook, Github, Twitter, Microsoft, Yahoo, Phone</li> |
| 66 | <li>✅ WP hooks to read Firebase token, login event and extend plugin functionality</li> |
| 67 | </ul> |
| 68 | </div> |
| 69 | </div> |
| 70 | </div> |
| 71 | </div> |
| 72 | <!-- End Licensing Table --> |
| 73 | <a id="mobacktoaccountsetup" style="display:none;" href="<?php echo add_query_arg( array( 'tab' => 'account' ), htmlentities( $_SERVER['REQUEST_URI'] ) ); ?>">Back</a> |
| 74 | <!-- JSForms Controllers --> |
| 75 | <script> |
| 76 | function upgradeform(planType) { |
| 77 | if(planType === "") { |
| 78 | location.href = "https://wordpress.org/plugins/firebase-authentication/"; |
| 79 | return; |
| 80 | } else { |
| 81 | jQuery('#requestOrigin').val(planType); |
| 82 | if(jQuery('#mo_customer_registered').val()==1) |
| 83 | jQuery('#loginform').submit(); |
| 84 | else{ |
| 85 | location.href = jQuery('#mobacktoaccountsetup').attr('href'); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | } |
| 90 | </script> |
| 91 | <?php |
| 92 | } |
| 93 | } |