Skip to:
Content

BuddyPress.org

Ticket #7813: 7813-new-diff.diff

File 7813-new-diff.diff, 938 bytes (added by dunhakdis, 8 years ago)
  • src/bp-templates/bp-nouveau/includes/functions.php

    diff --git src/bp-templates/bp-nouveau/includes/functions.php src/bp-templates/bp-nouveau/includes/functions.php
    index 6b83a12d4..d7cfeb2c7 100644
    function bp_nouveau_wrapper( $args = array() ) { 
    234234        * Check the component to find a default container_class to add
    235235        */
    236236        $current_component_class = bp_current_component() . '-meta';
     237       
     238        // Allow 'home' and 'activity' actions to have a $generic_class of ' activity-meta '.
     239        $activity_actions_in_groups = apply_filters('bp_nouveau_groups_activity_actions', array( 'home', 'activity') );
    237240
    238         if ( 'groups' === bp_current_component() && 'activity' === bp_current_action() ) {
     241        if ( 'groups' === bp_current_component() && in_array( bp_current_action(), $activity_actions_in_groups ) ) {
    239242                $generic_class = ' activity-meta ';
    240243        } else {
    241244                $generic_class = '';