No Description

settings.php 3.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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
  22. for="consumer_key"><?php _e('API Key', 'nextend-facebook-connect'); ?>
  23. - <em>(<?php _e('Required', 'nextend-facebook-connect'); ?>)</em></label></th>
  24. <td>
  25. <input name="consumer_key" type="text" id="consumer_key"
  26. value="<?php echo esc_attr($settings->get('consumer_key')); ?>" class="regular-text">
  27. <p class="description"
  28. id="tagline-consumer_key"><?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'), 'API secret key', $this->getUrl()); ?></p>
  29. </td>
  30. </tr>
  31. <tr>
  32. <th scope="row"><label
  33. for="consumer_secret"><?php _e('API secret key', 'nextend-facebook-connect'); ?></label>
  34. </th>
  35. <td><input name="consumer_secret" type="text" id="consumer_secret"
  36. value="<?php echo esc_attr($settings->get('consumer_secret')); ?>" class="regular-text"
  37. style="width:40em;">
  38. </td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. <p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary"
  43. value="<?php _e('Save Changes'); ?>"></p>
  44. <?php
  45. $this->renderOtherSettings();
  46. ?>
  47. <table class="form-table">
  48. <tbody>
  49. <tr>
  50. <th scope="row"><?php _e('Profile image size', 'nextend-facebook-connect'); ?></th>
  51. <td>
  52. <fieldset>
  53. <label><input type="radio" name="profile_image_size"
  54. value="mini" <?php if ($settings->get('profile_image_size') == 'mini') : ?> checked="checked" <?php endif; ?>>
  55. <span>24x24</span></label><br>
  56. <label><input type="radio" name="profile_image_size"
  57. value="normal" <?php if ($settings->get('profile_image_size') == 'normal') : ?> checked="checked" <?php endif; ?>>
  58. <span>48x48</span></label><br>
  59. <label><input type="radio" name="profile_image_size"
  60. value="bigger" <?php if ($settings->get('profile_image_size') == 'bigger') : ?> checked="checked" <?php endif; ?>>
  61. <span>73x73</span></label><br>
  62. <label><input type="radio" name="profile_image_size"
  63. value="original" <?php if ($settings->get('profile_image_size') == 'original') : ?> checked="checked" <?php endif; ?>>
  64. <span><?php _e('Original', 'nextend-facebook-connect'); ?></span></label><br>
  65. </fieldset>
  66. </td>
  67. </tr>
  68. </tbody>
  69. </table>
  70. <?php
  71. $this->renderProSettings();
  72. ?>
  73. </form>
  74. </div>