Advertisement
rdusnr

Untitled

Aug 4th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.16 KB | None | 0 0
  1. <?php
  2. /**
  3. * BuddyPress - Members Register
  4. *
  5. * @package BuddyPress
  6. * @subpackage bp-legacy
  7. */
  8.  
  9. ?>
  10.  
  11. <div id="buddypress" class="kleo-login-wrap">
  12. <div class="login-shadow-wrapper">
  13.  
  14. <div class="before-login-form-wrapper"><?php
  15.  
  16. /**
  17. * Fires at the top of the BuddyPress member registration page template.
  18. *
  19. * @since 1.1.0
  20. */
  21. do_action( 'bp_before_register_page' ); ?></div>
  22.  
  23. <div class="login-create-account-wrapper">
  24. <div class="kleo-register-link">
  25. <div class="fb-login-link"><?php _e( 'Have an account?','buddyapp' ); ?> <a class="show-login"><?php _e( 'Sign in' ); ?></a></div>
  26. <div class="fb-or-section"><span><?php echo __("or", "buddyapp");?></span></div>
  27. </div>
  28. </div>
  29.  
  30. <div class="page login-form-wrapper" id="register-page">
  31.  
  32. <p class="register-info"><?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><!--TODO de mutat-->
  33.  
  34.  
  35. <form action="" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data">
  36.  
  37. <?php if ( 'registration-disabled' == bp_get_current_signup_step() ) : ?>
  38. <?php
  39.  
  40. /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
  41. do_action( 'template_notices' ); ?>
  42. <?php
  43.  
  44. /**
  45. * Fires before the display of the registration disabled message.
  46. *
  47. * @since 1.5.0
  48. */
  49. do_action( 'bp_before_registration_disabled' ); ?>
  50.  
  51. <p><?php _e( 'User registration is currently not allowed.', 'buddypress' ); ?></p>
  52.  
  53. <?php
  54.  
  55. /**
  56. * Fires after the display of the registration disabled message.
  57. *
  58. * @since 1.5.0
  59. */
  60. do_action( 'bp_after_registration_disabled' ); ?>
  61. <?php endif; // registration-disabled signup step ?>
  62.  
  63. <?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>
  64.  
  65. <?php
  66.  
  67. /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
  68. do_action( 'template_notices' ); ?>
  69.  
  70.  
  71.  
  72.  
  73. <?php
  74.  
  75. /**
  76. * Fires before the display of member registration account details fields.
  77. *
  78. * @since 1.1.0
  79. */
  80. do_action( 'bp_before_account_details_fields' ); ?>
  81.  
  82. <div class="register-section" id="basic-details-section">
  83.  
  84. <?php /***** Basic Account Details ******/ ?>
  85.  
  86. <h4><?php _e( 'Account Details', 'buddypress' ); ?></h4>
  87.  
  88. <label for="signup_username"><?php _e( 'Username', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  89. <?php
  90.  
  91. /**
  92. * Fires and displays any member registration username errors.
  93. *
  94. * @since 1.1.0
  95. */
  96. do_action( 'bp_signup_username_errors' ); ?>
  97. <input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" <?php bp_form_field_attributes( 'username' ); ?>/>
  98.  
  99. <label for="signup_email"><?php _e( 'Email Address', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  100. <?php
  101.  
  102. /**
  103. * Fires and displays any member registration email errors.
  104. *
  105. * @since 1.1.0
  106. */
  107. do_action( 'bp_signup_email_errors' ); ?>
  108. <input type="email" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" <?php bp_form_field_attributes( 'email' ); ?>/>
  109.  
  110. <label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  111. <?php
  112.  
  113. /**
  114. * Fires and displays any member registration password errors.
  115. *
  116. * @since 1.1.0
  117. */
  118. do_action( 'bp_signup_password_errors' ); ?>
  119. <input type="password" name="signup_password" id="signup_password" value="" class="password-entry" <?php bp_form_field_attributes( 'password' ); ?>/>
  120.  
  121. <div id="pass-strength-result"></div>
  122.  
  123. <label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  124. <?php
  125.  
  126. /**
  127. * Fires and displays any member registration password confirmation errors.
  128. *
  129. * @since 1.1.0
  130. */
  131. do_action( 'bp_signup_password_confirm_errors' ); ?>
  132. <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" class="password-entry-confirm" <?php bp_form_field_attributes( 'password' ); ?>/>
  133.  
  134. <?php
  135.  
  136. /**
  137. * Fires and displays any extra member registration details fields.
  138. *
  139. * @since 1.9.0
  140. */
  141. do_action( 'bp_account_details_fields' ); ?>
  142.  
  143. </div><!-- #basic-details-section -->
  144.  
  145. <?php
  146.  
  147. /**
  148. * Fires after the display of member registration account details fields.
  149. *
  150. * @since 1.1.0
  151. */
  152. do_action( 'bp_after_account_details_fields' ); ?>
  153.  
  154. <?php /***** Extra Profile Details ******/ ?>
  155.  
  156. <?php if ( bp_is_active( 'xprofile' ) ) : ?>
  157.  
  158. <?php
  159.  
  160. /**
  161. * Fires before the display of member registration xprofile fields.
  162. *
  163. * @since 1.2.4
  164. */
  165. do_action( 'bp_before_signup_profile_fields' ); ?>
  166.  
  167. <div class="register-section" id="profile-details-section">
  168.  
  169. <h4><?php _e( 'Profile Details', 'buddypress' ); ?></h4>
  170.  
  171. <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
  172. <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  173.  
  174. <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  175.  
  176. <div<?php bp_field_css_class( 'editfield' ); ?>>
  177.  
  178. <?php
  179. $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
  180. $field_type->edit_field_html();
  181.  
  182. /**
  183. * Fires before the display of the visibility options for xprofile fields.
  184. *
  185. * @since 1.7.0
  186. */
  187. do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
  188.  
  189. if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
  190. <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
  191. <?php
  192. printf(
  193. __( 'This field can be seen by: %s', 'buddypress' ),
  194. '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
  195. );
  196. ?>
  197. <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a>
  198. </p>
  199.  
  200. <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
  201. <fieldset>
  202. <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
  203.  
  204. <?php bp_profile_visibility_radio_buttons() ?>
  205.  
  206. </fieldset>
  207. <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
  208.  
  209. </div>
  210. <?php else : ?>
  211. <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
  212. <?php
  213. printf(
  214. __( 'This field can be seen by: %s', 'buddypress' ),
  215. '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
  216. );
  217. ?>
  218. </p>
  219. <?php endif ?>
  220.  
  221. <?php
  222.  
  223. /**
  224. * Fires after the display of the visibility options for xprofile fields.
  225. *
  226. * @since 1.1.0
  227. */
  228. do_action( 'bp_custom_profile_edit_fields' ); ?>
  229.  
  230. <p class="description"><?php bp_the_profile_field_description(); ?></p>
  231.  
  232. </div>
  233.  
  234. <?php endwhile; ?>
  235.  
  236. <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
  237.  
  238. <?php endwhile; endif; endif; ?>
  239.  
  240. <?php
  241.  
  242. /**
  243. * Fires and displays any extra member registration xprofile fields.
  244. *
  245. * @since 1.9.0
  246. */
  247. do_action( 'bp_signup_profile_fields' ); ?>
  248.  
  249. </div><!-- #profile-details-section -->
  250.  
  251. <?php
  252.  
  253. /**
  254. * Fires after the display of member registration xprofile fields.
  255. *
  256. * @since 1.1.0
  257. */
  258. do_action( 'bp_after_signup_profile_fields' ); ?>
  259.  
  260. <?php endif; ?>
  261.  
  262. <?php if ( bp_get_blog_signup_allowed() ) : ?>
  263.  
  264. <?php
  265.  
  266. /**
  267. * Fires before the display of member registration blog details fields.
  268. *
  269. * @since 1.1.0
  270. */
  271. do_action( 'bp_before_blog_details_fields' ); ?>
  272.  
  273. <?php /***** Blog Creation Details ******/ ?>
  274.  
  275. <div class="register-section" id="blog-details-section">
  276.  
  277. <h4><?php _e( 'Blog Details', 'buddypress' ); ?></h4>
  278.  
  279. <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>
  280.  
  281. <div id="blog-details"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?>class="show"<?php endif; ?>>
  282.  
  283. <label for="signup_blog_url"><?php _e( 'Blog URL', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  284. <?php
  285.  
  286. /**
  287. * Fires and displays any member registration blog URL errors.
  288. *
  289. * @since 1.1.0
  290. */
  291. do_action( 'bp_signup_blog_url_errors' ); ?>
  292.  
  293. <?php if ( is_subdomain_install() ) : ?>
  294. http:// <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" /> .<?php bp_signup_subdomain_base(); ?>
  295. <?php else : ?>
  296. <?php echo home_url( '/' ); ?> <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" />
  297. <?php endif; ?>
  298.  
  299. <label for="signup_blog_title"><?php _e( 'Site Title', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  300. <?php
  301.  
  302. /**
  303. * Fires and displays any member registration blog title errors.
  304. *
  305. * @since 1.1.0
  306. */
  307. do_action( 'bp_signup_blog_title_errors' ); ?>
  308. <input type="text" name="signup_blog_title" id="signup_blog_title" value="<?php bp_signup_blog_title_value(); ?>" />
  309.  
  310. <span class="label"><?php _e( 'I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ); ?></span>
  311. <?php
  312.  
  313. /**
  314. * Fires and displays any member registration blog privacy errors.
  315. *
  316. * @since 1.1.0
  317. */
  318. do_action( 'bp_signup_blog_privacy_errors' ); ?>
  319.  
  320. <label for="signup_blog_privacy_public"><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>
  321. <label for="signup_blog_privacy_private"><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>
  322.  
  323. <?php
  324.  
  325. /**
  326. * Fires and displays any extra member registration blog details fields.
  327. *
  328. * @since 1.9.0
  329. */
  330. do_action( 'bp_blog_details_fields' ); ?>
  331.  
  332. </div>
  333.  
  334. </div><!-- #blog-details-section -->
  335.  
  336. <?php
  337.  
  338. /**
  339. * Fires after the display of member registration blog details fields.
  340. *
  341. * @since 1.1.0
  342. */
  343. do_action( 'bp_after_blog_details_fields' ); ?>
  344.  
  345. <?php endif; ?>
  346.  
  347. <?php
  348.  
  349. /**
  350. * Fires before the display of the registration submit buttons.
  351. *
  352. * @since 1.1.0
  353. */
  354. do_action( 'bp_before_registration_submit_buttons' ); ?>
  355.  
  356.  
  357. <input type="submit" name="signup_submit" id="signup_submit" class="btn btn-lg btn-default btn-block login-button" value="<?php esc_attr_e( 'Complete Sign Up', 'buddypress' ); ?>" />
  358.  
  359.  
  360. <?php
  361.  
  362. /**
  363. * Fires after the display of the registration submit buttons.
  364. *
  365. * @since 1.1.0
  366. */
  367. do_action( 'bp_after_registration_submit_buttons' ); ?>
  368.  
  369. <?php wp_nonce_field( 'bp_new_signup' ); ?>
  370.  
  371. <?php endif; // request-details signup step ?>
  372.  
  373. <?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>
  374.  
  375. <?php
  376.  
  377. /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
  378. do_action( 'template_notices' ); ?>
  379. <?php
  380.  
  381. /**
  382. * Fires before the display of the registration confirmed messages.
  383. *
  384. * @since 1.5.0
  385. */
  386. do_action( 'bp_before_registration_confirmed' ); ?>
  387.  
  388. <?php if ( bp_registration_needs_activation() ) : ?>
  389. <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>
  390. <?php else : ?>
  391. <p><?php _e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ); ?></p>
  392. <?php endif; ?>
  393.  
  394. <?php
  395.  
  396. /**
  397. * Fires after the display of the registration confirmed messages.
  398. *
  399. * @since BuddyPress (1.5.0)
  400. */
  401. do_action( 'bp_after_registration_confirmed' ); ?>
  402.  
  403. <?php endif; // completed-confirmation signup step ?>
  404.  
  405. <?php
  406.  
  407. /**
  408. * Fires and displays any custom signup steps.
  409. *
  410. * @since BuddyPress (1.1.0)
  411. */
  412. do_action( 'bp_custom_signup_steps' ); ?>
  413.  
  414. <div class="clear"></div>
  415.  
  416. </form>
  417.  
  418.  
  419. </div>
  420.  
  421. <?php
  422.  
  423. /**
  424. * Fires at the bottom of the BuddyPress member registration page template.
  425. *
  426. * @since BuddyPress (1.1.0)
  427. */
  428. do_action( 'bp_after_register_page' ); ?>
  429. </div>
  430.  
  431. </div><!-- #buddypress -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement