Skip to:
Content

BuddyPress.org

Changeset 1600


Ignore:
Timestamp:
07/14/2009 06:05:08 PM (17 years ago)
Author:
apeatling
Message:

Less HTML forcing functions in the default member theme, more editable template tags, with structure.

Location:
trunk/bp-themes/bpmember
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bpmember/activity/just-me.php

    r1366 r1600  
    2929
    3030                <div class="info-group">
    31                         <h4><?php echo bp_word_or_name( __( "My Activity", 'buddypress' ), __( "%s's Activity", 'buddypress' ), true, false ) ?></h4>
     31                        <h4><?php echo bp_word_or_name( __( "My Activity", 'buddypress' ), __( "%s's Activity", 'buddypress' ), true, false ) ?> <a href="<?php bp_activities_member_rss_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ) ?>"><?php _e( 'RSS Feed', 'buddypress' ) ?></a></h4>
    3232
    33                         <?php if ( bp_has_activities( 'type=personal&max=30' ) ) : ?>
     33                        <ul id="activity-filter-links">
     34                                <?php bp_activity_filter_links() ?>
     35                        </ul>
    3436
    35                                 <div id="activity-rss">
    36                                         <p><a href="<?php bp_activities_member_rss_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ) ?>"><?php _e( 'RSS Feed', 'buddypress' ) ?></a></p>
     37                        <?php if ( bp_has_activities( 'type=personal&per_page=25&max=500' ) ) : ?>
     38
     39                                <div class="pag-count" id="activity-count">
     40                                        <?php bp_activity_pagination_count() ?>
     41                                </div>
     42               
     43                                <div class="pagination-links" id="activity-pag">
     44                                        &nbsp; <?php bp_activity_pagination_links() ?>
    3745                                </div>
    3846
  • trunk/bp-themes/bpmember/activity/my-friends.php

    r1366 r1600  
    2121
    2222                <div class="info-group">
    23                         <h4><?php _e( 'My Friends Activity', 'buddypress' ) ?></h4>
     23                        <h4><?php _e( 'My Friends Activity', 'buddypress' ) ?> <a href="<?php bp_activities_member_rss_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ) ?>"><?php _e( 'RSS Feed', 'buddypress' ) ?></a></h4>
    2424
    25                         <?php if ( bp_has_activities( 'type=friends&max=30' ) ) : ?>
     25                        <ul id="activity-filter-links">
     26                                <?php bp_activity_filter_links() ?>
     27                        </ul>
    2628
    27                                 <div id="activity-rss">
    28                                         <p><a href="<?php bp_activities_member_rss_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ) ?>"><?php _e( 'RSS Feed', 'buddypress' ) ?></a></p>
     29                        <?php if ( bp_has_activities( 'type=friends&per_page=25&max=500' ) ) : ?>
     30
     31                                <div class="pag-count" id="activity-count">
     32                                        <?php bp_activity_pagination_count() ?>
     33                                </div>
     34               
     35                                <div class="pagination-links" id="activity-pag">
     36                                        &nbsp; <?php bp_activity_pagination_links() ?>
    2937                                </div>
    3038
  • trunk/bp-themes/bpmember/css/base.css

    r1468 r1600  
    482482                        color: #888;
    483483                }
     484                        div.info-group {
     485                                position: relative;
     486                        }
    484487       
    485488                        div.info-group h4 {
  • trunk/bp-themes/bpmember/css/components.css

    r1570 r1600  
    11/**** ACTIVITY STREAMS ***************************/
     2
     3#activity-list {
     4        background: url(../images/item_list_back.gif) top left repeat-x;
     5        padding: 5px 15px;
     6}
    27
    38#activity-list li {
    49        padding-left: 21px;
    510}
    6         #activity-list li.blogs {
     11        #activity-list li.blogs, ul#activity-filter-links li#afilter-blogs a {
    712                background: url(../images/blog_bullet.gif) 0 4px no-repeat;             
    813        }
    914       
    10         #activity-list li.profile {
     15        #activity-list li.profile, ul#activity-filter-links li#afilter-profile a {
    1116                background: url(../images/profile_bullet.gif) 0 4px no-repeat;
    1217        }
    1318
    14         #activity-list li.friends {
     19        #activity-list li.friends, ul#activity-filter-links li#afilter-friends a {
    1520                background: url(../images/friends_bullet.gif) 0 4px no-repeat;
    1621        }
    1722       
    18         #activity-list li.groups {
     23        #activity-list li.groups, ul#activity-filter-links li#afilter-groups a {
    1924                background: url(../images/groups_bullet.gif) 0 4px no-repeat;
    2025        }
    2126       
    22         #activity-list li.wire {
     27        #activity-list li.wire, ul#activity-filter-links li#afilter-wire a {
    2328                background: url(../images/wire_bullet.gif) 0 4px no-repeat;
    2429        }
    2530       
    26         #activity-list li.status {
     31        #activity-list li.status, ul#activity-filter-links li#afilter-status a {
    2732                background: url(../images/status_bullet.gif) 0 4px no-repeat;
    2833        }
    29 
    3034
    3135#activity-list li blockquote {
    … …  
    3741        color: #999;
    3842}
     43
     44#activity-count, #activity-pag {
     45        position: absolute;
     46        top: 45px;
     47}
     48        #activity-pag {
     49                right: 0;
     50        }
    3951
    4052#activity-rss p {
    … …  
    4860        padding-left: 15px;
    4961}
     62
     63ul#activity-filter-links {
     64        background: url(../images/item_list_back.gif) top left repeat-x;
     65        padding: 15px;
     66        min-height: 22px;
     67        margin-top: 34px;
     68}
     69
     70ul#activity-filter-links li {
     71        float: left;
     72}
     73        ul#activity-filter-links li a {
     74                display: block;
     75                padding: 2px 8px 2px 30px;
     76                background-color: #fff !important;
     77                background-position: 8px 6px !important;
     78                border-radius: 5px;
     79                -moz-border-radius: 5px;
     80                -webkit-border-radius: 5px;
     81                margin: 0 5px 0 0;
     82                border: 1px solid #eee;
     83                text-decoration: none;
     84        }
     85                ul#activity-filter-links li a.selected {
     86                        border: 1px solid #ccc;
     87                        font-weight: bold;
     88                }
     89               
     90                ul#activity-filter-links li#afilter-clear a {
     91                        background: url(../images/error_icon.gif) 0 4px no-repeat;
     92                        border-color: #ffa6ac;
     93                        color: #ff5560;
     94                }
    5095
    5196/**** BLOGS *****************/
    … …  
    216261}
    217262
    218 div#skip-continue {
    219         border-top: 1px solid #ddd;
    220 }
    221         div#skip-continue input {
    222                 font-size: 1em;
    223         }
    224 
    225263#create-group-form ul, #group-settings-form ul {
    226264        margin: 5px 0 0 33px;
    … …  
    286324                margin-top: -20px;
    287325                padding-right: 10px;
     326        }
     327
     328#previous-next {
     329        margin: 25px 0 0 0;
     330        padding: 5px 0 0 0;
     331        border-top: 1px solid #ddd;
     332}
     333        #previous-next input#group-creation-previous {
     334                width: auto;
     335        }
     336       
     337        #previous-next input#group-creation-next, #previous-next input#group-creation-finish {
     338                width: auto;
     339                margin-left: 20px;
    288340        }
    289341
    … …  
    436488        }
    437489
    438         input#save, .standard-form input[type='submit'] {
     490        input#save, input#previous, .standard-form input[type='submit'] {
    439491                font-size: 1.4em;
    440492        }
  • trunk/bp-themes/bpmember/profile/index.php

    r1366 r1600  
    99       
    1010        <div class="left-menu">
    11                 <?php bp_the_avatar() ?>
    12                
    13                 <div class="button-block">
    14                         <?php if ( function_exists('bp_add_friend_button') ) : ?>
    15                                 <?php bp_add_friend_button() ?>
    16                         <?php endif; ?>
    17                        
    18                         <?php if ( function_exists('bp_send_message_button') ) : ?>
    19                                 <?php bp_send_message_button() ?>
    20                         <?php endif; ?>
    21                 </div>
    22 
    23                 <?php bp_custom_profile_sidebar_boxes() ?>
     11                <!-- Profile Menu (Avatar, Add Friend, Send Message buttons etc) -->
     12                <?php load_template( TEMPLATEPATH . '/profile/profile-menu.php' ) ?>
    2413        </div>
    2514
    2615        <div class="main-column">
    2716                <div class="inner-tube">
    28                         <?php bp_get_profile_header() ?>
     17                       
     18                        <!-- Profile Header (Name & Status) -->
     19                        <?php load_template( TEMPLATEPATH . '/profile/profile-header.php' ) ?>
    2920               
    30                         <?php if ( function_exists('xprofile_get_profile') ) : ?>
    31                                 <?php xprofile_get_profile() ?>
    32                         <?php else : ?>
    33                                 <?php bp_core_get_wp_profile() ?>
    34                         <?php endif; ?>
     21                        <!-- Profile Data Loop -->
     22                        <?php load_template( TEMPLATEPATH . '/profile/profile-loop.php' ) ?>
    3523                       
     24                        <!-- Latest Activity Loop -->
    3625                        <?php if ( function_exists( 'bp_activity_install')) : ?>
    3726                        <div class="info-group">
    38                                 <h4><?php echo bp_word_or_name( __( "My Activity", 'buddypress' ), __( "%s's Activity", 'buddypress' ), true, false ) ?></h4>
     27                                <h4><?php echo bp_word_or_name( __( "My Latest Activity", 'buddypress' ), __( "%s's Latest Activity", 'buddypress' ), true, false ) ?> <a href="<?php echo bp_displayed_user_domain() . BP_ACTIVITY_SLUG ?>"><?php _e( 'See All', 'buddypress' ) ?> &rarr;</a></h4>
    3928
    4029                                <?php if ( bp_has_activities( 'type=personal&max=5' ) ) : ?>
    … …  
    6251                        <?php endif; ?>
    6352               
    64                         <?php if ( function_exists('bp_groups_random_groups') ) : ?>
    65                                 <?php bp_groups_random_groups() ?>
    66                         <?php endif; ?>
    67                
    68                         <?php if ( function_exists('bp_friends_random_friends') ) : ?>
    69                                 <?php bp_friends_random_friends() ?>
     53                        <!-- Random Groups Loop -->
     54                        <?php if ( function_exists( 'bp_has_groups' ) ) : ?>
     55
     56                                <?php if ( bp_has_groups( 'type=random&max=5' ) ) : ?>
     57                                        <div class="info-group">
     58                                                <h4><?php bp_word_or_name( __( "My Groups", 'buddypress' ), __( "%s's Groups", 'buddypress' ) ) ?> (<?php bp_group_total_for_member() ?>) <a href="<?php echo bp_displayed_user_domain() . BP_GROUPS_SLUG ?>"><?php _e( 'See All', 'buddypress' ) ?> &rarr;</a></h4>
     59                                               
     60                                                <ul class="horiz-gallery">
     61                                                <?php while ( bp_groups() ) : bp_the_group(); ?>
     62                                                        <li>
     63                                                                <a href="<?php bp_group_permalink() ?>"><?php bp_group_avatar_thumb() ?></a>
     64                                                                <h5><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></h5>
     65                                                        </li>
     66                                                <?php endwhile; ?>
     67                                                </ul>
     68                                       
     69                                        <div class="clear"></div>       
     70                                        </div>
     71                                       
     72                                <?php endif; ?>
     73                                       
    7074                        <?php endif; ?>
    7175
    72                         <?php bp_custom_profile_boxes() ?>
     76                        <!-- Random Friends Loop -->
     77                        <?php if ( function_exists( 'bp_has_friendships' ) ) : ?>
    7378
     79                                <?php if ( bp_has_friendships( 'type=random&max=5' ) ) : ?>
     80                                        <div class="info-group">
     81                                                <h4><?php bp_word_or_name( __( "My Friends", 'buddypress' ), __( "%s's Friends", 'buddypress' ) ) ?> (<?php bp_friend_total_for_member() ?>) <a href="<?php echo bp_displayed_user_domain() . BP_FRIENDS_SLUG ?>"><?php _e( 'See All', 'buddypress' ) ?> &rarr;</a></h4>
     82                                               
     83                                                <ul class="horiz-gallery">
     84                                                <?php while ( bp_user_friendships() ) : bp_the_friendship(); ?>
     85                                                        <li>
     86                                                                <a href="<?php bp_friend_url() ?>"><?php bp_friend_avatar_thumb() ?></a>
     87                                                                <h5><a href="<?php bp_friend_url() ?>"><?php bp_friend_name() ?></a></h5>
     88                                                        </li>
     89                                                <?php endwhile; ?>
     90                                                </ul>
     91                                       
     92                                        <div class="clear"></div>       
     93                                        </div>
     94                                       
     95                                <?php endif; ?>
     96                                       
     97                        <?php endif; ?>
     98                       
     99                        <!-- Hook for including new profile boxes -->
     100                        <?php do_action( 'bp_custom_profile_boxes' ) ?>
     101
     102                        <!-- Profile Wire Loop - uses [TEMPLATEPATH]/wire/post-list.php -->
    74103                        <?php if ( function_exists('bp_wire_get_post_list') ) : ?>
    75104                                <?php bp_wire_get_post_list( bp_current_user_id(), bp_word_or_name( __( "My Wire", 'buddypress' ), __( "%s's Wire", 'buddypress' ), true, false ), bp_word_or_name( __( "No one has posted to your wire yet.", 'buddypress' ), __( "No one has posted to %s's wire yet.", 'buddypress' ), true, false), bp_profile_wire_can_post() ) ?>
    76105                        <?php endif; ?>
     106                       
    77107                </div>
    78108        </div>
  • trunk/bp-themes/bpmember/profile/profile-loop.php

    r1442 r1600  
    1 <?php if ( bp_has_profile() ) : ?>     
    2         <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
     1<?php if ( function_exists('xprofile_get_profile') ) : ?>
     2       
     3        <?php if ( bp_has_profile() ) : ?>     
     4                <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    35
    4                 <?php if ( bp_profile_group_has_fields() ) : ?>
    5                         <div class="info-group">
    6                                 <h4><?php bp_the_profile_group_name() ?></h4>
     6                        <?php if ( bp_profile_group_has_fields() ) : ?>
     7                                <div class="info-group">
     8                                        <h4><?php bp_the_profile_group_name() ?></h4>
    79                               
    8                                 <table class="profile-fields">
    9                                 <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
     10                                        <table class="profile-fields">
     11                                        <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    1012
    11                                         <?php if ( bp_field_has_data() ) : ?>
    12                                         <tr<?php bp_field_css_class() ?>>
    13                                                 <td class="label">
    14                                                         <?php bp_the_profile_field_name() ?>
    15                                                 </td>
    16                                                 <td class="data">
    17                                                         <?php bp_the_profile_field_value() ?>
    18                                                 </td>
    19                                         </tr>
    20                                         <?php endif; ?>
     13                                                <?php if ( bp_field_has_data() ) : ?>
     14                                                <tr<?php bp_field_css_class() ?>>
     15                                                        <td class="label">
     16                                                                <?php bp_the_profile_field_name() ?>
     17                                                        </td>
     18                                                        <td class="data">
     19                                                                <?php bp_the_profile_field_value() ?>
     20                                                        </td>
     21                                                </tr>
     22                                                <?php endif; ?>
    2123
    22                                 <?php endwhile; ?>
    23                                 </table>
    24                         </div>
    25                 <?php endif; ?>
     24                                        <?php endwhile; ?>
     25                                        </table>
     26                                </div>
     27                        <?php endif; ?>
    2628               
    27         <?php endwhile; ?>
     29                <?php endwhile; ?>
    2830       
    29         <div class="button-block">
    30                 <?php if ( bp_is_home() ) : ?>
    31                         <?php bp_edit_profile_button() ?>
    32                 <?php endif; ?>
    33         </div>
     31                <div class="button-block">
     32                        <?php if ( bp_is_home() ) : ?>
     33                                <?php bp_edit_profile_button() ?>
     34                        <?php endif; ?>
     35                </div>
    3436       
    35 <?php else: ?>
     37        <?php else: ?>
    3638       
    37         <div id="message" class="info">
    38                 <p><?php _e( 'Sorry, this person does not have a public profile.', 'buddypress' ) ?></p>
    39         </div>
     39                <div id="message" class="info">
     40                        <p><?php _e( 'Sorry, this person does not have a public profile.', 'buddypress' ) ?></p>
     41                </div>
    4042       
    41 <?php endif;?>
     43        <?php endif;?>
     44
     45<?php else : ?>
     46       
     47        <?php bp_core_get_wp_profile() ?>
     48
     49<?php endif; ?>
  • trunk/bp-themes/bpmember/style.css

    r1522 r1600  
    33Theme URI: http://buddypress.org
    44Description: The default member theme for BuddyPress. This theme handles all non-blog pages.
    5 Version: 1.0.1
     5Version: 1.1-pre
    66Author: Andy Peatling
    77Author URI: http://apeatling.wordpress.com
Note: See TracChangeset for help on using the changeset viewer.