You are on page 1of 8

<?php // include_once( dirname( __FILE__ ) . '/googlecaptcha.php' ); ?

>
<?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

// En préproduction sur wikiplacement.izsmart.com


//$siteKey = '6LdpXBYTAAAAAFXULfIRNuvixjaszua4z4TL1TPl'; // votre clé
publique

?>
<?php do_action( 'bp_before_register_page' ); ?>

<div class="page" id="register-page">

<form action="" name="signup_form" id="signup_form" class="standard-


form" method="post" enctype="multipart/form-data">
<?php if ( 'registration-disabled' ==
bp_get_current_signup_step() ) : ?>

<?php do_action( 'template_notices' ); ?>


<?php do_action( 'bp_before_registration_disabled' ); ?>

<p><?php _e( 'User registration is currently not allowed.',


'buddypress' ); ?></p>

<?php do_action( 'bp_after_registration_disabled' ); ?>


<?php endif; // registration-disabled signup step ?>

<?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>

<?php do_action( 'template_notices' ); ?>

<p><?php esc_attr_e('bp_inscription','wikiplacement-theme') ?><br


/><br /><?php esc_attr_e('bp_inscription2','wikiplacement-theme') ?><br /><br
/><sub><?php esc_attr_e('bp_inscription3','wikiplacement-theme') ?></sub><br
/><br /><?php esc_attr_e('bp_inscription4','wikiplacement-theme') ?></p>

<?php do_action( 'bp_before_account_details_fields' ); ?>

<div class="register-section" id="basic-details-section">

<?php /***** Basic Account Details ******/ ?>

<h4><?php _e( 'Account Details', 'buddypress' ); ?></h4>


<div class="bp_form_padding">
<div class="bp_input">
<input type="text" name="signup_username" id="signup_username"
value="<?php bp_signup_username_value(); ?>" <?php
bp_form_field_attributes( 'username' ); ?> placeholder="Pseudo *" />
</div>
<?php do_action( 'bp_signup_username_errors' ); ?>
<div class="bp_input">
<input type="email" name="signup_email" id="signup_email"
value="<?php bp_signup_email_value(); ?>" <?php
bp_form_field_attributes( 'email' ); ?> placeholder="E-mail *"/>
<?php do_action( 'bp_signup_email_errors' ); ?>
</div>
<div class="bp_input">
<input type="password" name="signup_password"
id="signup_password" value="" class="password-entry" <?php
bp_form_field_attributes( 'password' ); ?> placeholder="<?php _e( 'Choose a
Password', 'buddypress' ); ?>" />
</div>
<?php do_action( 'bp_signup_password_errors' ); ?>
<div class="bp_input">
<input type="password" name="signup_password_confirm"
id="signup_password_confirm" value="" class="password-entry-confirm" <?php
bp_form_field_attributes( 'password' ); ?> placeholder="<?php _e( 'Confirm
Password', 'buddypress' ); ?>" />
</div>
<div id="pass-strength-result"></div>
<?php do_action( 'bp_signup_password_confirm_errors' ); ?>
<?php do_action( 'bp_account_details_fields' ); ?>

<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 -->

<?php do_action( 'bp_after_account_details_fields' ); ?>

<?php /***** Extra Profile Details ******/ ?>

<?php if ( bp_is_active( 'xprofile' ) ) : ?>


<?php do_action( 'bp_before_signup_profile_fields' ); ?>

<div class="register-section" id="profile-details-section">

<h4><?php _e( 'Profile Details', 'buddypress' ); ?


></h4>
<?php $position = 1 ?>
<div class="bp_form_padding">
<div class="editfield">
<div class="bp_input">
<input id="field_2" type="text" placeholder="Nom"
value="<?php if (isset($_POST['field_2'])) echo $_POST['field_2']; ?>"
name="field_2">
</div>
</div>
<div class="editfield">
<div class="bp_input">
<input id="field_1" type="text" placeholder="Prénom *"
aria-required="true" value="<?php if (isset($_POST['field_1'])) echo
$_POST['field_1']; ?>" name="field_1">
<?php do_action( 'bp_field_1_errors' ); ?>
</div>
</div>
<div class="editfield field_4 field_adresse optional-field
visibility-loggedin field_type_textbox">
<div class="bp_input">
<input id="field_4" type="text" placeholder="Adresse"
value="<?php if (isset($_POST['field_4'])) echo $_POST['field_4']; ?>"
name="field_4">
<?php do_action( 'bp_field_4_errors' ); ?>
</div>
</div>
<div class="editfield">
<div class="bp_input">
<input id="field_6" type="text" placeholder="Ville *"
aria-required="true" value="<?php if (isset($_POST['field_6'])) echo
$_POST['field_6']; ?>" name="field_6">
<?php do_action( 'bp_field_6_errors' ); ?>
</div>
</div>
<div class="editfield">
<div class="bp_input">
<input id="field_5" type="text" placeholder="Code
postal" value="<?php if (isset($_POST['field_5'])) echo $_POST['field_5']; ?>"
name="field_5">
<?php do_action( 'bp_field_5_errors' ); ?>
</div>
</div>
<div class="editfield">
<div class="bp_input">
<input id="field_7" type="text"
placeholder="Téléphone" value="<?php if (isset($_POST['field_7'])) echo
$_POST['field_7']; ?>" name="field_7">
</div>
</div>
<div class="editfield supfields">
<div class="bp_input">
<select placeholder="Région" name="field_14"
id="field_14">
<option value="">-- Votre région --</option>
<option value="Alsace">Alsace</option>
<option value="Aquitaine">Aquitaine</option>
<option value="Auvergne">Auvergne</option>
<option value="Basse-Normandie">Basse-
Normandie</option>
<option value="Bourgogne">Bourgogne</option>
<option value="Bretagne">Bretagne</option>
<option value="Centre">Centre</option>
<option value="Champagne-Ardenne">Champagne-
Ardenne</option>
<option value="Corse">Corse</option>
<option value="Franche-Comté">Franche-
Comté</option>
<option value="Guadeloupe">Guadeloupe</option>
<option value="Guyane">Guyane</option>
<option value="Haute-Normandie">Haute-
Normandie</option>
<option value="Ile-de-France">Ile-de-
France</option>
<option value="Languedoc-Roussillon">Languedoc-
Roussillon</option>
<option value="Limousin">Limousin</option>
<option value="Lorraine">Lorraine</option>
<option value="Martinique">Martinique</option>
<option value="Mayotte">Mayotte</option>
<option value="Midi-Pyrénées">Midi-
Pyrénées</option>
<option value="Nord-Pas-de-Calais">Nord-Pas-de-
Calais</option>
<option value="Pays de la Loire">Pays de la
Loire</option>
<option value="Picardie">Picardie</option>
<option value="Poitou-Charentes">Poitou-
Charentes</option>
<option value="Provence-Alpes-Côte
d\'Azur">Provence-Alpes-Côte d\'Azur</option>
<option value="Réunion">Réunion</option>
<option value="Rhône-Alpes">Rhône-Alpes</option>
</select>
<div class="error disnone" id="region_error">Merci
de sélectionner une région</div>
</div>
</div>
<div class="editfield supfields">
<div class="bp_input">
<input id="field_11" type="text" placeholder="ORIAS
*" value="<?php if (isset($_POST['field_11'])) echo $_POST['field_11']; ?>"
name="field_11">
<div class="error disnone" id="orias_error">Ce
champ est obligatoire.</div>
</div>
</div>
<div class="editfield supfields">
<div class="bp_input">
<div class="bp_input">
<input id="field_172" type="text"
placeholder="NAF" value="<?php if (isset($_POST['field_172'])) echo
$_POST['field_172']; ?>" name="field_172">
</div>
</div>
</div>
<div class="editfield supfields">
<div class="bp_input">
<div class="bp_input">
<input id="field_173" type="text"
placeholder="CIF" value="<?php if (isset($_POST['field_173'])) echo
$_POST['field_173']; ?>" name="field_173">
</div>
</div>
</div>
<div class="editfield supfields">
<div class="bp_input">
<div class="bp_input">
<input id="field_10" type="text"
placeholder="SIREN" value="<?php if (isset($_POST['field_10'])) echo
$_POST['field_10']; ?>" name="field_10">
</div>
</div>
</div>

<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(); ?>

<!--<div class="bp_form_padding" <?php if($position!=1) echo


"id=\"supfields\""; ?>>
<?php /*while ( bp_profile_fields() ) :
bp_the_profile_field(); ?>

<div<?php bp_field_css_class( 'editfield' ); ?


>>

<?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>

<?php endwhile; ?>


</div>

<?php if($position == 1) { ?>


<label>
<input class="cbcgp" id="cbcgp" name="cbcgp"
type="checkbox" value="1">
<span class="bold">Je suis un CGP (cochez la case)</span>
</label>
<?php }
$position++; */
?>-->

<input type="hidden" name="signup_profile_field_ids"


id="signup_profile_field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
<?php endwhile; endif; endif; ?>

<?php do_action( 'bp_signup_profile_fields' ); ?>

</div><!-- #profile-details-section -->

<?php do_action( 'bp_after_signup_profile_fields' ); ?>

<?php endif; ?>

<?php if ( bp_get_blog_signup_allowed() ) : ?>

<?php do_action( 'bp_before_blog_details_fields' ); ?>

<?php /***** Blog Creation Details ******/ ?>

<div class="register-section" id="blog-details-section">

<h4><?php _e( 'Blog Details', 'buddypress' ); ?></h4>

<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>

<div id="blog-details"<?php if ( (int)


bp_get_signup_with_blog_value() ) : ?>class="show"<?php endif; ?>>

<label for="signup_blog_url"><?php _e( 'Blog


URL', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
<?php do_action( 'bp_signup_blog_url_errors' );
?>

<?php if ( is_subdomain_install() ) : ?>


http:// <input type="text"
name="signup_blog_url" id="signup_blog_url" value="<?php
bp_signup_blog_url_value(); ?>" /> .<?php bp_signup_subdomain_base(); ?>
<?php else : ?>
<?php echo home_url( '/' ); ?> <input
type="text" name="signup_blog_url" id="signup_blog_url" value="<?php
bp_signup_blog_url_value(); ?>" />
<?php endif; ?>

<label for="signup_blog_title"><?php _e( 'Site


Title', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
<?php
do_action( 'bp_signup_blog_title_errors' ); ?>
<input type="text" name="signup_blog_title"
id="signup_blog_title" value="<?php bp_signup_blog_title_value(); ?>" />

<span class="label"><?php _e( 'I would like my


site to appear in search engines, and in public listings around this network.',
'buddypress' ); ?></span>
<?php
do_action( 'bp_signup_blog_privacy_errors' ); ?>

<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>

<?php do_action( 'bp_blog_details_fields' ); ?>

</div>

</div><!-- #blog-details-section -->

<?php do_action( 'bp_after_blog_details_fields' ); ?>

<?php endif; ?>

<?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>

<?php do_action( 'bp_after_registration_submit_buttons' ); ?>

<?php wp_nonce_field( 'bp_new_signup' ); ?>

<?php endif; // request-details signup step ?>

<?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) :


?>

<?php do_action( 'template_notices' ); ?>


<?php do_action( 'bp_before_registration_confirmed' ); ?>

<?php if ( bp_registration_needs_activation() ) : ?>


<p><?php
esc_attr_e('creation_success_need_activation','wikiplacement-theme') ?></p>
<?php else : ?>
<p><?php
esc_attr_e('creation_success_no_need_activation','wikiplacement-theme') ?></p>
<?php endif; ?>

<?php do_action( 'bp_after_registration_confirmed' ); ?>

<?php endif; // completed-confirmation signup step ?>

<?php do_action( 'bp_custom_signup_steps' ); ?>

</form>

</div>

<?php do_action( 'bp_after_register_page' );?>


</div><!-- #buddypress -->

You might also like