Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2010 11:06:48 PM (16 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2129.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-forums/bp-forums-templatetags.php

    r2953 r2972  
    592592                        $class .= ' closed';
    593593
    594                 return trim( $class );
     594                return apply_filters( 'bp_get_the_topic_css_class', trim( $class ) );
    595595        }
    596596
     
    859859        }
    860860
     861function bp_the_topic_post_css_class() {
     862        echo bp_get_the_topic_post_css_class();
     863}
     864
     865        function bp_get_the_topic_post_css_class() {
     866                global $topic_template;
     867
     868                $class = false;
     869
     870                if ( $topic_template->current_post % 2 == 1 )
     871                        $class .= 'alt';
     872
     873                if ( 1 == (int)$topic_template->post->post_status )
     874                        $class .= ' deleted';
     875
     876                if ( 0 == (int)$topic_template->post->post_status )
     877                        $class .= ' open';
     878
     879                return apply_filters( 'bp_get_the_topic_post_css_class', trim( $class ) );
     880        }
     881
    861882function bp_the_topic_post_poster_avatar( $args = '' ) {
    862883        echo bp_get_the_topic_post_poster_avatar( $args );
Note: See TracChangeset for help on using the changeset viewer.