Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/18/2011 08:35:34 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Introduce lost password page. Introduce user_login and user_lost_pass template parts. Introduce supporting login and smart login redirect functions. Normalize submit containers across template forms. (@todo: register, activation, and lost password pages)

Location:
branches/plugin/bbp-themes/bbp-twentyten
Files:
3 added
8 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-themes/bbp-twentyten/css/bbpress.css

    r2810 r2815  
    226226}
    227227
    228 p#bbp_topic_submit_container,
    229 p#bbp_reply_submit_container {
     228div.bbp-submit-wrapper {
    230229        float: right;
    231230}
  • branches/plugin/bbp-themes/bbp-twentyten/form-bbp_merge.php

    r2810 r2815  
    6969                                        </fieldset>
    7070
    71                                         <p id="bbp_topic_submit_container">
     71                                        <div class="bbp-submit-wrapper">
    7272                                                <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
    73                                         </p>
     73                                        </div>
    7474                                </div>
    7575
  • branches/plugin/bbp-themes/bbp-twentyten/form-bbp_reply.php

    r2810 r2815  
    9494                                                <?php endif; ?>
    9595
    96                                                 <p id="bbp_reply_submit_container">
     96                                                <div class="bbp-submit-wrapper">
    9797                                                        <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_reply_submit" name="bbp_reply_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
    98                                                 </p>
     98                                                </div>
    9999                                        </div>
    100100
  • branches/plugin/bbp-themes/bbp-twentyten/form-bbp_split.php

    r2810 r2815  
    7979                                        </fieldset>
    8080
    81                                         <p id="bbp_topic_submit_container">
     81                                        <div class="bbp-submit-wrapper">
    8282                                                <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
    83                                         </p>
     83                                        </div>
    8484                                </div>
    8585
  • branches/plugin/bbp-themes/bbp-twentyten/form-bbp_topic.php

    r2810 r2815  
    129129                                                <?php endif; ?>
    130130
    131                                                 <p id="bbp_topic_submit_container">
     131                                                <div class="bbp-submit-wrapper">
    132132                                                        <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_topic_submit" name="bbp_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
    133                                                 </p>
     133                                                </div>
    134134                                        </div>
    135135
  • branches/plugin/bbp-themes/bbp-twentyten/form-bbp_user_register.php

    r2814 r2815  
    99
    1010?>
     11
     12        <form method="post" action="<?php bbp_wp_login_action( array( 'action' => 'register', 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
     13                <fieldset>
     14                        <legend><?php _e( 'Register', 'bbpress' ); ?></legend>
     15
     16                        <?php do_action( 'bbp_template_notices' ); ?>
     17
     18                        <div class="bbp-username">
     19                                <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label>
     20                                <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>" />
     21                        </div>
     22
     23                        <div class="bbp-email">
     24                                <label for="user_email"><?php _e( 'Email Address', 'bbpress' ); ?>: </label>
     25                                <input type="text" name="user_email" value="<?php bbp_sanitize_val( 'user_email' ); ?>" size="20" id="user_email" tabindex="<?php bbp_tab_index(); ?>" />
     26                        </div>
     27
     28                        <div class="bbp-submit-wrapper">
     29
     30                                <?php do_action( 'register_form' ); ?>
     31
     32                                <button type="submit" name="user-submit" tabindex="<?php bbp_tab_index(); ?>" class="user-submit"><?php _e( 'Register', 'bbpress' ); ?></button>
     33
     34                                <?php bbp_user_register_fields(); ?>
     35
     36                        </div>
     37                </fieldset>
     38        </form>
  • branches/plugin/bbp-themes/bbp-twentyten/page-bbp_login.php

    r2810 r2815  
    88 */
    99
    10 ?>
     10// No logged in users
     11bbp_logged_in_redirect();
    1112
    12 <?php get_header(); ?>
     13// Begin Template
     14get_header(); ?>
    1315
    1416                <div id="container">
     
    2527                                                        <?php the_content(); ?>
    2628
    27                                                         <?php if ( !is_user_logged_in() ) : ?>
     29                                                        <?php //if ( !is_user_logged_in() ) : ?>
    2830
    29                                                                 <fieldset>
    30                                                                         <legend><?php _e( 'Login', 'bbpress' ); ?></legend>
     31                                                        <?php get_template_part( 'form', 'bbp_user_login' ); ?>
    3132
    32                                                                         <?php do_action( 'bbp_template_notices' ); ?>
     33                                                        <?php //else : ?>
    3334
    34                                                                         <?php wp_login_form( array( 'redirect' => $_SERVER['HTTP_REFERER'] ) ); ?>
    35 
    36                                                                 </fieldset>
    37                                                        
    38                                                         <?php else : ?>
    39 
    40 
    41 
    42                                                         <?php endif; ?>
     35                                                        <?php //endif; ?>
    4336
    4437                                                </div>
  • branches/plugin/bbp-themes/bbp-twentyten/page-bbp_register.php

    r2813 r2815  
    88 */
    99
    10 ?>
     10// No logged in users
     11bbp_logged_in_redirect();
    1112
    12 <?php get_header(); ?>
     13// Begin Template
     14get_header(); ?>
    1315
    1416                <div id="container">
     
    2527                                                        <?php the_content(); ?>
    2628
    27                                                         <?php if ( !is_user_logged_in() ) : ?>
    28 
    29                                                                 <?php get_template_part( 'form', 'bbp_user_register' ); ?>
    30 
    31                                                         <?php else : ?>
    32 
    33                                                                 <p><?php _e( 'You&#8217;re already logged in, why do you need to register?', 'bbpress' ); ?></p>
    34 
    35                                                         <?php endif; ?>
     29                                                        <?php get_template_part( 'form', 'bbp_user_register' ); ?>
    3630
    3731                                                </div>
Note: See TracChangeset for help on using the changeset viewer.