Skip to content

Instantly share code, notes, and snippets.

@CaesarOG
Created January 9, 2017 16:12
Show Gist options
  • Save CaesarOG/60c94850878fdfa254fe48455257fbd0 to your computer and use it in GitHub Desktop.
Save CaesarOG/60c94850878fdfa254fe48455257fbd0 to your computer and use it in GitHub Desktop.
User Add/Register Form
<?php
$disabled_register = is_multisite() ? get_site_option('registration') : get_option('users_can_register');
?>
<div class="modal fade modal-submit-questions" id="login_register" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
<h4 class="modal-title modal-title-sign-in" id="myModalLabel"><?php _e("Sign In", ET_DOMAIN) ?></h4>
</div>
<div class="modal-body">
<form id="signin_form" class="form_modal_style">
<label for="username">
<?php _e("Username or Email", ET_DOMAIN) ?>
</label>
<input type="text" class="email_user" name="username" id="username" />
<label for="password">
<?php _e("Password", ET_DOMAIN) ?>
</label>
<input type="password" class="password_user" id="password" name="password">
<div class="clearfix"></div>
<input type="submit" name="submit" value="<?php _e("Sign in", ET_DOMAIN) ?>" class="btn-submit">
<a href="javascript:void(0)" class="link_forgot_pass"><?php _e("Forgot password", ET_DOMAIN) ?></a>
<div class="submit-block">
<?php if($disabled_register == 1 || $disabled_register == "user" || $disabled_register == "all" || $disabled_register == "blog" ){ ?>
<a href="javascript:void(0)" class="link_sign_up"><?php _e("Sign up here", ET_DOMAIN) ?></a><span><?php _e("or sign in with", ET_DOMAIN) ?></span>
<ul class="social-icon clearfix">
<!-- google plus login -->
<?php if(ae_get_option('gplus_login', false)){?>
<li class="gp"><a id="signinButton" href="#" class="sc-icon color-google gplus_login_btn" ><i class="fa fa-google-plus-square"></i></a></li>
<?php } ?>
<!-- twitter plus login -->
<?php if(ae_get_option('twitter_login', false)){?>
<li class="tw"><a href="<?php echo add_query_arg('action', 'twitterauth', home_url()) ?>" class="sc-icon color-twitter" ><i class="fa fa-twitter-square"></i></a></li>
<?php } ?>
<!-- facebook plus login -->
<?php if(ae_get_option('facebook_login', false)){?>
<li class="fb"><a href="#" id="facebook_auth_btn" class="sc-icon color-facebook facebook_auth_btn" ><i class="fa fa-facebook-square"></i></a></li>
<?php } ?>
<?php if(ae_get_option('linkedin_login', false)){?>
<li class="fb"><a href="#" id="linked_login_id" class="sc-icon color-facebook lkin" ><i class="fa fa-linkedin-square"></i></a></li>
<?php } ?>
</ul>
<?php } ?>
</div>
</form>
<?php if($disabled_register == 1 || $disabled_register == "user" || $disabled_register == "all" || $disabled_register == "blog" ){ ?>
<form id="signup_form" class="form_modal_style">
<label for="username">
<?php _e("Username", ET_DOMAIN) ?>
</label>
<input type="text" class="name_user" name="username" id="username" />
<label for="email">
<?php _e("Email", ET_DOMAIN) ?>
</label>
<input type="text" class="email_user" name="email" id="email" />
<label for="password1">
<?php _e("Password", ET_DOMAIN) ?>
</label>
<input type="password" class="password_user_signup" id="password1" name="password" />
<label for="re_password">
<?php _e("Retype Password", ET_DOMAIN) ?>
</label>
<input type="password" class="repeat_password_user_signup" id="re_password" name="re_password" />
<?php do_action( 'qa_after_signup_form' ); ?>
<div class="clearfix"></div>
<div class="gg-captcha">
<?php ae_gg_recaptcha(); ?>
</div>
<input type="submit" name="submit" value="<?php _e("Sign up", ET_DOMAIN) ?>" class="btn-submit">
<a href="javascript:void(0)" class="link_sign_in"><?php _e("Sign in", ET_DOMAIN) ?></a>
<div class="clearfix"></div>
<p class="policy-sign-up">
<?php
printf( __('By clicking "Sign up" you indicate that you have read and agree to the <a target="_blank" href="%s">privacy policy</a> and <a target="_blank" href="%s">terms of service.</a>', ET_DOMAIN), et_get_page_link('privacy'), et_get_page_link('term') );
?>
</p>
</form>
<?php } ?>
<form id="forgotpass_form" class="form_modal_style collapse">
<label><?php _e("Enter your email here", ET_DOMAIN) ?></label>
<input type="text" class="name_user" name="email" id="email" />
<input type="submit" name="submit" value="<?php _e("Send", ET_DOMAIN) ?>" class="btn-submit">
<a href="javascript:void(0)" class="return_link_sign_in"><?php _e("Sign in", ET_DOMAIN) ?></a>
</form>
</div>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment