Source Code Documentation


s2member-pro\includes\templates\forms\authnet-registration-form.php


  1. <?php
  2. if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
  3. exit("Do not access this file directly.");
  4. ?>
  5.  
  6. <form id="s2member-pro-authnet-registration-form" class="s2member-pro-authnet-form s2member-pro-authnet-registration-form" method="post" action="%%action%%">
  7.  
  8. <!-- Response Section ( this is auto-filled after form submission ). -->
  9. <div id="s2member-pro-authnet-registration-form-response-section" class="s2member-pro-authnet-form-section s2member-pro-authnet-registration-form-section s2member-pro-authnet-form-response-section s2member-pro-authnet-registration-form-response-section">
  10. <div id="s2member-pro-authnet-registration-form-response-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-registration-form-div s2member-pro-authnet-form-response-div s2member-pro-authnet-registration-form-response-div">
  11. %%response%%
  12. </div>
  13. <div style="clear:both;"></div>
  14. </div>
  15.  
  16. <!-- Registration Description ( this is the desc="" attribute from your Shortcode ). -->
  17. <div id="s2member-pro-authnet-registration-form-description-section" class="s2member-pro-authnet-form-section s2member-pro-authnet-registration-form-section s2member-pro-authnet-form-description-section s2member-pro-authnet-registration-form-description-section">
  18. <div id="s2member-pro-authnet-registration-form-description-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-registration-form-div s2member-pro-authnet-form-description-div s2member-pro-authnet-registration-form-description-div">
  19. %%description%%
  20. </div>
  21. <div style="clear:both;"></div>
  22. </div>
  23.  
  24. <!-- Registration Details ( Name, Email, Username, Password ). -->
  25. <!-- Name fields will be hidden automatically when/if your Registration/Profile Field options dictate this behavior. -->
  26. <div id="s2member-pro-authnet-registration-form-registration-section" class="s2member-pro-authnet-form-section s2member-pro-authnet-registration-form-section s2member-pro-authnet-form-registration-section s2member-pro-authnet-registration-form-registration-section">
  27. <div id="s2member-pro-authnet-registration-form-registration-section-title" class="s2member-pro-authnet-form-section-title s2member-pro-authnet-registration-form-section-title s2member-pro-authnet-form-registration-section-title s2member-pro-authnet-registration-form-registration-section-title">
  28. <?php echo _x ("Create Profile", "s2member-front", "s2member"); ?>
  29. </div>
  30. <div id="s2member-pro-authnet-registration-form-first-name-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-registration-form-div s2member-pro-authnet-form-first-name-div s2member-pro-authnet-registration-form-first-name-div">
  31. <label for="s2member-pro-authnet-registration-first-name" id="s2member-pro-authnet-registration-form-first-name-label" class="s2member-pro-authnet-form-first-name-label s2member-pro-authnet-registration-form-first-name-label">
  32. <span><?php echo _x ("First Name", "s2member-front", "s2member"); ?> *</span><br />
  33. <input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_authnet_registration[first_name]" id="s2member-pro-authnet-registration-first-name" class="s2member-pro-authnet-first-name s2member-pro-authnet-registration-first-name" value="%%first_name_value%%" tabindex="10" />
  34. </label>
  35. </div>
  36. <div id="s2member-pro-authnet-registration-form-last-name-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-registration-form-div s2member-pro-authnet-form-last-name-div s2member-pro-authnet-registration-form-last-name-div">
  37. <label for="s2member-pro-authnet-registration-last-name" id="s2member-pro-authnet-registration-form-last-name-label" class="s2member-pro-authnet-form-last-name-label s2member-pro-authnet-registration-form-last-name-label">
  38. <span><?php echo _x ("Last Name", "s2member-front", "s2member"); ?> *</span><br />
  39. <input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_authnet_registration[last_name]" id="s2member-pro-authnet-registration-last-name" class="s2member-pro-authnet-last-name s2member-pro-authnet-registration-last-name" value="%%last_name_value%%" tabindex="20" />
  40. </label>
  41. </div>
  42. <div id="s2member-pro-authnet-registration-form-email-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-registration-form-div s2member-pro-authnet-form-email-div s2member-pro-authnet-registration-form-email-div">
  43. <label for="s2member-pro-authnet-registration-email" id="s2member-pro-authnet-registration-form-email-label" class="s2member-pro-authnet-form-email-label s2member-pro-authnet-registration-form-email-label">
  44. <span><?php echo _x ("Email Address", "s2member-front", "s2member"); ?> *</span><br />
  45. <input type="text" aria-required="true" data-expected="email" maxlength="100" autocomplete="off" name="s2member_pro_authnet_registration[email]" id="s2member-pro-authnet-registration-email" class="s2member-pro-authnet-email s2member-pro-authnet-registration-email" value="%%email_value%%" tabindex="30" />
  46. </label>
  47. </div>
  48. <div id="s2member-pro-authnet-registration-form-username-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-registration-form-div s2member-pro-authnet-form-username-div s2member-pro-authnet-registration-form-username-div">
  49. <label for="s2member-pro-authnet-registration-username" id="s2member-pro-authnet-registration-form-username-label" class="s2member-pro-authnet-form-username-label s2member-pro-authnet-registration-form-username-label">
  50. <span><?php echo _x ("Username ( lowercase letters and/or numbers )", "s2member-front", "s2member"); ?> *</span><br />
  51. <input type="text" aria-required="true" maxlength="60" autocomplete="off" name="s2member_pro_authnet_registration[username]" id="s2member-pro-authnet-registration-username" class="s2member-pro-authnet-username s2member-pro-authnet-registration-username" value="%%username_value%%" tabindex="40" />
  52. </label>
  53. </div>
  54. <div id="s2member-pro-authnet-registration-form-password-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-registration-form-div s2member-pro-authnet-form-password-div s2member-pro-authnet-registration-form-password-div">
  55. <label for="s2member-pro-authnet-registration-password1" id="s2member-pro-authnet-registration-form-password-label" class="s2member-pro-authnet-form-password-label s2member-pro-authnet-registration-form-password-label">
  56. <span><?php echo _x ("Password ( type this twice please )", "s2member-front", "s2member"); ?> *</span><br />
  57. <input type="password" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_authnet_registration[password1]" id="s2member-pro-authnet-registration-password1" class="s2member-pro-authnet-password1 s2member-pro-authnet-registration-password1" value="%%password1_value%%" tabindex="50" />
  58. </label>
  59. <input type="password" maxlength="100" autocomplete="off" name="s2member_pro_authnet_registration[password2]" id="s2member-pro-authnet-registration-password2" class="s2member-pro-authnet-password2 s2member-pro-authnet-registration-password2" value="%%password2_value%%" tabindex="60" />
  60. <div id="s2member-pro-authnet-registration-form-password-strength" class="ws-plugin--s2member-password-strength s2member-pro-authnet-form-password-strength s2member-pro-authnet-registration-form-password-strength"><em><?php echo _x ("password strength indicator", "s2member-front", "s2member"); ?></em></div>
  61. </div>
  62. <div style="clear:both;"></div>
  63. </div>
  64.  
  65. <!-- Custom Fields ( Custom Registration/Profile Fields will appear here, when/if they've been configured ). -->
  66. %%custom_fields%%
  67.  
  68. <!-- Captcha ( A reCaptcha section, with a required security code will appear here; if captcha="1" ). -->
  69. %%captcha%%
  70.  
  71. <!-- Complete Registration ( this holds the submit button, and also some dynamic hidden input variables ). -->
  72. <div id="s2member-pro-authnet-registration-form-submission-section" class="s2member-pro-authnet-form-section s2member-pro-authnet-registration-form-section s2member-pro-authnet-form-submission-section s2member-pro-authnet-registration-form-submission-section">
  73. <div id="s2member-pro-authnet-registration-form-submission-section-title" class="s2member-pro-authnet-form-section-title s2member-pro-authnet-registration-form-section-title s2member-pro-authnet-form-submission-section-title s2member-pro-authnet-registration-form-submission-section-title">
  74. <?php echo _x ("Complete Registration", "s2member-front", "s2member"); ?>
  75. </div>
  76. %%opt_in%% <!-- s2Member will fill this when/if there are list servers integrated, and the Opt-In Box is turned on. -->
  77. <div id="s2member-pro-authnet-registration-form-submit-div" class="s2member-pro-authnet-form-div s2member-pro-authnet-registration-form-div s2member-pro-authnet-form-submit-div s2member-pro-authnet-registration-form-submit-div">
  78. %%hidden_inputs%% <!-- Auto-filled by the s2Member software. Do NOT remove this under any circumstance. -->
  79. <input type="submit" id="s2member-pro-authnet-registration-submit" class="s2member-pro-authnet-submit s2member-pro-authnet-registration-submit" value="<?php echo esc_attr (_x ("Submit Form", "s2member-front", "s2member")); ?>" tabindex="400" />
  80. </div>
  81. <div style="clear:both;"></div>
  82. </div>
  83. </form>

s2member-pro\includes\templates\forms\authnet-registration-form.php

Source Code Documentation