BuddyPress - Version 3.1.0

Version Description

See: https://codex.buddypress.org/releases/version-3-1-0/

=

Download this release

Release Info

Developer DJPaul
Plugin Icon 128x128 BuddyPress
Version 3.1.0
Comparing to
See all releases

Code changes from version 3.0.0 to 3.1.0

Files changed (98) hide show
  1. bp-activity/bp-activity-functions.php +24 -15
  2. bp-activity/classes/class-bp-activity-activity.php +16 -4
  3. bp-core/bp-core-functions.php +13 -4
  4. bp-core/classes/class-bp-admin.php +18 -0
  5. bp-core/classes/class-bp-core-login-widget.php +1 -1
  6. bp-groups/actions/create.php +6 -4
  7. bp-groups/bp-groups-activity.php +1 -26
  8. bp-groups/bp-groups-functions.php +32 -5
  9. bp-groups/screens/user/invites.php +6 -4
  10. bp-loader.php +1 -1
  11. bp-members/screens/register.php +6 -1
  12. bp-messages/bp-messages-functions.php +6 -0
  13. bp-templates/bp-legacy/buddypress-functions.php +2 -2
  14. bp-templates/bp-legacy/buddypress/groups/single/request-membership.php +15 -8
  15. bp-templates/bp-nouveau/buddypress-functions.php +1 -1
  16. bp-templates/bp-nouveau/buddypress/activity/activity-loop.php +2 -2
  17. bp-templates/bp-nouveau/buddypress/activity/comment-form.php +12 -5
  18. bp-templates/bp-nouveau/buddypress/activity/post-form.php +7 -9
  19. bp-templates/bp-nouveau/buddypress/assets/_attachments/avatars/camera.php +3 -3
  20. bp-templates/bp-nouveau/buddypress/assets/_attachments/avatars/crop.php +2 -2
  21. bp-templates/bp-nouveau/buddypress/assets/_attachments/avatars/index.php +2 -2
  22. bp-templates/bp-nouveau/buddypress/assets/_attachments/cover-images/index.php +13 -5
  23. bp-templates/bp-nouveau/buddypress/assets/_attachments/uploader.php +8 -3
  24. bp-templates/bp-nouveau/buddypress/assets/emails/single-bp-email.php +2 -2
  25. bp-templates/bp-nouveau/buddypress/common/js-templates/activity/form.php +2 -2
  26. bp-templates/bp-nouveau/buddypress/common/js-templates/invites/index.php +16 -16
  27. bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php +55 -27
  28. bp-templates/bp-nouveau/buddypress/common/notices/template-notices.php +2 -2
  29. bp-templates/bp-nouveau/buddypress/common/search-and-filters-bar.php +2 -2
  30. bp-templates/bp-nouveau/buddypress/common/search/search-form.php +2 -2
  31. bp-templates/bp-nouveau/buddypress/groups/create.php +3 -2
  32. bp-templates/bp-nouveau/buddypress/groups/groups-loop.php +10 -2
  33. bp-templates/bp-nouveau/buddypress/groups/single/activity.php +2 -2
  34. bp-templates/bp-nouveau/buddypress/groups/single/admin/delete-group.php +3 -3
  35. bp-templates/bp-nouveau/buddypress/groups/single/admin/edit-details.php +6 -6
  36. bp-templates/bp-nouveau/buddypress/groups/single/admin/group-avatar.php +8 -8
  37. bp-templates/bp-nouveau/buddypress/groups/single/admin/group-cover-image.php +2 -2
  38. bp-templates/bp-nouveau/buddypress/groups/single/admin/group-settings.php +25 -23
  39. bp-templates/bp-nouveau/buddypress/groups/single/admin/manage-members.php +16 -9
  40. bp-templates/bp-nouveau/buddypress/groups/single/cover-image-header.php +16 -13
  41. bp-templates/bp-nouveau/buddypress/groups/single/group-header.php +12 -2
  42. bp-templates/bp-nouveau/buddypress/groups/single/parts/header-item-actions.php +4 -4
  43. bp-templates/bp-nouveau/buddypress/groups/single/request-membership.php +14 -4
  44. bp-templates/bp-nouveau/buddypress/members/activate.php +16 -6
  45. bp-templates/bp-nouveau/buddypress/members/register.php +5 -5
  46. bp-templates/bp-nouveau/buddypress/members/single/default-front.php +2 -2
  47. bp-templates/bp-nouveau/buddypress/members/single/groups/invites.php +15 -2
  48. bp-templates/bp-nouveau/buddypress/members/single/notifications/notifications-loop.php +6 -6
  49. bp-templates/bp-nouveau/buddypress/members/single/parts/item-nav.php +2 -2
  50. bp-templates/bp-nouveau/buddypress/members/single/parts/profile-visibility.php +6 -5
  51. bp-templates/bp-nouveau/buddypress/members/single/profile/change-avatar.php +9 -9
  52. bp-templates/bp-nouveau/buddypress/members/single/profile/change-cover-image.php +3 -3
  53. bp-templates/bp-nouveau/buddypress/members/single/profile/edit.php +10 -2
  54. bp-templates/bp-nouveau/buddypress/members/single/profile/profile-loop.php +2 -2
  55. bp-templates/bp-nouveau/buddypress/members/single/profile/profile-wp.php +2 -2
  56. bp-templates/bp-nouveau/buddypress/members/single/settings/capabilities.php +3 -3
  57. bp-templates/bp-nouveau/buddypress/members/single/settings/delete-account.php +3 -3
  58. bp-templates/bp-nouveau/buddypress/members/single/settings/general.php +5 -5
  59. bp-templates/bp-nouveau/buddypress/members/single/settings/profile.php +4 -4
  60. bp-templates/bp-nouveau/includes/activity/ajax.php +4 -4
  61. bp-templates/bp-nouveau/includes/activity/functions.php +9 -3
  62. bp-templates/bp-nouveau/includes/activity/template-tags.php +14 -21
  63. bp-templates/bp-nouveau/includes/activity/widgets.php +3 -3
  64. bp-templates/bp-nouveau/includes/blogs/functions.php +2 -2
  65. bp-templates/bp-nouveau/includes/classes.php +2 -7
  66. bp-templates/bp-nouveau/includes/customizer-controls.php +4 -4
  67. bp-templates/bp-nouveau/includes/customizer.php +7 -7
  68. bp-templates/bp-nouveau/includes/functions.php +23 -13
  69. bp-templates/bp-nouveau/includes/groups/ajax.php +30 -20
  70. bp-templates/bp-nouveau/includes/groups/functions.php +22 -23
  71. bp-templates/bp-nouveau/includes/members/functions.php +2 -2
  72. bp-templates/bp-nouveau/includes/members/template-tags.php +3 -3
  73. bp-templates/bp-nouveau/includes/messages/ajax.php +95 -20
  74. bp-templates/bp-nouveau/includes/messages/functions.php +49 -23
  75. bp-templates/bp-nouveau/includes/notifications/functions.php +25 -10
  76. bp-templates/bp-nouveau/includes/notifications/template-tags.php +8 -9
  77. bp-templates/bp-nouveau/includes/template-tags.php +29 -16
  78. bp-templates/bp-nouveau/js/buddypress-activity-post-form.js +3 -3
  79. bp-templates/bp-nouveau/js/buddypress-activity-post-form.min.js +1 -1
  80. bp-templates/bp-nouveau/js/buddypress-activity.js +2 -2
  81. bp-templates/bp-nouveau/js/buddypress-activity.min.js +1 -1
  82. bp-templates/bp-nouveau/js/buddypress-messages.js +73 -28
  83. bp-templates/bp-nouveau/js/buddypress-messages.min.js +1 -1
  84. bp-themes/bp-default/registration/activate.php +2 -2
  85. buddypress.pot +652 -504
  86. class-buddypress.php +1 -1
  87. cli/.travis.yml +2 -3
  88. cli/components/activity.php +4 -2
  89. cli/components/buddypress.php +48 -0
  90. cli/components/component.php +99 -11
  91. cli/components/group-invite.php +3 -1
  92. cli/components/tool.php +12 -0
  93. cli/components/xprofile.php +48 -0
  94. cli/composer.lock +3279 -0
  95. cli/features/component.feature +3 -3
  96. cli/readme.md +8 -0
  97. cli/wp-cli-bp.php +22 -0
  98. readme.txt +5 -5
bp-activity/bp-activity-functions.php CHANGED
@@ -3107,33 +3107,42 @@ function bp_activity_get_permalink( $activity_id, $activity_obj = false ) {
3107
* @return boolean True on success, false on failure.
3108
*/
3109
function bp_activity_user_can_read( $activity, $user_id = 0 ) {
3110
- $retval = false;
3111
3112
// Fallback.
3113
if ( empty( $user_id ) ) {
3114
$user_id = bp_loggedin_user_id();
3115
}
3116
3117
- // Admins and moderators can see everything.
3118
- if ( bp_current_user_can( 'bp_moderate' ) ) {
3119
- $retval = true;
3120
- }
3121
-
3122
- // If activity author match user, allow access as well.
3123
- if ( $user_id === $activity->user_id ) {
3124
- $retval = true;
3125
- }
3126
-
3127
- // If activity is from a group, do an extra cap check.
3128
- if ( ! $retval && bp_is_active( 'groups' ) && $activity->component === buddypress()->groups->id ) {
3129
-
3130
// Check to see if the user has access to the activity's parent group.
3131
$group = groups_get_group( $activity->item_id );
3132
if ( $group ) {
3133
- $retval = $group->user_has_access;
3134
}
3135
}
3136
3137
/**
3138
* Filters whether the current user has access to an activity item.
3139
*
3107
* @return boolean True on success, false on failure.
3108
*/
3109
function bp_activity_user_can_read( $activity, $user_id = 0 ) {
3110
+ $retval = true;
3111
3112
// Fallback.
3113
if ( empty( $user_id ) ) {
3114
$user_id = bp_loggedin_user_id();
3115
}
3116
3117
+ // If activity is from a group, do extra cap checks.
3118
+ if ( bp_is_active( 'groups' ) && buddypress()->groups->id === $activity->component ) {
3119
// Check to see if the user has access to the activity's parent group.
3120
$group = groups_get_group( $activity->item_id );
3121
if ( $group ) {
3122
+ // For logged-in user, we can check against the 'user_has_access' prop.
3123
+ if ( bp_loggedin_user_id() === $user_id ) {
3124
+ $retval = $group->user_has_access;
3125
+
3126
+ // Manually check status.
3127
+ } elseif ( 'private' === $group->status || 'hidden' === $group->status ) {
3128
+ // Only group members that are not banned can view.
3129
+ if ( ! groups_is_user_member( $user_id, $activity->item_id ) || groups_is_user_banned( $user_id, $activity->item_id ) ) {
3130
+ $retval = false;
3131
+ }
3132
+ }
3133
}
3134
}
3135
3136
+ // Spammed items are not visible to the public.
3137
+ if ( $activity->is_spam ) {
3138
+ $retval = false;
3139
+ }
3140
+
3141
+ // Site moderators can view anything.
3142
+ if ( bp_current_user_can( 'bp_moderate' ) ) {
3143
+ $retval = true;
3144
+ }
3145
+
3146
/**
3147
* Filters whether the current user has access to an activity item.
3148
*
bp-activity/classes/class-bp-activity-activity.php CHANGED
@@ -613,12 +613,12 @@ class BP_Activity_Activity {
613
$from_sql = " FROM {$bp->activity->table_name} a LEFT JOIN {$wpdb->users} u ON a.user_id = u.ID";
614
615
if ( ! empty( $page ) && ! empty( $per_page ) ) {
616
- $pag_sql = $wpdb->prepare( "LIMIT %d, %d", absint( ( $page - 1 ) * $per_page ), $per_page );
617
618
/** This filter is documented in bp-activity/bp-activity-classes.php */
619
- $activities = $wpdb->get_results( apply_filters( 'bp_activity_get_user_join_filter', "{$select_sql} {$from_sql} {$join_sql} {$where_sql} ORDER BY a.date_recorded {$sort}, a.id {$sort} {$pag_sql}", $select_sql, $from_sql, $where_sql, $sort, $pag_sql ) );
620
} else {
621
- $pag_sql = '';
622
623
/**
624
* Filters the legacy MySQL query statement so plugins can alter before results are fetched.
@@ -631,9 +631,21 @@ class BP_Activity_Activity {
631
* @param string $where_sql Final WHERE MySQL statement portion for legacy query.
632
* @param string $sort Final sort direction for legacy query.
633
*/
634
- $activities = $wpdb->get_results( apply_filters( 'bp_activity_get_user_join_filter', "{$select_sql} {$from_sql} {$join_sql} {$where_sql} ORDER BY a.date_recorded {$sort}, a.id {$sort}", $select_sql, $from_sql, $where_sql, $sort, $pag_sql ) );
635
}
636
637
// Integer casting for legacy activity query.
638
foreach ( (array) $activities as $i => $ac ) {
639
$activities[ $i ]->id = (int) $ac->id;
613
$from_sql = " FROM {$bp->activity->table_name} a LEFT JOIN {$wpdb->users} u ON a.user_id = u.ID";
614
615
if ( ! empty( $page ) && ! empty( $per_page ) ) {
616
+ $pag_sql = $wpdb->prepare( "LIMIT %d, %d", absint( ( $page - 1 ) * $per_page ), $per_page );
617
618
/** This filter is documented in bp-activity/bp-activity-classes.php */
619
+ $activity_sql = apply_filters( 'bp_activity_get_user_join_filter', "{$select_sql} {$from_sql} {$join_sql} {$where_sql} ORDER BY a.date_recorded {$sort}, a.id {$sort} {$pag_sql}", $select_sql, $from_sql, $where_sql, $sort, $pag_sql );
620
} else {
621
+ $pag_sql = '';
622
623
/**
624
* Filters the legacy MySQL query statement so plugins can alter before results are fetched.
631
* @param string $where_sql Final WHERE MySQL statement portion for legacy query.
632
* @param string $sort Final sort direction for legacy query.
633
*/
634
+ $activity_sql = apply_filters( 'bp_activity_get_user_join_filter', "{$select_sql} {$from_sql} {$join_sql} {$where_sql} ORDER BY a.date_recorded {$sort}, a.id {$sort}", $select_sql, $from_sql, $where_sql, $sort, $pag_sql );
635
}
636
637
+ /*
638
+ * Queries that include 'last_activity' are cached separately,
639
+ * since they are generally much less long-lived.
640
+ */
641
+ if ( preg_match( '/a\.type NOT IN \([^\)]*\'last_activity\'[^\)]*\)/', $activity_sql ) ) {
642
+ $cache_group = 'bp_activity';
643
+ } else {
644
+ $cache_group = 'bp_activity_with_last_activity';
645
+ }
646
+
647
+ $activities = $wpdb->get_results( $activity_sql );
648
+
649
// Integer casting for legacy activity query.
650
foreach ( (array) $activities as $i => $ac ) {
651
$activities[ $i ]->id = (int) $ac->id;
bp-core/bp-core-functions.php CHANGED
@@ -3387,10 +3387,7 @@ function bp_email_get_schema() {
3387
/* translators: do not remove {} brackets or translate its contents. */
3388
'post_content' => __( "Thanks for registering!\n\nTo complete the activation of your account, go to the following link: <a href=\"{{{activate.url}}}\">{{{activate.url}}}</a>", 'buddypress' ),
3389
/* translators: do not remove {} brackets or translate its contents. */
3390
- 'post_excerpt' => __( "Thanks for registering!\n\nTo complete the activation of your account, go to the following link: {{{activate.url}}}", 'buddypress' ),
3391
- 'args' => array(
3392
- 'multisite' => true,
3393
- ),
3394
),
3395
'core-user-registration-with-blog' => array(
3396
/* translators: do not remove {} brackets or translate its contents. */
@@ -3840,3 +3837,15 @@ function bp_get_allowedtags() {
3840
'li' => array(),
3841
) );
3842
}
3387
/* translators: do not remove {} brackets or translate its contents. */
3388
'post_content' => __( "Thanks for registering!\n\nTo complete the activation of your account, go to the following link: <a href=\"{{{activate.url}}}\">{{{activate.url}}}</a>", 'buddypress' ),
3389
/* translators: do not remove {} brackets or translate its contents. */
3390
+ 'post_excerpt' => __( "Thanks for registering!\n\nTo complete the activation of your account, go to the following link: {{{activate.url}}}", 'buddypress' )
3391
),
3392
'core-user-registration-with-blog' => array(
3393
/* translators: do not remove {} brackets or translate its contents. */
3837
'li' => array(),
3838
) );
3839
}
3840
+
3841
+ /**
3842
+ * Remove script and style tags from a string.
3843
+ *
3844
+ * @since 3.0.1
3845
+ *
3846
+ * @param string $string The string to strip tags from.
3847
+ * @return string The stripped tags string.
3848
+ */
3849
+ function bp_strip_script_and_style_tags( $string ) {
3850
+ return preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $string );
3851
+ }
bp-core/classes/class-bp-admin.php CHANGED
@@ -571,6 +571,24 @@ class BP_Admin {
571
</div>
572
573
<div class="bp-hello-content">
574
<h2><?php esc_html_e( __( 'Say hello to &ldquo;Nouveau&rdquo;!', 'buddypress' ) ); ?></h2>
575
<p>
576
<?php
571
</div>
572
573
<div class="bp-hello-content">
574
+ <h2><?php echo esc_html( _n( 'Maintenance Release', 'Maintenance Releases', 1, 'buddypress' ) ); ?></h2>
575
+ <p>
576
+ <?php
577
+ printf(
578
+ /* translators: 1: BuddyPress version number, 2: plural number of bugs. */
579
+ _n(
580
+ '<strong>Version %1$s</strong> addressed %2$s bug.',
581
+ '<strong>Version %1$s</strong> addressed %2$s bugs.',
582
+ 23,
583
+ 'buddypress'
584
+ ),
585
+ self::display_version(),
586
+ number_format_i18n( 23 )
587
+ );
588
+ ?>
589
+ </p>
590
+
591
+ <hr>
592
<h2><?php esc_html_e( __( 'Say hello to &ldquo;Nouveau&rdquo;!', 'buddypress' ) ); ?></h2>
593
<p>
594
<?php
bp-core/classes/class-bp-core-login-widget.php CHANGED
@@ -104,7 +104,7 @@ class BP_Core_Login_Widget extends WP_Widget {
104
*/
105
do_action( 'bp_before_login_widget_loggedout' ); ?>
106
107
- <form name="bp-login-form" id="bp-login-widget-form" class="standard-form" action="<?php echo esc_url( wp_login_url() ); ?>" method="post">
108
<label for="bp-login-widget-user-login"><?php _e( 'Username', 'buddypress' ); ?></label>
109
<input type="text" name="log" id="bp-login-widget-user-login" class="input" value="" />
110
104
*/
105
do_action( 'bp_before_login_widget_loggedout' ); ?>
106
107
+ <form name="bp-login-form" id="bp-login-widget-form" class="standard-form" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
108
<label for="bp-login-widget-user-login"><?php _e( 'Username', 'buddypress' ); ?></label>
109
<input type="text" name="log" id="bp-login-widget-user-login" class="input" value="" />
110
bp-groups/actions/create.php CHANGED
@@ -182,10 +182,12 @@ function groups_action_create_group() {
182
setcookie( 'bp_completed_create_steps', false, time() - 3600, COOKIEPATH, COOKIE_DOMAIN, is_ssl() );
183
184
// Once we completed all steps, record the group creation in the activity stream.
185
- groups_record_activity( array(
186
- 'type' => 'created_group',
187
- 'item_id' => $bp->groups->new_group_id
188
- ) );
189
190
/**
191
* Fires after the group has been successfully created.
182
setcookie( 'bp_completed_create_steps', false, time() - 3600, COOKIEPATH, COOKIE_DOMAIN, is_ssl() );
183
184
// Once we completed all steps, record the group creation in the activity stream.
185
+ if ( bp_is_active( 'activity' ) ) {
186
+ groups_record_activity( array(
187
+ 'type' => 'created_group',
188
+ 'item_id' => $bp->groups->new_group_id
189
+ ) );
190
+ }
191
192
/**
193
* Fires after the group has been successfully created.
bp-groups/bp-groups-activity.php CHANGED
@@ -392,7 +392,7 @@ function bp_groups_filter_activity_can_comment( $retval, $activity = null ) {
392
393
// If current user is not a group member or is banned, user cannot comment.
394
if ( ! bp_current_user_can( 'bp_moderate' ) &&
395
- ( ! groups_is_user_member( bp_loggedin_user_id(), $group_id ) || ! groups_is_user_banned( bp_loggedin_user_id(), $group_id ) )
396
) {
397
$retval = false;
398
}
@@ -426,31 +426,6 @@ function bp_groups_filter_activity_can_comment_reply( $retval, $comment ) {
426
}
427
add_filter( 'bp_activity_can_comment_reply', 'bp_groups_filter_activity_can_comment_reply', 99, 2 );
428
429
- /**
430
- * Update the last_activity meta value for a given group.
431
- *
432
- * @since 1.0.0
433
- *
434
- * @param int $group_id Optional. The ID of the group whose last_activity is
435
- * being updated. Default: the current group's ID.
436
- * @return false|null False on failure.
437
- */
438
- function groups_update_last_activity( $group_id = 0 ) {
439
-
440
- if ( empty( $group_id ) ) {
441
- $group_id = buddypress()->groups->current_group->id;
442
- }
443
-
444
- if ( empty( $group_id ) ) {
445
- return false;
446
- }
447
-
448
- groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() );
449
- }
450
- add_action( 'groups_join_group', 'groups_update_last_activity' );
451
- add_action( 'groups_leave_group', 'groups_update_last_activity' );
452
- add_action( 'groups_created_group', 'groups_update_last_activity' );
453
-
454
/**
455
* Add an activity stream item when a member joins a group.
456
*
392
393
// If current user is not a group member or is banned, user cannot comment.
394
if ( ! bp_current_user_can( 'bp_moderate' ) &&
395
+ ( ! groups_is_user_member( bp_loggedin_user_id(), $group_id ) || groups_is_user_banned( bp_loggedin_user_id(), $group_id ) )
396
) {
397
$retval = false;
398
}
426
}
427
add_filter( 'bp_activity_can_comment_reply', 'bp_groups_filter_activity_can_comment_reply', 99, 2 );
428
429
/**
430
* Add an activity stream item when a member joins a group.
431
*
bp-groups/bp-groups-functions.php CHANGED
@@ -585,11 +585,13 @@ function groups_join_group( $group_id, $user_id = 0 ) {
585
$group = $bp->groups->current_group;
586
587
// Record this in activity streams.
588
- groups_record_activity( array(
589
- 'type' => 'joined_group',
590
- 'item_id' => $group_id,
591
- 'user_id' => $user_id,
592
- ) );
593
594
/**
595
* Fires after a user joins a group.
@@ -604,6 +606,31 @@ function groups_join_group( $group_id, $user_id = 0 ) {
604
return true;
605
}
606
607
/** General Group Functions ***************************************************/
608
609
/**
585
$group = $bp->groups->current_group;
586
587
// Record this in activity streams.
588
+ if ( bp_is_active( 'activity' ) ) {
589
+ groups_record_activity( array(
590
+ 'type' => 'joined_group',
591
+ 'item_id' => $group_id,
592
+ 'user_id' => $user_id,
593
+ ) );
594
+ }
595
596
/**
597
* Fires after a user joins a group.
606
return true;
607
}
608
609
+ /**
610
+ * Update the last_activity meta value for a given group.
611
+ *
612
+ * @since 1.0.0
613
+ *
614
+ * @param int $group_id Optional. The ID of the group whose last_activity is
615
+ * being updated. Default: the current group's ID.
616
+ * @return false|null False on failure.
617
+ */
618
+ function groups_update_last_activity( $group_id = 0 ) {
619
+
620
+ if ( empty( $group_id ) ) {
621
+ $group_id = buddypress()->groups->current_group->id;
622
+ }
623
+
624
+ if ( empty( $group_id ) ) {
625
+ return false;
626
+ }
627
+
628
+ groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() );
629
+ }
630
+ add_action( 'groups_join_group', 'groups_update_last_activity' );
631
+ add_action( 'groups_leave_group', 'groups_update_last_activity' );
632
+ add_action( 'groups_created_group', 'groups_update_last_activity' );
633
+
634
/** General Group Functions ***************************************************/
635
636
/**
bp-groups/screens/user/invites.php CHANGED
@@ -28,10 +28,12 @@ function groups_screen_group_invites() {
28
29
bp_core_add_message( sprintf( __( 'Group invite accepted. Visit %s.', 'buddypress' ), bp_get_group_link( $group ) ) );
30
31
- groups_record_activity( array(
32
- 'type' => 'joined_group',
33
- 'item_id' => $group->id
34
- ) );
35
}
36
37
if ( isset( $_GET['redirect_to'] ) ) {
28
29
bp_core_add_message( sprintf( __( 'Group invite accepted. Visit %s.', 'buddypress' ), bp_get_group_link( $group ) ) );
30
31
+ if ( bp_is_active( 'activity' ) ) {
32
+ groups_record_activity( array(
33
+ 'type' => 'joined_group',
34
+ 'item_id' => $group->id
35
+ ) );
36
+ }
37
}
38
39
if ( isset( $_GET['redirect_to'] ) ) {
bp-loader.php CHANGED
@@ -15,7 +15,7 @@
15
* Description: BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!
16
* Author: The BuddyPress Community
17
* Author URI: https://buddypress.org/
18
- * Version: 3.0.0
19
* Text Domain: buddypress
20
* Domain Path: /bp-languages/
21
* License: GPLv2 or later (license.txt)
15
* Description: BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!
16
* Author: The BuddyPress Community
17
* Author URI: https://buddypress.org/
18
+ * Version: 3.1.0
19
* Text Domain: buddypress
20
* Domain Path: /bp-languages/
21
* License: GPLv2 or later (license.txt)
bp-members/screens/register.php CHANGED
@@ -89,8 +89,13 @@ function bp_core_screen_signup() {
89
foreach ( (array) $profile_field_ids as $field_id ) {
90
bp_xprofile_maybe_format_datebox_post_data( $field_id );
91
92
if ( isset( $_POST[ 'field_' . $field_id ] ) ) {
93
- $_POST[ 'field_' . $field_id ] = trim( $_POST[ 'field_' . $field_id ] );
94
}
95
96
// Create errors for required fields without values.
89
foreach ( (array) $profile_field_ids as $field_id ) {
90
bp_xprofile_maybe_format_datebox_post_data( $field_id );
91
92
+ // Trim post fields.
93
if ( isset( $_POST[ 'field_' . $field_id ] ) ) {
94
+ if ( is_array( $_POST[ 'field_' . $field_id ] ) ) {
95
+ $_POST[ 'field_' . $field_id ] = array_map( 'trim', $_POST[ 'field_' . $field_id ] );
96
+ } else {
97
+ $_POST[ 'field_' . $field_id ] = trim( $_POST[ 'field_' . $field_id ] );
98
+ }
99
}
100
101
// Create errors for required fields without values.
bp-messages/bp-messages-functions.php CHANGED
@@ -581,6 +581,12 @@ function messages_notification_new_message( $raw_args = array() ) {
581
582
$sender_name = bp_core_get_user_displayname( $sender_id );
583
584
// Send an email to each recipient.
585
foreach ( $recipients as $recipient ) {
586
if ( $sender_id == $recipient->user_id || 'no' == bp_get_user_meta( $recipient->user_id, 'notification_messages_new_message', true ) ) {
581
582
$sender_name = bp_core_get_user_displayname( $sender_id );
583
584
+ if ( isset( $message ) ) {
585
+ $message = wpautop( $message );
586
+ } else {
587
+ $message = '';
588
+ }
589
+
590
// Send an email to each recipient.
591
foreach ( $recipients as $recipient ) {
592
if ( $sender_id == $recipient->user_id || 'no' == bp_get_user_meta( $recipient->user_id, 'notification_messages_new_message', true ) ) {
bp-templates/bp-legacy/buddypress-functions.php CHANGED
@@ -6,7 +6,7 @@
6
*
7
* @package BuddyPress
8
* @subpackage BP_Theme_Compat
9
- * @version 3.0.0
10
*/
11
12
// Exit if accessed directly.
@@ -740,7 +740,7 @@ function bp_legacy_theme_ajax_querystring( $query_string, $object ) {
740
}
741
742
$object_search_text = bp_get_search_default_text( $object );
743
- if ( ! empty( $_POST['search_terms'] ) && $object_search_text != $_POST['search_terms'] && 'false' != $_POST['search_terms'] && 'undefined' != $_POST['search_terms'] )
744
$qs[] = 'search_terms=' . urlencode( $_POST['search_terms'] );
745
746
// Now pass the querystring to override default values.
6
*
7
* @package BuddyPress
8
* @subpackage BP_Theme_Compat
9
+ * @version 3.1.0
10
*/
11
12
// Exit if accessed directly.
740
}
741
742
$object_search_text = bp_get_search_default_text( $object );
743
+ if ( ! empty( $_POST['search_terms'] ) && is_string( $_POST['search_terms'] ) && $object_search_text != $_POST['search_terms'] && 'false' != $_POST['search_terms'] && 'undefined' != $_POST['search_terms'] )
744
$qs[] = 'search_terms=' . urlencode( $_POST['search_terms'] );
745
746
// Now pass the querystring to override default values.
bp-templates/bp-legacy/buddypress/groups/single/request-membership.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @package BuddyPress
6
* @subpackage bp-legacy
7
- * @version 3.0.0
8
*/
9
10
/**
@@ -15,15 +15,22 @@
15
do_action( 'bp_before_group_request_membership_content' ); ?>
16
17
<?php if ( !bp_group_has_requested_membership() ) : ?>
18
- <h2 class="bp-screen-reader-text"><?php
19
- /* translators: accessibility text */
20
- _e( 'Request form', 'buddypress' );
21
- ?></h2>
22
23
- <p><?php printf( __( "You are requesting to become a member of the group '%s'.", 'buddypress' ), bp_get_group_name( false ) ); ?></p>
24
25
<form action="<?php bp_group_form_action('request-membership' ); ?>" method="post" name="request-membership-form" id="request-membership-form" class="standard-form">
26
- <label for="group-request-membership-comments"><?php _e( 'Comments (optional)', 'buddypress' ); ?></label>
27
<textarea name="group-request-membership-comments" id="group-request-membership-comments"></textarea>
28
29
<?php
@@ -35,7 +42,7 @@ do_action( 'bp_before_group_request_membership_content' ); ?>
35
*/
36
do_action( 'bp_group_request_membership_content' ); ?>
37
38
- <p><input type="submit" name="group-request-send" id="group-request-send" value="<?php esc_attr_e( 'Send Request', 'buddypress' ); ?>" />
39
40
<?php wp_nonce_field( 'groups_request_membership' ); ?>
41
</form><!-- #request-membership-form -->
4
*
5
* @package BuddyPress
6
* @subpackage bp-legacy
7
+ * @version 3.1.0
8
*/
9
10
/**
15
do_action( 'bp_before_group_request_membership_content' ); ?>
16
17
<?php if ( !bp_group_has_requested_membership() ) : ?>
18
+ <h2 class="bp-screen-reader-text"><?php esc_html_e( 'Group membership request form', 'buddypress' ); ?></h2>
19
20
+ <p>
21
+ <?php
22
+ echo esc_html(
23
+ sprintf(
24
+ /* translators: %s =group name */
25
+ __( 'You are requesting to become a member of the group "%s".', 'buddypress' ),
26
+ bp_get_group_name()
27
+ )
28
+ );
29
+ ?>
30
+ </p>
31
32
<form action="<?php bp_group_form_action('request-membership' ); ?>" method="post" name="request-membership-form" id="request-membership-form" class="standard-form">
33
+ <label for="group-request-membership-comments"><?php esc_html_e( 'Comments (optional)', 'buddypress' ); ?></label>
34
<textarea name="group-request-membership-comments" id="group-request-membership-comments"></textarea>
35
36
<?php
42
*/
43
do_action( 'bp_group_request_membership_content' ); ?>
44
45
+ <p><input type="submit" name="group-request-send" id="group-request-send" value="<?php echo esc_attr_x( 'Send Request', 'button', 'buddypress' ); ?>" />
46
47
<?php wp_nonce_field( 'groups_request_membership' ); ?>
48
</form><!-- #request-membership-form -->
bp-templates/bp-nouveau/buddypress-functions.php CHANGED
@@ -3,7 +3,7 @@
3
* Functions of BuddyPress's "Nouveau" template pack.
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*
8
* @buddypress-template-pack {
9
* Template Pack ID: nouveau
3
* Functions of BuddyPress's "Nouveau" template pack.
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*
8
* @buddypress-template-pack {
9
* Template Pack ID: nouveau
bp-templates/bp-nouveau/buddypress/activity/activity-loop.php CHANGED
@@ -2,7 +2,7 @@
2
/**
3
* BuddyPress - Activity Loop
4
*
5
- * @version 3.0.0
6
*/
7
8
bp_nouveau_before_loop(); ?>
@@ -25,7 +25,7 @@ bp_nouveau_before_loop(); ?>
25
<?php if ( bp_activity_has_more_items() ) : ?>
26
27
<li class="load-more">
28
- <a href="<?php bp_activity_load_more_link(); ?>"><?php _e( 'Load More', 'buddypress' ); ?></a>
29
</li>
30
31
<?php endif; ?>
2
/**
3
* BuddyPress - Activity Loop
4
*
5
+ * @version 3.1.0
6
*/
7
8
bp_nouveau_before_loop(); ?>
25
<?php if ( bp_activity_has_more_items() ) : ?>
26
27
<li class="load-more">
28
+ <a href="<?php bp_activity_load_more_link(); ?>"><?php echo esc_html_x( 'Load More', 'button', 'buddypress' ); ?></a>
29
</li>
30
31
<?php endif; ?>
bp-templates/bp-nouveau/buddypress/activity/comment-form.php CHANGED
@@ -3,7 +3,7 @@
3
* BP Nouveau Activity Comment form template.
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
9
if ( ! bp_nouveau_current_user_can( 'comment_activity' ) || ! bp_activity_can_comment() ) {
@@ -15,13 +15,20 @@ if ( ! bp_nouveau_current_user_can( 'comment_activity' ) || ! bp_activity_can_co
15
<div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( array( 'type' => 'thumb' ) ); ?></div>
16
<div class="ac-reply-content">
17
<div class="ac-textarea">
18
- <label for="ac-input-<?php bp_activity_id(); ?>" class="bp-screen-reader-text"><?php _e( 'Comment', 'buddypress' ); ?></label>
19
<textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input bp-suggestions" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
20
</div>
21
- <input type="submit" name="ac_form_submit" value="<?php esc_attr_e( 'Post', 'buddypress' ); ?>" /> &nbsp; <button type="button" class="ac-reply-cancel"><?php _e( 'Cancel', 'buddypress' ); ?></button>
22
<input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />
23
- </div>
24
25
- <?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ); ?>
26
27
</form>
3
* BP Nouveau Activity Comment form template.
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
9
if ( ! bp_nouveau_current_user_can( 'comment_activity' ) || ! bp_activity_can_comment() ) {
15
<div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( array( 'type' => 'thumb' ) ); ?></div>
16
<div class="ac-reply-content">
17
<div class="ac-textarea">
18
+ <label for="ac-input-<?php bp_activity_id(); ?>" class="bp-screen-reader-text">
19
+ <?php echo esc_html( _x( 'Comment', 'heading', 'buddypress' ) ); ?>
20
+ </label>
21
<textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input bp-suggestions" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
22
</div>
23
<input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />
24
25
+ <?php
26
+ bp_nouveau_submit_button( 'activity-new-comment' );
27
+ printf(
28
+ '&nbsp; <button type="button" class="ac-reply-cancel">%s</button>',
29
+ esc_html( _x( 'Cancel', 'button', 'buddypress' ) )
30
+ );
31
+ ?>
32
+ </div>
33
34
</form>
bp-templates/bp-nouveau/buddypress/activity/post-form.php CHANGED
@@ -2,26 +2,24 @@
2
/**
3
* BuddyPress - Activity Post Form
4
*
5
- * @version 3.0.0
6
*/
7
8
?>
9
10
<?php
11
- /**
12
- * Template tag to prepare the activity post form
13
- * checks capability and enqueue needed scripts.
14
*/
15
bp_nouveau_before_activity_post_form();
16
?>
17
18
- <h2 class="bp-screen-reader-text"><?php _e( 'Post Update', 'buddypress' ); ?></h2>
19
20
<div id="bp-nouveau-activity-form" class="activity-update-form"></div>
21
22
<?php
23
- /**
24
- * Template tag to load the Javascript
25
- * templates of the Post form UI
26
*/
27
- bp_nouveau_after_activity_post_form(); ?>
2
/**
3
* BuddyPress - Activity Post Form
4
*
5
+ * @version 3.1.0
6
*/
7
8
?>
9
10
<?php
11
+ /*
12
+ * Template tag to prepare the activity post form checks capability and enqueue needed scripts.
13
*/
14
bp_nouveau_before_activity_post_form();
15
?>
16
17
+ <h2 class="bp-screen-reader-text"><?php echo esc_html_x( 'Post Update', 'heading', 'buddypress' ); ?></h2>
18
19
<div id="bp-nouveau-activity-form" class="activity-update-form"></div>
20
21
<?php
22
+ /*
23
+ * Template tag to load the Javascript templates of the Post form UI.
24
*/
25
+ bp_nouveau_after_activity_post_form();
bp-templates/bp-nouveau/buddypress/assets/_attachments/avatars/camera.php CHANGED
@@ -5,7 +5,7 @@
5
* This template is used to create the camera Backbone views.
6
*
7
* @since 2.3.0
8
- * @version 3.0.0
9
*/
10
11
?>
@@ -19,8 +19,8 @@
19
<div class="avatar-crop-management">
20
<div id="avatar-crop-pane" class="avatar" style="width:{{data.w}}px; height:{{data.h}}px"></div>
21
<div id="avatar-crop-actions">
22
- <button type="button" class="button avatar-webcam-capture"><?php esc_html_e( 'Capture', 'buddypress' ); ?></button>
23
- <button type="button" class="button avatar-webcam-save"><?php esc_html_e( 'Save', 'buddypress' ); ?></button>
24
</div>
25
</div>
26
<# } #>
5
* This template is used to create the camera Backbone views.
6
*
7
* @since 2.3.0
8
+ * @version 3.1.0
9
*/
10
11
?>
19
<div class="avatar-crop-management">
20
<div id="avatar-crop-pane" class="avatar" style="width:{{data.w}}px; height:{{data.h}}px"></div>
21
<div id="avatar-crop-actions">
22
+ <button type="button" class="button avatar-webcam-capture"><?php echo esc_html_x( 'Capture', 'button', 'buddypress' ); ?></button>
23
+ <button type="button" class="button avatar-webcam-save"><?php echo esc_html_x( 'Save', 'button', 'buddypress' ); ?></button>
24
</div>
25
</div>
26
<# } #>
bp-templates/bp-nouveau/buddypress/assets/_attachments/avatars/crop.php CHANGED
@@ -5,7 +5,7 @@
5
* This template is used to create the crop Backbone views.
6
*
7
* @since 2.3.0
8
- * @version 3.0.0
9
*/
10
11
?>
@@ -18,7 +18,7 @@
18
<img src="{{data.url}}" id="avatar-crop-preview"/>
19
</div>
20
<div id="avatar-crop-actions">
21
- <button type="button" class="button avatar-crop-submit"><?php esc_html_e( 'Crop Image', 'buddypress' ); ?></button>
22
</div>
23
</div>
24
</script>
5
* This template is used to create the crop Backbone views.
6
*
7
* @since 2.3.0
8
+ * @version 3.1.0
9
*/
10
11
?>
18
<img src="{{data.url}}" id="avatar-crop-preview"/>
19
</div>
20
<div id="avatar-crop-actions">
21
+ <button type="button" class="button avatar-crop-submit"><?php echo esc_html_x( 'Crop Image', 'button', 'buddypress' ); ?></button>
22
</div>
23
</div>
24
</script>
bp-templates/bp-nouveau/buddypress/assets/_attachments/avatars/index.php CHANGED
@@ -8,7 +8,7 @@
8
* It's also used to create the common Backbone views.
9
*
10
* @since 2.3.0
11
- * @version 3.0.0
12
*/
13
14
/**
@@ -32,7 +32,7 @@ do_action( 'bp_attachments_avatar_check_template' );
32
33
<script id="tmpl-bp-avatar-delete" type="text/html">
34
<# if ( 'user' === data.object ) { #>
35
- <p><?php _e( "If you'd like to delete your current profile photo but not upload a new one, please use the delete profile photo button.", 'buddypress' ); ?></p>
36
<button type="button" class="button edit" id="bp-delete-avatar"><?php esc_html_e( 'Delete My Profile Photo', 'buddypress' ); ?></button>
37
<# } else if ( 'group' === data.object ) { #>
38
<?php bp_nouveau_user_feedback( 'group-avatar-delete-info' ); ?>
8
* It's also used to create the common Backbone views.
9
*
10
* @since 2.3.0
11
+ * @version 3.1.0
12
*/
13
14
/**
32
33
<script id="tmpl-bp-avatar-delete" type="text/html">
34
<# if ( 'user' === data.object ) { #>
35
+ <p><?php esc_html_e( "If you'd like to delete your current profile photo, use the delete profile photo button.", 'buddypress' ); ?></p>
36
<button type="button" class="button edit" id="bp-delete-avatar"><?php esc_html_e( 'Delete My Profile Photo', 'buddypress' ); ?></button>
37
<# } else if ( 'group' === data.object ) { #>
38
<?php bp_nouveau_user_feedback( 'group-avatar-delete-info' ); ?>
bp-templates/bp-nouveau/buddypress/assets/_attachments/cover-images/index.php CHANGED
@@ -8,7 +8,7 @@
8
* It's also used to create the common Backbone views.
9
*
10
* @since 2.4.0
11
- * @version 3.0.0
12
*/
13
14
?>
@@ -21,11 +21,19 @@
21
22
<script id="tmpl-bp-cover-image-delete" type="text/html">
23
<# if ( 'user' === data.object ) { #>
24
- <p><?php _e( "If you'd like to delete your current cover image but not upload a new one, please use the delete Cover Image button.", 'buddypress' ); ?></p>
25
- <button type="button" class="button edit" id="bp-delete-cover-image"><?php esc_html_e( 'Delete My Cover Image', 'buddypress' ); ?></button>
26
<# } else if ( 'group' === data.object ) { #>
27
- <p><?php _e( "If you'd like to remove the existing group cover image but not upload a new one, please use the delete group cover image button.", 'buddypress' ); ?></p>
28
- <button type="button" class="button edit" id="bp-delete-cover-image"><?php esc_html_e( 'Delete Group Cover Image', 'buddypress' ); ?></button>
29
<# } else { #>
30
<?php
31
/**
8
* It's also used to create the common Backbone views.
9
*
10
* @since 2.4.0
11
+ * @version 3.1.0
12
*/
13
14
?>
21
22
<script id="tmpl-bp-cover-image-delete" type="text/html">
23
<# if ( 'user' === data.object ) { #>
24
+ <p><?php esc_html_e( "If you'd like to delete your current cover image, use the delete Cover Image button.", 'buddypress' ); ?></p>
25
+ <button type="button" class="button edit" id="bp-delete-cover-image">
26
+ <?php
27
+ echo esc_html_x( 'Delete My Cover Image', 'button', 'buddypress' );
28
+ ?>
29
+ </button>
30
<# } else if ( 'group' === data.object ) { #>
31
+ <p><?php esc_html_e( "If you'd like to remove the existing group cover image but not upload a new one, please use the delete group cover image button.", 'buddypress' ); ?></p>
32
+ <button type="button" class="button edit" id="bp-delete-cover-image">
33
+ <?php
34
+ echo esc_html_x( 'Delete Group Cover Image', 'button', 'buddypress' );
35
+ ?>
36
+ </button>
37
<# } else { #>
38
<?php
39
/**
bp-templates/bp-nouveau/buddypress/assets/_attachments/uploader.php CHANGED
@@ -5,7 +5,7 @@
5
* This template is used to create the BuddyPress Uploader Backbone views.
6
*
7
* @since 2.3.0
8
- * @version 3.0.0
9
*/
10
11
?>
@@ -19,8 +19,13 @@
19
<div id="{{data.drop_element}}">
20
<div class="drag-drop-inside">
21
<p class="drag-drop-info"><?php esc_html_e( 'Drop your file here', 'buddypress' ); ?></p>
22
- <p><?php _ex( 'or', 'Uploader: Drop your file here - or - Select your File', 'buddypress' ); ?></p>
23
- <p class="drag-drop-buttons"><label for="{{data.browse_button}}" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text'; ?>"><?php esc_html_e( 'Select your File', 'buddypress' ); ?></label><input id="{{data.browse_button}}" type="button" value="<?php esc_attr_e( 'Select your File', 'buddypress' ); ?>" class="button" /></p>
24
</div>
25
</div>
26
</div>
5
* This template is used to create the BuddyPress Uploader Backbone views.
6
*
7
* @since 2.3.0
8
+ * @version 3.1.0
9
*/
10
11
?>
19
<div id="{{data.drop_element}}">
20
<div class="drag-drop-inside">
21
<p class="drag-drop-info"><?php esc_html_e( 'Drop your file here', 'buddypress' ); ?></p>
22
+
23
+ <p class="drag-drop-buttons">
24
+ <label for="{{data.browse_button}}" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text'; ?>">
25
+ <?php esc_html_e( 'Select your file', 'buddypress' ); ?>
26
+ </label>
27
+ <input id="{{data.browse_button}}" type="button" value="<?php echo esc_attr_x( 'Select your file', 'button', 'buddypress' ); ?>" class="button" />
28
+ </p>
29
</div>
30
</div>
31
</div>
bp-templates/bp-nouveau/buddypress/assets/emails/single-bp-email.php CHANGED
@@ -7,7 +7,7 @@
7
* 1.35 = default body_text_size multipler. Gives default heading of 20px.
8
*
9
* @since 2.5.0
10
- * @version 3.0.0
11
*
12
* @package BuddyPress
13
* @subpackage Core
@@ -217,7 +217,7 @@ $settings = bp_email_get_appearance_settings();
217
218
<span class="footer_text"><?php echo nl2br( stripslashes( $settings['footer_text'] ) ); ?></span>
219
<br><br>
220
- <a href="{{{unsubscribe}}}" style="text-decoration: underline;"><?php _ex( 'unsubscribe', 'email', 'buddypress' ); ?></a>
221
222
<?php
223
/**
7
* 1.35 = default body_text_size multipler. Gives default heading of 20px.
8
*
9
* @since 2.5.0
10
+ * @version 3.1.0
11
*
12
* @package BuddyPress
13
* @subpackage Core
217
218
<span class="footer_text"><?php echo nl2br( stripslashes( $settings['footer_text'] ) ); ?></span>
219
<br><br>
220
+ <a href="{{{unsubscribe}}}" style="text-decoration: underline;"><?php echo esc_html_x( 'unsubscribe', 'email', 'buddypress' ); ?></a>
221
222
<?php
223
/**
bp-templates/bp-nouveau/buddypress/common/js-templates/activity/form.php CHANGED
@@ -2,7 +2,7 @@
2
/**
3
* Activity Post form JS Templates
4
*
5
- * @version 3.0.0
6
*/
7
?>
8
@@ -39,7 +39,7 @@
39
40
<# if ( data.selected ) { #>
41
<button type="button" class="bp-remove-item dashicons dashicons-no" data-item_id="{{data.id}}">
42
- <span class="bp-screen-reader-text"><?php esc_html_e( 'Remove item', 'buddypress' ); ?></span>
43
</button>
44
<# } #>
45
</script>
2
/**
3
* Activity Post form JS Templates
4
*
5
+ * @version 3.1.0
6
*/
7
?>
8
39
40
<# if ( data.selected ) { #>
41
<button type="button" class="bp-remove-item dashicons dashicons-no" data-item_id="{{data.id}}">
42
+ <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Remove item', 'button', 'buddypress' ); ?></span>
43
</button>
44
<# } #>
45
</script>
bp-templates/bp-nouveau/buddypress/common/js-templates/invites/index.php CHANGED
@@ -6,7 +6,7 @@
6
* dealing with invites.
7
*
8
* @since 3.0.0
9
- * @version 3.0.0
10
*/
11
?>
12
@@ -83,22 +83,22 @@
83
84
<div class="action">
85
<# if ( undefined === data.is_sent || ( false === data.is_sent && true === data.can_edit ) ) { #>
86
- <button type="button" class="button invite-button group-add-remove-invite-button bp-tooltip bp-icons<# if ( data.selected ) { #> selected<# } #>" data-bp-tooltip="<# if ( data.selected ) { #><?php esc_attr_e( 'Disinvite', 'buddypress' ); ?><# } else { #><?php esc_attr_e( 'Invite', 'buddypress' ); ?><# } #>">
87
<span class="icons" aria-hidden="true"></span>
88
<span class="bp-screen-reader-text">
89
<# if ( data.selected ) { #>
90
- <?php esc_html_e( 'Disinvite', 'buddypress' ); ?>
91
<# } else { #>
92
- <?php esc_html_e( 'Invite', 'buddypress' ); ?>
93
<# } #>
94
</span>
95
</button>
96
<# } #>
97
98
<# if ( undefined !== data.can_edit && true === data.can_edit ) { #>
99
- <button type="button" class="button invite-button group-remove-invite-button bp-tooltip bp-icons" data-bp-tooltip="<?php esc_attr_e( 'Disinvite', 'buddypress' ); ?>">
100
<span class=" icons" aria-hidden="true"></span>
101
- <span class="bp-screen-reader-text"><?php esc_html_e( 'Disinvite', 'buddypress' ); ?></span>
102
</button>
103
<# } #>
104
</div>
@@ -113,12 +113,12 @@
113
114
<script type="text/html" id="tmpl-bp-invites-form">
115
116
- <label for="send-invites-control"><?php esc_attr_e( 'Optional: add a message to your invite.', 'buddypress' ); ?></label>
117
<textarea id="send-invites-control" class="bp-faux-placeholder-label"></textarea>
118
119
<div class="action">
120
- <button type="button" id="bp-invites-reset" class="button bp-secondary-action"><?php _ex( 'Cancel', 'Cancel invitation', 'buddypress' ); ?></button>
121
- <button type="button" id="bp-invites-send" class="button bp-primary-action"><?php _ex( 'Send', 'Send invitation', 'buddypress' ); ?></button>
122
</div>
123
</script>
124
@@ -126,12 +126,12 @@
126
<div class="group-invites-search subnav-search clearfix" role="search" >
127
<div class="bp-search">
128
<form action="" method="get" id="group_invites_search_form" class="bp-invites-search-form" data-bp-search="{{data.scope}}">
129
- <label for="group_invites_search" class="bp-screen-reader-text"><?php bp_nouveau_search_default_text( 'Search Members', false ); ?></label>
130
- <input type="search" id="group_invites_search" placeholder="<?php esc_attr_e( 'Search', 'buddypress' ); ?>"/>
131
132
<button type="submit" id="group_invites_search_submit" class="nouveau-search-submit">
133
<span class="dashicons dashicons-search" aria-hidden="true"></span>
134
- <span id="button-text" class="bp-screen-reader-text"><?php esc_html_e( 'Search', 'buddypress' ); ?></span>
135
</button>
136
</form>
137
</div>
@@ -140,15 +140,15 @@
140
141
<script type="text/html" id="tmpl-bp-invites-paginate">
142
<# if ( 1 !== data.page ) { #>
143
- <a href="#previous-page" id="bp-invites-prev-page" class="button invite-button bp-tooltip" data-bp-tooltip="<?php esc_attr_e( 'Previous page', 'buddypress' ); ?>">
144
<span class="dashicons dashicons-arrow-left" aria-hidden="true"></span>
145
- <span class="bp-screen-reader-text"><?php esc_html_e( 'Previous page', 'buddypress' ); ?></span>
146
</a>
147
<# } #>
148
149
<# if ( data.total_page !== data.page ) { #>
150
- <a href="#next-page" id="bp-invites-next-page" class="button invite-button bp-tooltip" data-bp-tooltip="<?php esc_attr_e( 'Next page', 'buddypress' ); ?>">
151
- <span class="bp-screen-reader-text"><?php esc_html_e( 'Next page', 'buddypress' ); ?></span>
152
<span class="dashicons dashicons-arrow-right" aria-hidden="true"></span>
153
</button>
154
<# } #>
6
* dealing with invites.
7
*
8
* @since 3.0.0
9
+ * @version 3.1.0
10
*/
11
?>
12
83
84
<div class="action">
85
<# if ( undefined === data.is_sent || ( false === data.is_sent && true === data.can_edit ) ) { #>
86
+ <button type="button" class="button invite-button group-add-remove-invite-button bp-tooltip bp-icons<# if ( data.selected ) { #> selected<# } #>" data-bp-tooltip="<# if ( data.selected ) { #><?php esc_attr_e( 'Cancel invitation', 'buddypress' ); ?><# } else { #><?php echo esc_attr_x( 'Invite', 'button', 'buddypress' ); ?><# } #>">
87
<span class="icons" aria-hidden="true"></span>
88
<span class="bp-screen-reader-text">
89
<# if ( data.selected ) { #>
90
+ <?php echo esc_html_x( 'Cancel invitation', 'button', 'buddypress' ); ?>
91
<# } else { #>
92
+ <?php echo esc_html_x( 'Invite', 'button', 'buddypress' ); ?>
93
<# } #>
94
</span>
95
</button>
96
<# } #>
97
98
<# if ( undefined !== data.can_edit && true === data.can_edit ) { #>
99
+ <button type="button" class="button invite-button group-remove-invite-button bp-tooltip bp-icons" data-bp-tooltip="<?php echo esc_attr_x( 'Cancel invitation', 'button', 'buddypress' ); ?>">
100
<span class=" icons" aria-hidden="true"></span>
101
+ <span class="bp-screen-reader-text"><?php echo esc_attr_x( 'Cancel invitation', 'button', 'buddypress' ); ?></span>
102
</button>
103
<# } #>
104
</div>
113
114
<script type="text/html" id="tmpl-bp-invites-form">
115
116
+ <label for="send-invites-control"><?php esc_html_e( 'Optional: add a message to your invite.', 'buddypress' ); ?></label>
117
<textarea id="send-invites-control" class="bp-faux-placeholder-label"></textarea>
118
119
<div class="action">
120
+ <button type="button" id="bp-invites-reset" class="button bp-secondary-action"><?php echo esc_html_x( 'Cancel', 'button', 'buddypress' ); ?></button>
121
+ <button type="button" id="bp-invites-send" class="button bp-primary-action"><?php echo esc_html_x( 'Send', 'button', 'buddypress' ); ?></button>
122
</div>
123
</script>
124
126
<div class="group-invites-search subnav-search clearfix" role="search" >
127
<div class="bp-search">
128
<form action="" method="get" id="group_invites_search_form" class="bp-invites-search-form" data-bp-search="{{data.scope}}">
129
+ <label for="group_invites_search" class="bp-screen-reader-text"><?php bp_nouveau_search_default_text( _x( 'Search Members', 'heading', 'buddypress' ), false ); ?></label>
130
+ <input type="search" id="group_invites_search" placeholder="<?php echo esc_attr_x( 'Search', 'search placeholder text', 'buddypress' ); ?>"/>
131
132
<button type="submit" id="group_invites_search_submit" class="nouveau-search-submit">
133
<span class="dashicons dashicons-search" aria-hidden="true"></span>
134
+ <span id="button-text" class="bp-screen-reader-text"><?php echo esc_html_x( 'Search', 'button', 'buddypress' ); ?></span>
135
</button>
136
</form>
137
</div>
140
141
<script type="text/html" id="tmpl-bp-invites-paginate">
142
<# if ( 1 !== data.page ) { #>
143
+ <a href="#previous-page" id="bp-invites-prev-page" class="button invite-button bp-tooltip" data-bp-tooltip="<?php echo esc_attr_x( 'Previous page', 'link', 'buddypress' ); ?>">
144
<span class="dashicons dashicons-arrow-left" aria-hidden="true"></span>
145
+ <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Previous page', 'link', 'buddypress' ); ?></span>
146
</a>
147
<# } #>
148
149
<# if ( data.total_page !== data.page ) { #>
150
+ <a href="#next-page" id="bp-invites-next-page" class="button invite-button bp-tooltip" data-bp-tooltip="<?php echo esc_attr_x( 'Next page', 'link', 'buddypress' ); ?>">
151
+ <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Next page', 'link', 'buddypress' ); ?></span>
152
<span class="dashicons dashicons-arrow-right" aria-hidden="true"></span>
153
</button>
154
<# } #>
bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php CHANGED
@@ -6,7 +6,7 @@
6
* dealing with user's private messages.
7
*
8
* @since 3.0.0
9
- * @version 3.0.0
10
*/
11
?>
12
<div class="subnav-filters filters user-subnav bp-messages-filters" id="subsubnav"></div>
@@ -21,6 +21,15 @@
21
</div>
22
</script>
23
24
<script type="text/html" id="tmpl-bp-messages-form">
25
<?php bp_nouveau_messages_hook( 'before', 'compose_content' ); ?>
26
@@ -35,8 +44,8 @@
35
<?php bp_nouveau_messages_hook( 'after', 'compose_content' ); ?>
36
37
<div class="submit">
38
- <input type="button" id="bp-messages-send" class="button bp-primary-action" value="<?php esc_attr_e( 'Send', 'buddypress' ); ?>"/>
39
- <input type="button" id="bp-messages-reset" class="text-button small bp-secondary-action" value="<?php esc_attr_e( 'Reset', 'buddypress' ); ?>"/>
40
</div>
41
</script>
42
@@ -59,6 +68,7 @@
59
'textarea_rows' => 5,
60
)
61
);
62
// Remove the temporary filter on editor buttons
63
remove_filter( 'mce_buttons', 'bp_nouveau_messages_mce_buttons', 10, 1 );
64
?>
@@ -68,14 +78,14 @@
68
<# if ( 1 !== data.page ) { #>
69
<button id="bp-messages-prev-page"class="button messages-button">
70
<span class="dashicons dashicons-arrow-left"></span>
71
- <span class="bp-screen-reader-text"><?php esc_html_e( 'Prev', 'buddypress' ); ?></span>
72
</button>
73
<# } #>
74
75
<# if ( data.total_page !== data.page ) { #>
76
<button id="bp-messages-next-page"class="button messages-button">
77
<span class="dashicons dashicons-arrow-right"></span>
78
- <span class="bp-screen-reader-text"><?php esc_html_e( 'Next', 'buddypress' ); ?></span>
79
</button>
80
<# } #>
81
</script>
@@ -87,10 +97,10 @@
87
<label for="user_messages_search" class="bp-screen-reader-text">
88
<?php _e( 'Search Messages', 'buddypress' ); ?>
89
</label>
90
- <input type="search" id="user_messages_search" placeholder="<?php esc_attr_e( 'Search', 'buddypress' ); ?>"/>
91
<button type="submit" id="user_messages_search_submit">
92
<span class="dashicons dashicons-search" aria-hidden="true"></span>
93
- <span class="bp-screen-reader-text"><?php esc_html_e( 'Search', 'buddypress' ); ?></span>
94
</button>
95
</form>
96
</div>
@@ -113,9 +123,9 @@
113
</select>
114
<span class="select-arrow" aria-hidden="true"></span>
115
</div>
116
- <button class="messages-button bulk-apply bp-tooltip" type="submit" data-bp-tooltip="<?php echo esc_attr( 'Apply', 'buddypress' ); ?>">
117
<span class="dashicons dashicons-yes" aria-hidden="true"></span>
118
- <span class="bp-screen-reader-text"><?php esc_html_e( 'Apply', 'buddypress' ); ?></span>
119
</button>
120
</div>
121
</script>
@@ -153,7 +163,7 @@
153
<div class="thread-content" data-thread-id="{{data.id}}">
154
<div class="thread-subject">
155
<span class="thread-count">({{data.count}})</span>
156
- <a class="subject" href="#view/{{data.id}}">{{data.subject}}</a>
157
</div>
158
<p class="excerpt">{{data.excerpt}}</p>
159
</div>
@@ -165,7 +175,7 @@
165
<script type="text/html" id="tmpl-bp-messages-preview">
166
<# if ( undefined !== data.content ) { #>
167
168
- <h2 class="message-title preview-thread-title"><?php esc_html_e( 'Active conversation:', 'buddypress' ); ?><span class="messages-title"> <# print( data.subject ); #></span></h2>
169
<div class="preview-content">
170
<header class="preview-pane-header">
171
@@ -202,21 +212,35 @@
202
203
<# } #>
204
205
- <a href="#view/{{data.id}}" class="message-action-view bp-tooltip bp-icons" data-bp-tooltip="<?php esc_attr_e( 'View full conversation and reply.', 'buddypress' ); ?>">
206
<span class="bp-screen-reader-text"><?php esc_html_e( 'View full conversation and reply.', 'buddypress' ); ?></span>
207
</a>
208
</div>
209
</header>
210
211
<div class='preview-message'>
212
- <# print( data.content ) #>
213
</div>
214
</div>
215
<# } #>
216
</script>
217
218
<script type="text/html" id="tmpl-bp-messages-single-header">
219
- <h2 id="message-subject" class="message-title single-thread-title"><# print( data.subject ); #></h2>
220
<header class="single-message-thread-header">
221
<# if ( undefined !== data.recipients ) { #>
222
<dl class="thread-participants">
@@ -232,19 +256,18 @@
232
<# } #>
233
234
<div class="actions">
235
-
236
<button type="button" class="message-action-delete bp-tooltip bp-icons" data-bp-action="delete" data-bp-tooltip="<?php esc_attr_e( 'Delete conversation.', 'buddypress' ); ?>">
237
<span class="bp-screen-reader-text"><?php esc_html_e( 'Delete conversation.', 'buddypress' ); ?></span>
238
</button>
239
-
240
- <?php bp_nouveau_messages_hook( 'after', 'thread_header_actions' ); ?>
241
</div>
242
</header>
243
</script>
244
245
<script type="text/html" id="tmpl-bp-messages-single-list">
246
<div class="message-metadata">
247
- <?php bp_nouveau_messages_hook( 'before', 'meta' ); ?>
248
249
<a href="{{data.sender_link}}" class="user-link">
250
<img class="avatar" src="{{data.sender_avatar}}" alt="" />
@@ -267,15 +290,20 @@
267
<# } #>
268
</div>
269
270
- <?php bp_nouveau_messages_hook( 'after', 'meta' ); ?>
271
-
272
</div>
273
274
- <?php bp_nouveau_messages_hook( 'before', 'content' ); ?>
275
276
- <div class="message-content"><# print( data.content ) #></div>
277
278
- <?php bp_nouveau_messages_hook( 'after', 'content' ); ?>
279
280
</script>
281
@@ -296,15 +324,15 @@
296
<div class="message-box">
297
<div class="message-metadata">
298
299
- <?php bp_nouveau_messages_hook( 'before', 'meta' ); ?>
300
301
<div class="avatar-box">
302
<?php bp_loggedin_user_avatar( 'type=thumb&height=30&width=30' ); ?>
303
304
- <strong><?php _e( 'Send a Reply', 'buddypress' ); ?></strong>
305
</div>
306
307
- <?php bp_nouveau_messages_hook( 'after', 'meta' ); ?>
308
309
</div><!-- .message-metadata -->
310
@@ -318,7 +346,7 @@
318
<?php bp_nouveau_messages_hook( 'after', 'reply_box' ); ?>
319
320
<div class="submit">
321
- <input type="submit" name="send" value="<?php esc_attr_e( 'Send Reply', 'buddypress' ); ?>" id="send_reply_button"/>
322
</div>
323
324
</div><!-- .message-content -->
6
* dealing with user's private messages.
7
*
8
* @since 3.0.0
9
+ * @version 3.1.0
10
*/
11
?>
12
<div class="subnav-filters filters user-subnav bp-messages-filters" id="subsubnav"></div>
21
</div>
22
</script>
23
24
+ <?php
25
+ /**
26
+ * This view is used to inject hooks buffer
27
+ */
28
+ ?>
29
+ <script type="text/html" id="tmpl-bp-messages-hook">
30
+ {{{data.extraContent}}}
31
+ </script>
32
+
33
<script type="text/html" id="tmpl-bp-messages-form">
34
<?php bp_nouveau_messages_hook( 'before', 'compose_content' ); ?>
35
44
<?php bp_nouveau_messages_hook( 'after', 'compose_content' ); ?>
45
46
<div class="submit">
47
+ <input type="button" id="bp-messages-send" class="button bp-primary-action" value="<?php echo esc_attr_x( 'Send', 'button', 'buddypress' ); ?>"/>
48
+ <input type="button" id="bp-messages-reset" class="text-button small bp-secondary-action" value="<?php echo esc_attr_x( 'Reset', 'form reset button', 'buddypress' ); ?>"/>
49
</div>
50
</script>
51
68
'textarea_rows' => 5,
69
)
70
);
71
+
72
// Remove the temporary filter on editor buttons
73
remove_filter( 'mce_buttons', 'bp_nouveau_messages_mce_buttons', 10, 1 );
74
?>
78
<# if ( 1 !== data.page ) { #>
79
<button id="bp-messages-prev-page"class="button messages-button">
80
<span class="dashicons dashicons-arrow-left"></span>
81
+ <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Previous page', 'link', 'buddypress' ); ?></span>
82
</button>
83
<# } #>
84
85
<# if ( data.total_page !== data.page ) { #>
86
<button id="bp-messages-next-page"class="button messages-button">
87
<span class="dashicons dashicons-arrow-right"></span>
88
+ <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Next page', 'link', 'buddypress' ); ?></span>
89
</button>
90
<# } #>
91
</script>
97
<label for="user_messages_search" class="bp-screen-reader-text">
98
<?php _e( 'Search Messages', 'buddypress' ); ?>
99
</label>
100
+ <input type="search" id="user_messages_search" placeholder="<?php echo esc_attr_x( 'Search', 'search placeholder text', 'buddypress' ); ?>"/>
101
<button type="submit" id="user_messages_search_submit">
102
<span class="dashicons dashicons-search" aria-hidden="true"></span>
103
+ <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Search', 'button', 'buddypress' ); ?></span>
104
</button>
105
</form>
106
</div>
123
</select>
124
<span class="select-arrow" aria-hidden="true"></span>
125
</div>
126
+ <button class="messages-button bulk-apply bp-tooltip" type="submit" data-bp-tooltip="<?php echo esc_attr_x( 'Apply', 'button', 'buddypress' ); ?>">
127
<span class="dashicons dashicons-yes" aria-hidden="true"></span>
128
+ <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Apply', 'button', 'buddypress' ); ?></span>
129
</button>
130
</div>
131
</script>
163
<div class="thread-content" data-thread-id="{{data.id}}">
164
<div class="thread-subject">
165
<span class="thread-count">({{data.count}})</span>
166
+ <a class="subject" href="../view/{{data.id}}/">{{data.subject}}</a>
167
</div>
168
<p class="excerpt">{{data.excerpt}}</p>
169
</div>
175
<script type="text/html" id="tmpl-bp-messages-preview">
176
<# if ( undefined !== data.content ) { #>
177
178
+ <h2 class="message-title preview-thread-title"><?php esc_html_e( 'Active conversation:', 'buddypress' ); ?><span class="messages-title">{{{data.subject}}}</span></h2>
179
<div class="preview-content">
180
<header class="preview-pane-header">
181
212
213
<# } #>
214
215
+ <a href="../view/{{data.id}}/" class="message-action-view bp-tooltip bp-icons" data-bp-action="view" data-bp-tooltip="<?php esc_attr_e( 'View full conversation and reply.', 'buddypress' ); ?>">
216
<span class="bp-screen-reader-text"><?php esc_html_e( 'View full conversation and reply.', 'buddypress' ); ?></span>
217
</a>
218
+
219
+ <# if ( data.threadOptions ) { #>
220
+ <span class="bp-messages-hook thread-options">
221
+ {{{data.threadOptions}}}
222
+ </span>
223
+ <# } #>
224
</div>
225
</header>
226
227
<div class='preview-message'>
228
+ {{{data.content}}}
229
</div>
230
+
231
+ <# if ( data.inboxListItem ) { #>
232
+ <table class="bp-messages-hook inbox-list-item">
233
+ <tbody>
234
+ <tr>{{{data.inboxListItem}}}</tr>
235
+ </tbody>
236
+ </table>
237
+ <# } #>
238
</div>
239
<# } #>
240
</script>
241
242
<script type="text/html" id="tmpl-bp-messages-single-header">
243
+ <h2 id="message-subject" class="message-title single-thread-title">{{{data.subject}}}</h2>
244
<header class="single-message-thread-header">
245
<# if ( undefined !== data.recipients ) { #>
246
<dl class="thread-participants">
256
<# } #>
257
258
<div class="actions">
259
<button type="button" class="message-action-delete bp-tooltip bp-icons" data-bp-action="delete" data-bp-tooltip="<?php esc_attr_e( 'Delete conversation.', 'buddypress' ); ?>">
260
<span class="bp-screen-reader-text"><?php esc_html_e( 'Delete conversation.', 'buddypress' ); ?></span>
261
</button>
262
</div>
263
</header>
264
</script>
265
266
<script type="text/html" id="tmpl-bp-messages-single-list">
267
<div class="message-metadata">
268
+ <# if ( data.beforeMeta ) { #>
269
+ <div class="bp-messages-hook before-message-meta">{{{data.beforeMeta}}}</div>
270
+ <# } #>
271
272
<a href="{{data.sender_link}}" class="user-link">
273
<img class="avatar" src="{{data.sender_avatar}}" alt="" />
290
<# } #>
291
</div>
292
293
+ <# if ( data.afterMeta ) { #>
294
+ <div class="bp-messages-hook after-message-meta">{{{data.afterMeta}}}</div>
295
+ <# } #>
296
</div>
297
298
+ <# if ( data.beforeContent ) { #>
299
+ <div class="bp-messages-hook before-message-content">{{{data.beforeContent}}}</div>
300
+ <# } #>
301
302
+ <div class="message-content">{{{data.content}}}</div>
303
304
+ <# if ( data.afterContent ) { #>
305
+ <div class="bp-messages-hook after-message-content">{{{data.afterContent}}}</div>
306
+ <# } #>
307
308
</script>
309
324
<div class="message-box">
325
<div class="message-metadata">
326
327
+ <?php bp_nouveau_messages_hook( 'before', 'reply_meta' ); ?>
328
329
<div class="avatar-box">
330
<?php bp_loggedin_user_avatar( 'type=thumb&height=30&width=30' ); ?>
331
332
+ <strong><?php esc_html_e( 'Send a Reply', 'buddypress' ); ?></strong>
333
</div>
334
335
+ <?php bp_nouveau_messages_hook( 'after', 'reply_meta' ); ?>
336
337
</div><!-- .message-metadata -->
338
346
<?php bp_nouveau_messages_hook( 'after', 'reply_box' ); ?>
347
348
<div class="submit">
349
+ <input type="submit" name="send" value="<?php echo esc_attr_x( 'Send Reply', 'button', 'buddypress' ); ?>" id="send_reply_button"/>
350
</div>
351
352
</div><!-- .message-content -->
bp-templates/bp-nouveau/buddypress/common/notices/template-notices.php CHANGED
@@ -3,7 +3,7 @@
3
* BP Nouveau template notices template.
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
?>
9
<aside class="<?php bp_nouveau_template_message_classes(); ?>">
@@ -12,7 +12,7 @@
12
13
<?php if ( bp_nouveau_has_dismiss_button() ) : ?>
14
15
- <button type="button" class="bp-tooltip" data-bp-tooltip="<?php esc_attr_e( 'Close', 'buddypress' ); ?>" aria-label="<?php esc_attr_e( 'Close this notice', 'buddypress' ); ?>" data-bp-close="<?php bp_nouveau_dismiss_button_type(); ?>"><span class="dashicons dashicons-dismiss" aria-hidden="true"></span></button>
16
17
<?php endif; ?>
18
</aside>
3
* BP Nouveau template notices template.
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
<aside class="<?php bp_nouveau_template_message_classes(); ?>">
12
13
<?php if ( bp_nouveau_has_dismiss_button() ) : ?>
14
15
+ <button type="button" class="bp-tooltip" data-bp-tooltip="<?php echo esc_attr_x( 'Close', 'button', 'buddypress' ); ?>" aria-label="<?php esc_attr_e( 'Close this notice', 'buddypress' ); ?>" data-bp-close="<?php bp_nouveau_dismiss_button_type(); ?>"><span class="dashicons dashicons-dismiss" aria-hidden="true"></span></button>
16
17
<?php endif; ?>
18
</aside>
bp-templates/bp-nouveau/buddypress/common/search-and-filters-bar.php CHANGED
@@ -3,7 +3,7 @@
3
* BP Nouveau Search & filters bar
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
?>
9
<div class="subnav-filters filters no-ajax" id="subnav-filters">
@@ -12,7 +12,7 @@
12
<div class="subnav-search clearfix">
13
14
<?php if ( 'activity' === bp_current_component() ) : ?>
15
- <div class="feed"><a href="<?php bp_sitewide_activity_feed_link(); ?>" class="bp-tooltip" data-bp-tooltip="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><span class="bp-screen-reader-text"><?php _e( 'RSS', 'buddypress' ); ?></span></a></div>
16
<?php endif; ?>
17
18
<?php bp_nouveau_search_form(); ?>
3
* BP Nouveau Search & filters bar
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
<div class="subnav-filters filters no-ajax" id="subnav-filters">
12
<div class="subnav-search clearfix">
13
14
<?php if ( 'activity' === bp_current_component() ) : ?>
15
+ <div class="feed"><a href="<?php bp_sitewide_activity_feed_link(); ?>" class="bp-tooltip" data-bp-tooltip="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><span class="bp-screen-reader-text"><?php esc_html_e( 'RSS', 'buddypress' ); ?></span></a></div>
16
<?php endif; ?>
17
18
<?php bp_nouveau_search_form(); ?>
bp-templates/bp-nouveau/buddypress/common/search/search-form.php CHANGED
@@ -3,7 +3,7 @@
3
* BP Object search form
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
?>
9
@@ -16,7 +16,7 @@
16
17
<button type="submit" id="<?php bp_nouveau_search_selector_id( 'search-submit' ); ?>" class="nouveau-search-submit" name="<?php bp_nouveau_search_selector_name( 'search_submit' ); ?>">
18
<span class="dashicons dashicons-search" aria-hidden="true"></span>
19
- <span id="button-text" class="bp-screen-reader-text"><?php _e( 'Search', 'buddypress' ); ?></span>
20
</button>
21
22
</form>
3
* BP Object search form
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
16
17
<button type="submit" id="<?php bp_nouveau_search_selector_id( 'search-submit' ); ?>" class="nouveau-search-submit" name="<?php bp_nouveau_search_selector_name( 'search_submit' ); ?>">
18
<span class="dashicons dashicons-search" aria-hidden="true"></span>
19
+ <span id="button-text" class="bp-screen-reader-text"><?php echo esc_html_x( 'Search', 'button', 'buddypress' ); ?></span>
20
</button>
21
22
</form>
bp-templates/bp-nouveau/buddypress/groups/create.php CHANGED
@@ -2,12 +2,13 @@
2
/**
3
* BuddyPress - Groups Create
4
*
5
- * @version 3.0.0
6
*/
7
8
bp_nouveau_groups_create_hook( 'before', 'page' ); ?>
9
10
- <h2 class="bp-subhead"><?php _e( 'Create A New Group', 'buddypress' ); ?></h2>
11
12
<?php bp_nouveau_groups_create_hook( 'before', 'content_template' ); ?>
13
2
/**
3
* BuddyPress - Groups Create
4
*
5
+ * @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
9
bp_nouveau_groups_create_hook( 'before', 'page' ); ?>
10
11
+ <h2 class="bp-subhead"><?php esc_html_e( 'Create A New Group', 'buddypress' ); ?></h2>
12
13
<?php bp_nouveau_groups_create_hook( 'before', 'content_template' ); ?>
14
bp-templates/bp-nouveau/buddypress/groups/groups-loop.php CHANGED
@@ -3,7 +3,7 @@
3
* BuddyPress - Groups Loop
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
9
bp_nouveau_before_loop(); ?>
@@ -44,7 +44,15 @@ bp_nouveau_before_loop(); ?>
44
45
<?php endif; ?>
46
47
- <p class="last-activity item-meta"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></p>
48
49
</div>
50
3
* BuddyPress - Groups Loop
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
9
bp_nouveau_before_loop(); ?>
44
45
<?php endif; ?>
46
47
+ <p class="last-activity item-meta">
48
+ <?php
49
+ printf(
50
+ /* translators: %s = last activity timestamp (e.g. "active 1 hour ago") */
51
+ __( 'active %s', 'buddypress' ),
52
+ bp_get_group_last_active()
53
+ );
54
+ ?>
55
+ </p>
56
57
</div>
58
bp-templates/bp-nouveau/buddypress/groups/single/activity.php CHANGED
@@ -3,7 +3,7 @@
3
* BuddyPress - Groups Activity
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
9
?>
@@ -18,7 +18,7 @@
18
19
<ul>
20
21
- <li class="feed"><a href="<?php bp_group_activity_feed_link(); ?>" class="bp-tooltip no-ajax" data-bp-tooltip="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><span class="bp-screen-reader-text"><?php _e( 'RSS', 'buddypress' ); ?></span></a></li>
22
23
<li class="group-act-search"><?php bp_nouveau_search_form(); ?></li>
24
3
* BuddyPress - Groups Activity
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
9
?>
18
19
<ul>
20
21
+ <li class="feed"><a href="<?php bp_group_activity_feed_link(); ?>" class="bp-tooltip no-ajax" data-bp-tooltip="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><span class="bp-screen-reader-text"><?php esc_html_e( 'RSS', 'buddypress' ); ?></span></a></li>
22
23
<li class="group-act-search"><?php bp_nouveau_search_form(); ?></li>
24
bp-templates/bp-nouveau/buddypress/groups/single/admin/delete-group.php CHANGED
@@ -3,17 +3,17 @@
3
* BP Nouveau Group's delete group template.
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
?>
9
10
<h2 class="bp-screen-title warn">
11
- <?php _e( 'Delete this group', 'buddypress' ); ?>
12
</h2>
13
14
<?php bp_nouveau_user_feedback( 'group-delete-warning' ); ?>
15
16
<label for="delete-group-understand" class="bp-label-text warn">
17
<input type="checkbox" name="delete-group-understand" id="delete-group-understand" value="1" onclick="if(this.checked) { document.getElementById( 'delete-group-button' ).disabled = ''; } else { document.getElementById( 'delete-group-button' ).disabled = 'disabled'; }" />
18
- <?php _e( 'I understand the consequences of deleting this group.', 'buddypress' ); ?>
19
</label>
3
* BP Nouveau Group's delete group template.
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
10
<h2 class="bp-screen-title warn">
11
+ <?php esc_html_e( 'Delete this group', 'buddypress' ); ?>
12
</h2>
13
14
<?php bp_nouveau_user_feedback( 'group-delete-warning' ); ?>
15
16
<label for="delete-group-understand" class="bp-label-text warn">
17
<input type="checkbox" name="delete-group-understand" id="delete-group-understand" value="1" onclick="if(this.checked) { document.getElementById( 'delete-group-button' ).disabled = ''; } else { document.getElementById( 'delete-group-button' ).disabled = 'disabled'; }" />
18
+ <?php esc_html_e( 'I understand the consequences of deleting this group.', 'buddypress' ); ?>
19
</label>
bp-templates/bp-nouveau/buddypress/groups/single/admin/edit-details.php CHANGED
@@ -3,34 +3,34 @@
3
* BP Nouveau Group's edit details template.
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
?>
9
10
<?php if ( bp_is_group_create() ) : ?>
11
12
<h3 class="bp-screen-title creation-step-name">
13
- <?php _e( 'Enter Group Name &amp; Description', 'buddypress' ); ?>
14
</h3>
15
16
<?php else : ?>
17
18
<h2 class="bp-screen-title">
19
- <?php _e( 'Edit Group Name &amp; Description', 'buddypress' ); ?>
20
</h2>
21
22
<?php endif; ?>
23
24
- <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>
25
<input type="text" name="group-name" id="group-name" value="<?php bp_is_group_create() ? bp_new_group_name() : bp_group_name(); ?>" aria-required="true" />
26
27
- <label for="group-desc"><?php _e( 'Group Description (required)', 'buddypress' ); ?></label>
28
<textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_is_group_create() ? bp_new_group_description() : bp_group_description_editable(); ?></textarea>
29
30
<?php if ( ! bp_is_group_create() ) : ?>
31
<p class="bp-controls-wrap">
32
<label for="group-notify-members" class="bp-label-text">
33
- <input type="checkbox" name="group-notify-members" id="group-notify-members" value="1" /> <?php _e( 'Notify group members of these changes via email', 'buddypress' ); ?>
34
</label>
35
</p>
36
<?php endif; ?>
3
* BP Nouveau Group's edit details template.
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
10
<?php if ( bp_is_group_create() ) : ?>
11
12
<h3 class="bp-screen-title creation-step-name">
13
+ <?php esc_html_e( 'Enter Group Name &amp; Description', 'buddypress' ); ?>
14
</h3>
15
16
<?php else : ?>
17
18
<h2 class="bp-screen-title">
19
+ <?php esc_html_e( 'Edit Group Name &amp; Description', 'buddypress' ); ?>
20
</h2>
21
22
<?php endif; ?>
23
24
+ <label for="group-name"><?php esc_html_e( 'Group Name (required)', 'buddypress' ); ?></label>
25
<input type="text" name="group-name" id="group-name" value="<?php bp_is_group_create() ? bp_new_group_name() : bp_group_name(); ?>" aria-required="true" />
26
27
+ <label for="group-desc"><?php esc_html_e( 'Group Description (required)', 'buddypress' ); ?></label>
28
<textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_is_group_create() ? bp_new_group_description() : bp_group_description_editable(); ?></textarea>
29
30
<?php if ( ! bp_is_group_create() ) : ?>
31
<p class="bp-controls-wrap">
32
<label for="group-notify-members" class="bp-label-text">
33
+ <input type="checkbox" name="group-notify-members" id="group-notify-members" value="1" /> <?php esc_html_e( 'Notify group members of these changes via email', 'buddypress' ); ?>
34
</label>
35
</p>
36
<?php endif; ?>
bp-templates/bp-nouveau/buddypress/groups/single/admin/group-avatar.php CHANGED
@@ -3,7 +3,7 @@
3
* BP Nouveau Group's avatar template.
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
?>
9
@@ -23,9 +23,9 @@
23
24
<?php if ( ! bp_is_group_create() ) : ?>
25
<?php if ( ! bp_get_group_has_avatar() ) : ?>
26
- <p class="bp-help-text"><?php _e( 'Add an image to use as a profile photo for this group. The image will be shown on the main group page, and in search results.', 'buddypress' ); ?></p>
27
<?php else : ?>
28
- <p class="bp-help-text"><?php _e( 'Edit or update your avatar image for this group.', 'buddypress' ); ?></p>
29
<?php endif; ?>
30
<?php endif; ?>
31
@@ -43,22 +43,22 @@
43
<div class="main-column">
44
<?php endif; ?>
45
46
- <p class="bp-help-text"><?php _e( 'Upload an image to use as a profile photo for this group. The image will be shown on the main group page, and in search results.', 'buddypress' ); ?></p>
47
48
<p>
49
- <label for="file" class="bp-screen-reader-text"><?php _e( 'Select an image', 'buddypress' ); ?></label>
50
<input type="file" name="file" id="file" />
51
<input type="submit" name="upload" id="upload" value="<?php esc_attr_e( 'Upload Image', 'buddypress' ); ?>" />
52
<input type="hidden" name="action" id="action" value="bp_avatar_upload" />
53
</p>
54
55
<?php if ( bp_is_group_create() ) : ?>
56
- <p class="bp-help-text"><?php _e( 'To skip the group profile photo upload process, hit the "Next Step" button.', 'buddypress' ); ?></p>
57
</div><!-- .main-column -->
58
59
<?php elseif ( bp_get_group_has_avatar() ) : ?>
60
61
- <p><?php _e( "If you'd like to remove the existing group profile photo but not upload a new one, please use the delete group profile photo button.", 'buddypress' ); ?></p>
62
63
<?php
64
bp_button(
@@ -95,7 +95,7 @@ endif;
95
if ( 'crop-image' === bp_get_avatar_admin_step() ) :
96
?>
97
98
- <h2><?php _e( 'Crop Group Profile Photo', 'buddypress' ); ?></h2>
99
100
<img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php esc_attr_e( 'Profile photo to crop', 'buddypress' ); ?>" />
101
3
* BP Nouveau Group's avatar template.
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
23
24
<?php if ( ! bp_is_group_create() ) : ?>
25
<?php if ( ! bp_get_group_has_avatar() ) : ?>
26
+ <p class="bp-help-text"><?php esc_html_e( 'Add an image to use as a profile photo for this group. The image will be shown on the main group page, and in search results.', 'buddypress' ); ?></p>
27
<?php else : ?>
28
+ <p class="bp-help-text"><?php esc_html_e( 'Edit or update your avatar image for this group.', 'buddypress' ); ?></p>
29
<?php endif; ?>
30
<?php endif; ?>
31
43
<div class="main-column">
44
<?php endif; ?>
45
46
+ <p class="bp-help-text"><?php esc_html_e( 'Upload an image to use as a profile photo for this group. The image will be shown on the main group page, and in search results.', 'buddypress' ); ?></p>
47
48
<p>
49
+ <label for="file" class="bp-screen-reader-text"><?php esc_html_e( 'Select an image', 'buddypress' ); ?></label>
50
<input type="file" name="file" id="file" />
51
<input type="submit" name="upload" id="upload" value="<?php esc_attr_e( 'Upload Image', 'buddypress' ); ?>" />
52
<input type="hidden" name="action" id="action" value="bp_avatar_upload" />
53
</p>
54
55
<?php if ( bp_is_group_create() ) : ?>
56
+ <p class="bp-help-text"><?php esc_html_e( 'To skip the group profile photo upload process, hit the "Next Step" button.', 'buddypress' ); ?></p>
57
</div><!-- .main-column -->
58
59
<?php elseif ( bp_get_group_has_avatar() ) : ?>
60
61
+ <p><?php esc_html_e( "If you'd like to remove the existing group profile photo but not upload a new one, please use the delete group profile photo button.", 'buddypress' ); ?></p>
62
63
<?php
64
bp_button(
95
if ( 'crop-image' === bp_get_avatar_admin_step() ) :
96
?>
97
98
+ <h2><?php esc_html_e( 'Crop Group Profile Photo', 'buddypress' ); ?></h2>
99
100
<img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php esc_attr_e( 'Profile photo to crop', 'buddypress' ); ?>" />
101
bp-templates/bp-nouveau/buddypress/groups/single/admin/group-cover-image.php CHANGED
@@ -3,7 +3,7 @@
3
* BP Nouveau Group's cover image template.
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
?>
9
@@ -23,7 +23,7 @@
23
24
<?php endif; ?>
25
26
- <p><?php _e( 'The Cover Image will be used to customize the header of your group.', 'buddypress' ); ?></p>
27
28
<?php
29
bp_attachments_get_template_part( 'cover-images/index' );
3
* BP Nouveau Group's cover image template.
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
23
24
<?php endif; ?>
25
26
+ <p><?php esc_html_e( 'The Cover Image will be used to customize the header of your group.', 'buddypress' ); ?></p>
27
28
<?php
29
bp_attachments_get_template_part( 'cover-images/index' );
bp-templates/bp-nouveau/buddypress/groups/single/admin/group-settings.php CHANGED
@@ -3,7 +3,7 @@
3
* BP Nouveau Group's edit settings template.
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
?>
9
@@ -24,47 +24,49 @@
24
<div class="group-settings-selections">
25
26
<fieldset class="radio group-status-type">
27
- <legend><?php _e( 'Privacy Options', 'buddypress' ); ?></legend>
28
29
<label for="group-status-public">
30
- <input type="radio" name="group-status" id="group-status-public" value="public"<?php if ( 'public' === bp_get_new_group_status() || ! bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="public-group-description" /> <?php _e( 'This is a public group', 'buddypress' ); ?>
31
</label>
32
33
<ul id="public-group-description">
34
- <li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>
35
- <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
36
- <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
37
</ul>
38
39
<label for="group-status-private">
40
- <input type="radio" name="group-status" id="group-status-private" value="private"<?php if ( 'private' === bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="private-group-description" /> <?php _e( 'This is a private group', 'buddypress' ); ?>
41
</label>
42
43
<ul id="private-group-description">
44
- <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>
45
- <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
46
- <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
47
</ul>
48
49
<label for="group-status-hidden">
50
- <input type="radio" name="group-status" id="group-status-hidden" value="hidden"<?php if ( 'hidden' === bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="hidden-group-description" /> <?php _e( 'This is a hidden group', 'buddypress' ); ?>
51
</label>
52
53
<ul id="hidden-group-description">
54
- <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
55
- <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
56
- <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
57
</ul>
58
59
</fieldset>
60
61
- <?php // Group type selection ?>
62
- <?php if ( $group_types = bp_groups_get_group_types( array( 'show_in_create_screen' => true ), 'objects' ) ) : ?>
63
64
<fieldset class="group-create-types">
65
- <legend><?php _e( 'Group Types', 'buddypress' ); ?></legend>
66
67
- <p tabindex="0"><?php _e( 'Select the types this group should be a part of.', 'buddypress' ); ?></p>
68
69
<?php foreach ( $group_types as $type ) : ?>
70
<div class="checkbox">
@@ -85,23 +87,23 @@
85
<?php endif; ?>
86
87
<fieldset class="radio group-invitations">
88
- <legend><?php _e( 'Group Invitations', 'buddypress' ); ?></legend>
89
90
- <p tabindex="0"><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p>
91
92
<label for="group-invite-status-members">
93
<input type="radio" name="group-invite-status" id="group-invite-status-members" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> />
94
- <?php _e( 'All group members', 'buddypress' ); ?>
95
</label>
96
97
<label for="group-invite-status-mods">
98
<input type="radio" name="group-invite-status" id="group-invite-status-mods" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> />
99
- <?php _e( 'Group admins and mods only', 'buddypress' ); ?>
100
</label>
101
102
<label for="group-invite-status-admins">
103
<input type="radio" name="group-invite-status" id="group-invite-status-admins" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> />
104
- <?php _e( 'Group admins only', 'buddypress' ); ?>
105
</label>
106
107
</fieldset>
3
* BP Nouveau Group's edit settings template.
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
24
<div class="group-settings-selections">
25
26
<fieldset class="radio group-status-type">
27
+ <legend><?php esc_html_e( 'Privacy Options', 'buddypress' ); ?></legend>
28
29
<label for="group-status-public">
30
+ <input type="radio" name="group-status" id="group-status-public" value="public"<?php if ( 'public' === bp_get_new_group_status() || ! bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="public-group-description" /> <?php esc_html_e( 'This is a public group', 'buddypress' ); ?>
31
</label>
32
33
<ul id="public-group-description">
34
+ <li><?php esc_html_e( 'Any site member can join this group.', 'buddypress' ); ?></li>
35
+ <li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
36
+ <li><?php esc_html_e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
37
</ul>
38
39
<label for="group-status-private">
40
+ <input type="radio" name="group-status" id="group-status-private" value="private"<?php if ( 'private' === bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="private-group-description" /> <?php esc_html_e( 'This is a private group', 'buddypress' ); ?>
41
</label>
42
43
<ul id="private-group-description">
44
+ <li><?php esc_html_e( 'Only people who request membership and are accepted can join the group.', 'buddypress' ); ?></li>
45
+ <li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
46
+ <li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
47
</ul>
48
49
<label for="group-status-hidden">
50
+ <input type="radio" name="group-status" id="group-status-hidden" value="hidden"<?php if ( 'hidden' === bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="hidden-group-description" /> <?php esc_html_e( 'This is a hidden group', 'buddypress' ); ?>
51
</label>
52
53
<ul id="hidden-group-description">
54
+ <li><?php esc_html_e( 'Only people who are invited can join the group.', 'buddypress' ); ?></li>
55
+ <li><?php esc_html_e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
56
+ <li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
57
</ul>
58
59
</fieldset>
60
61
+ <?php
62
+ // Group type selection
63
+ $group_types = bp_groups_get_group_types( array( 'show_in_create_screen' => true ), 'objects' );
64
+ if ( $group_types ) : ?>
65
66
<fieldset class="group-create-types">
67
+ <legend><?php esc_html_e( 'Group Types', 'buddypress' ); ?></legend>
68
69
+ <p tabindex="0"><?php esc_html_e( 'Select the types this group should be a part of.', 'buddypress' ); ?></p>
70
71
<?php foreach ( $group_types as $type ) : ?>
72
<div class="checkbox">
87
<?php endif; ?>
88
89
<fieldset class="radio group-invitations">
90
+ <legend><?php esc_html_e( 'Group Invitations', 'buddypress' ); ?></legend>
91
92
+ <p tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p>
93
94
<label for="group-invite-status-members">
95
<input type="radio" name="group-invite-status" id="group-invite-status-members" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> />
96
+ <?php esc_html_e( 'All group members', 'buddypress' ); ?>
97
</label>
98
99
<label for="group-invite-status-mods">
100
<input type="radio" name="group-invite-status" id="group-invite-status-mods" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> />
101
+ <?php esc_html_e( 'Group admins and mods only', 'buddypress' ); ?>
102
</label>
103
104
<label for="group-invite-status-admins">
105
<input type="radio" name="group-invite-status" id="group-invite-status-admins" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> />
106
+ <?php esc_html_e( 'Group admins only', 'buddypress' ); ?>
107
</label>
108
109
</fieldset>
bp-templates/bp-nouveau/buddypress/groups/single/admin/manage-members.php CHANGED
@@ -3,19 +3,19 @@
3
* BP Nouveau Group's manage members template.
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
?>
9
10
<h2 class="bp-screen-title <?php if ( bp_is_group_create() ) { echo esc_attr( 'creation-step-name' ); } ?>">
11
- <?php _e( 'Manage Group Members', 'buddypress' ); ?>
12
</h2>
13
14
- <p class="bp-help-text"><?php _e( 'Manage your group members; promote to moderators, admins or demote or ban.', 'buddypress' ); ?></p>
15
16
<dl class="groups-manage-members-list">
17
18
- <dt class="admin-section section-title"><?php _e( 'Administrators', 'buddypress' ); ?></dt>
19
20
<?php if ( bp_has_members( '&include=' . bp_group_admin_ids() ) ) : ?>
21
<dd class="admin-listing">
@@ -32,7 +32,7 @@
32
<?php if ( count( bp_group_admin_ids( false, 'array' ) ) > 1 ) : ?>
33
34
<p class="action text-links-list">
35
- <a class="button confirm admin-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a>
36
</p>
37
38
<?php endif; ?>
@@ -46,7 +46,7 @@
46
47
<?php if ( bp_group_has_moderators() ) : ?>
48
49
- <dt class="moderator-section section-title"><?php _e( 'Moderators', 'buddypress' ); ?></dt>
50
51
<dd class="moderator-listing">
52
<?php if ( bp_has_members( '&include=' . bp_group_mod_ids() ) ) : ?>
@@ -61,8 +61,8 @@
61
</p>
62
63
<div class="members-manage-buttons action text-links-list">
64
- <a href="<?php bp_group_member_promote_admin_link( array( 'user_id' => bp_get_member_user_id() ) ); ?>" class="button confirm mod-promote-to-admin"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>
65
- <a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a>
66
</div>
67
68
</li>
@@ -95,7 +95,14 @@
95
96
<p class="list-title member-name">
97
<?php bp_group_member_link(); ?>
98
- <span class="banned warn"><?php if ( bp_get_group_member_is_banned() ) _e( '(banned)', 'buddypress' ); ?></span>
99
</p>
100
101
<?php bp_nouveau_groups_manage_members_buttons( array( 'container' => 'div', 'container_classes' => array( 'members-manage-buttons', 'text-links-list' ), 'parent_element' => ' ' ) ) ; ?>
3
* BP Nouveau Group's manage members template.
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
10
<h2 class="bp-screen-title <?php if ( bp_is_group_create() ) { echo esc_attr( 'creation-step-name' ); } ?>">
11
+ <?php esc_html_e( 'Manage Group Members', 'buddypress' ); ?>
12
</h2>
13
14
+ <p class="bp-help-text"><?php esc_html_e( 'Manage your group members; promote to moderators, admins or demote or ban.', 'buddypress' ); ?></p>
15
16
<dl class="groups-manage-members-list">
17
18
+ <dt class="admin-section section-title"><?php esc_html_e( 'Administrators', 'buddypress' ); ?></dt>
19
20
<?php if ( bp_has_members( '&include=' . bp_group_admin_ids() ) ) : ?>
21
<dd class="admin-listing">
32
<?php if ( count( bp_group_admin_ids( false, 'array' ) ) > 1 ) : ?>
33
34
<p class="action text-links-list">
35
+ <a class="button confirm admin-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php esc_html_e( 'Demote to Member', 'buddypress' ); ?></a>
36
</p>
37
38
<?php endif; ?>
46
47
<?php if ( bp_group_has_moderators() ) : ?>
48
49
+ <dt class="moderator-section section-title"><?php esc_html_e( 'Moderators', 'buddypress' ); ?></dt>
50
51
<dd class="moderator-listing">
52
<?php if ( bp_has_members( '&include=' . bp_group_mod_ids() ) ) : ?>
61
</p>
62
63
<div class="members-manage-buttons action text-links-list">
64
+ <a href="<?php bp_group_member_promote_admin_link( array( 'user_id' => bp_get_member_user_id() ) ); ?>" class="button confirm mod-promote-to-admin"><?php esc_html_e( 'Promote to Admin', 'buddypress' ); ?></a>
65
+ <a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php esc_html_e( 'Demote to Member', 'buddypress' ); ?></a>
66
</div>
67
68
</li>
95
96
<p class="list-title member-name">
97
<?php bp_group_member_link(); ?>
98
+ <span class="banned warn">
99
+ <?php if ( bp_get_group_member_is_banned() ) : ?>
100
+ <?php
101
+ /* translators: indicates a user is banned from a group, e.g. "Mike (banned)". */
102
+ esc_html_e( '(banned)', 'buddypress' );
103
+ ?>
104
+ <?php endif; ?>
105
+ </span>
106
</p>
107
108
<?php bp_nouveau_groups_manage_members_buttons( array( 'container' => 'div', 'container_classes' => array( 'members-manage-buttons', 'text-links-list' ), 'parent_element' => ' ' ) ) ; ?>
bp-templates/bp-nouveau/buddypress/groups/single/cover-image-header.php CHANGED
@@ -3,7 +3,7 @@
3
* BuddyPress - Groups Cover Image Header.
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
?>
9
@@ -24,12 +24,15 @@
24
<?php if ( ! bp_nouveau_groups_front_page_description() ) : ?>
25
<div id="item-header-content">
26
27
-
28
-
29
<p class="highlight group-status"><strong><?php echo esc_html( bp_nouveau_group_meta()->status ); ?></strong></p>
30
- <p class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></p>
31
- <?php echo bp_nouveau_group_meta()->group_type_list; ?>
32
33
<?php bp_nouveau_group_hook( 'before', 'header_meta' ); ?>
34
35
<?php if ( bp_nouveau_group_has_meta_extra() ) : ?>
@@ -52,12 +55,12 @@
52
53
</div><!-- #cover-image-container -->
54
55
- <?php if ( ! bp_nouveau_groups_front_page_description() ) : ?>
56
- <?php if ( bp_nouveau_group_meta()->description ) { ?>
57
- <div class="desc-wrap">
58
- <div class="group-description">
59
- <?php echo bp_nouveau_group_meta()->description; ?>
60
- </div><!-- //.group_description -->
61
- </div>
62
- <?php } ?>
63
<?php endif; ?>
3
* BuddyPress - Groups Cover Image Header.
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
24
<?php if ( ! bp_nouveau_groups_front_page_description() ) : ?>
25
<div id="item-header-content">
26
27
<p class="highlight group-status"><strong><?php echo esc_html( bp_nouveau_group_meta()->status ); ?></strong></p>
28
+ <p class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>">
29
+ <?php
30
+ /* translators: %s = last activity timestamp (e.g. "active 1 hour ago") */
31
+ printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() );
32
+ ?>
33
+ </p>
34
35
+ <?php echo bp_nouveau_group_meta()->group_type_list; ?>
36
<?php bp_nouveau_group_hook( 'before', 'header_meta' ); ?>
37
38
<?php if ( bp_nouveau_group_has_meta_extra() ) : ?>
55
56
</div><!-- #cover-image-container -->
57
58
+ <?php if ( ! bp_nouveau_groups_front_page_description() ) : ?>
59
+ <?php if ( ! empty( bp_nouveau_group_meta()->description ) ) : ?>
60
+ <div class="desc-wrap">
61
+ <div class="group-description">
62
+ <?php echo esc_html( bp_nouveau_group_meta()->description ); ?>
63
+ </div><!-- //.group_description -->
64
+ </div>
65
+ <?php endif; ?>
66
<?php endif; ?>
bp-templates/bp-nouveau/buddypress/groups/single/group-header.php CHANGED
@@ -3,7 +3,7 @@
3
* BuddyPress - Groups Header
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
?>
9
@@ -23,7 +23,17 @@
23
24
<p class="highlight group-status"><strong><?php echo esc_html( bp_nouveau_group_meta()->status ); ?></strong></p>
25
26
- <p class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></p>
27
28
<?php bp_nouveau_group_hook( 'before', 'header_meta' ); ?>
29
3
* BuddyPress - Groups Header
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
23
24
<p class="highlight group-status"><strong><?php echo esc_html( bp_nouveau_group_meta()->status ); ?></strong></p>
25
26
+ <p class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>">
27
+ <?php
28
+ echo esc_html(
29
+ sprintf(
30
+ /* translators: %s = last activity timestamp (e.g. "active 1 hour ago") */
31
+ __( 'active %s', 'buddypress' ),
32
+ bp_get_group_last_active()
33
+ )
34
+ );
35
+ ?>
36
+ </p>
37
38
<?php bp_nouveau_group_hook( 'before', 'header_meta' ); ?>
39
bp-templates/bp-nouveau/buddypress/groups/single/parts/header-item-actions.php CHANGED
@@ -3,17 +3,17 @@
3
* BuddyPress - Groups Header item-actions.
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
?>
9
<div id="item-actions" class="group-item-actions">
10
11
<?php if ( bp_current_user_can( 'groups_access_group' ) ) : ?>
12
13
- <h2 class="bp-screen-reader-text"><?php esc_html_e( 'Leadership', 'buddypress' ); ?></h2>
14
15
<dl class="moderators-lists">
16
- <dt class="moderators-title"><?php _e( 'Group Admins', 'buddypress' ); ?></dt>
17
<dd class="user-list admins"><?php bp_group_list_admins(); ?>
18
<?php bp_nouveau_group_hook( 'after', 'menu_admins' ); ?>
19
</dd>
@@ -25,7 +25,7 @@
25
?>
26
27
<dl class="moderators-lists">
28
- <dt class="moderators-title"><?php _e( 'Group Mods', 'buddypress' ); ?></dt>
29
<dd class="user-list moderators">
30
<?php
31
bp_group_list_mods();
3
* BuddyPress - Groups Header item-actions.
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
<div id="item-actions" class="group-item-actions">
10
11
<?php if ( bp_current_user_can( 'groups_access_group' ) ) : ?>
12
13
+ <h2 class="bp-screen-reader-text"><?php esc_html_e( 'Group Leadership', 'buddypress' ); ?></h2>
14
15
<dl class="moderators-lists">
16
+ <dt class="moderators-title"><?php esc_html_e( 'Group Administrators', 'buddypress' ); ?></dt>
17
<dd class="user-list admins"><?php bp_group_list_admins(); ?>
18
<?php bp_nouveau_group_hook( 'after', 'menu_admins' ); ?>
19
</dd>
25
?>
26
27
<dl class="moderators-lists">
28
+ <dt class="moderators-title"><?php esc_html_e( 'Group Mods', 'buddypress' ); ?></dt>
29
<dd class="user-list moderators">
30
<?php
31
bp_group_list_mods();
bp-templates/bp-nouveau/buddypress/groups/single/request-membership.php CHANGED
@@ -3,21 +3,31 @@
3
* BuddyPress - Groups Request Membership
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
9
bp_nouveau_group_hook( 'before', 'request_membership_content' ); ?>
10
11
<?php if ( ! bp_group_has_requested_membership() ) : ?>
12
- <p><?php printf( __( 'You are requesting to become a member of the group \'%s\'.', 'buddypress' ), bp_get_group_name( false ) ); ?></p>
13
14
<form action="<?php bp_group_form_action( 'request-membership' ); ?>" method="post" name="request-membership-form" id="request-membership-form" class="standard-form">
15
- <label for="group-request-membership-comments"><?php _e( 'Comments (optional)', 'buddypress' ); ?></label>
16
<textarea name="group-request-membership-comments" id="group-request-membership-comments"></textarea>
17
18
<?php bp_nouveau_group_hook( '', 'request_membership_content' ); ?>
19
20
- <p><input type="submit" name="group-request-send" id="group-request-send" value="<?php esc_attr_e( 'Send Request', 'buddypress' ); ?>" />
21
22
<?php wp_nonce_field( 'groups_request_membership' ); ?>
23
</form><!-- #request-membership-form -->
3
* BuddyPress - Groups Request Membership
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
9
bp_nouveau_group_hook( 'before', 'request_membership_content' ); ?>
10
11
<?php if ( ! bp_group_has_requested_membership() ) : ?>
12
+ <p>
13
+ <?php
14
+ echo esc_html(
15
+ sprintf(
16
+ /* translators: %s = group name */
17
+ __( 'You are requesting to become a member of the group "%s".', 'buddypress' ),
18
+ bp_get_group_name()
19
+ )
20
+ );
21
+ ?>
22
+ </p>
23
24
<form action="<?php bp_group_form_action( 'request-membership' ); ?>" method="post" name="request-membership-form" id="request-membership-form" class="standard-form">
25
+ <label for="group-request-membership-comments"><?php esc_html( 'Comments (optional)', 'buddypress' ); ?></label>
26
<textarea name="group-request-membership-comments" id="group-request-membership-comments"></textarea>
27
28
<?php bp_nouveau_group_hook( '', 'request_membership_content' ); ?>
29
30
+ <p><input type="submit" name="group-request-send" id="group-request-send" value="<?php echo esc_attr_x( 'Send Request', 'button', 'buddypress' ); ?>" />
31
32
<?php wp_nonce_field( 'groups_request_membership' ); ?>
33
</form><!-- #request-membership-form -->
bp-templates/bp-nouveau/buddypress/members/activate.php CHANGED
@@ -2,7 +2,8 @@
2
/**
3
* BuddyPress - Members Activate
4
*
5
- * @version 3.0.0
6
*/
7
?>
8
@@ -17,22 +18,31 @@
17
<?php if ( bp_account_was_activated() ) : ?>
18
19
<?php if ( isset( $_GET['e'] ) ) : ?>
20
- <p><?php _e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p>
21
<?php else : ?>
22
- <p><?php printf( __( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'buddypress' ), wp_login_url( bp_get_root_domain() ) ); ?></p>
23
<?php endif; ?>
24
25
<?php else : ?>
26
27
- <p><?php _e( 'Please provide a valid activation key.', 'buddypress' ); ?></p>
28
29
<form action="" method="post" class="standard-form" id="activation-form">
30
31
- <label for="key"><?php _e( 'Activation Key:', 'buddypress' ); ?></label>
32
<input type="text" name="key" id="key" value="<?php echo esc_attr( bp_get_current_activation_key() ); ?>" />
33
34
<p class="submit">
35
- <input type="submit" name="submit" value="<?php esc_attr_e( 'Activate', 'buddypress' ); ?>" />
36
</p>
37
38
</form>
2
/**
3
* BuddyPress - Members Activate
4
*
5
+ * @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
18
<?php if ( bp_account_was_activated() ) : ?>
19
20
<?php if ( isset( $_GET['e'] ) ) : ?>
21
+ <p><?php esc_html_e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p>
22
<?php else : ?>
23
+ <p>
24
+ <?php
25
+ echo esc_html(
26
+ sprintf(
27
+ __( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'buddypress' ),
28
+ wp_login_url( bp_get_root_domain() )
29
+ )
30
+ );
31
+ ?>
32
+ </p>
33
<?php endif; ?>
34
35
<?php else : ?>
36
37
+ <p><?php esc_html_e( 'Please provide a valid activation key.', 'buddypress' ); ?></p>
38
39
<form action="" method="post" class="standard-form" id="activation-form">
40
41
+ <label for="key"><?php esc_html_e( 'Activation Key:', 'buddypress' ); ?></label>
42
<input type="text" name="key" id="key" value="<?php echo esc_attr( bp_get_current_activation_key() ); ?>" />
43
44
<p class="submit">
45
+ <input type="submit" name="submit" value="<?php echo esc_attr_x( 'Activate', 'button', 'buddypress' ); ?>" />
46
</p>
47
48
</form>
bp-templates/bp-nouveau/buddypress/members/register.php CHANGED
@@ -3,7 +3,7 @@
3
* BuddyPress - Members/Blogs Registration forms
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
9
?>
@@ -28,7 +28,7 @@
28
29
<?php /***** Basic Account Details ******/ ?>
30
31
- <h2 class="bp-heading"><?php _e( 'Account Details', 'buddypress' ); ?></h2>
32
33
<?php bp_nouveau_signup_form(); ?>
34
@@ -44,7 +44,7 @@
44
45
<div class="register-section extended-profile" id="profile-details-section">
46
47
- <h2 class="bp-heading"><?php _e( 'Profile Details', 'buddypress' ); ?></h2>
48
49
<?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
50
<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
@@ -86,9 +86,9 @@
86
87
<div class="register-section blog-details" id="blog-details-section">
88
89
- <h2><?php _e( 'Blog Details', 'buddypress' ); ?></h2>
90
91
- <p><label for="signup_with_blog"><input type="checkbox" name="signup_with_blog" id="signup_with_blog" value="1" <?php checked( (int) bp_get_signup_with_blog_value(), 1 ); ?>/> <?php _e( "Yes, I'd like to create a new site", 'buddypress' ); ?></label></p>
92
93
<div id="blog-details"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?>class="show"<?php endif; ?>>
94
3
* BuddyPress - Members/Blogs Registration forms
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
9
?>
28
29
<?php /***** Basic Account Details ******/ ?>
30
31
+ <h2 class="bp-heading"><?php esc_html_e( 'Account Details', 'buddypress' ); ?></h2>
32
33
<?php bp_nouveau_signup_form(); ?>
34
44
45
<div class="register-section extended-profile" id="profile-details-section">
46
47
+ <h2 class="bp-heading"><?php esc_html_e( 'Profile Details', 'buddypress' ); ?></h2>
48
49
<?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
50
<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
86
87
<div class="register-section blog-details" id="blog-details-section">
88
89
+ <h2><?php esc_html_e( 'Site Details', 'buddypress' ); ?></h2>
90
91
+ <p><label for="signup_with_blog"><input type="checkbox" name="signup_with_blog" id="signup_with_blog" value="1" <?php checked( (int) bp_get_signup_with_blog_value(), 1 ); ?>/> <?php esc_html_e( "Yes, i'd like to create a new site", 'buddypress' ); ?></label></p>
92
93
<div id="blog-details"<?php if ( (int) bp_get_signup_with_blog_value() ) : ?>class="show"<?php endif; ?>>
94
bp-templates/bp-nouveau/buddypress/members/single/default-front.php CHANGED
@@ -3,7 +3,7 @@
3
* BP Nouveau Default user's front template.
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
?>
9
@@ -13,7 +13,7 @@
13
14
<div class="bp-feedback custom-homepage-info info">
15
<strong><?php esc_html_e( 'Manage the members default front page', 'buddypress' ); ?></strong>
16
- <button type="button" class="bp-tooltip" data-bp-tooltip="<?php esc_attr_e( 'Close', 'buddypress' ); ?>" aria-label="<?php esc_attr_e( 'Close this notice', 'buddypress' ); ?>" data-bp-close="remove"><span class="dashicons dashicons-dismiss" aria-hidden="true"></span></button><br/>
17
<?php
18
printf(
19
esc_html__( 'You can set the preferences of the %1$s or add %2$s to it.', 'buddypress' ),
3
* BP Nouveau Default user's front template.
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
13
14
<div class="bp-feedback custom-homepage-info info">
15
<strong><?php esc_html_e( 'Manage the members default front page', 'buddypress' ); ?></strong>
16
+ <button type="button" class="bp-tooltip" data-bp-tooltip="<?php echo esc_attr_x( 'Close', 'button', 'buddypress' ); ?>" aria-label="<?php esc_attr_e( 'Close this notice', 'buddypress' ); ?>" data-bp-close="remove"><span class="dashicons dashicons-dismiss" aria-hidden="true"></span></button><br/>
17
<?php
18
printf(
19
esc_html__( 'You can set the preferences of the %1$s or add %2$s to it.', 'buddypress' ),
bp-templates/bp-nouveau/buddypress/members/single/groups/invites.php CHANGED
@@ -3,7 +3,7 @@
3
* BuddyPress - Members Single Group Invites
4
*
5
* @since 3.0.0
6
- * @version 3.0.0
7
*/
8
?>
9
@@ -33,7 +33,20 @@
33
<div class="item">
34
<h2 class="list-title groups-title"><?php bp_group_link(); ?></h2>
35
<p class="meta group-details">
36
- <span class="small"> - <?php printf( _nx( '%d member', '%d members', bp_get_group_total_members( false ), 'Group member count', 'buddypress' ), bp_get_group_total_members( false ) ); ?></span>
37
</p>
38
39
<p class="desc">
3
* BuddyPress - Members Single Group Invites
4
*
5
* @since 3.0.0
6
+ * @version 3.1.0
7
*/
8
?>
9
33
<div class="item">
34
<h2 class="list-title groups-title"><?php bp_group_link(); ?></h2>
35
<p class="meta group-details">
36
+ <span class="small">
37
+ <?php
38
+ printf(
39
+ /* translators: %s = number of members */
40
+ _n(
41
+ '%s member',
42
+ '%s members',
43
+ bp_get_group_total_members( false ),
44
+ 'buddypress'
45
+ ),
46
+ number_format_i18n( bp_get_group_total_members( false ) )
47
+ );
48
+ ?>
49
+ </span>
50
</p>
51
52
<p class="desc">