Skip to:
Content

BuddyPress.org

Changeset 2205


Ignore:
Timestamp:
12/18/2009 02:59:39 PM (16 years ago)
Author:
apeatling
Message:

Fixed blog tab highlighting. Added blogs styles to archive and search results pages.

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

Legend:

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

    r2204 r2205  
    15201520    }
    15211521
     1522    h2.pagetitle {
     1523        color: #888;
     1524        font-size: 18px;
     1525        padding: 10px 0;
     1526        margin: 10px 0;
     1527        border-bottom: 1px solid #e4e4e4;
     1528        border-top: 1px solid #e4e4e4;
     1529        font-weight: normal;
     1530    }
     1531
    15221532/* > WordPress Blog Comment Styles
    15231533-------------------------------------------------------------- */
  • trunk/bp-themes/bp-default/archive.php

    r2170 r2205  
    88        <div class="page" id="blog-archives">
    99
    10             <h2 class="pagetitle"><?php _e( 'Blog', 'buddypress' ) ?></h2>
     10            <h2 class="pagetitle"><?php printf( __( 'You are browsing the archive for %1$s.', 'buddypress' ), wp_title( false, false ) ); ?></h2>
    1111
    1212            <?php if ( have_posts() ) : ?>
    13 
    14                 <h3><?php printf( __( 'You are browsing the archive for %1$s.', 'buddypress' ), wp_title( false, false ) ); ?></h3>
    1513
    1614                <div class="navigation">
     
    2523                    <?php do_action( 'bp_before_blog_post' ) ?>
    2624
    27                     <div class="post">
     25                    <div class="post" id="post-<?php the_ID(); ?>">
    2826
    29                         <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>
    30                         <small><?php the_time('F j, Y') ?></small>
    31 
    32                         <div class="entry">
    33                             <?php the_content() ?>
     27                        <div class="author-box">
     28                            <?php echo get_avatar( get_the_author_email(), '50' ); ?>
     29                            <p><?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
    3430                        </div>
    3531
    36                         <p class="postmetadata"><?php _e( 'Posted in', 'buddypress' ) ?> <?php the_category(', ') ?> | <?php edit_post_link( __( 'Edit', 'buddypress' ), '', ' | '); ?>  <?php comments_popup_link( __( 'No Comments &#187;', 'buddypress' ), __( '1 Comment &#187;', 'buddypress' ), __( '% Comments &#187;', 'buddypress' ) ); ?></p>
     32                        <div class="post-content">
     33                            <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
     34
     35                            <p class="date"><?php the_time('F j, Y') ?> <em><?php _e( 'in', 'buddypress' ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></em></p>
     36
     37                            <div class="entry">
     38                                <?php the_content( __( 'Read the rest of this entry &raquo;', 'buddypress' ) ); ?>
     39                            </div>
     40
     41                            <p class="postmetadata"><span class="tags"><?php the_tags( __( 'Tags: ', 'buddypress' ), ', ', '<br />'); ?></span> <span class="comments"><?php comments_popup_link( __( 'No Comments &#187;', 'buddypress' ), __( '1 Comment &#187;', 'buddypress' ), __( '% Comments &#187;', 'buddypress' ) ); ?></span></p>
     42                        </div>
    3743
    3844                    </div>
  • trunk/bp-themes/bp-default/header.php

    r2184 r2205  
    3434        <div id="header">
    3535
    36             <h1 id="logo"><a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1>
     36            <h1 id="logo"><a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1>
    3737
    3838            <ul id="nav">
    39                 <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>
    40                 <li<?php if ( bp_is_page( BP_HOME_BLOG_SLUG ) ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_HOME_BLOG_SLUG ?>" title="<?php _e( 'Blog', 'buddypress' ) ?>"><?php _e( 'Blog', 'buddypress' ) ?></a></li>
    41                 <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_MEMBERS_SLUG ?>" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a></li>
     39                <li<?php if ( bp_is_page( 'home' ) ) : ?> class="selected"<?php endif; ?>>
     40                    <a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a>
     41                </li>
     42
     43                <li<?php if ( bp_is_page( BP_HOME_BLOG_SLUG ) || bp_is_blog_page() && !is_front_page() ) : ?> class="selected"<?php endif; ?>>
     44                    <a href="<?php echo site_url() ?>/<?php echo BP_HOME_BLOG_SLUG ?>" title="<?php _e( 'Blog', 'buddypress' ) ?>"><?php _e( 'Blog', 'buddypress' ) ?></a>
     45                </li>
     46
     47                <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="selected"<?php endif; ?>>
     48                    <a href="<?php echo site_url() ?>/<?php echo BP_MEMBERS_SLUG ?>" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a>
     49                </li>
    4250
    4351                <?php if ( function_exists( 'groups_install' ) ) : ?>
    44                     <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_GROUPS_SLUG ?>" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a></li>
     52                    <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>>
     53                        <a href="<?php echo site_url() ?>/<?php echo BP_GROUPS_SLUG ?>" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a>
     54                    </li>
    4555                <?php endif; ?>
    4656
    4757                <?php if ( function_exists( 'groups_install' ) && ( function_exists( 'bp_forums_setup' ) && !(int) get_site_option( 'bp-disable-forum-directory' ) ) ) : ?>
    48                     <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>
     58                    <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
     59                        <a href="<?php echo site_url() ?>/<?php echo BP_FORUMS_SLUG ?>" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a>
     60                    </li>
    4961                <?php endif; ?>
    5062
    5163                <?php if ( function_exists( 'bp_blogs_install' ) ) : ?>
    52                     <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>
     64                    <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
     65                        <a href="<?php echo site_url() ?>/<?php echo BP_BLOGS_SLUG ?>" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a>
     66                    </li>
    5367                <?php endif; ?>
    5468
  • trunk/bp-themes/bp-default/search.php

    r2170 r2205  
    2323                    <?php do_action( 'bp_before_blog_post' ) ?>
    2424
    25                     <div class="post">
     25                    <div class="post" id="post-<?php the_ID(); ?>">
    2626
    27                         <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>
    28                         <small><?php the_time('l, F jS, Y') ?></small>
     27                        <div class="author-box">
     28                            <?php echo get_avatar( get_the_author_email(), '50' ); ?>
     29                            <p><?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
     30                        </div>
    2931
    30                         <p class="postmetadata"><?php _e( 'Posted in', 'buddypress' ) ?> <?php the_category(', ') ?> | <?php edit_post_link( __( 'Edit', 'buddypress' ), '', ' | '); ?>  <?php comments_popup_link( __( 'No Comments &#187;', 'buddypress' ), __( '1 Comment &#187;', 'buddypress' ), __( '% Comments &#187;', 'buddypress' ) ); ?></p>
     32                        <div class="post-content">
     33                            <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
    3134
    32                         <?php do_action( 'bp_blog_post' ) ?>
     35                            <p class="date"><?php the_time('F j, Y') ?> <em><?php _e( 'in', 'buddypress' ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></em></p>
     36
     37                            <div class="entry">
     38                                <?php the_content( __( 'Read the rest of this entry &raquo;', 'buddypress' ) ); ?>
     39                            </div>
     40
     41                            <p class="postmetadata"><span class="tags"><?php the_tags( __( 'Tags: ', 'buddypress' ), ', ', '<br />'); ?></span> <span class="comments"><?php comments_popup_link( __( 'No Comments &#187;', 'buddypress' ), __( '1 Comment &#187;', 'buddypress' ), __( '% Comments &#187;', 'buddypress' ) ); ?></span></p>
     42                        </div>
    3343
    3444                    </div>
Note: See TracChangeset for help on using the changeset viewer.