Advertisement
Guest User

Untitled

a guest
Mar 15th, 2012
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.73 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div id="container">
  3. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  4. <div id="content">
  5. <section class="entry-content">
  6.  
  7. <?php do_action( 'bp_before_register_page' ) ?>
  8.  
  9. <div class="page" id="register-page">
  10.  
  11. <form action="" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data">
  12.  
  13. <?php if ( 'registration-disabled' == bp_get_current_signup_step() ) : ?>
  14. <?php do_action( 'template_notices' ) ?>
  15. <?php do_action( 'bp_before_registration_disabled' ) ?>
  16.  
  17. <p><?php _e( 'User registration is currently not allowed.', 'buddypress' ); ?></p>
  18.  
  19. <?php do_action( 'bp_after_registration_disabled' ); ?>
  20. <?php endif; // registration-disabled signup setp ?>
  21.  
  22. <?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>
  23.  
  24. <h2><?php _e( 'Create an Account', 'buddypress' ) ?></h2>
  25.  
  26. <?php do_action( 'template_notices' ) ?>
  27.  
  28. <p><?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>
  29.  
  30. <?php do_action( 'bp_before_account_details_fields' ) ?>
  31.  
  32. <div class="register-section" id="basic-details-section">
  33.  
  34. <?php /***** Basic Account Details ******/ ?>
  35.  
  36. <h4><?php _e( 'Account Details', 'buddypress' ) ?></h4>
  37.  
  38. <label for="signup_username"><?php _e( 'Username', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
  39. <?php do_action( 'bp_signup_username_errors' ) ?>
  40. <input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value() ?>" />
  41.  
  42. <label for="signup_email"><?php _e( 'Email Address', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
  43. <?php do_action( 'bp_signup_email_errors' ) ?>
  44. <input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value() ?>" />
  45.  
  46. <label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
  47. <?php do_action( 'bp_signup_password_errors' ) ?>
  48. <input type="password" name="signup_password" id="signup_password" value="" />
  49.  
  50. <label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
  51. <?php do_action( 'bp_signup_password_confirm_errors' ) ?>
  52. <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" />
  53.  
  54. </div><!-- #basic-details-section -->
  55.  
  56. <?php do_action( 'bp_after_account_details_fields' ) ?>
  57.  
  58. <?php /***** Extra Profile Details ******/ ?>
  59.  
  60. <?php if ( bp_is_active( 'xprofile' ) ) : ?>
  61.  
  62. <?php do_action( 'bp_before_signup_profile_fields' ) ?>
  63.  
  64. <div class="register-section" id="profile-details-section">
  65.  
  66. <h4><?php _e( 'Profile Details', 'buddypress' ) ?></h4>
  67.  
  68. <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
  69. <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  70.  
  71. <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  72.  
  73. <div class="editfield">
  74.  
  75. <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
  76.  
  77. <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
  78. <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  79. <input type="text" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" value="<?php bp_the_profile_field_edit_value() ?>" />
  80.  
  81. <?php endif; ?>
  82.  
  83. <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
  84.  
  85. <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
  86. <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  87. <textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_edit_value() ?></textarea>
  88.  
  89. <?php endif; ?>
  90.  
  91. <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
  92.  
  93. <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
  94. <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  95. <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>">
  96. <?php bp_the_profile_field_options() ?>
  97. </select>
  98.  
  99. <?php endif; ?>
  100.  
  101. <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
  102.  
  103. <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
  104. <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  105. <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple">
  106. <?php bp_the_profile_field_options() ?>
  107. </select>
  108.  
  109. <?php endif; ?>
  110.  
  111. <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?>
  112.  
  113. <div class="radio">
  114. <span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></span>
  115.  
  116. <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  117. <?php bp_the_profile_field_options() ?>
  118.  
  119. <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
  120. <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name() ?>' );"><?php _e( 'Clear', 'buddypress' ) ?></a>
  121. <?php endif; ?>
  122. </div>
  123.  
  124. <?php endif; ?>
  125.  
  126. <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
  127.  
  128. <div class="checkbox">
  129. <span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></span>
  130.  
  131. <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  132. <?php bp_the_profile_field_options() ?>
  133. </div>
  134.  
  135. <?php endif; ?>
  136.  
  137. <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
  138.  
  139. <div class="datebox">
  140. <label for="<?php bp_the_profile_field_input_name() ?>_day"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
  141. <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  142.  
  143. <select name="<?php bp_the_profile_field_input_name() ?>_day" id="<?php bp_the_profile_field_input_name() ?>_day">
  144. <?php bp_the_profile_field_options( 'type=day' ) ?>
  145. </select>
  146.  
  147. <select name="<?php bp_the_profile_field_input_name() ?>_month" id="<?php bp_the_profile_field_input_name() ?>_month">
  148. <?php bp_the_profile_field_options( 'type=month' ) ?>
  149. </select>
  150.  
  151. <select name="<?php bp_the_profile_field_input_name() ?>_year" id="<?php bp_the_profile_field_input_name() ?>_year">
  152. <?php bp_the_profile_field_options( 'type=year' ) ?>
  153. </select>
  154. </div>
  155.  
  156. <?php endif; ?>
  157.  
  158. <?php do_action( 'bp_custom_profile_edit_fields' ) ?>
  159.  
  160. <p class="description"><?php bp_the_profile_field_description() ?></p>
  161.  
  162. </div>
  163.  
  164. <?php endwhile; ?>
  165.  
  166. <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids() ?>" />
  167.  
  168. <?php endwhile; endif; endif; ?>
  169.  
  170. </div><!-- #profile-details-section -->
  171.  
  172. <?php do_action( 'bp_after_signup_profile_fields' ) ?>
  173.  
  174. <?php endif; ?>
  175.  
  176. <?php if ( bp_get_blog_signup_allowed() ) : ?>
  177.  
  178. <?php do_action( 'bp_before_blog_details_fields' ) ?>
  179.  
  180. <?php /***** Blog Creation Details ******/ ?>
  181.  
  182. <div class="register-section" id="blog-details-section">
  183.  
  184. <h4><?php _e( 'Blog Details', 'buddypress' ) ?></h4>
  185.  
  186. <p><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' ) ?></p>
  187.  
  188. <div id="blog-details"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?>class="show"<?php endif; ?>>
  189.  
  190. <label for="signup_blog_url"><?php _e( 'Blog URL', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
  191. <?php do_action( 'bp_signup_blog_url_errors' ) ?>
  192.  
  193. <?php if ( is_subdomain_install() ) : ?>
  194. http:// <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value() ?>" /> .<?php bp_blogs_subdomain_base() ?>
  195. <?php else : ?>
  196. <?php echo site_url() ?>/ <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value() ?>" />
  197. <?php endif; ?>
  198.  
  199. <label for="signup_blog_title"><?php _e( 'Site Title', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
  200. <?php do_action( 'bp_signup_blog_title_errors' ) ?>
  201. <input type="text" name="signup_blog_title" id="signup_blog_title" value="<?php bp_signup_blog_title_value() ?>" />
  202.  
  203. <span class="label"><?php _e( 'I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ) ?>:</span>
  204. <?php do_action( 'bp_signup_blog_privacy_errors' ) ?>
  205.  
  206. <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>
  207. <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>
  208.  
  209. </div>
  210.  
  211. </div><!-- #blog-details-section -->
  212.  
  213. <?php do_action( 'bp_after_blog_details_fields' ) ?>
  214.  
  215. <?php endif; ?>
  216.  
  217. <?php do_action( 'bp_before_registration_submit_buttons' ) ?>
  218.  
  219. <div class="submit">
  220. <input type="submit" name="signup_submit" id="signup_submit" value="<?php _e( 'Complete Sign Up', 'buddypress' ) ?>" />
  221. </div>
  222.  
  223. <?php do_action( 'bp_after_registration_submit_buttons' ) ?>
  224.  
  225. <?php wp_nonce_field( 'bp_new_signup' ) ?>
  226.  
  227. <?php endif; // request-details signup step ?>
  228.  
  229. <?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>
  230.  
  231. <h2><?php _e( 'Sign Up Complete!', 'buddypress' ) ?></h2>
  232.  
  233. <?php do_action( 'template_notices' ) ?>
  234. <?php do_action( 'bp_before_registration_confirmed' ) ?>
  235.  
  236. <?php if ( bp_registration_needs_activation() ) : ?>
  237. <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>
  238. <?php else : ?>
  239. <p><?php _e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ) ?></p>
  240. <?php endif; ?>
  241.  
  242. <?php do_action( 'bp_after_registration_confirmed' ) ?>
  243.  
  244. <?php endif; // completed-confirmation signup step ?>
  245.  
  246. <?php do_action( 'bp_custom_signup_steps' ) ?>
  247.  
  248. </form>
  249.  
  250. </div>
  251.  
  252. <?php do_action( 'bp_after_register_page' ) ?>
  253.  
  254.  
  255. </section><!-- .entry-content -->
  256. </div><!-- #content -->
  257. </article><!-- .post -->
  258. <?php get_sidebar(); ?>
  259. <script type="text/javascript">
  260. jQuery(document).ready( function() {
  261. if ( jQuery('div#blog-details').length && !jQuery('div#blog-details').hasClass('show') )
  262. jQuery('div#blog-details').toggle();
  263. jQuery( 'input#signup_with_blog' ).click( function() {
  264. jQuery('div#blog-details').fadeOut().toggle();
  265. });
  266. });
  267. </script>
  268. <div class="clear"></div>
  269. </div><!-- #container -->
  270. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement