Plugin Directory

Changeset 2982212

Timestamp:
10/22/2023 12:12:56 PM (9 months ago)
Author:
Jose Lazo
Message:

Version 1.1.3

Location:
personalize-login/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • personalize-login/trunk/personalize-login.php

    r2814105 r2982212  
    44 * Plugin Name:       Personalize Login
    55 * Description:       A plugin that replaces the WordPress login flow with a custom page.
    6  * Version:           1.1.2
     6 * Version:           1.1.
    77 * Author:            Jose Lazo
    88 * License:           GPL-2.0+
     
    2626 */
    2727defined('ABSPATH') or die('Bad dog. No biscuit!');
     28
     29
     30
     31
     32
    2833
    2934
     
    4348    {
    4449        //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       
    5056        //Actions
    5157        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'));
    6268        //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);
    6672    }
    6773
     
    7379    function personalize_login_translate()
    7480    {
    75         $domain = 'personalize-login';
     81        $domain = ;
    7682        $locale = apply_filters('plugin_locale', get_locale(), $domain);
    7783        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');
    7985    }
    8086
     
    9096        $page_definitions = array(
    9197            'member-login' => array(
    92                 'title' => __('Sign In', 'personalize-login'),
     98                'title' => ),
    9399                'content' => '[custom-login-form]'
    94100            ),
    95101            'member-account' => array(
    96                 'title' => __('Your Account', 'personalize-login'),
     102                'title' => ),
    97103                'content' => '[account-info]'
    98104            ),
    99105            'member-register' => array(
    100                 'title' => __('Register', 'personalize-login'),
     106                'title' => ),
    101107                'content' => '[custom-register-form]'
    102108            ),
    103109            'member-password-lost' => array(
    104                 'title' => __('Forgot Your Password?', 'personalize-login'),
     110                'title' => ),
    105111                'content' => '[custom-password-lost-form]'
    106112            ),
    107113            'member-password-reset' => array(
    108                 'title' => __('Pick a New Password', 'personalize-login'),
     114                'title' => ),
    109115                'content' => '[custom-password-reset-form]'
    110116            )
     
    118124                wp_insert_post(
    119125                    array(
    120                         'post_content'   => $page['content'],
    121                         'post_name'      => $slug,
    122                         'post_title'     => $page['title'],
     126                        'post_content'   => ,
     127                        'post_name'      => ,
     128                        'post_title'     => ,
    123129                        'post_status'    => 'publish',
    124130                        'post_type'      => 'page',
     
    140146     * @return string  The shortcode output
    141147     */
    142     public function render_login_form($attributes, $content = null)
     148    public function render_login_form($attributes, $content = null)
    143149    {
    144150        // Parse shortcode attributes
     
    148154
    149155        if (is_user_logged_in()) {
    150             return __('You are already signed in.', 'personalize-login');
     156            return );
    151157        }
    152158
     
    161167        $errors = array();
    162168        if (isset($_REQUEST['login'])) {
    163             $error_codes = explode(',', $_REQUEST['login']);
     169            $error_codes = explode(',', );
    164170
    165171            foreach ($error_codes as $code) {
     
    180186        // Render the login form using an external template
    181187        return $this->get_template_html('login_form', $attributes);
    182     } // end render_login_form
     188    } // end render_login_form
    183189
    184190
     
    191197     * @return string  The shortcode output
    192198     */
    193     public function render_account_info($attributes, $content = null)
     199    public function render_account_info($attributes, $content = null)
    194200    {
    195201        // Parse shortcode attributes
     
    199205
    200206        if (!is_user_logged_in()) {
    201             return __('You are not signed in yet.', 'personalize-login');
     207            return );
    202208        }
    203209
    204210        $errors = array();
    205211        if (isset($_REQUEST['login'])) {
    206             $error_codes = explode(',', $_REQUEST['login']);
     212            $error_codes );
    207213
    208214            foreach ($error_codes as $code) {
     
    249255     * Redirect the user to the custom login page instead of wp-login.php.
    250256     */
    251     function redirect_to_custom_login()
     257    function redirect_to_custom_login()
    252258    {
    253259        if ($_SERVER['REQUEST_METHOD'] == 'GET') {
    254             $redirect_to = isset($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to'] : null;
     260            $redirect_to = isset($_REQUEST['redirect_to']) ? : null;
    255261
    256262            if (is_user_logged_in()) {
     
    301307     * @return Wp_User|Wp_Error The logged in user, or error information if there were errors.
    302308     */
    303     function maybe_redirect_at_authenticate($user, $username, $password)
     309    function maybe_redirect_at_authenticate($user, $username, $password)
    304310    {
    305311        // Check if the earlier authenticate filter (most likely,
     
    331337        switch ($error_code) {
    332338            case 'empty_username':
    333                 return __('You do have an email address, right?', 'personalize-login');
     339                return );
    334340
    335341            case 'empty_password':
    336                 return __('You need to enter a password to login.', 'personalize-login');
     342                return );
    337343
    338344            case 'invalid_username':
    339                 return __(
     345                return (
    340346                    "We don't have any users with that email address. Maybe you used a different one when signing up?",
    341                     'personalize-login'
     347                   
    342348                );
    343349
    344350            case 'incorrect_password':
    345                 $err = __(
     351                $err = (
    346352                    "The password you entered wasn't quite right. <a href='%s'>Did you forget your password</a>?",
    347                     'personalize-login'
     353                   
    348354                );
    349355                return sprintf($err, wp_lostpassword_url());
     
    352358            case 'expiredkey':
    353359            case 'invalidkey':
    354                 return __('The password reset link you used is not valid anymore.', 'personalize-login');
     360                return );
    355361
    356362            case 'password_reset_mismatch':
    357                 return __("The two passwords you entered don't match.", 'personalize-login');
     363                return );
    358364
    359365            case 'password_reset_empty':
    360                 return __("Sorry, we don't accept empty passwords.", 'personalize-login');
     366                return );
    361367
    362368            default:
     
    365371                // Lost password
    366372            case 'empty_username':
    367                 return __('You need to enter your email address to continue.', 'personalize-login');
     373                return );
    368374
    369375            case 'invalid_email':
    370376            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 ;
    375381    }
    376382
     
    379385     * Redirect to custom login page after the user has been logged out.
    380386     */
    381     public function redirect_after_logout()
     387    public function redirect_after_logout()
    382388    {
    383389        $redirect_url = home_url('member-login?logged_out=true');
     
    396402     * @return string Redirect URL
    397403     */
    398     public function redirect_after_login($redirect_to, $requested_redirect_to, $user)
     404    public function redirect_after_login($redirect_to, $requested_redirect_to, $user)
    399405    {
    400406        $redirect_url = home_url();
     
    428434     * @return string  The shortcode output
    429435     */
    430     public function render_register_form($attributes, $content = null)
     436    public function render_register_form($attributes, $content = null)
    431437    {
    432438        // Parse shortcode attributes
     
    435441
    436442        if (is_user_logged_in()) {
    437             return __('You are already signed in.', 'personalize-login');
     443            return );
    438444        } elseif (!get_option('users_can_register')) {
    439             return __('Registering new users is currently not allowed.', 'personalize-login');
     445            return );
    440446        } else {
    441447            return $this->get_template_html('register_form', $attributes);
     
    448454     * of wp-login.php?action=register.
    449455     */
    450     public function redirect_to_custom_register()
     456    public function redirect_to_custom_register()
    451457    {
    452458        if ('GET' == $_SERVER['REQUEST_METHOD']) {
     
    511517     * when accessed through the registration action.
    512518     */
    513     public function do_register_user()
     519    public function do_register_user()
    514520    {
    515521        if ('POST' == $_SERVER['REQUEST_METHOD']) {
     
    547553     * if there are errors.
    548554     */
    549     public function redirect_to_custom_password_reset()
     555    public function redirect_to_custom_password_reset()
    550556    {
    551557        if ('GET' == $_SERVER['REQUEST_METHOD']) {
    552558            // Verify key / login combo
    553             $user = check_password_reset_key($_REQUEST['key'], $_REQUEST['login']);
     559            $user = check_password_reset_key($_REQUEST['key'], );
    554560            if (!$user || is_wp_error($user)) {
    555561                if ($user && $user->get_error_code() === 'expired_key') {
     
    579585     * @return string  The shortcode output
    580586     */
    581     public function render_password_reset_form($attributes, $content = null)
     587    public function render_password_reset_form($attributes, $content = null)
    582588    {
    583589        // Parse shortcode attributes
     
    586592
    587593        if (is_user_logged_in()) {
    588             return __('You are already signed in.', 'personalize-login');
     594            return );
    589595        } else {
    590596            if (isset($_REQUEST['login']) && isset($_REQUEST['key'])) {
     
    605611                return $this->get_template_html('password_reset_form', $attributes);
    606612            } else {
    607                 return __('Invalid password reset link.', 'personalize-login');
     613                return );
    608614            }
    609615        }
     
    619625     * @return string  The shortcode output
    620626     */
    621     public function render_password_lost_form($attributes, $content = null)
     627    public function render_password_lost_form($attributes, $content = null)
    622628    {
    623629        // Parse shortcode attributes
     
    636642
    637643        if (is_user_logged_in()) {
    638             return __('You are already signed in.', 'personalize-login');
     644            return );
    639645        } else {
    640646            return $this->get_template_html('password_lost_form', $attributes);
     
    646652     * Resets the user's password if the password reset form was submitted.
    647653     */
    648     public function do_password_reset()
     654    public function do_password_reset()
    649655    {
    650656        if ('POST' == $_SERVER['REQUEST_METHOD']) {
     
    704710     * wp-login.php?action=lostpassword.
    705711     */
    706     public function redirect_to_custom_lostpassword()
     712    public function redirect_to_custom_lostpassword()
    707713    {
    708714        if ('GET' == $_SERVER['REQUEST_METHOD']) {
     
    721727     * Initiates password reset.
    722728     */
    723     public function do_password_lost()
     729    public function do_password_lost()
    724730    {
    725731        if ('POST' == $_SERVER['REQUEST_METHOD']) {
     
    752758     * @return string   The mail message to send.
    753759     */
    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)
    755761    {
    756762        // 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";
    761767        $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";
    763769
    764770        return $msg;
     
    794800    {
    795801        add_options_page(
    796             __('Personalize Login Settings', 'personalize-login'),
    797             __('Personalize Login Settings Menu', 'personalize-login'),
     802            ),
     803            ),
    798804            'manage_options',
    799805            'options_page_plogin_menu',
     
    814820                <?php // screen_icon();
    815821                ?>
    816                 <h2><?php // _e('PLogin Plugin Options', 'personalize-login');
     822                <h2><?php // );
    817823                    ?></h2>
    818824                <form method="post" action="options.php">
    819825                    <?php // settings_fields('plogin_options_group');
    820826                    ?>
    821                     <h3><?php // _e('Look options', 'personalize-login');
     827                    <h3><?php // );
    822828                        ?></h3>
    823                     <p><?php // _e('Login page', 'personalize-login');
     829                    <p><?php // );
    824830                        ?></p>
    825831                    <table>
    826832                        <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 // );
    828834                                                                            ?></label></th>
    829835                            <td><input type="file" id="plogin_image_login" name="plogin_image_login" value="<?php // echo get_option('plogin_image_login');
     
    831837                        </tr>
    832838                        <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 // );
    834840                                                                                    ?></label></th>
    835841                            <td><input type="text" id="plogin_text_before_login" name="plogin_text_before_login" value="<?php // echo get_option('plogin_text_before_login');
     
    837843                        </tr>
    838844                        <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 // );
    840846                                                                                    ?></label></th>
    841847                            <td><input type="text" id="plogin_text_after_login" name="plogin_text_after_login" value="<?php // echo get_option('plogin_text_after_login');
     
    843849                        </tr>
    844850                    </table>
    845                     <p><?php // _e('Register page', 'personalize-login');
     851                    <p><?php // );
    846852                        ?></p>
    847853                    <table>
    848854                        <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 // );
    850856                                                                                ?></label></th>
    851857                            <td><input type="file" id="plogin_image_register" name="plogin_image_register" value="<?php // echo get_option('plogin_image_register');
     
    853859                        </tr>
    854860                        <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 // );
    856862                                                                                        ?></label></th>
    857863                            <td><input type="text" id="plogin_text_before_register" name="plogin_text_before_register" value="<?php // echo get_option('plogin_text_before_register');
     
    859865                        </tr>
    860866                        <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 // );
    862868                                                                                    ?></label></th>
    863869                            <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  
    33Tags: login, log in, signin, sig in, register, password, reset password, custom login, personalize login
    44Requires at least: 4.2
    5 Tested up to: 6.1
    6 Stable tag: 5.3
     5Tested up to: 6.
     6Stable tag: .3
    77Requires PHP: 5.6
    88License: GPLv2 or later
     
    3838== Changelog ==
    3939
     40
     41
     42
     43
     44
    4045= 1.1.2 =
    4146* Fix member-password-reset redirect
  • personalize-login/trunk/templates/account_info.php

    r2814082 r2982212  
    11<div class="account-container">
    22    <?php if ($attributes['show_title']) : ?>
    3         <h2><?php _e('Sign In', 'personalize-login'); ?></h2>
     3        <h2><?php _e('Sign In', 'personalize-login'); ?></h2>
    44    <?php endif; ?>
    55
     
    1616    $current_user = wp_get_current_user(get_current_user_id());
    1717    $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());
    2219    ?>
    2320    <div>
    24         <h2><?php echo $first_name . $last_name; ?></h2>
     21        <h2><?php echo $last_name; ?></h2>
    2522        <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>
    3330        </ul>
    3431    </div>
  • personalize-login/trunk/templates/login_form.php

    r2814082 r2982212  
    11<div class="login-form-container">
    22    <?php if ($attributes['show_title']) : ?>
    3         <h2><?php _e('Sign In', 'personalize-login'); ?></h2>
     3        <h2><?php _e('Sign In', 'personalize-login'); ?></h2>
    44    <?php endif; ?>
    55
     
    1616    <?php if ($attributes['logged_out']) : ?>
    1717        <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'); ?>
    1919        </p>
    2020    <?php endif; ?>
     
    2323    <?php if ($attributes['password_updated']) : ?>
    2424        <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'); ?>
    2626        </p>
    2727    <?php endif; ?>
     
    3030    wp_login_form(
    3131        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'),
    3434            'redirect'       => $attributes['redirect'],
    3535        )
     
    3838
    3939    <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'); ?>
    4141    </a>
    4242</div>
     
    4646                                ?>">
    4747        <p class="login-username">
    48             <label for="user_login"><?php // _e( 'Email', 'personalize-login' );
     48            <label for="user_login"><?php // _e( 'Email', 'personalize-login' );
    4949                                    ?></label>
    5050            <input type="text" name="log" id="user_login">
    5151        </p>
    5252        <p class="login-password">
    53             <label for="user_pass"><?php // _e( 'Password', 'personalize-login' );
     53            <label for="user_pass"><?php // _e( 'Password', 'personalize-login' );
    5454                                    ?></label>
    5555            <input type="password" name="pwd" id="user_pass">
    5656        </p>
    5757        <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' );
    5959                                        ?>">
    6060        </p>
  • personalize-login/trunk/templates/password_lost_form.php

    r2814082 r2982212  
    11<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>
    44    <?php endif; ?>
    55
    6     <?php if ($attributes['lost_password_sent']) : ?>
     6    <?php if () : ?>
    77        <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'); ?>
    99        </p>
    1010    <?php endif; ?>
     
    2020    <p>
    2121        <?php
    22         _e(
     22        _e(
    2323            "Enter your email address and we'll send you a link you can use to pick a new password.",
    2424            'personalize-login'
     
    2929    <form id="lostpasswordform" action="<?php echo wp_lostpassword_url(); ?>" method="post">
    3030        <p class="form-row">
    31             <label for="user_login"><?php _e('Email', 'personalize-login'); ?>
     31            <label for="user_login"><?php _e('Email', 'personalize-login'); ?>
    3232                <input type="text" name="user_login" id="user_login">
    3333        </p>
    3434
    3535        <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'); ?>" />
    3737        </p>
    3838    </form>
  • personalize-login/trunk/templates/password_reset_form.php

    r2814082 r2982212  
    11<div id="password-reset-form" class="widecolumn">
    22    <?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>
    44    <?php endif; ?>
    55
     
    1717
    1818        <p>
    19             <label for="pass1"><?php _e('New password', 'personalize-login') ?></label>
     19            <label for="pass1"><?php _e('New password', 'personalize-login') ?></label>
    2020            <input type="password" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" />
    2121        </p>
    2222        <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>
    2424            <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" />
    2525        </p>
     
    2828
    2929        <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'); ?>" />
    3131        </p>
    3232    </form>
  • personalize-login/trunk/templates/register_form.php

    r2814082 r2982212  
    11<div id="register-form" class="widecolumn">
    22    <?php if ($attributes['show_title']) : ?>
    3         <h3><?php _e('Register', 'personalize-login'); ?></h3>
     3        <h3><?php _e('Register', 'personalize-login'); ?></h3>
    44    <?php endif; ?>
    55
    66    <form id="signupform" action="<?php echo wp_registration_url(); ?>" method="post">
    77        <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>
    99            <input type="text" name="email" id="email">
    1010        </p>
    1111
    1212        <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>
    1414            <input type="text" name="first_name" id="first-name">
    1515        </p>
    1616
    1717        <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>
    1919            <input type="text" name="last_name" id="last-name">
    2020        </p>
    2121
    2222        <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>
    2424            <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>
    2525        </p>
    2626
    2727        <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>
    2929            <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>
    3030        </p>
    3131
    3232        <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>
    3434        </div>
    3535
    3636        <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'); ?>" />
    3838        </p>
    3939    </form>
Note: See TracChangeset for help on using the changeset viewer.