Advertisement
rdusnr

Untitled

Aug 21st, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.96 KB | None | 0 0
  1. <?php get_header( 'buddypress' ); ?>
  2.  
  3. <!-- MAIN SECTION
  4. ================================================ -->
  5. <section>
  6. <div id="main">
  7. <div class="row">
  8. <div class="twelve columns">
  9.  
  10. <?php do_action( 'bp_before_register_page' ); ?>
  11.  
  12. <div id="register-page">
  13.  
  14. <form action="" name="signup_form" id="signup_form" class="standard-form custom" method="post" enctype="multipart/form-data">
  15.  
  16. <?php if ( 'registration-disabled' == bp_get_current_signup_step() ) : ?>
  17. <?php do_action( 'template_notices' ); ?>
  18. <?php do_action( 'bp_before_registration_disabled' ); ?>
  19.  
  20. <p><?php _e( 'User registration is currently not allowed.', 'buddypress' ); ?></p>
  21.  
  22. <?php do_action( 'bp_after_registration_disabled' ); ?>
  23. <?php endif; // registration-disabled signup setp ?>
  24.  
  25. <?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>
  26. <div class="row">
  27. <div class="twelve columns">
  28. <h2 class="article-title text-center"><?php _e( 'Create an Account', 'buddypress' ); ?></h2>
  29. </div><!--end twelve-->
  30. </div>
  31.  
  32. <?php do_action( 'template_notices' ); ?>
  33.  
  34. <p class="lead"><?php _e( 'Registering for this site is easy. Just fill in the fields below, and we\'ll get a new account set up for you in no time.', 'buddypress' ); ?></p>
  35. <br><br>
  36. <?php do_action( 'bp_before_account_details_fields' ); ?>
  37. <div class="row">
  38. <div class="register-section six columns" id="basic-details-section">
  39.  
  40. <?php /***** Basic Account Details ******/ ?>
  41.  
  42. <h4><i class="icon icon-user"></i> <?php _e( 'Account Details', 'buddypress' ); ?></h4>
  43. <br>
  44. <label for="signup_username"><?php _e( 'Username', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  45. <?php do_action( 'bp_signup_username_errors' ); ?>
  46. <input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" />
  47.  
  48. <label for="signup_email"><?php _e( 'Email Address', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  49. <?php do_action( 'bp_signup_email_errors' ); ?>
  50. <input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" />
  51.  
  52. <label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  53. <?php do_action( 'bp_signup_password_errors' ); ?>
  54. <input type="password" name="signup_password" id="signup_password" value="<?php bp_signup_password_value(); ?>" class="password-entry" />
  55. <div id="pass-strength-result"></div>
  56.  
  57. <label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  58. <?php do_action( 'bp_signup_password_confirm_errors' ); ?>
  59. <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="<?php bp_signup_password_confirm_value(); ?>" class="password-entry-confirm" />
  60. <br><br>
  61. </div><!-- #basic-details-section -->
  62.  
  63. <?php do_action( 'bp_after_account_details_fields' ); ?>
  64.  
  65. <?php /***** Extra Profile Details ******/ ?>
  66.  
  67. <?php if ( bp_is_active( 'xprofile' ) ) : ?>
  68.  
  69. <?php do_action( 'bp_before_signup_profile_fields' ); ?>
  70.  
  71. <div class="register-section six columns" id="profile-details-section">
  72.  
  73. <h4><i class="icon icon-comments"></i> <?php _e( 'Profile Details', 'buddypress' ); ?></h4>
  74. <br>
  75. <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
  76. <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  77.  
  78. <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  79. <div class="<?php if('selectbox' == bp_get_the_profile_field_type() || 'multiselectbox' == bp_get_the_profile_field_type() ) echo 'six'; else echo 'twelve';?> columns">
  80. <div<?php bp_field_css_class( 'editfield' ); ?>>
  81.  
  82. <?php
  83. $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
  84. $field_type->edit_field_html();
  85.  
  86. do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
  87.  
  88. if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
  89. <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
  90. <?php
  91. printf(
  92. __( 'This field can be seen by: %s', 'buddypress' ),
  93. '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
  94. );
  95. ?>
  96. </p>
  97.  
  98. <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
  99. <fieldset>
  100. <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
  101.  
  102. <?php bp_profile_visibility_radio_buttons() ?>
  103.  
  104. </fieldset>
  105. <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
  106.  
  107. </div>
  108. <?php else : ?>
  109. <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
  110. <?php
  111. printf(
  112. __( 'This field can be seen by: %s', 'buddypress' ),
  113. '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
  114. );
  115. ?>
  116. </p>
  117. <?php endif ?>
  118.  
  119. <?php do_action( 'bp_custom_profile_edit_fields' ); ?>
  120.  
  121. </div>
  122. </div>
  123. <?php endwhile; ?>
  124.  
  125. <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" />
  126.  
  127. <?php endwhile; endif; endif; ?>
  128.  
  129. </div><!-- #profile-details-section -->
  130. </div>
  131. <?php do_action( 'bp_after_signup_profile_fields' ); ?>
  132.  
  133. <?php endif; ?>
  134.  
  135. <?php if ( bp_get_blog_signup_allowed() ) : ?>
  136.  
  137. <?php do_action( 'bp_before_blog_details_fields' ); ?>
  138.  
  139. <?php /***** Blog Creation Details ******/ ?>
  140.  
  141. <div class="register-section" id="blog-details-section">
  142.  
  143. <h4><?php _e( 'Blog Details', 'buddypress' ); ?></h4>
  144.  
  145. <p><label for="signup_with_blog"><input type="checkbox" name="signup_with_blog" id="signup_with_blog" value="1"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes, I\'d like to create a new site', 'buddypress' ); ?></label></p>
  146.  
  147. <div id="blog-details"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?>class="show"<?php endif; ?>>
  148.  
  149. <label for="signup_blog_url"><?php _e( 'Blog URL', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  150. <?php do_action( 'bp_signup_blog_url_errors' ); ?>
  151.  
  152. <?php if ( is_subdomain_install() ) : ?>
  153. http:// <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" /> .<?php bp_blogs_subdomain_base(); ?>
  154. <?php else : ?>
  155. <?php echo site_url(); ?>/ <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" />
  156. <?php endif; ?>
  157.  
  158. <label for="signup_blog_title"><?php _e( 'Site Title', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  159. <?php do_action( 'bp_signup_blog_title_errors' ); ?>
  160. <input type="text" name="signup_blog_title" id="signup_blog_title" value="<?php bp_signup_blog_title_value(); ?>" />
  161.  
  162. <label><?php _e( 'I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ); ?>:</label>
  163. <?php do_action( 'bp_signup_blog_privacy_errors' ); ?>
  164.  
  165. <label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_public" value="public"<?php if ( 'public' == bp_get_signup_blog_privacy_value() || !bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes', 'buddypress' ); ?></label>
  166. <label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_private" value="private"<?php if ( 'private' == bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'No', 'buddypress' ); ?></label>
  167.  
  168. </div>
  169.  
  170. </div><!-- #blog-details-section -->
  171.  
  172. <?php do_action( 'bp_after_blog_details_fields' ); ?>
  173.  
  174. <?php endif; ?>
  175.  
  176. <?php do_action( 'bp_before_registration_submit_buttons' ); ?>
  177.  
  178. <div class="submit">
  179. <input type="submit" class="button radius pull-right" name="signup_submit" id="signup_submit" value="<?php _e( 'Complete Sign Up', 'buddypress' ); ?>" />
  180. </div>
  181.  
  182. <?php do_action( 'bp_after_registration_submit_buttons' ); ?>
  183.  
  184. <?php wp_nonce_field( 'bp_new_signup' ); ?>
  185.  
  186. <?php endif; // request-details signup step ?>
  187.  
  188. <?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>
  189.  
  190. <h2 class="article-title"><?php _e( 'Sign Up Complete!', 'kleo_framework' ); ?></h2>
  191.  
  192. <?php do_action( 'template_notices' ); ?>
  193. <?php do_action( 'bp_before_registration_confirmed' ); ?>
  194.  
  195. <?php if ( bp_registration_needs_activation() ) : ?>
  196. <p><?php _e( 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.', 'buddypress' ); ?></p>
  197. <?php else : ?>
  198. <p><?php _e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ); ?></p>
  199. <?php endif; ?>
  200.  
  201. <?php do_action( 'bp_after_registration_confirmed' ); ?>
  202.  
  203. <?php endif; // completed-confirmation signup step ?>
  204.  
  205. <?php do_action( 'bp_custom_signup_steps' ); ?>
  206.  
  207. </form>
  208.  
  209. </div>
  210.  
  211. <?php do_action( 'bp_after_register_page' ); ?>
  212. <div class="clearfix"></div>
  213. <br><br>
  214. </div><!--end twelve-->
  215.  
  216. </div><!--end row-->
  217. </div><!--end main-->
  218.  
  219. </section>
  220. <!--END MAIN SECTION-->
  221.  
  222.  
  223. <script type="text/javascript">
  224. jQuery(document).ready( function() {
  225. if ( jQuery('div#blog-details').length && !jQuery('div#blog-details').hasClass('show') )
  226. jQuery('div#blog-details').toggle();
  227.  
  228. jQuery( 'input#signup_with_blog' ).change( function() {
  229. if(jQuery(this).is(':checked')) {
  230. jQuery('div#blog-details').fadeIn();
  231. }
  232. else {
  233. jQuery('div#blog-details').fadeOut();
  234. }
  235. });
  236. });
  237. </script>
  238.  
  239. <?php get_footer( 'buddypress' ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement