Skip to:
Content

BuddyPress.org

Changeset 3810


Ignore:
Timestamp:
01/22/2011 10:13:25 AM (16 years ago)
Author:
johnjamesjacoby
Message:

First pass at normalizing bp-default template files. This includes:

A ton of code cleanup
Using new functions found in BP 1.3
Template header documentation
Improve pagination style and position on root component templates

Location:
trunk/bp-themes/bp-default
Files:
24 edited

Legend:

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

    r3805 r3810  
    804804
    805805div.pagination {
    806         margin: -20px -19px 9px -19px;
    807         border-bottom: 1px solid #eaeaea;
    808         padding: 10px 20px 10px 20px;
     806        margin: -20px -19px 0px -19px;
     807        padding: 8px 20px;
    809808        color: #888;
    810809        font-size: 11px;
    811810        height: 19px;
    812 }
    813 
    814 div.pagination#user-pag,
    815 .friends div.pagination,
    816 .mygroups div.pagination,
    817 .myblogs div.pagination,
    818 noscript div.pagination {
    819         background: #f8f8f8;
     811        background: #f4f4f4;
    820812        border: none;
    821         padding: 8px 15px;
     813        position: relative;
    822814}
    823815
     
    841833
    842834div#pag-bottom {
    843         margin-top: 0;
     835        margin-top: -1px;
    844836}
    845837
  • trunk/bp-themes/bp-default/activity/activity-loop.php

    r3771 r3810  
    1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_activity_loop() */ ?>
     1<?php
    22
    3 <?php do_action( 'bp_before_activity_loop' ) ?>
     3/**
     4 * BuddyPress - Activity Loop
     5 *
     6 * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter()
     7 *
     8 * @package BuddyPress
     9 * @subpackage bp-default
     10 */
     11
     12?>
     13
     14<?php do_action( 'bp_before_activity_loop' ); ?>
    415
    516<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
     
    819        <noscript>
    920                <div class="pagination">
    10                         <div class="pag-count"><?php bp_activity_pagination_count() ?></div>
    11                         <div class="pagination-links"><?php bp_activity_pagination_links() ?></div>
     21                        <div class="pag-count"><?php bp_activity_pagination_count(); ?></div>
     22                        <div class="pagination-links"><?php bp_activity_pagination_links(); ?></div>
    1223                </div>
    1324        </noscript>
    1425
    1526        <?php if ( empty( $_POST['page'] ) ) : ?>
     27
    1628                <ul id="activity-stream" class="activity-list item-list">
     29
    1730        <?php endif; ?>
    1831
    1932        <?php while ( bp_activities() ) : bp_the_activity(); ?>
    2033
    21                 <?php include( locate_template( array( 'activity/entry.php' ), false ) ) ?>
     34                <?php include( locate_template( array( 'activity/entry.php' ), false ) ); ?>
    2235
    2336        <?php endwhile; ?>
    2437
    2538        <?php if ( bp_activity_has_more_items() ) : ?>
     39
    2640                <li class="load-more">
    27                         <a href="#more"><?php _e( 'Load More', 'buddypress' ) ?></a> &nbsp; <span class="ajax-loader"></span>
     41                        <a href="#more"><?php _e( 'Load More', 'buddypress' ); ?></a> &nbsp; <span class="ajax-loader"></span>
    2842                </li>
     43
    2944        <?php endif; ?>
    3045
    3146        <?php if ( empty( $_POST['page'] ) ) : ?>
     47
    3248                </ul>
     49
    3350        <?php endif; ?>
    3451
    3552<?php else : ?>
     53
    3654        <div id="message" class="info">
    37                 <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ) ?></p>
     55                <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>
    3856        </div>
     57
    3958<?php endif; ?>
    4059
    41 <?php do_action( 'bp_after_activity_loop' ) ?>
     60<?php do_action( 'bp_after_activity_loop' ); ?>
    4261
    4362<form action="" name="activity-loop-form" id="activity-loop-form" method="post">
    44         <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ) ?>
     63
     64        <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
     65
    4566</form>
  • trunk/bp-themes/bp-default/activity/entry.php

    r3771 r3810  
    1 <?php /* This template is used by activity-loop.php and AJAX functions to show each activity */ ?>
     1<?php
    22
    3 <?php do_action( 'bp_before_activity_entry' ) ?>
     3/**
     4 * BuddyPress - Activity Stream (Single Item)
     5 *
     6 * This template is used by activity-loop.php and AJAX functions to show
     7 * each activity.
     8 *
     9 * @package BuddyPress
     10 * @subpackage bp-default
     11 */
    412
    5 <li class="<?php bp_activity_css_class() ?>" id="activity-<?php bp_activity_id() ?>">
     13?>
     14
     15<?php do_action( 'bp_before_activity_entry' ); ?>
     16
     17<li class="<?php bp_activity_css_class(); ?>" id="activity-<?php bp_activity_id(); ?>">
    618        <div class="activity-avatar">
    7                 <a href="<?php bp_activity_user_link() ?>">
    8                         <?php bp_activity_avatar( 'type=full&width=100&height=100' ) ?>
     19                <a href="<?php bp_activity_user_link(); ?>">
     20
     21                        <?php bp_activity_avatar( 'type=full&width=100&height=100' ); ?>
     22
    923                </a>
    1024        </div>
     
    1327
    1428                <div class="activity-header">
    15                         <?php bp_activity_action() ?>
     29
     30                        <?php bp_activity_action(); ?>
     31
    1632                </div>
    1733
    1834                <?php if ( bp_activity_has_content() ) : ?>
     35
    1936                        <div class="activity-inner">
    20                                 <?php bp_activity_content_body() ?>
     37
     38                                <?php bp_activity_content_body(); ?>
     39
    2140                        </div>
     41
    2242                <?php endif; ?>
    2343
    24                 <?php do_action( 'bp_activity_entry_content' ) ?>
     44                <?php do_action( 'bp_activity_entry_content' ); ?>
    2545
    2646                <div class="activity-meta">
     47
    2748                        <?php if ( is_user_logged_in() && bp_activity_can_comment() ) : ?>
    28                                 <a href="<?php bp_activity_comment_link() ?>" class="acomment-reply" id="acomment-comment-<?php bp_activity_id() ?>"><?php _e( 'Reply', 'buddypress' ) ?> (<span><?php bp_activity_comment_count() ?></span>)</a>
     49
     50                                <a href="<?php bp_activity_comment_link(); ?>" class="acomment-reply" id="acomment-comment-<?php bp_activity_id(); ?>"><?php _e( 'Reply', 'buddypress' ); ?> (<span><?php bp_activity_comment_count(); ?></span>)</a>
     51
    2952                        <?php endif; ?>
    3053
    31                         <?php if ( is_user_logged_in() && bp_activity_can_favorite() ) : ?>
    32                                 <?php if ( !bp_get_activity_is_favorite() ) : ?>
     54                        <?php if ( is_user_logged_in() && bp_activity_can_favorite() ) :
     55                                if ( !bp_get_activity_is_favorite() ) : ?>
     56
    3357                                        <a href="<?php bp_activity_favorite_link() ?>" class="fav" title="<?php _e( 'Mark as Favorite', 'buddypress' ) ?>"><?php _e( 'Favorite', 'buddypress' ) ?></a>
     58
    3459                                <?php else : ?>
     60
    3561                                        <a href="<?php bp_activity_unfavorite_link() ?>" class="unfav" title="<?php _e( 'Remove Favorite', 'buddypress' ) ?>"><?php _e( 'Remove Favorite', 'buddypress' ) ?></a>
    36                                 <?php endif; ?>
    37                         <?php endif;?>
    3862
    39                         <?php do_action( 'bp_activity_entry_meta' ) ?>
     63                                <?php endif;
     64                        endif; ?>
     65
     66                        <?php do_action( 'bp_activity_entry_meta' ); ?>
    4067                </div>
    4168        </div>
    4269
    4370        <?php if ( 'activity_comment' == bp_get_activity_type() ) : ?>
     71
    4472                <div class="activity-inreplyto">
    45                         <strong><?php _e( 'In reply to', 'buddypress' ) ?></strong> - <?php bp_activity_parent_content() ?> &middot;
    46                         <a href="<?php bp_activity_thread_permalink() ?>" class="view" title="<?php _e( 'View Thread / Permalink', 'buddypress' ) ?>"><?php _e( 'View', 'buddypress' ) ?></a>
     73                        <strong><?php _e( 'In reply to', 'buddypress' ); ?></strong> - <?php bp_activity_parent_content(); ?> &middot;
     74                        <a href="<?php bp_activity_thread_permalink(); ?>" class="view" title="<?php _e( 'View Thread / Permalink', 'buddypress' ); ?>"><?php _e( 'View', 'buddypress' ); ?></a>
    4775                </div>
     76
    4877        <?php endif; ?>
    4978
    50         <?php do_action( 'bp_before_activity_entry_comments' ) ?>
     79        <?php do_action( 'bp_before_activity_entry_comments' ); ?>
    5180
    5281        <?php if ( bp_activity_can_comment() ) : ?>
    5382                <div class="activity-comments">
    54                         <?php bp_activity_comments() ?>
     83
     84                        <?php bp_activity_comments(); ?>
    5585
    5686                        <?php if ( is_user_logged_in() ) : ?>
    57                         <form action="<?php bp_activity_comment_form_action() ?>" method="post" id="ac-form-<?php bp_activity_id() ?>" class="ac-form"<?php bp_activity_comment_form_nojs_display() ?>>
    58                                 <div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ) ?></div>
     87
     88                        <form action="<?php bp_activity_comment_form_action(); ?>" method="post" id="ac-form-<?php bp_activity_id(); ?>" class="ac-form"<?php bp_activity_comment_form_nojs_display(); ?>>
     89                                <div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ); ?></div>
    5990                                <div class="ac-reply-content">
    6091                                        <div class="ac-textarea">
    61                                                 <textarea id="ac-input-<?php bp_activity_id() ?>" class="ac-input" name="ac_input_<?php bp_activity_id() ?>"></textarea>
     92                                                <textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
    6293                                        </div>
    63                                         <input type="submit" name="ac_form_submit" value="<?php _e( 'Post', 'buddypress' ) ?> &rarr;" /> &nbsp; <?php _e( 'or press esc to cancel.', 'buddypress' ) ?>
    64                                         <input type="hidden" name="comment_form_id" value="<?php bp_activity_id() ?>" />
     94                                        <input type="submit" name="ac_form_submit" value="<?php _e( 'Post', 'buddypress' ); ?> &rarr;" /> &nbsp; <?php _e( 'or press esc to cancel.', 'buddypress' ); ?>
     95                                        <input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />
    6596                                </div>
    66                                 <?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ) ?>
     97
     98                                <?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ); ?>
     99
    67100                        </form>
     101
    68102                        <?php endif; ?>
     103
    69104                </div>
     105
    70106        <?php endif; ?>
    71107
    72         <?php do_action( 'bp_after_activity_entry_comments' ) ?>
     108        <?php do_action( 'bp_after_activity_entry_comments' ); ?>
     109
    73110</li>
    74111
    75 <?php do_action( 'bp_after_activity_entry' ) ?>
    76 
     112<?php do_action( 'bp_after_activity_entry' ); ?>
  • trunk/bp-themes/bp-default/activity/index.php

    r3797 r3810  
    44 * Template Name: BuddyPress - Activity Directory
    55 *
    6  * @package bbPress
     6 * @package BuddyPress
    77 * @subpackage Theme
    88 */
  • trunk/bp-themes/bp-default/activity/post-form.php

    r3771 r3810  
    1 <form action="<?php bp_activity_post_form_action() ?>" method="post" id="whats-new-form" name="whats-new-form" role="complementary">
     1<?php
    22
    3         <?php do_action( 'bp_before_activity_post_form' ) ?>
     3/**
     4 * BuddyPress - Activity Post Form
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
     12<form action="<?php bp_activity_post_form_action(); ?>" method="post" id="whats-new-form" name="whats-new-form" role="complementary">
     13
     14        <?php do_action( 'bp_before_activity_post_form' ); ?>
    415
    516        <?php if ( isset( $_GET['r'] ) ) : ?>
    617                <div id="message" class="info">
    7                         <p><?php printf( __( 'You are mentioning %s in a new update, this user will be sent a notification of your message.', 'buddypress' ), bp_get_mentioned_user_display_name( $_GET['r'] ) ) ?></p>
     18                        <p><?php printf( __( 'You are mentioning %s in a new update, this user will be sent a notification of your message.', 'buddypress' ), bp_get_mentioned_user_display_name( $_GET['r'] ) ); ?></p>
    819                </div>
    920        <?php endif; ?>
    1021
    1122        <div id="whats-new-avatar">
    12                 <a href="<?php echo bp_loggedin_user_domain() ?>">
    13                         <?php bp_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ) ?>
     23                <a href="<?php echo bp_loggedin_user_domain(); ?>">
     24                        <?php bp_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ); ?>
    1425                </a>
    1526        </div>
    1627
    17         <h5>
    18                 <?php if ( bp_is_group() ) : ?>
    19                         <?php printf( __( "What's new in %s, %s?", 'buddypress' ), bp_get_group_name(), bp_get_user_firstname() ) ?>
    20                 <?php else : ?>
    21                         <?php printf( __( "What's new, %s?", 'buddypress' ), bp_get_user_firstname() ) ?>
    22                 <?php endif; ?>
    23         </h5>
     28        <h5><?php if ( bp_is_group() )
     29                        printf( __( "What's new in %s, %s?", 'buddypress' ), bp_get_group_name(), bp_get_user_firstname() );
     30                else
     31                        printf( __( "What's new, %s?", 'buddypress' ), bp_get_user_firstname() );
     32        ?></h5>
    2433
    2534        <div id="whats-new-content">
    2635                <div id="whats-new-textarea">
    27                         <textarea name="whats-new" id="whats-new" cols="50" rows="10"><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_attr( $_GET['r'] ) ?> <?php endif; ?></textarea>
     36                        <textarea name="whats-new" id="whats-new" cols="50" rows="10"><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_attr( $_GET['r'] ); ?> <?php endif; ?></textarea>
    2837                </div>
    2938
     
    3140                        <div id="whats-new-submit">
    3241                                <span class="ajax-loader"></span> &nbsp;
    33                                 <input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php _e( 'Post Update', 'buddypress' ) ?>" />
     42                                <input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php _e( 'Post Update', 'buddypress' ); ?>" />
    3443                        </div>
    3544
    3645                        <?php if ( bp_is_active( 'groups' ) && !bp_is_my_profile() && !bp_is_group() ) : ?>
     46
    3747                                <div id="whats-new-post-in-box">
     48
    3849                                        <?php _e( 'Post in', 'buddypress' ) ?>:
    3950
    4051                                        <select id="whats-new-post-in" name="whats-new-post-in">
    41                                                 <option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ) ?></option>
     52                                                <option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ); ?></option>
    4253
    43                                                 <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0' ) ) : while ( bp_groups() ) : bp_the_group(); ?>
    44                                                         <option value="<?php bp_group_id() ?>"><?php bp_group_name() ?></option>
    45                                                 <?php endwhile; endif; ?>
     54                                                <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0' ) ) :
     55                                                        while ( bp_groups() ) : bp_the_group(); ?>
     56
     57                                                                <option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option>
     58
     59                                                        <?php endwhile;
     60                                                endif; ?>
     61
    4662                                        </select>
    4763                                </div>
    4864                                <input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
     65
    4966                        <?php elseif ( bp_is_group_home() ) : ?>
     67
    5068                                <input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
    51                                 <input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id() ?>" />
     69                                <input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id(); ?>" />
     70
    5271                        <?php endif; ?>
    5372
    54                         <?php do_action( 'bp_activity_post_form_options' ) ?>
     73                        <?php do_action( 'bp_activity_post_form_options' ); ?>
    5574
    5675                </div><!-- #whats-new-options -->
     
    5877
    5978        <?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?>
    60         <?php do_action( 'bp_after_activity_post_form' ) ?>
     79        <?php do_action( 'bp_after_activity_post_form' ); ?>
    6180
    6281</form><!-- #whats-new-form -->
  • trunk/bp-themes/bp-default/blogs/blogs-loop.php

    r3771 r3810  
    1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() */ ?>
     1<?php
    22
    3 <?php do_action( 'bp_before_blogs_loop' ) ?>
     3/**
     4 * BuddyPress - Blogs Loop
     5 *
     6 * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter()
     7 *
     8 * @package BuddyPress
     9 * @subpackage bp-default
     10 */
     11
     12?>
     13
     14<?php do_action( 'bp_before_blogs_loop' ); ?>
    415
    516<?php if ( bp_has_blogs( bp_ajax_querystring( 'blogs' ) ) ) : ?>
     
    819
    920                <div class="pag-count" id="blog-dir-count-top">
    10                         <?php bp_blogs_pagination_count() ?>
     21                        <?php bp_blogs_pagination_count(); ?>
    1122                </div>
    1223
    1324                <div class="pagination-links" id="blog-dir-pag-top">
    14                         <?php bp_blogs_pagination_links() ?>
     25                        <?php bp_blogs_pagination_links(); ?>
    1526                </div>
    1627
    1728        </div>
    1829
    19         <?php do_action( 'bp_before_directory_blogs_list' ) ?>
     30        <?php do_action( 'bp_before_directory_blogs_list' ); ?>
    2031
    2132        <ul id="blogs-list" class="item-list" role="main">
     33
    2234        <?php while ( bp_blogs() ) : bp_the_blog(); ?>
    2335
    2436                <li>
    2537                        <div class="item-avatar">
    26                                 <a href="<?php bp_blog_permalink() ?>"><?php bp_blog_avatar('type=thumb') ?></a>
     38                                <a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_avatar( 'type=thumb' ); ?></a>
    2739                        </div>
    2840
    2941                        <div class="item">
    30                                 <div class="item-title"><a href="<?php bp_blog_permalink() ?>"><?php bp_blog_name() ?></a></div>
    31                                 <div class="item-meta"><span class="activity"><?php bp_blog_last_active() ?></span></div>
     42                                <div class="item-title"><a href="<?php bp_blog_permalink(); ?>"><?php bp_blog_name(); ?></a></div>
     43                                <div class="item-meta"><span class="activity"><?php bp_blog_last_active(); ?></span></div>
    3244
    33                                 <?php do_action( 'bp_directory_blogs_item' ) ?>
     45                                <?php do_action( 'bp_directory_blogs_item' ); ?>
    3446                        </div>
    3547
    3648                        <div class="action">
    3749
    38                                 <?php do_action( 'bp_directory_blogs_actions' ) ?>
     50                                <?php do_action( 'bp_directory_blogs_actions' ); ?>
    3951
    4052                                <div class="meta">
    41                                         <?php bp_blog_latest_post() ?>
     53
     54                                        <?php bp_blog_latest_post(); ?>
     55
    4256                                </div>
    4357
     
    4862
    4963        <?php endwhile; ?>
     64
    5065        </ul>
    5166
    52         <?php do_action( 'bp_after_directory_blogs_list' ) ?>
     67        <?php do_action( 'bp_after_directory_blogs_list' ); ?>
    5368
    54         <?php bp_blog_hidden_fields() ?>
     69        <?php bp_blog_hidden_fields(); ?>
    5570
    5671        <div id="pag-bottom" class="pagination">
    5772
    5873                <div class="pag-count" id="blog-dir-count-bottom">
    59                         <?php bp_blogs_pagination_count() ?>
     74
     75                        <?php bp_blogs_pagination_count(); ?>
     76
    6077                </div>
    6178
    6279                <div class="pagination-links" id="blog-dir-pag-bottom">
    63                         <?php bp_blogs_pagination_links() ?>
     80
     81                        <?php bp_blogs_pagination_links(); ?>
     82
    6483                </div>
    6584
     
    6988
    7089        <div id="message" class="info">
    71                 <p><?php _e( 'Sorry, there were no blogs found.', 'buddypress' ) ?></p>
     90                <p><?php _e( 'Sorry, there were no blogs found.', 'buddypress' ); ?></p>
    7291        </div>
    7392
    7493<?php endif; ?>
    7594
    76 <?php do_action( 'bp_after_blogs_loop' ) ?>
     95<?php do_action( 'bp_after_blogs_loop' ); ?>
  • trunk/bp-themes/bp-default/blogs/create.php

    r3771 r3810  
    1 <?php get_header() ?>
     1<?php
    22
    3         <?php do_action( 'bp_before_directory_blogs_content' ) ?>
     3/**
     4 * BuddyPress - Create Blog
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
     12<?php get_header(); ?>
     13
     14        <?php do_action( 'bp_before_directory_blogs_content' ); ?>
    415
    516        <div id="content">
    617                <div class="padder" role="main">
    718
    8                 <?php do_action( 'template_notices' ) ?>
     19                <?php do_action( 'template_notices' ); ?>
    920
    10                 <h3><?php _e( 'Create a Blog', 'buddypress' ) ?> &nbsp;<a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_BLOGS_SLUG . '/' ?>"><?php _e( 'Blogs Directory', 'buddypress' ) ?></a></h3>
     21                        <h3><?php _e( 'Create a Blog', 'buddypress' ); ?> &nbsp;<a class="button" href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_blogs_root_slug() ) ?>"><?php _e( 'Blogs Directory', 'buddypress' ); ?></a></h3>
    1122
    12                 <?php do_action( 'bp_before_create_blog_content' ) ?>
     23                <?php do_action( 'bp_before_create_blog_content' ); ?>
    1324
    1425                <?php if ( bp_blog_signup_enabled() ) : ?>
    1526
    16                         <?php bp_show_blog_signup_form() ?>
     27                        <?php bp_show_blog_signup_form(); ?>
    1728
    1829                <?php else: ?>
     
    2435                <?php endif; ?>
    2536
    26                 <?php do_action( 'bp_after_create_blog_content' ) ?>
     37                <?php do_action( 'bp_after_create_blog_content' ); ?>
    2738
    2839                </div><!-- .padder -->
    2940        </div><!-- #content -->
    3041
    31         <?php get_sidebar() ?>
     42        <?php do_action( 'bp_after_directory_blogs_content' ); ?>
    3243
    33         <?php do_action( 'bp_after_directory_blogs_content' ) ?>
     44<?php get_sidebar(); ?>
     45<?php get_footer(); ?>
    3446
    35 <?php get_footer() ?>
    36 
  • trunk/bp-themes/bp-default/blogs/index.php

    r3771 r3810  
    1 <?php get_header() ?>
     1<?php
     2
     3/**
     4 * BuddyPress - Blogs Directory
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
     12<?php get_header(); ?>
     13
     14        <?php do_action( 'bp_before_directory_blogs_content' ); ?>
    215
    316        <div id="content">
     
    619                <form action="" method="post" id="blogs-directory-form" class="dir-form">
    720
    8                         <h3><?php _e( 'Blogs Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() && bp_blog_signup_enabled() ) : ?> &nbsp;<a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_BLOGS_SLUG . '/create/' ?>"><?php _e( 'Create a Blog', 'buddypress' ) ?></a><?php endif; ?></h3>
    9 
    10                         <?php do_action( 'bp_before_directory_blogs_content' ) ?>
     21                        <h3><?php _e( 'Blogs Directory', 'buddypress' ); ?><?php if ( is_user_logged_in() && bp_blog_signup_enabled() ) : ?> &nbsp;<a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_BLOGS_SLUG . '/create/' ?>"><?php _e( 'Create a Blog', 'buddypress' ); ?></a><?php endif; ?></h3>
    1122
    1223                        <div id="blog-dir-search" class="dir-search" role="search">
    13                                 <?php bp_directory_blogs_search_form() ?>
     24
     25                                <?php bp_directory_blogs_search_form(); ?>
     26
    1427                        </div><!-- #blog-dir-search -->
    1528
    1629                        <div class="item-list-tabs" role="navigation">
    1730                                <ul>
    18                                         <li class="selected" id="blogs-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Blogs (%s)', 'buddypress' ), bp_get_total_blog_count() ) ?></a></li>
     31                                        <li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?>"><?php printf( __( 'All Blogs (%s)', 'buddypress' ), bp_get_total_blog_count() ); ?></a></li>
    1932
    2033                                        <?php if ( is_user_logged_in() && bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) : ?>
    21                                                 <li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_BLOGS_SLUG . '/my-blogs/' ?>"><?php printf( __( 'My Blogs (%s)', 'buddypress' ), bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
     34
     35                                                <li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_BLOGS_SLUG . '/my-blogs/' ?>"><?php printf( __( 'My Blogs (%s)', 'buddypress' ), bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
     36
    2237                                        <?php endif; ?>
    2338
    24                                         <?php do_action( 'bp_blogs_directory_blog_types' ) ?>
     39                                        <?php do_action( 'bp_blogs_directory_blog_types' ); ?>
     40
     41                                </ul>
     42                        </div><!-- .item-list-tabs -->
     43
     44                        <div class="item-list-tabs" id="subnav" role="navigation">
     45                                <ul>
     46
     47                                        <?php do_action( 'bp_blogs_directory_blog_sub_types' ); ?>
    2548
    2649                                        <li id="blogs-order-select" class="last filter">
    2750
    28                                                 <?php _e( 'Order By:', 'buddypress' ) ?>
     51                                                <?php _e( 'Order By:', 'buddypress' ); ?>
     52
    2953                                                <select>
    30                                                         <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
    31                                                         <option value="newest"><?php _e( 'Newest', 'buddypress' ) ?></option>
    32                                                         <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>
     54                                                        <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
     55                                                        <option value="newest"><?php _e( 'Newest', 'buddypress' ); ?></option>
     56                                                        <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    3357
    34                                                         <?php do_action( 'bp_blogs_directory_order_options' ) ?>
     58                                                        <?php do_action( 'bp_blogs_directory_order_options' ); ?>
     59
    3560                                                </select>
    3661                                        </li>
    3762                                </ul>
    38                         </div><!-- .item-list-tabs -->
     63                        </div>
    3964
    40                         <?php do_action( 'bp_before_directory_blogs_list' ) ?>
     65                        <?php do_action( 'bp_before_directory_blogs_list' ); ?>
    4166
    4267                        <div id="blogs-dir-list" class="blogs dir-list">
    43                                 <?php locate_template( array( 'blogs/blogs-loop.php' ), true ) ?>
     68
     69                                <?php locate_template( array( 'blogs/blogs-loop.php' ), true ); ?>
     70
    4471                        </div><!-- #blogs-dir-list -->
    4572
    46                         <?php do_action( 'bp_directory_blogs_content' ) ?>
     73                        <?php do_action( 'bp_directory_blogs_content' ); ?>
    4774
    48                         <?php wp_nonce_field( 'directory_blogs', '_wpnonce-blogs-filter' ) ?>
    49 
    50                         <?php do_action( 'bp_after_directory_blogs_content' ) ?>
     75                        <?php wp_nonce_field( 'directory_blogs', '_wpnonce-blogs-filter' ); ?>
    5176
    5277                </form><!-- #blogs-directory-form -->
     
    5580        </div><!-- #content -->
    5681
    57         <?php get_sidebar() ?>
     82        <?php do_action( 'bp_after_directory_blogs_content' ); ?>
    5883
    59 <?php get_footer() ?>
     84<?php get_sidebar(); ?>
     85<?php get_footer(); ?>
  • trunk/bp-themes/bp-default/forums/forums-loop.php

    r3771 r3810  
    1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() */ ?>
     1<?php
    22
    3 <?php do_action( 'bp_before_forums_loop' ) ?>
     3/**
     4 * BuddyPress - Forums Loop
     5 *
     6 * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter()
     7 *
     8 * @package BuddyPress
     9 * @subpackage bp-default
     10 */
     11
     12?>
     13
     14<?php do_action( 'bp_before_forums_loop' ); ?>
    415
    516<?php if ( bp_has_forum_topics( bp_ajax_querystring( 'forums' ) ) ) : ?>
     
    819
    920                <div class="pag-count" id="topic-count-top">
    10                         <?php bp_forum_pagination_count() ?>
     21
     22                        <?php bp_forum_pagination_count(); ?>
     23
    1124                </div>
    1225
    1326                <div class="pagination-links" id="topic-pag-top">
    14                         <?php bp_forum_pagination() ?>
     27
     28                        <?php bp_forum_pagination(); ?>
     29
    1530                </div>
    1631
    1732        </div>
    1833
    19         <?php do_action( 'bp_before_directory_forums_list' ) ?>
     34        <?php do_action( 'bp_before_directory_forums_list' ); ?>
    2035
    2136        <table class="forum zebra">
    2237                <thead>
    2338                        <tr>
    24                                 <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ) ?></th>
    25                                 <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ) ?></th>
     39                                <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ); ?></th>
     40                                <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ); ?></th>
    2641
    2742                                <?php if ( !bp_is_group_forum() ) : ?>
    28                                         <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ) ?></th>
     43
     44                                        <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ); ?></th>
     45
    2946                                <?php endif; ?>
    3047
    31                                 <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th>
    32                                 <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th>
     48                                <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ); ?></th>
     49                                <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ); ?></th>
    3350
    34                                 <?php do_action( 'bp_directory_forums_extra_cell_head' ) ?>
     51                                <?php do_action( 'bp_directory_forums_extra_cell_head' ); ?>
    3552
    3653                        </tr>
     
    4158                        <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>
    4259
    43                         <tr class="<?php bp_the_topic_css_class() ?>">
     60                        <tr class="<?php bp_the_topic_css_class(); ?>">
    4461                                <td class="td-title">
    45                                         <a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>">
    46                                                 <?php bp_the_topic_title() ?>
     62                                        <a class="topic-title" href="<?php bp_the_topic_permalink(); ?>" title="<?php bp_the_topic_title(); ?> - <?php _e( 'Permalink', 'buddypress' ); ?>">
     63
     64                                                <?php bp_the_topic_title(); ?>
     65
    4766                                        </a>
    4867                                </td>
    4968                                <td class="td-poster">
    50                                         <a href="<?php bp_the_topic_permalink() ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ) ?></a>
    51                                         <div class="poster-name"><?php bp_the_topic_last_poster_name() ?></div>
     69                                        <a href="<?php bp_the_topic_permalink(); ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ); ?></a>
     70                                        <div class="poster-name"><?php bp_the_topic_last_poster_name(); ?></div>
    5271                                </td>
    5372
    5473                                <?php if ( !bp_is_group_forum() ) : ?>
     74
    5575                                        <td class="td-group">
    56                                                 <a href="<?php bp_the_topic_object_permalink() ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) ?></a>
    57                                                 <div class="object-name"><a href="<?php bp_the_topic_object_permalink() ?>" title="<?php bp_the_topic_object_name() ?>"><?php bp_the_topic_object_name() ?></a></div>
     76                                                <a href="<?php bp_the_topic_object_permalink(); ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ); ?></a>
     77                                                <div class="object-name"><a href="<?php bp_the_topic_object_permalink(); ?>" title="<?php bp_the_topic_object_name(); ?>"><?php bp_the_topic_object_name(); ?></a></div>
    5878                                        </td>
     79
    5980                                <?php endif; ?>
    6081
    6182                                <td class="td-postcount">
    62                                         <?php bp_the_topic_total_posts() ?>
     83
     84                                        <?php bp_the_topic_total_posts(); ?>
     85
    6386                                </td>
    6487                                <td class="td-freshness">
    65                                         <?php bp_the_topic_time_since_last_post() ?>
     88                                        <?php bp_the_topic_time_since_last_post(); ?>
    6689                                </td>
    6790
    68                                 <?php do_action( 'bp_directory_forums_extra_cell' ) ?>
     91                                <?php do_action( 'bp_directory_forums_extra_cell' ); ?>
     92
    6993                        </tr>
    7094
    71                         <?php do_action( 'bp_directory_forums_extra_row' ) ?>
     95                        <?php do_action( 'bp_directory_forums_extra_row' ); ?>
    7296
    7397                        <?php endwhile; ?>
     
    76100        </table>
    77101
    78         <?php do_action( 'bp_after_directory_forums_list' ) ?>
     102        <?php do_action( 'bp_after_directory_forums_list' ); ?>
    79103
    80104        <div id="pag-bottom" class="pagination">
    81105
    82106                <div class="pag-count" id="topic-count-bottom">
    83                         <?php bp_forum_pagination_count() ?>
     107                        <?php bp_forum_pagination_count(); ?>
    84108                </div>
    85109
    86110                <div class="pagination-links" id="topic-pag-bottom">
    87                         <?php bp_forum_pagination() ?>
     111                        <?php bp_forum_pagination(); ?>
    88112                </div>
    89113
     
    93117
    94118        <div id="message" class="info">
    95                 <p><?php _e( 'Sorry, there were no forum topics found.', 'buddypress' ) ?></p>
     119                <p><?php _e( 'Sorry, there were no forum topics found.', 'buddypress' ); ?></p>
    96120        </div>
    97121
    98 <?php endif;?>
     122<?php endif; ?>
    99123
    100 <?php do_action( 'bp_after_forums_loop' ) ?>
     124<?php do_action( 'bp_after_forums_loop' ); ?>
  • trunk/bp-themes/bp-default/forums/index.php

    r3771 r3810  
    1 <?php get_header() ?>
     1<?php
     2
     3/**
     4 * BuddyPress - Forums Directory
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
     12<?php get_header(); ?>
     13
     14        <?php do_action( 'bp_before_directory_forums_content' ); ?>
    215
    316        <div id="content">
    417                <div class="padder">
    518
    6                 <?php do_action( 'bp_before_directory_forums' ) ?>
     19                <?php do_action( 'bp_before_directory_forums' ); ?>
    720
    821                <form action="" method="post" id="forums-search-form" class="dir-form">
    922
    10                         <h3><?php _e( 'Group Forums Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() ) : ?> &nbsp;<a class="button" href="#new-topic" id="new-topic-button"><?php _e( 'New Topic', 'buddypress' ) ?></a><?php endif; ?></h3>
    11 
    12                         <?php do_action( 'bp_before_directory_forums_content' ) ?>
     23                        <h3><?php _e( 'Group Forums Directory', 'buddypress' ); ?><?php if ( is_user_logged_in() ) : ?> &nbsp;<a class="button" href="#new-topic" id="new-topic-button"><?php _e( 'New Topic', 'buddypress' ); ?></a><?php endif; ?></h3>
    1324
    1425                        <div id="forums-dir-search" class="dir-search" role="search">
    15                                 <?php bp_directory_forums_search_form() ?>
     26
     27                                <?php bp_directory_forums_search_form(); ?>
     28
    1629                        </div>
    1730                </form>
    1831
     32                <?php do_action( 'bp_before_new_topic_form' ); ?>
     33
    1934                <div id="new-topic-post">
     35
    2036                        <?php if ( is_user_logged_in() ) : ?>
    2137
     
    2743
    2844                                                <a name="post-new"></a>
    29                                                 <h5><?php _e( 'Post a New Topic:', 'buddypress' ) ?></h5>
     45                                                <h5><?php _e( 'Post a New Topic:', 'buddypress' ); ?></h5>
    3046
    31                                                 <label><?php _e( 'Title:', 'buddypress' ) ?></label>
     47                                                <label><?php _e( 'Title:', 'buddypress' ); ?></label>
    3248                                                <input type="text" name="topic_title" id="topic_title" value="" />
    3349
    34                                                 <label><?php _e( 'Content:', 'buddypress' ) ?></label>
     50                                                <label><?php _e( 'Content:', 'buddypress' ); ?></label>
    3551                                                <textarea name="topic_text" id="topic_text"></textarea>
    3652
    37                                                 <label><?php _e( 'Tags (comma separated):', 'buddypress' ) ?></label>
     53                                                <label><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label>
    3854                                                <input type="text" name="topic_tags" id="topic_tags" value="" />
    3955
    40                                                 <label><?php _e( 'Post In Group Forum:', 'buddypress' ) ?></label>
     56                                                <label><?php _e( 'Post In Group Forum:', 'buddypress' ); ?></label>
    4157                                                <select id="topic_group_id" name="topic_group_id">
    4258
     
    4763                                                                <?php if ( bp_group_is_forum_enabled() && 'public' == bp_get_group_status() ) : ?>
    4864
    49                                                                         <option value="<?php bp_group_id() ?>"><?php bp_group_name() ?></option>
     65                                                                        <option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option>
    5066
    5167                                                                <?php endif; ?>
     
    5571                                                </select><!-- #topic_group_id -->
    5672
    57                                                 <?php do_action( 'groups_forum_new_topic_after' ) ?>
     73                                                <?php do_action( 'groups_forum_new_topic_after' ); ?>
    5874
    5975                                                <div class="submit">
    60                                                         <input type="submit" name="submit_topic" id="submit" value="<?php _e( 'Post Topic', 'buddypress' ) ?>" />
    61                                                         <input type="button" name="submit_topic_cancel" id="submit_topic_cancel" value="<?php _e( 'Cancel', 'buddypress' ) ?>" />
     76                                                        <input type="submit" name="submit_topic" id="submit" value="<?php _e( 'Post Topic', 'buddypress' ); ?>" />
     77                                                        <input type="button" name="submit_topic_cancel" id="submit_topic_cancel" value="<?php _e( 'Cancel', 'buddypress' ); ?>" />
    6278                                                </div>
    6379
    64                                                 <?php wp_nonce_field( 'bp_forums_new_topic' ) ?>
     80                                                <?php wp_nonce_field( 'bp_forums_new_topic' ); ?>
    6581
    6682                                        </form><!-- #forum-topic-form -->
     
    6985
    7086                                        <div id="message" class="info">
     87
    7188                                                <p><?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not <a href='%s'>create a new group</a>? Once you have joined or created the group you can post your topic in that group's forum.", 'buddypress' ), site_url( BP_GROUPS_SLUG . '/create/' ) ) ?></p>
     89
    7290                                        </div>
    7391
     
    7795                </div><!-- #new-topic-post -->
    7896
     97                <?php do_action( 'bp_before_topics' ); ?>
     98
    7999                <form action="" method="post" id="forums-directory-form" class="dir-form">
    80100
    81101                        <div class="item-list-tabs" role="navigation">
    82102                                <ul>
    83                                         <li class="selected" id="forums-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Topics (%s)', 'buddypress' ), bp_get_forum_topic_count() ) ?></a></li>
     103                                        <li class="selected" id="forums-all"><a href="<?php bp_root_domain(); ?>"><?php printf( __( 'All Topics (%s)', 'buddypress' ), bp_get_forum_topic_count() ); ?></a></li>
    84104
    85105                                        <?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?>
    86                                                 <li id="forums-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/' ?>"><?php printf( __( 'My Topics (%s)', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
     106
     107                                                <li id="forums-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ); ?>"><?php printf( __( 'My Topics (%s)', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
     108
    87109                                        <?php endif; ?>
    88110
    89                                         <?php do_action( 'bp_forums_directory_group_types' ) ?>
     111                                        <?php do_action( 'bp_forums_directory_group_types' ); ?>
     112
     113                                </ul>
     114                        </div>
     115
     116                        <div class="item-list-tabs" id="subnav" role="navigation">
     117                                <ul>
     118
     119                                        <?php do_action( 'bp_forums_directory_group_sub_types' ); ?>
    90120
    91121                                        <li id="forums-order-select" class="last filter">
    92122
    93                                                 <?php _e( 'Order By:', 'buddypress' ) ?>
     123                                                <?php _e( 'Order By:', 'buddypress' ); ?>
     124
    94125                                                <select>
    95                                                         <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
    96                                                         <option value="popular"><?php _e( 'Most Posts', 'buddypress' ) ?></option>
    97                                                         <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ) ?></option>
     126                                                        <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
     127                                                        <option value="popular"><?php _e( 'Most Posts', 'buddypress' ); ?></option>
     128                                                        <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ); ?></option>
    98129
    99                                                         <?php do_action( 'bp_forums_directory_order_options' ) ?>
     130                                                        <?php do_action( 'bp_forums_directory_order_options' ); ?>
     131
    100132                                                </select>
    101133                                        </li>
     
    103135                        </div>
    104136
    105                         <?php do_action( 'bp_before_directory_forums_list' ) ?>
     137                        <?php do_action( 'bp_before_directory_forums_list' ); ?>
    106138
    107139                        <div id="forums-dir-list" class="forums dir-list" role="main">
    108                                 <?php locate_template( array( 'forums/forums-loop.php' ), true ) ?>
     140
     141                                <?php locate_template( array( 'forums/forums-loop.php' ), true ); ?>
     142
    109143                        </div>
    110144
    111                         <?php do_action( 'bp_directory_forums_content' ) ?>
     145                        <?php do_action( 'bp_directory_forums_content' ); ?>
    112146
    113                         <?php wp_nonce_field( 'directory_forums', '_wpnonce-forums-filter' ) ?>
    114 
    115                         <?php do_action( 'bp_after_directory_forums_content' ) ?>
     147                        <?php wp_nonce_field( 'directory_forums', '_wpnonce-forums-filter' ); ?>
    116148
    117149                </form>
    118150
    119                 <?php do_action( 'bp_after_directory_forums' ) ?>
     151                <?php do_action( 'bp_after_directory_forums' ); ?>
    120152
    121153                </div><!-- .padder -->
    122154        </div><!-- #content -->
    123155
    124         <?php get_sidebar() ?>
     156        <?php do_action( 'bp_after_directory_forums_content' ); ?>
    125157
    126 <?php get_footer() ?>
     158<?php get_sidebar(); ?>
     159<?php get_footer(); ?>
  • trunk/bp-themes/bp-default/groups/create.php

    r3771 r3810  
    1 <?php get_header() ?>
     1<?php
     2
     3/**
     4 * BuddyPress - Create Group
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
     12<?php get_header(); ?>
    213
    314        <div id="content">
    415                <div class="padder">
    516
    6                 <form action="<?php bp_group_creation_form_action() ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data">
    7                         <h3><?php _e( 'Create a Group', 'buddypress' ) ?> &nbsp;<a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_GROUPS_SLUG . '/' ?>"><?php _e( 'Groups Directory', 'buddypress' ) ?></a></h3>
    8 
    9                         <?php do_action( 'bp_before_create_group' ) ?>
     17                <form action="<?php bp_group_creation_form_action(); ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data">
     18                        <h3><?php _e( 'Create a Group', 'buddypress' ); ?> &nbsp;<a class="button" href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() ); ?>"><?php _e( 'Groups Directory', 'buddypress' ); ?></a></h3>
     19
     20                        <?php do_action( 'bp_before_create_group' ); ?>
    1021
    1122                        <div class="item-list-tabs no-ajax" id="group-create-tabs" role="navigation">
    1223                                <ul>
     24
    1325                                        <?php bp_group_creation_tabs(); ?>
     26
    1427                                </ul>
    1528                        </div>
    1629
    17                         <?php do_action( 'template_notices' ) ?>
     30                        <?php do_action( 'template_notices' ); ?>
    1831
    1932                        <div class="item-body" id="group-create-body">
     
    2437                                        <?php do_action( 'bp_before_group_details_creation_step' ); ?>
    2538
    26                                         <label for="group-name"><?php _e('* Group Name', 'buddypress') ?> <?php _e( '(required)', 'buddypress' )?></label>
    27                                         <input type="text" name="group-name" id="group-name" value="<?php bp_new_group_name() ?>" />
    28 
    29                                         <label for="group-desc"><?php _e('* Group Description', 'buddypress') ?> <?php _e( '(required)', 'buddypress' )?></label>
    30                                         <textarea name="group-desc" id="group-desc"><?php bp_new_group_description() ?></textarea>
    31 
    32                                         <?php do_action( 'bp_after_group_details_creation_step' ); /* Deprecated -> */ do_action( 'groups_custom_group_fields_editable' ); ?>
    33 
    34                                         <?php wp_nonce_field( 'groups_create_save_group-details' ) ?>
     39                                        <label for="group-name"><?php _e('* Group Name', 'buddypress'); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
     40                                        <input type="text" name="group-name" id="group-name" value="<?php bp_new_group_name(); ?>" />
     41
     42                                        <label for="group-desc"><?php _e('* Group Description', 'buddypress') ?> <?php _e( '(required)', 'buddypress' ); ?></label>
     43                                        <textarea name="group-desc" id="group-desc"><?php bp_new_group_description(); ?></textarea>
     44
     45                                        <?php
     46                                        do_action( 'bp_after_group_details_creation_step' );
     47                                        do_action( 'groups_custom_group_fields_editable' ); // @Deprecated
     48
     49                                        wp_nonce_field( 'groups_create_save_group-details' ); ?>
    3550
    3651                                <?php endif; ?>
     
    4358                                        <?php if ( bp_is_active( 'forums' ) ) : ?>
    4459                                                <?php if ( bp_forums_is_installed_correctly() ) : ?>
     60
    4561                                                        <div class="checkbox">
    46                                                                 <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php if ( bp_get_new_group_enable_forum() ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable discussion forum', 'buddypress') ?></label>
     62                                                                <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php checked( bp_get_new_group_enable_forum(), true, true ); ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ); ?></label>
    4763                                                        </div>
     64
    4865                                                <?php else : ?>
    4966                                                        <?php if ( is_super_admin() ) : ?>
     67
    5068                                                                <div class="checkbox">
    51                                                                         <label><input type="checkbox" disabled="disabled" name="disabled" id="disabled" value="0" /> <?php printf( __('<strong>Attention Site Admin:</strong> Group forums require the <a href="%s">correct setup and configuration</a> of a bbPress installation.', 'buddypress' ), bp_get_root_domain() . '/wp-admin/admin.php?page=bb-forums-setup' ) ?></label>
     69                                                                        <label><input type="checkbox" disabled="disabled" name="disabled" id="disabled" value="0" /> <?php printf( __( '<strong>Attention Site Admin:</strong> Group forums require the <a href="%s">correct setup and configuration</a> of a bbPress installation.', 'buddypress' ), bp_get_root_domain() . '/wp-admin/admin.php?page=bb-forums-setup' ); ?></label>
    5270                                                                </div>
     71
    5372                                                        <?php endif; ?>
    5473                                                <?php endif; ?>
     
    6180                                        <div class="radio">
    6281                                                <label><input type="radio" name="group-status" value="public"<?php if ( 'public' == bp_get_new_group_status() || !bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    63                                                         <strong><?php _e( 'This is a public group', 'buddypress' ) ?></strong>
     82                                                        <strong><?php _e( 'This is a public group', 'buddypress' ); ?></strong>
    6483                                                        <ul>
    65                                                                 <li><?php _e( 'Any site member can join this group.', 'buddypress' ) ?></li>
    66                                                                 <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ) ?></li>
    67                                                                 <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ) ?></li>
     84                                                                <li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>
     85                                                                <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
     86                                                                <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
    6887                                                        </ul>
    6988                                                </label>
    7089
    7190                                                <label><input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    72                                                         <strong><?php _e( 'This is a private group', 'buddypress' ) ?></strong>
     91                                                        <strong><?php _e( 'This is a private group', 'buddypress' ); ?></strong>
    7392                                                        <ul>
    74                                                                 <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ) ?></li>
    75                                                                 <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ) ?></li>
    76                                                                 <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ) ?></li>
     93                                                                <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>
     94                                                                <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
     95                                                                <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    7796                                                        </ul>
    7897                                                </label>
    7998
    8099                                                <label><input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    81                                                         <strong><?php _e('This is a hidden group', 'buddypress') ?></strong>
     100                                                        <strong><?php _e('This is a hidden group', 'buddypress'); ?></strong>
    82101                                                        <ul>
    83                                                                 <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ) ?></li>
    84                                                                 <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ) ?></li>
    85                                                                 <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ) ?></li>
     102                                                                <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
     103                                                                <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
     104                                                                <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    86105                                                        </ul>
    87106                                                </label>
     
    90109                                        <?php do_action( 'bp_after_group_settings_creation_step' ); ?>
    91110
    92                                         <?php wp_nonce_field( 'groups_create_save_group-settings' ) ?>
     111                                        <?php wp_nonce_field( 'groups_create_save_group-settings' ); ?>
    93112
    94113                                <?php endif; ?>
     
    102121
    103122                                                <div class="left-menu">
    104                                                         <?php bp_new_group_avatar() ?>
     123
     124                                                        <?php bp_new_group_avatar(); ?>
     125
    105126                                                </div><!-- .left-menu -->
    106127
    107128                                                <div class="main-column">
    108                                                         <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress') ?></p>
     129                                                        <p><?php _e( "Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p>
    109130
    110131                                                        <p>
    111132                                                                <input type="file" name="file" id="file" />
    112                                                                 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" />
     133                                                                <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ); ?>" />
    113134                                                                <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    114135                                                        </p>
    115136
    116                                                         <p><?php _e( 'To skip the avatar upload process, hit the "Next Step" button.', 'buddypress' ) ?></p>
     137                                                        <p><?php _e( 'To skip the avatar upload process, hit the "Next Step" button.', 'buddypress' ); ?></p>
    117138                                                </div><!-- .main-column -->
    118139
     
    121142                                        <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    122143
    123                                                 <h3><?php _e( 'Crop Group Avatar', 'buddypress' ) ?></h3>
    124 
    125                                                 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" />
     144                                                <h3><?php _e( 'Crop Group Avatar', 'buddypress' ); ?></h3>
     145
     146                                                <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ); ?>" />
    126147
    127148                                                <div id="avatar-crop-pane">
    128                                                         <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" />
     149                                                        <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ); ?>" />
    129150                                                </div>
    130151
    131                                                 <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" />
    132 
    133                                                 <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" />
     152                                                <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ); ?>" />
     153
     154                                                <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src(); ?>" />
    134155                                                <input type="hidden" name="upload" id="upload" />
    135156                                                <input type="hidden" id="x" name="x" />
     
    142163                                        <?php do_action( 'bp_after_group_avatar_creation_step' ); ?>
    143164
    144                                         <?php wp_nonce_field( 'groups_create_save_group-avatar' ) ?>
     165                                        <?php wp_nonce_field( 'groups_create_save_group-avatar' ); ?>
    145166
    146167                                <?php endif; ?>
     
    152173
    153174                                        <?php if ( bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
     175
    154176                                                <div class="left-menu">
    155177
    156178                                                        <div id="invite-list">
    157179                                                                <ul>
    158                                                                         <?php bp_new_group_invite_friend_list() ?>
     180                                                                        <?php bp_new_group_invite_friend_list(); ?>
    159181                                                                </ul>
    160182
    161                                                                 <?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ) ?>
     183                                                                <?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ); ?>
    162184                                                        </div>
    163185
     
    172194                                                        <?php /* The ID 'friend-list' is important for AJAX support. */ ?>
    173195                                                        <ul id="friend-list" class="item-list" role="main">
     196
    174197                                                        <?php if ( bp_group_has_invites() ) : ?>
    175198
    176199                                                                <?php while ( bp_group_invites() ) : bp_group_the_invite(); ?>
    177200
    178                                                                         <li id="<?php bp_group_invite_item_id() ?>">
    179                                                                                 <?php bp_group_invite_user_avatar() ?>
    180 
    181                                                                                 <h4><?php bp_group_invite_user_link() ?></h4>
    182                                                                                 <span class="activity"><?php bp_group_invite_user_last_active() ?></span>
     201                                                                        <li id="<?php bp_group_invite_item_id(); ?>">
     202
     203                                                                                <?php bp_group_invite_user_avatar(); ?>
     204
     205                                                                                <h4><?php bp_group_invite_user_link(); ?></h4>
     206                                                                                <span class="activity"><?php bp_group_invite_user_last_active(); ?></span>
    183207
    184208                                                                                <div class="action">
    185                                                                                         <a class="remove" href="<?php bp_group_invite_user_remove_invite_url() ?>" id="<?php bp_group_invite_item_id() ?>"><?php _e( 'Remove Invite', 'buddypress' ) ?></a>
     209                                                                                        <a class="remove" href="<?php bp_group_invite_user_remove_invite_url(); ?>" id="<?php bp_group_invite_item_id(); ?>"><?php _e( 'Remove Invite', 'buddypress' ); ?></a>
    186210                                                                                </div>
    187211                                                                        </li>
     
    189213                                                                <?php endwhile; ?>
    190214
    191                                                                 <?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ) ?>
     215                                                                <?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ); ?>
     216
    192217                                                        <?php endif; ?>
     218
    193219                                                        </ul>
    194220
     
    203229                                        <?php endif; ?>
    204230
    205                                         <?php wp_nonce_field( 'groups_create_save_group-invites' ) ?>
     231                                        <?php wp_nonce_field( 'groups_create_save_group-invites' ); ?>
     232
    206233                                        <?php do_action( 'bp_after_group_invites_creation_step' ); ?>
    207234
    208235                                <?php endif; ?>
    209236
    210                                 <?php do_action( 'groups_custom_create_steps' ) // Allow plugins to add custom group creation steps ?>
     237                                <?php do_action( 'groups_custom_create_steps' ); // Allow plugins to add custom group creation steps ?>
    211238
    212239                                <?php do_action( 'bp_before_group_creation_step_buttons' ); ?>
    213240
    214241                                <?php if ( 'crop-image' != bp_get_avatar_admin_step() ) : ?>
     242
    215243                                        <div class="submit" id="previous-next">
     244
    216245                                                <?php /* Previous Button */ ?>
    217246                                                <?php if ( !bp_is_first_group_creation_step() ) : ?>
    218                                                         <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() ?>'" />
     247
     248                                                        <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(); ?>'" />
     249
    219250                                                <?php endif; ?>
    220251
    221252                                                <?php /* Next Button */ ?>
    222253                                                <?php if ( !bp_is_last_group_creation_step() && !bp_is_first_group_creation_step() ) : ?>
    223                                                         <input type="submit" value="<?php _e('Next Step', 'buddypress') ?> &rarr;" id="group-creation-next" name="save" />
     254
     255                                                        <input type="submit" value="<?php _e( 'Next Step', 'buddypress' ); ?> &rarr;" id="group-creation-next" name="save" />
     256
    224257                                                <?php endif;?>
    225258
    226259                                                <?php /* Create Button */ ?>
    227260                                                <?php if ( bp_is_first_group_creation_step() ) : ?>
    228                                                         <input type="submit" value="<?php _e('Create Group and Continue', 'buddypress') ?> &rarr;" id="group-creation-create" name="save" />
     261
     262                                                        <input type="submit" value="<?php _e( 'Create Group and Continue', 'buddypress' ); ?> &rarr;" id="group-creation-create" name="save" />
     263
    229264                                                <?php endif; ?>
    230265
    231266                                                <?php /* Finish Button */ ?>
    232267                                                <?php if ( bp_is_last_group_creation_step() ) : ?>
    233                                                         <input type="submit" value="<?php _e('Finish', 'buddypress') ?> &rarr;" id="group-creation-finish" name="save" />
     268
     269                                                        <input type="submit" value="<?php _e( 'Finish', 'buddypress' ); ?> &rarr;" id="group-creation-finish" name="save" />
     270
    234271                                                <?php endif; ?>
    235272                                        </div>
     273
    236274                                <?php endif;?>
    237275
     
    239277
    240278                                <?php /* Don't leave out this hidden field */ ?>
    241                                 <input type="hidden" name="group_id" id="group_id" value="<?php bp_new_group_id() ?>" />
    242 
    243                                 <?php do_action( 'bp_directory_groups_content' ) ?>
     279                                <input type="hidden" name="group_id" id="group_id" value="<?php bp_new_group_id(); ?>" />
     280
     281                                <?php do_action( 'bp_directory_groups_content' ); ?>
    244282
    245283                        </div><!-- .item-body -->
    246284
    247                         <?php do_action( 'bp_after_create_group' ) ?>
     285                        <?php do_action( 'bp_after_create_group' ); ?>
    248286
    249287                </form>
     
    252290        </div><!-- #content -->
    253291
    254         <?php get_sidebar() ?>
    255 
    256 <?php get_footer() ?>
     292<?php get_sidebar(); ?>
     293<?php get_footer(); ?>
  • trunk/bp-themes/bp-default/groups/groups-loop.php

    r3771 r3810  
    1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() */ ?>
     1<?php
    22
    3 <?php do_action( 'bp_before_groups_loop' ) ?>
     3/**
     4 * BuddyPress - Groups Loop
     5 *
     6 * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter()
     7 *
     8 * @package BuddyPress
     9 * @subpackage bp-default
     10 */
     11
     12?>
     13
     14<?php do_action( 'bp_before_groups_loop' ); ?>
    415
    516<?php if ( bp_has_groups( bp_ajax_querystring( 'groups' ) ) ) : ?>
     
    819
    920                <div class="pag-count" id="group-dir-count-top">
    10                         <?php bp_groups_pagination_count() ?>
     21
     22                        <?php bp_groups_pagination_count(); ?>
     23
    1124                </div>
    1225
    1326                <div class="pagination-links" id="group-dir-pag-top">
    14                         <?php bp_groups_pagination_links() ?>
     27
     28                        <?php bp_groups_pagination_links(); ?>
     29
    1530                </div>
    1631
    1732        </div>
    1833
    19         <?php do_action( 'bp_before_directory_groups_list' ) ?>
     34        <?php do_action( 'bp_before_directory_groups_list' ); ?>
    2035
    2136        <ul id="groups-list" class="item-list" role="main">
     37
    2238        <?php while ( bp_groups() ) : bp_the_group(); ?>
    2339
    2440                <li>
    2541                        <div class="item-avatar">
    26                                 <a href="<?php bp_group_permalink() ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ) ?></a>
     42                                <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a>
    2743                        </div>
    2844
    2945                        <div class="item">
    30                                 <div class="item-title"><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></div>
    31                                 <div class="item-meta"><span class="activity"><?php printf( __( 'active %s ago', 'buddypress' ), bp_get_group_last_active() ) ?></span></div>
     46                                <div class="item-title"><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a></div>
     47                                <div class="item-meta"><span class="activity"><?php printf( __( 'active %s ago', 'buddypress' ), bp_get_group_last_active() ); ?></span></div>
    3248
    33                                 <div class="item-desc"><?php bp_group_description_excerpt() ?></div>
     49                                <div class="item-desc"><?php bp_group_description_excerpt(); ?></div>
    3450
    35                                 <?php do_action( 'bp_directory_groups_item' ) ?>
     51                                <?php do_action( 'bp_directory_groups_item' ); ?>
    3652
    3753                        </div>
     
    3955                        <div class="action">
    4056
    41                                 <?php do_action( 'bp_directory_groups_actions' ) ?>
     57                                <?php do_action( 'bp_directory_groups_actions' ); ?>
    4258
    4359                                <div class="meta">
    4460
    45                                         <?php bp_group_type() ?> / <?php bp_group_member_count() ?>
     61                                        <?php bp_group_type(); ?> / <?php bp_group_member_count(); ?>
    4662
    4763                                </div>
     
    5369
    5470        <?php endwhile; ?>
     71
    5572        </ul>
    5673
    57         <?php do_action( 'bp_after_directory_groups_list' ) ?>
     74        <?php do_action( 'bp_after_directory_groups_list' ); ?>
    5875
    5976        <div id="pag-bottom" class="pagination">
    6077
    6178                <div class="pag-count" id="group-dir-count-bottom">
    62                         <?php bp_groups_pagination_count() ?>
     79
     80                        <?php bp_groups_pagination_count(); ?>
     81
    6382                </div>
    6483
    6584                <div class="pagination-links" id="group-dir-pag-bottom">
    66                         <?php bp_groups_pagination_links() ?>
     85
     86                        <?php bp_groups_pagination_links(); ?>
     87
    6788                </div>
    6889
     
    7293
    7394        <div id="message" class="info">
    74                 <p><?php _e( 'There were no groups found.', 'buddypress' ) ?></p>
     95                <p><?php _e( 'There were no groups found.', 'buddypress' ); ?></p>
    7596        </div>
    7697
    7798<?php endif; ?>
    7899
    79 <?php do_action( 'bp_after_groups_loop' ) ?>
     100<?php do_action( 'bp_after_groups_loop' ); ?>
  • trunk/bp-themes/bp-default/groups/index.php

    r3771 r3810  
    1 <?php get_header() ?>
     1<?php
     2
     3/**
     4 * BuddyPress - Groups Directory
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
     12<?php get_header(); ?>
     13
     14        <?php do_action( 'bp_before_directory_groups_content' ); ?>
    215
    316        <div id="content">
     
    518
    619                <form action="" method="post" id="groups-directory-form" class="dir-form">
    7                         <h3><?php _e( 'Groups Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() ) : ?> &nbsp;<a class="button" href="<?php echo bp_get_root_domain() . '/' . bp_get_root_slug() . '/create/' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a><?php endif; ?></h3>
    820
    9                         <?php do_action( 'bp_before_directory_groups_content' ) ?>
     21                        <h3><?php _e( 'Groups Directory', 'buddypress' ); ?><?php if ( is_user_logged_in() ) : ?> &nbsp;<a class="button" href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create' ); ?>"><?php _e( 'Create a Group', 'buddypress' ); ?></a><?php endif; ?></h3>
    1022
    1123                        <div id="group-dir-search" class="dir-search" role="search">
     24
    1225                                <?php bp_directory_groups_search_form() ?>
     26
    1327                        </div><!-- #group-dir-search -->
    1428
    1529                        <div class="item-list-tabs" role="navigation">
    1630                                <ul>
    17                                         <li class="selected" id="groups-all"><a href="<?php echo bp_get_root_domain() . '/' . BP_GROUPS_SLUG ?>"><?php printf( __( 'All Groups (%s)', 'buddypress' ), bp_get_total_group_count() ) ?></a></li>
     31                                        <li class="selected" id="groups-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() ); ?>"><?php printf( __( 'All Groups (%s)', 'buddypress' ), bp_get_total_group_count() ); ?></a></li>
    1832
    1933                                        <?php if ( is_user_logged_in() && bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
    20                                                 <li id="groups-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/my-groups/' ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
     34
     35                                                <li id="groups-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() . '/my-groups' ); ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
     36
    2137                                        <?php endif; ?>
    2238
    23                                         <?php do_action( 'bp_groups_directory_group_types' ) ?>
     39                                        <?php do_action( 'bp_groups_directory_group_types' ); ?>
     40
     41                                </ul>
     42                        </div><!-- .item-list-tabs -->
     43
     44                        <div class="item-list-tabs" id="subnav" role="navigation">
     45                                <ul>
     46
     47                                        <?php do_action( 'bp_groups_directory_group_types' ); ?>
    2448
    2549                                        <li id="groups-order-select" class="last filter">
    2650
    27                                                 <?php _e( 'Order By:', 'buddypress' ) ?>
     51                                                <?php _e( 'Order By:', 'buddypress' ); ?>
     52
    2853                                                <select>
    29                                                         <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
    30                                                         <option value="popular"><?php _e( 'Most Members', 'buddypress' ) ?></option>
    31                                                         <option value="newest"><?php _e( 'Newly Created', 'buddypress' ) ?></option>
    32                                                         <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>
     54                                                        <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
     55                                                        <option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option>
     56                                                        <option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option>
     57                                                        <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    3358
    34                                                         <?php do_action( 'bp_groups_directory_order_options' ) ?>
     59                                                        <?php do_action( 'bp_groups_directory_order_options' ); ?>
     60
    3561                                                </select>
    3662                                        </li>
    3763                                </ul>
    38                         </div><!-- .item-list-tabs -->
     64                        </div>
     65
     66                        <?php do_action( 'bp_before_directory_groups_list' ); ?>
    3967
    4068                        <div id="groups-dir-list" class="groups dir-list">
    41                                 <?php locate_template( array( 'groups/groups-loop.php' ), true ) ?>
     69
     70                                <?php locate_template( array( 'groups/groups-loop.php' ), true ); ?>
     71
    4272                        </div><!-- #groups-dir-list -->
    4373
    44                         <?php do_action( 'bp_directory_groups_content' ) ?>
     74                        <?php do_action( 'bp_directory_groups_content' ); ?>
    4575
    46                         <?php wp_nonce_field( 'directory_groups', '_wpnonce-groups-filter' ) ?>
     76                        <?php wp_nonce_field( 'directory_groups', '_wpnonce-groups-filter' ); ?>
    4777
    4878                </form><!-- #groups-directory-form -->
    49 
    50                 <?php do_action( 'bp_after_directory_groups_content' ) ?>
    5179
    5280                </div><!-- .padder -->
    5381        </div><!-- #content -->
    5482
    55         <?php get_sidebar() ?>
     83        <?php do_action( 'bp_after_directory_groups_content' ); ?>
    5684
    57 <?php get_footer() ?>
     85<?php get_sidebar(); ?>
     86<?php get_footer(); ?>
     87
  • trunk/bp-themes/bp-default/members/index.php

    r3790 r3810  
    1 <?php get_header() ?>
     1<?php
     2
     3/**
     4 * BuddyPress - Members Directory
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
     12<?php get_header(); ?>
     13
     14        <?php do_action( 'bp_before_directory_groups_content' ); ?>
    215
    316        <div id="content">
     
    619                <form action="" method="post" id="members-directory-form" class="dir-form">
    720
    8                         <h3><?php _e( 'Members Directory', 'buddypress' ) ?></h3>
    9 
    10                         <?php do_action( 'bp_before_directory_members_content' ) ?>
     21                        <h3><?php _e( 'Members Directory', 'buddypress' ); ?></h3>
    1122
    1223                        <div id="members-dir-search" class="dir-search" role="search">
    13                                 <?php bp_directory_members_search_form() ?>
     24
     25                                <?php bp_directory_members_search_form(); ?>
     26
    1427                        </div><!-- #members-dir-search -->
    1528
    1629                        <div class="item-list-tabs" role="navigation">
    1730                                <ul>
    18                                         <li class="selected" id="members-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_member_count() ) ?></a></li>
     31                                        <li class="selected" id="members-all"><a href="<?php bp_root_domain(); ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_member_count() ); ?></a></li>
    1932
    2033                                        <?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    21                                                 <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_FRIENDS_SLUG . '/my-friends/' ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li>
     34
     35                                                <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_FRIENDS_SLUG . '/my-friends/' ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li>
     36
    2237                                        <?php endif; ?>
    2338
    24                                         <?php do_action( 'bp_members_directory_member_types' ) ?>
     39                                        <?php do_action( 'bp_members_directory_member_types' ); ?>
     40
     41                                </ul>
     42                        </div><!-- .item-list-tabs -->
     43
     44                        <div class="item-list-tabs" id="subnav" role="navigation">
     45                                <ul>
     46
     47                                        <?php do_action( 'bp_members_directory_member_sub_types' ); ?>
    2548
    2649                                        <li id="members-order-select" class="last filter">
    2750
    28                                                 <?php _e( 'Order By:', 'buddypress' ) ?>
     51                                                <?php _e( 'Order By:', 'buddypress' ); ?>
     52
    2953                                                <select>
    30                                                         <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
    31                                                         <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ) ?></option>
     54                                                        <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
     55                                                        <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option>
    3256
    3357                                                        <?php if ( bp_is_active( 'profile' ) ) : ?>
    34                                                                 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>
     58
     59                                                                <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
     60
    3561                                                        <?php endif; ?>
    3662
    37                                                         <?php do_action( 'bp_members_directory_order_options' ) ?>
     63                                                        <?php do_action( 'bp_members_directory_order_options' ); ?>
     64
    3865                                                </select>
    3966                                        </li>
    4067                                </ul>
    41                         </div><!-- .item-list-tabs -->
     68                        </div>
     69
     70                        <?php do_action( 'bp_before_directory_members_list' ); ?>
    4271
    4372                        <div id="members-dir-list" class="members dir-list">
    44                                 <?php locate_template( array( 'members/members-loop.php' ), true ) ?>
     73
     74                                <?php locate_template( array( 'members/members-loop.php' ), true ); ?>
     75
    4576                        </div><!-- #members-dir-list -->
    4677
    47                         <?php do_action( 'bp_directory_members_content' ) ?>
     78                        <?php do_action( 'bp_directory_members_content' ); ?>
    4879
    49                         <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ) ?>
    50 
    51                         <?php do_action( 'bp_after_directory_members_content' ) ?>
     80                        <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ); ?>
    5281
    5382                </form><!-- #members-directory-form -->
     
    5685        </div><!-- #content -->
    5786
    58         <?php get_sidebar() ?>
     87        <?php do_action( 'bp_after_directory_members_content' ); ?>
    5988
    60 <?php get_footer() ?>
     89<?php get_sidebar(); ?>
     90<?php get_footer(); ?>
  • trunk/bp-themes/bp-default/members/members-loop.php

    r3771 r3810  
    1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() */ ?>
     1<?php
    22
    3 <?php do_action( 'bp_before_members_loop' ) ?>
     3/**
     4 * BuddyPress - Members Loop
     5 *
     6 * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter()
     7 *
     8 * @package BuddyPress
     9 * @subpackage bp-default
     10 */
     11
     12?>
     13
     14<?php do_action( 'bp_before_members_loop' ); ?>
    415
    516<?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
     
    819
    920                <div class="pag-count" id="member-dir-count-top">
    10                         <?php bp_members_pagination_count() ?>
     21
     22                        <?php bp_members_pagination_count(); ?>
     23
    1124                </div>
    1225
    1326                <div class="pagination-links" id="member-dir-pag-top">
    14                         <?php bp_members_pagination_links() ?>
     27
     28                        <?php bp_members_pagination_links(); ?>
     29
    1530                </div>
    1631
    1732        </div>
    1833
    19         <?php do_action( 'bp_before_directory_members_list' ) ?>
     34        <?php do_action( 'bp_before_directory_members_list' ); ?>
    2035
    2136        <ul id="members-list" class="item-list" role="main">
     37
    2238        <?php while ( bp_members() ) : bp_the_member(); ?>
    2339
    2440                <li>
    2541                        <div class="item-avatar">
    26                                 <a href="<?php bp_member_permalink() ?>"><?php bp_member_avatar() ?></a>
     42                                <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
    2743                        </div>
    2844
    2945                        <div class="item">
    3046                                <div class="item-title">
    31                                         <a href="<?php bp_member_permalink() ?>"><?php bp_member_name() ?></a>
     47                                        <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
    3248
    3349                                        <?php if ( bp_get_member_latest_update() ) : ?>
    3450
    35                                                 <span class="update"> - <?php bp_member_latest_update( 'length=10' ) ?></span>
     51                                                <span class="update"> - <?php bp_member_latest_update( 'length=10' ); ?></span>
    3652
    3753                                        <?php endif; ?>
     
    3955                                </div>
    4056
    41                                 <div class="item-meta"><span class="activity"><?php bp_member_last_active() ?></span></div>
     57                                <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
    4258
    43                                 <?php do_action( 'bp_directory_members_item' ) ?>
     59                                <?php do_action( 'bp_directory_members_item' ); ?>
    4460
    4561                                <?php
     
    6480
    6581        <?php endwhile; ?>
     82
    6683        </ul>
    6784
    68         <?php do_action( 'bp_after_directory_members_list' ) ?>
     85        <?php do_action( 'bp_after_directory_members_list' ); ?>
    6986
    70         <?php bp_member_hidden_fields() ?>
     87        <?php bp_member_hidden_fields(); ?>
    7188
    7289        <div id="pag-bottom" class="pagination">
    7390
    7491                <div class="pag-count" id="member-dir-count-bottom">
    75                         <?php bp_members_pagination_count() ?>
     92
     93                        <?php bp_members_pagination_count(); ?>
     94
    7695                </div>
    7796
    7897                <div class="pagination-links" id="member-dir-pag-bottom">
    79                         <?php bp_members_pagination_links() ?>
     98
     99                        <?php bp_members_pagination_links(); ?>
     100
    80101                </div>
    81102
     
    85106
    86107        <div id="message" class="info">
    87                 <p><?php _e( "Sorry, no members were found.", 'buddypress' ) ?></p>
     108                <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
    88109        </div>
    89110
    90111<?php endif; ?>
    91112
    92 <?php do_action( 'bp_after_members_loop' ) ?>
     113<?php do_action( 'bp_after_members_loop' ); ?>
  • trunk/bp-themes/bp-default/members/single/activity.php

    r3808 r3810  
     1<?php
     2
     3/**
     4 * BuddyPress - Users Activity
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
    112<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    213        <ul>
  • trunk/bp-themes/bp-default/members/single/blogs.php

    r3808 r3810  
     1<?php
     2
     3/**
     4 * BuddyPress - Users Blogs
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
    112<div class="item-list-tabs" id="subnav" role="navigation">
    213        <ul>
  • trunk/bp-themes/bp-default/members/single/friends.php

    r3808 r3810  
     1<?php
     2
     3/**
     4 * BuddyPress - Users Friends
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
    112<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    213        <ul>
  • trunk/bp-themes/bp-default/members/single/groups.php

    r3808 r3810  
     1<?php
     2
     3/**
     4 * BuddyPress - Users Groups
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
    112<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    213        <ul>
  • trunk/bp-themes/bp-default/members/single/home.php

    r3808 r3810  
     1<?php
     2
     3/**
     4 * BuddyPress - Users Home
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
    112<?php get_header(); ?>
    213
  • trunk/bp-themes/bp-default/members/single/member-header.php

    r3808 r3810  
     1<?php
     2
     3/**
     4 * BuddyPress - Users Header
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
    112<?php do_action( 'bp_before_member_header' ); ?>
    213
  • trunk/bp-themes/bp-default/members/single/messages.php

    r3808 r3810  
     1<?php
     2
     3/**
     4 * BuddyPress - Users Messages
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
    112<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    213        <ul>
  • trunk/bp-themes/bp-default/members/single/plugins.php

    r3808 r3810  
     1<?php
     2
     3/**
     4 * BuddyPress - Users Plugins
     5 *
     6 * This is a fallback file that external plugins can use if the template they
     7 * need is not installed in the current theme. Use the actions in this template
     8 * to output everything your plugin needs.
     9 *
     10 * @package BuddyPress
     11 * @subpackage bp-default
     12 */
     13
     14?>
     15
    116<?php get_header(); ?>
    217
  • trunk/bp-themes/bp-default/members/single/profile.php

    r3808 r3810  
     1<?php
     2
     3/**
     4 * BuddyPress - Users Profile
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
    112<?php if ( bp_is_my_profile() ) : ?>
    213
     
    1627
    1728        <?php
     29                // Profile Edit
    1830                if ( bp_is_current_action( 'edit' ) )
    1931                        locate_template( array( 'members/single/profile/edit.php' ), true );
     32
     33                // Change Avatar
    2034                elseif ( bp_is_current_action( 'change-avatar' ) )
    2135                        locate_template( array( 'members/single/profile/change-avatar.php' ), true );
     36
     37                // Display XProfile
    2238                elseif ( bp_is_active( 'profile' ) )
    2339                        locate_template( array( 'members/single/profile/profile-loop.php' ), true );
     40
     41                // Display WordPress profile (fallback)
    2442                else
    2543                        locate_template( array( 'members/single/profile/profile-wp.php' ), true );
Note: See TracChangeset for help on using the changeset viewer.