Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/02/2009 07:54:21 PM (16 years ago)
Author:
apeatling
Message:

Merging 1.1 branch changes and syncing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-sn-parent/header.php

    r2016 r2077  
    2929
    3030    <body <?php body_class() ?>>
    31        
    32         <?php do_action( 'bp_before_search_login_bar' ) ?> 
    33        
     31
     32        <?php do_action( 'bp_before_search_login_bar' ) ?>
     33
    3434        <div id="search-login-bar">
    35    
     35
    3636            <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
    37                 <input type="text" id="search-terms" name="search-terms" value="" /> 
     37                <input type="text" id="search-terms" name="search-terms" value="" />
    3838                <?php echo bp_search_form_type_select() ?>
    39    
     39
    4040                <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
    4141                <?php wp_nonce_field( 'bp_search_form' ) ?>
    4242            </form>
    43            
     43
    4444            <?php if ( !is_user_logged_in() ) : ?>
    45        
     45
    4646                <form name="login-form" id="login-form" action="<?php echo site_url( 'wp-login.php' ) ?>" method="post">
    4747                    <input type="text" name="log" id="user_login" value="<?php _e( 'Username', 'buddypress' ) ?>" onfocus="if (this.value == '<?php _e( 'Username', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Username', 'buddypress' ) ?>';}" />
    4848                    <input type="password" name="pwd" id="user_pass" class="input" value="" />
    49            
     49
    5050                    <input type="checkbox" name="rememberme" id="rememberme" value="forever" title="<?php _e( 'Remember Me', 'buddypress' ) ?>" />
    51            
    52                     <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e( 'Log In', 'buddypress' ) ?>"/>       
    53                    
    54                     <?php if ( 'none' != bp_get_signup_allowed() && 'blog' != bp_get_signup_allowed() ) : ?>       
     51
     52                    <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e( 'Log In', 'buddypress' ) ?>"/>
     53
     54                    <?php if ( 'none' != bp_get_signup_allowed() && 'blog' != bp_get_signup_allowed() ) : ?>
    5555                        <input type="button" name="signup-submit" id="signup-submit" value="<?php _e( 'Sign Up', 'buddypress' ) ?>" onclick="location.href='<?php echo bp_signup_page() ?>'" />
    5656                    <?php endif; ?>
    57                    
     57
    5858                    <input type="hidden" name="redirect_to" value="<?php echo bp_root_domain() ?>" />
    5959                    <input type="hidden" name="testcookie" value="1" />
    60                        
     60
    6161                    <?php do_action( 'bp_login_bar_logged_out' ) ?>
    6262                </form>
    63    
     63
    6464            <?php else : ?>
    65        
     65
    6666                <div id="logout-link">
    6767                    <?php bp_loggedin_user_avatar( 'width=20&height=20' ) ?> &nbsp; <?php bp_loggedinuser_link() ?> / <?php bp_log_out_link() ?>
    68                    
     68
    6969                    <?php do_action( 'bp_login_bar_logged_in' ) ?>
    7070                </div>
    71        
     71
    7272            <?php endif; ?>
    73            
     73
    7474            <?php do_action( 'bp_search_login_bar' ) ?>
    7575
    7676        </div>
    7777
    78         <?php do_action( 'bp_after_search_login_bar' ) ?>           
    79         <?php do_action( 'bp_before_header' ) ?>       
     78        <?php do_action( 'bp_after_search_login_bar' ) ?>
     79        <?php do_action( 'bp_before_header' ) ?>
    8080
    81         <div id="header">   
    82        
     81        <div id="header">
     82
    8383            <h1 id="logo"><a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1>
    84    
     84
    8585            <ul id="nav">
    8686                <li<?php if ( bp_is_page( 'home' ) ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a></li>
     
    9595                    <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_FORUMS_SLUG ?>" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a></li>
    9696                <?php endif; ?>
    97                
     97
    9898                <?php if ( function_exists( 'bp_blogs_install' ) ) : ?>
    9999                    <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_BLOGS_SLUG ?>" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a></li>
     
    104104
    105105            <?php do_action( 'bp_header' ) ?>
    106    
     106
    107107        </div>
    108108
    109109        <?php do_action( 'bp_after_header' ) ?>
    110110        <?php do_action( 'bp_before_container' ) ?>
    111        
     111
    112112        <div id="container">
    113    
     113
    114114            <?php if ( !bp_is_blog_page() && !bp_is_directory() && !bp_is_register_page() && !bp_is_activation_page() ) : ?>
    115        
     115
    116116                <?php locate_template( array( 'userbar.php' ), true ) /* Load the user navigation */ ?>
    117117                <?php locate_template( array( 'optionsbar.php' ), true ) /* Load the currently displayed object navigation */ ?>
    118        
     118
    119119            <?php endif; ?>
    120            
Note: See TracChangeset for help on using the changeset viewer.