Changeset 2284
- Timestamp:
- 01/09/2010 04:16:51 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 44 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-classes.php
r2276 r2284 348 348 /* Fetch the user's latest update */ 349 349 $user_update = $wpdb->get_results( "SELECT user_id as id, meta_value as latest_update FROM " . CUSTOM_USER_META_TABLE . " WHERE meta_key = 'bp_latest_update' AND user_id IN ( {$user_ids} )" ); 350 351 350 for ( $i = 0; $i < count( $paged_users ); $i++ ) { 352 351 foreach ( $user_update as $update ) { -
trunk/bp-core/bp-core-templatetags.php
r2277 r2284 277 277 } 278 278 279 function bp_member_profile_data( $ field_name = false) {280 echo bp_get_member_profile_data( $ field_name);281 } 282 function bp_get_member_profile_data( $ field_name = false) {279 function bp_member_profile_data( $args = '' ) { 280 echo bp_get_member_profile_data( $args ); 281 } 282 function bp_get_member_profile_data( $args = '' ) { 283 283 global $members_template; 284 284 285 if ( ! $field_name || !function_exists( 'xprofile_install' ) )285 if ( !function_exists( 'xprofile_install' ) ) 286 286 return false; 287 288 $defaults = array( 289 'field' => false, // Field name 290 ); 291 292 $r = wp_parse_args( $args, $defaults ); 293 extract( $r, EXTR_SKIP ); 287 294 288 295 // Populate the user if it hasn't been already. … … 290 297 $members_template->member = new BP_Core_User( $members_template->member->id ); 291 298 292 return apply_filters( 'bp_get_member_profile_data', $members_template->member->profile_data[$field _name]['field_data'], $members_template->member->profile_data[$field_name]['field_type'] );299 return apply_filters( 'bp_get_member_profile_data', $members_template->member->profile_data[$field]['field_data'], $members_template->member->profile_data[$field]['field_type'] ); 293 300 } 294 301 -
trunk/bp-themes/bp-default/_inc/global.js
r2281 r2284 798 798 } ); 799 799 800 801 800 /** Button disabling ************************************************/ 802 801 -
trunk/bp-themes/bp-default/_inc/options.php
r2225 r2284 1 1 <?php 2 2 3 class B p_Dtheme_Options_Page {3 class BP_Dtheme_Options_Page { 4 4 function init() { 5 5 add_action( 'admin_menu', array( 'Bp_Dtheme_Options_Page', 'add_options_page' ) ); … … 7 7 8 8 function add_options_page() { 9 add_theme_page( __( 'Theme Options', 'buddypress' ), __( 'Theme Options', 'buddypress' ), 8, 'theme-options-page', array( 'B p_Dtheme_Options_Page', 'page' ) );9 add_theme_page( __( 'Theme Options', 'buddypress' ), __( 'Theme Options', 'buddypress' ), 8, 'theme-options-page', array( 'BP_Dtheme_Options_Page', 'page' ) ); 10 10 } 11 11 … … 51 51 } 52 52 } 53 add_action( 'init', array( 'B p_Dtheme_Options_Page', 'init' ) );53 add_action( 'init', array( 'BP_Dtheme_Options_Page', 'init' ) ); -
trunk/bp-themes/bp-default/activity/activity-loop.php
r2217 r2284 1 1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_activity_loop() */ ?> 2 3 <?php do_action( 'bp_before_activity_loop' ) ?> 4 2 5 <?php if ( bp_has_activities( bp_ajax_querystring() ) ) : ?> 3 6 … … 26 29 <?php endif; ?> 27 30 31 <?php do_action( 'bp_after_activity_loop' ) ?> 32 28 33 <form action="" name="activity-loop-form" id="activity-loop-form" method="post"> 29 34 <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ) ?> -
trunk/bp-themes/bp-default/activity/entry.php
r2266 r2284 1 1 <?php /* This template is used by activity-loop.php and AJAX functions to show each activity */ ?> 2 3 <?php do_action( 'bp_before_activity_entry' ) ?> 2 4 3 5 <li class="<?php bp_activity_css_class() ?>" id="activity-<?php bp_activity_id() ?>"> … … 8 10 <div class="activity-content"> 9 11 <?php bp_activity_content() ?> 12 13 <?php do_action( 'bp_activity_entry_content' ) ?> 10 14 11 15 <div class="activity-meta"> … … 21 25 <?php endif; ?> 22 26 <?php endif;?> 27 28 <?php do_action( 'bp_activity_entry_meta' ) ?> 23 29 </div> 24 30 </div> … … 30 36 </div> 31 37 <?php endif; ?> 38 39 <?php do_action( 'bp_before_activity_entry_comments' ) ?> 32 40 33 41 <?php if ( bp_activity_can_comment() ) : ?> … … 49 57 </div> 50 58 <?php endif; ?> 59 60 <?php do_action( 'bp_after_activity_entry_comments' ) ?> 51 61 </li> 62 63 <?php do_action( 'bp_after_activity_entry' ) ?> 64 -
trunk/bp-themes/bp-default/activity/index.php
r2253 r2284 1 1 <?php get_header() ?> 2 3 <?php do_action( 'bp_before_directory_activity_content' ) ?>4 2 5 3 <div id="content"> … … 10 8 <?php endif; ?> 11 9 12 < div class="widget_bp_activity_widget">10 <?php do_action( 'bp_before_directory_activity_content' ) ?> 13 11 14 15 16 12 <?php if ( is_user_logged_in() ) : ?> 13 <?php locate_template( array( 'activity/post-form.php'), true ) ?> 14 <?php endif; ?> 17 15 18 <div class="clear"></div>16 <?php do_action( 'template_notices' ) ?> 19 17 20 <?php do_action( 'template_notices' ) ?> 18 <div class="item-list-tabs"> 19 <ul> 20 <li class="selected" id="activity-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_site_member_count() ) ?></a></li> 21 21 22 <div class="item-list-tabs"> 23 <ul> 24 <li class="selected" id="activity-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_site_member_count() ) ?></a></li> 22 <?php if ( is_user_logged_in() ) : ?> 25 23 26 <?php if ( is_user_logged_in() ) : ?> 27 28 <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 29 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-friends/' ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li> 30 <?php endif; ?> 31 32 <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?> 33 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-groups/' ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 34 <?php endif; ?> 35 36 <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?> 37 <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-favorites/' ?>"><?php printf( __( 'My Favorites (<span>%s</span>)', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 38 <?php endif; ?> 39 24 <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 25 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-friends/' ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li> 40 26 <?php endif; ?> 41 27 42 <?php do_action( 'bp_activity_type_tabs' ) ?> 28 <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?> 29 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-groups/' ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 30 <?php endif; ?> 43 31 44 <li id="activity-filter-select" class="last"> 45 <select> 46 <option value="-1"><?php _e( 'No Filter', 'buddypress' ) ?></option> 47 <option value="new_wire_post"><?php _e( 'Show Updates', 'buddypress' ) ?></option> 48 <option value="new_blog_post"><?php _e( 'Show Blog Posts', 'buddypress' ) ?></option> 49 <option value="new_blog_comment"><?php _e( 'Show Blog Comments', 'buddypress' ) ?></option> 50 <option value="new_forum_topic"><?php _e( 'Show New Forum Topics', 'buddypress' ) ?></option> 51 <option value="new_forum_post"><?php _e( 'Show Forum Replies', 'buddypress' ) ?></option> 52 <option value="created_group"><?php _e( 'Show New Groups', 'buddypress' ) ?></option> 53 <option value="joined_group"><?php _e( 'Show New Group Memberships', 'buddypress' ) ?></option> 54 <option value="friendship_accepted,friendship_created"><?php _e( 'Show Friendship Connections', 'buddypress' ) ?></option> 55 <option value="new_member"><?php _e( 'Show New Members', 'buddypress' ) ?></option> 32 <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?> 33 <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/my-favorites/' ?>"><?php printf( __( 'My Favorites (<span>%s</span>)', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 34 <?php endif; ?> 56 35 57 <?php do_action( 'bp_activity_filter_options' ) ?> 58 </select> 59 </li> 60 </ul> 61 </div> 36 <?php endif; ?> 62 37 63 <div class="activity"> 64 <?php // The loop will be loaded here via AJAX on page load to retain selected settings. ?> 65 </div> 38 <?php do_action( 'bp_activity_type_tabs' ) ?> 66 39 67 <form action="" name="activity-widget-form" id="activity-widget-form" method="post"> 68 <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ) ?> 69 <input type="hidden" id="aw-querystring" name="aw-querystring" value="" /> 70 <input type="hidden" id="aw-oldestpage" name="aw-oldestpage" value="1" /> 71 </form> 40 <li id="activity-filter-select" class="last"> 41 <select> 42 <option value="-1"><?php _e( 'No Filter', 'buddypress' ) ?></option> 43 <option value="new_wire_post"><?php _e( 'Show Updates', 'buddypress' ) ?></option> 44 <option value="new_blog_post"><?php _e( 'Show Blog Posts', 'buddypress' ) ?></option> 45 <option value="new_blog_comment"><?php _e( 'Show Blog Comments', 'buddypress' ) ?></option> 46 <option value="new_forum_topic"><?php _e( 'Show New Forum Topics', 'buddypress' ) ?></option> 47 <option value="new_forum_post"><?php _e( 'Show Forum Replies', 'buddypress' ) ?></option> 48 <option value="created_group"><?php _e( 'Show New Groups', 'buddypress' ) ?></option> 49 <option value="joined_group"><?php _e( 'Show New Group Memberships', 'buddypress' ) ?></option> 50 <option value="friendship_accepted,friendship_created"><?php _e( 'Show Friendship Connections', 'buddypress' ) ?></option> 51 <option value="new_member"><?php _e( 'Show New Members', 'buddypress' ) ?></option> 72 52 73 </div><!-- .widget_bp_activity_widget --> 53 <?php do_action( 'bp_activity_filter_options' ) ?> 54 </select> 55 </li> 56 </ul> 57 </div><!-- .item-list-tabs --> 58 59 <div class="activity"> 60 <?php 61 // The loop will be loaded here via AJAX on page load to retain selected settings and not waste cycles. 62 // If you're concerned about no-script functionality, uncomment the following line. 63 64 // locate_template( array( 'activity/activity-loop.php' ), true ); 65 ?> 66 </div><!-- .activity --> 67 68 <form action="" name="activity-widget-form" id="activity-widget-form" method="post"> 69 <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ) ?> 70 <input type="hidden" id="aw-querystring" name="aw-querystring" value="" /> 71 <input type="hidden" id="aw-oldestpage" name="aw-oldestpage" value="1" /> 72 </form> 73 74 <?php do_action( 'bp_after_directory_activity_content' ) ?> 74 75 75 76 </div><!-- .padder --> … … 78 79 <?php locate_template( array( 'sidebar.php' ), true ) ?> 79 80 80 <?php do_action( 'bp_after_directory_activity_content' ) ?>81 82 81 <?php get_footer() ?> -
trunk/bp-themes/bp-default/activity/post-form.php
r2276 r2284 1 1 <form action="" method="post" id="whats-new-form" name="whats-new-form"> 2 3 <?php do_action( 'bp_before_activity_post_form' ) ?> 2 4 3 5 <div id="whats-new-avatar"> … … 25 27 26 28 <?php if ( !bp_is_my_profile() && !bp_is_group_home() ) : ?> 27 <div id="whats-new-post-in-box">28 <?php _e( 'Post in', 'buddypress' ) ?>:29 <div id="whats-new-post-in-box"> 30 <?php _e( 'Post in', 'buddypress' ) ?>: 29 31 30 <select id="whats-new-post-in" name="whats-new-post-in">31 <option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ) ?></option>32 <select id="whats-new-post-in" name="whats-new-post-in"> 33 <option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ) ?></option> 32 34 33 <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100' ) ) : while ( bp_groups() ) : bp_the_group(); ?>34 <option value="<?php bp_group_id() ?>"><?php bp_group_name() ?></option>35 <?php endwhile; endif; ?>36 </select>37 </div>35 <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100' ) ) : while ( bp_groups() ) : bp_the_group(); ?> 36 <option value="<?php bp_group_id() ?>"><?php bp_group_name() ?></option> 37 <?php endwhile; endif; ?> 38 </select> 39 </div> 38 40 <?php elseif ( bp_is_group_home() ) : ?> 39 41 <input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id() ?>" /> 40 42 <?php endif; ?> 41 43 42 </div> 43 </div> 44 <?php do_action( 'bp_activity_post_form_options' ) ?> 45 46 </div><!-- #whats-new-options --> 47 </div><!-- #whats-new-content --> 44 48 45 49 <?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?> 46 </form> 50 <?php do_action( 'bp_after_activity_post_form' ) ?> 51 52 </form><!-- #whats-new-form --> -
trunk/bp-themes/bp-default/blogs/blogs-loop.php
r2170 r2284 1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_blogs_filter() */ ?> 1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_content_filter() */ ?> 2 3 <?php do_action( 'bp_before_blogs_loop' ) ?> 4 2 5 <?php if ( bp_has_blogs( bp_ajax_querystring() ) ) : ?> 3 6 … … 14 17 </div> 15 18 16 <?php do_action( 'bp_before_directory_blogs_list' ) ?>17 18 19 <ul id="blogs-list" class="item-list"> 19 20 <?php while ( bp_blogs() ) : bp_the_blog(); ?> … … 28 29 <div class="item-meta"><span class="activity"><?php bp_blog_last_active() ?></span></div> 29 30 30 <?php do_action( 'bp_ core_directory_blogs_item' ) ?>31 <?php do_action( 'bp_directory_blogs_item' ) ?> 31 32 </div> 32 33 … … 60 61 61 62 <?php endif; ?> 63 64 <?php do_action( 'bp_after_blogs_loop' ) ?> -
trunk/bp-themes/bp-default/blogs/create.php
r2170 r2284 6 6 <div class="padder"> 7 7 8 <?php do_action( 'template_notices' ) // (error/success feedback)?>8 <?php do_action( 'template_notices' ) ?> 9 9 10 10 <h2><?php _e( 'Create a Blog', 'buddypress' ) ?> <a class="button" href="<?php echo bp_root_domain() . '/' . BP_BLOGS_SLUG . '/' ?>"><?php _e( 'Blogs Directory', 'buddypress' ) ?></a></h2> … … 26 26 <?php do_action( 'bp_after_create_blog_content' ) ?> 27 27 28 29 28 </div><!-- .padder --> 30 29 </div><!-- #content --> -
trunk/bp-themes/bp-default/blogs/index.php
r2198 r2284 1 1 <?php get_header() ?> 2 3 <?php do_action( 'bp_before_directory_members_content' ) ?>4 2 5 3 <div id="content"> … … 10 8 <h2><?php _e( 'Blogs Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() && bp_blog_signup_enabled() ) : ?> <a class="button" href="<?php echo bp_root_domain() . '/' . BP_BLOGS_SLUG . '/create/' ?>"><?php _e( 'Create a Blog', 'buddypress' ) ?></a><?php endif; ?></h2> 11 9 10 <?php do_action( 'bp_before_directory_blogs_content' ) ?> 11 12 12 <div id="blog-dir-search" class="dir-search"> 13 13 <?php bp_directory_blogs_search_form() ?> 14 </div> 14 </div><!-- #blog-dir-search --> 15 15 16 16 <div class="item-list-tabs"> … … 22 22 <?php endif; ?> 23 23 24 <?php do_action( 'bp_blogs_directory_ member_types' ) ?>24 <?php do_action( 'bp_blogs_directory_blog_types' ) ?> 25 25 26 26 <li id="blogs-order-select" class="last filter"> … … 36 36 </li> 37 37 </ul> 38 </div> 38 </div><!-- .item-list-tabs --> 39 39 40 40 <div id="blogs-dir-list" class="blogs dir-list"> 41 <?php /* 'members/members-loop.php' is loaded here via AJAX */ ?> 42 </div> 41 <?php 42 // The loop will be loaded here via AJAX on page load to retain selected settings and not waste cycles. 43 // If you're concerned about no-script functionality, uncomment the following line. 43 44 44 <?php do_action( 'bp_directory_members_content' ) ?> 45 // locate_template( array( 'blogs/blogs-loop.php' ), true ); 46 ?> 47 </div><!-- #blogs-dir-list --> 45 48 46 <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ) ?>49 <?php do_action( 'bp_after_directory_blogs_content' ) ?> 47 50 48 </form> 51 <?php wp_nonce_field( 'directory_blogs', '_wpnonce-blogs-filter' ) ?> 52 53 </form><!-- #blogs-directory-form --> 49 54 50 55 </div><!-- .padder --> … … 53 58 <?php locate_template( array( 'sidebar.php' ), true ) ?> 54 59 55 <?php do_action( 'bp_after_directory_members_content' ) ?>56 57 60 <?php get_footer() ?> -
trunk/bp-themes/bp-default/footer.php
r2274 r2284 5 5 6 6 <div id="footer"> 7 <?php if ( bp_core_is_multisite() ) : ?> 8 <p><?php printf( __( '%s is proudly powered by <a href="http://mu.wordpress.org">WordPress MU</a> and <a href="http://buddypress.org">BuddyPress</a>', 'buddypress' ), bloginfo('name') ); ?></p> 9 <?php else : ?> 10 <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> 11 <?php endif; ?> 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> 12 8 13 9 <?php do_action( 'bp_footer' ) ?> 14 </div> 10 </div><!-- #footer --> 15 11 16 12 <?php do_action( 'bp_after_footer' ) ?> -
trunk/bp-themes/bp-default/functions.php
r2276 r2284 3 3 /* Stop the theme from killing WordPress if BuddyPress is not enabled. */ 4 4 if ( !class_exists( 'BP_Core_User' ) ) 5 return ;5 return false; 6 6 7 7 /* Register the widget columns */ … … 119 119 function bp_dtheme_header_style() { ?> 120 120 <style type="text/css"> 121 #header{ 122 background-image: url(<?php header_image() ?>); 123 } 121 #header { background-image: url(<?php header_image() ?>); } 124 122 <?php if ( 'blank' == get_header_textcolor() ) { ?> 125 #header h1, #header #desc { 126 display: none; 127 } 123 #header h1, #header #desc { display: none; } 128 124 <?php } else { ?> 129 #header h1 a, #desc { 130 color:#<?php header_textcolor() ?>; 131 } 125 #header h1 a, #desc { color:#<?php header_textcolor() ?>; } 132 126 <?php } ?> 133 127 </style> -
trunk/bp-themes/bp-default/groups/create.php
r2170 r2284 1 1 <?php get_header() ?> 2 3 <?php do_action( 'bp_before_directory_groups_content' ) ?>4 2 5 3 <div id="content"> … … 8 6 <form action="<?php bp_group_creation_form_action() ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data"> 9 7 <h2><?php _e( 'Create a Group', 'buddypress' ) ?> <a class="button" href="<?php echo bp_root_domain() . '/' . BP_GROUPS_SLUG . '/' ?>"><?php _e( 'Groups Directory', 'buddypress' ) ?></a></h2> 8 9 <?php do_action( 'bp_before_create_group' ) ?> 10 10 11 11 <div class="item-list-tabs no-ajax" id="group-create-tabs"> … … 19 19 <div class="item-body" id="group-create-body"> 20 20 21 < !-- Group creation step 1: Basic group details -->21 <?php /* Group creation step 1: Basic group details */ ?> 22 22 <?php if ( bp_is_group_creation_step( 'group-details' ) ) : ?> 23 23 … … 39 39 <?php endif; ?> 40 40 41 < !-- Group creation step 2: Group settings -->41 <?php /* Group creation step 2: Group settings */ ?> 42 42 <?php if ( bp_is_group_creation_step( 'group-settings' ) ) : ?> 43 43 … … 101 101 <?php endif; ?> 102 102 103 < !-- Group creation step 3: Avatar Uploads -->103 <?php /* Group creation step 3: Avatar Uploads */ ?> 104 104 <?php if ( bp_is_group_creation_step( 'group-avatar' ) ) : ?> 105 105 … … 110 110 <div class="left-menu"> 111 111 <?php bp_new_group_avatar() ?> 112 </div> 112 </div><!-- .left-menu --> 113 113 114 114 <div class="main-column"> … … 122 122 123 123 <p><?php _e( 'To skip the avatar upload process, hit the "Next Step" button.', 'buddypress' ) ?></p> 124 </div> 124 </div><!-- .main-column --> 125 125 126 126 <?php endif; ?> … … 153 153 <?php endif; ?> 154 154 155 < !-- Group creation step 4: Invite friends to group -->155 <?php /* Group creation step 4: Invite friends to group */ ?> 156 156 <?php if ( bp_is_group_creation_step( 'group-invites' ) ) : ?> 157 157 … … 168 168 </div> 169 169 170 </div> 170 </div><!-- .left-menu --> 171 171 172 172 <div class="main-column"> … … 201 201 <?php wp_nonce_field( 'groups_create_save_group-invites' ) ?> 202 202 203 </div> 203 </div><!-- .main-column --> 204 204 205 205 <?php do_action( 'bp_after_group_invites_creation_step' ); ?> … … 213 213 <?php if ( 'crop-image' != bp_get_avatar_admin_step() ) : ?> 214 214 <div class="submit" id="previous-next"> 215 < !-- Previous Button -->215 <?php /* Previous Button */ ?> 216 216 <?php if ( !bp_is_first_group_creation_step() ) : ?> 217 217 <input type="button" value="← <?php _e('Previous Step', 'buddypress') ?>" id="group-creation-previous" name="previous" onclick="location.href='<?php bp_group_creation_previous_link() ?>'" /> 218 218 <?php endif; ?> 219 219 220 < !-- Next Button -->220 <?php /* Next Button */ ?> 221 221 <?php if ( !bp_is_last_group_creation_step() && !bp_is_first_group_creation_step() ) : ?> 222 222 <input type="submit" value="<?php _e('Next Step', 'buddypress') ?> →" id="group-creation-next" name="save" /> 223 223 <?php endif;?> 224 224 225 < !-- Create Button -->225 <?php /* Create Button */ ?> 226 226 <?php if ( bp_is_first_group_creation_step() ) : ?> 227 227 <input type="submit" value="<?php _e('Create Group and Continue', 'buddypress') ?> →" id="group-creation-create" name="save" /> 228 228 <?php endif; ?> 229 229 230 < !-- Finish Button -->230 <?php /* Finish Button */ ?> 231 231 <?php if ( bp_is_last_group_creation_step() ) : ?> 232 232 <input type="submit" value="<?php _e('Finish', 'buddypress') ?> →" id="group-creation-finish" name="save" /> … … 237 237 <?php do_action( 'bp_after_group_creation_step_buttons' ); ?> 238 238 239 < !-- Don't leave out this hidden field -->239 <?php /* Don't leave out this hidden field */ ?> 240 240 <input type="hidden" name="group_id" id="group_id" value="<?php bp_new_group_id() ?>" /> 241 241 … … 243 243 244 244 </div><!-- .item-body --> 245 246 <?php do_action( 'bp_after_create_group' ) ?> 245 247 246 248 </form> … … 251 253 <?php locate_template( array( 'sidebar.php' ), true ) ?> 252 254 253 <?php do_action( 'bp_after_directory_groups_content' ) ?>254 255 255 <?php get_footer() ?> -
trunk/bp-themes/bp-default/groups/groups-loop.php
r2170 r2284 1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_groups_directory_filter() */ ?> 1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_content_filter() */ ?> 2 3 <?php do_action( 'bp_before_groups_loop' ) ?> 4 2 5 <?php if ( bp_has_groups( bp_ajax_querystring() ) ) : ?> 3 6 … … 13 16 14 17 </div> 15 16 <?php do_action( 'bp_before_directory_groups_list' ) ?>17 18 18 19 <ul id="groups-list" class="item-list"> … … 49 50 </ul> 50 51 51 <?php do_action( 'bp_after_ directory_groups_list' ) ?>52 <?php do_action( 'bp_after_groups_loop' ) ?> 52 53 53 54 <?php else: ?> -
trunk/bp-themes/bp-default/groups/index.php
r2198 r2284 1 1 <?php get_header() ?> 2 3 <?php do_action( 'bp_before_directory_groups_content' ) ?>4 2 5 3 <div id="content"> … … 9 7 <h2><?php _e( 'Groups Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() ) : ?> <a class="button" href="<?php echo bp_root_domain() . '/' . BP_GROUPS_SLUG . '/create/' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a><?php endif; ?></h2> 10 8 9 <?php do_action( 'bp_before_directory_groups_content' ) ?> 10 11 11 <div id="group-dir-search" class="dir-search"> 12 12 <?php bp_directory_groups_search_form() ?> 13 </div> 13 </div><!-- #group-dir-search --> 14 14 15 15 <div class="item-list-tabs"> … … 21 21 <?php endif; ?> 22 22 23 <?php do_action( 'bp_ members_directory_group_types' ) ?>23 <?php do_action( 'bp_groups_directory_group_types' ) ?> 24 24 25 25 <li id="groups-order-select" class="last filter"> … … 36 36 </li> 37 37 </ul> 38 </div> 38 </div><!-- .item-list-tabs --> 39 39 40 40 <div id="groups-dir-list" class="groups dir-list"> 41 <?php /* 'groups/groups-loop.php' is loaded here via AJAX */ ?> 42 </div> 41 <?php 42 // The loop will be loaded here via AJAX on page load to retain selected settings and not waste cycles. 43 // If you're concerned about no-script functionality, uncomment the following line. 44 45 // locate_template( array( 'groups/groups-loop.php' ), true ); 46 ?> 47 </div><!-- #groups-dir-list --> 43 48 44 49 <?php do_action( 'bp_directory_groups_content' ) ?> 45 50 46 <?php wp_nonce_field( 'directory_ members', '_wpnonce-member-filter' ) ?>51 <?php wp_nonce_field( 'directory_groups', '_wpnonce-groups-filter' ) ?> 47 52 48 </form> 53 </form><!-- #groups-directory-form --> 54 55 <?php do_action( 'bp_after_directory_groups_content' ) ?> 49 56 50 57 </div><!-- .padder --> … … 53 60 <?php locate_template( array( 'sidebar.php' ), true ) ?> 54 61 55 <?php do_action( 'bp_after_directory_groups_content' ) ?>56 57 62 <?php get_footer() ?> -
trunk/bp-themes/bp-default/groups/single/activity.php
r2270 r2284 3 3 <li class="feed"><a href="<?php bp_group_activity_feed_link() ?>" title="RSS Feed"><?php _e( 'RSS', 'buddypress' ) ?></a></li> 4 4 5 <?php do_action( 'bp_activity_group_syndication_options') ?>5 <?php do_action( 'bp_group_activity_syndication_options' ) ?> 6 6 7 7 <li id="activity-filter-select" class="last"> … … 13 13 <option value="joined_group"><?php _e( 'Show New Group Memberships', 'buddypress' ) ?></option> 14 14 15 <?php do_action( 'bp_ activity_group_filter_options' ) ?>15 <?php do_action( 'bp_group_activity_filter_options' ) ?> 16 16 </select> 17 17 </li> 18 18 </ul> 19 </div> 19 </div><!-- .item-list-tabs --> 20 21 <?php do_action( 'bp_before_group_activity_post_form' ) ?> 20 22 21 23 <?php if ( is_user_logged_in() && bp_group_is_member() ) : ?> … … 23 25 <?php endif; ?> 24 26 27 <?php do_action( 'bp_after_group_activity_post_form' ) ?> 28 <?php do_action( 'bp_before_group_activity_content' ) ?> 29 25 30 <div class="activity single-group"> 26 <?php // 'activity/activity-loop.php' loaded here via AJAX. ?> 27 </div> 31 <?php 32 // The loop will be loaded here via AJAX on page load to retain selected settings and not waste cycles. 33 // If you're concerned about no-script functionality, uncomment the following line. 34 35 // locate_template( array( 'groups/groups-loop.php' ), true ); 36 ?> 37 </div><!-- .activity --> 38 39 <?php do_action( 'bp_after_group_activity_content' ) ?> -
trunk/bp-themes/bp-default/groups/single/admin.php
r2259 r2284 3 3 <?php bp_group_admin_tabs(); ?> 4 4 </ul> 5 </div> 5 </div><!-- .item-list-tabs --> 6 7 <form action="<?php bp_group_admin_form_action() ?>" name="group-settings-form" id="group-settings-form" class="standard-form" method="post" enctype="multipart/form-data"> 6 8 7 9 <?php do_action( 'bp_before_group_admin_content' ) ?> 8 9 <form action="<?php bp_group_admin_form_action() ?>" name="group-settings-form" id="group-settings-form" class="standard-form" method="post" enctype="multipart/form-data">10 10 11 11 <?php /* Edit Group Details */ ?> … … 308 308 <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id() ?>" /> 309 309 310 <?php do_action( 'bp_after_group_admin_content' ) ?> 311 310 312 </form> 311 313 312 <?php do_action( 'bp_after_group_admin_content' ) ?> -
trunk/bp-themes/bp-default/groups/single/forum.php
r2197 r2284 1 <?php do_action( 'bp_before_group_forum_content' ) ?> 2 1 3 <?php if ( bp_is_group_forum_topic_edit() ) : ?> 2 4 <?php locate_template( array( 'groups/single/forum/edit.php' ), true ) ?> … … 8 10 9 11 <div class="forums single-forum"> 10 <?php // 'forums/topic-loop.php' loaded here via AJAX. ?> 11 </div> 12 <?php 13 // The loop will be loaded here via AJAX on page load to retain selected settings and not waste cycles. 14 // If you're concerned about no-script functionality, uncomment the following line. 15 16 // locate_template( array( 'forums/forums-loop.php' ), true ); 17 ?> 18 </div><!-- .forums --> 19 20 <?php do_action( 'bp_after_group_forum_content' ) ?> 12 21 13 22 <?php if ( ( is_user_logged_in() && 'public' == bp_get_group_status() ) || bp_group_is_member() ) : ?> … … 16 25 <div id="post-new-topic"> 17 26 18 <?php do_action( ' groups_forum_new_topic_before' ) ?>27 <?php do_action( 'bp_before_group_forum_post_new' ) ?> 19 28 20 29 <?php if ( !bp_group_is_member() ) : ?> … … 34 43 <input type="text" name="topic_tags" id="topic_tags" value="" /> 35 44 36 <?php do_action( ' groups_forum_new_topic_after' ) ?>45 <?php do_action( 'bp_after_group_forum_post_new' ) ?> 37 46 38 47 <div class="submit"> … … 41 50 42 51 <?php wp_nonce_field( 'bp_forums_new_topic' ) ?> 43 </div> 52 </div><!-- #post-new-topic --> 44 53 </form> 45 54 -
trunk/bp-themes/bp-default/groups/single/forum/edit.php
r2197 r2284 18 18 <div id="edit-topic"> 19 19 20 <?php do_action( ' groups_forum_edit_topic_before' ) ?>20 <?php do_action( 'bp_group_before_edit_forum_topic' ) ?> 21 21 22 22 <p><strong><?php _e( 'Edit Topic:', 'buddypress' ) ?></strong></p> … … 28 28 <textarea name="topic_text" id="topic_text"><?php bp_the_topic_text() ?></textarea> 29 29 30 <?php do_action( ' groups_forum_edit_topic_after' ) ?>30 <?php do_action( 'bp_group_after_edit_forum_topic' ) ?> 31 31 32 32 <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" /></p> … … 40 40 <div id="edit-post"> 41 41 42 <?php do_action( ' groups_forum_edit_post_before' ) ?>42 <?php do_action( 'bp_group_before_edit_forum_post' ) ?> 43 43 44 44 <p><strong><?php _e( 'Edit Post:', 'buddypress' ) ?></strong></p> … … 46 46 <textarea name="post_text" id="post_text"><?php bp_the_topic_post_edit_text() ?></textarea> 47 47 48 <?php do_action( ' groups_forum_edit_post_after' ) ?>48 <?php do_action( 'bp_group_after_edit_forum_post' ) ?> 49 49 50 50 <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" /></p> -
trunk/bp-themes/bp-default/groups/single/group-header.php
r2191 r2284 1 <?php do_action( 'bp_before_group_header' ) ?> 2 1 3 <div id="item-actions"> 2 4 <?php if ( bp_group_is_visible() ) : ?> … … 22 24 23 25 <h2><a href="<?php bp_group_permalink() ?>" title="<?php bp_group_name() ?>"><?php bp_group_name() ?></a></h2> 26 <span class="highlight"><?php bp_group_type() ?></span> <span class="activity"><?php printf( __( 'active %s ago', 'buddypress' ), bp_get_group_last_active() ) ?></span> 24 27 25 < span class="highlight"><?php bp_group_type() ?></span> <span class="activity"><?php printf( __( 'active %s ago', 'buddypress' ), bp_get_group_last_active() ) ?></span>28 <?php do_action( 'bp_before_group_header_meta' ) ?> 26 29 27 30 <div id="item-meta"> … … 30 33 <?php bp_group_join_button() ?> 31 34 32 <?php do_action( 'bp_group_header_ content' ) ?>35 <?php do_action( 'bp_group_header_meta' ) ?> 33 36 </div> 37 38 <?php do_action( 'bp_after_group_header' ) ?> -
trunk/bp-themes/bp-default/groups/single/home.php
r2267 r2284 1 1 <?php get_header() ?> 2 3 <?php do_action( 'bp_before_directory_members_content' ) ?>4 2 5 3 <div id="content"> 6 4 <div class="padder"> 7 5 <?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?> 6 7 <?php do_action( 'bp_before_group_home_content' ) ?> 8 8 9 9 <div id="item-header"> … … 12 12 13 13 <div id="item-nav"> 14 <div class="item-list-tabs no-ajax" id=" user-nav">14 <div class="item-list-tabs no-ajax" id="group-nav"> 15 15 <ul> 16 16 <?php bp_get_options_nav() ?> 17 17 18 <?php do_action( 'bp_ members_directory_member_types' ) ?>18 <?php do_action( 'bp_group_options_nav' ) ?> 19 19 </ul> 20 20 </div> … … 23 23 <div id="item-body"> 24 24 <?php do_action( 'template_notices' ) ?> 25 26 <?php do_action( 'bp_before_group_body' ) ?> 25 27 26 28 <?php if ( bp_is_group_admin_page() && bp_group_is_visible() ) : ?> … … 54 56 <?php endif; ?> 55 57 56 <?php do_action( 'bp_ directory_members_content' ) ?>58 <?php do_action( 'bp_after_group_body' ) ?> 57 59 </div> 60 61 <?php do_action( 'bp_after_group_home_content' ) ?> 58 62 59 63 <?php endwhile; endif; ?> … … 63 67 <?php locate_template( array( 'sidebar.php' ), true ) ?> 64 68 65 <?php do_action( 'bp_after_directory_members_content' ) ?>66 67 69 <?php get_footer() ?> -
trunk/bp-themes/bp-default/groups/single/members.php
r2170 r2284 1 1 <?php if ( bp_group_has_members( 'exclude_admins_mods=0' ) ) : ?> 2 3 <?php do_action( 'bp_before_group_members_content' ) ?> 2 4 3 5 <div class="pagination"> … … 40 42 </ul> 41 43 42 <?php do_action( 'bp_after_group_members_ list' ) ?>44 <?php do_action( 'bp_after_group_members_content' ) ?> 43 45 44 46 <?php else: ?> -
trunk/bp-themes/bp-default/groups/single/plugins.php
r2197 r2284 1 1 <?php get_header() ?> 2 3 <?php do_action( 'bp_before_directory_members_content' ) ?>4 2 5 3 <div id="content"> 6 4 <div class="padder"> 7 5 <?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?> 6 7 <?php do_action( 'bp_before_group_plugin_template' ) ?> 8 8 9 9 <div id="item-header"> … … 12 12 13 13 <div id="item-nav"> 14 <div class="item-list-tabs no-ajax" id=" user-nav">14 <div class="item-list-tabs no-ajax" id="group-nav"> 15 15 <ul> 16 16 <?php bp_get_options_nav() ?> 17 17 18 <?php do_action( 'bp_ members_directory_member_types' ) ?>18 <?php do_action( 'bp_group_plugin_options_nav' ) ?> 19 19 </ul> 20 20 </div> … … 23 23 <div id="item-body"> 24 24 25 <div class="item-list-tabs no-ajax" id="group-subnav"> 26 <ul> 27 <?php bp_get_options_nav() ?> 28 </ul> 29 </div> 30 25 31 <?php do_action( 'bp_template_content' ) ?> 26 27 <?php do_action( 'bp_directory_members_content' ) ?>28 32 29 33 </div><!-- #item-body --> 30 34 31 35 <?php endwhile; endif; ?> 36 37 <?php do_action( 'bp_after_group_plugin_template' ) ?> 32 38 33 39 </div><!-- .padder --> … … 36 42 <?php locate_template( array( 'sidebar.php' ), true ) ?> 37 43 38 <?php do_action( 'bp_after_directory_members_content' ) ?>39 40 44 <?php get_footer() ?> -
trunk/bp-themes/bp-default/groups/single/send-invites.php
r2170 r2284 75 75 <?php endif; ?> 76 76 77 <?php do_action( 'bp_ before_group_send_invites_content' ) ?>77 <?php do_action( 'bp_after_group_send_invites_content' ) ?> -
trunk/bp-themes/bp-default/header.php
r2274 r2284 82 82 83 83 <?php do_action( 'bp_nav_items' ); ?> 84 </ul> 84 </ul><!-- #nav --> 85 85 86 86 <div id="search-bar"> … … 93 93 <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" /> 94 94 <?php wp_nonce_field( 'bp_search_form' ) ?> 95 </form> 95 </form><!-- #search-form --> 96 96 97 97 <?php do_action( 'bp_search_login_bar' ) ?> 98 98 99 </div> 100 </div> 99 </div><!-- .padder --> 100 </div><!-- #search-bar --> 101 101 102 102 <?php do_action( 'bp_header' ) ?> 103 103 104 </div> 104 </div><!-- #header --> 105 105 106 106 <?php do_action( 'bp_after_header' ) ?> -
trunk/bp-themes/bp-default/members/index.php
r2198 r2284 1 1 <?php get_header() ?> 2 3 <?php do_action( 'bp_before_directory_members_content' ) ?>4 2 5 3 <div id="content"> … … 10 8 <h2><?php _e( 'Members Directory', 'buddypress' ) ?></h2> 11 9 10 <?php do_action( 'bp_before_directory_members_content' ) ?> 11 12 12 <div id="members-dir-search" class="dir-search"> 13 13 <?php bp_directory_members_search_form() ?> 14 </div> 14 </div><!-- #members-dir-search --> 15 15 16 16 <div class="item-list-tabs"> … … 36 36 </li> 37 37 </ul> 38 </div> 38 </div><!-- .item-list-tabs --> 39 39 40 40 <div id="members-dir-list" class="members dir-list"> 41 <?php /* 'members/members-loop.php' is loaded here via AJAX */ ?> 42 </div> 41 <?php 42 // The loop will be loaded here via AJAX on page load to retain selected settings and not waste cycles. 43 // If you're concerned about no-script functionality, uncomment the following line. 44 45 // locate_template( array( 'members/members-loop.php' ), true ); 46 ?> 47 </div><!-- #members-dir-list --> 43 48 44 49 <?php do_action( 'bp_directory_members_content' ) ?> … … 46 51 <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ) ?> 47 52 48 </form> 53 <?php do_action( 'bp_after_directory_members_content' ) ?> 54 55 </form><!-- #members-directory-form --> 49 56 50 57 </div><!-- .padder --> … … 53 60 <?php locate_template( array( 'sidebar.php' ), true ) ?> 54 61 55 <?php do_action( 'bp_after_directory_members_content' ) ?>56 57 62 <?php get_footer() ?> -
trunk/bp-themes/bp-default/members/members-loop.php
r2256 r2284 1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_members_directory_filter() */ ?> 1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_content_filter() */ ?> 2 3 <?php do_action( 'bp_before_members_loop' ) ?> 4 2 5 <?php if ( bp_has_members( bp_ajax_querystring() ) ) : ?> 3 6 … … 37 40 <?php 38 41 /*** 39 * If you want to show specific profile fields here you can: 40 * bp_member_profile_data( 'the field name' ); 42 * If you want to show specific profile fields here you can, 43 * but it'll add an extra query for each member in the loop 44 * (only one regadless of the number of fields you show): 45 * 46 * bp_member_profile_field_data( 'field=the field name' ); 41 47 */ 42 48 ?> … … 66 72 67 73 <?php endif; ?> 74 75 <?php do_action( 'bp_after_members_loop' ) ?> -
trunk/bp-themes/bp-default/members/single/activity.php
r2270 r2284 3 3 <li class="feed"><a href="<?php bp_activities_member_rss_link() ?>" title="RSS Feed"><?php _e( 'RSS', 'buddypress' ) ?></a></li> 4 4 5 <?php do_action( 'bp_activity_member_syndication_options') ?>5 <?php do_action( 'bp_member_activity_syndication_options' ) ?> 6 6 7 7 <li id="activity-filter-select" class="last"> … … 17 17 <option value="friendship_accepted,friendship_created"><?php _e( 'Show Friendship Connections', 'buddypress' ) ?></option> 18 18 19 <?php do_action( 'bp_ activity_personal_filter_options' ) ?>19 <?php do_action( 'bp_member_activity_filter_options' ) ?> 20 20 </select> 21 21 </li> 22 22 </ul> 23 </div> 23 </div><!-- .item-list-tabs --> 24 25 <?php do_action( 'bp_before_member_activity_post_form' ) ?> 24 26 25 27 <?php if ( is_user_logged_in() && bp_is_my_profile() ) : ?> … … 27 29 <?php endif; ?> 28 30 31 <?php do_action( 'bp_after_member_activity_post_form' ) ?> 32 <?php do_action( 'bp_before_member_activity_content' ) ?> 33 29 34 <div class="activity"> 30 <?php // 'activity/activity-loop.php' loaded here via AJAX. ?> 31 </div> 35 <?php 36 // The loop will be loaded here via AJAX on page load to retain selected settings and not waste cycles. 37 // If you're concerned about no-script functionality, uncomment the following line. 32 38 33 <?php do_action( 'bp_directory_members_content' ) ?> 39 // locate_template( array( 'activity/activity-loop.php' ), true ); 40 ?> 41 </div><!-- .activity --> 42 43 <?php do_action( 'bp_after_member_activity_content' ) ?> -
trunk/bp-themes/bp-default/members/single/blogs.php
r2179 r2284 8 8 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option> 9 9 10 <?php do_action( 'bp_ blogs_directory_order_options' ) ?>10 <?php do_action( 'bp_member_blog_order_options' ) ?> 11 11 </select> 12 12 </li> 13 13 </ul> 14 </div> 14 </div><!-- .item-list-tabs --> 15 16 <?php do_action( 'bp_before_member_blogs_content' ) ?> 15 17 16 18 <div class="blogs myblogs"> 17 <?php // 'blogs/blogs-loop.php' loaded here via AJAX. ?> 18 </div> 19 <?php 20 // The loop will be loaded here via AJAX on page load to retain selected settings and not waste cycles. 21 // If you're concerned about no-script functionality, uncomment the following line. 19 22 20 <?php do_action( 'bp_directory_members_content' ) ?> 23 // locate_template( array( 'blogs/blogs-loop.php' ), true ); 24 ?> 25 </div><!-- .blogs --> 26 27 <?php do_action( 'bp_after_member_blogs_content' ) ?> -
trunk/bp-themes/bp-default/members/single/friends.php
r2179 r2284 13 13 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option> 14 14 15 <?php do_action( 'bp_member s_directory_order_options' ) ?>15 <?php do_action( 'bp_member_blog_order_options' ) ?> 16 16 </select> 17 17 </li> … … 24 24 <?php else : ?> 25 25 26 <?php do_action( 'bp_before_member_friends_content' ) ?> 27 26 28 <div class="members friends"> 27 29 <?php // 'members/members-loop.php' loaded here via AJAX. ?> 28 30 </div> 29 31 32 <?php do_action( 'bp_after_member_friends_content' ) ?> 33 30 34 <?php endif; ?> 31 32 <?php do_action( 'bp_directory_members_content' ) ?> -
trunk/bp-themes/bp-default/members/single/friends/requests.php
r2222 r2284 1 <?php do_action( 'bp_before_ friend_requests_content' ) ?>1 <?php do_action( 'bp_before_member_friend_requests_content' ) ?> 2 2 3 3 <?php if ( bp_has_members( 'include=' . bp_get_friendship_requests() . '&per_page=0' ) ) : ?> … … 39 39 <?php endif;?> 40 40 41 <?php do_action( 'bp_after_ friend_requests_content' ) ?>41 <?php do_action( 'bp_after_member_friend_requests_content' ) ?> -
trunk/bp-themes/bp-default/members/single/groups.php
r2179 r2284 15 15 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option> 16 16 17 <?php do_action( 'bp_ groups_directory_order_options' ) ?>17 <?php do_action( 'bp_member_group_order_options' ) ?> 18 18 </select> 19 19 </li> … … 27 27 <?php else : ?> 28 28 29 <?php do_action( 'bp_before_member_groups_content' ) ?> 30 29 31 <div class="groups mygroups"> 30 32 <?php // 'members/members-loop.php' loaded here via AJAX. ?> 31 33 </div> 32 34 35 <?php do_action( 'bp_after_member_groups_content' ) ?> 36 33 37 <?php endif; ?> 34 35 <?php do_action( 'bp_directory_members_content' ) ?> -
trunk/bp-themes/bp-default/members/single/home.php
r2197 r2284 1 1 <?php get_header() ?> 2 3 <?php do_action( 'bp_before_directory_members_content' ) ?>4 2 5 3 <div id="content"> 6 4 <div class="padder"> 7 5 6 <?php do_action( 'bp_before_member_home_content' ) ?> 7 8 8 <div id="item-header"> 9 9 <?php locate_template( array( 'members/single/member-header.php' ), true ) ?> 10 </div> 10 </div><!-- #item-header --> 11 11 12 12 <div id="item-nav"> … … 18 18 </ul> 19 19 </div> 20 </div> 20 </div><!-- #item-nav --> 21 21 22 22 <div id="item-body"> 23 <?php do_action( 'bp_before_member_body' ) ?> 24 23 25 <?php if ( bp_is_user_activity() || !bp_current_component() ) : ?> 24 26 <?php locate_template( array( 'members/single/activity.php' ), true ) ?> … … 41 43 <?php endif; ?> 42 44 43 <?php do_action( 'bp_ directory_members_content' ) ?>45 <?php do_action( 'bp_after_member_body' ) ?> 44 46 45 47 </div><!-- #item-body --> 48 49 <?php do_action( 'bp_after_member_home_content' ) ?> 46 50 47 51 </div><!-- .padder --> … … 50 54 <?php locate_template( array( 'sidebar.php' ), true ) ?> 51 55 52 <?php do_action( 'bp_after_directory_members_content' ) ?>53 54 56 <?php get_footer() ?> -
trunk/bp-themes/bp-default/members/single/member-header.php
r2276 r2284 1 <?php do_action( 'bp_before_member_header' ) ?> 2 1 3 <?php bp_displayed_user_avatar( 'type=full' ) ?> 2 4 3 5 <h2 class="fn"><a href="<?php bp_user_link() ?>"><?php bp_displayed_user_fullname() ?></a> <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ) ?></span></h2> 6 7 <?php do_action( 'bp_before_member_header_meta' ) ?> 4 8 5 9 <div id="item-meta"> … … 33 37 ?> 34 38 35 <?php do_action( 'bp_profile_header_ content' ) ?>39 <?php do_action( 'bp_profile_header_meta' ) ?> 36 40 37 41 </div> 38 42 43 <?php do_action( 'bp_after_group_header' ) ?> 44 39 45 <?php do_action( 'template_notices' ) ?> -
trunk/bp-themes/bp-default/members/single/messages.php
r2179 r2284 1 <?php locate_template( array( 'members/single/member-header.php' ), true ) ?>2 3 1 <div class="item-list-tabs no-ajax" id="user-subnav"> 4 2 <ul> … … 14 12 15 13 <?php else : ?> 14 15 <?php do_action( 'bp_before_member_messages_content' ) ?> 16 16 17 <div class="messages"> 17 18 <?php locate_template( array( 'members/single/messages/messages-loop.php' ), true ) ?> 18 19 </div> 20 21 <?php do_action( 'bp_after_member_messages_content' ) ?> 22 19 23 <?php endif; ?> 20 21 <?php do_action( 'bp_directory_members_content' ) ?> -
trunk/bp-themes/bp-default/members/single/messages/messages-loop.php
r2191 r2284 1 <?php do_action( 'bp_before_member_messages_loop' ) ?> 2 1 3 <?php if ( bp_has_message_threads() ) : ?> 2 4 … … 11 13 </div> 12 14 13 </div> 15 </div><!-- .pagination --> 14 16 15 <?php do_action( 'bp_ before_messages_inbox_list' ) ?>17 <?php do_action( 'bp_after_member_messages_pagination' ) ?> 16 18 17 19 <div class="messages-options-nav"> 18 20 <?php bp_messages_options() ?> 19 </div> 21 </div><!-- .messages-options-nav --> 22 23 <?php do_action( 'bp_before_member_messages_threads' ) ?> 20 24 21 25 <table id="message-threads"> … … 45 49 46 50 <?php endwhile; ?> 47 </table> 51 </table><!-- #message-threads --> 52 53 <?php do_action( 'bp_after_member_messages_threads' ) ?> 48 54 49 55 <div class="messages-options-nav"> … … 51 57 </div> 52 58 53 <?php do_action( 'bp_after_me ssages_inbox_list' ) ?>59 <?php do_action( 'bp_after_member_messages_options' ) ?> 54 60 55 61 <?php else: ?> … … 60 66 61 67 <?php endif;?> 68 69 <?php do_action( 'bp_after_member_messages_loop' ) ?> -
trunk/bp-themes/bp-default/members/single/messages/single.php
r2191 r2284 1 < ?php do_action( 'bp_before_message_thread_content' ) ?>1 <div id="message-thread"> 2 2 3 <div id="message-thread">3 <?php do_action( 'bp_before_message_thread_content' ) ?> 4 4 5 5 <?php if ( bp_thread_has_messages() ) : ?> … … 28 28 <?php do_action( 'bp_after_message_meta' ) ?> 29 29 30 </div> 30 </div><!-- .message-metadata --> 31 31 32 32 <?php do_action( 'bp_before_message_content' ) ?> … … 36 36 <?php bp_the_thread_message_content() ?> 37 37 38 </div> 38 </div><!-- .message-content --> 39 39 40 40 <?php do_action( 'bp_after_message_content' ) ?> … … 42 42 <div class="clear"></div> 43 43 44 </div> 44 </div><!-- .message-box --> 45 45 46 46 <?php endwhile; ?> … … 66 66 <?php do_action( 'bp_after_message_meta' ) ?> 67 67 68 </div> 68 </div><!-- .message-metadata --> 69 69 70 70 <div class="message-content"> … … 85 85 <?php wp_nonce_field( 'messages_send_message', 'send_message_nonce' ) ?> 86 86 87 </div> 87 </div><!-- .message-content --> 88 88 89 </div> 89 </div><!-- .message-box --> 90 90 91 </form> 91 </form><!-- #send-reply --> 92 92 93 93 <?php do_action( 'bp_after_message_thread_reply' ) ?> -
trunk/bp-themes/bp-default/members/single/plugins.php
r2197 r2284 1 1 <?php get_header() ?> 2 3 <?php do_action( 'bp_before_directory_members_content' ) ?>4 2 5 3 <div id="content"> 6 4 <div class="padder"> 5 6 <?php do_action( 'bp_before_member_plugin_template' ) ?> 7 7 8 8 <div id="item-header"> … … 34 34 </div><!-- #item-body --> 35 35 36 <?php do_action( 'bp_after_member_plugin_template' ) ?> 37 36 38 </div><!-- .padder --> 37 39 </div><!-- #content --> … … 39 41 <?php locate_template( array( 'sidebar.php' ), true ) ?> 40 42 41 <?php do_action( 'bp_after_ directory_members_content' ) ?>43 <?php do_action( 'bp_after_member_plugin_template' ) ?> 42 44 43 45 <?php get_footer() ?> -
trunk/bp-themes/bp-default/members/single/profile.php
r2179 r2284 6 6 </div> 7 7 <?php endif; ?> 8 9 <?php do_action( 'bp_before_profile_content' ) ?> 8 10 9 11 <div class="profile"> … … 18 20 19 21 <?php endif; ?> 20 </div> 22 </div><!-- .profile --> 21 23 22 <?php do_action( 'bp_ directory_members_content' ) ?>24 <?php do_action( 'bp_after_profile_content' ) ?> -
trunk/bp-themes/bp-default/members/single/profile/profile-loop.php
r2170 r2284 1 <?php do_action( 'bp_before_profile_loop_content' ) ?> 2 1 3 <?php if ( function_exists('xprofile_get_profile') ) : ?> 2 4 … … 51 53 52 54 <?php endif; ?> 55 56 <?php do_action( 'bp_after_profile_loop_content' ) ?> 57 -
trunk/bp-themes/bp-default/page.php
r2277 r2284 27 27 <?php endwhile; endif; ?> 28 28 29 </div> 29 </div><!-- .page --> 30 30 31 31 <?php do_action( 'bp_after_blog_page' ) ?> -
trunk/bp-themes/bp-default/registration/activate.php
r2170 r2284 1 <?php /* This template is only used on multisite installations */ ?> 2 1 3 <?php get_header(); ?> 2 4 3 5 <div id="content"> 6 <div class="padder"> 4 7 5 8 <?php do_action( 'bp_before_activation_page' ) ?> … … 7 10 <div class="page" id="activate-page"> 8 11 9 < div class="register bp_core_widget_welcome">12 <?php do_action( 'template_notices' ) ?> 10 13 11 <?php do_action( 'template_notices' )?>14 <?php if ( bp_account_was_activated() ) : ?> 12 15 13 < ?php if ( bp_account_was_activated() ) : ?>16 <h2 class="widgettitle"><?php _e( 'Account Activated', 'buddypress' ) ?></h2> 14 17 15 <h2 class="widgettitle"><?php _e( 'Account Activated', 'buddypress' ) ?></h2>18 <?php do_action( 'bp_before_activate_content' ) ?> 16 19 17 <?php do_action( 'bp_before_activate_content' ) ?> 18 19 <p><?php _e( 'Your account was activated successfully! You can now log in with the username and password you provided when you signed up.', 'buddypress' ) ?></p> 20 <p><?php _e( 'Your account was activated successfully! You can now log in with the username and password you provided when you signed up.', 'buddypress' ) ?></p> 20 21 21 22 22 23 <?php else : ?> 23 24 24 <h2 class="widgettitle"><?php _e( 'Activate your Account', 'buddypress' ) ?></h2>25 <h3><?php _e( 'Activate your Account', 'buddypress' ) ?></h3> 25 26 26 27 <?php do_action( 'bp_before_activate_content' ) ?> 27 28 28 29 <p><?php _e( 'Please provide a valid activation key.', 'buddypress' ) ?></p> 29 30 30 31 <form action="" method="get" class="standard-form" id="activation-form"> 31 32 32 33 33 <label for="key"><?php _e( 'Activation Key:', 'buddypress' ) ?></label> 34 <input type="text" name="key" id="key" value="" /> 34 35 35 36 37 36 <p class="submit"> 37 <input type="submit" name="submit" value="<?php _e( 'Activate', 'buddypress' ) ?> →" /> 38 </p> 38 39 39 40 </form> 40 41 41 42 <?php endif; ?> 42 43 43 44 <?php do_action( 'bp_after_activate_content' ) ?> 44 45 45 </div> 46 47 </div> 46 </div><!-- .page --> 48 47 49 48 <?php do_action( 'bp_after_activation_page' ) ?> 50 49 51 </div> 50 </div><!-- .padder --> 51 </div><!-- #content --> 52 52 53 <?php get_sidebar() ?>53 <?php locate_template( array( 'sidebar.php' ), true ) ?> 54 54 55 55 <?php get_footer(); ?> -
trunk/bp-xprofile.php
r2250 r2284 289 289 // logged in user, only if $_GET['new'] is set. 290 290 if ( isset($_GET['new']) ) 291 bp_core_delete_notifications_for_user_by_ item_id( $bp->loggedin_user->id, $bp->displayed_user->id, 'friends', 'friendship_accepted' );291 bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, 'friends', 'friendship_accepted' ); 292 292 293 293 do_action( 'xprofile_screen_display_profile', $_GET['new'] );
Note: See TracChangeset
for help on using the changeset viewer.