diff --git src/bp-core/bp-core-template.php src/bp-core/bp-core-template.php
index d28a6acd9..8f08f7970 100644
|
|
|
function bp_the_body_class() { |
| 3237 | 3237 | $bp_classes[] = 'my-activity'; |
| 3238 | 3238 | } |
| 3239 | 3239 | } else { |
| 3240 | | if ( bp_get_current_member_type() ) { |
| | 3240 | if ( bp_get_current_member_type() || ( bp_is_groups_directory() && bp_get_current_group_directory_type() ) ) { |
| 3241 | 3241 | $bp_classes[] = 'type'; |
| 3242 | 3242 | } |
| 3243 | 3243 | } |
diff --git src/bp-templates/bp-nouveau/includes/template-tags.php src/bp-templates/bp-nouveau/includes/template-tags.php
index fe70b1e8f..682a5efef 100644
|
|
|
|
| 3 | 3 | * Common template tags |
| 4 | 4 | * |
| 5 | 5 | * @since 3.0.0 |
| 6 | | * @version 3.1.0 |
| | 6 | * @version 3.2.0 |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | // Exit if accessed directly. |
| … |
… |
function bp_nouveau_nav_classes() { |
| 911 | 911 | $nav_item = $bp_nouveau->current_nav_item; |
| 912 | 912 | $classes = array(); |
| 913 | 913 | |
| 914 | | if ( 'directory' === $bp_nouveau->displayed_nav && ! empty( $nav_item->li_class ) ) { |
| 915 | | $classes = (array) $nav_item->li_class; |
| | 914 | if ( 'directory' === $bp_nouveau->displayed_nav ) { |
| | 915 | if ( ! empty( $nav_item->li_class ) ) { |
| | 916 | $classes = (array) $nav_item->li_class; |
| | 917 | } |
| | 918 | |
| | 919 | if ( bp_get_current_member_type() || ( bp_is_groups_directory() && bp_get_current_group_directory_type() ) ) { |
| | 920 | $classes[] = 'no-ajax'; |
| | 921 | } |
| 916 | 922 | } elseif ( 'groups' === $bp_nouveau->displayed_nav || 'personal' === $bp_nouveau->displayed_nav ) { |
| 917 | 923 | $classes = array( 'bp-' . $bp_nouveau->displayed_nav . '-tab' ); |
| 918 | 924 | $selected = bp_current_action(); |