- Timestamp:
- 06/24/2018 06:20:34 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/template-tags.php
r12156 r12178 2400 2400 2401 2401 /** 2402 * Outputs the Privacy Policy acceptance area on the registration page. 2403 * 2404 * @since 4.0.0 2405 */ 2406 function bp_nouveau_signup_privacy_policy_acceptance_section() { 2407 $error = null; 2408 if ( isset( buddypress()->signup->errors['signup_privacy_policy'] ) ) { 2409 $error = buddypress()->signup->errors['signup_privacy_policy']; 2410 } 2411 2412 ?> 2413 2414 <div class="privacy-policy-accept"> 2415 <?php if ( $error ) : ?> 2416 <?php nouveau_error_template( $error ); ?> 2417 <?php endif; ?> 2418 2419 <label for="signup-privacy-policy-accept"> 2420 <input type="hidden" name="signup-privacy-policy-check" value="1" /> 2421 2422 <?php /* translators: link to Privacy Policy */ ?> 2423 <input type="checkbox" name="signup-privacy-policy-accept" id="signup-privacy-policy-accept" required /> <?php printf( esc_html__( 'I have read and agree to this site\'s %s.', 'buddypress' ), sprintf( '<a href="%s">%s</a>', esc_url( get_privacy_policy_url() ), esc_html__( 'Privacy Policy', 'buddypress' ) ) ); ?> 2424 </label> 2425 </div> 2426 2427 <?php 2428 } 2429 2430 /** 2402 2431 * Output a submit button and the nonce for the requested action. 2403 2432 *
Note: See TracChangeset
for help on using the changeset viewer.