Sin descripción

settings.php 3.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. defined('ABSPATH') || die();
  3. /** @var $this NextendSocialProviderAdmin */
  4. $provider = $this->getProvider();
  5. $settings = $provider->settings;
  6. ?>
  7. <div class="nsl-admin-sub-content">
  8. <?php
  9. $this->renderSettingsHeader();
  10. ?>
  11. <form method="post" action="<?php echo admin_url('admin-post.php'); ?>" novalidate="novalidate">
  12. <?php wp_nonce_field('nextend-social-login'); ?>
  13. <input type="hidden" name="action" value="nextend-social-login"/>
  14. <input type="hidden" name="view" value="provider-<?php echo $provider->getId(); ?>"/>
  15. <input type="hidden" name="subview" value="settings"/>
  16. <input type="hidden" name="settings_saved" value="1"/>
  17. <input type="hidden" name="tested" id="tested" value="<?php echo esc_attr($settings->get('tested')); ?>"/>
  18. <table class="form-table">
  19. <tbody>
  20. <tr>
  21. <th scope="row"><label for="client_id"><?php _e('Client ID', 'nextend-facebook-connect'); ?>
  22. - <em>(<?php _e('Required', 'nextend-facebook-connect'); ?>)</em></label>
  23. </th>
  24. <td>
  25. <input name="client_id" type="text" id="client_id"
  26. value="<?php echo esc_attr($settings->get('client_id')); ?>" class="regular-text"
  27. style="width:40em;">
  28. <p class="description"
  29. id="tagline-client_id"><?php printf(__('If you are not sure what is your %1$s, please head over to <a href="%2$s">Getting Started</a>', 'nextend-facebook-connect'), 'Client ID', $this->getUrl()); ?></p>
  30. </td>
  31. </tr>
  32. <tr>
  33. <th scope="row"><label
  34. for="client_secret"><?php _e('Client Secret', 'nextend-facebook-connect'); ?>
  35. - <em>(<?php _e('Required', 'nextend-facebook-connect'); ?>)</em></label></th>
  36. <td><input name="client_secret" type="text" id="client_secret"
  37. value="<?php echo esc_attr($settings->get('client_secret')); ?>" class="regular-text">
  38. </td>
  39. </tr>
  40. <tr>
  41. <th scope="row"><?php _e('Select account on each login', 'nextend-facebook-connect'); ?></th>
  42. <td>
  43. <label for="select_account">
  44. <input type="hidden" name="select_account" value="0">
  45. <input type="checkbox" name="select_account" id="select_account"
  46. value="1" <?php if ($settings->get('select_account') == 1) : ?> checked="checked" <?php endif; ?>>
  47. <?php _e('Enabled', 'nextend-facebook-connect'); ?>
  48. </label>
  49. <p class="description"
  50. id="tagline-select_account"><?php _e('Disable, when you don\'t want to see the account select prompt on each login.', 'nextend-facebook-connect'); ?></p>
  51. </td>
  52. </tr>
  53. </tbody>
  54. </table>
  55. <p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary"
  56. value="<?php _e('Save Changes'); ?>"></p>
  57. <?php
  58. $this->renderOtherSettings();
  59. $this->renderProSettings();
  60. ?>
  61. </form>
  62. </div>