Skip to:
Content

BuddyPress.org

Ticket #7903: 7903.03.patch

File 7903.03.patch, 1.6 KB (added by imath, 7 years ago)
  • src/bp-core/bp-core-template.php

    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() { 
    32373237                                $bp_classes[] = 'my-activity';
    32383238                        }
    32393239                } 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() ) ) {
    32413241                                $bp_classes[] = 'type';
    32423242                        }
    32433243                }
  • src/bp-templates/bp-nouveau/includes/template-tags.php

    diff --git src/bp-templates/bp-nouveau/includes/template-tags.php src/bp-templates/bp-nouveau/includes/template-tags.php
    index fe70b1e8f..682a5efef 100644
     
    33 * Common template tags
    44 *
    55 * @since 3.0.0
    6  * @version 3.1.0
     6 * @version 3.2.0
    77 */
    88
    99// Exit if accessed directly.
    function bp_nouveau_nav_classes() { 
    911911                $nav_item   = $bp_nouveau->current_nav_item;
    912912                $classes    = array();
    913913
    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                        }
    916922                } elseif ( 'groups' === $bp_nouveau->displayed_nav || 'personal' === $bp_nouveau->displayed_nav ) {
    917923                        $classes  = array( 'bp-' . $bp_nouveau->displayed_nav . '-tab' );
    918924                        $selected = bp_current_action();