Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/09/2012 08:42:55 PM (13 years ago)
Author:
boonebgorges
Message:

Adds a generic 'activity-item' class to bp_activity_css_class()

Having no class that was shared by all and only activity items made it
difficult to write JavaScript (as for, example, the Favorite and Remove
Favorite buttons) that would select in an elegant way that was not dependent
on HTML element names.

Fixes #4332

Props imath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-template.php

    r6131 r6172  
    20112011        ) );
    20122012
    2013         $class = '';
     2013        $class = ' activity-item';
     2014
    20142015        if ( in_array( $activities_template->activity->type, (array) $mini_activity_actions ) || empty( $activities_template->activity->content ) )
    2015             $class = ' mini';
     2016            $class .= ' mini';
    20162017
    20172018        if ( bp_activity_get_comment_count() && bp_activity_can_comment() )
Note: See TracChangeset for help on using the changeset viewer.