Skip to:
Content

BuddyPress.org

Changeset 2284


Ignore:
Timestamp:
01/09/2010 04:16:51 PM (15 years ago)
Author:
apeatling
Message:

Updating template based hooks.

Location:
trunk
Files:
44 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-classes.php

    r2276 r2284  
    348348        /* Fetch the user's latest update */
    349349        $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 
    351350        for ( $i = 0; $i < count( $paged_users ); $i++ ) {
    352351            foreach ( $user_update as $update ) {
  • trunk/bp-core/bp-core-templatetags.php

    r2277 r2284  
    277277    }
    278278
    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 ) {
     279function bp_member_profile_data( $args = '' ) {
     280    echo bp_get_member_profile_data( $args );
     281}
     282    function bp_get_member_profile_data( $args = '' ) {
    283283        global $members_template;
    284284
    285         if ( !$field_name || !function_exists( 'xprofile_install' ) )
     285        if ( !function_exists( 'xprofile_install' ) )
    286286            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 );
    287294
    288295        // Populate the user if it hasn't been already.
     
    290297            $members_template->member = new BP_Core_User( $members_template->member->id );
    291298
    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'] );
    293300    }
    294301
  • trunk/bp-themes/bp-default/_inc/global.js

    r2281 r2284  
    798798    } );
    799799
    800 
    801800    /** Button disabling ************************************************/
    802801
  • trunk/bp-themes/bp-default/_inc/options.php

    r2225 r2284  
    11<?php
    22
    3 class Bp_Dtheme_Options_Page {
     3class BP_Dtheme_Options_Page {
    44    function init() {
    55        add_action( 'admin_menu', array( 'Bp_Dtheme_Options_Page', 'add_options_page' ) );
     
    77
    88    function add_options_page() {
    9         add_theme_page( __( 'Theme Options', 'buddypress' ), __( 'Theme Options', 'buddypress' ), 8, 'theme-options-page', array( 'Bp_Dtheme_Options_Page', 'page' ) );
     9        add_theme_page( __( 'Theme Options', 'buddypress' ), __( 'Theme Options', 'buddypress' ), 8, 'theme-options-page', array( 'BP_Dtheme_Options_Page', 'page' ) );
    1010    }
    1111
     
    5151    }
    5252}
    53 add_action( 'init', array( 'Bp_Dtheme_Options_Page', 'init' ) );
     53add_action( 'init', array( 'BP_Dtheme_Options_Page', 'init' ) );
  • trunk/bp-themes/bp-default/activity/activity-loop.php

    r2217 r2284  
    11<?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_activity_loop() */ ?>
     2
     3<?php do_action( 'bp_before_activity_loop' ) ?>
     4
    25<?php if ( bp_has_activities( bp_ajax_querystring() ) ) : ?>
    36
     
    2629<?php endif; ?>
    2730
     31<?php do_action( 'bp_after_activity_loop' ) ?>
     32
    2833<form action="" name="activity-loop-form" id="activity-loop-form" method="post">
    2934    <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ) ?>
  • trunk/bp-themes/bp-default/activity/entry.php

    r2266 r2284  
    11<?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' ) ?>
    24
    35<li class="<?php bp_activity_css_class() ?>" id="activity-<?php bp_activity_id() ?>">
     
    810    <div class="activity-content">
    911        <?php bp_activity_content() ?>
     12
     13        <?php do_action( 'bp_activity_entry_content' ) ?>
    1014
    1115        <div class="activity-meta">
     
    2125                <?php endif; ?>
    2226            <?php endif;?>
     27
     28            <?php do_action( 'bp_activity_entry_meta' ) ?>
    2329        </div>
    2430    </div>
     
    3036        </div>
    3137    <?php endif; ?>
     38
     39    <?php do_action( 'bp_before_activity_entry_comments' ) ?>
    3240
    3341    <?php if ( bp_activity_can_comment() ) : ?>
     
    4957        </div>
    5058    <?php endif; ?>
     59
     60    <?php do_action( 'bp_after_activity_entry_comments' ) ?>
    5161</li>
     62
     63<?php do_action( 'bp_after_activity_entry' ) ?>
     64
  • trunk/bp-themes/bp-default/activity/index.php

    r2253 r2284  
    11<?php get_header() ?>
    2 
    3     <?php do_action( 'bp_before_directory_activity_content' ) ?>
    42
    53    <div id="content">
     
    108            <?php endif; ?>
    119
    12             <div class="widget_bp_activity_widget">
     10            <?php do_action( 'bp_before_directory_activity_content' ) ?>
    1311
    14                 <?php if ( is_user_logged_in() ) : ?>
    15                     <?php locate_template( array( 'activity/post-form.php'), true ) ?>
    16                 <?php endif; ?>
     12            <?php if ( is_user_logged_in() ) : ?>
     13                <?php locate_template( array( 'activity/post-form.php'), true ) ?>
     14            <?php endif; ?>
    1715
    18                 <div class="clear"></div>
     16            <?php do_action( 'template_notices' ) ?>
    1917
    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>
    2121
    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() ) : ?>
    2523
    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>
    4026                        <?php endif; ?>
    4127
    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; ?>
    4331
    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; ?>
    5635
    57                                 <?php do_action( 'bp_activity_filter_options' ) ?>
    58                             </select>
    59                         </li>
    60                     </ul>
    61                 </div>
     36                    <?php endif; ?>
    6237
    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' ) ?>
    6639
    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>
    7252
    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' ) ?>
    7475
    7576        </div><!-- .padder -->
     
    7879    <?php locate_template( array( 'sidebar.php' ), true ) ?>
    7980
    80     <?php do_action( 'bp_after_directory_activity_content' ) ?>
    81 
    8281<?php get_footer() ?>
  • trunk/bp-themes/bp-default/activity/post-form.php

    r2276 r2284  
    11<form action="" method="post" id="whats-new-form" name="whats-new-form">
     2
     3    <?php do_action( 'bp_before_activity_post_form' ) ?>
    24
    35    <div id="whats-new-avatar">
     
    2527
    2628            <?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' ) ?>:
    2931
    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>
    3234
    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>
    3840            <?php elseif ( bp_is_group_home() ) : ?>
    3941                <input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id() ?>" />
    4042            <?php endif; ?>
    4143
    42         </div>
    43     </div>
     44            <?php do_action( 'bp_activity_post_form_options' ) ?>
     45
     46        </div><!-- #whats-new-options -->
     47    </div><!-- #whats-new-content -->
    4448
    4549    <?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
    25<?php if ( bp_has_blogs( bp_ajax_querystring() ) ) : ?>
    36
     
    1417    </div>
    1518
    16     <?php do_action( 'bp_before_directory_blogs_list' ) ?>
    17 
    1819    <ul id="blogs-list" class="item-list">
    1920    <?php while ( bp_blogs() ) : bp_the_blog(); ?>
     
    2829                <div class="item-meta"><span class="activity"><?php bp_blog_last_active() ?></span></div>
    2930
    30                 <?php do_action( 'bp_core_directory_blogs_item' ) ?>
     31                <?php do_action( 'bp_directory_blogs_item' ) ?>
    3132            </div>
    3233
     
    6061
    6162<?php endif; ?>
     63
     64<?php do_action( 'bp_after_blogs_loop' ) ?>
  • trunk/bp-themes/bp-default/blogs/create.php

    r2170 r2284  
    66        <div class="padder">
    77
    8         <?php do_action( 'template_notices' ) // (error/success feedback) ?>
     8        <?php do_action( 'template_notices' ) ?>
    99
    1010        <h2><?php _e( 'Create a Blog', 'buddypress' ) ?> &nbsp;<a class="button" href="<?php echo bp_root_domain() . '/' . BP_BLOGS_SLUG . '/' ?>"><?php _e( 'Blogs Directory', 'buddypress' ) ?></a></h2>
     
    2626        <?php do_action( 'bp_after_create_blog_content' ) ?>
    2727
    28 
    2928        </div><!-- .padder -->
    3029    </div><!-- #content -->
  • trunk/bp-themes/bp-default/blogs/index.php

    r2198 r2284  
    11<?php get_header() ?>
    2 
    3     <?php do_action( 'bp_before_directory_members_content' ) ?>
    42
    53    <div id="content">
     
    108            <h2><?php _e( 'Blogs Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() && bp_blog_signup_enabled() ) : ?> &nbsp;<a class="button" href="<?php echo bp_root_domain() . '/' . BP_BLOGS_SLUG . '/create/' ?>"><?php _e( 'Create a Blog', 'buddypress' ) ?></a><?php endif; ?></h2>
    119
     10            <?php do_action( 'bp_before_directory_blogs_content' ) ?>
     11
    1212            <div id="blog-dir-search" class="dir-search">
    1313                <?php bp_directory_blogs_search_form() ?>
    14             </div>
     14            </div><!-- #blog-dir-search -->
    1515
    1616            <div class="item-list-tabs">
     
    2222                    <?php endif; ?>
    2323
    24                     <?php do_action( 'bp_blogs_directory_member_types' ) ?>
     24                    <?php do_action( 'bp_blogs_directory_blog_types' ) ?>
    2525
    2626                    <li id="blogs-order-select" class="last filter">
     
    3636                    </li>
    3737                </ul>
    38             </div>
     38            </div><!-- .item-list-tabs -->
    3939
    4040            <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.
    4344
    44             <?php do_action( 'bp_directory_members_content' ) ?>
     45                    // locate_template( array( 'blogs/blogs-loop.php' ), true );
     46                ?>
     47            </div><!-- #blogs-dir-list -->
    4548
    46             <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ) ?>
     49            <?php do_action( 'bp_after_directory_blogs_content' ) ?>
    4750
    48         </form>
     51            <?php wp_nonce_field( 'directory_blogs', '_wpnonce-blogs-filter' ) ?>
     52
     53        </form><!-- #blogs-directory-form -->
    4954
    5055        </div><!-- .padder -->
     
    5358    <?php locate_template( array( 'sidebar.php' ), true ) ?>
    5459
    55     <?php do_action( 'bp_after_directory_members_content' ) ?>
    56 
    5760<?php get_footer() ?>
  • trunk/bp-themes/bp-default/footer.php

    r2274 r2284  
    55
    66        <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>
    128
    139            <?php do_action( 'bp_footer' ) ?>
    14         </div>
     10        </div><!-- #footer -->
    1511
    1612        <?php do_action( 'bp_after_footer' ) ?>
  • trunk/bp-themes/bp-default/functions.php

    r2276 r2284  
    33/* Stop the theme from killing WordPress if BuddyPress is not enabled. */
    44if ( !class_exists( 'BP_Core_User' ) )
    5     return;
     5    return false;
    66
    77/* Register the widget columns */
     
    119119function bp_dtheme_header_style() { ?>
    120120    <style type="text/css">
    121         #header{
    122             background-image: url(<?php header_image() ?>);
    123         }
     121        #header { background-image: url(<?php header_image() ?>); }
    124122        <?php if ( 'blank' == get_header_textcolor() ) { ?>
    125         #header h1, #header #desc {
    126             display: none;
    127         }
     123        #header h1, #header #desc { display: none; }
    128124        <?php } else { ?>
    129         #header h1 a, #desc {
    130             color:#<?php header_textcolor() ?>;
    131         }
     125        #header h1 a, #desc { color:#<?php header_textcolor() ?>; }
    132126        <?php } ?>
    133127    </style>
  • trunk/bp-themes/bp-default/groups/create.php

    r2170 r2284  
    11<?php get_header() ?>
    2 
    3     <?php do_action( 'bp_before_directory_groups_content' ) ?>
    42
    53    <div id="content">
     
    86        <form action="<?php bp_group_creation_form_action() ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data">
    97            <h2><?php _e( 'Create a Group', 'buddypress' ) ?> &nbsp;<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' ) ?>
    1010
    1111            <div class="item-list-tabs no-ajax" id="group-create-tabs">
     
    1919            <div class="item-body" id="group-create-body">
    2020
    21                 <!-- Group creation step 1: Basic group details -->
     21                <?php /* Group creation step 1: Basic group details */ ?>
    2222                <?php if ( bp_is_group_creation_step( 'group-details' ) ) : ?>
    2323
     
    3939                <?php endif; ?>
    4040
    41                 <!-- Group creation step 2: Group settings -->
     41                <?php /* Group creation step 2: Group settings */ ?>
    4242                <?php if ( bp_is_group_creation_step( 'group-settings' ) ) : ?>
    4343
     
    101101                <?php endif; ?>
    102102
    103                 <!-- Group creation step 3: Avatar Uploads -->
     103                <?php /* Group creation step 3: Avatar Uploads */ ?>
    104104                <?php if ( bp_is_group_creation_step( 'group-avatar' ) ) : ?>
    105105
     
    110110                        <div class="left-menu">
    111111                            <?php bp_new_group_avatar() ?>
    112                         </div>
     112                        </div><!-- .left-menu -->
    113113
    114114                        <div class="main-column">
     
    122122
    123123                            <p><?php _e( 'To skip the avatar upload process, hit the "Next Step" button.', 'buddypress' ) ?></p>
    124                         </div>
     124                        </div><!-- .main-column -->
    125125
    126126                    <?php endif; ?>
     
    153153                <?php endif; ?>
    154154
    155                 <!-- Group creation step 4: Invite friends to group -->
     155                <?php /* Group creation step 4: Invite friends to group */ ?>
    156156                <?php if ( bp_is_group_creation_step( 'group-invites' ) ) : ?>
    157157
     
    168168                        </div>
    169169
    170                     </div>
     170                    </div><!-- .left-menu -->
    171171
    172172                    <div class="main-column">
     
    201201                        <?php wp_nonce_field( 'groups_create_save_group-invites' ) ?>
    202202
    203                     </div>
     203                    </div><!-- .main-column -->
    204204
    205205                    <?php do_action( 'bp_after_group_invites_creation_step' ); ?>
     
    213213                <?php if ( 'crop-image' != bp_get_avatar_admin_step() ) : ?>
    214214                    <div class="submit" id="previous-next">
    215                         <!-- Previous Button -->
     215                        <?php /* Previous Button */ ?>
    216216                        <?php if ( !bp_is_first_group_creation_step() ) : ?>
    217217                            <input type="button" value="&larr; <?php _e('Previous Step', 'buddypress') ?>" id="group-creation-previous" name="previous" onclick="location.href='<?php bp_group_creation_previous_link() ?>'" />
    218218                        <?php endif; ?>
    219219
    220                         <!-- Next Button -->
     220                        <?php /* Next Button */ ?>
    221221                        <?php if ( !bp_is_last_group_creation_step() && !bp_is_first_group_creation_step() ) : ?>
    222222                            <input type="submit" value="<?php _e('Next Step', 'buddypress') ?> &rarr;" id="group-creation-next" name="save" />
    223223                        <?php endif;?>
    224224
    225                         <!-- Create Button -->
     225                        <?php /* Create Button */ ?>
    226226                        <?php if ( bp_is_first_group_creation_step() ) : ?>
    227227                            <input type="submit" value="<?php _e('Create Group and Continue', 'buddypress') ?> &rarr;" id="group-creation-create" name="save" />
    228228                        <?php endif; ?>
    229229
    230                         <!-- Finish Button -->
     230                        <?php /* Finish Button */ ?>
    231231                        <?php if ( bp_is_last_group_creation_step() ) : ?>
    232232                            <input type="submit" value="<?php _e('Finish', 'buddypress') ?> &rarr;" id="group-creation-finish" name="save" />
     
    237237                <?php do_action( 'bp_after_group_creation_step_buttons' ); ?>
    238238
    239                 <!-- Don't leave out this hidden field -->
     239                <?php /* Don't leave out this hidden field */ ?>
    240240                <input type="hidden" name="group_id" id="group_id" value="<?php bp_new_group_id() ?>" />
    241241
     
    243243
    244244            </div><!-- .item-body -->
     245
     246            <?php do_action( 'bp_after_create_group' ) ?>
    245247
    246248        </form>
     
    251253    <?php locate_template( array( 'sidebar.php' ), true ) ?>
    252254
    253     <?php do_action( 'bp_after_directory_groups_content' ) ?>
    254 
    255255<?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
    25<?php if ( bp_has_groups( bp_ajax_querystring() ) ) : ?>
    36
     
    1316
    1417    </div>
    15 
    16     <?php do_action( 'bp_before_directory_groups_list' ) ?>
    1718
    1819    <ul id="groups-list" class="item-list">
     
    4950    </ul>
    5051
    51     <?php do_action( 'bp_after_directory_groups_list' ) ?>
     52    <?php do_action( 'bp_after_groups_loop' ) ?>
    5253
    5354<?php else: ?>
  • trunk/bp-themes/bp-default/groups/index.php

    r2198 r2284  
    11<?php get_header() ?>
    2 
    3     <?php do_action( 'bp_before_directory_groups_content' ) ?>
    42
    53    <div id="content">
     
    97            <h2><?php _e( 'Groups Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() ) : ?> &nbsp;<a class="button" href="<?php echo bp_root_domain() . '/' . BP_GROUPS_SLUG . '/create/' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a><?php endif; ?></h2>
    108
     9            <?php do_action( 'bp_before_directory_groups_content' ) ?>
     10
    1111            <div id="group-dir-search" class="dir-search">
    1212                <?php bp_directory_groups_search_form() ?>
    13             </div>
     13            </div><!-- #group-dir-search -->
    1414
    1515            <div class="item-list-tabs">
     
    2121                    <?php endif; ?>
    2222
    23                     <?php do_action( 'bp_members_directory_group_types' ) ?>
     23                    <?php do_action( 'bp_groups_directory_group_types' ) ?>
    2424
    2525                    <li id="groups-order-select" class="last filter">
     
    3636                    </li>
    3737                </ul>
    38             </div>
     38            </div><!-- .item-list-tabs -->
    3939
    4040            <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 -->
    4348
    4449            <?php do_action( 'bp_directory_groups_content' ) ?>
    4550
    46             <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ) ?>
     51            <?php wp_nonce_field( 'directory_groups', '_wpnonce-groups-filter' ) ?>
    4752
    48         </form>
     53        </form><!-- #groups-directory-form -->
     54
     55        <?php do_action( 'bp_after_directory_groups_content' ) ?>
    4956
    5057        </div><!-- .padder -->
     
    5360    <?php locate_template( array( 'sidebar.php' ), true ) ?>
    5461
    55     <?php do_action( 'bp_after_directory_groups_content' ) ?>
    56 
    5762<?php get_footer() ?>
  • trunk/bp-themes/bp-default/groups/single/activity.php

    r2270 r2284  
    33        <li class="feed"><a href="<?php bp_group_activity_feed_link() ?>" title="RSS Feed"><?php _e( 'RSS', 'buddypress' ) ?></a></li>
    44
    5         <?php do_action('bp_activity_group_syndication_options') ?>
     5        <?php do_action( 'bp_group_activity_syndication_options' ) ?>
    66
    77        <li id="activity-filter-select" class="last">
     
    1313                <option value="joined_group"><?php _e( 'Show New Group Memberships', 'buddypress' ) ?></option>
    1414
    15                 <?php do_action( 'bp_activity_group_filter_options' ) ?>
     15                <?php do_action( 'bp_group_activity_filter_options' ) ?>
    1616            </select>
    1717        </li>
    1818    </ul>
    19 </div>
     19</div><!-- .item-list-tabs -->
     20
     21<?php do_action( 'bp_before_group_activity_post_form' ) ?>
    2022
    2123<?php if ( is_user_logged_in() && bp_group_is_member() ) : ?>
     
    2325<?php endif; ?>
    2426
     27<?php do_action( 'bp_after_group_activity_post_form' ) ?>
     28<?php do_action( 'bp_before_group_activity_content' ) ?>
     29
    2530<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  
    33        <?php bp_group_admin_tabs(); ?>
    44    </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">
    68
    79<?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">
    1010
    1111<?php /* Edit Group Details */ ?>
     
    308308<input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id() ?>" />
    309309
     310<?php do_action( 'bp_after_group_admin_content' ) ?>
     311
    310312</form>
    311313
    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
    13<?php if ( bp_is_group_forum_topic_edit() ) : ?>
    24    <?php locate_template( array( 'groups/single/forum/edit.php' ), true ) ?>
     
    810
    911    <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' ) ?>
    1221
    1322    <?php if ( ( is_user_logged_in() && 'public' == bp_get_group_status() ) || bp_group_is_member() ) : ?>
     
    1625            <div id="post-new-topic">
    1726
    18                 <?php do_action( 'groups_forum_new_topic_before' ) ?>
     27                <?php do_action( 'bp_before_group_forum_post_new' ) ?>
    1928
    2029                <?php if ( !bp_group_is_member() ) : ?>
     
    3443                <input type="text" name="topic_tags" id="topic_tags" value="" />
    3544
    36                 <?php do_action( 'groups_forum_new_topic_after' ) ?>
     45                <?php do_action( 'bp_after_group_forum_post_new' ) ?>
    3746
    3847                <div class="submit">
     
    4150
    4251                <?php wp_nonce_field( 'bp_forums_new_topic' ) ?>
    43             </div>
     52            </div><!-- #post-new-topic -->
    4453        </form>
    4554
  • trunk/bp-themes/bp-default/groups/single/forum/edit.php

    r2197 r2284  
    1818                <div id="edit-topic">
    1919
    20                     <?php do_action( 'groups_forum_edit_topic_before' ) ?>
     20                    <?php do_action( 'bp_group_before_edit_forum_topic' ) ?>
    2121
    2222                    <p><strong><?php _e( 'Edit Topic:', 'buddypress' ) ?></strong></p>
     
    2828                    <textarea name="topic_text" id="topic_text"><?php bp_the_topic_text() ?></textarea>
    2929
    30                     <?php do_action( 'groups_forum_edit_topic_after' ) ?>
     30                    <?php do_action( 'bp_group_after_edit_forum_topic' ) ?>
    3131
    3232                    <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" /></p>
     
    4040                <div id="edit-post">
    4141
    42                     <?php do_action( 'groups_forum_edit_post_before' ) ?>
     42                    <?php do_action( 'bp_group_before_edit_forum_post' ) ?>
    4343
    4444                    <p><strong><?php _e( 'Edit Post:', 'buddypress' ) ?></strong></p>
     
    4646                    <textarea name="post_text" id="post_text"><?php bp_the_topic_post_edit_text() ?></textarea>
    4747
    48                     <?php do_action( 'groups_forum_edit_post_after' ) ?>
     48                    <?php do_action( 'bp_group_after_edit_forum_post' ) ?>
    4949
    5050                    <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
    13<div id="item-actions">
    24    <?php if ( bp_group_is_visible() ) : ?>
     
    2224
    2325<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>
    2427
    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' ) ?>
    2629
    2730<div id="item-meta">
     
    3033    <?php bp_group_join_button() ?>
    3134
    32     <?php do_action( 'bp_group_header_content' ) ?>
     35    <?php do_action( 'bp_group_header_meta' ) ?>
    3336</div>
     37
     38<?php do_action( 'bp_after_group_header' ) ?>
  • trunk/bp-themes/bp-default/groups/single/home.php

    r2267 r2284  
    11<?php get_header() ?>
    2 
    3     <?php do_action( 'bp_before_directory_members_content' ) ?>
    42
    53    <div id="content">
    64        <div class="padder">
    75            <?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?>
     6
     7            <?php do_action( 'bp_before_group_home_content' ) ?>
    88
    99            <div id="item-header">
     
    1212
    1313            <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">
    1515                    <ul>
    1616                        <?php bp_get_options_nav() ?>
    1717
    18                         <?php do_action( 'bp_members_directory_member_types' ) ?>
     18                        <?php do_action( 'bp_group_options_nav' ) ?>
    1919                    </ul>
    2020                </div>
     
    2323            <div id="item-body">
    2424                <?php do_action( 'template_notices' ) ?>
     25
     26                <?php do_action( 'bp_before_group_body' ) ?>
    2527
    2628                <?php if ( bp_is_group_admin_page() && bp_group_is_visible() ) : ?>
     
    5456                <?php endif; ?>
    5557
    56                 <?php do_action( 'bp_directory_members_content' ) ?>
     58                <?php do_action( 'bp_after_group_body' ) ?>
    5759            </div>
     60
     61            <?php do_action( 'bp_after_group_home_content' ) ?>
    5862
    5963            <?php endwhile; endif; ?>
     
    6367    <?php locate_template( array( 'sidebar.php' ), true ) ?>
    6468
    65     <?php do_action( 'bp_after_directory_members_content' ) ?>
    66 
    6769<?php get_footer() ?>
  • trunk/bp-themes/bp-default/groups/single/members.php

    r2170 r2284  
    11<?php if ( bp_group_has_members( 'exclude_admins_mods=0' ) ) : ?>
     2
     3    <?php do_action( 'bp_before_group_members_content' ) ?>
    24
    35    <div class="pagination">
     
    4042    </ul>
    4143
    42     <?php do_action( 'bp_after_group_members_list' ) ?>
     44    <?php do_action( 'bp_after_group_members_content' ) ?>
    4345
    4446<?php else: ?>
  • trunk/bp-themes/bp-default/groups/single/plugins.php

    r2197 r2284  
    11<?php get_header() ?>
    2 
    3     <?php do_action( 'bp_before_directory_members_content' ) ?>
    42
    53    <div id="content">
    64        <div class="padder">
    75            <?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?>
     6
     7            <?php do_action( 'bp_before_group_plugin_template' ) ?>
    88
    99            <div id="item-header">
     
    1212
    1313            <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">
    1515                    <ul>
    1616                        <?php bp_get_options_nav() ?>
    1717
    18                         <?php do_action( 'bp_members_directory_member_types' ) ?>
     18                        <?php do_action( 'bp_group_plugin_options_nav' ) ?>
    1919                    </ul>
    2020                </div>
     
    2323            <div id="item-body">
    2424
     25                <div class="item-list-tabs no-ajax" id="group-subnav">
     26                    <ul>
     27                        <?php bp_get_options_nav() ?>
     28                    </ul>
     29                </div>
     30
    2531                <?php do_action( 'bp_template_content' ) ?>
    26 
    27                 <?php do_action( 'bp_directory_members_content' ) ?>
    2832
    2933            </div><!-- #item-body -->
    3034
    3135            <?php endwhile; endif; ?>
     36
     37            <?php do_action( 'bp_after_group_plugin_template' ) ?>
    3238
    3339        </div><!-- .padder -->
     
    3642    <?php locate_template( array( 'sidebar.php' ), true ) ?>
    3743
    38     <?php do_action( 'bp_after_directory_members_content' ) ?>
    39 
    4044<?php get_footer() ?>
  • trunk/bp-themes/bp-default/groups/single/send-invites.php

    r2170 r2284  
    7575<?php endif; ?>
    7676
    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  
    8282
    8383                <?php do_action( 'bp_nav_items' ); ?>
    84             </ul>
     84            </ul><!-- #nav -->
    8585
    8686            <div id="search-bar">
     
    9393                    <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
    9494                    <?php wp_nonce_field( 'bp_search_form' ) ?>
    95                 </form>
     95                </form><!-- #search-form -->
    9696
    9797                <?php do_action( 'bp_search_login_bar' ) ?>
    9898
    99                 </div>
    100             </div>
     99                </div><!-- .padder -->
     100            </div><!-- #search-bar -->
    101101
    102102            <?php do_action( 'bp_header' ) ?>
    103103
    104         </div>
     104        </div><!-- #header -->
    105105
    106106        <?php do_action( 'bp_after_header' ) ?>
  • trunk/bp-themes/bp-default/members/index.php

    r2198 r2284  
    11<?php get_header() ?>
    2 
    3     <?php do_action( 'bp_before_directory_members_content' ) ?>
    42
    53    <div id="content">
     
    108            <h2><?php _e( 'Members Directory', 'buddypress' ) ?></h2>
    119
     10            <?php do_action( 'bp_before_directory_members_content' ) ?>
     11
    1212            <div id="members-dir-search" class="dir-search">
    1313                <?php bp_directory_members_search_form() ?>
    14             </div>
     14            </div><!-- #members-dir-search -->
    1515
    1616            <div class="item-list-tabs">
     
    3636                    </li>
    3737                </ul>
    38             </div>
     38            </div><!-- .item-list-tabs -->
    3939
    4040            <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 -->
    4348
    4449            <?php do_action( 'bp_directory_members_content' ) ?>
     
    4651            <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ) ?>
    4752
    48         </form>
     53            <?php do_action( 'bp_after_directory_members_content' ) ?>
     54
     55        </form><!-- #members-directory-form -->
    4956
    5057        </div><!-- .padder -->
     
    5360    <?php locate_template( array( 'sidebar.php' ), true ) ?>
    5461
    55     <?php do_action( 'bp_after_directory_members_content' ) ?>
    56 
    5762<?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
    25<?php if ( bp_has_members( bp_ajax_querystring() ) ) : ?>
    36
     
    3740                <?php
    3841                 /***
    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' );
    4147                  */
    4248                ?>
     
    6672
    6773<?php endif; ?>
     74
     75<?php do_action( 'bp_after_members_loop' ) ?>
  • trunk/bp-themes/bp-default/members/single/activity.php

    r2270 r2284  
    33        <li class="feed"><a href="<?php bp_activities_member_rss_link() ?>" title="RSS Feed"><?php _e( 'RSS', 'buddypress' ) ?></a></li>
    44
    5         <?php do_action('bp_activity_member_syndication_options') ?>
     5        <?php do_action( 'bp_member_activity_syndication_options' ) ?>
    66
    77        <li id="activity-filter-select" class="last">
     
    1717                <option value="friendship_accepted,friendship_created"><?php _e( 'Show Friendship Connections', 'buddypress' ) ?></option>
    1818
    19                 <?php do_action( 'bp_activity_personal_filter_options' ) ?>
     19                <?php do_action( 'bp_member_activity_filter_options' ) ?>
    2020            </select>
    2121        </li>
    2222    </ul>
    23 </div>
     23</div><!-- .item-list-tabs -->
     24
     25<?php do_action( 'bp_before_member_activity_post_form' ) ?>
    2426
    2527<?php if ( is_user_logged_in() && bp_is_my_profile() ) : ?>
     
    2729<?php endif; ?>
    2830
     31<?php do_action( 'bp_after_member_activity_post_form' ) ?>
     32<?php do_action( 'bp_before_member_activity_content' ) ?>
     33
    2934<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.
    3238
    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  
    88                <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>
    99
    10                 <?php do_action( 'bp_blogs_directory_order_options' ) ?>
     10                <?php do_action( 'bp_member_blog_order_options' ) ?>
    1111            </select>
    1212        </li>
    1313    </ul>
    14 </div>
     14</div><!-- .item-list-tabs -->
     15
     16<?php do_action( 'bp_before_member_blogs_content' ) ?>
    1517
    1618<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.
    1922
    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  
    1313                <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>
    1414
    15                 <?php do_action( 'bp_members_directory_order_options' ) ?>
     15                <?php do_action( 'bp_member_blog_order_options' ) ?>
    1616            </select>
    1717        </li>
     
    2424<?php else : ?>
    2525
     26    <?php do_action( 'bp_before_member_friends_content' ) ?>
     27
    2628    <div class="members friends">
    2729        <?php // 'members/members-loop.php' loaded here via AJAX. ?>
    2830    </div>
    2931
     32    <?php do_action( 'bp_after_member_friends_content' ) ?>
     33
    3034<?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' ) ?>
    22
    33<?php if ( bp_has_members( 'include=' . bp_get_friendship_requests() . '&per_page=0' ) ) : ?>
     
    3939<?php endif;?>
    4040
    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  
    1515                <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>
    1616
    17                 <?php do_action( 'bp_groups_directory_order_options' ) ?>
     17                <?php do_action( 'bp_member_group_order_options' ) ?>
    1818            </select>
    1919        </li>
     
    2727<?php else : ?>
    2828
     29    <?php do_action( 'bp_before_member_groups_content' ) ?>
     30
    2931    <div class="groups mygroups">
    3032        <?php // 'members/members-loop.php' loaded here via AJAX. ?>
    3133    </div>
    3234
     35    <?php do_action( 'bp_after_member_groups_content' ) ?>
     36
    3337<?php endif; ?>
    34 
    35 <?php do_action( 'bp_directory_members_content' ) ?>
  • trunk/bp-themes/bp-default/members/single/home.php

    r2197 r2284  
    11<?php get_header() ?>
    2 
    3     <?php do_action( 'bp_before_directory_members_content' ) ?>
    42
    53    <div id="content">
    64        <div class="padder">
    75
     6            <?php do_action( 'bp_before_member_home_content' ) ?>
     7
    88            <div id="item-header">
    99                <?php locate_template( array( 'members/single/member-header.php' ), true ) ?>
    10             </div>
     10            </div><!-- #item-header -->
    1111
    1212            <div id="item-nav">
     
    1818                    </ul>
    1919                </div>
    20             </div>
     20            </div><!-- #item-nav -->
    2121
    2222            <div id="item-body">
     23                <?php do_action( 'bp_before_member_body' ) ?>
     24
    2325                <?php if ( bp_is_user_activity() || !bp_current_component() ) : ?>
    2426                    <?php locate_template( array( 'members/single/activity.php' ), true ) ?>
     
    4143                <?php endif; ?>
    4244
    43                 <?php do_action( 'bp_directory_members_content' ) ?>
     45                <?php do_action( 'bp_after_member_body' ) ?>
    4446
    4547            </div><!-- #item-body -->
     48
     49            <?php do_action( 'bp_after_member_home_content' ) ?>
    4650
    4751        </div><!-- .padder -->
     
    5054    <?php locate_template( array( 'sidebar.php' ), true ) ?>
    5155
    52     <?php do_action( 'bp_after_directory_members_content' ) ?>
    53 
    5456<?php get_footer() ?>
  • trunk/bp-themes/bp-default/members/single/member-header.php

    r2276 r2284  
     1<?php do_action( 'bp_before_member_header' ) ?>
     2
    13<?php bp_displayed_user_avatar( 'type=full' ) ?>
    24
    35<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' ) ?>
    48
    59<div id="item-meta">
     
    3337    ?>
    3438
    35     <?php do_action( 'bp_profile_header_content' ) ?>
     39    <?php do_action( 'bp_profile_header_meta' ) ?>
    3640
    3741</div>
    3842
     43<?php do_action( 'bp_after_group_header' ) ?>
     44
    3945<?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 
    31<div class="item-list-tabs no-ajax" id="user-subnav">
    42    <ul>
     
    1412
    1513<?php else : ?>
     14
     15    <?php do_action( 'bp_before_member_messages_content' ) ?>
     16
    1617    <div class="messages">
    1718        <?php locate_template( array( 'members/single/messages/messages-loop.php' ), true ) ?>
    1819    </div>
     20
     21    <?php do_action( 'bp_after_member_messages_content' ) ?>
     22
    1923<?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
    13<?php if ( bp_has_message_threads() ) : ?>
    24
     
    1113        </div>
    1214
    13     </div>
     15    </div><!-- .pagination -->
    1416
    15     <?php do_action( 'bp_before_messages_inbox_list' ) ?>
     17    <?php do_action( 'bp_after_member_messages_pagination' ) ?>
    1618
    1719    <div class="messages-options-nav">
    1820        <?php bp_messages_options() ?>
    19     </div>
     21    </div><!-- .messages-options-nav -->
     22
     23    <?php do_action( 'bp_before_member_messages_threads' ) ?>
    2024
    2125    <table id="message-threads">
     
    4549
    4650        <?php endwhile; ?>
    47     </table>
     51    </table><!-- #message-threads -->
     52
     53    <?php do_action( 'bp_after_member_messages_threads' ) ?>
    4854
    4955    <div class="messages-options-nav">
     
    5157    </div>
    5258
    53     <?php do_action( 'bp_after_messages_inbox_list' ) ?>
     59    <?php do_action( 'bp_after_member_messages_options' ) ?>
    5460
    5561<?php else: ?>
     
    6066
    6167<?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">
    22
    3 <div id="message-thread">
     3    <?php do_action( 'bp_before_message_thread_content' ) ?>
    44
    55    <?php if ( bp_thread_has_messages() ) : ?>
     
    2828                    <?php do_action( 'bp_after_message_meta' ) ?>
    2929
    30                 </div>
     30                </div><!-- .message-metadata -->
    3131
    3232                <?php do_action( 'bp_before_message_content' ) ?>
     
    3636                    <?php bp_the_thread_message_content() ?>
    3737
    38                 </div>
     38                </div><!-- .message-content -->
    3939
    4040                <?php do_action( 'bp_after_message_content' ) ?>
     
    4242                <div class="clear"></div>
    4343
    44             </div>
     44            </div><!-- .message-box -->
    4545
    4646        <?php endwhile; ?>
     
    6666                    <?php do_action( 'bp_after_message_meta' ) ?>
    6767
    68                 </div>
     68                </div><!-- .message-metadata -->
    6969
    7070                <div class="message-content">
     
    8585                    <?php wp_nonce_field( 'messages_send_message', 'send_message_nonce' ) ?>
    8686
    87                 </div>
     87                </div><!-- .message-content -->
    8888
    89             </div>
     89            </div><!-- .message-box -->
    9090
    91         </form>
     91        </form><!-- #send-reply -->
    9292
    9393        <?php do_action( 'bp_after_message_thread_reply' ) ?>
  • trunk/bp-themes/bp-default/members/single/plugins.php

    r2197 r2284  
    11<?php get_header() ?>
    2 
    3     <?php do_action( 'bp_before_directory_members_content' ) ?>
    42
    53    <div id="content">
    64        <div class="padder">
     5
     6            <?php do_action( 'bp_before_member_plugin_template' ) ?>
    77
    88            <div id="item-header">
     
    3434            </div><!-- #item-body -->
    3535
     36            <?php do_action( 'bp_after_member_plugin_template' ) ?>
     37
    3638        </div><!-- .padder -->
    3739    </div><!-- #content -->
     
    3941    <?php locate_template( array( 'sidebar.php' ), true ) ?>
    4042
    41     <?php do_action( 'bp_after_directory_members_content' ) ?>
     43    <?php do_action( 'bp_after_member_plugin_template' ) ?>
    4244
    4345<?php get_footer() ?>
  • trunk/bp-themes/bp-default/members/single/profile.php

    r2179 r2284  
    66    </div>
    77<?php endif; ?>
     8
     9<?php do_action( 'bp_before_profile_content' ) ?>
    810
    911<div class="profile">
     
    1820
    1921    <?php endif; ?>
    20 </div>
     22</div><!-- .profile -->
    2123
    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
    13<?php if ( function_exists('xprofile_get_profile') ) : ?>
    24
     
    5153
    5254<?php endif; ?>
     55
     56<?php do_action( 'bp_after_profile_loop_content' ) ?>
     57
  • trunk/bp-themes/bp-default/page.php

    r2277 r2284  
    2727            <?php endwhile; endif; ?>
    2828
    29         </div>
     29        </div><!-- .page -->
    3030
    3131        <?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
    13<?php get_header(); ?>
    24
    35    <div id="content">
     6        <div class="padder">
    47
    58        <?php do_action( 'bp_before_activation_page' ) ?>
     
    710        <div class="page" id="activate-page">
    811
    9             <div class="register bp_core_widget_welcome">
     12            <?php do_action( 'template_notices' ) ?>
    1013
    11                 <?php do_action( 'template_notices' ) ?>
     14            <?php if ( bp_account_was_activated() ) : ?>
    1215
    13                 <?php if ( bp_account_was_activated() ) : ?>
     16                <h2 class="widgettitle"><?php _e( 'Account Activated', 'buddypress' ) ?></h2>
    1417
    15                     <h2 class="widgettitle"><?php _e( 'Account Activated', 'buddypress' ) ?></h2>
     18                <?php do_action( 'bp_before_activate_content' ) ?>
    1619
    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>
    2021
    2122
    22                 <?php else : ?>
     23            <?php else : ?>
    2324
    24                     <h2 class="widgettitle"><?php _e( 'Activate your Account', 'buddypress' ) ?></h2>
     25                <h3><?php _e( 'Activate your Account', 'buddypress' ) ?></h3>
    2526
    26                     <?php do_action( 'bp_before_activate_content' ) ?>
     27                <?php do_action( 'bp_before_activate_content' ) ?>
    2728
    28                     <p><?php _e( 'Please provide a valid activation key.', 'buddypress' ) ?></p>
     29                <p><?php _e( 'Please provide a valid activation key.', 'buddypress' ) ?></p>
    2930
    30                     <form action="" method="get" class="standard-form" id="activation-form">
     31                <form action="" method="get" class="standard-form" id="activation-form">
    3132
    32                         <label for="key"><?php _e( 'Activation Key:', 'buddypress' ) ?></label>
    33                         <input type="text" name="key" id="key" value="" />
     33                    <label for="key"><?php _e( 'Activation Key:', 'buddypress' ) ?></label>
     34                    <input type="text" name="key" id="key" value="" />
    3435
    35                         <p class="submit">
    36                             <input type="submit" name="submit" value="<?php _e( 'Activate', 'buddypress' ) ?> &rarr;" />
    37                         </p>
     36                    <p class="submit">
     37                        <input type="submit" name="submit" value="<?php _e( 'Activate', 'buddypress' ) ?> &rarr;" />
     38                    </p>
    3839
    39                     </form>
     40                </form>
    4041
    41                 <?php endif; ?>
     42            <?php endif; ?>
    4243
    43                 <?php do_action( 'bp_after_activate_content' ) ?>
     44            <?php do_action( 'bp_after_activate_content' ) ?>
    4445
    45             </div>
    46 
    47         </div>
     46        </div><!-- .page -->
    4847
    4948        <?php do_action( 'bp_after_activation_page' ) ?>
    5049
    51     </div>
     50        </div><!-- .padder -->
     51    </div><!-- #content -->
    5252
    53     <?php get_sidebar() ?>
     53    <?php locate_template( array( 'sidebar.php' ), true ) ?>
    5454
    5555<?php get_footer(); ?>
  • trunk/bp-xprofile.php

    r2250 r2284  
    289289    // logged in user, only if $_GET['new'] is set.
    290290    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' );
    292292
    293293    do_action( 'xprofile_screen_display_profile', $_GET['new'] );
Note: See TracChangeset for help on using the changeset viewer.