Skip to:
Content

BuddyPress.org

Changeset 4418


Ignore:
Timestamp:
05/24/2011 07:34:43 PM (11 years ago)
Author:
djpaul
Message:

Fit a longer site title into the page header. Fixes #3234, props karmatosed for initial patch

Location:
trunk/bp-themes/bp-default
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/css/default.css

    r4412 r4418  
    129129}
    130130#header #search-bar {
    131     position: absolute;
    132     top: 25px;
    133     right: 0;
     131    margin-top: 5px;
     132    text-align: right;
    134133    width: 100%;
    135     text-align: right;
    136134}
    137135#header #search-bar .padder {
    138     padding: 10px 20px;
     136    padding: 10px 15px 0 20px;
    139137}
    140138#header #search-bar input[type=text] {
     
    152150}
    153151#header h1 {
    154     bottom: 30px;
    155     line-height: 230%;
    156     left: 20px;
     152    float: left;
    157153    margin-bottom: 0;
    158     position: absolute;
    159     width: 44%;
     154    margin-top: 0;
    160155}
    161156#header h1 a {
  • trunk/bp-themes/bp-default/header.php

    r4201 r4418  
    2424
    2525        <div id="header">
    26             <h1 id="logo" role="banner"><a href="<?php echo home_url() ?>" title="<?php echo _x( 'Home', 'Home page banner link title', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1>
    27 
    28             <div id="navigation" role="navigation">
    29                 <?php wp_nav_menu( array( 'container' => false, 'menu_id' => 'nav', 'theme_location' => 'primary', 'fallback_cb' => 'bp_dtheme_main_nav' ) ); ?>
    30             </div>
    31 
    3226            <div id="search-bar" role="search">
    3327                <div class="padder">
     28                    <h1 id="logo" role="banner"><a href="<?php echo home_url(); ?>" title="<?php echo _x( 'Home', 'Home page banner link title', 'buddypress' ); ?>"><?php bp_site_name(); ?></a></h1>
    3429
    35                 <?php if ( bp_search_form_enabled() ) : ?>
     30                    <?php if ( bp_search_form_enabled() ) : ?>
    3631
    37                     <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
    38                         <input type="text" id="search-terms" name="search-terms" value="<?php echo isset( $_REQUEST['s'] ) ? esc_attr( $_REQUEST['s'] ) : ''; ?>" />
     32                        <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
     33                            <input type="text" id="search-terms" name="search-terms" value="<?php echo isset( $_REQUEST['s'] ) ? esc_attr( $_REQUEST['s'] ) : ''; ?>" />
    3934
    40                         <?php echo bp_search_form_type_select() ?>
     35                            <?php echo bp_search_form_type_select() ?>
    4136
    42                         <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
     37                            <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
    4338
    44                         <?php wp_nonce_field( 'bp_search_form' ) ?>
     39                            <?php wp_nonce_field( 'bp_search_form' ) ?>
    4540
    46                     </form><!-- #search-form -->
     41                        </form><!-- #search-form -->
    4742
    48                 <?php endif; ?>
     43                    <?php endif; ?>
    4944
    5045                <?php do_action( 'bp_search_login_bar' ) ?>
     
    5247                </div><!-- .padder -->
    5348            </div><!-- #search-bar -->
     49
     50            <div id="navigation" role="navigation">
     51                <?php wp_nav_menu( array( 'container' => false, 'menu_id' => 'nav', 'theme_location' => 'primary', 'fallback_cb' => 'bp_dtheme_main_nav' ) ); ?>
     52            </div>
    5453
    5554            <?php do_action( 'bp_header' ) ?>
Note: See TracChangeset for help on using the changeset viewer.