class-mo-firebase-authentication-faq.php
6 years ago
class-mo-firebase-authentication-support.php
6 years ago
class-mo-firebase-authentication-support.php
81 lines
| 1 | <?php |
| 2 | |
| 3 | class Mo_Firebase_Authentication_Admin_Support { |
| 4 | |
| 5 | public static function mo_firebase_authentication_support(){ |
| 6 | ?> |
| 7 | <!-- <div id="mo_api_authentication_support_layout" class="mo_api_authentication_support_layout"> |
| 8 | <div> |
| 9 | <h3>Contact Us</h3> |
| 10 | <p>Need any help? Couldn't find an answer in <a href="https://faq.miniorange.com">FAQ</a>?<br>Just send us a query so we can help you.</p> |
| 11 | <form method="post" action=""> |
| 12 | <input type="hidden" name="option" value="mo_api_authentication_contact_us_query_option" /> |
| 13 | <?php wp_nonce_field('mo_api_authentication_contact_us_query_form','mo_api_authentication_contact_us_query_form_fields'); ?> |
| 14 | <table class="mo_api_authentication_settings_table"> |
| 15 | <tr> |
| 16 | <td><input type="email" class="mo_table_textbox" style="width:90%" required name="mo_api_authentication_contact_us_email" placeholder="Enter email here" |
| 17 | value="<?php echo get_option('mo_api_authentication_admin_email');?>"></td> |
| 18 | </tr> |
| 19 | <tr> |
| 20 | <td><input type="tel" id="contact_us_phone" style="width:90%" pattern="[\+]\d{11,14}|[\+]\d{1,4}[\s]\d{9,10}" placeholder="Enter phone here" class="mo_table_textbox" name="mo_api_authentication_contact_us_phone" value="<?php echo get_option('mo_api_authentication_admin_phone');?>"></td> |
| 21 | </tr> |
| 22 | <tr> |
| 23 | <td><textarea class="mo_table_textbox" style="width:90%" placeholder="Enter your query here" required name="mo_api_authentication_contact_us_query" rows="4" style="resize: vertical;"></textarea></td> |
| 24 | </tr> |
| 25 | <tr> |
| 26 | <td><small style="color:#666"><input type="checkbox" name="mo_api_authentication_send_plugin_config" id="mo_api_authentication_send_plugin_config" checked> Include Plugin Configuration</small></td> |
| 27 | </tr> |
| 28 | </table> |
| 29 | <div style="text-align:center;"> |
| 30 | <input type="submit" name="submit" style="margin:15px; width:100px;" class="button button-primary button-large" /> |
| 31 | </div> |
| 32 | <p>If you want custom features in the plugin, just drop an email at <a href="mailto:info@xecurify.com">info@xecurify.com</a>.</p> |
| 33 | </form> |
| 34 | </div> |
| 35 | </div> |
| 36 | <script> |
| 37 | jQuery("#contact_us_phone").intlTelInput(); |
| 38 | // function mo_api_authentication_valid_query(f) { |
| 39 | // !(/^[a-zA-Z?,.\(\)\/@ 0-9]*$/).test(f.value) ? f.value = f.value.replace( |
| 40 | // /[^a-zA-Z?,.\(\)\/@ 0-9]/, '') : null; |
| 41 | // } |
| 42 | </script> --> |
| 43 | |
| 44 | <div class="col-md-12"> |
| 45 | <div class="mo_firebase_auth_card" style="width:90%" > |
| 46 | <h4 style="margin-bottom:30px">Contact us</h4> |
| 47 | <p class="mo_firebase_auth_contact_us_p"><b>Need any help?<br>Just send us a query so we can help you.</b></p><br> |
| 48 | <form action="" method="POST"> |
| 49 | <?php wp_nonce_field('mo_firebase_auth_contact_us_form','mo_firebase_auth_contact_us_field'); ?> |
| 50 | <input type="hidden" name="option" value="mo_firebase_auth_contact_us"> |
| 51 | <div class="form-group"> |
| 52 | <input style="width:90%;" type="email" placeholder="Enter email here" class="form-control" name="mo_firebase_auth_contact_us_email" id="mo_firebase_auth_contact_us_email" required> |
| 53 | </div> |
| 54 | <div class="form-group"> |
| 55 | <input style="width:90%;" type="tel" id="mo_firebase_auth_contact_us_phone" pattern="[\+]\d{11,14}|[\+]\d{1,4}[\s]\d{9,10}" placeholder="Enter phone here" class="form-control" name="mo_firebase_auth_contact_us_phone"> |
| 56 | </div> |
| 57 | <div class="form-group"> |
| 58 | <textarea class="form-control" onkeypress="mo_firebase_auth_contact_us_valid_query(this)" onkeyup="mo_firebase_auth_contact_us_valid_query(this)" onblur="mo_firebase_auth_contact_us_valid_query(this)" name="mo_firebase_auth_contact_us_query" placeholder="Enter query here" rows="5" id="mo_firebase_auth_contact_us_query" required></textarea> |
| 59 | </div> |
| 60 | <input type="submit" class="btn btn-primary" style="width:130px;height:40px" value="Submit"> |
| 61 | </form> |
| 62 | <br> |
| 63 | <p class="mo_firebase_auth_contact_us_p"><b>If you want custom features in the plugin, just drop an email at<br><a href="mailto:info@xecurify.com">info@xecurify.com</a></b></p> |
| 64 | </div> |
| 65 | </div> |
| 66 | </div> |
| 67 | </div> |
| 68 | |
| 69 | <script> |
| 70 | jQuery("#mo_firebase_auth_contact_us_phone").intlTelInput(); |
| 71 | function mo_firebase_auth_contact_us_valid_query(f) { |
| 72 | !(/^[a-zA-Z?,.\(\)\/@ 0-9]*$/).test(f.value) ? f.value = f.value.replace( |
| 73 | /[^a-zA-Z?,.\(\)\/@ 0-9]/, '') : null; |
| 74 | } |
| 75 | |
| 76 | </script> |
| 77 | <?php |
| 78 | } |
| 79 | |
| 80 | |
| 81 | } |