Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.45 KB | None | 0 0
  1. <!-- Modal Login form -->
  2. <div id="kleo-login-modal" class="kleo-form-modal main-color mfp-hide">
  3. <div class="row">
  4. <div class="col-sm-12 text-center">
  5.  
  6. <?php do_action( 'kleo_before_login_form' ); ?>
  7. <?php
  8. /* Required by antispam plugins like Google Re-captcha, Invisible Re-Captcha */
  9. /* Prevent kleo_fb_button to be displayed twice on login pop-up. */
  10. remove_action( 'login_form', 'kleo_fb_button', 10 );
  11. do_action('login_form');
  12. add_action( 'login_form', 'kleo_fb_button', 10 );
  13. ?>
  14. <div class="kleo-pop-title-wrap main-color">
  15. <h3 class="kleo-pop-title"><?php esc_html_e( "Log in with your credentials", 'kleo' ); ?></h3>
  16.  
  17. <?php if ( get_option( 'users_can_register' ) ) : ?>
  18.  
  19. <p>
  20. <em><?php esc_html_e( "or", 'kleo' ); ?></em>&nbsp;&nbsp;&nbsp;&nbsp;
  21. <a href="<?php if ( function_exists( 'bp_is_active' ) ) {
  22. bp_signup_page();
  23. } else {
  24. echo wp_registration_url();
  25. } ?>" class="new-account">
  26. <?php esc_html_e( "Create an account", 'kleo' ); ?>
  27. </a>
  28. </p>
  29.  
  30. <?php endif; ?>
  31. </div>
  32.  
  33.  
  34. <?php
  35. $login_url = site_url( 'wp-login.php', 'login_post' );
  36. $redirect = apply_filters( 'kleo_modal_login_redirect', '' );
  37.  
  38. if ( ! empty( $redirect ) ) {
  39. $login_url = add_query_arg( 'redirect_to', urlencode( $redirect ), $login_url );
  40. }
  41.  
  42. ?>
  43. <form action="<?php echo esc_url( $login_url ); ?>" name="login_form" method="post"
  44. class="kleo-form-signin sq-login-form">
  45. <?php wp_nonce_field( 'kleo-ajax-login-nonce', 'sq-login-security' ); ?>
  46. <input type="text" required name="log" class="form-control sq-username" value=""
  47. placeholder="<?php esc_html_e( "Username", 'kleo' ); ?>">
  48. <input type="password" required spellcheck="false" autocomplete="off" value="" name="pwd" class="sq-password form-control"
  49. placeholder="<?php esc_html_e( "Password", 'kleo' ); ?>">
  50. <div id="kleo-login-result"></div>
  51. <button class="btn btn-lg btn-default btn-block"
  52. type="submit"><?php esc_html_e( "Sign in", 'kleo' ); ?></button>
  53. <label class="checkbox pull-left">
  54. <input class="sq-rememberme" name="rememberme" type="checkbox"
  55. value="forever"> <?php esc_html_e( "Remember me", 'kleo' ); ?>
  56. </label>
  57. <a href="#kleo-lostpass-modal"
  58. class="kleo-show-lostpass kleo-other-action pull-right"><?php esc_html_e( 'Lost your password?', 'kleo' ); ?></a>
  59. <span class="clearfix"></span>
  60.  
  61. <?php
  62. /* Required by antispam plugins like Google Re-captcha, Invisible Re-Captcha */
  63. /* Prevent kleo_fb_button to be displayed twice on login pop-up. */
  64. remove_action( 'login_form', 'kleo_fb_button', 10 );
  65. do_action('login_form');
  66. add_action( 'login_form', 'kleo_fb_button', 10 );
  67. ?>
  68. <?php do_action( 'kleo_after_login_form' ); ?>
  69.  
  70. </form>
  71.  
  72. </div>
  73. </div>
  74. </div><!-- END Modal Login form -->
  75.  
  76.  
  77. <!-- Modal Lost Password form -->
  78. <div id="kleo-lostpass-modal" class="kleo-form-modal main-color mfp-hide">
  79. <div class="row">
  80. <div class="col-sm-12 text-center">
  81. <div class="kleo-pop-title-wrap alternate-color">
  82. <h3 class="kleo-pop-title"><?php esc_html_e( "Forgot your details?", 'kleo' ); ?></h3>
  83. </div>
  84.  
  85. <?php do_action( 'kleo_before_lostpass_form' ); ?>
  86.  
  87. <form name="forgot_form" action="" method="post" class="sq-forgot-form kleo-form-signin">
  88. <?php wp_nonce_field( 'kleo-ajax-login-nonce', 'security-pass' ); ?>
  89. <input type="text" required name="user_login" class="sq-forgot-email form-control"
  90. placeholder="<?php esc_html_e( "Username or Email", 'kleo' ); ?>">
  91. <div id="kleo-lost-result"></div>
  92. <button class="btn btn-lg btn-default btn-block"
  93. type="submit"><?php esc_html_e( "Reset Password", 'kleo' ); ?></button>
  94. <a href="#kleo-login-modal"
  95. class="kleo-show-login kleo-other-action pull-right"><?php esc_html_e( 'I remember my details', 'kleo' ); ?></a>
  96. <span class="clearfix"></span>
  97. </form>
  98.  
  99. </div>
  100. </div>
  101. </div><!-- END Modal Lost Password form -->
  102.  
  103.  
  104. <?php if ( get_option( 'users_can_register' ) ) : ?>
  105. <!-- Modal Register form -->
  106. <div id="kleo-register-modal" class="kleo-form-modal main-color mfp-hide">
  107. <div class="row">
  108. <div class="col-md-12 text-center">
  109.  
  110. <?php do_action( 'kleo_before_register_form_modal' ); ?>
  111.  
  112. <div class="kleo-pop-title-wrap main-color">
  113. <h3 class="kleo-pop-title"><?php esc_html_e( "Create Account", 'kleo' ); ?></h3>
  114. </div>
  115.  
  116. <form id="register_form" class="kleo-form-register"
  117. action="<?php if ( function_exists( 'bp_is_active' ) ) {
  118. bp_signup_page();
  119. } else {
  120. echo wp_registration_url();
  121. } ?>" name="signup_form" method="post">
  122. <div class="row">
  123. <?php if ( function_exists( 'bp_is_active' ) ) { ?>
  124. <div class="col-sm-6">
  125. <input type="text" id="reg-username" name="signup_username" class="form-control"
  126. required placeholder="<?php esc_html_e( "Username", 'kleo' ); ?>">
  127. </div>
  128. <div class="col-sm-6">
  129. <input type="text" id="full-name" name="field_1" class="form-control" required
  130. placeholder="<?php esc_html_e( "Your full name", 'kleo' ); ?>">
  131. </div>
  132. <div class="clear"></div>
  133. <div class="col-sm-12">
  134. <input type="text" id="reg-email" name="signup_email" class="form-control" required
  135. placeholder="<?php esc_html_e( "Your email", 'kleo' ); ?>">
  136. </div>
  137. <div class="clear"></div>
  138. <div class="col-sm-6">
  139. <input type="password" id="reg-password" name="signup_password" class="form-control"
  140. required placeholder="<?php esc_html_e( "Desired password", 'kleo' ); ?>">
  141. </div>
  142. <div class="col-sm-6">
  143. <input type="password" id="confirm_password" name="signup_password_confirm"
  144. class="form-control" required
  145. placeholder="<?php esc_html_e( "Confirm password", 'kleo' ); ?>">
  146. </div>
  147. <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids"
  148. value="1"/>
  149. <?php wp_nonce_field( 'bp_new_signup' ); ?>
  150. <?php } else { ?>
  151. <div class="col-sm-12">
  152. <input type="text" id="reg-username" name="user_login" class="form-control" required
  153. placeholder="<?php esc_html_e( "Username", 'kleo' ); ?>">
  154. </div>
  155. <div class="col-sm-12">
  156. <input type="text" id="reg-email" name="user_email" class="form-control" required
  157. placeholder="<?php esc_html_e( "Your email", 'kleo' ); ?>">
  158. </div>
  159. <?php } ?>
  160. </div>
  161. <button class="btn btn-lg btn-default btn-block" name="signup_submit"
  162. type="submit"><?php esc_html_e( "Register", 'kleo' ); ?></button>
  163. <span class="clearfix"></span>
  164. </form>
  165.  
  166. </div>
  167. </div>
  168. </div><!-- END Modal Register form -->
  169. <?php endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement