Skip to:
Content

BuddyPress.org


Ignore:
Location:
tags/1.2.5/bp-themes/bp-default
Files:
18 edited

Legend:

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

    r12699 r12699  
    3636a:focus { outline: 1px dotted #ccc; }
    3737
    38 .padder { padding: 20px; }
     38.padder { padding: 19px; }
    3939.clear { clear: left; }
    4040
     
    180180    margin-left: -226px;
    181181    margin-top: 1px;
    182     border-left: 1px solid #e4e4e4;
     182    border-left: 1px solid #ddd;
    183183    -moz-border-radius-topright: 3px;
    184184    -webkit-border-top-right-radius: 3px;
     
    274274div#content .padder {
    275275    margin-right: 225px;
    276     border-right: 1px solid #e4e4e4;
     276    border-right: 1px solid #ddd;
    277277    -moz-border-radius-topleft: 6px;
    278278    -webkit-border-top-left-radius: 6px;
     
    449449    clear: left;
    450450    overflow: hidden;
    451     margin: 25px -20px 20px -20px;
     451    margin: 25px -19px 20px -19px;
    452452    background: #eaeaea;
    453453}
     
    525525    div.item-list-tabs#subnav {
    526526        background: #fff;
    527         margin: -15px -20px 15px -20px;
     527        margin: -15px -19px 15px -19px;
    528528        border-bottom: 1px solid #eaeaea;
    529529        min-height: 35px;
     
    645645-------------------------------------------------------------- */
    646646
    647 a.button, input[type=submit], input[type=button],
     647a.button, input[type=submit], input[type=button], input[type=reset],
    648648ul.button-nav li a, div.generic-button a {
    649649    background: url( ../images/white-grad.png ) top left repeat-x;
     
    660660    cursor: pointer;
    661661}
    662     a.button:hover, a.button:focus, input[type=submit]:hover, input[type=button]:hover,
     662    a.button:hover, a.button:focus, input[type=submit]:hover, input[type=button]:hover, input[type=reset]:hover,
    663663    ul.button-nav li a:hover, ul.button-nav li.current a,
    664664    div.generic-button a:hover {
     
    847847    width: 100%;
    848848}
     849    table thead tr {
     850        background: #eaeaea;
     851    }
     852
    849853    table#message-threads {
    850854        margin: 0 -20px;
     
    895899    width: auto;
    896900}
    897     table.forum tr:first-child {
    898         background: #fafafa;
    899     }
    900 
    901901    table.forum tr.sticky td {
    902902        background: #FFF9DB;
  • tags/1.2.5/bp-themes/bp-default/_inc/global.js

    r12699 r12699  
    229229        /* Load more updates at the end of the page */
    230230        if ( target.parent().attr('class') == 'load-more' ) {
    231             jq("li.load-more").addClass('loading');
     231            jq("#content li.load-more").addClass('loading');
    232232
    233233            if ( null == jq.cookie('bp-activity-oldestpage') )
     
    243243            function(response)
    244244            {
    245                 jq("li.load-more").removeClass('loading');
     245                jq("#content li.load-more").removeClass('loading');
    246246                jq.cookie( 'bp-activity-oldestpage', oldest_page, {path: '/'} );
    247                 jq("ul.activity-list").append(response.contents);
     247                jq("#content ul.activity-list").append(response.contents);
    248248
    249249                target.parent().hide();
     
    820820    /** Alternate Highlighting ******************************************/
    821821
    822     jq('table tr, div.message-box').each( function(i) {
    823         if ( i % 2 != 1 )
     822    jq('body#bp-default table.zebra tbody tr').mouseover( function() {
     823        jq(this).addClass('over');
     824    }).mouseout( function() {
     825        jq(this).removeClass('over');
     826    });
     827       
     828    jq('body#bp-default table.zebra tbody tr:odd').addClass('alt');
     829
     830    jq('div.message-box').each( function(i) {
     831        if ( i % 2 == 1 )
    824832            jq(this).addClass('alt');
    825833    });
     
    957965
    958966    /* Bulk delete messages */
    959     jq("a#delete_inbox_messages").click( function() {
     967    jq("a#delete_inbox_messages, a#delete_sentbox_messages").click( function() {
    960968        checkboxes_tosend = '';
    961969        checkboxes = jq("#message-threads tr td input[type='checkbox']");
     
    990998
    991999            jq('div#message').hide().slideDown(150);
    992             jq("a#delete_inbox_messages").removeClass('loading');
     1000            jq("a#delete_inbox_messages, a#delete_sentbox_messages").removeClass('loading');
    9931001        });
    9941002        return false;
  • tags/1.2.5/bp-themes/bp-default/archive.php

    r12699 r12699  
    3333                            <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    3434
    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>
     35                            <p class="date"><?php the_time() ?> <em><?php _e( 'in', 'buddypress' ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></em></p>
    3636
    3737                            <div class="entry">
  • tags/1.2.5/bp-themes/bp-default/footer.php

    r12699 r12699  
    55
    66        <div id="footer">
    7             <p><?php printf( __( '%s is proudly powered by <a href="http://wordpress.org">WordPress</a> and <a href="http://buddypress.org">BuddyPress</a>', 'buddypress' ), bloginfo('name') ); ?></p>
     7            <p><?php printf( __( '%s is proudly powered by <a href="http://wordpress.org">WordPress</a> and <a href="http://buddypress.org">BuddyPress</a>', 'buddypress' ), get_bloginfo( 'name' ) ); ?></p>
    88
    99            <?php do_action( 'bp_footer' ) ?>
  • tags/1.2.5/bp-themes/bp-default/forums/forums-loop.php

    r12699 r12699  
    44
    55        <div id="post-count" class="pag-count">
    6             <?php if ( bp_is_group_forum() && is_user_logged_in() ) : ?>
    7                 <a href="#post-new" class="button"><?php _e( 'New Topic', 'buddypress' ) ?></a> &nbsp;
    8             <?php endif; ?>
    9 
    106            <?php bp_forum_pagination_count() ?>
    117        </div>
     
    1915    <?php do_action( 'bp_before_directory_forums_list' ) ?>
    2016
    21     <table class="forum">
     17    <table class="forum zebra">
     18        <thead>
     19            <tr>
     20                <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ) ?></th>
     21                <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ) ?></th>
    2222
    23         <tr>
    24             <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ) ?></th>
    25             <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ) ?></th>
     23                <?php if ( !bp_is_group_forum() ) : ?>
     24                    <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ) ?></th>
     25                <?php endif; ?>
    2626
    27             <?php if ( !bp_is_group_forum() ) : ?>
    28                 <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ) ?></th>
    29             <?php endif; ?>
     27                <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th>
     28                <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th>
    3029
    31             <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th>
    32             <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th>
     30                <?php do_action( 'bp_directory_forums_extra_cell_head' ) ?>
    3331
    34             <?php do_action( 'bp_directory_forums_extra_cell_head' ) ?>
     32            </tr>
     33        </thead>
    3534
    36         </tr>
     35        <tbody>
    3736
    38         <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>
     37            <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>
    3938
    40         <tr class="<?php bp_the_topic_css_class() ?>">
    41             <td class="td-title">
    42                 <a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>">
    43                     <?php bp_the_topic_title() ?>
    44                 </a>
    45             </td>
    46             <td class="td-poster">
    47                 <a href="<?php bp_the_topic_permalink() ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ) ?></a>
    48                 <div class="poster-name"><?php bp_the_topic_last_poster_name() ?></div>
    49             </td>
     39            <tr class="<?php bp_the_topic_css_class() ?>">
     40                <td class="td-title">
     41                    <a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>">
     42                        <?php bp_the_topic_title() ?>
     43                    </a>
     44                </td>
     45                <td class="td-poster">
     46                    <a href="<?php bp_the_topic_permalink() ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ) ?></a>
     47                    <div class="poster-name"><?php bp_the_topic_last_poster_name() ?></div>
     48                </td>
    5049
    51             <?php if ( !bp_is_group_forum() ) : ?>
    52                 <td class="td-group">
    53                     <a href="<?php bp_the_topic_object_permalink() ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) ?></a>
    54                     <div class="object-name"><a href="<?php bp_the_topic_object_permalink() ?>" title="<?php bp_the_topic_object_name() ?>"><?php bp_the_topic_object_name() ?></a></div>
     50                <?php if ( !bp_is_group_forum() ) : ?>
     51                    <td class="td-group">
     52                        <a href="<?php bp_the_topic_object_permalink() ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) ?></a>
     53                        <div class="object-name"><a href="<?php bp_the_topic_object_permalink() ?>" title="<?php bp_the_topic_object_name() ?>"><?php bp_the_topic_object_name() ?></a></div>
     54                    </td>
     55                <?php endif; ?>
     56
     57                <td class="td-postcount">
     58                    <?php bp_the_topic_total_posts() ?>
    5559                </td>
    56             <?php endif; ?>
     60                <td class="td-freshness">
     61                    <?php bp_the_topic_time_since_last_post() ?>
     62                </td>
    5763
    58             <td class="td-postcount">
    59                 <?php bp_the_topic_total_posts() ?>
    60             </td>
    61             <td class="td-freshness">
    62                 <?php bp_the_topic_time_since_last_post() ?>
    63             </td>
     64                <?php do_action( 'bp_directory_forums_extra_cell' ) ?>
     65            </tr>
    6466
    65             <?php do_action( 'bp_directory_forums_extra_cell' ) ?>
    66         </tr>
     67            <?php do_action( 'bp_directory_forums_extra_row' ) ?>
    6768
    68         <?php do_action( 'bp_directory_forums_extra_row' ) ?>
     69            <?php endwhile; ?>
    6970
    70         <?php endwhile; ?>
    71 
     71        </tbody>
    7272    </table>
    7373
  • tags/1.2.5/bp-themes/bp-default/functions.php

    r12699 r12699  
    128128}
    129129add_action( 'pre_get_posts', 'bp_dtheme_fix_get_posts_on_activity_front' );
     130
     131/* WP 3.0 requires there to be a non-null post in the posts array */
     132function bp_dtheme_fix_the_posts_on_activity_front( $posts ) {
     133    global $wp_query;
     134
     135    // NOTE: the double quotes around '"activity"' are thanks to our previous function bp_dtheme_fix_get_posts_on_activity_front()
     136    if ( empty( $posts ) && !empty( $wp_query->query_vars['page_id'] ) && '"activity"' == $wp_query->query_vars['page_id'] )
     137        $posts = array( (object) array( 'ID' => 'activity' ) );
     138
     139    return $posts;
     140}
     141add_filter( 'the_posts', 'bp_dtheme_fix_the_posts_on_activity_front' );
    130142
    131143/****
  • tags/1.2.5/bp-themes/bp-default/groups/single/forum/topic.php

    r12699 r12699  
    2121            <a class="button" href="<?php bp_forum_permalink() ?>/">&larr; <?php _e( 'Group Forum', 'buddypress' ) ?></a> &nbsp; <a class="button" href="<?php bp_forum_directory_permalink() ?>/"><?php _e( 'Group Forum Directory', 'buddypress') ?></a>
    2222
    23             <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?>
    24                 <div class="admin-links"><?php bp_the_topic_admin_links() ?></div>
    25             <?php endif; ?>
     23            <div class="admin-links">
     24                <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?>
     25                    <?php bp_the_topic_admin_links() ?>
     26                <?php endif; ?>
     27
     28                <?php do_action( 'bp_group_forum_topic_meta' ); ?>
     29            </div>
    2630        </div>
    2731
     
    4751                            <?php bp_the_topic_post_admin_links() ?>
    4852                        <?php endif; ?>
     53
     54                        <?php do_action( 'bp_group_forum_post_meta' ); ?>
     55
    4956                        <a href="#post-<?php bp_the_topic_post_id() ?>" title="<?php _e( 'Permanent link to this post', 'buddypress' ) ?>">#</a>
    5057                    </div>
  • tags/1.2.5/bp-themes/bp-default/groups/single/group-header.php

    r12699 r12699  
    3636        <?php bp_group_description() ?>
    3737
     38        <?php if ( bp_is_group_forum() && is_user_logged_in() && !bp_is_group_forum_topic() ) : ?>
     39            <div class="generic-button group-button">
     40                <a href="#post-new" class=""><?php _e( 'New Topic', 'buddypress' ) ?></a>
     41            </div>
     42        <?php endif; ?>
     43
    3844        <?php bp_group_join_button() ?>
    3945
  • tags/1.2.5/bp-themes/bp-default/groups/single/request-membership.php

    r12699 r12699  
    22
    33<?php if ( !bp_group_has_requested_membership() ) : ?>
    4     <p><?php printf( __( "You are requesting to become a member of the group '%s'.", "buddypress" ), bp_group_name( false, false ) ); ?></p>
     4    <p><?php printf( __( "You are requesting to become a member of the group '%s'.", "buddypress" ), bp_get_group_name( false ) ); ?></p>
    55
    66    <form action="<?php bp_group_form_action('request-membership') ?>" method="post" name="request-membership-form" id="request-membership-form" class="standard-form">
  • tags/1.2.5/bp-themes/bp-default/header.php

    r12699 r12699  
    8585                <div class="padder">
    8686
    87                 <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
    88                     <input type="text" id="search-terms" name="search-terms" value="" />
    89                     <?php echo bp_search_form_type_select() ?>
     87                <?php if ( bp_search_form_enabled() ) : ?>
    9088
    91                     <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
    92                     <?php wp_nonce_field( 'bp_search_form' ) ?>
    93                 </form><!-- #search-form -->
     89                    <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
     90                        <input type="text" id="search-terms" name="search-terms" value="" />
     91                        <?php echo bp_search_form_type_select() ?>
     92
     93                        <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
     94                        <?php wp_nonce_field( 'bp_search_form' ) ?>
     95                    </form><!-- #search-form -->
     96
     97                <?php endif; ?>
    9498
    9599                <?php do_action( 'bp_search_login_bar' ) ?>
  • tags/1.2.5/bp-themes/bp-default/index.php

    r12699 r12699  
    2424                            <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    2525
    26                             <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>
     26                            <p class="date"><?php the_time() ?> <em><?php _e( 'in', 'buddypress' ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></em></p>
    2727
    2828                            <div class="entry">
  • tags/1.2.5/bp-themes/bp-default/members/single/groups.php

    r12699 r12699  
    99
    1010            <?php _e( 'Order By:', 'buddypress' ) ?>
    11             <select id="groups-all">
     11            <select id="groups-sort-by">
    1212                <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
    1313                <option value="popular"><?php _e( 'Most Members', 'buddypress' ) ?></option>
  • tags/1.2.5/bp-themes/bp-default/members/single/messages/messages-loop.php

    r12699 r12699  
    1818    <?php do_action( 'bp_before_member_messages_threads' ) ?>
    1919
    20     <table id="message-threads">
     20    <table id="message-threads" class="zebra">
    2121        <?php while ( bp_message_threads() ) : bp_message_thread(); ?>
    2222
  • tags/1.2.5/bp-themes/bp-default/members/single/messages/notices-loop.php

    r12699 r12699  
    1818    <?php do_action( 'bp_before_notices' ) ?>
    1919
    20     <table id="message-threads">
     20    <table id="message-threads" class="zebra">
    2121        <?php while ( bp_message_threads() ) : bp_message_thread(); ?>
    2222            <tr>
  • tags/1.2.5/bp-themes/bp-default/members/single/profile/profile-loop.php

    r12699 r12699  
    1616                    <?php endif; ?>
    1717
    18                     <table class="profile-fields">
     18                    <table class="profile-fields zebra">
    1919                        <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    2020
  • tags/1.2.5/bp-themes/bp-default/search.php

    r12699 r12699  
    3333                            <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    3434
    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>
     35                            <p class="date"><?php the_time() ?> <em><?php _e( 'in', 'buddypress' ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></em></p>
    3636
    3737                            <div class="entry">
  • tags/1.2.5/bp-themes/bp-default/single.php

    r12699 r12699  
    2727                        <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    2828
    29                         <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>
     29                        <p class="date"><?php the_time() ?> <em><?php _e( 'in', 'buddypress' ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></em></p>
    3030
    3131                        <div class="entry">
  • tags/1.2.5/bp-themes/bp-default/style.css

    r12699 r12699  
    33Theme URI: http://buddypress.org/extend/themes/
    44Description: The default theme for BuddyPress.
    5 Version: 1.2.4
     5Version: 1.2.5
    66Author: BuddyPress.org
    77Author URI: http://buddypress.org
Note: See TracChangeset for help on using the changeset viewer.