Last active
December 18, 2015 21:09
-
-
Save josesayago/5845355 to your computer and use it in GitHub Desktop.
GlotPress Register form template, gp-templates/register.php.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
gp_title( sprintf( __('%s < GlotPress'), __('Login') ) ); | |
gp_breadcrumb( array( | |
__('Become a Translator'), | |
) ); | |
gp_tmpl_header(); | |
?> | |
<h2><?php _e('Become a Translator'); ?></h2> | |
<script type="text/javascript"> | |
var RecaptchaOptions = { | |
theme : 'clean' | |
}; | |
</script> | |
<form action="<?php echo gp_url_ssl( gp_url_current() ); ?>" method="post" class="login-form"> | |
<dl> | |
<dt><label for="user_nicename"><?php _e('Full Name'); ?></label></dt> | |
<dd><input type="text" value="" id="user_nicename" name="user_nicename" placeholder="First & Last Name" /></dd> | |
<dt><label for="user_login"><?php _e('Username'); ?></label></dt> | |
<dd><input type="text" value="" id="user_login" name="user_login" placeholder="login" /></dd> | |
<dt><label for="user_email"><?php _e('Email'); ?></label></dt> | |
<dd><input type="text" value="" id="user_email" name="user_email" placeholder="[email protected]" /></dd> | |
<dt><label for="user_url"><?php _e('Website'); ?></label></dt> | |
<dd><input type="text" value="" id="user_url" name="user_url" placeholder="http://mywebsite.com" /></dd> | |
<dt><label for="user_pass"><?php _e('Password'); ?></label></dt> | |
<dd><input type="password" value="" id="user_pass" name="user_pass" placeholder="password" /></dd> | |
<dt><label><?php _e("Prove you're not a bot"); ?></label></dt> | |
<dd><center><?php | |
require_once( GP_PLUGINS_PATH . '/recaptcha/recaptchalib.php'); | |
// RECaptcha public key | |
// Get it from https://www.google.com/recaptcha/admin/ | |
$publickey = "your public key"; | |
echo recaptcha_get_html($publickey); | |
?></center></dd> | |
</dl> | |
<p><input type="submit" name="submit" value="<?php _e('Create Account'); ?>" id="submit"></p> | |
<input type="hidden" value="<?php echo esc_attr( gp_get( 'redirect_to' ) ); ?>" id="redirect_to" name="redirect_to" /> | |
</form> | |
<script type="text/javascript" charset="utf-8"> | |
document.getElementById('user_nicename').focus(); | |
</script> | |
<?php gp_tmpl_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment