Nav apraksta

privacy.php 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <script type="text/javascript">
  2. (function ($) {
  3. window.NSLResetTerms = function () {
  4. var id = 'terms',
  5. content = <?php echo wp_json_encode(__('By clicking Register, you accept our <a href="#privacy_policy_url" target="_blank">Privacy Policy</a>', 'nextend-facebook-connect')); ?>;
  6. if ($('#wp-' + id + '-wrap').hasClass('html-active')) {
  7. $('#' + id).val(content);
  8. } else { // We are in tinyMCE mode
  9. var activeEditor = tinyMCE.get(id);
  10. if (activeEditor !== null) {
  11. activeEditor.setContent(content);
  12. }
  13. }
  14. return false;
  15. };
  16. $(document).ready(function () {
  17. $('#terms_show').on('change', function () {
  18. if ($(this).is(':checked')) {
  19. $('#nsl-terms').css('display', '');
  20. } else {
  21. $('#nsl-terms').css('display', 'none');
  22. }
  23. });
  24. });
  25. })(jQuery);
  26. </script>
  27. <table class="form-table">
  28. <tbody>
  29. <tr>
  30. <th scope="row"><?php _e('Terms and conditions', 'nextend-facebook-connect'); ?></th>
  31. <td>
  32. <fieldset>
  33. <label for="terms_show">
  34. <input type="hidden" name="terms_show" value="0">
  35. <input type="checkbox" name="terms_show" id="terms_show"
  36. value="1" <?php if ($settings->get('terms_show') == '1') : ?> checked="checked" <?php endif; ?>>
  37. <?php _e('Show', 'nextend-facebook-connect'); ?>
  38. </label>
  39. <div id="nsl-terms" <?php if ($settings->get('terms_show') != '1') : ?> style="display:none;" <?php endif; ?>>
  40. <?php
  41. wp_editor($settings->get('terms'), 'terms', array(
  42. 'textarea_rows' => 4,
  43. 'media_buttons' => false
  44. ));
  45. ?>
  46. <p class="description"><a href="#"
  47. onclick="return NSLResetTerms();"><?php _e('Reset to default', 'nextend-facebook-connect'); ?></a>
  48. </div>
  49. </fieldset>
  50. </td>
  51. </tr>
  52. <tr>
  53. <th scope="row"><?php _e('Store', 'nextend-facebook-connect'); ?></th>
  54. <td>
  55. <label for="store_name">
  56. <input type="hidden" name="store_name" value="0">
  57. <input type="checkbox" name="store_name" id="store_name"
  58. value="1" <?php if ($settings->get('store_name') == '1') : ?> checked="checked" <?php endif; ?>>
  59. <?php _e('First and last name', 'nextend-facebook-connect'); ?>
  60. </label>
  61. <p class="description"
  62. id="tagline-store_name"><?php _e('When not enabled, username will be randomly generated.', 'nextend-facebook-connect'); ?></p>
  63. </td>
  64. </tr>
  65. <tr>
  66. <th scope="row"></th>
  67. <td>
  68. <label for="store_email">
  69. <input type="hidden" name="store_email" value="0">
  70. <input type="checkbox" name="store_email" id="store_email"
  71. value="1" <?php if ($settings->get('store_email') == '1') : ?> checked="checked" <?php endif; ?>>
  72. <?php _e('Email', 'nextend-facebook-connect'); ?>
  73. </label>
  74. <p class="description"
  75. id="tagline-store_email"><?php _e('When not enabled, email will be empty.', 'nextend-facebook-connect'); ?></p>
  76. </td>
  77. </tr>
  78. <tr>
  79. <th scope="row"></th>
  80. <td>
  81. <label for="avatar_store">
  82. <input type="hidden" name="avatar_store" value="0">
  83. <input type="checkbox" name="avatar_store" id="avatar_store"
  84. value="1" <?php if ($settings->get('avatar_store') == '1') : ?> checked="checked" <?php endif; ?>>
  85. <?php _e('Avatar', 'nextend-facebook-connect'); ?>
  86. </label>
  87. </td>
  88. </tr>
  89. <tr>
  90. <th scope="row"></th>
  91. <td>
  92. <label for="store_access_token">
  93. <input type="hidden" name="store_access_token" value="0">
  94. <input type="checkbox" name="store_access_token" id="store_access_token"
  95. value="1" <?php if ($settings->get('store_access_token') == '1') : ?> checked="checked" <?php endif; ?>>
  96. <?php _e('Access token', 'nextend-facebook-connect'); ?>
  97. </label>
  98. </td>
  99. </tr>
  100. </tbody>
  101. </table>
  102. <p class="submit">
  103. <input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e('Save Changes'); ?>">
  104. </p>