Changeset 2077 for trunk/bp-themes/bp-sn-parent/header.php
- Timestamp:
- 11/02/2009 07:54:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-sn-parent/header.php
r2016 r2077 29 29 30 30 <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 34 34 <div id="search-login-bar"> 35 35 36 36 <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="" /> 38 38 <?php echo bp_search_form_type_select() ?> 39 39 40 40 <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" /> 41 41 <?php wp_nonce_field( 'bp_search_form' ) ?> 42 42 </form> 43 43 44 44 <?php if ( !is_user_logged_in() ) : ?> 45 45 46 46 <form name="login-form" id="login-form" action="<?php echo site_url( 'wp-login.php' ) ?>" method="post"> 47 47 <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' ) ?>';}" /> 48 48 <input type="password" name="pwd" id="user_pass" class="input" value="" /> 49 49 50 50 <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() ) : ?> 55 55 <input type="button" name="signup-submit" id="signup-submit" value="<?php _e( 'Sign Up', 'buddypress' ) ?>" onclick="location.href='<?php echo bp_signup_page() ?>'" /> 56 56 <?php endif; ?> 57 57 58 58 <input type="hidden" name="redirect_to" value="<?php echo bp_root_domain() ?>" /> 59 59 <input type="hidden" name="testcookie" value="1" /> 60 60 61 61 <?php do_action( 'bp_login_bar_logged_out' ) ?> 62 62 </form> 63 63 64 64 <?php else : ?> 65 65 66 66 <div id="logout-link"> 67 67 <?php bp_loggedin_user_avatar( 'width=20&height=20' ) ?> <?php bp_loggedinuser_link() ?> / <?php bp_log_out_link() ?> 68 68 69 69 <?php do_action( 'bp_login_bar_logged_in' ) ?> 70 70 </div> 71 71 72 72 <?php endif; ?> 73 73 74 74 <?php do_action( 'bp_search_login_bar' ) ?> 75 75 76 76 </div> 77 77 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' ) ?> 80 80 81 <div id="header"> 82 81 <div id="header"> 82 83 83 <h1 id="logo"><a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1> 84 84 85 85 <ul id="nav"> 86 86 <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> … … 95 95 <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> 96 96 <?php endif; ?> 97 97 98 98 <?php if ( function_exists( 'bp_blogs_install' ) ) : ?> 99 99 <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> … … 104 104 105 105 <?php do_action( 'bp_header' ) ?> 106 106 107 107 </div> 108 108 109 109 <?php do_action( 'bp_after_header' ) ?> 110 110 <?php do_action( 'bp_before_container' ) ?> 111 111 112 112 <div id="container"> 113 113 114 114 <?php if ( !bp_is_blog_page() && !bp_is_directory() && !bp_is_register_page() && !bp_is_activation_page() ) : ?> 115 115 116 116 <?php locate_template( array( 'userbar.php' ), true ) /* Load the user navigation */ ?> 117 117 <?php locate_template( array( 'optionsbar.php' ), true ) /* Load the currently displayed object navigation */ ?> 118 118 119 119 <?php endif; ?> 120
Note: See TracChangeset
for help on using the changeset viewer.