Nessuna descrizione

login-form-pro.php 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?php
  2. defined('ABSPATH') || die();
  3. $isPRO = NextendSocialLoginAdmin::isPro();
  4. if (!$isPRO):
  5. ?>
  6. <p class="submit">
  7. <input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e('Save Changes'); ?>">
  8. </p>
  9. <hr/>
  10. <h1><?php _e('PRO settings', 'nextend-facebook-connect'); ?></h1>
  11. <?php
  12. endif;
  13. $attr = '';
  14. if (!$isPRO) {
  15. $attr = ' disabled ';
  16. }
  17. $settings = NextendSocialLogin::$settings;
  18. NextendSocialLoginAdmin::showProBox();
  19. ?>
  20. <table class="form-table">
  21. <tbody>
  22. <tr>
  23. <th scope="row"><?php _e('Login form button style', 'nextend-facebook-connect'); ?></th>
  24. <td>
  25. <fieldset>
  26. <label>
  27. <input type="radio" name="login_form_button_style"
  28. value="default" <?php if ($settings->get('login_form_button_style') == 'default') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  29. <span><?php _e('Default', 'nextend-facebook-connect'); ?></span><br/>
  30. <img src="<?php echo plugins_url('images/buttons/default.png', NSL_ADMIN_PATH) ?>"/>
  31. </label>
  32. <label>
  33. <input type="radio" name="login_form_button_style"
  34. value="fullwidth" <?php if ($settings->get('login_form_button_style') == 'fullwidth') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  35. <span><?php _e('Fullwidth', 'nextend-facebook-connect'); ?></span><br/>
  36. <img src="<?php echo plugins_url('images/buttons/fullwidth.png', NSL_ADMIN_PATH) ?>"/>
  37. </label>
  38. <label>
  39. <input type="radio" name="login_form_button_style"
  40. value="icon" <?php if ($settings->get('login_form_button_style') == 'icon') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  41. <span><?php _e('Icon', 'nextend-facebook-connect'); ?></span><br/>
  42. <img src="<?php echo plugins_url('images/buttons/icon.png', NSL_ADMIN_PATH) ?>"/>
  43. </label><br>
  44. </fieldset>
  45. </td>
  46. </tr>
  47. <tr>
  48. <th scope="row"><?php _e('Login layout', 'nextend-facebook-connect'); ?></th>
  49. <td>
  50. <fieldset>
  51. <label>
  52. <input type="radio" name="login_form_layout"
  53. value="below" <?php if ($settings->get('login_form_layout') == 'below') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  54. <span><?php _e('Below', 'nextend-facebook-connect'); ?></span><br/>
  55. <img src="<?php echo plugins_url('images/layouts/below.png', NSL_ADMIN_PATH) ?>"/>
  56. </label>
  57. <label>
  58. <input type="radio" name="login_form_layout"
  59. value="below-separator" <?php if ($settings->get('login_form_layout') == 'below-separator') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  60. <span><?php _e('Below with separator', 'nextend-facebook-connect'); ?></span><br/>
  61. <img src="<?php echo plugins_url('images/layouts/below-separator.png', NSL_ADMIN_PATH) ?>"/>
  62. </label>
  63. <label>
  64. <input type="radio" name="login_form_layout"
  65. value="below-floating" <?php if ($settings->get('login_form_layout') == 'below-floating') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  66. <span><?php _e('Below and floating', 'nextend-facebook-connect'); ?></span><br/>
  67. <img src="<?php echo plugins_url('images/layouts/below-floating.png', NSL_ADMIN_PATH) ?>"/>
  68. </label>
  69. <label>
  70. <input type="radio" name="login_form_layout"
  71. value="above" <?php if ($settings->get('login_form_layout') == 'above') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  72. <span><?php _e('Above', 'nextend-facebook-connect'); ?></span><br/>
  73. <img src="<?php echo plugins_url('images/layouts/above.png', NSL_ADMIN_PATH) ?>"/>
  74. </label>
  75. <label>
  76. <input type="radio" name="login_form_layout"
  77. value="above-separator" <?php if ($settings->get('login_form_layout') == 'above-separator') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  78. <span><?php _e('Above with separator', 'nextend-facebook-connect'); ?></span><br/>
  79. <img src="<?php echo plugins_url('images/layouts/above-separator.png', NSL_ADMIN_PATH) ?>"/>
  80. </label><br>
  81. </fieldset>
  82. </td>
  83. </tr>
  84. <tr>
  85. <th scope="row"><?php _e('Embedded Login form button style', 'nextend-facebook-connect'); ?></th>
  86. <td>
  87. <fieldset>
  88. <label>
  89. <input type="radio" name="embedded_login_form_button_style"
  90. value="default" <?php if ($settings->get('embedded_login_form_button_style') == 'default') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  91. <span><?php _e('Default', 'nextend-facebook-connect'); ?></span><br/>
  92. <img src="<?php echo plugins_url('images/buttons/default.png', NSL_ADMIN_PATH) ?>"/>
  93. </label>
  94. <label>
  95. <input type="radio" name="embedded_login_form_button_style"
  96. value="fullwidth" <?php if ($settings->get('embedded_login_form_button_style') == 'fullwidth') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  97. <span><?php _e('Fullwidth', 'nextend-facebook-connect'); ?></span><br/>
  98. <img src="<?php echo plugins_url('images/buttons/fullwidth.png', NSL_ADMIN_PATH) ?>"/>
  99. </label>
  100. <label>
  101. <input type="radio" name="embedded_login_form_button_style"
  102. value="icon" <?php if ($settings->get('embedded_login_form_button_style') == 'icon') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  103. <span><?php _e('Icon', 'nextend-facebook-connect'); ?></span><br/>
  104. <img src="<?php echo plugins_url('images/buttons/icon.png', NSL_ADMIN_PATH) ?>"/>
  105. </label><br>
  106. </fieldset>
  107. </td>
  108. </tr>
  109. <tr>
  110. <th scope="row"><?php _e('Embedded Login layout', 'nextend-facebook-connect'); ?></th>
  111. <td>
  112. <fieldset>
  113. <label>
  114. <input type="radio" name="embedded_login_form_layout"
  115. value="below" <?php if ($settings->get('embedded_login_form_layout') == 'below') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  116. <span><?php _e('Below', 'nextend-facebook-connect'); ?></span><br/>
  117. <img src="<?php echo plugins_url('images/layouts/below.png', NSL_ADMIN_PATH) ?>"/>
  118. </label>
  119. <label>
  120. <input type="radio" name="embedded_login_form_layout"
  121. value="below-separator" <?php if ($settings->get('embedded_login_form_layout') == 'below-separator') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  122. <span><?php _e('Below with separator', 'nextend-facebook-connect'); ?></span><br/>
  123. <img src="<?php echo plugins_url('images/layouts/below-separator.png', NSL_ADMIN_PATH) ?>"/>
  124. </label>
  125. <label>
  126. <input type="radio" name="embedded_login_form_layout"
  127. value="above" <?php if ($settings->get('embedded_login_form_layout') == 'above') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  128. <span><?php _e('Above', 'nextend-facebook-connect'); ?></span><br/>
  129. <img src="<?php echo plugins_url('images/layouts/above.png', NSL_ADMIN_PATH) ?>"/>
  130. </label>
  131. <label>
  132. <input type="radio" name="embedded_login_form_layout"
  133. value="above-separator" <?php if ($settings->get('embedded_login_form_layout') == 'above-separator') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  134. <span><?php _e('Above with separator', 'nextend-facebook-connect'); ?></span><br/>
  135. <img src="<?php echo plugins_url('images/layouts/above-separator.png', NSL_ADMIN_PATH) ?>"/>
  136. </label><br>
  137. </fieldset>
  138. </td>
  139. </tr>
  140. <tr>
  141. <th scope="row"><?php _e('Embedded login form button alignment', 'nextend-facebook-connect'); ?></th>
  142. <td>
  143. <fieldset>
  144. <label><input type="radio" name="embedded_login_form_button_align"
  145. value="left" <?php if ($settings->get('embedded_login_form_button_align') == 'left') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  146. <span><?php _e('Left', 'nextend-facebook-connect'); ?></span></label><br>
  147. <label><input type="radio" name="embedded_login_form_button_align"
  148. value="center" <?php if ($settings->get('embedded_login_form_button_align') == 'center') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  149. <span><?php _e('Center', 'nextend-facebook-connect'); ?></span></label><br>
  150. <label><input type="radio" name="embedded_login_form_button_align"
  151. value="right" <?php if ($settings->get('embedded_login_form_button_align') == 'right') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
  152. <span><?php _e('Right', 'nextend-facebook-connect'); ?></span></label><br>
  153. </fieldset>
  154. </td>
  155. </tr>
  156. </tbody>
  157. </table>
  158. <?php if ($isPRO): ?>
  159. <p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary"
  160. value="<?php _e('Save Changes'); ?>"></p>
  161. <?php endif; ?>