Changeset 2982212
- Timestamp:
- 10/22/2023 12:12:56 PM (9 months ago)
- Location:
- personalize-login/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
personalize-login/trunk/personalize-login.php
r2814105 r2982212 4 4 * Plugin Name: Personalize Login 5 5 * Description: A plugin that replaces the WordPress login flow with a custom page. 6 * Version: 1.1. 26 * Version: 1.1. 7 7 * Author: Jose Lazo 8 8 * License: GPL-2.0+ … … 26 26 */ 27 27 defined('ABSPATH') or die('Bad dog. No biscuit!'); 28 29 30 31 32 28 33 29 34 … … 43 48 { 44 49 //Shortcodes 45 add_shortcode('custom-login-form', array($this, 'render_login_form')); 46 add_shortcode('account-info', array($this, 'render_account_info')); 47 add_shortcode('custom-register-form', array($this, 'render_register_form')); 48 add_shortcode('custom-password-reset-form', array($this, 'render_password_reset_form')); 49 add_shortcode('custom-password-lost-form', array($this, 'render_password_lost_form')); 50 add_shortcode('custom-login-form', array($this, 'pl_render_login_form')); 51 add_shortcode('account-info', array($this, 'pl_render_account_info')); 52 add_shortcode('custom-register-form', array($this, 'pl_render_register_form')); 53 add_shortcode('custom-password-reset-form', array($this, 'pl_render_password_reset_form')); 54 add_shortcode('custom-password-lost-form', array($this, 'pl_render_password_lost_form')); 55 50 56 //Actions 51 57 add_action('init', array($this, 'personalize_login_translate')); 52 add_action('login_form_login', array($this, ' redirect_to_custom_login'));53 add_action('wp_logout', array($this, ' redirect_after_logout'));54 add_action('login_form_register', array($this, ' redirect_to_custom_register'));55 add_action('login_form_register', array($this, ' do_register_user'));56 add_action('login_form_rp', array($this, ' redirect_to_custom_password_reset'));57 add_action('login_form_resetpass', array($this, ' redirect_to_custom_password_reset'));58 add_action('login_form_rp', array($this, ' do_password_reset'));59 add_action('login_form_resetpass', array($this, ' do_password_reset'));60 add_action('login_form_lostpassword', array($this, ' redirect_to_custom_lostpassword'));61 add_action('login_form_lostpassword', array($this, ' do_password_lost'));58 add_action('login_form_login', array($this, 'redirect_to_custom_login')); 59 add_action('wp_logout', array($this, 'redirect_after_logout')); 60 add_action('login_form_register', array($this, 'redirect_to_custom_register')); 61 add_action('login_form_register', array($this, 'do_register_user')); 62 add_action('login_form_rp', array($this, 'redirect_to_custom_password_reset')); 63 add_action('login_form_resetpass', array($this, 'redirect_to_custom_password_reset')); 64 add_action('login_form_rp', array($this, 'do_password_reset')); 65 add_action('login_form_resetpass', array($this, 'do_password_reset')); 66 add_action('login_form_lostpassword', array($this, 'redirect_to_custom_lostpassword')); 67 add_action('login_form_lostpassword', array($this, 'do_password_lost')); 62 68 //Filters 63 add_filter('authenticate', array($this, ' maybe_redirect_at_authenticate'), 101, 3);64 add_filter('login_redirect', array($this, ' redirect_after_login'), 10, 3);65 add_filter('retrieve_password_message', array($this, ' replace_retrieve_password_message'), 10, 4);69 add_filter('authenticate', array($this, 'maybe_redirect_at_authenticate'), 101, 3); 70 add_filter('login_redirect', array($this, 'redirect_after_login'), 10, 3); 71 add_filter('retrieve_password_message', array($this, 'replace_retrieve_password_message'), 10, 4); 66 72 } 67 73 … … 73 79 function personalize_login_translate() 74 80 { 75 $domain = 'personalize-login';81 $domain = ; 76 82 $locale = apply_filters('plugin_locale', get_locale(), $domain); 77 83 load_textdomain($domain, trailingslashit(WP_LANG_DIR) . $domain . '/' . $domain . '-' . $locale . '.mo'); 78 load_plugin_textdomain($domain, FALSE, basename(dirname(__FILE__)) . '/languages');84 load_plugin_textdomain($domain, , basename(dirname(__FILE__)) . '/languages'); 79 85 } 80 86 … … 90 96 $page_definitions = array( 91 97 'member-login' => array( 92 'title' => __('Sign In', 'personalize-login'),98 'title' => ), 93 99 'content' => '[custom-login-form]' 94 100 ), 95 101 'member-account' => array( 96 'title' => __('Your Account', 'personalize-login'),102 'title' => ), 97 103 'content' => '[account-info]' 98 104 ), 99 105 'member-register' => array( 100 'title' => __('Register', 'personalize-login'),106 'title' => ), 101 107 'content' => '[custom-register-form]' 102 108 ), 103 109 'member-password-lost' => array( 104 'title' => __('Forgot Your Password?', 'personalize-login'),110 'title' => ), 105 111 'content' => '[custom-password-lost-form]' 106 112 ), 107 113 'member-password-reset' => array( 108 'title' => __('Pick a New Password', 'personalize-login'),114 'title' => ), 109 115 'content' => '[custom-password-reset-form]' 110 116 ) … … 118 124 wp_insert_post( 119 125 array( 120 'post_content' => $page['content'],121 'post_name' => $slug,122 'post_title' => $page['title'],126 'post_content' => , 127 'post_name' => , 128 'post_title' => , 123 129 'post_status' => 'publish', 124 130 'post_type' => 'page', … … 140 146 * @return string The shortcode output 141 147 */ 142 public function render_login_form($attributes, $content = null)148 public function render_login_form($attributes, $content = null) 143 149 { 144 150 // Parse shortcode attributes … … 148 154 149 155 if (is_user_logged_in()) { 150 return __('You are already signed in.', 'personalize-login');156 return ); 151 157 } 152 158 … … 161 167 $errors = array(); 162 168 if (isset($_REQUEST['login'])) { 163 $error_codes = explode(',', $_REQUEST['login']);169 $error_codes = explode(',', ); 164 170 165 171 foreach ($error_codes as $code) { … … 180 186 // Render the login form using an external template 181 187 return $this->get_template_html('login_form', $attributes); 182 } // end render_login_form188 } // end render_login_form 183 189 184 190 … … 191 197 * @return string The shortcode output 192 198 */ 193 public function render_account_info($attributes, $content = null)199 public function render_account_info($attributes, $content = null) 194 200 { 195 201 // Parse shortcode attributes … … 199 205 200 206 if (!is_user_logged_in()) { 201 return __('You are not signed in yet.', 'personalize-login');207 return ); 202 208 } 203 209 204 210 $errors = array(); 205 211 if (isset($_REQUEST['login'])) { 206 $error_codes = explode(',', $_REQUEST['login']);212 $error_codes ); 207 213 208 214 foreach ($error_codes as $code) { … … 249 255 * Redirect the user to the custom login page instead of wp-login.php. 250 256 */ 251 function redirect_to_custom_login()257 function redirect_to_custom_login() 252 258 { 253 259 if ($_SERVER['REQUEST_METHOD'] == 'GET') { 254 $redirect_to = isset($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to']: null;260 $redirect_to = isset($_REQUEST['redirect_to']) ? : null; 255 261 256 262 if (is_user_logged_in()) { … … 301 307 * @return Wp_User|Wp_Error The logged in user, or error information if there were errors. 302 308 */ 303 function maybe_redirect_at_authenticate($user, $username, $password)309 function maybe_redirect_at_authenticate($user, $username, $password) 304 310 { 305 311 // Check if the earlier authenticate filter (most likely, … … 331 337 switch ($error_code) { 332 338 case 'empty_username': 333 return __('You do have an email address, right?', 'personalize-login');339 return ); 334 340 335 341 case 'empty_password': 336 return __('You need to enter a password to login.', 'personalize-login');342 return ); 337 343 338 344 case 'invalid_username': 339 return __(345 return ( 340 346 "We don't have any users with that email address. Maybe you used a different one when signing up?", 341 'personalize-login'347 342 348 ); 343 349 344 350 case 'incorrect_password': 345 $err = __(351 $err = ( 346 352 "The password you entered wasn't quite right. <a href='%s'>Did you forget your password</a>?", 347 'personalize-login'353 348 354 ); 349 355 return sprintf($err, wp_lostpassword_url()); … … 352 358 case 'expiredkey': 353 359 case 'invalidkey': 354 return __('The password reset link you used is not valid anymore.', 'personalize-login');360 return ); 355 361 356 362 case 'password_reset_mismatch': 357 return __("The two passwords you entered don't match.", 'personalize-login');363 return ); 358 364 359 365 case 'password_reset_empty': 360 return __("Sorry, we don't accept empty passwords.", 'personalize-login');366 return ); 361 367 362 368 default: … … 365 371 // Lost password 366 372 case 'empty_username': 367 return __('You need to enter your email address to continue.', 'personalize-login');373 return ); 368 374 369 375 case 'invalid_email': 370 376 case 'invalidcombo': 371 return __('There are no users registered with this email address.', 'personalize-login');372 } 373 374 return __('An unknown error occurred. Please try again later.', 'personalize-login');377 return ); 378 } 379 380 return ; 375 381 } 376 382 … … 379 385 * Redirect to custom login page after the user has been logged out. 380 386 */ 381 public function redirect_after_logout()387 public function redirect_after_logout() 382 388 { 383 389 $redirect_url = home_url('member-login?logged_out=true'); … … 396 402 * @return string Redirect URL 397 403 */ 398 public function redirect_after_login($redirect_to, $requested_redirect_to, $user)404 public function redirect_after_login($redirect_to, $requested_redirect_to, $user) 399 405 { 400 406 $redirect_url = home_url(); … … 428 434 * @return string The shortcode output 429 435 */ 430 public function render_register_form($attributes, $content = null)436 public function render_register_form($attributes, $content = null) 431 437 { 432 438 // Parse shortcode attributes … … 435 441 436 442 if (is_user_logged_in()) { 437 return __('You are already signed in.', 'personalize-login');443 return ); 438 444 } elseif (!get_option('users_can_register')) { 439 return __('Registering new users is currently not allowed.', 'personalize-login');445 return ); 440 446 } else { 441 447 return $this->get_template_html('register_form', $attributes); … … 448 454 * of wp-login.php?action=register. 449 455 */ 450 public function redirect_to_custom_register()456 public function redirect_to_custom_register() 451 457 { 452 458 if ('GET' == $_SERVER['REQUEST_METHOD']) { … … 511 517 * when accessed through the registration action. 512 518 */ 513 public function do_register_user()519 public function do_register_user() 514 520 { 515 521 if ('POST' == $_SERVER['REQUEST_METHOD']) { … … 547 553 * if there are errors. 548 554 */ 549 public function redirect_to_custom_password_reset()555 public function redirect_to_custom_password_reset() 550 556 { 551 557 if ('GET' == $_SERVER['REQUEST_METHOD']) { 552 558 // Verify key / login combo 553 $user = check_password_reset_key($_REQUEST['key'], $_REQUEST['login']);559 $user = check_password_reset_key($_REQUEST['key'], ); 554 560 if (!$user || is_wp_error($user)) { 555 561 if ($user && $user->get_error_code() === 'expired_key') { … … 579 585 * @return string The shortcode output 580 586 */ 581 public function render_password_reset_form($attributes, $content = null)587 public function render_password_reset_form($attributes, $content = null) 582 588 { 583 589 // Parse shortcode attributes … … 586 592 587 593 if (is_user_logged_in()) { 588 return __('You are already signed in.', 'personalize-login');594 return ); 589 595 } else { 590 596 if (isset($_REQUEST['login']) && isset($_REQUEST['key'])) { … … 605 611 return $this->get_template_html('password_reset_form', $attributes); 606 612 } else { 607 return __('Invalid password reset link.', 'personalize-login');613 return ); 608 614 } 609 615 } … … 619 625 * @return string The shortcode output 620 626 */ 621 public function render_password_lost_form($attributes, $content = null)627 public function render_password_lost_form($attributes, $content = null) 622 628 { 623 629 // Parse shortcode attributes … … 636 642 637 643 if (is_user_logged_in()) { 638 return __('You are already signed in.', 'personalize-login');644 return ); 639 645 } else { 640 646 return $this->get_template_html('password_lost_form', $attributes); … … 646 652 * Resets the user's password if the password reset form was submitted. 647 653 */ 648 public function do_password_reset()654 public function do_password_reset() 649 655 { 650 656 if ('POST' == $_SERVER['REQUEST_METHOD']) { … … 704 710 * wp-login.php?action=lostpassword. 705 711 */ 706 public function redirect_to_custom_lostpassword()712 public function redirect_to_custom_lostpassword() 707 713 { 708 714 if ('GET' == $_SERVER['REQUEST_METHOD']) { … … 721 727 * Initiates password reset. 722 728 */ 723 public function do_password_lost()729 public function do_password_lost() 724 730 { 725 731 if ('POST' == $_SERVER['REQUEST_METHOD']) { … … 752 758 * @return string The mail message to send. 753 759 */ 754 public function replace_retrieve_password_message($message, $key, $user_login, $user_data)760 public function replace_retrieve_password_message($message, $key, $user_login, $user_data) 755 761 { 756 762 // Create new message 757 $msg = __('Hello!', 'personalize-login') . "\r\n\r\n";758 $msg .= sprintf( __('You asked us to reset your password for your account using the email address %s.', 'personalize-login'), $user_login) . "\r\n\r\n";759 $msg .= __("If this was a mistake, or you didn't ask for a password reset, just ignore this email and nothing will happen.", 'personalize-login') . "\r\n\r\n";760 $msg .= __('To reset your password, visit the following address:', 'personalize-login') . "\r\n\r\n";763 $msg = ) . "\r\n\r\n"; 764 $msg .= sprintf(), $user_login) . "\r\n\r\n"; 765 $msg .= ) . "\r\n\r\n"; 766 $msg .= ) . "\r\n\r\n"; 761 767 $msg .= site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . "\r\n\r\n"; 762 $msg .= __('Thanks!', 'personalize-login') . "\r\n";768 $msg .= ) . "\r\n"; 763 769 764 770 return $msg; … … 794 800 { 795 801 add_options_page( 796 __('Personalize Login Settings', 'personalize-login'),797 __('Personalize Login Settings Menu', 'personalize-login'),802 ), 803 ), 798 804 'manage_options', 799 805 'options_page_plogin_menu', … … 814 820 <?php // screen_icon(); 815 821 ?> 816 <h2><?php // _e('PLogin Plugin Options', 'personalize-login');822 <h2><?php // ); 817 823 ?></h2> 818 824 <form method="post" action="options.php"> 819 825 <?php // settings_fields('plogin_options_group'); 820 826 ?> 821 <h3><?php // _e('Look options', 'personalize-login');827 <h3><?php // ); 822 828 ?></h3> 823 <p><?php // _e('Login page', 'personalize-login');829 <p><?php // ); 824 830 ?></p> 825 831 <table> 826 832 <tr valign="top"> 827 <th scope="row"><label for="plogin_image_login"><?php // _e('Image login', 'personalize-login');833 <th scope="row"><label for="plogin_image_login"><?php // ); 828 834 ?></label></th> 829 835 <td><input type="file" id="plogin_image_login" name="plogin_image_login" value="<?php // echo get_option('plogin_image_login'); … … 831 837 </tr> 832 838 <tr valign="top"> 833 <th scope="row"><label for="plogin_text_before_login"><?php // _e('Text before login form', 'personalize-login');839 <th scope="row"><label for="plogin_text_before_login"><?php // ); 834 840 ?></label></th> 835 841 <td><input type="text" id="plogin_text_before_login" name="plogin_text_before_login" value="<?php // echo get_option('plogin_text_before_login'); … … 837 843 </tr> 838 844 <tr valign="top"> 839 <th scope="row"><label for="plogin_text_after_login"><?php // _e('Text after login form', 'personalize-login');845 <th scope="row"><label for="plogin_text_after_login"><?php // ); 840 846 ?></label></th> 841 847 <td><input type="text" id="plogin_text_after_login" name="plogin_text_after_login" value="<?php // echo get_option('plogin_text_after_login'); … … 843 849 </tr> 844 850 </table> 845 <p><?php // _e('Register page', 'personalize-login');851 <p><?php // ); 846 852 ?></p> 847 853 <table> 848 854 <tr valign="top"> 849 <th scope="row"><label for="plogin_image_register"><?php // _e('Image register', 'personalize-login');855 <th scope="row"><label for="plogin_image_register"><?php // ); 850 856 ?></label></th> 851 857 <td><input type="file" id="plogin_image_register" name="plogin_image_register" value="<?php // echo get_option('plogin_image_register'); … … 853 859 </tr> 854 860 <tr valign="top"> 855 <th scope="row"><label for="plogin_text_before_register"><?php // _e('Text before register form', 'personalize-login');861 <th scope="row"><label for="plogin_text_before_register"><?php // ); 856 862 ?></label></th> 857 863 <td><input type="text" id="plogin_text_before_register" name="plogin_text_before_register" value="<?php // echo get_option('plogin_text_before_register'); … … 859 865 </tr> 860 866 <tr valign="top"> 861 <th scope="row"><label for="plogin_text_after_register"><?php // _e('Text after register form', 'personalize-login');867 <th scope="row"><label for="plogin_text_after_register"><?php // ); 862 868 ?></label></th> 863 869 <td><input type="text" id="plogin_text_after_register" name="plogin_text_after_register" value="<?php // echo get_option('plogin_text_after_register'); -
personalize-login/trunk/readme.txt
r2814105 r2982212 3 3 Tags: login, log in, signin, sig in, register, password, reset password, custom login, personalize login 4 4 Requires at least: 4.2 5 Tested up to: 6. 16 Stable tag: 5.35 Tested up to: 6. 6 Stable tag: .3 7 7 Requires PHP: 5.6 8 8 License: GPLv2 or later … … 38 38 == Changelog == 39 39 40 41 42 43 44 40 45 = 1.1.2 = 41 46 * Fix member-password-reset redirect -
personalize-login/trunk/templates/account_info.php
r2814082 r2982212 1 1 <div class="account-container"> 2 2 <?php if ($attributes['show_title']) : ?> 3 <h2><?php _e('Sign In', 'personalize-login'); ?></h2>3 <h2><?php _e('Sign In', 'personalize-login'); ?></h2> 4 4 <?php endif; ?> 5 5 … … 16 16 $current_user = wp_get_current_user(get_current_user_id()); 17 17 $user_info = get_userdata($current_user->ID); 18 $user_meta = get_user_meta(get_current_user_id(), false); 19 $username = $user_info->user_login; 20 $first_name = $user_info->first_name; 21 $last_name = $user_info->last_name; 18 $user_meta = get_user_meta(get_current_user_id()); 22 19 ?> 23 20 <div> 24 <h2><?php echo $ first_name . $last_name; ?></h2>21 <h2><?php echo $last_name; ?></h2> 25 22 <ul> 26 <li><b><?php _e('Nickname', 'personalize-login'); ?></b>: <?php echo $username; ?></li>27 <li><b><?php _e('Login', 'personalize-login'); ?></b>: <?php echo $user_info->user_login; ?></li>28 <li><b><?php _e('Nicename', 'personalize-login'); ?></b>: <?php echo $user_info->user_nicename; ?></li>29 <li><b><?php _e('Email', 'personalize-login'); ?></b>: <?php echo $user_info->user_email; ?></li>30 <li><b><?php _e('URL', 'personalize-login'); ?></b>: <?php echo $user_info->user_url; ?></li>31 <li><b><?php _e('Register date', 'personalize-login'); ?></b>: <?php echo $user_info->user_registered; ?></li>32 <li><b><?php _e('Display Name', 'personalize-login'); ?></b>: <?php echo $user_info->display_name; ?></li>23 <li><b><?php ; ?></li> 24 <li><b><?php _e('Login', 'personalize-login'); ?></b>: <?php echo $user_info->user_login; ?></li> 25 <li><b><?php _e('Nicename', 'personalize-login'); ?></b>: <?php echo $user_info->user_nicename; ?></li> 26 <li><b><?php _e('Email', 'personalize-login'); ?></b>: <?php echo $user_info->user_email; ?></li> 27 <li><b><?php _e('URL', 'personalize-login'); ?></b>: <?php echo $user_info->user_url; ?></li> 28 <li><b><?php _e('Register date', 'personalize-login'); ?></b>: <?php echo $user_info->user_registered; ?></li> 29 <li><b><?php _e('Display Name', 'personalize-login'); ?></b>: <?php echo $user_info->display_name; ?></li> 33 30 </ul> 34 31 </div> -
personalize-login/trunk/templates/login_form.php
r2814082 r2982212 1 1 <div class="login-form-container"> 2 2 <?php if ($attributes['show_title']) : ?> 3 <h2><?php _e('Sign In', 'personalize-login'); ?></h2>3 <h2><?php _e('Sign In', 'personalize-login'); ?></h2> 4 4 <?php endif; ?> 5 5 … … 16 16 <?php if ($attributes['logged_out']) : ?> 17 17 <p class="login-info"> 18 <?php _e('You have signed out. Would you like to sign in again?', 'personalize-login'); ?>18 <?php _e('You have signed out. Would you like to sign in again?', 'personalize-login'); ?> 19 19 </p> 20 20 <?php endif; ?> … … 23 23 <?php if ($attributes['password_updated']) : ?> 24 24 <p class="login-info"> 25 <?php _e('Your password has been changed. You can sign in now.', 'personalize-login'); ?>25 <?php _e('Your password has been changed. You can sign in now.', 'personalize-login'); ?> 26 26 </p> 27 27 <?php endif; ?> … … 30 30 wp_login_form( 31 31 array( 32 'label_username' => __('Email', 'personalize-login'),33 'label_log_in' => __('Sign In', 'personalize-login'),32 'label_username' => ('Email', 'personalize-login'), 33 'label_log_in' => ('Sign In', 'personalize-login'), 34 34 'redirect' => $attributes['redirect'], 35 35 ) … … 38 38 39 39 <a class="forgot-password" href="<?php echo wp_lostpassword_url(); ?>"> 40 <?php _e('Forgot your password?', 'personalize-login'); ?>40 <?php _e('Forgot your password?', 'personalize-login'); ?> 41 41 </a> 42 42 </div> … … 46 46 ?>"> 47 47 <p class="login-username"> 48 <label for="user_login"><?php // _e( 'Email', 'personalize-login' );48 <label for="user_login"><?php // _e( 'Email', 'personalize-login' ); 49 49 ?></label> 50 50 <input type="text" name="log" id="user_login"> 51 51 </p> 52 52 <p class="login-password"> 53 <label for="user_pass"><?php // _e( 'Password', 'personalize-login' );53 <label for="user_pass"><?php // _e( 'Password', 'personalize-login' ); 54 54 ?></label> 55 55 <input type="password" name="pwd" id="user_pass"> 56 56 </p> 57 57 <p class="login-submit"> 58 <input type="submit" value="<?php // _e( 'Sign In', 'personalize-login' );58 <input type="submit" value="<?php // _e( 'Sign In', 'personalize-login' ); 59 59 ?>"> 60 60 </p> -
personalize-login/trunk/templates/password_lost_form.php
r2814082 r2982212 1 1 <div id="password-lost-form" class="widecolumn"> 2 <?php if ( $attributes['show_title']) : ?>3 <h3><?php _e('Forgot Your Password?', 'personalize-login'); ?></h3>2 <?php if () : ?> 3 <h3><?php _e('Forgot Your Password?', 'personalize-login'); ?></h3> 4 4 <?php endif; ?> 5 5 6 <?php if ( $attributes['lost_password_sent']) : ?>6 <?php if () : ?> 7 7 <p class="login-info"> 8 <?php _e('Check your email for a link to reset your password.', 'personalize-login'); ?>8 <?php _e('Check your email for a link to reset your password.', 'personalize-login'); ?> 9 9 </p> 10 10 <?php endif; ?> … … 20 20 <p> 21 21 <?php 22 _e(22 _e( 23 23 "Enter your email address and we'll send you a link you can use to pick a new password.", 24 24 'personalize-login' … … 29 29 <form id="lostpasswordform" action="<?php echo wp_lostpassword_url(); ?>" method="post"> 30 30 <p class="form-row"> 31 <label for="user_login"><?php _e('Email', 'personalize-login'); ?>31 <label for="user_login"><?php _e('Email', 'personalize-login'); ?> 32 32 <input type="text" name="user_login" id="user_login"> 33 33 </p> 34 34 35 35 <p class="lostpassword-submit"> 36 <input type="submit" name="submit" class="lostpassword-button" value="<?php _e('Reset Password', 'personalize-login'); ?>" />36 <input type="submit" name="submit" class="lostpassword-button" value="<?php _e('Reset Password', 'personalize-login'); ?>" /> 37 37 </p> 38 38 </form> -
personalize-login/trunk/templates/password_reset_form.php
r2814082 r2982212 1 1 <div id="password-reset-form" class="widecolumn"> 2 2 <?php if ($attributes['show_title']) : ?> 3 <h3><?php _e('Pick a New Password', 'personalize-login'); ?></h3>3 <h3><?php _e('Pick a New Password', 'personalize-login'); ?></h3> 4 4 <?php endif; ?> 5 5 … … 17 17 18 18 <p> 19 <label for="pass1"><?php _e('New password', 'personalize-login') ?></label>19 <label for="pass1"><?php _e('New password', 'personalize-login') ?></label> 20 20 <input type="password" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" /> 21 21 </p> 22 22 <p> 23 <label for="pass2"><?php _e('Repeat new password', 'personalize-login') ?></label>23 <label for="pass2"><?php _e('Repeat new password', 'personalize-login') ?></label> 24 24 <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" /> 25 25 </p> … … 28 28 29 29 <p class="resetpass-submit"> 30 <input type="submit" name="submit" id="resetpass-button" class="button" value="<?php _e('Reset Password', 'personalize-login'); ?>" />30 <input type="submit" name="submit" id="resetpass-button" class="button" value="<?php _e('Reset Password', 'personalize-login'); ?>" /> 31 31 </p> 32 32 </form> -
personalize-login/trunk/templates/register_form.php
r2814082 r2982212 1 1 <div id="register-form" class="widecolumn"> 2 2 <?php if ($attributes['show_title']) : ?> 3 <h3><?php _e('Register', 'personalize-login'); ?></h3>3 <h3><?php _e('Register', 'personalize-login'); ?></h3> 4 4 <?php endif; ?> 5 5 6 6 <form id="signupform" action="<?php echo wp_registration_url(); ?>" method="post"> 7 7 <p class="form-row"> 8 <label for="email"><?php _e('Email', 'personalize-login'); ?> <strong>*</strong></label>8 <label for="email"><?php _e('Email', 'personalize-login'); ?> <strong>*</strong></label> 9 9 <input type="text" name="email" id="email"> 10 10 </p> 11 11 12 12 <p class="form-row"> 13 <label for="first_name"><?php _e('First name', 'personalize-login'); ?></label>13 <label for="first_name"><?php _e('First name', 'personalize-login'); ?></label> 14 14 <input type="text" name="first_name" id="first-name"> 15 15 </p> 16 16 17 17 <p class="form-row"> 18 <label for="last_name"><?php _e('Last name', 'personalize-login'); ?></label>18 <label for="last_name"><?php _e('Last name', 'personalize-login'); ?></label> 19 19 <input type="text" name="last_name" id="last-name"> 20 20 </p> 21 21 22 22 <p class="form-row" style="position: relative;"> 23 <label for="pass1"><?php _e('New password', 'personalize-login'); ?></label>23 <label for="pass1"><?php _e('New password', 'personalize-login'); ?></label> 24 24 <input type="password" name="pass1" placeholder="Password" id="password-field"><span toggle="#password-field" class="fa fa-fw fa-eye field-icon toggle-password"></span> 25 25 </p> 26 26 27 27 <p class="form-row" style="position: relative;"> 28 <label for="pass1"><?php _e('Repeat the password', 'personalize-login'); ?></label>28 <label for="pass1"><?php _e('Repeat the password', 'personalize-login'); ?></label> 29 29 <input type="password" name="pass2" placeholder="Repeat password" id="password-field-2"><span toggle="#password-field-2" class="fa fa-fw fa-eye field-icon toggle-password-2"></span> 30 30 </p> 31 31 32 32 <div id="pass-notice" class="hide"> 33 <span class="alert alert-danger"><?php _e('The two passwords you entered don\'t match.', 'personalize-login'); ?></span>33 <span class="alert alert-danger"><?php _e('The two passwords you entered don\'t match.', 'personalize-login'); ?></span> 34 34 </div> 35 35 36 36 <p class="signup-submit"> 37 <input type="submit" name="submit" class="register-button" value="<?php _e('Register', 'personalize-login'); ?>" />37 <input type="submit" name="submit" class="register-button" value="<?php _e('Register', 'personalize-login'); ?>" /> 38 38 </p> 39 39 </form>
Note: See TracChangeset
for help on using the changeset viewer.