Professional Documents
Culture Documents
Register
Register
>
<?php wp_enqueue_script( 'googlecaptcha',
'https://www.google.com/recaptcha/api.js', array(), '1.0.0', true ); ?>
<div id="buddypress">
<?php
// Production sur wikiplacement.nett
$siteKey = '6Ld8XhYTAAAAACW90jAHUaXVHFcqEcCHUUXhdIz2'; // votre clé publique
//$secret = '6Ld8XhYTAAAAAPCxtxhTpWS9sDXnEYSJ2c9bsy1q'; // votre clé privée
?>
<?php do_action( 'bp_before_register_page' ); ?>
<label>
<input class="cbcgp" id="cbcgp" name="cbcgp"
type="checkbox" value="1" <?php if(isset($_POST['cbcgp'])) echo
"checked='checked'"; ?>>
<span class="bold">Je suis un CGP (cochez la case)</span>
</label>
</div>
</div><!-- #basic-details-section -->
<div class="bp_input">
<div class="g-recaptcha" data-sitekey="<?php echo
$siteKey; ?>"></div>
<?php
global $bp;
if (!empty($bp->signup-
>errors['googlecaptchaerror'])) {
echo "<div class=\"error\"
id=\"captchaincorrect\">Le CAPTCHA n'est pas correct. Veuillez cocher la
case.</div>";
}
?>
</div>
</div>
<?php // Use the profile field loop to render input
fields for the 'base' profile field group
// Original :
bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) We
removed the 1 to show all values ?>
<?php if ( bp_is_active( 'xprofile' ) ) : if
( bp_has_profile() ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
<?php
$bp_field = new
Wikiplacement_BuddyPress_Field( bp_get_the_profile_field_type() );
do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
?>
<?php
do_action( 'bp_custom_profile_edit_fields' ); ?>
</div>
<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>
<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>
</div>
<?php
do_action( 'bp_before_registration_submit_buttons');
?>
<div class="submit">
<input type="submit" name="signup_submit"
id="signup_submit" value="<?php esc_attr_e( 'Complete Sign Up', 'buddypress' ); ?>"
/>
</div>
</form>
</div>