Changeset 2972 for branches/1.2/bp-forums/bp-forums-templatetags.php
- Timestamp:
- 04/28/2010 11:06:48 PM (16 years ago)
- File:
-
- 1 edited
-
branches/1.2/bp-forums/bp-forums-templatetags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-forums/bp-forums-templatetags.php
r2953 r2972 592 592 $class .= ' closed'; 593 593 594 return trim( $class);594 return apply_filters( 'bp_get_the_topic_css_class', trim( $class ) ); 595 595 } 596 596 … … 859 859 } 860 860 861 function 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 861 882 function bp_the_topic_post_poster_avatar( $args = '' ) { 862 883 echo bp_get_the_topic_post_poster_avatar( $args );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)