Changeset 3808
- Timestamp:
- 01/22/2011 08:58:56 AM (14 years ago)
- Location:
- trunk/bp-themes/bp-default/members/single
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/members/single/activity.php
r3771 r3808 1 1 <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> 2 2 <ul> 3 3 4 <?php bp_get_options_nav() ?> 4 5 … … 8 9 <option value="activity_update"><?php _e( 'Show Updates', 'buddypress' ) ?></option> 9 10 10 <?php if ( 'groups' != bp_current_action() ) : ?> 11 <?php if ( bp_is_active( 'blogs' ) ) : ?> 11 <?php 12 if ( 'groups' != bp_current_action() ) : 13 if ( bp_is_active( 'blogs' ) ) : ?> 14 12 15 <option value="new_blog_post"><?php _e( 'Show Blog Posts', 'buddypress' ) ?></option> 13 16 <option value="new_blog_comment"><?php _e( 'Show Blog Comments', 'buddypress' ) ?></option> 14 <?php endif; ?>15 17 16 <?php if ( bp_is_active( 'friends' ) ) : ?> 18 <?php 19 endif; 20 21 if ( bp_is_active( 'friends' ) ) : ?> 22 17 23 <option value="friendship_accepted,friendship_created"><?php _e( 'Show Friendship Connections', 'buddypress' ) ?></option> 18 <?php endif; ?>19 <?php endif; ?>20 24 21 <?php if ( bp_is_active( 'forums' ) ) : ?> 25 <?php endif; 26 27 endif; 28 29 if ( bp_is_active( 'forums' ) ) : ?> 30 22 31 <option value="new_forum_topic"><?php _e( 'Show New Forum Topics', 'buddypress' ) ?></option> 23 32 <option value="new_forum_post"><?php _e( 'Show Forum Replies', 'buddypress' ) ?></option> 24 <?php endif; ?>25 33 26 <?php if ( bp_is_active( 'groups' ) ) : ?> 34 <?php endif; 35 36 if ( bp_is_active( 'groups' ) ) : ?> 37 27 38 <option value="created_group"><?php _e( 'Show New Groups', 'buddypress' ) ?></option> 28 39 <option value="joined_group"><?php _e( 'Show New Group Memberships', 'buddypress' ) ?></option> 29 <?php endif; ?>30 40 31 <?php do_action( 'bp_member_activity_filter_options' ) ?> 41 <?php endif; 42 43 do_action( 'bp_member_activity_filter_options' ); ?> 44 32 45 </select> 33 46 </li> … … 35 48 </div><!-- .item-list-tabs --> 36 49 37 <?php do_action( 'bp_before_member_activity_post_form' ) ?>50 <?php do_action( 'bp_before_member_activity_post_form' ); ?> 38 51 39 <?php if ( is_user_logged_in() && bp_is_my_profile() && ( '' == bp_current_action() || 'just-me' == bp_current_action() ) ) : ?>40 <?php locate_template( array( 'activity/post-form.php'), true ) ?> 41 <?php endif; ?> 52 <?php 53 if ( is_user_logged_in() && bp_is_my_profile() && ( !bp_is_current_action() || bp_is_current_action( 'just-me' ) ) ) 54 locate_template( array( 'activity/post-form.php'), true ); 42 55 43 <?php do_action( 'bp_after_member_activity_post_form' ) ?> 44 <?php do_action( 'bp_before_member_activity_content' )?>56 do_action( 'bp_after_member_activity_post_form' ); 57 do_action( 'bp_before_member_activity_content' ); ?> 45 58 46 59 <div class="activity" role="main"> 47 <?php locate_template( array( 'activity/activity-loop.php' ), true ) ?> 60 61 <?php locate_template( array( 'activity/activity-loop.php' ), true ); ?> 62 48 63 </div><!-- .activity --> 49 64 50 <?php do_action( 'bp_after_member_activity_content' ) ?>65 <?php do_action( 'bp_after_member_activity_content' ); ?> -
trunk/bp-themes/bp-default/members/single/blogs.php
r3771 r3808 1 1 <div class="item-list-tabs" id="subnav" role="navigation"> 2 2 <ul> 3 <?php bp_get_options_nav() ?> 3 4 <?php bp_get_options_nav(); ?> 4 5 5 6 <li id="blogs-order-select" class="last filter"> 6 <?php _e( 'Order By:', 'buddypress' ) ?> 7 8 <?php _e( 'Order By:', 'buddypress' ); ?> 9 7 10 <select id="blogs-all"> 8 <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>9 <option value="newest"><?php _e( 'Newest', 'buddypress' ) ?></option>10 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>11 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> 12 <option value="newest"><?php _e( 'Newest', 'buddypress' ); ?></option> 13 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> 11 14 12 <?php do_action( 'bp_member_blog_order_options' ) ?> 15 <?php do_action( 'bp_member_blog_order_options' ); ?> 16 13 17 </select> 14 18 </li> … … 16 20 </div><!-- .item-list-tabs --> 17 21 18 <?php do_action( 'bp_before_member_blogs_content' ) ?>22 <?php do_action( 'bp_before_member_blogs_content' ); ?> 19 23 20 24 <div class="blogs myblogs" role="main"> 21 <?php locate_template( array( 'blogs/blogs-loop.php' ), true ) ?> 25 26 <?php locate_template( array( 'blogs/blogs-loop.php' ), true ); ?> 27 22 28 </div><!-- .blogs.myblogs --> 23 29 24 <?php do_action( 'bp_after_member_blogs_content' ) ?>30 <?php do_action( 'bp_after_member_blogs_content' ); ?> -
trunk/bp-themes/bp-default/members/single/friends.php
r3771 r3808 1 1 <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> 2 2 <ul> 3 <?php if ( bp_is_my_profile() ) : ?> 4 <?php bp_get_options_nav() ?> 5 <?php endif; ?> 3 <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?> 6 4 7 5 <li id="members-order-select" class="last filter"> 8 6 9 7 <?php _e( 'Order By:', 'buddypress' ) ?> 8 10 9 <select id="members-all"> 11 10 <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option> … … 14 13 15 14 <?php do_action( 'bp_member_blog_order_options' ) ?> 15 16 16 </select> 17 17 </li> … … 19 19 </div> 20 20 21 <?php if ( 'requests' == bp_current_action() ) : ?> 22 <?php locate_template( array( 'members/single/friends/requests.php' ), true ) ?> 21 <?php 23 22 24 <?php else : ?> 23 if ( bp_is_current_action( 'requests' ) ) : 24 locate_template( array( 'members/single/friends/requests.php' ), true ); 25 25 26 <?php do_action( 'bp_before_member_friends_content' ) ?> 26 else : 27 do_action( 'bp_before_member_friends_content' ); ?> 27 28 28 29 <div class="members friends"> 29 <?php locate_template( array( 'members/members-loop.php' ), true ) ?> 30 31 <?php locate_template( array( 'members/members-loop.php' ), true ); ?> 32 30 33 </div><!-- .members.friends --> 31 34 32 <?php do_action( 'bp_after_member_friends_content' ) ?>35 <?php do_action( 'bp_after_member_friends_content' ); ?> 33 36 34 37 <?php endif; ?> -
trunk/bp-themes/bp-default/members/single/groups.php
r3771 r3808 1 1 <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> 2 2 <ul> 3 <?php if ( bp_is_my_profile() ) : ?> 4 <?php bp_get_options_nav() ?> 3 <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?> 4 5 <?php if ( !bp_is_current_action( 'invites' ) ) : ?> 6 7 <li id="groups-order-select" class="last filter"> 8 9 <?php _e( 'Order By:', 'buddypress' ) ?> 10 11 <select id="groups-sort-by"> 12 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> 13 <option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option> 14 <option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option> 15 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> 16 17 <?php do_action( 'bp_member_group_order_options' ) ?> 18 19 </select> 20 </li> 21 5 22 <?php endif; ?> 6 23 7 <?php if ( 'invites' != bp_current_action() ) : ?>8 <li id="groups-order-select" class="last filter">9 10 <?php _e( 'Order By:', 'buddypress' ) ?>11 <select id="groups-sort-by">12 <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>13 <option value="popular"><?php _e( 'Most Members', 'buddypress' ) ?></option>14 <option value="newest"><?php _e( 'Newly Created', 'buddypress' ) ?></option>15 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>16 17 <?php do_action( 'bp_member_group_order_options' ) ?>18 </select>19 </li>20 <?php endif; ?>21 24 </ul> 22 25 </div><!-- .item-list-tabs --> 23 26 24 <?php if ( 'invites' == bp_current_action() ) : ?> 25 <?php locate_template( array( 'members/single/groups/invites.php' ), true ) ?> 27 <?php 26 28 27 <?php else : ?> 29 if ( bp_is_current_action( 'invites' ) ) : 30 locate_template( array( 'members/single/groups/invites.php' ), true ); 28 31 29 <?php do_action( 'bp_before_member_groups_content' ) ?> 32 else : 33 do_action( 'bp_before_member_groups_content' ); ?> 30 34 31 35 <div class="groups mygroups"> 32 <?php locate_template( array( 'groups/groups-loop.php' ), true ) ?> 36 37 <?php locate_template( array( 'groups/groups-loop.php' ), true ); ?> 38 33 39 </div> 34 40 35 <?php do_action( 'bp_after_member_groups_content' ) ?>41 <?php do_action( 'bp_after_member_groups_content' ); ?> 36 42 37 43 <?php endif; ?> -
trunk/bp-themes/bp-default/members/single/home.php
r3790 r3808 1 <?php get_header() ?>1 <?php get_header(); ?> 2 2 3 3 <div id="content"> 4 4 <div class="padder"> 5 5 6 <?php do_action( 'bp_before_member_home_content' ) ?>6 <?php do_action( 'bp_before_member_home_content' ); ?> 7 7 8 8 <div id="item-header" role="complementary"> … … 16 16 <ul> 17 17 18 <?php bp_get_displayed_user_nav() ?>18 <?php bp_get_displayed_user_nav(); ?> 19 19 20 <?php do_action( 'bp_member_options_nav' ) ?>20 <?php do_action( 'bp_member_options_nav' ); ?> 21 21 22 22 </ul> … … 25 25 26 26 <div id="item-body"> 27 <?php do_action( 'bp_before_member_body' ); ?>27 <?php do_action( 'bp_before_member_body' ); 28 28 29 <?php if ( bp_is_user_activity() || !bp_current_component() ) : ?>30 <?php locate_template( array( 'members/single/activity.php' ), true ); ?>29 if ( bp_is_user_activity() || !bp_current_component() ) : 30 locate_template( array( 'members/single/activity.php' ), true ); 31 31 32 <?php elseif ( bp_is_user_blogs() ) : ?>33 <?php locate_template( array( 'members/single/blogs.php' ), true ); ?>32 elseif ( bp_is_user_blogs() ) : 33 locate_template( array( 'members/single/blogs.php' ), true ); 34 34 35 <?php elseif ( bp_is_user_friends() ) : ?>36 <?php locate_template( array( 'members/single/friends.php' ), true ); ?>35 elseif ( bp_is_user_friends() ) : 36 locate_template( array( 'members/single/friends.php' ), true ); 37 37 38 <?php elseif ( bp_is_user_groups() ) : ?>39 <?php locate_template( array( 'members/single/groups.php' ), true ); ?>38 elseif ( bp_is_user_groups() ) : 39 locate_template( array( 'members/single/groups.php' ), true ); 40 40 41 <?php elseif ( bp_is_user_messages() ) : ?>42 <?php locate_template( array( 'members/single/messages.php' ), true ); ?>41 elseif ( bp_is_user_messages() ) : 42 locate_template( array( 'members/single/messages.php' ), true ); 43 43 44 <?php elseif ( bp_is_user_profile() ) : ?>45 <?php locate_template( array( 'members/single/profile.php' ), true ); ?>44 elseif ( bp_is_user_profile() ) : 45 locate_template( array( 'members/single/profile.php' ), true ); 46 46 47 <?php else : ?> 48 <?php 49 // If nothing sticks, load a generic template 50 locate_template( array( 'members/single/front.php' ), true ); 51 ?> 52 <?php endif; ?> 47 // If nothing sticks, load a generic template 48 else : 49 locate_template( array( 'members/single/front.php' ), true ); 53 50 54 <?php do_action( 'bp_after_member_body' ); ?> 51 endif; 52 53 do_action( 'bp_after_member_body' ); ?> 55 54 56 55 </div><!-- #item-body --> … … 62 61 63 62 <?php get_sidebar(); ?> 64 <?php get_footer() ?>63 <?php get_footer(); ?> -
trunk/bp-themes/bp-default/members/single/member-header.php
r3771 r3808 1 <?php do_action( 'bp_before_member_header' ) ?>1 <?php do_action( 'bp_before_member_header' ); ?> 2 2 3 3 <div id="item-header-avatar"> 4 <a href="<?php bp_user_link() ?>"> 5 <?php bp_displayed_user_avatar( 'type=full' ) ?> 4 <a href="<?php bp_user_link(); ?>"> 5 6 <?php bp_displayed_user_avatar( 'type=full' ); ?> 7 6 8 </a> 7 9 </div><!-- #item-header-avatar --> … … 9 11 <div id="item-header-content"> 10 12 11 <h2 class="fn"><a href="<?php bp_displayed_user_link() ?>"><?php bp_displayed_user_fullname() ?></a> <span class="highlight">@<?php bp_displayed_user_username() ?> <span>?</span></span></h2> 12 <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ) ?></span> 13 <h2 class="fn"> 14 <a href="<?php bp_displayed_user_link(); ?>"><?php bp_displayed_user_fullname(); ?></a> 15 <span class="highlight">@<?php bp_displayed_user_username(); ?> <span>?</span></span> 16 </h2> 17 <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span> 13 18 14 <?php do_action( 'bp_before_member_header_meta' ) ?>19 <?php do_action( 'bp_before_member_header_meta' ); ?> 15 20 16 21 <div id="item-meta"> 22 17 23 <?php if ( bp_is_active( 'activity' ) ) : ?> 24 18 25 <div id="latest-update"> 19 <?php bp_activity_latest_update( bp_displayed_user_id() ) ?> 26 27 <?php bp_activity_latest_update( bp_displayed_user_id() ); ?> 28 20 29 </div> 30 21 31 <?php endif; ?> 22 32 … … 28 38 29 39 <?php 30 31 32 33 34 ?>40 /*** 41 * If you'd like to show specific profile fields here use: 42 * bp_profile_field_data( 'field=About Me' ); -- Pass the name of the field 43 */ 44 do_action( 'bp_profile_header_meta' ); 35 45 36 <?php do_action( 'bp_profile_header_meta' )?>46 ?> 37 47 38 48 </div><!-- #item-meta --> … … 40 50 </div><!-- #item-header-content --> 41 51 42 <?php do_action( 'bp_after_member_header' ) ?>52 <?php do_action( 'bp_after_member_header' ); ?> 43 53 44 <?php do_action( 'template_notices' ) ?>54 <?php do_action( 'template_notices' ); ?> -
trunk/bp-themes/bp-default/members/single/messages.php
r3771 r3808 9 9 <?php 10 10 11 if ( 'compose' == bp_current_action() ) :11 if ( bp_is_current_action( 'compose' ) ) : 12 12 locate_template( array( 'members/single/messages/compose.php' ), true ); 13 13 14 elseif ( 'view' == bp_current_action() ) :14 elseif ( bp_is_current_action( 'view' ) ) : 15 15 locate_template( array( 'members/single/messages/single.php' ), true ); 16 16 … … 21 21 22 22 <?php 23 if ( 'notices' == bp_current_action() ) :23 if ( bp_is_current_action( 'notices' ) ) 24 24 locate_template( array( 'members/single/messages/notices-loop.php' ), true ); 25 26 else : 25 else 27 26 locate_template( array( 'members/single/messages/messages-loop.php' ), true ); 28 29 endif;30 27 ?> 31 28 -
trunk/bp-themes/bp-default/members/single/plugins.php
r3771 r3808 1 <?php get_header() ?>1 <?php get_header(); ?> 2 2 3 3 <div id="content"> 4 4 <div class="padder"> 5 5 6 <?php do_action( 'bp_before_member_plugin_template' ) ?>6 <?php do_action( 'bp_before_member_plugin_template' ); ?> 7 7 8 8 <div id="item-header"> 9 <?php locate_template( array( 'members/single/member-header.php' ), true ) ?> 9 10 <?php locate_template( array( 'members/single/member-header.php' ), true ); ?> 11 10 12 </div><!-- #item-header --> 11 13 … … 13 15 <div class="item-list-tabs no-ajax" id="object-nav" role="navigation"> 14 16 <ul> 15 <?php bp_get_displayed_user_nav() ?>16 17 17 <?php do_action( 'bp_member_options_nav' ) ?> 18 <?php bp_get_displayed_user_nav(); ?> 19 20 <?php do_action( 'bp_member_options_nav' ); ?> 21 18 22 </ul> 19 23 </div> … … 21 25 22 26 <div id="item-body" role="main"> 23 <?php do_action( 'bp_before_member_body' ) ?> 27 28 <?php do_action( 'bp_before_member_body' ); ?> 24 29 25 30 <div class="item-list-tabs no-ajax" id="subnav"> 26 31 <ul> 27 <?php bp_get_options_nav() ?>28 32 29 <?php do_action( 'bp_member_plugin_options_nav' ) ?> 33 <?php bp_get_options_nav(); ?> 34 35 <?php do_action( 'bp_member_plugin_options_nav' ); ?> 36 30 37 </ul> 31 38 </div><!-- .item-list-tabs --> 32 39 33 <h3><?php do_action( 'bp_template_title' ) ?></h3>40 <h3><?php do_action( 'bp_template_title' ); ?></h3> 34 41 35 <?php do_action( 'bp_template_content' ) ?>42 <?php do_action( 'bp_template_content' ); ?> 36 43 37 <?php do_action( 'bp_after_member_body' ) ?>44 <?php do_action( 'bp_after_member_body' ); ?> 38 45 39 46 </div><!-- #item-body --> 40 47 41 <?php do_action( 'bp_after_member_plugin_template' ) ?>48 <?php do_action( 'bp_after_member_plugin_template' ); ?> 42 49 43 50 </div><!-- .padder --> 44 51 </div><!-- #content --> 45 52 46 <?php get_sidebar() ?> 47 48 <?php get_footer() ?> 53 <?php get_sidebar(); ?> 54 <?php get_footer(); ?> -
trunk/bp-themes/bp-default/members/single/profile.php
r3806 r3808 16 16 17 17 <?php 18 if ( 'edit' == bp_current_action() ) :18 if ( bp_is_current_action( 'edit' ) ) 19 19 locate_template( array( 'members/single/profile/edit.php' ), true ); 20 21 elseif ( 'change-avatar' == bp_current_action() ) : 20 elseif ( bp_is_current_action( 'change-avatar' ) ) 22 21 locate_template( array( 'members/single/profile/change-avatar.php' ), true ); 23 24 elseif ( bp_is_active( 'profile' ) ) : 22 elseif ( bp_is_active( 'profile' ) ) 25 23 locate_template( array( 'members/single/profile/profile-loop.php' ), true ); 26 27 else : 24 else 28 25 locate_template( array( 'members/single/profile/profile-wp.php' ), true ); 29 30 endif;31 26 ?> 32 27
Note: See TracChangeset
for help on using the changeset viewer.